@fluid-topics/ft-search-bar 2.2.26 → 2.2.27
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.
- package/build/ft-search-bar.light.js +34 -25
- package/build/ft-search-bar.min.js +112 -103
- package/package.json +18 -18
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
<div class="ft-size-watcher--pixel ${this.local?"ft-size-watcher--local":""}">
|
|
22
22
|
<div class="ft-size-watcher--watcher"></div>
|
|
23
23
|
</div>
|
|
24
|
-
`}contentAvailableCallback(e){super.contentAvailableCallback(e),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=rt.S:this.size<976?this.category=rt.M:this.size<1024?this.category=rt.L:this.size<1440?this.category=rt.XL:this.category=rt.XXL,this.dispatchEvent(new ho(this.size,this.category)))},this.debounceTimeout)}};We.elementDefinitions={};We.styles=zs;di([(0,sr.property)({type:Number})],We.prototype,"debounceTimeout",void 0);di([(0,sr.property)({type:Boolean})],We.prototype,"local",void 0);di([(0,sr.property)({type:Number,reflect:!0})],We.prototype,"size",void 0);di([(0,sr.property)({type:String,reflect:!0})],We.prototype,"category",void 0);di([(0,sr.query)(".ft-size-watcher--watcher")],We.prototype,"watcher",void 0);var js=c(m());var Hs={"ft-size-watcher":We};(0,js.customElements)(Hs);var So=globalThis,Ws=t=>t,Qi=So.trustedTypes,
|
|
25
|
-
\f\r]`,ui=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
|
26
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Xs=/'/g,Ys=/"/g,ea=/^(?:script|style|textarea|title)$/i,Ao=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),ta=Ao(1),ra=Ao(2),ia=Ao(3),fi=Symbol.for("lit-noChange"),ce=Symbol.for("lit-nothing"),Zs=new WeakMap,lr=cr.createTreeWalker(cr,129);function na(t,e){if(!Eo(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return qs!==void 0?qs.createHTML(e):e}var _p=(t,e)=>{let r=t.length-1,i=[],o,n=e===2?"<svg>":e===3?"<math>":"",s=ui;for(let a=0;a<r;a++){let l=t[a],d,u,p=-1,f=0;for(;f<l.length&&(s.lastIndex=f,u=s.exec(l),u!==null);)f=s.lastIndex,s===ui?u[1]==="!--"?s=Ks:u[1]!==void 0?s=Gs:u[2]!==void 0?(ea.test(u[2])&&(o=RegExp("</"+u[2],"g")),s=ar):u[3]!==void 0&&(s=ar):s===ar?u[0]===">"?(s=o??ui,p=-1):u[1]===void 0?p=-2:(p=s.lastIndex-u[2].length,d=u[1],s=u[3]===void 0?ar:u[3]==='"'?Ys:Xs):s===Ys||s===Xs?s=ar:s===Ks||s===Gs?s=ui:(s=ar,o=void 0);let b=s===ar&&t[a+1].startsWith("/>")?" ":"";n+=s===ui?l+Cp:p>=0?(i.push(d),l.slice(0,p)+Qs+l.slice(p)+Ht+b):l+Ht+(p===-2?a:b)}return[na(t,n+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},hi=class t{constructor({strings:e,_$litType$:r},i){let o;this.parts=[];let n=0,s=0,a=e.length-1,l=this.parts,[d,u]=_p(e,r);if(this.el=t.createElement(d,i),lr.currentNode=this.el.content,r===2||r===3){let p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(o=lr.nextNode())!==null&&l.length<a;){if(o.nodeType===1){if(o.hasAttributes())for(let p of o.getAttributeNames())if(p.endsWith(Qs)){let f=u[s++],b=o.getAttribute(p).split(Ht),x=/([.?@])?(.*)/.exec(f);l.push({type:1,index:n,name:x[2],strings:b,ctor:x[1]==="."?yo:x[1]==="?"?bo:x[1]==="@"?vo:Ur}),o.removeAttribute(p)}else p.startsWith(Ht)&&(l.push({type:6,index:n}),o.removeAttribute(p));if(ea.test(o.tagName)){let p=o.textContent.split(Ht),f=p.length-1;if(f>0){o.textContent=Qi?Qi.emptyScript:"";for(let b=0;b<f;b++)o.append(p[b],Ji()),lr.nextNode(),l.push({type:2,index:++n});o.append(p[f],Ji())}}}else if(o.nodeType===8)if(o.data===Js)l.push({type:2,index:n});else{let p=-1;for(;(p=o.data.indexOf(Ht,p+1))!==-1;)l.push({type:7,index:n}),p+=Ht.length-1}n++}}static createElement(e,r){let i=cr.createElement("template");return i.innerHTML=e,i}};function Br(t,e,r=t,i){if(e===fi)return e;let o=i!==void 0?r._$Co?.[i]:r._$Cl,n=pi(e)?void 0:e._$litDirective$;return o?.constructor!==n&&(o?._$AO?.(!1),n===void 0?o=void 0:(o=new n(t),o._$AT(t,r,i)),i!==void 0?(r._$Co??=[])[i]=o:r._$Cl=o),o!==void 0&&(e=Br(t,o._$AS(t,e.values),o,i)),e}var go=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:i}=this._$AD,o=(e?.creationScope??cr).importNode(r,!0);lr.currentNode=o;let n=lr.nextNode(),s=0,a=0,l=i[0];for(;l!==void 0;){if(s===l.index){let d;l.type===2?d=new en(n,n.nextSibling,this,e):l.type===1?d=new l.ctor(n,l.name,l.strings,this,e):l.type===6&&(d=new xo(n,this,e)),this._$AV.push(d),l=i[++a]}s!==l?.index&&(n=lr.nextNode(),s++)}return lr.currentNode=cr,o}p(e){let r=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,r),r+=i.strings.length-2):i._$AI(e[r])),r++}},en=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,i,o){this.type=2,this._$AH=ce,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=i,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=Br(this,e,r),pi(e)?e===ce||e==null||e===""?(this._$AH!==ce&&this._$AR(),this._$AH=ce):e!==this._$AH&&e!==fi&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):wp(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==ce&&pi(this._$AH)?this._$AA.nextSibling.data=e:this.T(cr.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:i}=e,o=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=hi.createElement(na(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===o)this._$AH.p(r);else{let n=new go(o,this),s=n.u(this.options);n.p(r),this.T(s),this._$AH=n}}_$AC(e){let r=Zs.get(e.strings);return r===void 0&&Zs.set(e.strings,r=new hi(e)),r}k(e){Eo(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,o=0;for(let n of e)o===r.length?r.push(i=new t(this.O(Ji()),this.O(Ji()),this,this.options)):i=r[o],i._$AI(n),o++;o<r.length&&(this._$AR(i&&i._$AB.nextSibling,o),r.length=o)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e!==this._$AB;){let i=Ws(e).nextSibling;Ws(e).remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Ur=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,i,o,n){this.type=1,this._$AH=ce,this._$AN=void 0,this.element=e,this.name=r,this._$AM=o,this.options=n,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=ce}_$AI(e,r=this,i,o){let n=this.strings,s=!1;if(n===void 0)e=Br(this,e,r,0),s=!pi(e)||e!==this._$AH&&e!==fi,s&&(this._$AH=e);else{let a=e,l,d;for(e=n[0],l=0;l<n.length-1;l++)d=Br(this,a[i+l],r,l),d===fi&&(d=this._$AH[l]),s||=!pi(d)||d!==this._$AH[l],d===ce?e=ce:e!==ce&&(e+=(d??"")+n[l+1]),this._$AH[l]=d}s&&!o&&this.j(e)}j(e){e===ce?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},yo=class extends Ur{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===ce?void 0:e}},bo=class extends Ur{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==ce)}},vo=class extends Ur{constructor(e,r,i,o,n){super(e,r,i,o,n),this.type=5}_$AI(e,r=this){if((e=Br(this,e,r,0)??ce)===fi)return;let i=this._$AH,o=e===ce&&i!==ce||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,n=e!==ce&&(i===ce||o);o&&this.element.removeEventListener(this.name,this,i),n&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},xo=class{constructor(e,r,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){Br(this,e)}};var Op=So.litHtmlPolyfillSupport;Op?.(hi,en),(So.litHtmlVersions??=[]).push("3.3.3");var sa=Symbol.for(""),Rp=t=>{if(t?.r===sa)return t?._$litStatic$},Co=t=>({_$litStatic$:t,r:sa});var oa=new Map,wo=t=>(e,...r)=>{let i=r.length,o,n,s=[],a=[],l,d=0,u=!1;for(;d<i;){for(l=e[d];d<i&&(n=r[d],(o=Rp(n))!==void 0);)l+=o+e[++d],u=!0;d!==i&&a.push(n),s.push(l),d++}if(d===i&&s.push(e[i]),u){let p=s.join("$$lit$$");(e=oa.get(p))===void 0&&(s.raw=s,oa.set(p,e=s)),r=a}return t(e,...r)},_o=wo(ta),kh=wo(ra),Lh=wo(ia);var Oo=c(j()),ba=c(m());var de;(function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"})(de||(de={}));var it=c(E()),h=c(m()),aa=h.FtCssVariableFactory.extend("--ft-typography-font-family","",h.designSystemVariables.titleFont),Nt=h.FtCssVariableFactory.extend("--ft-typography-font-family","",h.designSystemVariables.contentFont),y={fontFamily:Nt,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")},dr={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-title-font-family","",aa),fontSize:h.FtCssVariableFactory.extend("--ft-typography-title-font-size","",y.fontSize,"20px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",y.letterSpacing,"0.15px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-title-line-height","",y.lineHeight,"1.2"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-title-text-decoration","",y.textDecoration,"inherit")},ur={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",aa),fontSize:h.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",y.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",y.letterSpacing,"0.105px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",y.lineHeight,"1.7"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-title-dense-text-decoration","",y.textDecoration,"inherit")},pr={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",Nt),fontSize:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",y.fontSize,"16px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",y.fontWeight,"600"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",y.letterSpacing,"0.144px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",y.lineHeight,"1.5"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-decoration","",y.textDecoration,"inherit")},fr={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",Nt),fontSize:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",y.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",y.letterSpacing,"0.098px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",y.lineHeight,"1.7"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-decoration","",y.textDecoration,"inherit")},wt={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",Nt),fontSize:h.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",y.fontSize,"16px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",y.letterSpacing,"0.496px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",y.lineHeight,"1.5"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-body1-text-decoration","",y.textDecoration,"inherit")},ue={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",Nt),fontSize:h.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",y.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",y.letterSpacing,"0.252px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",y.lineHeight,"1.4"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-body2-text-decoration","",y.textDecoration,"inherit")},Be={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",Nt),fontSize:h.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",y.fontSize,"12px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",y.letterSpacing,"0.396px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",y.lineHeight,"1.33"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-caption-text-decoration","",y.textDecoration,"inherit")},hr={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",Nt),fontSize:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",y.fontSize,"10px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",y.letterSpacing,"0.33px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",y.lineHeight,"1.6"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-decoration","",y.textDecoration,"inherit")},mr={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",Nt),fontSize:h.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",y.fontSize,"10px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",y.letterSpacing,"1.5px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",y.lineHeight,"1.6"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",y.textTransform,"uppercase"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-overline-text-decoration","",y.textDecoration,"inherit")},pt={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-button-font-family","",Nt),fontSize:h.FtCssVariableFactory.extend("--ft-typography-button-font-size","",y.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",y.fontWeight,"600"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",y.letterSpacing,"1.246px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-button-line-height","",y.lineHeight,"1.15"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",y.textTransform,"uppercase"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-button-text-decoration","",y.textDecoration,"inherit")},la=it.css`
|
|
24
|
+
`}contentAvailableCallback(e){super.contentAvailableCallback(e),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=rt.S:this.size<976?this.category=rt.M:this.size<1024?this.category=rt.L:this.size<1440?this.category=rt.XL:this.category=rt.XXL,this.dispatchEvent(new ho(this.size,this.category)))},this.debounceTimeout)}};We.elementDefinitions={};We.styles=zs;di([(0,sr.property)({type:Number})],We.prototype,"debounceTimeout",void 0);di([(0,sr.property)({type:Boolean})],We.prototype,"local",void 0);di([(0,sr.property)({type:Number,reflect:!0})],We.prototype,"size",void 0);di([(0,sr.property)({type:String,reflect:!0})],We.prototype,"category",void 0);di([(0,sr.query)(".ft-size-watcher--watcher")],We.prototype,"watcher",void 0);var js=c(m());var Hs={"ft-size-watcher":We};(0,js.customElements)(Hs);var So=globalThis,Ws=t=>t,Qi=So.trustedTypes,Ks=Qi?Qi.createPolicy("lit-html",{createHTML:t=>t}):void 0,Qs="$lit$",Ht=`lit$${Math.random().toFixed(9).slice(2)}$`,Js="?"+Ht,Cp=`<${Js}>`,cr=document,Ji=()=>cr.createComment(""),pi=t=>t===null||typeof t!="object"&&typeof t!="function",Eo=Array.isArray,wp=t=>Eo(t)||typeof t?.[Symbol.iterator]=="function",mo=`[
|
|
25
|
+
\f\r]`,ui=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,qs=/-->/g,Gs=/>/g,ar=RegExp(`>|${mo}(?:([^\\s"'>=/]+)(${mo}*=${mo}*(?:[^
|
|
26
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Xs=/'/g,Ys=/"/g,ea=/^(?:script|style|textarea|title)$/i,Ao=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),ta=Ao(1),ra=Ao(2),ia=Ao(3),fi=Symbol.for("lit-noChange"),ce=Symbol.for("lit-nothing"),Zs=new WeakMap,lr=cr.createTreeWalker(cr,129);function na(t,e){if(!Eo(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ks!==void 0?Ks.createHTML(e):e}var _p=(t,e)=>{let r=t.length-1,i=[],o,n=e===2?"<svg>":e===3?"<math>":"",s=ui;for(let a=0;a<r;a++){let l=t[a],d,u,p=-1,f=0;for(;f<l.length&&(s.lastIndex=f,u=s.exec(l),u!==null);)f=s.lastIndex,s===ui?u[1]==="!--"?s=qs:u[1]!==void 0?s=Gs:u[2]!==void 0?(ea.test(u[2])&&(o=RegExp("</"+u[2],"g")),s=ar):u[3]!==void 0&&(s=ar):s===ar?u[0]===">"?(s=o??ui,p=-1):u[1]===void 0?p=-2:(p=s.lastIndex-u[2].length,d=u[1],s=u[3]===void 0?ar:u[3]==='"'?Ys:Xs):s===Ys||s===Xs?s=ar:s===qs||s===Gs?s=ui:(s=ar,o=void 0);let b=s===ar&&t[a+1].startsWith("/>")?" ":"";n+=s===ui?l+Cp:p>=0?(i.push(d),l.slice(0,p)+Qs+l.slice(p)+Ht+b):l+Ht+(p===-2?a:b)}return[na(t,n+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},hi=class t{constructor({strings:e,_$litType$:r},i){let o;this.parts=[];let n=0,s=0,a=e.length-1,l=this.parts,[d,u]=_p(e,r);if(this.el=t.createElement(d,i),lr.currentNode=this.el.content,r===2||r===3){let p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(o=lr.nextNode())!==null&&l.length<a;){if(o.nodeType===1){if(o.hasAttributes())for(let p of o.getAttributeNames())if(p.endsWith(Qs)){let f=u[s++],b=o.getAttribute(p).split(Ht),x=/([.?@])?(.*)/.exec(f);l.push({type:1,index:n,name:x[2],strings:b,ctor:x[1]==="."?yo:x[1]==="?"?bo:x[1]==="@"?vo:Ur}),o.removeAttribute(p)}else p.startsWith(Ht)&&(l.push({type:6,index:n}),o.removeAttribute(p));if(ea.test(o.tagName)){let p=o.textContent.split(Ht),f=p.length-1;if(f>0){o.textContent=Qi?Qi.emptyScript:"";for(let b=0;b<f;b++)o.append(p[b],Ji()),lr.nextNode(),l.push({type:2,index:++n});o.append(p[f],Ji())}}}else if(o.nodeType===8)if(o.data===Js)l.push({type:2,index:n});else{let p=-1;for(;(p=o.data.indexOf(Ht,p+1))!==-1;)l.push({type:7,index:n}),p+=Ht.length-1}n++}}static createElement(e,r){let i=cr.createElement("template");return i.innerHTML=e,i}};function Br(t,e,r=t,i){if(e===fi)return e;let o=i!==void 0?r._$Co?.[i]:r._$Cl,n=pi(e)?void 0:e._$litDirective$;return o?.constructor!==n&&(o?._$AO?.(!1),n===void 0?o=void 0:(o=new n(t),o._$AT(t,r,i)),i!==void 0?(r._$Co??=[])[i]=o:r._$Cl=o),o!==void 0&&(e=Br(t,o._$AS(t,e.values),o,i)),e}var go=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:i}=this._$AD,o=(e?.creationScope??cr).importNode(r,!0);lr.currentNode=o;let n=lr.nextNode(),s=0,a=0,l=i[0];for(;l!==void 0;){if(s===l.index){let d;l.type===2?d=new en(n,n.nextSibling,this,e):l.type===1?d=new l.ctor(n,l.name,l.strings,this,e):l.type===6&&(d=new xo(n,this,e)),this._$AV.push(d),l=i[++a]}s!==l?.index&&(n=lr.nextNode(),s++)}return lr.currentNode=cr,o}p(e){let r=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,r),r+=i.strings.length-2):i._$AI(e[r])),r++}},en=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,i,o){this.type=2,this._$AH=ce,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=i,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=Br(this,e,r),pi(e)?e===ce||e==null||e===""?(this._$AH!==ce&&this._$AR(),this._$AH=ce):e!==this._$AH&&e!==fi&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):wp(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==ce&&pi(this._$AH)?this._$AA.nextSibling.data=e:this.T(cr.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:i}=e,o=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=hi.createElement(na(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===o)this._$AH.p(r);else{let n=new go(o,this),s=n.u(this.options);n.p(r),this.T(s),this._$AH=n}}_$AC(e){let r=Zs.get(e.strings);return r===void 0&&Zs.set(e.strings,r=new hi(e)),r}k(e){Eo(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,o=0;for(let n of e)o===r.length?r.push(i=new t(this.O(Ji()),this.O(Ji()),this,this.options)):i=r[o],i._$AI(n),o++;o<r.length&&(this._$AR(i&&i._$AB.nextSibling,o),r.length=o)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e!==this._$AB;){let i=Ws(e).nextSibling;Ws(e).remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Ur=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,i,o,n){this.type=1,this._$AH=ce,this._$AN=void 0,this.element=e,this.name=r,this._$AM=o,this.options=n,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=ce}_$AI(e,r=this,i,o){let n=this.strings,s=!1;if(n===void 0)e=Br(this,e,r,0),s=!pi(e)||e!==this._$AH&&e!==fi,s&&(this._$AH=e);else{let a=e,l,d;for(e=n[0],l=0;l<n.length-1;l++)d=Br(this,a[i+l],r,l),d===fi&&(d=this._$AH[l]),s||=!pi(d)||d!==this._$AH[l],d===ce?e=ce:e!==ce&&(e+=(d??"")+n[l+1]),this._$AH[l]=d}s&&!o&&this.j(e)}j(e){e===ce?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},yo=class extends Ur{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===ce?void 0:e}},bo=class extends Ur{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==ce)}},vo=class extends Ur{constructor(e,r,i,o,n){super(e,r,i,o,n),this.type=5}_$AI(e,r=this){if((e=Br(this,e,r,0)??ce)===fi)return;let i=this._$AH,o=e===ce&&i!==ce||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,n=e!==ce&&(i===ce||o);o&&this.element.removeEventListener(this.name,this,i),n&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},xo=class{constructor(e,r,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){Br(this,e)}};var Op=So.litHtmlPolyfillSupport;Op?.(hi,en),(So.litHtmlVersions??=[]).push("3.3.3");var sa=Symbol.for(""),Rp=t=>{if(t?.r===sa)return t?._$litStatic$},Co=t=>({_$litStatic$:t,r:sa});var oa=new Map,wo=t=>(e,...r)=>{let i=r.length,o,n,s=[],a=[],l,d=0,u=!1;for(;d<i;){for(l=e[d];d<i&&(n=r[d],(o=Rp(n))!==void 0);)l+=o+e[++d],u=!0;d!==i&&a.push(n),s.push(l),d++}if(d===i&&s.push(e[i]),u){let p=s.join("$$lit$$");(e=oa.get(p))===void 0&&(s.raw=s,oa.set(p,e=s)),r=a}return t(e,...r)},_o=wo(ta),kh=wo(ra),Lh=wo(ia);var Oo=c(j()),ba=c(m());var de;(function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"})(de||(de={}));var it=c(E()),h=c(m()),aa=h.FtCssVariableFactory.extend("--ft-typography-font-family","",h.designSystemVariables.titleFont),Nt=h.FtCssVariableFactory.extend("--ft-typography-font-family","",h.designSystemVariables.contentFont),y={fontFamily:Nt,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")},dr={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-title-font-family","",aa),fontSize:h.FtCssVariableFactory.extend("--ft-typography-title-font-size","",y.fontSize,"20px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",y.letterSpacing,"0.15px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-title-line-height","",y.lineHeight,"1.2"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-title-text-decoration","",y.textDecoration,"inherit")},ur={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",aa),fontSize:h.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",y.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",y.letterSpacing,"0.105px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",y.lineHeight,"1.7"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-title-dense-text-decoration","",y.textDecoration,"inherit")},pr={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",Nt),fontSize:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",y.fontSize,"16px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",y.fontWeight,"600"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",y.letterSpacing,"0.144px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",y.lineHeight,"1.5"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-decoration","",y.textDecoration,"inherit")},fr={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",Nt),fontSize:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",y.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",y.letterSpacing,"0.098px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",y.lineHeight,"1.7"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-decoration","",y.textDecoration,"inherit")},wt={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",Nt),fontSize:h.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",y.fontSize,"16px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",y.letterSpacing,"0.496px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",y.lineHeight,"1.5"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-body1-text-decoration","",y.textDecoration,"inherit")},ue={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",Nt),fontSize:h.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",y.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",y.letterSpacing,"0.252px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",y.lineHeight,"1.4"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-body2-text-decoration","",y.textDecoration,"inherit")},Be={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",Nt),fontSize:h.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",y.fontSize,"12px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",y.letterSpacing,"0.396px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",y.lineHeight,"1.33"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-caption-text-decoration","",y.textDecoration,"inherit")},hr={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",Nt),fontSize:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",y.fontSize,"10px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",y.letterSpacing,"0.33px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",y.lineHeight,"1.6"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-decoration","",y.textDecoration,"inherit")},mr={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",Nt),fontSize:h.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",y.fontSize,"10px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",y.letterSpacing,"1.5px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",y.lineHeight,"1.6"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",y.textTransform,"uppercase"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-overline-text-decoration","",y.textDecoration,"inherit")},pt={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-button-font-family","",Nt),fontSize:h.FtCssVariableFactory.extend("--ft-typography-button-font-size","",y.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",y.fontWeight,"600"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",y.letterSpacing,"1.246px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-button-line-height","",y.lineHeight,"1.15"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",y.textTransform,"uppercase"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-button-text-decoration","",y.textDecoration,"inherit")},la=it.css`
|
|
27
27
|
.ft-typography--title {
|
|
28
28
|
font-family: ${dr.fontFamily};
|
|
29
29
|
font-size: ${dr.fontSize};
|
|
@@ -578,7 +578,7 @@
|
|
|
578
578
|
margin: 10px 0;
|
|
579
579
|
color: ${gi.colorOnSurfaceMedium};
|
|
580
580
|
}
|
|
581
|
-
`;var $r=c(E()),Z=c(j()),le=c(m());var Qe=c(E()),ye=c(j()),cu=c(or()),He=c(m());var kt=c(m());var Ha=c(E()),
|
|
581
|
+
`;var $r=c(E()),Z=c(j()),le=c(m());var Qe=c(E()),ye=c(j()),cu=c(or()),He=c(m());var kt=c(m());var Ha=c(E()),Ee=c(j()),ja=c(nt()),yi=c(m());var Ue=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},M=class extends yi.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 yi.Debouncer(1e3),this.onTransitionStart=e=>{e.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=e=>{e.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new yi.Debouncer(10),this.moveRipple=e=>{var r,i;let{x:o,y:n}=this.getCoordinates(e),s=(i=(r=this.ripple)===null||r===void 0?void 0:r.getBoundingClientRect())!==null&&i!==void 0?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(o!=null?o-s.x:s.width/2),this.originY=Math.round(n!=null?n-s.y:s.height/2)},this.startPress=e=>{this.moveRipple(e),this.pressed=!this.isIgnored(e)},this.endPress=()=>{this.pressed=!1},this.startHover=e=>{this.hovered=!this.isIgnored(e)},this.endHover=()=>{this.hovered=!1},this.startFocus=e=>{this.focused=this.isFocusVisible(e?.target)&&!this.isIgnored(e)},this.endFocus=()=>{this.focused=!1}}render(){let e={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return Ha.html`
|
|
582
582
|
<style>
|
|
583
583
|
.ft-ripple .ft-ripple--effect {
|
|
584
584
|
left: ${this.originX}px;
|
|
@@ -589,7 +589,7 @@
|
|
|
589
589
|
<div class="ft-ripple--background"></div>
|
|
590
590
|
<div class="ft-ripple--effect"></div>
|
|
591
591
|
</div>
|
|
592
|
-
`}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var r,i;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(i=this.target)===null||i===void 0||i.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var e,r;let i=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;i&&this.setupFor((r=this.target)!==null&&r!==void 0?r:i)}forceFocusUpdate(){var e;!((e=this.target)===null||e===void 0)&&e.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let r=(...a)=>l=>{a.forEach(d=>window.addEventListener(d,this.endPress,{once:!0})),this.startPress(l)},i=r("mouseup","contextmenu"),o=r("touchend","touchcancel"),n=a=>{["Enter"," "].includes(a.key)&&r("keyup")(a)},s={passive:!0};e.addEventListener("mouseover",this.startHover,s),e.addEventListener("mousemove",this.moveRipple,s),e.addEventListener("mouseleave",this.endHover,s),e.addEventListener("mousedown",i,s),e.addEventListener("touchstart",o,s),e.addEventListener("touchmove",this.moveRipple,s),e.addEventListener("keydown",n,s),e.addEventListener("focus",this.startFocus,s),e.addEventListener("blur",this.endFocus,s),e.addEventListener("focusin",this.startFocus,s),e.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,s),e.removeEventListener("mousemove",this.moveRipple,s),e.removeEventListener("mouseleave",this.endHover,s),e.removeEventListener("mousedown",i,s),e.removeEventListener("touchstart",o,s),e.removeEventListener("touchmove",this.moveRipple,s),e.removeEventListener("keydown",n,s),e.removeEventListener("focus",this.startFocus,s),e.removeEventListener("blur",this.endFocus,s),e.removeEventListener("focusin",this.startFocus,s),e.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let r=e,i=e,o,n;return r.x!=null?{x:o,y:n}=r:i.touches!=null&&(o=i.touches[0].clientX,n=i.touches[0].clientY),{x:o,y:n}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let r of e.composedPath()){if(r===this.target)break;if("hasAttribute"in r&&r.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};M.elementDefinitions={};M.styles=$a;Ue([(0,
|
|
592
|
+
`}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var r,i;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(i=this.target)===null||i===void 0||i.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var e,r;let i=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;i&&this.setupFor((r=this.target)!==null&&r!==void 0?r:i)}forceFocusUpdate(){var e;!((e=this.target)===null||e===void 0)&&e.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let r=(...a)=>l=>{a.forEach(d=>window.addEventListener(d,this.endPress,{once:!0})),this.startPress(l)},i=r("mouseup","contextmenu"),o=r("touchend","touchcancel"),n=a=>{["Enter"," "].includes(a.key)&&r("keyup")(a)},s={passive:!0};e.addEventListener("mouseover",this.startHover,s),e.addEventListener("mousemove",this.moveRipple,s),e.addEventListener("mouseleave",this.endHover,s),e.addEventListener("mousedown",i,s),e.addEventListener("touchstart",o,s),e.addEventListener("touchmove",this.moveRipple,s),e.addEventListener("keydown",n,s),e.addEventListener("focus",this.startFocus,s),e.addEventListener("blur",this.endFocus,s),e.addEventListener("focusin",this.startFocus,s),e.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,s),e.removeEventListener("mousemove",this.moveRipple,s),e.removeEventListener("mouseleave",this.endHover,s),e.removeEventListener("mousedown",i,s),e.removeEventListener("touchstart",o,s),e.removeEventListener("touchmove",this.moveRipple,s),e.removeEventListener("keydown",n,s),e.removeEventListener("focus",this.startFocus,s),e.removeEventListener("blur",this.endFocus,s),e.removeEventListener("focusin",this.startFocus,s),e.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let r=e,i=e,o,n;return r.x!=null?{x:o,y:n}=r:i.touches!=null&&(o=i.touches[0].clientX,n=i.touches[0].clientY),{x:o,y:n}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let r of e.composedPath()){if(r===this.target)break;if("hasAttribute"in r&&r.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};M.elementDefinitions={};M.styles=$a;Ue([(0,Ee.property)({type:Boolean})],M.prototype,"primary",void 0);Ue([(0,Ee.property)({type:Boolean})],M.prototype,"secondary",void 0);Ue([(0,Ee.property)({type:Boolean})],M.prototype,"unbounded",void 0);Ue([(0,Ee.property)({type:Boolean})],M.prototype,"activated",void 0);Ue([(0,Ee.property)({type:Boolean})],M.prototype,"selected",void 0);Ue([(0,Ee.property)({type:Boolean})],M.prototype,"disabled",void 0);Ue([(0,Ee.state)()],M.prototype,"hovered",void 0);Ue([(0,Ee.state)()],M.prototype,"focused",void 0);Ue([(0,Ee.state)()],M.prototype,"pressed",void 0);Ue([(0,Ee.state)()],M.prototype,"rippling",void 0);Ue([(0,Ee.state)()],M.prototype,"originX",void 0);Ue([(0,Ee.state)()],M.prototype,"originY",void 0);Ue([(0,Ee.query)(".ft-ripple")],M.prototype,"ripple",void 0);Ue([(0,Ee.query)(".ft-ripple--effect")],M.prototype,"rippleEffect",void 0);var Ka=c(m());var Wa={"ft-ripple":M};(0,Ka.customElements)(Wa);var kd=c(E()),ct=c(j()),lt=c(m());var qa=c(E()),Wt=c(m()),bi={distance:Wt.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:Wt.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:Wt.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),borderRadiusS:Wt.FtCssVariableFactory.extend("--ft-tooltip-border-radius","",Wt.designSystemVariables.borderRadiusS),maxWidth:Wt.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},Ga=qa.css`
|
|
593
593
|
.ft-tooltip--container {
|
|
594
594
|
display: block;
|
|
595
595
|
}
|
|
@@ -620,7 +620,7 @@
|
|
|
620
620
|
position: relative;
|
|
621
621
|
word-break: break-word;
|
|
622
622
|
}
|
|
623
|
-
`;var Ya=["top","right","bottom","left"],Xa=["start","end"],$o=Ya.reduce((t,e)=>t.concat(e,e+"-"+Xa[0],e+"-"+Xa[1]),[]),vi=Math.min,qt=Math.max,xi=Math.round;var _t=t=>({x:t,y:t}),Tp={left:"right",right:"left",bottom:"top",top:"bottom"};function Za(t,e,r){return qt(t,vi(e,r))}function nn(t,e){return typeof t=="function"?t(e):t}function Si(t){return t.split("-")[0]}function Kt(t){return t.split("-")[1]}function Do(t){return t==="x"?"y":"x"}function Po(t){return t==="y"?"height":"width"}function on(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function Io(t){return Do(on(t))}function Qa(t,e,r){r===void 0&&(r=!1);let i=Kt(t),o=Io(t),n=Po(o),s=o==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[n]>e.floating[n]&&(s=Lo(s)),[s,Lo(s)]}function Ja(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function Lo(t){let e=Si(t);return Tp[e]+t.slice(e.length)}function kp(t){var e,r,i,o;return{top:(e=t.top)!=null?e:0,right:(r=t.right)!=null?r:0,bottom:(i=t.bottom)!=null?i:0,left:(o=t.left)!=null?o:0}}function el(t){return typeof t!="number"?kp(t):{top:t,right:t,bottom:t,left:t}}function yr(t){let{x:e,y:r,width:i,height:o}=t;return{width:i,height:o,top:r,left:e,right:e+i,bottom:r+o,x:e,y:r}}function tl(t,e,r){let{reference:i,floating:o}=t,n=on(e),s=Io(e),a=Po(s),l=Si(e),d=n==="y",u=i.x+i.width/2-o.width/2,p=i.y+i.height/2-o.height/2,f=i[a]/2-o[a]/2,b;switch(l){case"top":b={x:u,y:i.y-o.height};break;case"bottom":b={x:u,y:i.y+i.height};break;case"right":b={x:i.x+i.width,y:p};break;case"left":b={x:i.x-o.width,y:p};break;default:b={x:i.x,y:i.y}}let x=Kt(e);return x&&(b[s]+=f*(x==="end"?1:-1)*(r&&d?-1:1)),b}async function rl(t,e){var r;e===void 0&&(e={});let{x:i,y:o,platform:n,rects:s,elements:a,strategy:l}=t,{boundary:d="clippingAncestors",rootBoundary:u="viewport",elementContext:p="floating",altBoundary:f=!1,padding:b=0}=nn(e,t),x=el(b),v=a[f?p==="floating"?"reference":"floating":p],L=yr(await n.getClippingRect({element:(r=await(n.isElement==null?void 0:n.isElement(v)))==null||r?v:v.contextElement||await(n.getDocumentElement==null?void 0:n.getDocumentElement(a.floating)),boundary:d,rootBoundary:u,strategy:l})),H=p==="floating"?{x:i,y:o,width:s.floating.width,height:s.floating.height}:s.reference,S=await(n.getOffsetParent==null?void 0:n.getOffsetParent(a.floating)),A=await(n.isElement==null?void 0:n.isElement(S))&&await(n.getScale==null?void 0:n.getScale(S))||{x:1,y:1},q=yr(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:H,offsetParent:S,strategy:l}):H);return{top:(L.top-q.top+x.top)/A.y,bottom:(q.bottom-L.bottom+x.bottom)/A.y,left:(L.left-q.left+x.left)/A.x,right:(q.right-L.right+x.right)/A.x}}var Lp=50,il=async(t,e,r)=>{let{placement:i="bottom",strategy:o="absolute",middleware:n=[],platform:s}=r,a=s.detectOverflow?s:{...s,detectOverflow:rl},l=await(s.isRTL==null?void 0:s.isRTL(e)),d=await s.getElementRects({reference:t,floating:e,strategy:o}),{x:u,y:p}=tl(d,i,l),f=i,b=0,x={};for(let R=0;R<n.length;R++){let v=n[R];if(!v)continue;let{name:L,fn:H}=v,{x:S,y:A,data:q,reset:z}=await H({x:u,y:p,initialPlacement:i,placement:f,strategy:o,middlewareData:x,rects:d,platform:a,elements:{reference:t,floating:e}});u=S??u,p=A??p,x[L]={...x[L],...q},z&&b<Lp&&(b++,typeof z=="object"&&(z.placement&&(f=z.placement),z.rects&&(d=z.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:o}):z.rects),{x:u,y:p}=tl(d,f,l)),R=-1)}return{x:u,y:p,placement:f,strategy:o,middlewareData:x}};function $p(t,e,r){return(t?[...r.filter(o=>Kt(o)===t),...r.filter(o=>Kt(o)!==t)]:r.filter(o=>Si(o)===o)).filter(o=>t?Kt(o)===t||(e?Ja(o)!==o:!1):!0)}var nl=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,i,o;let{rects:n,middlewareData:s,placement:a,platform:l,elements:d}=e,{crossAxis:u=!1,alignment:p,allowedPlacements:f=$o,autoAlignment:b=!0,...x}=nn(t,e),R=p!==void 0||f===$o?$p(p||null,b,f):f,v=((r=s.autoPlacement)==null?void 0:r.index)||0,L=R[v];if(L==null)return{};if(a!==L)return{reset:{placement:R[0]}};let H=await l.detectOverflow(e,x),S=Qa(L,n,await(l.isRTL==null?void 0:l.isRTL(d.floating))),A=[H[Si(L)],H[S[0]],H[S[1]]],q=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:L,overflows:A}],z=R[v+1];if(z)return{data:{index:v+1,overflows:q},reset:{placement:z}};let ge=q.map(tt=>{let ci=Kt(tt.placement);return[tt.placement,ci&&u?tt.overflows.slice(0,2).reduce((gp,yp)=>gp+yp,0):tt.overflows[0],tt.overflows]}).sort((tt,ci)=>tt[1]-ci[1]),Yi=((o=ge.filter(tt=>tt[2].slice(0,Kt(tt[0])?2:3).every(ci=>ci<=0))[0])==null?void 0:o[0])||ge[0][0];return Yi!==a?{data:{index:v+1,overflows:q},reset:{placement:Yi}}:{}}}};var ol=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:i,placement:o,platform:n}=e,{mainAxis:s=!0,crossAxis:a=!1,limiter:l={fn:H=>{let{x:S,y:A}=H;return{x:S,y:A}}},...d}=nn(t,e),u={x:r,y:i},p=await n.detectOverflow(e,d),f=on(o),b=Do(f),x=u[b],R=u[f],v=(H,S)=>Za(S+p[H==="y"?"top":"left"],S,S-p[H==="y"?"bottom":"right"]);s&&(x=v(b,x)),a&&(R=v(f,R));let L=l.fn({...e,[b]:x,[f]:R});return{...L,data:{x:L.x-r,y:L.y-i,enabled:{[b]:s,[f]:a}}}}}};function an(){return typeof window<"u"}function vr(t){return al(t)?(t.nodeName||"").toLowerCase():"#document"}function ze(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Ft(t){var e;return(e=(al(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function al(t){return an()?t instanceof Node||t instanceof ze(t).Node:!1}function mt(t){return an()?t instanceof Element||t instanceof ze(t).Element:!1}function Bt(t){return an()?t instanceof HTMLElement||t instanceof ze(t).HTMLElement:!1}function sl(t){return!an()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof ze(t).ShadowRoot}function Ei(t){let{overflow:e,overflowX:r,overflowY:i,display:o}=gt(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&o!=="inline"&&o!=="contents"}function ll(t){return/^(table|td|th)$/.test(vr(t))}function Ai(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var Dp=/transform|translate|scale|rotate|perspective|filter/,Pp=/paint|layout|strict|content/,br=t=>!!t&&t!=="none",Mo;function Vr(t){let e=mt(t)?gt(t):t;return br(e.transform)||br(e.translate)||br(e.scale)||br(e.rotate)||br(e.perspective)||!ln()&&(br(e.backdropFilter)||br(e.filter))||Dp.test(e.willChange||"")||Pp.test(e.contain||"")}function cl(t){let e=Gt(t);for(;Bt(e)&&!Hr(e);){if(Vr(e))return e;if(Ai(e))return null;e=Gt(e)}return null}function ln(){return Mo==null&&(Mo=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Mo}function Hr(t){return/^(html|body|#document)$/.test(vr(t))}function gt(t){return ze(t).getComputedStyle(t)}function Ci(t){return mt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Gt(t){if(vr(t)==="html")return t;let e=t.assignedSlot||t.parentNode||sl(t)&&t.host||Ft(t);return sl(e)?e.host:e}function dl(t){let e=Gt(t);return Hr(e)?(t.ownerDocument||t).body:Bt(e)&&Ei(e)?e:dl(e)}function sn(t,e,r){var i;e===void 0&&(e=[]),r===void 0&&(r=!0);let o=dl(t),n=o===((i=t.ownerDocument)==null?void 0:i.body),s=ze(o);if(n){let a=cn(s);return e.concat(s,s.visualViewport||[],Ei(o)?o:[],a&&r?sn(a):[])}else return e.concat(o,sn(o,[],r))}function cn(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function fl(t){let e=gt(t),r=parseFloat(e.width)||0,i=parseFloat(e.height)||0,o=Bt(t),n=o?t.offsetWidth:r,s=o?t.offsetHeight:i,a=xi(r)!==n||xi(i)!==s;return a&&(r=n,i=s),{width:r,height:i,$:a}}function hl(t){return mt(t)?t:t.contextElement}function jr(t){let e=hl(t);if(!Bt(e))return _t(1);let r=e.getBoundingClientRect(),{width:i,height:o,$:n}=fl(e),s=(n?xi(r.width):r.width)/i,a=(n?xi(r.height):r.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}var Ip=_t(0);function ml(t){let e=ze(t);return!ln()||!e.visualViewport?Ip:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Mp(t,e,r){return e===void 0&&(e=!1),!!r&&e&&r===ze(t)}function wi(t,e,r,i){e===void 0&&(e=!1),r===void 0&&(r=!1);let o=t.getBoundingClientRect(),n=hl(t),s=_t(1);e&&(i?mt(i)&&(s=jr(i)):s=jr(t));let a=Mp(n,r,i)?ml(n):_t(0),l=(o.left+a.x)/s.x,d=(o.top+a.y)/s.y,u=o.width/s.x,p=o.height/s.y;if(n&&i){let f=ze(n),b=mt(i)?ze(i):i,x=f,R=cn(x);for(;R&&b!==x;){let v=jr(R),L=R.getBoundingClientRect(),H=gt(R),S=L.left+(R.clientLeft+parseFloat(H.paddingLeft))*v.x,A=L.top+(R.clientTop+parseFloat(H.paddingTop))*v.y;l*=v.x,d*=v.y,u*=v.x,p*=v.y,l+=S,d+=A,x=ze(R),R=cn(x)}}return yr({width:u,height:p,x:l,y:d})}function dn(t,e){let r=Ci(t).scrollLeft;return e?e.left+r:wi(Ft(t)).left+r}function gl(t,e){let r=t.getBoundingClientRect(),i=r.left+e.scrollLeft-dn(t,r),o=r.top+e.scrollTop;return{x:i,y:o}}function Np(t){let{elements:e,rect:r,offsetParent:i,strategy:o}=t,n=o==="fixed",s=Ft(i),a=e?Ai(e.floating):!1;if(i===s||a&&n)return r;let l={scrollLeft:0,scrollTop:0},d=_t(1),u=_t(0),p=Bt(i);if((p||!n)&&((vr(i)!=="body"||Ei(s))&&(l=Ci(i)),p)){let b=wi(i);d=jr(i),u.x=b.x+i.clientLeft,u.y=b.y+i.clientTop}let f=s&&!p&&!n?gl(s,l):_t(0);return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-l.scrollLeft*d.x+u.x+f.x,y:r.y*d.y-l.scrollTop*d.y+u.y+f.y}}function Fp(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function Bp(t){let e=Ci(t),r=t.ownerDocument.body,i=qt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=qt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),n=-e.scrollLeft+dn(t),s=-e.scrollTop;return gt(r).direction==="rtl"&&(n+=qt(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:n,y:s}}var Up=25;function zp(t,e,r){r===void 0&&(r="viewport");let i=r==="layoutViewport",o=ze(t),n=Ft(t),s=o.visualViewport,a=n.clientWidth,l=n.clientHeight,d=0,u=0;if(s){let f=!ln()||e==="fixed";i?f||(d=-s.offsetLeft,u=-s.offsetTop):(a=s.width,l=s.height,f&&(d=s.offsetLeft,u=s.offsetTop))}if(dn(n)<=0){let f=n.ownerDocument,b=f.body,x=getComputedStyle(b),R=f.compatMode==="CSS1Compat"&&parseFloat(x.marginLeft)+parseFloat(x.marginRight)||0,v=Math.abs(n.clientWidth-b.clientWidth-R),L=getComputedStyle(n).scrollbarGutter==="stable both-edges"?v/2:v;L<=Up&&(a-=L)}return{width:a,height:l,x:d,y:u}}function Vp(t,e){let r=wi(t,!0,e==="fixed"),i=r.top+t.clientTop,o=r.left+t.clientLeft,n=jr(t),s=t.clientWidth*n.x,a=t.clientHeight*n.y,l=o*n.x,d=i*n.y;return{width:s,height:a,x:l,y:d}}function ul(t,e,r){let i;if(e==="viewport"||e==="layoutViewport")i=zp(t,r,e);else if(e==="document")i=Bp(Ft(t));else if(mt(e))i=Vp(e,r);else{let o=ml(t);i={x:e.x-o.x,y:e.y-o.y,width:e.width,height:e.height}}return yr(i)}function Hp(t,e){let r=e.get(t);if(r)return r;let i=sn(t,[],!1).filter(a=>mt(a)&&vr(a)!=="body"),o=null,n=gt(t).position==="fixed",s=n?Gt(t):t;for(;mt(s)&&!Hr(s);){let a=gt(s),l=Vr(s),d=o?o.position:n?"fixed":"";!l&&(d==="fixed"||d==="absolute"&&a.position==="static")?i=i.filter(p=>p!==s):o=a,s=Gt(s)}return e.set(t,i),i}function jp(t){let{element:e,boundary:r,rootBoundary:i,strategy:o}=t,s=[...r==="clippingAncestors"?Ai(e)?[]:Hp(e,this._c):[].concat(r),i],a=ul(e,s[0],o),l=a.top,d=a.right,u=a.bottom,p=a.left;for(let f=1;f<s.length;f++){let b=ul(e,s[f],o);l=qt(b.top,l),d=vi(b.right,d),u=vi(b.bottom,u),p=qt(b.left,p)}return{width:d-p,height:u-l,x:p,y:l}}function Wp(t){let{width:e,height:r}=fl(t);return{width:e,height:r}}function qp(t,e,r){let i=Bt(e),o=Ft(e),n=r==="fixed",s=wi(t,!0,n,e),a={scrollLeft:0,scrollTop:0},l=_t(0);if((i||!n)&&((vr(e)!=="body"||Ei(o))&&(a=Ci(e)),i)){let f=wi(e,!0,n,e);l.x=f.x+e.clientLeft,l.y=f.y+e.clientTop}!i&&o&&(l.x=dn(o));let d=o&&!i&&!n?gl(o,a):_t(0),u=s.left+a.scrollLeft-l.x-d.x,p=s.top+a.scrollTop-l.y-d.y;return{x:u,y:p,width:s.width,height:s.height}}function No(t){return gt(t).position==="static"}function pl(t,e){if(!Bt(t)||gt(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return Ft(t)===r&&(r=r.ownerDocument.body),r}function yl(t,e){let r=ze(t);if(Ai(t))return r;if(!Bt(t)){let o=Gt(t);for(;o&&!Hr(o);){if(mt(o)&&!No(o))return o;o=Gt(o)}return r}let i=pl(t,e);for(;i&&ll(i)&&No(i);)i=pl(i,e);return i&&Hr(i)&&No(i)&&!Vr(i)?r:i||cl(t)||r}var Kp=async function(t){let e=this.getOffsetParent||yl,r=this.getDimensions,i=await r(t.floating);return{reference:qp(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function Gp(t){return gt(t).direction==="rtl"}var un={convertOffsetParentRelativeRectToViewportRelativeRect:Np,getDocumentElement:Ft,getClippingRect:jp,getOffsetParent:yl,getElementRects:Kp,getClientRects:Fp,getDimensions:Wp,getScale:jr,isElement:mt,isRTL:Gp};var bl=nl,vl=ol;var xl=(t,e,r)=>{let i=new Map,o=r??{},n={...un,...o.platform,_c:i};return il(t,e,{...o,platform:n})};function Sl(t){return Xp(t)}function Fo(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Xp(t){for(let e=t;e;e=Fo(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Fo(t);e;e=Fo(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||Vr(r)||e.tagName==="BODY"))return e}return null}async function El(t,e,r){let i;return typeof r=="object"?i=r:i={placement:r},xl(t,e,{strategy:i.strategy,platform:{...un,getOffsetParent:o=>un.getOffsetParent(o,Sl)},middleware:[vl({crossAxis:!0}),bl({allowedPlacements:[i.placement]})]})}var Jr=c(m());var ss=c(j());var Al=c(j(),1);var Bo=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)},Yp=t=>({fromAttribute:e=>{if(e==null)return _i(t);try{return JSON.parse(e)}catch{return _i(t)}},toAttribute:e=>JSON.stringify(e)});function Cl(t,e){return(0,Al.property)({type:Object,converter:Yp(t),hasChanged:Oi,...e??{}})}function Zp(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;let r,i;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(i=r;i--!==0;)if(!Wr(t[i],e[i]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;for(i of t.entries())if(!Wr(i[1],e.get(i[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let o=s=>Object.keys(s).filter(a=>s[a]!=null),n=o(t);if(r=n.length,r!==o(e).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,n[i]))return!1;for(i=r;i--!==0;){let s=n[i];if(!Wr(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function Wr(t,e){try{return Zp(t,e)}catch{return!1}}function Oi(t,e){return!Wr(t,e)}function _i(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function pn(t,e){let r=i=>i[t]===!0;return i=>{if(r(i))return i;let o=e(i);return o[t]=!0,o}}var wl=c(j(),1);var Uo=t=>{let e=t??{};return(r,i)=>{var o;let n={hasChanged:Oi,attribute:!1,...e};(0,wl.property)(n)(r,i);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(i,{selector:(o=e.selector)!==null&&o!==void 0?o:(a=>a[i]),store:e.store})}};var fn=class{constructor(){this.queue=[]}add(e,r=!1){r&&this.clear(e.type),this.queue.push(e)}consume(e){let r=this.queue.find(i=>i.type===e);return r&&(this.queue=this.queue.filter(i=>i!==r)),r}clear(e){typeof e=="string"?this.queue=this.queue.filter(r=>r.type!==e):this.queue=this.queue.filter(r=>!e.test(r.type))}};var xr=c(j(),1);var hn=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,r){return this.callbacks=[e],this.debounce(r)}queue(e,r){return this.callbacks.push(e),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((r,i)=>{this.resolvePromise=r,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let i=[...this.callbacks];this.callbacks=[];let o=(e=this.rejectPromise)!==null&&e!==void 0?e:(()=>null),n=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let s of i)try{await s()}catch(a){o(a);return}n(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var gn=c(E(),1);var mn=class extends gn.LitElement{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let e=this.scopedRegistryConstructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,e.defineScopedElements(e.elementDefinitions));let r={...e.shadowRootOptions,customElements:e.registry},i=this.renderOptions.creationScope=this.attachShadow(r);return(0,gn.adoptStyles)(i,e.elementStyles),i}static canDefineScopedElement(e){return!!this.registry&&!this.registry.get(e)}static defineScopedElements(e){Object.entries(e).forEach(([r,i])=>this.defineScopedElement(r,i))}static defineScopedElement(e,r){Bo(e)(r),this.canDefineScopedElement(e)&&this.registry.define(e,r)}canDefineScopedElement(e){return this.scopedRegistryConstructor.canDefineScopedElement(e)}defineScopedElements(e){this.scopedRegistryConstructor.defineScopedElements(e)}defineScopedElement(e,r){this.scopedRegistryConstructor.defineScopedElement(e,r)}};function _l(t,e,...r){var i;let o=t.querySelector(e);for(let n of r)o=(i=o?.shadowRoot)===null||i===void 0?void 0:i.querySelector(n);return o}var Kr=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},kl,Ol=Symbol("constructorPrototype"),Rl=Symbol("constructorName"),Ll=Symbol("exportpartsDebouncer"),Tl=Symbol("dynamicDependenciesLoaded"),qr=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};qr.eventName="exportparts-updated";var Ot=class extends mn{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[kl]=new hn(5),this.scheduleExportpartsUpdate=()=>{var e,r,i;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(i=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&i!==void 0&&i)&&this[Ll].run(()=>{var o,n;!((o=this.exportpartsPrefix)===null||o===void 0)&&o.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((n=this.exportpartsPrefixes)===null||n===void 0?void 0:n.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[Rl]=this.constructor.name,this[Ol]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Rl]&&Object.setPrototypeOf(this,this[Ol])}connectedCallback(){var e;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(i){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",i)}let r=this.constructor;r[Tl]||(r[Tl]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(qr.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(qr.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate(),e.has("exportparts")&&this.dispatchEvent(new qr)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:i,shadowPath:o}=this.elementToFocus;if(i!=null){let n=[...o??[],i];r=_l(this.shadowRoot,...n)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var r,i,o;if(((i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(n=>n.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((o=this.customStylesheet)!==null&&o!==void 0?o:"")}catch(n){console.error(n,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let n=document.createElement("style");n.classList.add("ft-lit-element--custom-stylesheet"),n.innerHTML=this.customStylesheet,this.shadowRoot.append(n)}}setExportpartsAttribute(e){var r,i,o,n,s,a;let l=f=>f!=null&&f.trim().length>0,d=e.filter(l).map(f=>f.trim());if(d.length===0){this.exportparts=void 0;return}let u=new Set;for(let f of(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let b=(s=(i=f.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&s!==void 0?s:[],x=(a=(o=f.getAttribute("exportparts"))===null||o===void 0?void 0:o.split(",").map(v=>v.split(":")[1]))!==null&&a!==void 0?a:[],R=[...b,...x].filter(l).map(v=>v.trim());for(let v of R)u.add(v)}if(u.size===0){this.exportparts=void 0;return}let p=[...u.values()].flatMap(f=>d.map(b=>`${f}:${b}--${f}`));this.exportparts=[...this.part,...p].join(", ")}};kl=Ll;Kr([(0,xr.property)()],Ot.prototype,"exportpartsPrefix",void 0);Kr([Cl([])],Ot.prototype,"exportpartsPrefixes",void 0);Kr([(0,xr.property)({reflect:!0})],Ot.prototype,"exportparts",void 0);Kr([(0,xr.property)()],Ot.prototype,"customStylesheet",void 0);Kr([(0,xr.property)()],Ot.prototype,"elementToFocus",void 0);Kr([(0,xr.state)()],Ot.prototype,"useAdoptedStyleSheets",void 0);function yn(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Ri=Symbol("internalReduxEventsUnsubscribers"),Xt=Symbol("internalStoresUnsubscribers"),Sr=Symbol("internalStores"),Qp=pn(Symbol("withRedux"),function(t){var e,r,i;class o extends t{constructor(){super(...arguments),this[e]=new Map,this[r]=new Map,this[i]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(a=>s.has(a))&&this.updateFromStores()}getUnnamedStore(){if(this[Sr].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Sr].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[Sr].get(s)}addStore(s,a){var l;a=(l=a??s.name)!==null&&l!==void 0?l:"default-store",this.unsubscribeFromStore(a),this[Sr].set(a,s),this.subscribeToStore(a,s),this.updateFromStores()}removeStore(s){let a=typeof s=="string"?s:s.name;this.unsubscribeFromStore(a),this[Sr].delete(a)}setupStores(){this.unsubscribeFromStores(),this[Sr].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 d=this.getStore(s.store);d&&(s.store?this[Xt].has(s.store):this[Xt].size>0)&&(this[a]=s.selector(d.getState(),this))}})}subscribeToStore(s,a){var l;this[Xt].set(s,a.subscribe(()=>this.updateFromStores())),this[Ri].set(s,[]),yn(a)&&a.eventBus&&((l=this.reduxConstructor.reduxEventListeners)===null||l===void 0||l.forEach((d,u)=>{if(typeof this[u]=="function"&&(!d.store||a.name===d.store)){let p=f=>this[u](f);a.addEventListener(d.eventName,p),this[Ri].get(s).push(()=>a.removeEventListener(d.eventName,p))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[Xt].forEach((s,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(s){var a;this[Xt].has(s)&&this[Xt].get(s)(),this[Xt].delete(s),(a=this[Ri].get(s))===null||a===void 0||a.forEach(l=>l()),this[Ri].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=Xt,r=Sr,i=Ri,o.reduxProperties=new Map,o.reduxReactiveProperties=new Set,o.reduxEventListeners=new Map,o}),$l=class extends Qp(Ot){};function Ee(t){return`Minified Redux error #${t}; visit https://redux.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var Jp=typeof Symbol=="function"&&Symbol.observable||"@@observable",Dl=Jp,zo=()=>Math.random().toString(36).substring(7).split("").join("."),ef={INIT:`@@redux/INIT${zo()}`,REPLACE:`@@redux/REPLACE${zo()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${zo()}`},bn=ef;function vn(t){if(typeof t!="object"||t===null)return!1;let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e||Object.getPrototypeOf(t)===null}function Vo(t,e,r){if(typeof t!="function")throw new Error(Ee(2));if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(Ee(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Ee(1));return r(Vo)(t,e)}let i=t,o=e,n=new Map,s=n,a=0,l=!1;function d(){s===n&&(s=new Map,n.forEach((v,L)=>{s.set(L,v)}))}function u(){if(l)throw new Error(Ee(3));return o}function p(v){if(typeof v!="function")throw new Error(Ee(4));if(l)throw new Error(Ee(5));let L=!0;d();let H=a++;return s.set(H,v),function(){if(L){if(l)throw new Error(Ee(6));L=!1,d(),s.delete(H),n=null}}}function f(v){if(!vn(v))throw new Error(Ee(7));if(typeof v.type>"u")throw new Error(Ee(8));if(typeof v.type!="string")throw new Error(Ee(17));if(l)throw new Error(Ee(9));try{l=!0,o=i(o,v)}finally{l=!1}return(n=s).forEach(H=>{H()}),v}function b(v){if(typeof v!="function")throw new Error(Ee(10));i=v,f({type:bn.REPLACE})}function x(){let v=p;return{subscribe(L){if(typeof L!="object"||L===null)throw new Error(Ee(11));function H(){let A=L;A.next&&A.next(u())}return H(),{unsubscribe:v(H)}},[Dl](){return this}}}return f({type:bn.INIT}),{dispatch:f,subscribe:p,getState:u,replaceReducer:b,[Dl]:x}}function tf(t){Object.keys(t).forEach(e=>{let r=t[e];if(typeof r(void 0,{type:bn.INIT})>"u")throw new Error(Ee(12));if(typeof r(void 0,{type:bn.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Ee(13))})}function Ho(t){let e=Object.keys(t),r={};for(let s=0;s<e.length;s++){let a=e[s];typeof t[a]=="function"&&(r[a]=t[a])}let i=Object.keys(r),o,n;try{tf(r)}catch(s){n=s}return function(a={},l){if(n)throw n;let d=!1,u={};for(let p=0;p<i.length;p++){let f=i[p],b=r[f],x=a[f],R=b(x,l);if(typeof R>"u"){let v=l&&l.type;throw new Error(Ee(14))}u[f]=R,d=d||R!==x}return d=d||i.length!==Object.keys(a).length,d?u:a}}function Ti(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce((e,r)=>(...i)=>e(r(...i)))}function Pl(...t){return e=>(r,i)=>{let o=e(r,i),n=()=>{throw new Error(Ee(15))},s={getState:o.getState,dispatch:(l,...d)=>n(l,...d)},a=t.map(l=>l(s));return n=Ti(...a)(o.dispatch),{...o,dispatch:n}}}function Il(t){return vn(t)&&"type"in t&&typeof t.type=="string"}var jl=Symbol.for("immer-nothing"),Ml=Symbol.for("immer-draftable"),ke=Symbol.for("immer-state");function yt(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var qe=Object,Xr=qe.getPrototypeOf,An="constructor",Tn="prototype",Ko="configurable",Cn="enumerable",Sn="writable",ki="value",Rt=t=>!!t&&!!t[ke];function Ke(t){return t?Wl(t)||Ln(t)||!!t[Ml]||!!t[An]?.[Ml]||$n(t)||Dn(t):!1}var rf=qe[Tn][An].toString(),Nl=new WeakMap;function Wl(t){if(!t||!ts(t))return!1;let e=Xr(t);if(e===null||e===qe[Tn])return!0;let r=qe.hasOwnProperty.call(e,An)&&e[An];if(r===Object)return!0;if(!Gr(r))return!1;let i=Nl.get(r);return i===void 0&&(i=Function.toString.call(r),Nl.set(r,i)),i===rf}function kn(t,e,r=!0){Di(t)===0?(r?Reflect.ownKeys(t):qe.keys(t)).forEach(o=>{e(o,t[o],t)}):t.forEach((i,o)=>e(o,i,t))}function Di(t){let e=t[ke];return e?e.type_:Ln(t)?1:$n(t)?2:Dn(t)?3:0}var jo=(t,e,r=Di(t))=>r===2?t.has(e):qe[Tn].hasOwnProperty.call(t,e),Go=(t,e,r=Di(t))=>r===2?t.get(e):t[e],wn=(t,e,r,i=Di(t))=>{i===2?t.set(e,r):i===3?t.add(r):t[e]=r};function nf(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}var Ln=Array.isArray,$n=t=>t instanceof Map,Dn=t=>t instanceof Set,ts=t=>typeof t=="object",Gr=t=>typeof t=="function",Wo=t=>typeof t=="boolean";function of(t){let e=+t;return Number.isInteger(e)&&String(e)===t}var Ut=t=>t.copy_||t.base_;var rs=t=>t.modified_?t.copy_:t.base_;function Xo(t,e){if($n(t))return new Map(t);if(Dn(t))return new Set(t);if(Ln(t))return Array[Tn].slice.call(t);let r=Wl(t);if(e===!0||e==="class_only"&&!r){let i=qe.getOwnPropertyDescriptors(t);delete i[ke];let o=Reflect.ownKeys(i);for(let n=0;n<o.length;n++){let s=o[n],a=i[s];a[Sn]===!1&&(a[Sn]=!0,a[Ko]=!0),(a.get||a.set)&&(i[s]={[Ko]:!0,[Sn]:!0,[Cn]:a[Cn],[ki]:t[s]})}return qe.create(Xr(t),i)}else{let i=Xr(t);if(i!==null&&r)return{...t};let o=qe.create(i);return qe.assign(o,t)}}function Pn(t,e=!1){return In(t)||Rt(t)||!Ke(t)||(Di(t)>1&&qe.defineProperties(t,{set:xn,add:xn,clear:xn,delete:xn}),qe.freeze(t),e&&kn(t,(r,i)=>{Pn(i,!0)},!1)),t}function sf(){yt(2)}var xn={[ki]:sf};function In(t){return t===null||!ts(t)?!0:qe.isFrozen(t)}var _n="MapSet",Yo="Patches",Fl="ArrayMethods",ql={};function Er(t){let e=ql[t];return e||yt(0,t),e}var Bl=t=>!!ql[t];var Li,Kl=()=>Li,af=(t,e)=>({drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Bl(_n)?Er(_n):void 0,arrayMethodsPlugin_:Bl(Fl)?Er(Fl):void 0});function Ul(t,e){e&&(t.patchPlugin_=Er(Yo),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function Zo(t){Qo(t),t.drafts_.forEach(lf),t.drafts_=null}function Qo(t){t===Li&&(Li=t.parent_)}var zl=t=>Li=af(Li,t);function lf(t){let e=t[ke];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function Vl(t,e){e.unfinalizedDrafts_=e.drafts_.length;let r=e.drafts_[0];if(t!==void 0&&t!==r){r[ke].modified_&&(Zo(e),yt(4)),Ke(t)&&(t=Hl(e,t));let{patchPlugin_:o}=e;o&&o.generateReplacementPatches_(r[ke].base_,t,e)}else t=Hl(e,r);return cf(e,t,!0),Zo(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==jl?t:void 0}function Hl(t,e){if(In(e))return e;let r=e[ke];if(!r)return On(e,t.handledSet_,t);if(!Mn(r,t))return e;if(!r.modified_)return r.base_;if(!r.finalized_){let{callbacks_:i}=r;if(i)for(;i.length>0;)i.pop()(t);Yl(r,t)}return r.copy_}function cf(t,e,r=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&Pn(e,r)}function Gl(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}var Mn=(t,e)=>t.scope_===e,df=[];function Xl(t,e,r,i){let o=Ut(t),n=t.type_;if(i!==void 0&&Go(o,i,n)===e){wn(o,i,r,n);return}if(!t.draftLocations_){let a=t.draftLocations_=new Map;kn(o,(l,d)=>{if(Rt(d)){let u=a.get(d)||[];u.push(l),a.set(d,u)}})}let s=t.draftLocations_.get(e)??df;for(let a of s)wn(o,a,r,n)}function uf(t,e,r){t.callbacks_.push(function(o){let n=e;if(!n||!Mn(n,o))return;o.mapSetPlugin_?.fixSetContents(n);let s=rs(n);Xl(t,n.draft_??n,s,r),Yl(n,o)})}function Yl(t,e){if(t.modified_&&!t.finalized_&&(t.type_===3||t.type_===1&&t.allIndicesReassigned_||(t.assigned_?.size??0)>0)){let{patchPlugin_:i}=e;if(i){let o=i.getPath(t);o&&i.generatePatches_(t,o,e)}Gl(t)}}function pf(t,e,r){let{scope_:i}=t;if(Rt(r)){let o=r[ke];Mn(o,i)&&o.callbacks_.push(function(){En(t);let s=rs(o);Xl(t,r,s,e)})}else Ke(r)&&t.callbacks_.push(function(){let n=Ut(t);t.type_===3?n.has(r)&&On(r,i.handledSet_,i):Go(n,e,t.type_)===r&&i.drafts_.length>1&&(t.assigned_.get(e)??!1)===!0&&t.copy_&&On(Go(t.copy_,e,t.type_),i.handledSet_,i)})}function On(t,e,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||Rt(t)||e.has(t)||!Ke(t)||In(t)||(e.add(t),kn(t,(i,o)=>{if(Rt(o)){let n=o[ke];if(Mn(n,r)){let s=rs(n);wn(t,i,s,t.type_),Gl(n)}}else Ke(o)&&On(o,e,r)})),t}function ff(t,e){let r=Ln(t),i={type_:r?1:0,scope_:e?e.scope_:Kl(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},o=i,n=Rn;r&&(o=[i],n=$i);let{revoke:s,proxy:a}=Proxy.revocable(o,n);return i.draft_=a,i.revoke_=s,[a,i]}var Rn={get(t,e){if(e===ke)return t;let r=t.scope_.arrayMethodsPlugin_,i=t.type_===1&&typeof e=="string";if(i&&r?.isArrayOperationMethod(e))return r.createMethodInterceptor(t,e);let o=Ut(t);if(!jo(o,e,t.type_))return mf(t,o,e);let n=o[e];if(t.finalized_||!Ke(n)||i&&t.operationMethod&&r?.isMutatingArrayMethod(t.operationMethod)&&of(e))return n;if(n===qo(t.base_,e)||hf(t,e,n)){En(t);let s=t.type_===1?+e:e,a=es(t.scope_,n,t,s);return t.copy_[s]=a}return n},has(t,e){return e in Ut(t)},ownKeys(t){return Reflect.ownKeys(Ut(t))},set(t,e,r){let i=Zl(Ut(t),e);if(i?.set)return i.set.call(t.draft_,r),!0;if(!t.modified_){let o=qo(Ut(t),e),n=o?.[ke];if(n&&n.base_===r)return t.copy_[e]=r,t.assigned_.delete(e),!0;if(nf(r,o)&&(r!==void 0||jo(t.base_,e,t.type_)))return!0;En(t),Jo(t)}return t.copy_[e]===r&&(r!==void 0||jo(t.copy_,e,t.type_))||Number.isNaN(r)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=r,t.assigned_.set(e,!0),pf(t,e,r)),!0},deleteProperty(t,e){return En(t),qo(t.base_,e)!==void 0||e in t.base_?(t.assigned_.set(e,!1),Jo(t)):t.assigned_.delete(e),t.copy_&&delete t.copy_[e],!0},getOwnPropertyDescriptor(t,e){let r=Ut(t),i=Reflect.getOwnPropertyDescriptor(r,e);return i&&{[Sn]:!0,[Ko]:t.type_!==1||e!=="length",[Cn]:i[Cn],[ki]:r[e]}},defineProperty(){yt(11)},getPrototypeOf(t){return Xr(t.base_)},setPrototypeOf(){yt(12)}},$i={};for(let t in Rn){let e=Rn[t];$i[t]=function(){let r=arguments;return r[0]=r[0][0],e.apply(this,r)}}$i.deleteProperty=function(t,e){return $i.set.call(this,t,e,void 0)};$i.set=function(t,e,r){return Rn.set.call(this,t[0],e,r,t[0])};function qo(t,e){let r=t[ke];return(r?Ut(r):t)[e]}function hf(t,e,r){return t.type_!==1||!t.allIndicesReassigned_||t.assigned_?.get(e)||!Ke(r)||r[ke]?!1:t.baseRefs_.has(r)}function mf(t,e,r){let i=Zl(e,r);return i?ki in i?i[ki]:i.get?.call(t.draft_):void 0}function Zl(t,e){if(!(e in t))return;let r=Xr(t);for(;r;){let i=Object.getOwnPropertyDescriptor(r,e);if(i)return i;r=Xr(r)}}function Jo(t){t.modified_||(t.modified_=!0,t.parent_&&Jo(t.parent_))}function En(t){t.copy_||(t.assigned_=new Map,t.copy_=Xo(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var gf=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,r,i)=>{if(Gr(e)&&!Gr(r)){let n=r;r=e;let s=this;return function(l=n,...d){return s.produce(l,u=>r.call(this,u,...d))}}Gr(r)||yt(6),i!==void 0&&!Gr(i)&&yt(7);let o;if(Ke(e)){let n=zl(this),s=es(n,e,void 0),a=!0;try{o=r(s),a=!1}finally{a?Zo(n):Qo(n)}return Ul(n,i),Vl(o,n)}else if(!e||!ts(e)){if(o=r(e),o===void 0&&(o=e),o===jl&&(o=void 0),this.autoFreeze_&&Pn(o,!0),i){let n=[],s=[];Er(Yo).generateReplacementPatches_(e,o,{patches_:n,inversePatches_:s}),i(n,s)}return o}else yt(1,e)},this.produceWithPatches=(e,r)=>{if(Gr(e))return(s,...a)=>this.produceWithPatches(s,l=>e(l,...a));let i,o;return[this.produce(e,r,(s,a)=>{i=s,o=a}),i,o]},Wo(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),Wo(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),Wo(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){Ke(t)||yt(8),Rt(t)&&(t=Ql(t));let e=zl(this),r=es(e,t,void 0);return r[ke].isManual_=!0,Qo(e),r}finishDraft(t,e){let r=t&&t[ke];(!r||!r.isManual_)&&yt(9);let{scope_:i}=r;return Ul(i,e),Vl(void 0,i)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,e){let r;for(r=e.length-1;r>=0;r--){let o=e[r];if(o.path.length===0&&o.op==="replace"){t=o.value;break}}r>-1&&(e=e.slice(r+1));let i=Er(Yo).applyPatches_;return Rt(t)?i(t,e):this.produce(t,o=>i(o,e))}};function es(t,e,r,i){let[o,n]=$n(e)?Er(_n).proxyMap_(e,r):Dn(e)?Er(_n).proxySet_(e,r):ff(e,r);return(r?.scope_??Kl()).drafts_.push(o),n.callbacks_=r?.callbacks_??[],n.key_=i,r&&i!==void 0?uf(r,n,i):n.callbacks_.push(function(l){l.mapSetPlugin_?.fixSetContents(n);let{patchPlugin_:d}=l;n.modified_&&d&&d.generatePatches_(n,[],l)}),o}function Ql(t){return Rt(t)||yt(10,t),Jl(t)}function Jl(t){if(!Ke(t)||In(t))return t;let e=t[ke],r,i=!0;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,r=Xo(t,e.scope_.immer_.useStrictShallowCopy_),i=e.scope_.immer_.shouldUseStrictIteration()}else r=Xo(t,!0);return kn(r,(o,n)=>{wn(r,o,Jl(n))},i),e&&(e.finalized_=!1),r}var yf=globalThis.Iterator,hg=typeof yf?.from=="function";var bf=new gf,is=bf.produce;function ec(t){return({dispatch:r,getState:i})=>o=>n=>typeof n=="function"?n(r,i,t):o(n)}var tc=ec(),rc=ec;var vf=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Ti:Ti.apply(null,arguments)};typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;var xf=t=>t&&typeof t.match=="function";function Yt(t,e){function r(...i){if(e){let o=e(...i);if(!o)throw new Error(Tt(0));return{type:t,payload:o.payload,..."meta"in o&&{meta:o.meta},..."error"in o&&{error:o.error}}}return{type:t,payload:i[0]}}return r.toString=()=>`${t}`,r.type=t,r.match=i=>Il(i)&&i.type===t,r}var ac=class Pi extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,Pi.prototype)}static get[Symbol.species](){return Pi}concat(...e){return super.concat.apply(this,e)}prepend(...e){return e.length===1&&Array.isArray(e[0])?new Pi(...e[0].concat(this)):new Pi(...e.concat(this))}};function ic(t){return Ke(t)?is(t,()=>{}):t}function Nn(t,e,r){return t.has(e)?t.get(e):t.set(e,r(e)).get(e)}function Sf(t){return typeof t=="boolean"}var Ef=()=>function(e){let{thunk:r=!0,immutableCheck:i=!0,serializableCheck:o=!0,actionCreatorCheck:n=!0}=e??{},s=new ac;return r&&(Sf(r)?s.push(tc):s.push(rc(r.extraArgument))),s},Af="RTK_autoBatch";var nc=t=>e=>{setTimeout(e,t)},Cf=(t,e)=>r=>{let i=!1,o,n,s=()=>{i||(i=!0,cancelAnimationFrame(o),clearTimeout(n),r())};o=t(s),n=setTimeout(s,e)},wf=(t={type:"raf"})=>e=>(...r)=>{let i=e(...r),o=!0,n=!1,s=!1,a=new Set,l=t.type==="tick"?queueMicrotask:t.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?Cf(window.requestAnimationFrame,100):nc(10):t.type==="callback"?t.queueNotification:nc(t.timeout),d=()=>{s=!1,n&&(n=!1,a.forEach(u=>u()))};return Object.assign({},i,{subscribe(u){let p=()=>o&&u(),f=i.subscribe(p);return a.add(u),()=>{f(),a.delete(u)}},dispatch(u){try{return o=!u?.meta?.[Af],n=!o,n&&(s||(s=!0,l(d))),i.dispatch(u)}finally{o=!0}}})},_f=t=>function(r){let{autoBatch:i=!0}=r??{},o=new ac(t);return i&&o.push(wf(typeof i=="object"?i:void 0)),o};function lc(t){let e=Ef(),{reducer:r=void 0,middleware:i,devTools:o=!0,duplicateMiddlewareCheck:n=!0,preloadedState:s=void 0,enhancers:a=void 0}=t||{},l;if(typeof r=="function")l=r;else if(vn(r))l=Ho(r);else throw new Error(Tt(1));let d;typeof i=="function"?d=i(e):d=e();let u=Ti;o&&(u=vf({trace:!1,...typeof o=="object"&&o}));let p=Pl(...d),f=_f(p),b=typeof a=="function"?a(f):f(),x=u(...b);return Vo(l,s,x)}function cc(t){let e={},r=[],i,o={addCase(n,s){let a=typeof n=="string"?n:n.type;if(!a)throw new Error(Tt(28));if(a in e)throw new Error(Tt(29));return e[a]=s,o},addAsyncThunk(n,s){return s.pending&&(e[n.pending.type]=s.pending),s.rejected&&(e[n.rejected.type]=s.rejected),s.fulfilled&&(e[n.fulfilled.type]=s.fulfilled),s.settled&&r.push({matcher:n.settled,reducer:s.settled}),o},addMatcher(n,s){return r.push({matcher:n,reducer:s}),o},addDefaultCase(n){return i=n,o}};return t(o),[e,r,i]}function Of(t){return typeof t=="function"}function Rf(t,e){let[r,i,o]=cc(e),n;if(Of(t))n=()=>ic(t());else{let a=ic(t);n=()=>a}function s(a=n(),l){let d=[r[l.type],...i.filter(({matcher:u})=>u(l)).map(({reducer:u})=>u)];return d.filter(u=>!!u).length===0&&(d=[o]),d.reduce((u,p)=>{if(p)if(Rt(u)){let f=p(u,l);return f===void 0?u:f}else{if(Ke(u))return is(u,f=>p(f,l));{let f=p(u,l);if(f===void 0){if(u===null)return u;throw new Error(Tt(9))}return f}}return u},a)}return s.getInitialState=n,s}var Tf=(t,e)=>xf(t)?t.match(e):t(e);function kf(...t){return e=>t.some(r=>Tf(r,e))}var Lf="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",$f=(t=21)=>{let e="",r=t;for(;r--;)e+=Lf[Math.random()*64|0];return e},Df=["name","message","stack","code"],ns=class{payload;meta;_type;constructor(t,e){this.payload=t,this.meta=e}},oc=class{payload;meta;_type;constructor(t,e){this.payload=t,this.meta=e}},Pf=t=>{if(typeof t=="object"&&t!==null){let e={};for(let r of Df)typeof t[r]=="string"&&(e[r]=t[r]);return e}return{message:String(t)}},sc="External signal was aborted",If=(()=>{function t(e,r,i){let o=Yt(e+"/fulfilled",(l,d,u,p)=>({payload:l,meta:{...p||{},arg:u,requestId:d,requestStatus:"fulfilled"}})),n=Yt(e+"/pending",(l,d,u)=>({payload:void 0,meta:{...u||{},arg:d,requestId:l,requestStatus:"pending"}})),s=Yt(e+"/rejected",(l,d,u,p,f)=>({payload:p,error:(i&&i.serializeError||Pf)(l||"Rejected"),meta:{...f||{},arg:u,requestId:d,rejectedWithValue:p!==void 0,requestStatus:"rejected",aborted:l?.name==="AbortError",condition:l?.name==="ConditionError"}}));function a(l,{signal:d}={}){return(u,p,f)=>{let b=i?.idGenerator?i.idGenerator(l):$f(),x=new AbortController,R,v;function L(S){v=S,x.abort()}d&&(d.aborted?L(sc):d.addEventListener("abort",()=>L(sc),{once:!0}));let H=(async function(){let S;try{let A=i?.condition?.(l,{getState:p,extra:f});if(Nf(A)&&(A=await A),A===!1)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};if(x.signal.aborted)throw{name:"AbortError",message:v||"Aborted"};let q=new Promise((z,ge)=>{R=()=>{ge({name:"AbortError",message:v||"Aborted"})},x.signal.addEventListener("abort",R,{once:!0})});u(n(b,l,i?.getPendingMeta?.({requestId:b,arg:l},{getState:p,extra:f}))),S=await Promise.race([q,Promise.resolve(r(l,{dispatch:u,getState:p,extra:f,requestId:b,signal:x.signal,abort:L,rejectWithValue:((z,ge)=>new ns(z,ge)),fulfillWithValue:((z,ge)=>new oc(z,ge))})).then(z=>{if(z instanceof ns)throw z;return z instanceof oc?o(z.payload,b,l,z.meta):o(z,b,l)})])}catch(A){S=A instanceof ns?s(null,b,l,A.payload,A.meta):s(A,b,l)}finally{R&&x.signal.removeEventListener("abort",R)}return i&&!i.dispatchConditionRejection&&s.match(S)&&S.meta.condition||u(S),S})();return Object.assign(H,{abort:L,requestId:b,arg:l,unwrap(){return H.then(Mf)}})}}return Object.assign(a,{pending:n,rejected:s,fulfilled:o,settled:kf(s,o),typePrefix:e})}return t.withTypes=()=>t,t})();function Mf(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Nf(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var dc=Symbol.for("rtk-slice-createasyncthunk"),Eg={[dc]:If};function Ff(t,e){return`${t}/${e}`}function Bf({creators:t}={}){let e=t?.asyncThunk?.[dc];return function(i){let{name:o,reducerPath:n=o}=i;if(!o)throw new Error(Tt(11));typeof process<"u";let s=(typeof i.reducers=="function"?i.reducers(zf()):i.reducers)||{},a=Object.keys(s),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},d={addCase(S,A){let q=typeof S=="string"?S:S.type;if(!q)throw new Error(Tt(12));if(q in l.sliceCaseReducersByType)throw new Error(Tt(13));return l.sliceCaseReducersByType[q]=A,d},addMatcher(S,A){return l.sliceMatchers.push({matcher:S,reducer:A}),d},exposeAction(S,A){return l.actionCreators[S]=A,d},exposeCaseReducer(S,A){return l.sliceCaseReducersByName[S]=A,d}};a.forEach(S=>{let A=s[S],q={reducerName:S,type:Ff(o,S),createNotation:typeof i.reducers=="function"};Hf(A)?Wf(q,A,d,e):Vf(q,A,d)});function u(){let[S={},A=[],q=void 0]=typeof i.extraReducers=="function"?cc(i.extraReducers):[i.extraReducers],z={...S,...l.sliceCaseReducersByType};return Rf(i.initialState,ge=>{for(let Te in z)ge.addCase(Te,z[Te]);for(let Te of l.sliceMatchers)ge.addMatcher(Te.matcher,Te.reducer);for(let Te of A)ge.addMatcher(Te.matcher,Te.reducer);q&&ge.addDefaultCase(q)})}let p=S=>S,f=new Map,b=new WeakMap,x;function R(S,A){return x||(x=u()),x(S,A)}function v(){return x||(x=u()),x.getInitialState()}function L(S,A=!1){function q(ge){let Te=ge[S];return typeof Te>"u"&&A&&(Te=Nn(b,q,v)),Te}function z(ge=p){return Nn(Nn(f,A,()=>new WeakMap),ge,()=>{let Te={};for(let[Yi,tt]of Object.entries(i.selectors??{}))Te[Yi]=Uf(tt,ge,()=>Nn(b,ge,v),A);return Te})}return{reducerPath:S,getSelectors:z,get selectors(){return z(q)},selectSlice:q}}let H={name:o,reducer:R,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:v,...L(n),injectInto(S,{reducerPath:A,...q}={}){let z=A??n;return S.inject({reducerPath:z,reducer:R},q),{...H,...L(z,!0)}}};return H}}function Uf(t,e,r,i){function o(n,...s){let a=e(n);return typeof a>"u"&&i&&(a=r()),t(a,...s)}return o.unwrapped=t,o}var uc=Bf();function zf(){function t(e,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...r}}return t.withTypes=()=>t,{reducer(e){return Object.assign({[e.name](...r){return e(...r)}}[e.name],{_reducerDefinitionType:"reducer"})},preparedReducer(e,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:r}},asyncThunk:t}}function Vf({type:t,reducerName:e,createNotation:r},i,o){let n,s;if("reducer"in i){if(r&&!jf(i))throw new Error(Tt(17));n=i.reducer,s=i.prepare}else n=i;o.addCase(t,n).exposeCaseReducer(e,n).exposeAction(e,s?Yt(t,s):Yt(t))}function Hf(t){return t._reducerDefinitionType==="asyncThunk"}function jf(t){return t._reducerDefinitionType==="reducerWithPrepare"}function Wf({type:t,reducerName:e},r,i,o){if(!o)throw new Error(Tt(18));let{payloadCreator:n,fulfilled:s,pending:a,rejected:l,settled:d,options:u}=r,p=o(t,n,u);i.exposeAction(e,p),s&&i.addCase(p.fulfilled,s),a&&i.addCase(p.pending,a),l&&i.addCase(p.rejected,l),d&&i.addMatcher(p.settled,d),i.exposeCaseReducer(e,{fulfilled:s||Fn,pending:a||Fn,rejected:l||Fn,settled:d||Fn})}function Fn(){}var pc="listener",fc="completed",hc="cancelled",Ag=`task-${hc}`,Cg=`task-${fc}`,wg=`${pc}-${hc}`,_g=`${pc}-${fc}`;var{assign:mc}=Object;var os="listenerMiddleware";var qf=mc(Yt(`${os}/add`),{withTypes:()=>qf}),Og=Yt(`${os}/removeAll`),Kf=mc(Yt(`${os}/remove`),{withTypes:()=>Kf});function Tt(t){return`Minified Redux Toolkit error #${t}; visit https://redux-toolkit.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var Gf=pn(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(r,i,o){this.eventBus.addEventListener(r,i,o)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,i,o){this.eventBus.removeEventListener(r,i,o)}}}),Bn=class extends Gf(Object){};window.ftReduxStores||(window.ftReduxStores={});var gc=class t extends Bn{static get(e){var r;let i=typeof e=="string"?e:e.name,o=typeof e=="string"?void 0:e,n=window.ftReduxStores[i];if(yn(n))return n;if(o==null)return;let s=uc({...o,reducers:(r=o.reducers)!==null&&r!==void 0?r:{}}),a=lc({reducer:(l,d)=>{if(d.type==="CLEAR_FT_REDUX_STORE"){let u=_i(s.getInitialState());for(let p of d.keeping)u[p]=(l??u)[p];return u}else if(typeof d.type=="string"&&d.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...l,...d.overwrites};return s.reducer(l,d)}});return window.ftReduxStores[o.name]=new t(s,a,o.eventBus)}constructor(e,r,i){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new fn,this.injectInto=(n,s)=>this.reduxSlice.injectInto(n,s),this.selectSlice=n=>this.reduxSlice.selectSlice(n);let o=n=>n!=null?JSON.parse(JSON.stringify(n)):n;this.actions=new Proxy(this.reduxSlice.actions,{get:(n,s,a)=>{let l=s,d=n[l];return d?(...u)=>{let p=d(...u.map(o));return this.reduxStore.dispatch(p),p}:u=>{let p=l,f=this.getState()[p];Wr(f,u)||this.setState({[p]:o(u)})}}}),this.eventBus=i??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...e){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:e})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}get selectors(){return this.reduxSlice.selectors}get reducerPath(){return this.reduxSlice.reducerPath}getSelectors(){return this.reduxSlice.getSelectors()}};var Un=class{static format(e,r,i,o,n){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(i,o,!!n)):this.getIntlDateTime(e,r,i,o,!!n)}static getMomentDateFormat(e,r,i){return i?"LT":e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,i,o,n){let s=typeof e=="string"?new Date(e):e,a=new Intl.DateTimeFormat(r,{dateStyle:i?"medium":"short"}).format(s),l=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(s);return n?l:o?`${a} ${l}`:a}static getTimezoneAsString(){let e=i=>String(Math.floor(i)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${e(Math.abs(r)/60)}:${e(Math.abs(r)%60)}`}};var zn=c(m()),Xf="ft-app-info",Ar=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Ar.eventName="authentication-change";var Ii=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Ii.eventName="ui-locale-changed";var Yf={session:(t,e)=>{(0,zn.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>_.dispatchEvent(new Ar(e.payload)),0))}},_=zn.FtReduxStore.get({name:Xf,reducers:Yf,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 yc=c(m()),Vn=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},iy=(0,yc.applyMixinOnce)(Symbol("withDateFormat"),function(t){class e extends t{constructor(...i){super(i),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(_)}dateFormatOptionsChanged(i){return i.has("metadataDescriptors")||i.has("useLongDateFormat")||i.has("useDateTimeFormat")||i.has("uiLocale")}getDateFormatter(i){var o,n;return((n=(o=this.metadataDescriptors.find(a=>a.key===i))===null||o===void 0?void 0:o.date)!==null&&n!==void 0?n:!1)?a=>Un.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Vn([(0,ss.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),Vn([(0,ss.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),Vn([Uo({store:_.name,selector:r=>{var i,o;return(o=(i=r.metadataConfiguration)===null||i===void 0?void 0:i.descriptors)!==null&&o!==void 0?o:[]}})],e.prototype,"metadataDescriptors",void 0),Vn([Uo({store:_.name})],e.prototype,"uiLocale",void 0),e});var bc;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(bc||(bc={}));var vc;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(vc||(vc={}));var xc;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(xc||(xc={}));var Sc;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(Sc||(Sc={}));var Ec;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Ec||(Ec={}));var Ac;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(Ac||(Ac={}));var Cc;(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(Cc||(Cc={}));var wc;(function(t){t.BOOKMARK__CREATE="BOOKMARK__CREATE",t.BOOKMARK__DELETE="BOOKMARK__DELETE",t.CASE_DEFLECTION__START="CASE_DEFLECTION__START",t.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",t.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",t.CHATBOT__RATE="CHATBOT__RATE",t.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",t.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",t.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",t.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",t.DOCUMENT__PRINT="DOCUMENT__PRINT",t.DOCUMENT__PROCESS="DOCUMENT__PROCESS",t.DOCUMENT__RATE="DOCUMENT__RATE",t.DOCUMENT__SEARCH="DOCUMENT__SEARCH",t.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",t.DOCUMENT__UNRATE="DOCUMENT__UNRATE",t.FEEDBACK__SEND="FEEDBACK__SEND",t.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",t.AI__RATE="AI__RATE",t.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",t.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",t.KHUB__PROCESS="KHUB__PROCESS",t.KHUB__SEARCH="KHUB__SEARCH",t.LABELS__DOWNLOAD="LABELS__DOWNLOAD",t.LINK__SHARE="LINK__SHARE",t.PAGE__DISPLAY="PAGE__DISPLAY",t.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",t.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",t.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",t.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",t.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",t.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",t.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",t.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",t.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",t.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",t.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",t.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",t.TOPIC__RATE="TOPIC__RATE",t.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",t.TOPIC__UNRATE="TOPIC__UNRATE",t.USER__LOGIN="USER__LOGIN",t.USER__LOGOUT="USER__LOGOUT",t.HEARTBEAT="HEARTBEAT"})(wc||(wc={}));var _c;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(_c||(_c={}));var Oc;(function(t){t.METADATA_FILTER="METADATA_FILTER",t.ACCESS_RIGHTS_FILTER="ACCESS_RIGHTS_FILTER"})(Oc||(Oc={}));var Rc;(function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"})(Rc||(Rc={}));var Tc;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT",t.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",t.LINK_PREVIEW="LINK_PREVIEW",t.UD_VIEWER="UD_VIEWER",t.ASSET_VIEWER="ASSET_VIEWER"})(Tc||(Tc={}));var kc;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(kc||(kc={}));var Lc;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Lc||(Lc={}));var $c;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})($c||($c={}));var Dc;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Dc||(Dc={}));var Pc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"})(Pc||(Pc={}));var Ic;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(Ic||(Ic={}));var Mc;(function(t){t.ASC="ASC",t.DESC="DESC"})(Mc||(Mc={}));var Nc;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Nc||(Nc={}));var Fc;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(Fc||(Fc={}));var Bc;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Bc||(Bc={}));var Uc;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Uc||(Uc={}));var zc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(zc||(zc={}));var Vc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Vc||(Vc={}));var Hc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Hc||(Hc={}));var jc;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(jc||(jc={}));var Wc;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Wc||(Wc={}));var fe;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",t.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(fe||(fe={}));var ot;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(ot||(ot={}));var qc;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(qc||(qc={}));var Kc;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(Kc||(Kc={}));var Gc;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Gc||(Gc={}));var Xc;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.SEMANTIC_SEARCH="SEMANTIC_SEARCH",t.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",t.DOCUMENTATION="DOCUMENTATION",t.OTHER="OTHER"})(Xc||(Xc={}));var Yc;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(Yc||(Yc={}));var Zc;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Zc||(Zc={}));var Qc;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Qc||(Qc={}));var Jc;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Jc||(Jc={}));var ed;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(ed||(ed={}));var td;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(td||(td={}));var rd;(function(t){t.SOURCES="SOURCES",t.ENRICH_AND_CLEAN="ENRICH_AND_CLEAN",t.VOCABULARIES="VOCABULARIES",t.METADATA="METADATA",t.PRETTY_URL="PRETTY_URL",t.ACCESS_RULE="ACCESS_RULE",t.DESIGNED_PAGES="DESIGNED_PAGES",t.THEME_STUDIO="THEME_STUDIO",t.PORTAL_GENERAL="PORTAL_GENERAL",t.ASSETS="ASSETS",t.CODE_LIBRARY="CODE_LIBRARY",t.THEME="THEME",t.CONTENT_STYLES="CONTENT_STYLES",t.HOMEPAGE="HOMEPAGE",t.CLASSIC_SEARCH_PAGE="CLASSIC_SEARCH_PAGE",t.CLASSIC_READER_PAGE="CLASSIC_READER_PAGE",t.PORTAL_METADATA="PORTAL_METADATA",t.LANGUAGES="LANGUAGES",t.PRINT_TEMPLATES="PRINT_TEMPLATES",t.OFFLINE="OFFLINE",t.CUSTOM_JS="CUSTOM_JS",t.CONFIDENTIALITY="CONFIDENTIALITY",t.NOTIFICATIONS="NOTIFICATIONS"})(rd||(rd={}));var id;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(id||(id={}));var Zf={[fe.PERSONAL_BOOK_SHARE_USER]:[fe.PERSONAL_BOOK_USER],[fe.HTML_EXPORT_USER]:[fe.PERSONAL_BOOK_USER],[fe.PDF_EXPORT_USER]:[fe.PERSONAL_BOOK_USER],[fe.KHUB_ADMIN]:[fe.CONTENT_PUBLISHER],[fe.ADMIN]:[fe.KHUB_ADMIN,fe.USERS_ADMIN,fe.PORTAL_ADMIN,fe.BEHAVIOR_DATA_USER],[fe.GENERATIVE_AI_EXPORT_USER]:[fe.GENERATIVE_AI_USER]};function nd(t,e){return t===e||(Zf[t]??[]).some(r=>nd(r,e))}function as(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(i=>nd(i,e))}function od(t,...e){return t==null?!1:e.some(r=>as(t,r))}var Kn=c(m());var ls=c(m());var Cr=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:i}=_.getState(),o=e??i;if(r&&o&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,o,!0)}static await(e){return new Promise(r=>{let i=t.get(e);if(i)r(i);else{let o=_.subscribe(()=>{i=t.get(e),i&&(o(),r(i))})}})}};var Yr=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Cr.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Cr.await()}};var Ge=class extends Yr{constructor(e=!0,r){var i;super(r),this.sortObjectFields=(n,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([a],[l])=>a.localeCompare(l)));let o=this.constructor;o.commonCache=(i=o.commonCache)!==null&&i!==void 0?i:new ls.CacheRegistry,this.cache=e?o.commonCache:new ls.CacheRegistry}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((r,i)=>0|31*r+i.charCodeAt(0),0))}};var Hn=class extends Ge{async listMySearches(){let{session:e}=_.getState();return as(e,fe.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var jn=class extends Ge{async listMyBookmarks(){let e=_.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}};var Wn=class extends Ge{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=_.getState().session;return!!e?.sessionAuthenticated}};var qn=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 e=_.getState().session;return!!e?.sessionAuthenticated}};var Qf="ft-user-assets",Jf={setAssetCount:(t,e)=>{let{userAssetType:r,count:i}=e.payload.assetCount;t.assetCounts.allAsset[r]=i},clearAssetCount:t=>{Object.values(ot).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let r=e.payload.mapId;t.assetCounts.bookmarkByMap[r]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:r,mapId:i,asset:o}=e.payload;ds(t,r,[...cs(t,r),o]),sd(t,r,1,i),ad(t,o)},editAsset:(t,e)=>{let{assetType:r,asset:i}=e.payload;ds(t,r,cs(t,r).map(o=>o.id===i.id?i:o)),ad(t,i)},removeAsset:(t,e)=>{let{assetType:r,mapId:i,assetId:o}=e.payload;ds(t,r,cs(t,r).filter(n=>n.id!==o)),sd(t,r,-1,i)}},ld={[ot.SEARCHES]:"savedSearches",[ot.BOOKMARKS]:"bookmarks",[ot.BOOKS]:void 0,[ot.COLLECTIONS]:void 0},cs=(t,e)=>{var r;let i=ld[e];return i?(r=t[i])!==null&&r!==void 0?r:[]:[]},ds=(t,e,r)=>{let i=ld[e];i&&(t[i]=r)},sd=(t,e,r,i)=>{let o=t.assetCounts.allAsset[e];if(o!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,o+r),e===ot.BOOKMARKS&&i)){let n=t.assetCounts.bookmarkByMap[i];t.assetCounts.bookmarkByMap[i]=Math.max(0,n+r)}},ad=(t,e)=>{let r=t.assetLabels.map(o=>o.title),i=e.labels.filter(o=>!r.includes(o)).map(o=>({title:o}));t.assetLabels.push(...i)},Pe=Kn.FtReduxStore.get({name:Qf,reducers:Jf,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(ot).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),us=class{constructor(e=new Wn,r=new qn){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=_.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new jn,this.savedSearchesService=new Hn,_.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=_.getState();(0,Kn.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),Pe.actions.clearAssetCount(),Pe.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Pe.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Pe.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Pe.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();Pe.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&Pe.getState().assetCounts.allAsset[e]!==r.count&&Pe.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&Pe.getState().assetCounts.bookmarkByMap[e]!==r.count&&Pe.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(Pe.getState().assetCounts.bookmarkByMap).length!==0;e===ot.BOOKMARKS&&r&&Pe.actions.clearBookmarkCountByMap(),Pe.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let r=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Pe.actions.bookmarks(r)}}},eh=new us;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=eh);var ps=class{addCommand(e,r=!1){_.commands.add(e,r)}consumeCommand(e){return _.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new ps;var st=c(m());var cd,Zr=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},th=Symbol("clearAfterUnitTest"),Gn=class extends(0,st.withEventBus)(Ge){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[cd]=()=>{this.defaultMessages={},this.cache=new st.CacheRegistry,this.listeners={}},this.currentUiLocale=_.getState().uiLocale,_.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=_.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let r=e.name.toLowerCase();this.cache.setFinal(r,e),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,r){var i;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let o={...(i=this.defaultMessages[e])!==null&&i!==void 0?i:{},...r};(0,st.deepEqual)(this.defaultMessages[e],o)||(this.defaultMessages[e]=o,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,i;return this.fetchContext(e),(i=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&i!==void 0?i:{}}resolveRawMessage(e,r){let i=e.toLowerCase();return this.resolveContext(i)[r]}resolveMessage(e,r,...i){var o;let n=e.toLowerCase(),s=this.resolveContext(n);return new st.ParametrizedLabelResolver((o=this.defaultMessages[n])!==null&&o!==void 0?o:{},s).resolve(r,...i)}async fetchContext(e){let r=!this.cache.has(e),i;try{i=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(o){!(o instanceof st.CanceledPromiseError)&&r&&console.error(o)}return i}subscribe(e,r){var i;return e=e.toLowerCase(),this.listeners[e]=(i=this.listeners[e])!==null&&i!==void 0?i:new Set,this.listeners[e].add(r),()=>{var o;return(o=this.listeners[e])===null||o===void 0?void 0:o.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new Zr({loadedContexts:e})),this.dispatchEvent(new Zr({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new Zr({loadedContexts:[e]})),this.dispatchEvent(new Zr({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(i=>(0,st.delay)(0).then(()=>i()).catch(()=>null)))}};cd=th;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Gn{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Gn{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var Mi=window.FluidTopicsI18nService,fs=window.FluidTopicsCustomI18nService;var dd=c(m()),hs=class{highlightHtml(e,r,i){(0,dd.highlightHtml)(e,r,i)}};window.FluidTopicsHighlightHtmlService=new hs;var ud=c(m());var ms=class{isDate(e){var r,i,o,n;return(n=(i=((o=(r=_.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&o!==void 0?o:[]).find(a=>a.key===e))===null||i===void 0?void 0:i.date)!==null&&n!==void 0?n:!1}format(e,r){var i,o,n,s;if(e==null)return"";try{return ud.DateFormatter.format(e,(i=r?.locale)!==null&&i!==void 0?i:_.getState().uiLocale,(o=r?.longFormat)!==null&&o!==void 0?o:!1,(n=r?.withTime)!==null&&n!==void 0?n:!1,(s=r?.onlyTime)!==null&&s!==void 0?s:!1)}catch(a){throw console.error(`Date ${JSON.stringify(e)} is not valid`,a),a}}};window.FluidTopicsDateService=new ms;var pd=c(m());var Ni=class{static get(e,r){var i,o,n,s;let a=_.getState(),{lang:l,region:d}=(s=(o=(i=a.localesConfiguration)===null||i===void 0?void 0:i.defaultLocales)===null||o===void 0?void 0:o.defaultContentLocale)!==null&&s!==void 0?s:{lang:"en",region:"US"};return new pd.SearchPlaceConverter(a.baseUrl,e??20,(n=a.localesConfiguration)===null||n===void 0?void 0:n.allLanguagesAllowed,r??`${l}-${d}`)}};var gs=class{urlToSearchRequest(e){return Ni.get().parse(e)}searchRequestToUrl(e){return Ni.get().serialize(e)}};window.FluidTopicsUrlService=new gs;var zt=c(m());var wr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{nextLocation:e}})}};wr.eventName="before-location-change";var _r=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};_r.eventName="change";var ys=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let r=sessionStorage.getItem(this.itemName(e));return r?JSON.parse(r):void 0}set(e,r){sessionStorage.setItem(this.itemName(e),JSON.stringify(r))}},fd=new ys;var Xn=class t extends zt.WithEventBus{static build(){return new t(window.history,fd,()=>window.location,!1)}constructor(e,r,i,o){var n,s;super(),this.history=e,this.historyStorage=r,this.windowLocation=i,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(n=e.state)===null||n===void 0?void 0:n.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(o)}setCurrentState(e,r=!1){let i=r&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,i&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,zt.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,this.windowLocation().href]),setTimeout(()=>this.dispatchEvent(new _r(this.currentItem())),0)}installProxies(){let e=r=>(i,o,[n,s,a])=>{let l=new wr(new URL(typeof a=="string"?a:(a??this.windowLocation()).href,window.location.origin));this.dispatchEvent(l);let d=r(),u={...d===this.currentIndex?this.currentState:void 0,...n,index:d,href:l.detail.nextLocation.href};i.apply(o,[u,s,u.href]),this.setCurrentState(u,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let r=this.history.length-1;r>=0;r--)e?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(e){var r;let i={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(i)}addBeforeLocationChangeListener(e){this.addEventListener(wr.eventName,e)}removeBeforeLocationChangeListener(e){this.removeEventListener(wr.eventName,e)}addHistoryChangeListener(e){this.addEventListener(_r.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(_r.eventName,e)}currentItem(){return(0,zt.deepCopy)(this.currentState)}back(){let e=this.previousDifferentMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,zt.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(i=>!!i).filter(i=>i.index<this.currentIndex).reverse();return(0,zt.deepCopy)(r.find(i=>e(i)))}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return(0,zt.deepCopy)(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var r;let i=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!i)return e;let o=e,n=e+1;for(;this.states.length>n&&!this.isDifferentMajorState(n,i);)this.hasState(n)&&(o=n),n++;return o}buildCurrentState(){var e,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&r!==void 0?r:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,r){var i;if(!this.hasState(e))return!1;let o=r??this.currentState.majorStateId,n=(i=this.states[e])===null||i===void 0?void 0:i.majorStateId;return n==null||n!=o}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Xn.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:t=>window.FluidTopicsInternalHistoryService.backwardItemMatching(t),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t),addBeforeLocationChangeListener:t=>window.FluidTopicsInternalHistoryService.addBeforeLocationChangeListener(t),removeBeforeLocationChangeListener:t=>window.FluidTopicsInternalHistoryService.removeBeforeLocationChangeListener(t)});var hd=c(E());var md=hd.css`
|
|
623
|
+
`;var Ya=["top","right","bottom","left"],Xa=["start","end"],$o=Ya.reduce((t,e)=>t.concat(e,e+"-"+Xa[0],e+"-"+Xa[1]),[]),vi=Math.min,Kt=Math.max,xi=Math.round;var _t=t=>({x:t,y:t}),Tp={left:"right",right:"left",bottom:"top",top:"bottom"};function Za(t,e,r){return Kt(t,vi(e,r))}function nn(t,e){return typeof t=="function"?t(e):t}function Si(t){return t.split("-")[0]}function qt(t){return t.split("-")[1]}function Do(t){return t==="x"?"y":"x"}function Po(t){return t==="y"?"height":"width"}function on(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function Io(t){return Do(on(t))}function Qa(t,e,r){r===void 0&&(r=!1);let i=qt(t),o=Io(t),n=Po(o),s=o==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[n]>e.floating[n]&&(s=Lo(s)),[s,Lo(s)]}function Ja(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function Lo(t){let e=Si(t);return Tp[e]+t.slice(e.length)}function kp(t){var e,r,i,o;return{top:(e=t.top)!=null?e:0,right:(r=t.right)!=null?r:0,bottom:(i=t.bottom)!=null?i:0,left:(o=t.left)!=null?o:0}}function el(t){return typeof t!="number"?kp(t):{top:t,right:t,bottom:t,left:t}}function yr(t){let{x:e,y:r,width:i,height:o}=t;return{width:i,height:o,top:r,left:e,right:e+i,bottom:r+o,x:e,y:r}}function tl(t,e,r){let{reference:i,floating:o}=t,n=on(e),s=Io(e),a=Po(s),l=Si(e),d=n==="y",u=i.x+i.width/2-o.width/2,p=i.y+i.height/2-o.height/2,f=i[a]/2-o[a]/2,b;switch(l){case"top":b={x:u,y:i.y-o.height};break;case"bottom":b={x:u,y:i.y+i.height};break;case"right":b={x:i.x+i.width,y:p};break;case"left":b={x:i.x-o.width,y:p};break;default:b={x:i.x,y:i.y}}let x=qt(e);return x&&(b[s]+=f*(x==="end"?1:-1)*(r&&d?-1:1)),b}async function rl(t,e){var r;e===void 0&&(e={});let{x:i,y:o,platform:n,rects:s,elements:a,strategy:l}=t,{boundary:d="clippingAncestors",rootBoundary:u="viewport",elementContext:p="floating",altBoundary:f=!1,padding:b=0}=nn(e,t),x=el(b),v=a[f?p==="floating"?"reference":"floating":p],L=yr(await n.getClippingRect({element:(r=await(n.isElement==null?void 0:n.isElement(v)))==null||r?v:v.contextElement||await(n.getDocumentElement==null?void 0:n.getDocumentElement(a.floating)),boundary:d,rootBoundary:u,strategy:l})),H=p==="floating"?{x:i,y:o,width:s.floating.width,height:s.floating.height}:s.reference,S=await(n.getOffsetParent==null?void 0:n.getOffsetParent(a.floating)),A=await(n.isElement==null?void 0:n.isElement(S))&&await(n.getScale==null?void 0:n.getScale(S))||{x:1,y:1},K=yr(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:H,offsetParent:S,strategy:l}):H);return{top:(L.top-K.top+x.top)/A.y,bottom:(K.bottom-L.bottom+x.bottom)/A.y,left:(L.left-K.left+x.left)/A.x,right:(K.right-L.right+x.right)/A.x}}var Lp=50,il=async(t,e,r)=>{let{placement:i="bottom",strategy:o="absolute",middleware:n=[],platform:s}=r,a=s.detectOverflow?s:{...s,detectOverflow:rl},l=await(s.isRTL==null?void 0:s.isRTL(e)),d=await s.getElementRects({reference:t,floating:e,strategy:o}),{x:u,y:p}=tl(d,i,l),f=i,b=0,x={};for(let R=0;R<n.length;R++){let v=n[R];if(!v)continue;let{name:L,fn:H}=v,{x:S,y:A,data:K,reset:z}=await H({x:u,y:p,initialPlacement:i,placement:f,strategy:o,middlewareData:x,rects:d,platform:a,elements:{reference:t,floating:e}});u=S??u,p=A??p,x[L]={...x[L],...K},z&&b<Lp&&(b++,typeof z=="object"&&(z.placement&&(f=z.placement),z.rects&&(d=z.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:o}):z.rects),{x:u,y:p}=tl(d,f,l)),R=-1)}return{x:u,y:p,placement:f,strategy:o,middlewareData:x}};function $p(t,e,r){return(t?[...r.filter(o=>qt(o)===t),...r.filter(o=>qt(o)!==t)]:r.filter(o=>Si(o)===o)).filter(o=>t?qt(o)===t||(e?Ja(o)!==o:!1):!0)}var nl=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,i,o;let{rects:n,middlewareData:s,placement:a,platform:l,elements:d}=e,{crossAxis:u=!1,alignment:p,allowedPlacements:f=$o,autoAlignment:b=!0,...x}=nn(t,e),R=p!==void 0||f===$o?$p(p||null,b,f):f,v=((r=s.autoPlacement)==null?void 0:r.index)||0,L=R[v];if(L==null)return{};if(a!==L)return{reset:{placement:R[0]}};let H=await l.detectOverflow(e,x),S=Qa(L,n,await(l.isRTL==null?void 0:l.isRTL(d.floating))),A=[H[Si(L)],H[S[0]],H[S[1]]],K=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:L,overflows:A}],z=R[v+1];if(z)return{data:{index:v+1,overflows:K},reset:{placement:z}};let ge=K.map(tt=>{let ci=qt(tt.placement);return[tt.placement,ci&&u?tt.overflows.slice(0,2).reduce((gp,yp)=>gp+yp,0):tt.overflows[0],tt.overflows]}).sort((tt,ci)=>tt[1]-ci[1]),Yi=((o=ge.filter(tt=>tt[2].slice(0,qt(tt[0])?2:3).every(ci=>ci<=0))[0])==null?void 0:o[0])||ge[0][0];return Yi!==a?{data:{index:v+1,overflows:K},reset:{placement:Yi}}:{}}}};var ol=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:i,placement:o,platform:n}=e,{mainAxis:s=!0,crossAxis:a=!1,limiter:l={fn:H=>{let{x:S,y:A}=H;return{x:S,y:A}}},...d}=nn(t,e),u={x:r,y:i},p=await n.detectOverflow(e,d),f=on(o),b=Do(f),x=u[b],R=u[f],v=(H,S)=>Za(S+p[H==="y"?"top":"left"],S,S-p[H==="y"?"bottom":"right"]);s&&(x=v(b,x)),a&&(R=v(f,R));let L=l.fn({...e,[b]:x,[f]:R});return{...L,data:{x:L.x-r,y:L.y-i,enabled:{[b]:s,[f]:a}}}}}};function an(){return typeof window<"u"}function vr(t){return al(t)?(t.nodeName||"").toLowerCase():"#document"}function ze(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Ft(t){var e;return(e=(al(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function al(t){return an()?t instanceof Node||t instanceof ze(t).Node:!1}function mt(t){return an()?t instanceof Element||t instanceof ze(t).Element:!1}function Bt(t){return an()?t instanceof HTMLElement||t instanceof ze(t).HTMLElement:!1}function sl(t){return!an()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof ze(t).ShadowRoot}function Ei(t){let{overflow:e,overflowX:r,overflowY:i,display:o}=gt(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&o!=="inline"&&o!=="contents"}function ll(t){return/^(table|td|th)$/.test(vr(t))}function Ai(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var Dp=/transform|translate|scale|rotate|perspective|filter/,Pp=/paint|layout|strict|content/,br=t=>!!t&&t!=="none",Mo;function Vr(t){let e=mt(t)?gt(t):t;return br(e.transform)||br(e.translate)||br(e.scale)||br(e.rotate)||br(e.perspective)||!ln()&&(br(e.backdropFilter)||br(e.filter))||Dp.test(e.willChange||"")||Pp.test(e.contain||"")}function cl(t){let e=Gt(t);for(;Bt(e)&&!Hr(e);){if(Vr(e))return e;if(Ai(e))return null;e=Gt(e)}return null}function ln(){return Mo==null&&(Mo=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Mo}function Hr(t){return/^(html|body|#document)$/.test(vr(t))}function gt(t){return ze(t).getComputedStyle(t)}function Ci(t){return mt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Gt(t){if(vr(t)==="html")return t;let e=t.assignedSlot||t.parentNode||sl(t)&&t.host||Ft(t);return sl(e)?e.host:e}function dl(t){let e=Gt(t);return Hr(e)?(t.ownerDocument||t).body:Bt(e)&&Ei(e)?e:dl(e)}function sn(t,e,r){var i;e===void 0&&(e=[]),r===void 0&&(r=!0);let o=dl(t),n=o===((i=t.ownerDocument)==null?void 0:i.body),s=ze(o);if(n){let a=cn(s);return e.concat(s,s.visualViewport||[],Ei(o)?o:[],a&&r?sn(a):[])}else return e.concat(o,sn(o,[],r))}function cn(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function fl(t){let e=gt(t),r=parseFloat(e.width)||0,i=parseFloat(e.height)||0,o=Bt(t),n=o?t.offsetWidth:r,s=o?t.offsetHeight:i,a=xi(r)!==n||xi(i)!==s;return a&&(r=n,i=s),{width:r,height:i,$:a}}function hl(t){return mt(t)?t:t.contextElement}function jr(t){let e=hl(t);if(!Bt(e))return _t(1);let r=e.getBoundingClientRect(),{width:i,height:o,$:n}=fl(e),s=(n?xi(r.width):r.width)/i,a=(n?xi(r.height):r.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}var Ip=_t(0);function ml(t){let e=ze(t);return!ln()||!e.visualViewport?Ip:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Mp(t,e,r){return e===void 0&&(e=!1),!!r&&e&&r===ze(t)}function wi(t,e,r,i){e===void 0&&(e=!1),r===void 0&&(r=!1);let o=t.getBoundingClientRect(),n=hl(t),s=_t(1);e&&(i?mt(i)&&(s=jr(i)):s=jr(t));let a=Mp(n,r,i)?ml(n):_t(0),l=(o.left+a.x)/s.x,d=(o.top+a.y)/s.y,u=o.width/s.x,p=o.height/s.y;if(n&&i){let f=ze(n),b=mt(i)?ze(i):i,x=f,R=cn(x);for(;R&&b!==x;){let v=jr(R),L=R.getBoundingClientRect(),H=gt(R),S=L.left+(R.clientLeft+parseFloat(H.paddingLeft))*v.x,A=L.top+(R.clientTop+parseFloat(H.paddingTop))*v.y;l*=v.x,d*=v.y,u*=v.x,p*=v.y,l+=S,d+=A,x=ze(R),R=cn(x)}}return yr({width:u,height:p,x:l,y:d})}function dn(t,e){let r=Ci(t).scrollLeft;return e?e.left+r:wi(Ft(t)).left+r}function gl(t,e){let r=t.getBoundingClientRect(),i=r.left+e.scrollLeft-dn(t,r),o=r.top+e.scrollTop;return{x:i,y:o}}function Np(t){let{elements:e,rect:r,offsetParent:i,strategy:o}=t,n=o==="fixed",s=Ft(i),a=e?Ai(e.floating):!1;if(i===s||a&&n)return r;let l={scrollLeft:0,scrollTop:0},d=_t(1),u=_t(0),p=Bt(i);if((p||!n)&&((vr(i)!=="body"||Ei(s))&&(l=Ci(i)),p)){let b=wi(i);d=jr(i),u.x=b.x+i.clientLeft,u.y=b.y+i.clientTop}let f=s&&!p&&!n?gl(s,l):_t(0);return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-l.scrollLeft*d.x+u.x+f.x,y:r.y*d.y-l.scrollTop*d.y+u.y+f.y}}function Fp(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function Bp(t){let e=Ci(t),r=t.ownerDocument.body,i=Kt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=Kt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),n=-e.scrollLeft+dn(t),s=-e.scrollTop;return gt(r).direction==="rtl"&&(n+=Kt(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:n,y:s}}var Up=25;function zp(t,e,r){r===void 0&&(r="viewport");let i=r==="layoutViewport",o=ze(t),n=Ft(t),s=o.visualViewport,a=n.clientWidth,l=n.clientHeight,d=0,u=0;if(s){let f=!ln()||e==="fixed";i?f||(d=-s.offsetLeft,u=-s.offsetTop):(a=s.width,l=s.height,f&&(d=s.offsetLeft,u=s.offsetTop))}if(dn(n)<=0){let f=n.ownerDocument,b=f.body,x=getComputedStyle(b),R=f.compatMode==="CSS1Compat"&&parseFloat(x.marginLeft)+parseFloat(x.marginRight)||0,v=Math.abs(n.clientWidth-b.clientWidth-R),L=getComputedStyle(n).scrollbarGutter==="stable both-edges"?v/2:v;L<=Up&&(a-=L)}return{width:a,height:l,x:d,y:u}}function Vp(t,e){let r=wi(t,!0,e==="fixed"),i=r.top+t.clientTop,o=r.left+t.clientLeft,n=jr(t),s=t.clientWidth*n.x,a=t.clientHeight*n.y,l=o*n.x,d=i*n.y;return{width:s,height:a,x:l,y:d}}function ul(t,e,r){let i;if(e==="viewport"||e==="layoutViewport")i=zp(t,r,e);else if(e==="document")i=Bp(Ft(t));else if(mt(e))i=Vp(e,r);else{let o=ml(t);i={x:e.x-o.x,y:e.y-o.y,width:e.width,height:e.height}}return yr(i)}function Hp(t,e){let r=e.get(t);if(r)return r;let i=sn(t,[],!1).filter(a=>mt(a)&&vr(a)!=="body"),o=null,n=gt(t).position==="fixed",s=n?Gt(t):t;for(;mt(s)&&!Hr(s);){let a=gt(s),l=Vr(s),d=o?o.position:n?"fixed":"";!l&&(d==="fixed"||d==="absolute"&&a.position==="static")?i=i.filter(p=>p!==s):o=a,s=Gt(s)}return e.set(t,i),i}function jp(t){let{element:e,boundary:r,rootBoundary:i,strategy:o}=t,s=[...r==="clippingAncestors"?Ai(e)?[]:Hp(e,this._c):[].concat(r),i],a=ul(e,s[0],o),l=a.top,d=a.right,u=a.bottom,p=a.left;for(let f=1;f<s.length;f++){let b=ul(e,s[f],o);l=Kt(b.top,l),d=vi(b.right,d),u=vi(b.bottom,u),p=Kt(b.left,p)}return{width:d-p,height:u-l,x:p,y:l}}function Wp(t){let{width:e,height:r}=fl(t);return{width:e,height:r}}function Kp(t,e,r){let i=Bt(e),o=Ft(e),n=r==="fixed",s=wi(t,!0,n,e),a={scrollLeft:0,scrollTop:0},l=_t(0);if((i||!n)&&((vr(e)!=="body"||Ei(o))&&(a=Ci(e)),i)){let f=wi(e,!0,n,e);l.x=f.x+e.clientLeft,l.y=f.y+e.clientTop}!i&&o&&(l.x=dn(o));let d=o&&!i&&!n?gl(o,a):_t(0),u=s.left+a.scrollLeft-l.x-d.x,p=s.top+a.scrollTop-l.y-d.y;return{x:u,y:p,width:s.width,height:s.height}}function No(t){return gt(t).position==="static"}function pl(t,e){if(!Bt(t)||gt(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return Ft(t)===r&&(r=r.ownerDocument.body),r}function yl(t,e){let r=ze(t);if(Ai(t))return r;if(!Bt(t)){let o=Gt(t);for(;o&&!Hr(o);){if(mt(o)&&!No(o))return o;o=Gt(o)}return r}let i=pl(t,e);for(;i&&ll(i)&&No(i);)i=pl(i,e);return i&&Hr(i)&&No(i)&&!Vr(i)?r:i||cl(t)||r}var qp=async function(t){let e=this.getOffsetParent||yl,r=this.getDimensions,i=await r(t.floating);return{reference:Kp(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function Gp(t){return gt(t).direction==="rtl"}var un={convertOffsetParentRelativeRectToViewportRelativeRect:Np,getDocumentElement:Ft,getClippingRect:jp,getOffsetParent:yl,getElementRects:qp,getClientRects:Fp,getDimensions:Wp,getScale:jr,isElement:mt,isRTL:Gp};var bl=nl,vl=ol;var xl=(t,e,r)=>{let i=new Map,o=r??{},n={...un,...o.platform,_c:i};return il(t,e,{...o,platform:n})};function Sl(t){return Xp(t)}function Fo(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Xp(t){for(let e=t;e;e=Fo(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Fo(t);e;e=Fo(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||Vr(r)||e.tagName==="BODY"))return e}return null}async function El(t,e,r){let i;return typeof r=="object"?i=r:i={placement:r},xl(t,e,{strategy:i.strategy,platform:{...un,getOffsetParent:o=>un.getOffsetParent(o,Sl)},middleware:[vl({crossAxis:!0}),bl({allowedPlacements:[i.placement]})]})}var Jr=c(m());var ss=c(j());var Al=c(j(),1);var Bo=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)},Yp=t=>({fromAttribute:e=>{if(e==null)return _i(t);try{return JSON.parse(e)}catch{return _i(t)}},toAttribute:e=>JSON.stringify(e)});function Cl(t,e){return(0,Al.property)({type:Object,converter:Yp(t),hasChanged:Oi,...e??{}})}function Zp(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;let r,i;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(i=r;i--!==0;)if(!Wr(t[i],e[i]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;for(i of t.entries())if(!Wr(i[1],e.get(i[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let o=s=>Object.keys(s).filter(a=>s[a]!=null),n=o(t);if(r=n.length,r!==o(e).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,n[i]))return!1;for(i=r;i--!==0;){let s=n[i];if(!Wr(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function Wr(t,e){try{return Zp(t,e)}catch{return!1}}function Oi(t,e){return!Wr(t,e)}function _i(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function pn(t,e){let r=i=>i[t]===!0;return i=>{if(r(i))return i;let o=e(i);return o[t]=!0,o}}var wl=c(j(),1);var Uo=t=>{let e=t??{};return(r,i)=>{var o;let n={hasChanged:Oi,attribute:!1,...e};(0,wl.property)(n)(r,i);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(i,{selector:(o=e.selector)!==null&&o!==void 0?o:(a=>a[i]),store:e.store})}};var fn=class{constructor(){this.queue=[]}add(e,r=!1){r&&this.clear(e.type),this.queue.push(e)}consume(e){let r=this.queue.find(i=>i.type===e);return r&&(this.queue=this.queue.filter(i=>i!==r)),r}clear(e){typeof e=="string"?this.queue=this.queue.filter(r=>r.type!==e):this.queue=this.queue.filter(r=>!e.test(r.type))}};var xr=c(j(),1);var hn=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,r){return this.callbacks=[e],this.debounce(r)}queue(e,r){return this.callbacks.push(e),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((r,i)=>{this.resolvePromise=r,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let i=[...this.callbacks];this.callbacks=[];let o=(e=this.rejectPromise)!==null&&e!==void 0?e:(()=>null),n=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let s of i)try{await s()}catch(a){o(a);return}n(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var gn=c(E(),1);var mn=class extends gn.LitElement{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let e=this.scopedRegistryConstructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,e.defineScopedElements(e.elementDefinitions));let r={...e.shadowRootOptions,customElements:e.registry},i=this.renderOptions.creationScope=this.attachShadow(r);return(0,gn.adoptStyles)(i,e.elementStyles),i}static canDefineScopedElement(e){return!!this.registry&&!this.registry.get(e)}static defineScopedElements(e){Object.entries(e).forEach(([r,i])=>this.defineScopedElement(r,i))}static defineScopedElement(e,r){Bo(e)(r),this.canDefineScopedElement(e)&&this.registry.define(e,r)}canDefineScopedElement(e){return this.scopedRegistryConstructor.canDefineScopedElement(e)}defineScopedElements(e){this.scopedRegistryConstructor.defineScopedElements(e)}defineScopedElement(e,r){this.scopedRegistryConstructor.defineScopedElement(e,r)}};function _l(t,e,...r){var i;let o=t.querySelector(e);for(let n of r)o=(i=o?.shadowRoot)===null||i===void 0?void 0:i.querySelector(n);return o}var qr=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},kl,Ol=Symbol("constructorPrototype"),Rl=Symbol("constructorName"),Ll=Symbol("exportpartsDebouncer"),Tl=Symbol("dynamicDependenciesLoaded"),Kr=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};Kr.eventName="exportparts-updated";var Ot=class extends mn{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[kl]=new hn(5),this.scheduleExportpartsUpdate=()=>{var e,r,i;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(i=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&i!==void 0&&i)&&this[Ll].run(()=>{var o,n;!((o=this.exportpartsPrefix)===null||o===void 0)&&o.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((n=this.exportpartsPrefixes)===null||n===void 0?void 0:n.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[Rl]=this.constructor.name,this[Ol]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Rl]&&Object.setPrototypeOf(this,this[Ol])}connectedCallback(){var e;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(i){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",i)}let r=this.constructor;r[Tl]||(r[Tl]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(Kr.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(Kr.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate(),e.has("exportparts")&&this.dispatchEvent(new Kr)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:i,shadowPath:o}=this.elementToFocus;if(i!=null){let n=[...o??[],i];r=_l(this.shadowRoot,...n)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var r,i,o;if(((i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(n=>n.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((o=this.customStylesheet)!==null&&o!==void 0?o:"")}catch(n){console.error(n,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let n=document.createElement("style");n.classList.add("ft-lit-element--custom-stylesheet"),n.innerHTML=this.customStylesheet,this.shadowRoot.append(n)}}setExportpartsAttribute(e){var r,i,o,n,s,a;let l=f=>f!=null&&f.trim().length>0,d=e.filter(l).map(f=>f.trim());if(d.length===0){this.exportparts=void 0;return}let u=new Set;for(let f of(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let b=(s=(i=f.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&s!==void 0?s:[],x=(a=(o=f.getAttribute("exportparts"))===null||o===void 0?void 0:o.split(",").map(v=>v.split(":")[1]))!==null&&a!==void 0?a:[],R=[...b,...x].filter(l).map(v=>v.trim());for(let v of R)u.add(v)}if(u.size===0){this.exportparts=void 0;return}let p=[...u.values()].flatMap(f=>d.map(b=>`${f}:${b}--${f}`));this.exportparts=[...this.part,...p].join(", ")}};kl=Ll;qr([(0,xr.property)()],Ot.prototype,"exportpartsPrefix",void 0);qr([Cl([])],Ot.prototype,"exportpartsPrefixes",void 0);qr([(0,xr.property)({reflect:!0})],Ot.prototype,"exportparts",void 0);qr([(0,xr.property)()],Ot.prototype,"customStylesheet",void 0);qr([(0,xr.property)()],Ot.prototype,"elementToFocus",void 0);qr([(0,xr.state)()],Ot.prototype,"useAdoptedStyleSheets",void 0);function yn(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Ri=Symbol("internalReduxEventsUnsubscribers"),Xt=Symbol("internalStoresUnsubscribers"),Sr=Symbol("internalStores"),Qp=pn(Symbol("withRedux"),function(t){var e,r,i;class o extends t{constructor(){super(...arguments),this[e]=new Map,this[r]=new Map,this[i]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(a=>s.has(a))&&this.updateFromStores()}getUnnamedStore(){if(this[Sr].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Sr].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[Sr].get(s)}addStore(s,a){var l;a=(l=a??s.name)!==null&&l!==void 0?l:"default-store",this.unsubscribeFromStore(a),this[Sr].set(a,s),this.subscribeToStore(a,s),this.updateFromStores()}removeStore(s){let a=typeof s=="string"?s:s.name;this.unsubscribeFromStore(a),this[Sr].delete(a)}setupStores(){this.unsubscribeFromStores(),this[Sr].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 d=this.getStore(s.store);d&&(s.store?this[Xt].has(s.store):this[Xt].size>0)&&(this[a]=s.selector(d.getState(),this))}})}subscribeToStore(s,a){var l,d;this[Xt].set(s,a.subscribe(()=>this.updateFromStores())),this[Ri].set(s,[]),yn(a)&&(!((l=a.deprecatedKeys)===null||l===void 0)&&l.length&&this.reduxConstructor.reduxProperties.forEach((u,p)=>{this.getStore(u.store)===a&&a.deprecatedKeys.includes(p)&&console.warn("Element",this,"is subscribed to deprecated key",p,"in store",a.name)}),a.eventBus&&((d=this.reduxConstructor.reduxEventListeners)===null||d===void 0||d.forEach((u,p)=>{if(typeof this[p]=="function"&&(!u.store||a.name===u.store)){let f=b=>this[p](b);a.addEventListener(u.eventName,f),this[Ri].get(s).push(()=>a.removeEventListener(u.eventName,f))}}))),this.onStoreAvailable(s)}unsubscribeFromStores(){this[Xt].forEach((s,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(s){var a;this[Xt].has(s)&&this[Xt].get(s)(),this[Xt].delete(s),(a=this[Ri].get(s))===null||a===void 0||a.forEach(l=>l()),this[Ri].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=Xt,r=Sr,i=Ri,o.reduxProperties=new Map,o.reduxReactiveProperties=new Set,o.reduxEventListeners=new Map,o}),$l=class extends Qp(Ot){};function Ae(t){return`Minified Redux error #${t}; visit https://redux.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var Jp=typeof Symbol=="function"&&Symbol.observable||"@@observable",Dl=Jp,zo=()=>Math.random().toString(36).substring(7).split("").join("."),ef={INIT:`@@redux/INIT${zo()}`,REPLACE:`@@redux/REPLACE${zo()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${zo()}`},bn=ef;function vn(t){if(typeof t!="object"||t===null)return!1;let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e||Object.getPrototypeOf(t)===null}function Vo(t,e,r){if(typeof t!="function")throw new Error(Ae(2));if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(Ae(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Ae(1));return r(Vo)(t,e)}let i=t,o=e,n=new Map,s=n,a=0,l=!1;function d(){s===n&&(s=new Map,n.forEach((v,L)=>{s.set(L,v)}))}function u(){if(l)throw new Error(Ae(3));return o}function p(v){if(typeof v!="function")throw new Error(Ae(4));if(l)throw new Error(Ae(5));let L=!0;d();let H=a++;return s.set(H,v),function(){if(L){if(l)throw new Error(Ae(6));L=!1,d(),s.delete(H),n=null}}}function f(v){if(!vn(v))throw new Error(Ae(7));if(typeof v.type>"u")throw new Error(Ae(8));if(typeof v.type!="string")throw new Error(Ae(17));if(l)throw new Error(Ae(9));try{l=!0,o=i(o,v)}finally{l=!1}return(n=s).forEach(H=>{H()}),v}function b(v){if(typeof v!="function")throw new Error(Ae(10));i=v,f({type:bn.REPLACE})}function x(){let v=p;return{subscribe(L){if(typeof L!="object"||L===null)throw new Error(Ae(11));function H(){let A=L;A.next&&A.next(u())}return H(),{unsubscribe:v(H)}},[Dl](){return this}}}return f({type:bn.INIT}),{dispatch:f,subscribe:p,getState:u,replaceReducer:b,[Dl]:x}}function tf(t){Object.keys(t).forEach(e=>{let r=t[e];if(typeof r(void 0,{type:bn.INIT})>"u")throw new Error(Ae(12));if(typeof r(void 0,{type:bn.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Ae(13))})}function Ho(t){let e=Object.keys(t),r={};for(let s=0;s<e.length;s++){let a=e[s];typeof t[a]=="function"&&(r[a]=t[a])}let i=Object.keys(r),o,n;try{tf(r)}catch(s){n=s}return function(a={},l){if(n)throw n;let d=!1,u={};for(let p=0;p<i.length;p++){let f=i[p],b=r[f],x=a[f],R=b(x,l);if(typeof R>"u"){let v=l&&l.type;throw new Error(Ae(14))}u[f]=R,d=d||R!==x}return d=d||i.length!==Object.keys(a).length,d?u:a}}function Ti(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce((e,r)=>(...i)=>e(r(...i)))}function Pl(...t){return e=>(r,i)=>{let o=e(r,i),n=()=>{throw new Error(Ae(15))},s={getState:o.getState,dispatch:(l,...d)=>n(l,...d)},a=t.map(l=>l(s));return n=Ti(...a)(o.dispatch),{...o,dispatch:n}}}function Il(t){return vn(t)&&"type"in t&&typeof t.type=="string"}var jl=Symbol.for("immer-nothing"),Ml=Symbol.for("immer-draftable"),ke=Symbol.for("immer-state");function yt(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var Ke=Object,Xr=Ke.getPrototypeOf,An="constructor",Tn="prototype",qo="configurable",Cn="enumerable",Sn="writable",ki="value",Rt=t=>!!t&&!!t[ke];function qe(t){return t?Wl(t)||Ln(t)||!!t[Ml]||!!t[An]?.[Ml]||$n(t)||Dn(t):!1}var rf=Ke[Tn][An].toString(),Nl=new WeakMap;function Wl(t){if(!t||!ts(t))return!1;let e=Xr(t);if(e===null||e===Ke[Tn])return!0;let r=Ke.hasOwnProperty.call(e,An)&&e[An];if(r===Object)return!0;if(!Gr(r))return!1;let i=Nl.get(r);return i===void 0&&(i=Function.toString.call(r),Nl.set(r,i)),i===rf}function kn(t,e,r=!0){Di(t)===0?(r?Reflect.ownKeys(t):Ke.keys(t)).forEach(o=>{e(o,t[o],t)}):t.forEach((i,o)=>e(o,i,t))}function Di(t){let e=t[ke];return e?e.type_:Ln(t)?1:$n(t)?2:Dn(t)?3:0}var jo=(t,e,r=Di(t))=>r===2?t.has(e):Ke[Tn].hasOwnProperty.call(t,e),Go=(t,e,r=Di(t))=>r===2?t.get(e):t[e],wn=(t,e,r,i=Di(t))=>{i===2?t.set(e,r):i===3?t.add(r):t[e]=r};function nf(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}var Ln=Array.isArray,$n=t=>t instanceof Map,Dn=t=>t instanceof Set,ts=t=>typeof t=="object",Gr=t=>typeof t=="function",Wo=t=>typeof t=="boolean";function of(t){let e=+t;return Number.isInteger(e)&&String(e)===t}var Ut=t=>t.copy_||t.base_;var rs=t=>t.modified_?t.copy_:t.base_;function Xo(t,e){if($n(t))return new Map(t);if(Dn(t))return new Set(t);if(Ln(t))return Array[Tn].slice.call(t);let r=Wl(t);if(e===!0||e==="class_only"&&!r){let i=Ke.getOwnPropertyDescriptors(t);delete i[ke];let o=Reflect.ownKeys(i);for(let n=0;n<o.length;n++){let s=o[n],a=i[s];a[Sn]===!1&&(a[Sn]=!0,a[qo]=!0),(a.get||a.set)&&(i[s]={[qo]:!0,[Sn]:!0,[Cn]:a[Cn],[ki]:t[s]})}return Ke.create(Xr(t),i)}else{let i=Xr(t);if(i!==null&&r)return{...t};let o=Ke.create(i);return Ke.assign(o,t)}}function Pn(t,e=!1){return In(t)||Rt(t)||!qe(t)||(Di(t)>1&&Ke.defineProperties(t,{set:xn,add:xn,clear:xn,delete:xn}),Ke.freeze(t),e&&kn(t,(r,i)=>{Pn(i,!0)},!1)),t}function sf(){yt(2)}var xn={[ki]:sf};function In(t){return t===null||!ts(t)?!0:Ke.isFrozen(t)}var _n="MapSet",Yo="Patches",Fl="ArrayMethods",Kl={};function Er(t){let e=Kl[t];return e||yt(0,t),e}var Bl=t=>!!Kl[t];var Li,ql=()=>Li,af=(t,e)=>({drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Bl(_n)?Er(_n):void 0,arrayMethodsPlugin_:Bl(Fl)?Er(Fl):void 0});function Ul(t,e){e&&(t.patchPlugin_=Er(Yo),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function Zo(t){Qo(t),t.drafts_.forEach(lf),t.drafts_=null}function Qo(t){t===Li&&(Li=t.parent_)}var zl=t=>Li=af(Li,t);function lf(t){let e=t[ke];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function Vl(t,e){e.unfinalizedDrafts_=e.drafts_.length;let r=e.drafts_[0];if(t!==void 0&&t!==r){r[ke].modified_&&(Zo(e),yt(4)),qe(t)&&(t=Hl(e,t));let{patchPlugin_:o}=e;o&&o.generateReplacementPatches_(r[ke].base_,t,e)}else t=Hl(e,r);return cf(e,t,!0),Zo(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==jl?t:void 0}function Hl(t,e){if(In(e))return e;let r=e[ke];if(!r)return On(e,t.handledSet_,t);if(!Mn(r,t))return e;if(!r.modified_)return r.base_;if(!r.finalized_){let{callbacks_:i}=r;if(i)for(;i.length>0;)i.pop()(t);Yl(r,t)}return r.copy_}function cf(t,e,r=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&Pn(e,r)}function Gl(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}var Mn=(t,e)=>t.scope_===e,df=[];function Xl(t,e,r,i){let o=Ut(t),n=t.type_;if(i!==void 0&&Go(o,i,n)===e){wn(o,i,r,n);return}if(!t.draftLocations_){let a=t.draftLocations_=new Map;kn(o,(l,d)=>{if(Rt(d)){let u=a.get(d)||[];u.push(l),a.set(d,u)}})}let s=t.draftLocations_.get(e)??df;for(let a of s)wn(o,a,r,n)}function uf(t,e,r){t.callbacks_.push(function(o){let n=e;if(!n||!Mn(n,o))return;o.mapSetPlugin_?.fixSetContents(n);let s=rs(n);Xl(t,n.draft_??n,s,r),Yl(n,o)})}function Yl(t,e){if(t.modified_&&!t.finalized_&&(t.type_===3||t.type_===1&&t.allIndicesReassigned_||(t.assigned_?.size??0)>0)){let{patchPlugin_:i}=e;if(i){let o=i.getPath(t);o&&i.generatePatches_(t,o,e)}Gl(t)}}function pf(t,e,r){let{scope_:i}=t;if(Rt(r)){let o=r[ke];Mn(o,i)&&o.callbacks_.push(function(){En(t);let s=rs(o);Xl(t,r,s,e)})}else qe(r)&&t.callbacks_.push(function(){let n=Ut(t);t.type_===3?n.has(r)&&On(r,i.handledSet_,i):Go(n,e,t.type_)===r&&i.drafts_.length>1&&(t.assigned_.get(e)??!1)===!0&&t.copy_&&On(Go(t.copy_,e,t.type_),i.handledSet_,i)})}function On(t,e,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||Rt(t)||e.has(t)||!qe(t)||In(t)||(e.add(t),kn(t,(i,o)=>{if(Rt(o)){let n=o[ke];if(Mn(n,r)){let s=rs(n);wn(t,i,s,t.type_),Gl(n)}}else qe(o)&&On(o,e,r)})),t}function ff(t,e){let r=Ln(t),i={type_:r?1:0,scope_:e?e.scope_:ql(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},o=i,n=Rn;r&&(o=[i],n=$i);let{revoke:s,proxy:a}=Proxy.revocable(o,n);return i.draft_=a,i.revoke_=s,[a,i]}var Rn={get(t,e){if(e===ke)return t;let r=t.scope_.arrayMethodsPlugin_,i=t.type_===1&&typeof e=="string";if(i&&r?.isArrayOperationMethod(e))return r.createMethodInterceptor(t,e);let o=Ut(t);if(!jo(o,e,t.type_))return mf(t,o,e);let n=o[e];if(t.finalized_||!qe(n)||i&&t.operationMethod&&r?.isMutatingArrayMethod(t.operationMethod)&&of(e))return n;if(n===Ko(t.base_,e)||hf(t,e,n)){En(t);let s=t.type_===1?+e:e,a=es(t.scope_,n,t,s);return t.copy_[s]=a}return n},has(t,e){return e in Ut(t)},ownKeys(t){return Reflect.ownKeys(Ut(t))},set(t,e,r){let i=Zl(Ut(t),e);if(i?.set)return i.set.call(t.draft_,r),!0;if(!t.modified_){let o=Ko(Ut(t),e),n=o?.[ke];if(n&&n.base_===r)return t.copy_[e]=r,t.assigned_.delete(e),!0;if(nf(r,o)&&(r!==void 0||jo(t.base_,e,t.type_)))return!0;En(t),Jo(t)}return t.copy_[e]===r&&(r!==void 0||jo(t.copy_,e,t.type_))||Number.isNaN(r)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=r,t.assigned_.set(e,!0),pf(t,e,r)),!0},deleteProperty(t,e){return En(t),Ko(t.base_,e)!==void 0||e in t.base_?(t.assigned_.set(e,!1),Jo(t)):t.assigned_.delete(e),t.copy_&&delete t.copy_[e],!0},getOwnPropertyDescriptor(t,e){let r=Ut(t),i=Reflect.getOwnPropertyDescriptor(r,e);return i&&{[Sn]:!0,[qo]:t.type_!==1||e!=="length",[Cn]:i[Cn],[ki]:r[e]}},defineProperty(){yt(11)},getPrototypeOf(t){return Xr(t.base_)},setPrototypeOf(){yt(12)}},$i={};for(let t in Rn){let e=Rn[t];$i[t]=function(){let r=arguments;return r[0]=r[0][0],e.apply(this,r)}}$i.deleteProperty=function(t,e){return $i.set.call(this,t,e,void 0)};$i.set=function(t,e,r){return Rn.set.call(this,t[0],e,r,t[0])};function Ko(t,e){let r=t[ke];return(r?Ut(r):t)[e]}function hf(t,e,r){return t.type_!==1||!t.allIndicesReassigned_||t.assigned_?.get(e)||!qe(r)||r[ke]?!1:t.baseRefs_.has(r)}function mf(t,e,r){let i=Zl(e,r);return i?ki in i?i[ki]:i.get?.call(t.draft_):void 0}function Zl(t,e){if(!(e in t))return;let r=Xr(t);for(;r;){let i=Object.getOwnPropertyDescriptor(r,e);if(i)return i;r=Xr(r)}}function Jo(t){t.modified_||(t.modified_=!0,t.parent_&&Jo(t.parent_))}function En(t){t.copy_||(t.assigned_=new Map,t.copy_=Xo(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var gf=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,r,i)=>{if(Gr(e)&&!Gr(r)){let n=r;r=e;let s=this;return function(l=n,...d){return s.produce(l,u=>r.call(this,u,...d))}}Gr(r)||yt(6),i!==void 0&&!Gr(i)&&yt(7);let o;if(qe(e)){let n=zl(this),s=es(n,e,void 0),a=!0;try{o=r(s),a=!1}finally{a?Zo(n):Qo(n)}return Ul(n,i),Vl(o,n)}else if(!e||!ts(e)){if(o=r(e),o===void 0&&(o=e),o===jl&&(o=void 0),this.autoFreeze_&&Pn(o,!0),i){let n=[],s=[];Er(Yo).generateReplacementPatches_(e,o,{patches_:n,inversePatches_:s}),i(n,s)}return o}else yt(1,e)},this.produceWithPatches=(e,r)=>{if(Gr(e))return(s,...a)=>this.produceWithPatches(s,l=>e(l,...a));let i,o;return[this.produce(e,r,(s,a)=>{i=s,o=a}),i,o]},Wo(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),Wo(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),Wo(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){qe(t)||yt(8),Rt(t)&&(t=Ql(t));let e=zl(this),r=es(e,t,void 0);return r[ke].isManual_=!0,Qo(e),r}finishDraft(t,e){let r=t&&t[ke];(!r||!r.isManual_)&&yt(9);let{scope_:i}=r;return Ul(i,e),Vl(void 0,i)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,e){let r;for(r=e.length-1;r>=0;r--){let o=e[r];if(o.path.length===0&&o.op==="replace"){t=o.value;break}}r>-1&&(e=e.slice(r+1));let i=Er(Yo).applyPatches_;return Rt(t)?i(t,e):this.produce(t,o=>i(o,e))}};function es(t,e,r,i){let[o,n]=$n(e)?Er(_n).proxyMap_(e,r):Dn(e)?Er(_n).proxySet_(e,r):ff(e,r);return(r?.scope_??ql()).drafts_.push(o),n.callbacks_=r?.callbacks_??[],n.key_=i,r&&i!==void 0?uf(r,n,i):n.callbacks_.push(function(l){l.mapSetPlugin_?.fixSetContents(n);let{patchPlugin_:d}=l;n.modified_&&d&&d.generatePatches_(n,[],l)}),o}function Ql(t){return Rt(t)||yt(10,t),Jl(t)}function Jl(t){if(!qe(t)||In(t))return t;let e=t[ke],r,i=!0;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,r=Xo(t,e.scope_.immer_.useStrictShallowCopy_),i=e.scope_.immer_.shouldUseStrictIteration()}else r=Xo(t,!0);return kn(r,(o,n)=>{wn(r,o,Jl(n))},i),e&&(e.finalized_=!1),r}var yf=globalThis.Iterator,hg=typeof yf?.from=="function";var bf=new gf,is=bf.produce;function ec(t){return({dispatch:r,getState:i})=>o=>n=>typeof n=="function"?n(r,i,t):o(n)}var tc=ec(),rc=ec;var vf=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Ti:Ti.apply(null,arguments)};typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;var xf=t=>t&&typeof t.match=="function";function Yt(t,e){function r(...i){if(e){let o=e(...i);if(!o)throw new Error(Tt(0));return{type:t,payload:o.payload,..."meta"in o&&{meta:o.meta},..."error"in o&&{error:o.error}}}return{type:t,payload:i[0]}}return r.toString=()=>`${t}`,r.type=t,r.match=i=>Il(i)&&i.type===t,r}var ac=class Pi extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,Pi.prototype)}static get[Symbol.species](){return Pi}concat(...e){return super.concat.apply(this,e)}prepend(...e){return e.length===1&&Array.isArray(e[0])?new Pi(...e[0].concat(this)):new Pi(...e.concat(this))}};function ic(t){return qe(t)?is(t,()=>{}):t}function Nn(t,e,r){return t.has(e)?t.get(e):t.set(e,r(e)).get(e)}function Sf(t){return typeof t=="boolean"}var Ef=()=>function(e){let{thunk:r=!0,immutableCheck:i=!0,serializableCheck:o=!0,actionCreatorCheck:n=!0}=e??{},s=new ac;return r&&(Sf(r)?s.push(tc):s.push(rc(r.extraArgument))),s},Af="RTK_autoBatch";var nc=t=>e=>{setTimeout(e,t)},Cf=(t,e)=>r=>{let i=!1,o,n,s=()=>{i||(i=!0,cancelAnimationFrame(o),clearTimeout(n),r())};o=t(s),n=setTimeout(s,e)},wf=(t={type:"raf"})=>e=>(...r)=>{let i=e(...r),o=!0,n=!1,s=!1,a=new Set,l=t.type==="tick"?queueMicrotask:t.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?Cf(window.requestAnimationFrame,100):nc(10):t.type==="callback"?t.queueNotification:nc(t.timeout),d=()=>{s=!1,n&&(n=!1,a.forEach(u=>u()))};return Object.assign({},i,{subscribe(u){let p=()=>o&&u(),f=i.subscribe(p);return a.add(u),()=>{f(),a.delete(u)}},dispatch(u){try{return o=!u?.meta?.[Af],n=!o,n&&(s||(s=!0,l(d))),i.dispatch(u)}finally{o=!0}}})},_f=t=>function(r){let{autoBatch:i=!0}=r??{},o=new ac(t);return i&&o.push(wf(typeof i=="object"?i:void 0)),o};function lc(t){let e=Ef(),{reducer:r=void 0,middleware:i,devTools:o=!0,duplicateMiddlewareCheck:n=!0,preloadedState:s=void 0,enhancers:a=void 0}=t||{},l;if(typeof r=="function")l=r;else if(vn(r))l=Ho(r);else throw new Error(Tt(1));let d;typeof i=="function"?d=i(e):d=e();let u=Ti;o&&(u=vf({trace:!1,...typeof o=="object"&&o}));let p=Pl(...d),f=_f(p),b=typeof a=="function"?a(f):f(),x=u(...b);return Vo(l,s,x)}function cc(t){let e={},r=[],i,o={addCase(n,s){let a=typeof n=="string"?n:n.type;if(!a)throw new Error(Tt(28));if(a in e)throw new Error(Tt(29));return e[a]=s,o},addAsyncThunk(n,s){return s.pending&&(e[n.pending.type]=s.pending),s.rejected&&(e[n.rejected.type]=s.rejected),s.fulfilled&&(e[n.fulfilled.type]=s.fulfilled),s.settled&&r.push({matcher:n.settled,reducer:s.settled}),o},addMatcher(n,s){return r.push({matcher:n,reducer:s}),o},addDefaultCase(n){return i=n,o}};return t(o),[e,r,i]}function Of(t){return typeof t=="function"}function Rf(t,e){let[r,i,o]=cc(e),n;if(Of(t))n=()=>ic(t());else{let a=ic(t);n=()=>a}function s(a=n(),l){let d=[r[l.type],...i.filter(({matcher:u})=>u(l)).map(({reducer:u})=>u)];return d.filter(u=>!!u).length===0&&(d=[o]),d.reduce((u,p)=>{if(p)if(Rt(u)){let f=p(u,l);return f===void 0?u:f}else{if(qe(u))return is(u,f=>p(f,l));{let f=p(u,l);if(f===void 0){if(u===null)return u;throw new Error(Tt(9))}return f}}return u},a)}return s.getInitialState=n,s}var Tf=(t,e)=>xf(t)?t.match(e):t(e);function kf(...t){return e=>t.some(r=>Tf(r,e))}var Lf="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",$f=(t=21)=>{let e="",r=t;for(;r--;)e+=Lf[Math.random()*64|0];return e},Df=["name","message","stack","code"],ns=class{payload;meta;_type;constructor(t,e){this.payload=t,this.meta=e}},oc=class{payload;meta;_type;constructor(t,e){this.payload=t,this.meta=e}},Pf=t=>{if(typeof t=="object"&&t!==null){let e={};for(let r of Df)typeof t[r]=="string"&&(e[r]=t[r]);return e}return{message:String(t)}},sc="External signal was aborted",If=(()=>{function t(e,r,i){let o=Yt(e+"/fulfilled",(l,d,u,p)=>({payload:l,meta:{...p||{},arg:u,requestId:d,requestStatus:"fulfilled"}})),n=Yt(e+"/pending",(l,d,u)=>({payload:void 0,meta:{...u||{},arg:d,requestId:l,requestStatus:"pending"}})),s=Yt(e+"/rejected",(l,d,u,p,f)=>({payload:p,error:(i&&i.serializeError||Pf)(l||"Rejected"),meta:{...f||{},arg:u,requestId:d,rejectedWithValue:p!==void 0,requestStatus:"rejected",aborted:l?.name==="AbortError",condition:l?.name==="ConditionError"}}));function a(l,{signal:d}={}){return(u,p,f)=>{let b=i?.idGenerator?i.idGenerator(l):$f(),x=new AbortController,R,v;function L(S){v=S,x.abort()}d&&(d.aborted?L(sc):d.addEventListener("abort",()=>L(sc),{once:!0}));let H=(async function(){let S;try{let A=i?.condition?.(l,{getState:p,extra:f});if(Nf(A)&&(A=await A),A===!1)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};if(x.signal.aborted)throw{name:"AbortError",message:v||"Aborted"};let K=new Promise((z,ge)=>{R=()=>{ge({name:"AbortError",message:v||"Aborted"})},x.signal.addEventListener("abort",R,{once:!0})});u(n(b,l,i?.getPendingMeta?.({requestId:b,arg:l},{getState:p,extra:f}))),S=await Promise.race([K,Promise.resolve(r(l,{dispatch:u,getState:p,extra:f,requestId:b,signal:x.signal,abort:L,rejectWithValue:((z,ge)=>new ns(z,ge)),fulfillWithValue:((z,ge)=>new oc(z,ge))})).then(z=>{if(z instanceof ns)throw z;return z instanceof oc?o(z.payload,b,l,z.meta):o(z,b,l)})])}catch(A){S=A instanceof ns?s(null,b,l,A.payload,A.meta):s(A,b,l)}finally{R&&x.signal.removeEventListener("abort",R)}return i&&!i.dispatchConditionRejection&&s.match(S)&&S.meta.condition||u(S),S})();return Object.assign(H,{abort:L,requestId:b,arg:l,unwrap(){return H.then(Mf)}})}}return Object.assign(a,{pending:n,rejected:s,fulfilled:o,settled:kf(s,o),typePrefix:e})}return t.withTypes=()=>t,t})();function Mf(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Nf(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var dc=Symbol.for("rtk-slice-createasyncthunk"),Eg={[dc]:If};function Ff(t,e){return`${t}/${e}`}function Bf({creators:t}={}){let e=t?.asyncThunk?.[dc];return function(i){let{name:o,reducerPath:n=o}=i;if(!o)throw new Error(Tt(11));typeof process<"u";let s=(typeof i.reducers=="function"?i.reducers(zf()):i.reducers)||{},a=Object.keys(s),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},d={addCase(S,A){let K=typeof S=="string"?S:S.type;if(!K)throw new Error(Tt(12));if(K in l.sliceCaseReducersByType)throw new Error(Tt(13));return l.sliceCaseReducersByType[K]=A,d},addMatcher(S,A){return l.sliceMatchers.push({matcher:S,reducer:A}),d},exposeAction(S,A){return l.actionCreators[S]=A,d},exposeCaseReducer(S,A){return l.sliceCaseReducersByName[S]=A,d}};a.forEach(S=>{let A=s[S],K={reducerName:S,type:Ff(o,S),createNotation:typeof i.reducers=="function"};Hf(A)?Wf(K,A,d,e):Vf(K,A,d)});function u(){let[S={},A=[],K=void 0]=typeof i.extraReducers=="function"?cc(i.extraReducers):[i.extraReducers],z={...S,...l.sliceCaseReducersByType};return Rf(i.initialState,ge=>{for(let Te in z)ge.addCase(Te,z[Te]);for(let Te of l.sliceMatchers)ge.addMatcher(Te.matcher,Te.reducer);for(let Te of A)ge.addMatcher(Te.matcher,Te.reducer);K&&ge.addDefaultCase(K)})}let p=S=>S,f=new Map,b=new WeakMap,x;function R(S,A){return x||(x=u()),x(S,A)}function v(){return x||(x=u()),x.getInitialState()}function L(S,A=!1){function K(ge){let Te=ge[S];return typeof Te>"u"&&A&&(Te=Nn(b,K,v)),Te}function z(ge=p){return Nn(Nn(f,A,()=>new WeakMap),ge,()=>{let Te={};for(let[Yi,tt]of Object.entries(i.selectors??{}))Te[Yi]=Uf(tt,ge,()=>Nn(b,ge,v),A);return Te})}return{reducerPath:S,getSelectors:z,get selectors(){return z(K)},selectSlice:K}}let H={name:o,reducer:R,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:v,...L(n),injectInto(S,{reducerPath:A,...K}={}){let z=A??n;return S.inject({reducerPath:z,reducer:R},K),{...H,...L(z,!0)}}};return H}}function Uf(t,e,r,i){function o(n,...s){let a=e(n);return typeof a>"u"&&i&&(a=r()),t(a,...s)}return o.unwrapped=t,o}var uc=Bf();function zf(){function t(e,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...r}}return t.withTypes=()=>t,{reducer(e){return Object.assign({[e.name](...r){return e(...r)}}[e.name],{_reducerDefinitionType:"reducer"})},preparedReducer(e,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:r}},asyncThunk:t}}function Vf({type:t,reducerName:e,createNotation:r},i,o){let n,s;if("reducer"in i){if(r&&!jf(i))throw new Error(Tt(17));n=i.reducer,s=i.prepare}else n=i;o.addCase(t,n).exposeCaseReducer(e,n).exposeAction(e,s?Yt(t,s):Yt(t))}function Hf(t){return t._reducerDefinitionType==="asyncThunk"}function jf(t){return t._reducerDefinitionType==="reducerWithPrepare"}function Wf({type:t,reducerName:e},r,i,o){if(!o)throw new Error(Tt(18));let{payloadCreator:n,fulfilled:s,pending:a,rejected:l,settled:d,options:u}=r,p=o(t,n,u);i.exposeAction(e,p),s&&i.addCase(p.fulfilled,s),a&&i.addCase(p.pending,a),l&&i.addCase(p.rejected,l),d&&i.addMatcher(p.settled,d),i.exposeCaseReducer(e,{fulfilled:s||Fn,pending:a||Fn,rejected:l||Fn,settled:d||Fn})}function Fn(){}var pc="listener",fc="completed",hc="cancelled",Ag=`task-${hc}`,Cg=`task-${fc}`,wg=`${pc}-${hc}`,_g=`${pc}-${fc}`;var{assign:mc}=Object;var os="listenerMiddleware";var Kf=mc(Yt(`${os}/add`),{withTypes:()=>Kf}),Og=Yt(`${os}/removeAll`),qf=mc(Yt(`${os}/remove`),{withTypes:()=>qf});function Tt(t){return`Minified Redux Toolkit error #${t}; visit https://redux-toolkit.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var Gf=pn(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(r,i,o){this.eventBus.addEventListener(r,i,o)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,i,o){this.eventBus.removeEventListener(r,i,o)}}}),Bn=class extends Gf(Object){};window.ftReduxStores||(window.ftReduxStores={});var gc=class t extends Bn{static get(e){var r;let i=typeof e=="string"?e:e.name,o=typeof e=="string"?void 0:e,n=window.ftReduxStores[i];if(yn(n))return n;if(o==null)return;let s=uc({...o,reducers:(r=o.reducers)!==null&&r!==void 0?r:{}}),a=lc({reducer:(l,d)=>{if(d.type==="CLEAR_FT_REDUX_STORE"){let u=_i(s.getInitialState());for(let p of d.keeping)u[p]=(l??u)[p];return u}else if(typeof d.type=="string"&&d.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...l,...d.overwrites};return s.reducer(l,d)}});return window.ftReduxStores[o.name]=new t(s,a,o.eventBus,o.deprecatedKeys)}constructor(e,r,i,o){super(),this.reduxSlice=e,this.reduxStore=r,this.deprecatedKeys=o,this.isFtReduxStore=!0,this.commands=new fn,this.injectInto=(s,a)=>this.reduxSlice.injectInto(s,a),this.selectSlice=s=>this.reduxSlice.selectSlice(s);let n=s=>s!=null?JSON.parse(JSON.stringify(s)):s;this.actions=new Proxy(this.reduxSlice.actions,{get:(s,a,l)=>{let d=a,u=s[d];return u?(...p)=>{let f=u(...p.map(n));return this.reduxStore.dispatch(f),f}:p=>{let f=d,b=this.getState()[f];Wr(b,p)||this.setState({[f]:n(p)})}}}),this.eventBus=i??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...e){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:e})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}get selectors(){return this.reduxSlice.selectors}get reducerPath(){return this.reduxSlice.reducerPath}getSelectors(){return this.reduxSlice.getSelectors()}};var Un=class{static format(e,r,i,o,n){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(i,o,!!n)):this.getIntlDateTime(e,r,i,o,!!n)}static getMomentDateFormat(e,r,i){return i?"LT":e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,i,o,n){let s=typeof e=="string"?new Date(e):e,a=new Intl.DateTimeFormat(r,{dateStyle:i?"medium":"short"}).format(s),l=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(s);return n?l:o?`${a} ${l}`:a}static getTimezoneAsString(){let e=i=>String(Math.floor(i)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${e(Math.abs(r)/60)}:${e(Math.abs(r)%60)}`}};var zn=c(m()),Xf="ft-app-info",Ar=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Ar.eventName="authentication-change";var Ii=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Ii.eventName="ui-locale-changed";var Yf={session:(t,e)=>{(0,zn.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>_.dispatchEvent(new Ar(e.payload)),0))}},_=zn.FtReduxStore.get({name:Xf,reducers:Yf,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 yc=c(m()),Vn=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},iy=(0,yc.applyMixinOnce)(Symbol("withDateFormat"),function(t){class e extends t{constructor(...i){super(i),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(_)}dateFormatOptionsChanged(i){return i.has("metadataDescriptors")||i.has("useLongDateFormat")||i.has("useDateTimeFormat")||i.has("uiLocale")}getDateFormatter(i){var o,n;return((n=(o=this.metadataDescriptors.find(a=>a.key===i))===null||o===void 0?void 0:o.date)!==null&&n!==void 0?n:!1)?a=>Un.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Vn([(0,ss.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),Vn([(0,ss.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),Vn([Uo({store:_.name,selector:r=>{var i,o;return(o=(i=r.metadataConfiguration)===null||i===void 0?void 0:i.descriptors)!==null&&o!==void 0?o:[]}})],e.prototype,"metadataDescriptors",void 0),Vn([Uo({store:_.name})],e.prototype,"uiLocale",void 0),e});var bc;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(bc||(bc={}));var vc;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(vc||(vc={}));var xc;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(xc||(xc={}));var Sc;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(Sc||(Sc={}));var Ec;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Ec||(Ec={}));var Ac;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(Ac||(Ac={}));var Cc;(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(Cc||(Cc={}));var wc;(function(t){t.BOOKMARK__CREATE="BOOKMARK__CREATE",t.BOOKMARK__DELETE="BOOKMARK__DELETE",t.CASE_DEFLECTION__START="CASE_DEFLECTION__START",t.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",t.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",t.CHATBOT__RATE="CHATBOT__RATE",t.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",t.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",t.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",t.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",t.DOCUMENT__PRINT="DOCUMENT__PRINT",t.DOCUMENT__PROCESS="DOCUMENT__PROCESS",t.DOCUMENT__RATE="DOCUMENT__RATE",t.DOCUMENT__SEARCH="DOCUMENT__SEARCH",t.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",t.DOCUMENT__UNRATE="DOCUMENT__UNRATE",t.FEEDBACK__SEND="FEEDBACK__SEND",t.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",t.AI__RATE="AI__RATE",t.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",t.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",t.KHUB__PROCESS="KHUB__PROCESS",t.KHUB__SEARCH="KHUB__SEARCH",t.LABELS__DOWNLOAD="LABELS__DOWNLOAD",t.LINK__SHARE="LINK__SHARE",t.PAGE__DISPLAY="PAGE__DISPLAY",t.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",t.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",t.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",t.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",t.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",t.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",t.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",t.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",t.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",t.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",t.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",t.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",t.TOPIC__RATE="TOPIC__RATE",t.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",t.TOPIC__UNRATE="TOPIC__UNRATE",t.USER__LOGIN="USER__LOGIN",t.USER__LOGOUT="USER__LOGOUT",t.HEARTBEAT="HEARTBEAT"})(wc||(wc={}));var _c;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(_c||(_c={}));var Oc;(function(t){t.METADATA_FILTER="METADATA_FILTER",t.ACCESS_RIGHTS_FILTER="ACCESS_RIGHTS_FILTER"})(Oc||(Oc={}));var Rc;(function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"})(Rc||(Rc={}));var Tc;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT",t.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",t.LINK_PREVIEW="LINK_PREVIEW",t.UD_VIEWER="UD_VIEWER",t.ASSET_VIEWER="ASSET_VIEWER"})(Tc||(Tc={}));var kc;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(kc||(kc={}));var Lc;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Lc||(Lc={}));var $c;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})($c||($c={}));var Dc;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Dc||(Dc={}));var Pc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"})(Pc||(Pc={}));var Ic;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(Ic||(Ic={}));var Mc;(function(t){t.ASC="ASC",t.DESC="DESC"})(Mc||(Mc={}));var Nc;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Nc||(Nc={}));var Fc;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(Fc||(Fc={}));var Bc;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Bc||(Bc={}));var Uc;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Uc||(Uc={}));var zc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(zc||(zc={}));var Vc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Vc||(Vc={}));var Hc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Hc||(Hc={}));var jc;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(jc||(jc={}));var Wc;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Wc||(Wc={}));var fe;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",t.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(fe||(fe={}));var ot;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(ot||(ot={}));var Kc;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(Kc||(Kc={}));var qc;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(qc||(qc={}));var Gc;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Gc||(Gc={}));var Xc;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.SEMANTIC_SEARCH="SEMANTIC_SEARCH",t.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",t.DOCUMENTATION="DOCUMENTATION",t.OTHER="OTHER"})(Xc||(Xc={}));var Yc;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(Yc||(Yc={}));var Zc;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Zc||(Zc={}));var Qc;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Qc||(Qc={}));var Jc;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Jc||(Jc={}));var ed;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(ed||(ed={}));var td;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(td||(td={}));var rd;(function(t){t.SOURCES="SOURCES",t.ENRICH_AND_CLEAN="ENRICH_AND_CLEAN",t.VOCABULARIES="VOCABULARIES",t.METADATA="METADATA",t.PRETTY_URL="PRETTY_URL",t.ACCESS_RULE="ACCESS_RULE",t.DESIGNED_PAGES="DESIGNED_PAGES",t.THEME_STUDIO="THEME_STUDIO",t.PORTAL_GENERAL="PORTAL_GENERAL",t.ASSETS="ASSETS",t.CODE_LIBRARY="CODE_LIBRARY",t.THEME="THEME",t.CONTENT_STYLES="CONTENT_STYLES",t.HOMEPAGE="HOMEPAGE",t.CLASSIC_SEARCH_PAGE="CLASSIC_SEARCH_PAGE",t.CLASSIC_READER_PAGE="CLASSIC_READER_PAGE",t.PORTAL_METADATA="PORTAL_METADATA",t.LANGUAGES="LANGUAGES",t.PRINT_TEMPLATES="PRINT_TEMPLATES",t.OFFLINE="OFFLINE",t.CUSTOM_JS="CUSTOM_JS",t.CONFIDENTIALITY="CONFIDENTIALITY",t.NOTIFICATIONS="NOTIFICATIONS"})(rd||(rd={}));var id;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(id||(id={}));var Zf={[fe.PERSONAL_BOOK_SHARE_USER]:[fe.PERSONAL_BOOK_USER],[fe.HTML_EXPORT_USER]:[fe.PERSONAL_BOOK_USER],[fe.PDF_EXPORT_USER]:[fe.PERSONAL_BOOK_USER],[fe.KHUB_ADMIN]:[fe.CONTENT_PUBLISHER],[fe.ADMIN]:[fe.KHUB_ADMIN,fe.USERS_ADMIN,fe.PORTAL_ADMIN,fe.BEHAVIOR_DATA_USER],[fe.GENERATIVE_AI_EXPORT_USER]:[fe.GENERATIVE_AI_USER]};function nd(t,e){return t===e||(Zf[t]??[]).some(r=>nd(r,e))}function as(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(i=>nd(i,e))}function od(t,...e){return t==null?!1:e.some(r=>as(t,r))}var qn=c(m());var ls=c(m());var Cr=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:i}=_.getState(),o=e??i;if(r&&o&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,o,!0)}static await(e){return new Promise(r=>{let i=t.get(e);if(i)r(i);else{let o=_.subscribe(()=>{i=t.get(e),i&&(o(),r(i))})}})}};var Yr=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Cr.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Cr.await()}};var Ge=class extends Yr{constructor(e=!0,r){var i;super(r),this.sortObjectFields=(n,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([a],[l])=>a.localeCompare(l)));let o=this.constructor;o.commonCache=(i=o.commonCache)!==null&&i!==void 0?i:new ls.CacheRegistry,this.cache=e?o.commonCache:new ls.CacheRegistry}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((r,i)=>0|31*r+i.charCodeAt(0),0))}};var Hn=class extends Ge{async listMySearches(){let{session:e}=_.getState();return as(e,fe.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var jn=class extends Ge{async listMyBookmarks(){let e=_.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}};var Wn=class extends Ge{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=_.getState().session;return!!e?.sessionAuthenticated}};var Kn=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 e=_.getState().session;return!!e?.sessionAuthenticated}};var Qf="ft-user-assets",Jf={setAssetCount:(t,e)=>{let{userAssetType:r,count:i}=e.payload.assetCount;t.assetCounts.allAsset[r]=i},clearAssetCount:t=>{Object.values(ot).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let r=e.payload.mapId;t.assetCounts.bookmarkByMap[r]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:r,mapId:i,asset:o}=e.payload;ds(t,r,[...cs(t,r),o]),sd(t,r,1,i),ad(t,o)},editAsset:(t,e)=>{let{assetType:r,asset:i}=e.payload;ds(t,r,cs(t,r).map(o=>o.id===i.id?i:o)),ad(t,i)},removeAsset:(t,e)=>{let{assetType:r,mapId:i,assetId:o}=e.payload;ds(t,r,cs(t,r).filter(n=>n.id!==o)),sd(t,r,-1,i)}},ld={[ot.SEARCHES]:"savedSearches",[ot.BOOKMARKS]:"bookmarks",[ot.BOOKS]:void 0,[ot.COLLECTIONS]:void 0},cs=(t,e)=>{var r;let i=ld[e];return i?(r=t[i])!==null&&r!==void 0?r:[]:[]},ds=(t,e,r)=>{let i=ld[e];i&&(t[i]=r)},sd=(t,e,r,i)=>{let o=t.assetCounts.allAsset[e];if(o!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,o+r),e===ot.BOOKMARKS&&i)){let n=t.assetCounts.bookmarkByMap[i];t.assetCounts.bookmarkByMap[i]=Math.max(0,n+r)}},ad=(t,e)=>{let r=t.assetLabels.map(o=>o.title),i=e.labels.filter(o=>!r.includes(o)).map(o=>({title:o}));t.assetLabels.push(...i)},Pe=qn.FtReduxStore.get({name:Qf,reducers:Jf,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(ot).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),us=class{constructor(e=new Wn,r=new Kn){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=_.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new jn,this.savedSearchesService=new Hn,_.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=_.getState();(0,qn.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),Pe.actions.clearAssetCount(),Pe.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Pe.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Pe.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Pe.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();Pe.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&Pe.getState().assetCounts.allAsset[e]!==r.count&&Pe.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&Pe.getState().assetCounts.bookmarkByMap[e]!==r.count&&Pe.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(Pe.getState().assetCounts.bookmarkByMap).length!==0;e===ot.BOOKMARKS&&r&&Pe.actions.clearBookmarkCountByMap(),Pe.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let r=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Pe.actions.bookmarks(r)}}},eh=new us;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=eh);var ps=class{addCommand(e,r=!1){_.commands.add(e,r)}consumeCommand(e){return _.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new ps;var st=c(m());var cd,Zr=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},th=Symbol("clearAfterUnitTest"),Gn=class extends(0,st.withEventBus)(Ge){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[cd]=()=>{this.defaultMessages={},this.cache=new st.CacheRegistry,this.listeners={}},this.currentUiLocale=_.getState().uiLocale,_.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=_.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let r=e.name.toLowerCase();this.cache.setFinal(r,e),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,r){var i;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let o={...(i=this.defaultMessages[e])!==null&&i!==void 0?i:{},...r};(0,st.deepEqual)(this.defaultMessages[e],o)||(this.defaultMessages[e]=o,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,i;return this.fetchContext(e),(i=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&i!==void 0?i:{}}resolveRawMessage(e,r){let i=e.toLowerCase();return this.resolveContext(i)[r]}resolveMessage(e,r,...i){var o;let n=e.toLowerCase(),s=this.resolveContext(n);return new st.ParametrizedLabelResolver((o=this.defaultMessages[n])!==null&&o!==void 0?o:{},s).resolve(r,...i)}async fetchContext(e){let r=!this.cache.has(e),i;try{i=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(o){!(o instanceof st.CanceledPromiseError)&&r&&console.error(o)}return i}subscribe(e,r){var i;return e=e.toLowerCase(),this.listeners[e]=(i=this.listeners[e])!==null&&i!==void 0?i:new Set,this.listeners[e].add(r),()=>{var o;return(o=this.listeners[e])===null||o===void 0?void 0:o.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new Zr({loadedContexts:e})),this.dispatchEvent(new Zr({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new Zr({loadedContexts:[e]})),this.dispatchEvent(new Zr({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(i=>(0,st.delay)(0).then(()=>i()).catch(()=>null)))}};cd=th;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Gn{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Gn{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var Mi=window.FluidTopicsI18nService,fs=window.FluidTopicsCustomI18nService;var dd=c(m()),hs=class{highlightHtml(e,r,i){(0,dd.highlightHtml)(e,r,i)}};window.FluidTopicsHighlightHtmlService=new hs;var ud=c(m());var ms=class{isDate(e){var r,i,o,n;return(n=(i=((o=(r=_.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&o!==void 0?o:[]).find(a=>a.key===e))===null||i===void 0?void 0:i.date)!==null&&n!==void 0?n:!1}format(e,r){var i,o,n,s;if(e==null)return"";try{return ud.DateFormatter.format(e,(i=r?.locale)!==null&&i!==void 0?i:_.getState().uiLocale,(o=r?.longFormat)!==null&&o!==void 0?o:!1,(n=r?.withTime)!==null&&n!==void 0?n:!1,(s=r?.onlyTime)!==null&&s!==void 0?s:!1)}catch(a){throw console.error(`Date ${JSON.stringify(e)} is not valid`,a),a}}};window.FluidTopicsDateService=new ms;var pd=c(m());var Ni=class{static get(e,r,{baseUrl:i,localesConfiguration:o,availableContentLocales:n}=_.getState()){var s;if(!r||n.length>0&&!n.some(a=>a.lang===r)){let a=o?.defaultLocales.defaultContentLocale;r=a?`${a.lang}-${a.region}`:(s=n[0])===null||s===void 0?void 0:s.lang}return new pd.SearchPlaceConverter(i,e??20,o?.allLanguagesAllowed,r,n)}};var gs=class{urlToSearchRequest(e){return Ni.get().parse(e)}searchRequestToUrl(e){return Ni.get().serialize(e)}};window.FluidTopicsUrlService=new gs;var zt=c(m());var wr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{nextLocation:e}})}};wr.eventName="before-location-change";var _r=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};_r.eventName="change";var ys=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let r=sessionStorage.getItem(this.itemName(e));return r?JSON.parse(r):void 0}set(e,r){sessionStorage.setItem(this.itemName(e),JSON.stringify(r))}},fd=new ys;var Xn=class t extends zt.WithEventBus{static build(){return new t(window.history,fd,()=>window.location,!1)}constructor(e,r,i,o){var n,s;super(),this.history=e,this.historyStorage=r,this.windowLocation=i,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(n=e.state)===null||n===void 0?void 0:n.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(o)}setCurrentState(e,r=!1){let i=r&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,i&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,zt.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,this.windowLocation().href]),setTimeout(()=>this.dispatchEvent(new _r(this.currentItem())),0)}installProxies(){let e=r=>(i,o,[n,s,a])=>{let l=new wr(new URL(typeof a=="string"?a:(a??this.windowLocation()).href,window.location.origin));this.dispatchEvent(l);let d=r(),u={...d===this.currentIndex?this.currentState:void 0,...n,index:d,href:l.detail.nextLocation.href};i.apply(o,[u,s,u.href]),this.setCurrentState(u,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let r=this.history.length-1;r>=0;r--)e?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(e){var r;let i={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(i)}addBeforeLocationChangeListener(e){this.addEventListener(wr.eventName,e)}removeBeforeLocationChangeListener(e){this.removeEventListener(wr.eventName,e)}addHistoryChangeListener(e){this.addEventListener(_r.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(_r.eventName,e)}currentItem(){return(0,zt.deepCopy)(this.currentState)}back(){let e=this.previousDifferentMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,zt.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(i=>!!i).filter(i=>i.index<this.currentIndex).reverse();return(0,zt.deepCopy)(r.find(i=>e(i)))}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return(0,zt.deepCopy)(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var r;let i=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!i)return e;let o=e,n=e+1;for(;this.states.length>n&&!this.isDifferentMajorState(n,i);)this.hasState(n)&&(o=n),n++;return o}buildCurrentState(){var e,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&r!==void 0?r:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,r){var i;if(!this.hasState(e))return!1;let o=r??this.currentState.majorStateId,n=(i=this.states[e])===null||i===void 0?void 0:i.majorStateId;return n==null||n!=o}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Xn.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:t=>window.FluidTopicsInternalHistoryService.backwardItemMatching(t),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t),addBeforeLocationChangeListener:t=>window.FluidTopicsInternalHistoryService.addBeforeLocationChangeListener(t),removeBeforeLocationChangeListener:t=>window.FluidTopicsInternalHistoryService.removeBeforeLocationChangeListener(t)});var hd=c(E());var md=hd.css`
|
|
624
624
|
`;var bd=c(E()),Ie=c(j()),Tr=c(m());var Or=c(m());function gd(t,e){let{authenticationRequired:r,session:i}=_.getState();return r&&!i?.sessionAuthenticated?Promise.resolve(e):t()}var Yn=class extends Yr{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}};var bs=class t extends Or.FtStateManager{static build(e){return new t(_,e)}constructor(e,r){super(),this.store=e,this.cache=new Or.CacheRegistry,this.withManualResources=!0,this.userLocaleService=new Yn,this.cleanSessionDebouncer=new Or.Debouncer,this.reloadConfiguration=()=>{var i;(i=this.cache)===null||i===void 0||i.clear("availableContentLocales"),this.updateAvailableContentLocales()},this.reloadDebouncer=new Or.Debouncer(500),this.apiProvider=r??(()=>Cr.get())}setWithManualResources(e){this.withManualResources=e,this.updateIfNeeded()}addListeners(){this.store.addEventListener(Ar.eventName,this.reloadConfiguration)}removeListeners(){this.store.removeEventListener(Ar.eventName,this.reloadConfiguration)}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.store.getState().session==null&&this.updateSession(),this.store.getState().metadataConfiguration==null&&this.updateMetadataConfiguration()),this.store.getState().localesConfiguration==null&&this.updateLocalesConfiguration(),(this.store.getState().availableContentLocales==null||this.store.getState().availableContentLocales.length==0)&&this.updateAvailableContentLocales())}async updateSession(){let e=await this.cache.get("session",async()=>{let r=await this.apiProvider().getCurrentSession();return r.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.setSession(void 0)},r.idleTimeoutInMillis),r});this.setSession(e)}async updateMetadataConfiguration(){this.setMetadataConfiguration(await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration()))}async updateLocalesConfiguration(){this.setLocalesConfiguration(await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration()))}async updateAvailableContentLocales(){var e;let r=await this.cache.get("availableContentLocales",()=>gd(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((e=r.contentLocales)!==null&&e!==void 0?e:[])}setStickyFilters(e){this.store.actions.stickyFilters(e)}setBaseUrl(e){this.store.actions.baseUrl(e),window.fluidTopicsBaseUrl=e}setTenantId(e){this.store.actions.tenantId(e)}setApiIntegrationIdentifier(e){this.store.actions.apiIntegrationIdentifier(e)}setApiIntegrationAppVersion(e){this.store.actions.apiIntegrationAppVersion(e)}setUiLocale(e){this.store.actions.uiLocale(e)}setLocalesConfiguration(e){this.store.actions.localesConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setAvailableContentLocales(e){this.store.actions.availableContentLocales(e),setTimeout(()=>this.updateIfNeeded())}stopReloadDebouncer(){this.reloadDebouncer.cancel()}requestUiLocaleUpdate(e,r){this.userLocaleService.updateUiLocale({uiLocale:e,contentLocale:r}).then(i=>{i.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new Ii(i)))}).catch(()=>{})}setMetadataConfiguration(e){this.store.actions.metadataConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setNoCustom(e){this.store.actions.noCustom(e)}setEditorMode(e){this.store.actions.editorMode(e)}setNoCustomComponent(e){this.store.actions.noCustomComponent(e)}setNoCustomCode(e){this.store.actions.noCustomCode(e)}setSession(e){this.store.actions.session(e),setTimeout(()=>this.updateIfNeeded())}setOpenExternalDocumentInNewTab(e){this.store.actions.openExternalDocumentInNewTab(e)}setNavigatorOnline(e){this.store.actions.navigatorOnline(e)}setForcedOffline(e){this.store.actions.forcedOffline(e)}setAuthenticationRequired(e){this.store.actions.authenticationRequired(e)}userHasAnyRole(...e){return od(_.getState().session,...e)}},yd=bs.build();var Rr=class extends Event{constructor(e,r,i,o){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=r,this.callback=i,this.subscribe=o??!1}};var Fi=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=e=>{let r=this.pendingContextRequests.get(e.context);if(r===void 0)return;this.pendingContextRequests.delete(e.context);let{requests:i}=r;for(let{elementRef:o,callbackRef:n}of i){let s=o.deref(),a=n.deref();s===void 0||a===void 0||s.dispatchEvent(new Rr(e.context,s,a,!0))}},this.onContextRequest=e=>{if(e.subscribe!==!0)return;let r=e.contextTarget??e.composedPath()[0],i=e.callback,o=this.pendingContextRequests.get(e.context);o===void 0&&this.pendingContextRequests.set(e.context,o={callbacks:new WeakMap,requests:[]});let n=o.callbacks.get(r);n===void 0&&o.callbacks.set(r,n=new WeakSet),n.has(i)||(n.add(i),o.requests.push({elementRef:new WeakRef(r),callbackRef:new WeakRef(i)}))}}attach(e){e.addEventListener("context-request",this.onContextRequest),e.addEventListener("context-provider",this.onContextProvider)}detach(e){e.removeEventListener("context-request",this.onContextRequest),e.removeEventListener("context-provider",this.onContextProvider)}};var be=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},ie=class extends Tr.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=yd,this.contextRoot=new Fi}render(){return bd.html`
|
|
625
625
|
<slot></slot>
|
|
626
626
|
`}connectedCallback(){super.connectedCallback(),this.stateManager.addListeners(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.removeListeners(),this.contextRoot.detach(document.body)}update(e){var r;super.update(e),e.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),e.has("tenantId")&&this.stateManager.setTenantId(this.tenantId),e.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),e.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),e.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),e.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),e.has("noCustomCode")&&this.stateManager.setNoCustomCode(this.noCustomCode),e.has("session")&&this.stateManager.setSession(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(i=>Mi.addContext(i)),e.has("openExternalDocumentInNewTab")&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&this.stateManager.setNavigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&this.stateManager.setForcedOffline(this.forcedOffline),e.has("authenticationRequired")&&this.stateManager.setAuthenticationRequired(this.authenticationRequired),e.has("withManualResources")&&((r=this.stateManager)===null||r===void 0||r.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};ie.elementDefinitions={};ie.styles=md;be([(0,Ie.property)()],ie.prototype,"baseUrl",void 0);be([(0,Ie.property)()],ie.prototype,"tenantId",void 0);be([(0,Ie.property)()],ie.prototype,"apiIntegrationIdentifier",void 0);be([(0,Ie.property)()],ie.prototype,"apiIntegrationAppVersion",void 0);be([(0,Ie.property)()],ie.prototype,"uiLocale",void 0);be([(0,Tr.jsonProperty)(null)],ie.prototype,"availableUiLocales",void 0);be([(0,Tr.jsonProperty)(null)],ie.prototype,"metadataConfiguration",void 0);be([(0,Ie.property)({type:Boolean})],ie.prototype,"editorMode",void 0);be([(0,Ie.property)({type:Boolean})],ie.prototype,"noCustom",void 0);be([(0,Ie.property)({type:Boolean})],ie.prototype,"openExternalDocumentInNewTab",void 0);be([(0,Ie.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],ie.prototype,"noCustomComponent",void 0);be([(0,Ie.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],ie.prototype,"noCustomCode",void 0);be([(0,Ie.property)({type:Boolean})],ie.prototype,"withManualResources",void 0);be([(0,Ie.property)({type:Boolean})],ie.prototype,"navigatorOnline",void 0);be([(0,Ie.property)({type:Boolean})],ie.prototype,"forcedOffline",void 0);be([(0,Ie.property)({type:Boolean})],ie.prototype,"authenticationRequired",void 0);be([(0,Tr.jsonProperty)([])],ie.prototype,"messageContexts",void 0);be([(0,Tr.jsonProperty)(void 0)],ie.prototype,"session",void 0);var xd=c(m());var vd={"ft-app-context":ie};(0,xd.customElements)(vd);var Sd=c(j());var vs=class{fromLocalizableLabel(e){return e.type=="PLAIN_TEXT"?{message:e.text}:{key:e.key,custom:e.type=="LOCALIZED_CUSTOM",context:e.context,message:e.key}}fromAttribute(e){if(e!=null)try{return JSON.parse(e)}catch{if(this.isI18nKey(e)){let[r,i]=e.split(".");return{context:r,key:i,custom:r!=="officialContext",message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},Qr=new vs;var nh=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},Ui=Symbol("i18nAttributes"),Ed=Symbol("i18nListAttributes"),Ad=Symbol("i18nProperties"),Zn=Symbol("i18nContexts"),Bi=Symbol("i18nUnsubs"),eo=(0,Jr.applyMixinOnce)(Symbol("withI18n"),function(t){var e,r;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[r]=new Map}getI18nService(n){return n??this.useCustomMessageContexts?fs:Mi}i18n(n){let{context:s,key:a,message:l}=n,{custom:d,args:u,argsProvider:p}=n;if(s&&a){this.hasI18nContext(s)||this.addI18nContext(s,void 0,d);let f=u??(p?p(this):[]);return this.getI18nService(d).resolveMessage(s,a,...f)}return l}async awaitI18n(n){let{context:s,custom:a}=n;return s&&await this.getI18nService(a).prepareContext(s),this.i18n(n)}customI18n(n,s){if(Qr.isI18nKey(n)){let[a,l]=n.split(".");return this.i18n({custom:!0,context:a,key:l,...s})||n}return n}firstUpdated(n){super.firstUpdated(n),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(n){super.update(n),this.updateI18nAttributes((s,a,l)=>n.has(a)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(n){this.updateI18nAttributes((s,a,l)=>{var d;return((d=l?.context)===null||d===void 0?void 0:d.toLowerCase())===n}),this.updateI18nProperties(s=>s.context.toLowerCase()===n),this.requestUpdate()}updateI18nAttributes(n){var s,a;let l=this,d=(u,p,f)=>f?.context&&f.key&&n(u,p,f)?{...f,message:this.i18n({context:f.context,key:f.key,custom:f.custom,...u})}:f;(s=this[Ui])===null||s===void 0||s.forEach((u,p)=>l[p]=d(u,p,l[p])),(a=this[Ed])===null||a===void 0||a.forEach((u,p)=>{var f;return l[p]=(f=l[p])===null||f===void 0?void 0:f.map(b=>d(u,p,b))})}updateI18nProperties(n){var s;(s=this[Ad])===null||s===void 0||s.forEach((a,l)=>{n(a,l)&&(this[l]=this.i18n(a))})}addI18nMessages(n,s,a){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(n,s,a)}addI18nContext(n,s,a){let l=(typeof n=="string"?n:n.name).toLowerCase();a=typeof n=="string"?a:n.custom,this[Zn].set(l,{isCustomContext:a}),this[Bi].has(l)||this[Bi].set(l,this.getI18nService(a).subscribe(l,()=>this.onI18nUpdate(l))),this.getI18nService(a).prepareContext(l,s)}hasI18nContext(n){return this[Zn].has(n.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Zn].forEach((n,s)=>this.addI18nContext(s,void 0,n.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Bi].forEach(n=>n()),this[Bi].clear()}}return e=Zn,r=Bi,nh([(0,Sd.property)({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}),Qn=class extends eo(Jr.FtLitElement){},Jn=class extends eo(Jr.FtLitElementRedux){};var Cd=c(m());var xs=class{fromAttribute(e){if(!e)return[];try{let r=JSON.parse(e);return Array.isArray(r)?r.map(i=>typeof i=="string"?Qr.fromAttribute(i):i):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},oh=new xs;var wd=(t,e)=>(r,i)=>{var o;r.constructor.createProperty(i,{type:Object,hasChanged:Cd.hasChanged,converter:Qr,...e}),r[Ui]=(o=r[Ui])!==null&&o!==void 0?o:new Map,r[Ui].set(i,t??{})};var _d=c(E());var Od=_d.css`
|
|
@@ -655,7 +655,7 @@
|
|
|
655
655
|
<div></div>
|
|
656
656
|
<div></div>
|
|
657
657
|
</div>
|
|
658
|
-
`}};kr.styles=Pa;var Hd=c(m());var Vd={"ft-loader":kr};(0,Hd.customElements)(Vd);var Jt=c(E()),io=c(nt()),
|
|
658
|
+
`}};kr.styles=Pa;var Hd=c(m());var Vd={"ft-loader":kr};(0,Hd.customElements)(Vd);var Jt=c(E()),io=c(nt()),q=c(j());var Qt=t=>t??ce;var J=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},O=class t extends(0,kt.toFtFormComponent)(kt.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-button--no-text":!this.hasTextContent,"ft-no-text-select":!0}}constructor(){super(),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1,this.disabled=!1,this.icon=void 0,this.trailingIcon=!1,this.type="button",this.href=void 0,this.target=void 0,this.loading=!1,this.ariaLabel=null,this.ariaHasPopup=null,this.ariaPressed=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.activated=!1,this.hasTextContent=!1,this.addEventListener("click",e=>{var r;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((r=this.form)===null||r===void 0||r.requestSubmit())})}render(){var e,r,i;let o={"ft-button--label":!0,"ft-safari-ellipsis-fix":kt.isSafari},n=Jt.html`
|
|
659
659
|
<ft-ripple part="ripple"
|
|
660
660
|
?disabled=${this.isDisabled()}
|
|
661
661
|
?activated=${this.activated}
|
|
@@ -696,7 +696,7 @@
|
|
|
696
696
|
<ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
|
|
697
697
|
`:Jt.html`
|
|
698
698
|
<slot part="icon" name="icon"></slot>
|
|
699
|
-
`}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}showTooltip(){var e;(e=this.tooltip)===null||e===void 0||e.show()}showTemporaryTooltip(e,r){var i;return(i=this.tooltip)===null||i===void 0?void 0:i.showTemporaryText(e,r)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}isDisabled(){return this.disabled||this.loading}contentAvailableCallback(e){super.contentAvailableCallback(e),this.labelContainer&&t.labelsObserver.observe(this.labelContainer)}disconnectedCallback(){super.disconnectedCallback(),this.labelContainer&&t.labelsObserver.unobserve(this.labelContainer)}};O.elementDefinitions={"ft-ripple":M,"ft-tooltip":ae,"ft-icon":oe,"ft-loader":kr,"ft-typography":G};O.styles=[kt.safariEllipsisFix,Ba,kt.noTextSelect];O.labelsObserver=new IntersectionObserver(t=>{for(let e of t){let r=e.target.getRootNode();r instanceof ShadowRoot&&r.host?r.host.hasTextContent=e.boundingClientRect.width>0:O.labelsObserver.unobserve(e.target)}});J([(0,
|
|
699
|
+
`}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}showTooltip(){var e;(e=this.tooltip)===null||e===void 0||e.show()}showTemporaryTooltip(e,r){var i;return(i=this.tooltip)===null||i===void 0?void 0:i.showTemporaryText(e,r)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}isDisabled(){return this.disabled||this.loading}contentAvailableCallback(e){super.contentAvailableCallback(e),this.labelContainer&&t.labelsObserver.observe(this.labelContainer)}disconnectedCallback(){super.disconnectedCallback(),this.labelContainer&&t.labelsObserver.unobserve(this.labelContainer)}};O.elementDefinitions={"ft-ripple":M,"ft-tooltip":ae,"ft-icon":oe,"ft-loader":kr,"ft-typography":G};O.styles=[kt.safariEllipsisFix,Ba,kt.noTextSelect];O.labelsObserver=new IntersectionObserver(t=>{for(let e of t){let r=e.target.getRootNode();r instanceof ShadowRoot&&r.host?r.host.hasTextContent=e.boundingClientRect.width>0:O.labelsObserver.unobserve(e.target)}});J([(0,q.property)({type:Boolean})],O.prototype,"primary",void 0);J([(0,q.property)({type:Boolean})],O.prototype,"outlined",void 0);J([(0,q.property)({type:Boolean})],O.prototype,"dense",void 0);J([(0,q.property)({type:Boolean})],O.prototype,"round",void 0);J([(0,q.property)({type:Boolean})],O.prototype,"disabled",void 0);J([(0,q.property)()],O.prototype,"icon",void 0);J([(0,q.property)()],O.prototype,"iconVariant",void 0);J([(0,q.property)({type:Boolean})],O.prototype,"trailingIcon",void 0);J([(0,q.property)()],O.prototype,"label",void 0);J([(0,q.property)()],O.prototype,"type",void 0);J([(0,q.property)()],O.prototype,"href",void 0);J([(0,q.property)()],O.prototype,"target",void 0);J([(0,q.property)({type:Boolean})],O.prototype,"loading",void 0);J([(0,q.property)({attribute:"aria-label"})],O.prototype,"ariaLabel",void 0);J([(0,q.property)()],O.prototype,"ariaHasPopup",void 0);J([(0,q.property)({attribute:"aria-pressed"})],O.prototype,"ariaPressed",void 0);J([(0,q.property)()],O.prototype,"tooltipPosition",void 0);J([(0,q.property)({type:Boolean})],O.prototype,"hideTooltip",void 0);J([(0,q.property)({type:Boolean})],O.prototype,"forceTooltip",void 0);J([(0,q.property)({type:Boolean})],O.prototype,"activated",void 0);J([(0,q.query)(".ft-button")],O.prototype,"button",void 0);J([(0,q.query)(".ft-button--label")],O.prototype,"labelContainer",void 0);J([(0,q.state)()],O.prototype,"hasTextContent",void 0);J([(0,q.query)(".ft-button--label slot")],O.prototype,"slottedContent",void 0);J([(0,q.query)("[part=tooltip]")],O.prototype,"tooltip",void 0);var Wd=c(m());var jd={"ft-button":O};(0,Wd.customElements)(jd);var no=c(E()),xt=c(j()),Gd=c(m()),Xd=c(nt());var ve=c(m()),Kd=c(E());var Ye={textColor:ve.FtCssVariableFactory.extend("--ft-checkbox-text-color","",ve.designSystemVariables.colorOnSurfaceHigh),fontSize:ve.FtCssVariableFactory.extend("--ft-checkbox-font-size","",y.fontSize),activeColor:ve.FtCssVariableFactory.extend("--ft-checkbox-active-color","",ve.designSystemVariables.colorPrimary),checkColor:ve.FtCssVariableFactory.extend("--ft-checkbox-check-color","",ve.designSystemVariables.colorOnPrimary),borderColor:ve.FtCssVariableFactory.extend("--ft-checkbox-border-color","",ve.designSystemVariables.colorOnSurfaceMedium),disabledColor:ve.FtCssVariableFactory.extend("--ft-checkbox-disabled-color","",ve.designSystemVariables.colorOnSurfaceDisabled),errorColor:ve.FtCssVariableFactory.extend("--ft-checkbox-error-color","",ve.designSystemVariables.colorError)},qd=Kd.css`
|
|
700
700
|
* {
|
|
701
701
|
box-sizing: border-box;
|
|
702
702
|
}
|
|
@@ -777,7 +777,7 @@
|
|
|
777
777
|
|
|
778
778
|
.ft-checkbox.ft-checkbox--error {
|
|
779
779
|
color: ${Ye.errorColor};
|
|
780
|
-
${(0,
|
|
780
|
+
${(0,ve.setVariable)(W.color,Ye.errorColor)};
|
|
781
781
|
|
|
782
782
|
.ft-checkbox--box {
|
|
783
783
|
border-color: ${Ye.errorColor};
|
|
@@ -789,6 +789,15 @@
|
|
|
789
789
|
}
|
|
790
790
|
}
|
|
791
791
|
}
|
|
792
|
+
|
|
793
|
+
.ft-checkbox:has(:focus-visible) {
|
|
794
|
+
outline: 2px solid ${ve.designSystemVariables.colorPrimary};
|
|
795
|
+
outline-offset: -2px;
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
.ft-checkbox ft-typography {
|
|
799
|
+
padding-right: 2px;
|
|
800
|
+
}
|
|
792
801
|
`;var Vt=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},Es=class extends CustomEvent{constructor(e){super("change",{detail:e})}},Ce=class extends Gd.FtLitElement{constructor(){super(...arguments),this.name="",this.value="",this.checked=!1,this.indeterminate=!1,this.disabled=!1,this.error=!1}get checkboxClasses(){return{"ft-checkbox":!0,"ft-checkbox--error":this.error,"ft-checkbox--checked":this.indeterminate?!1:this.checked,"ft-checkbox--indeterminate":this.indeterminate,"ft-checkbox--disabled":this.disabled}}renderBoxContainer(){return no.html`
|
|
793
802
|
<div class="ft-checkbox--box-container" part="checkbox-box-container">
|
|
794
803
|
<ft-ripple part="checkbox-ripple"
|
|
@@ -823,7 +832,7 @@
|
|
|
823
832
|
<path class="ft-checkbox--checkmark-path" fill="none"
|
|
824
833
|
d="${this.indeterminate&&!this.checked?"M2,12 22,12":"M1.73,12.91 8.1,19.28 22.79,4.59"}"></path>
|
|
825
834
|
</svg>
|
|
826
|
-
`}onSlotchange(){this.requestUpdate()}willUpdate(e){super.willUpdate(e),e.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.indeterminate=!1,this.dispatchEvent(new Es(this.checked))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),(r=this.ripple)===null||r===void 0||r.setupFor(this.container)}click(){this.input.click()}focus(){this.input.focus(),setTimeout(()=>{var e;(e=this.ripple)===null||e===void 0||e.forceFocusUpdate()},0)}};Ce.elementDefinitions={"ft-ripple":M,"ft-typography":G};Ce.styles=
|
|
835
|
+
`}onSlotchange(){this.requestUpdate()}willUpdate(e){super.willUpdate(e),e.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.indeterminate=!1,this.dispatchEvent(new Es(this.checked))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),(r=this.ripple)===null||r===void 0||r.setupFor(this.container)}click(){this.input.click()}focus(){this.input.focus(),setTimeout(()=>{var e;(e=this.ripple)===null||e===void 0||e.forceFocusUpdate()},0)}};Ce.elementDefinitions={"ft-ripple":M,"ft-typography":G};Ce.styles=qd;Vt([(0,xt.property)()],Ce.prototype,"name",void 0);Vt([(0,xt.property)()],Ce.prototype,"value",void 0);Vt([(0,xt.property)({type:Boolean,reflect:!0})],Ce.prototype,"checked",void 0);Vt([(0,xt.property)({type:Boolean})],Ce.prototype,"indeterminate",void 0);Vt([(0,xt.property)({type:Boolean})],Ce.prototype,"disabled",void 0);Vt([(0,xt.property)({type:Boolean})],Ce.prototype,"error",void 0);Vt([(0,xt.query)(".ft-checkbox")],Ce.prototype,"container",void 0);Vt([(0,xt.query)("ft-ripple")],Ce.prototype,"ripple",void 0);Vt([(0,xt.query)("input")],Ce.prototype,"input",void 0);var Zd=c(m());var Yd={"ft-checkbox":Ce};(0,Zd.customElements)(Yd);var eu=c(E()),Lt=c(j()),tu=c(m()),ru=c(nt());var Qd=c(E()),Ve=c(m());var er={textColor:Ve.FtCssVariableFactory.extend("--ft-radio-text-color","",Ve.designSystemVariables.colorOnSurfaceHigh),fontSize:Ve.FtCssVariableFactory.extend("--ft-radio-font-size","",y.fontSize),colorPrimary:Ve.FtCssVariableFactory.external(Ve.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:Ve.FtCssVariableFactory.external(Ve.designSystemVariables.colorOnPrimary,"Design system"),borderColor:Ve.FtCssVariableFactory.extend("--ft-radio-border-color","",Ve.designSystemVariables.colorOnSurfaceMedium),colorOnSurfaceDisabled:Ve.FtCssVariableFactory.external(Ve.designSystemVariables.colorOnSurfaceDisabled,"Design system")},Jd=Qd.css`
|
|
827
836
|
* {
|
|
828
837
|
box-sizing: border-box;
|
|
829
838
|
}
|
|
@@ -912,7 +921,7 @@
|
|
|
912
921
|
.ft-radio ft-typography {
|
|
913
922
|
padding-right: 2px;
|
|
914
923
|
}
|
|
915
|
-
`;var tr=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},oo=class extends CustomEvent{constructor(e,r){super("change",{detail:{value:e,checked:r},bubbles:!0,composed:!0})}},
|
|
924
|
+
`;var tr=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},oo=class extends CustomEvent{constructor(e,r){super("change",{detail:{value:e,checked:r},bubbles:!0,composed:!0})}},xe=class extends tu.FtLitElement{constructor(){super(...arguments),this.name="",this.value="",this.checked=!1,this.ariaChecked="false",this.disabled=!1}get radioClasses(){return{"ft-radio":!0,"ft-radio--checked":this.checked,"ft-radio--disabled":this.disabled}}render(){return eu.html`
|
|
916
925
|
<div class="${(0,ru.classMap)(this.radioClasses)}"
|
|
917
926
|
@click=${this.onClick}>
|
|
918
927
|
<div class="ft-radio--box-container">
|
|
@@ -938,7 +947,7 @@
|
|
|
938
947
|
</ft-typography>
|
|
939
948
|
</label>
|
|
940
949
|
</div>
|
|
941
|
-
`}willUpdate(e){super.willUpdate(e),e.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.dispatchEvent(new oo(this.value,this.checked))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),(r=this.ripple)===null||r===void 0||r.setupFor(this.container)}select(){this.checked=!0,this.dispatchEvent(new oo(this.value,this.checked))}setInputTabIndex(e){this.input&&(this.input.tabIndex=e)}focus(){var e;(e=this.input)===null||e===void 0||e.focus(),setTimeout(()=>{var r;return(r=this.ripple)===null||r===void 0?void 0:r.forceFocusUpdate()},0)}onClick(e){var r;e.target!==this.input&&(e.stopPropagation(),e.preventDefault(),(r=this.input)===null||r===void 0||r.click())}};
|
|
950
|
+
`}willUpdate(e){super.willUpdate(e),e.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.dispatchEvent(new oo(this.value,this.checked))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),(r=this.ripple)===null||r===void 0||r.setupFor(this.container)}select(){this.checked=!0,this.dispatchEvent(new oo(this.value,this.checked))}setInputTabIndex(e){this.input&&(this.input.tabIndex=e)}focus(){var e;(e=this.input)===null||e===void 0||e.focus(),setTimeout(()=>{var r;return(r=this.ripple)===null||r===void 0?void 0:r.forceFocusUpdate()},0)}onClick(e){var r;e.target!==this.input&&(e.stopPropagation(),e.preventDefault(),(r=this.input)===null||r===void 0||r.click())}};xe.elementDefinitions={"ft-ripple":M,"ft-typography":G};xe.styles=Jd;tr([(0,Lt.property)()],xe.prototype,"name",void 0);tr([(0,Lt.property)()],xe.prototype,"value",void 0);tr([(0,Lt.property)({type:Boolean,reflect:!0})],xe.prototype,"checked",void 0);tr([(0,Lt.property)({attribute:"aria-checked",reflect:!0})],xe.prototype,"ariaChecked",void 0);tr([(0,Lt.property)({type:Boolean})],xe.prototype,"disabled",void 0);tr([(0,Lt.query)(".ft-radio")],xe.prototype,"container",void 0);tr([(0,Lt.query)("ft-ripple")],xe.prototype,"ripple",void 0);tr([(0,Lt.query)("input")],xe.prototype,"input",void 0);var ou=c(m()),rr=c(j()),su=c(E());var iu=c(E());var nu=iu.css`
|
|
942
951
|
:host {
|
|
943
952
|
display: block;
|
|
944
953
|
}
|
|
@@ -951,7 +960,7 @@
|
|
|
951
960
|
@change=${this.onChange}
|
|
952
961
|
@keydown=${this.onKeyDown}
|
|
953
962
|
></slot>
|
|
954
|
-
`}connectedCallback(){super.connectedCallback(),this.addEventListener("focus",this.onFocus)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this.onFocus)}onSlotChange(){this.radioButtons.forEach(e=>e.name=this.name)}contentAvailableCallback(e){super.contentAvailableCallback(e),this.radioButtons.forEach(r=>r.setInputTabIndex(-1)),this.resolveCurrentSelectedIndex()}onChange(e){e.stopPropagation(),this.radioButtons.forEach(r=>r.checked=e.detail.value===r.value),this.dispatchEvent(new CustomEvent("change",{detail:e.detail.value})),this.resolveCurrentSelectedIndex()}onKeyDown(e){let r=!1;switch(e.key){case"ArrowUp":case"ArrowLeft":{r=!0;let i=this.currentSelectedIndex-1;this.radioButtons[i<0?this.radioButtons.length-1:i].select(),this.radioButtons[i<0?this.radioButtons.length-1:i].focus();break}case"ArrowDown":case"ArrowRight":{r=!0;let i=this.currentSelectedIndex+1;this.radioButtons[i>this.radioButtons.length-1?0:i].select(),this.radioButtons[i>this.radioButtons.length-1?0:i].focus();break}case"Enter":this.radioButtons[this.currentSelectedIndex].select()}r&&(e.stopPropagation(),e.preventDefault())}resolveCurrentSelectedIndex(){let e=this.radioButtons.findIndex(r=>r.checked);e==-1?(this.currentSelectedIndex=0,this.radioButtons[0].select()):this.currentSelectedIndex=e,this.radioButtons[this.currentSelectedIndex].setInputTabIndex(0)}focusCurrentChecked(){this.radioButtons[this.currentSelectedIndex].focus()}};Ze.elementDefinitions={};Ze.styles=nu;Hi([(0,rr.property)()],Ze.prototype,"name",void 0);Hi([(0,rr.property)({reflect:!0,attribute:"role"})],Ze.prototype,"role",void 0);Hi([(0,rr.property)({reflect:!0,attribute:"aria-labelledby"})],Ze.prototype,"ariaLabelledBy",void 0);Hi([(0,rr.queryAssignedElements)()],Ze.prototype,"assignedElements",void 0);Hi([(0,rr.state)()],Ze.prototype,"currentSelectedIndex",void 0);var lu=c(m());var au={"ft-radio":
|
|
963
|
+
`}connectedCallback(){super.connectedCallback(),this.addEventListener("focus",this.onFocus)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this.onFocus)}onSlotChange(){this.radioButtons.forEach(e=>e.name=this.name)}contentAvailableCallback(e){super.contentAvailableCallback(e),this.radioButtons.forEach(r=>r.setInputTabIndex(-1)),this.resolveCurrentSelectedIndex()}onChange(e){e.stopPropagation(),this.radioButtons.forEach(r=>r.checked=e.detail.value===r.value),this.dispatchEvent(new CustomEvent("change",{detail:e.detail.value})),this.resolveCurrentSelectedIndex()}onKeyDown(e){let r=!1;switch(e.key){case"ArrowUp":case"ArrowLeft":{r=!0;let i=this.currentSelectedIndex-1;this.radioButtons[i<0?this.radioButtons.length-1:i].select(),this.radioButtons[i<0?this.radioButtons.length-1:i].focus();break}case"ArrowDown":case"ArrowRight":{r=!0;let i=this.currentSelectedIndex+1;this.radioButtons[i>this.radioButtons.length-1?0:i].select(),this.radioButtons[i>this.radioButtons.length-1?0:i].focus();break}case"Enter":this.radioButtons[this.currentSelectedIndex].select()}r&&(e.stopPropagation(),e.preventDefault())}resolveCurrentSelectedIndex(){let e=this.radioButtons.findIndex(r=>r.checked);e==-1?(this.currentSelectedIndex=0,this.radioButtons[0].select()):this.currentSelectedIndex=e,this.radioButtons[this.currentSelectedIndex].setInputTabIndex(0)}focusCurrentChecked(){this.radioButtons[this.currentSelectedIndex].focus()}};Ze.elementDefinitions={};Ze.styles=nu;Hi([(0,rr.property)()],Ze.prototype,"name",void 0);Hi([(0,rr.property)({reflect:!0,attribute:"role"})],Ze.prototype,"role",void 0);Hi([(0,rr.property)({reflect:!0,attribute:"aria-labelledby"})],Ze.prototype,"ariaLabelledBy",void 0);Hi([(0,rr.queryAssignedElements)()],Ze.prototype,"assignedElements",void 0);Hi([(0,rr.state)()],Ze.prototype,"currentSelectedIndex",void 0);var lu=c(m());var au={"ft-radio":xe,"ft-radio-group":Ze};(0,lu.customElements)(au);var we=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},As={"more-filters-button-pressed":{label:"Revealing more filters",defaultEventName:"filters-click_see_more",defaultComponentId:"ft-filter-level"}},se=class extends(0,He.withAnalytics)(eo((0,He.withAriaNotification)(He.FtLitElement)),As){constructor(){super(...arguments),this.filterId="",this.options=[],this.multivalued=!1,this.disabled=!1,this.hideSelectedOptions=!1,this.displayCount=!1,this.preventNavigation=!1,this.filter="",this.moreValuesButtonLabel="More",this.displayedValuesLimit=0,this.displayedPages=1,this.filteredOptions=[],this.ariaNotificationDebouncer=new He.Debouncer(500)}get hasHiddenValues(){let e=this.limit;return e!=null&&e<this.options.length}get limit(){return this.displayedValuesLimit>0?this.displayedPages*this.displayedValuesLimit:void 0}get height(){var e,r;return(r=(e=this.container)===null||e===void 0?void 0:e.scrollHeight)!==null&&r!==void 0?r:0}focusOnBackButton(){this.elementToFocus={selector:".ft-filter-level--go-back"}}focusOnExpandButton(e){this.elementToFocus={selector:`.ft-filter-level--option ft-button[part="controls navigate-hierarchy"][data-value="${e}"]`}}focusOnFirstOption(){this.elementToFocus={selector:'.ft-filter-level--option [part~="option"]'}}willUpdate(e){super.willUpdate(e),(e.has("options")||e.has("hideSelectedOptions")||e.has("filter"))&&this.updateFilteredOptions()}updateFilteredOptions(){let e=[...this.options];this.hideSelectedOptions&&(e=e.filter(r=>!r.selected)),this.filter&&(e=e.filter(r=>r.label.toLowerCase().includes(this.filter.toLowerCase()))),this.filteredOptions=e}render(){let e=this.filteredOptions.slice(0,this.limit);return Qe.html`
|
|
955
964
|
<div class="ft-filter-level--container ${this.disabled?"ft-filter--disabled":""}">
|
|
956
965
|
${this.parent==null?null:Qe.html`
|
|
957
966
|
<div tabindex="0"
|
|
@@ -1019,7 +1028,7 @@
|
|
|
1019
1028
|
@change=${r=>this.optionsChanged(r,e)}>
|
|
1020
1029
|
${e.renderOption?e.renderOption:e.label}${this.displayCount?` (${e.count})`:""}
|
|
1021
1030
|
</ft-radio>
|
|
1022
|
-
`}onRadioKeyDown(e,r){e.stopPropagation(),(e.key===" "||e.key==="Enter")&&(e.preventDefault(),this.optionsChanged(e,r))}optionsChanged(e,r){e.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:r}))}displayLevel(e){this.dispatchEvent(new CustomEvent("display-level",{detail:e}))}updated(e){super.updated(e),e.has("filter")&&e.has("filteredOptions")&&e.get("filteredOptions")!==void 0&&e.get("filter")!==void 0&&this.ariaNotificationDebouncer.run(async()=>{if(this.filteredOptionsNumberAriaNotification==null)return;let r=await this.awaitI18n({...this.filteredOptionsNumberAriaNotification,args:[this.filteredOptions.length]});this.sendAriaNotification(r)})}};se.elementDefinitions={"ft-button":O,"ft-ripple":M,"ft-typography":G,"ft-checkbox":Ce,"ft-icon":oe,"ft-radio":
|
|
1031
|
+
`}onRadioKeyDown(e,r){e.stopPropagation(),(e.key===" "||e.key==="Enter")&&(e.preventDefault(),this.optionsChanged(e,r))}optionsChanged(e,r){e.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:r}))}displayLevel(e){this.dispatchEvent(new CustomEvent("display-level",{detail:e}))}updated(e){super.updated(e),e.has("filter")&&e.has("filteredOptions")&&e.get("filteredOptions")!==void 0&&e.get("filter")!==void 0&&this.ariaNotificationDebouncer.run(async()=>{if(this.filteredOptionsNumberAriaNotification==null)return;let r=await this.awaitI18n({...this.filteredOptionsNumberAriaNotification,args:[this.filteredOptions.length]});this.sendAriaNotification(r)})}};se.elementDefinitions={"ft-button":O,"ft-ripple":M,"ft-typography":G,"ft-checkbox":Ce,"ft-icon":oe,"ft-radio":xe};se.styles=za;we([(0,ye.property)({type:String})],se.prototype,"filterId",void 0);we([(0,ye.property)({type:Object})],se.prototype,"parent",void 0);we([(0,ye.property)({type:Array,hasChanged:He.hasChanged})],se.prototype,"options",void 0);we([(0,ye.property)({type:Boolean})],se.prototype,"multivalued",void 0);we([(0,ye.property)({type:Boolean})],se.prototype,"disabled",void 0);we([(0,ye.property)({type:Boolean})],se.prototype,"hideSelectedOptions",void 0);we([(0,ye.property)({type:Boolean})],se.prototype,"displayCount",void 0);we([(0,ye.property)({type:Boolean})],se.prototype,"preventNavigation",void 0);we([(0,ye.property)({type:String})],se.prototype,"filter",void 0);we([(0,ye.property)({type:String})],se.prototype,"moreValuesButtonLabel",void 0);we([(0,ye.property)({type:String})],se.prototype,"noValuesLabel",void 0);we([(0,ye.property)()],se.prototype,"filteredOptionsNumberAriaNotification",void 0);we([(0,He.numberProperty)()],se.prototype,"displayedValuesLimit",void 0);we([(0,ye.query)(".ft-filter-level--container")],se.prototype,"container",void 0);we([(0,ye.state)()],se.prototype,"radios",void 0);we([(0,ye.state)()],se.prototype,"displayedPages",void 0);we([(0,ye.state)()],se.prototype,"filteredOptions",void 0);var pu=c(E()),Je=c(j()),Lr=c(m());var fu=c(nt());var du=c(E()),St=c(m());var Me={buttonsColor:St.FtCssVariableFactory.extend("--ft-snap-scroll-buttons-color","",St.designSystemVariables.colorPrimary),buttonsZIndex:St.FtCssVariableFactory.create("--ft-snap-scroll-buttons-z-index","","NUMBER","1"),gap:St.FtCssVariableFactory.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:St.FtCssVariableFactory.external(St.designSystemVariables.colorSurface,"Design system")},uu=du.css`
|
|
1023
1032
|
.ft-snap-scroll {
|
|
1024
1033
|
box-sizing: border-box;
|
|
1025
1034
|
position: relative;
|
|
@@ -1455,7 +1464,7 @@
|
|
|
1455
1464
|
</div>
|
|
1456
1465
|
<div class="ft-accordion-item--separator" part="separator"></div>
|
|
1457
1466
|
</div>
|
|
1458
|
-
`}update(e){super.update(e),e.has("active")&&this.active&&this.dispatchEvent(new Event("activated",{composed:!0,bubbles:!0}))}onToggleKeyDown(e){(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),this.active=!this.active)}};dt.elementDefinitions={"ft-ripple":M,"ft-typography":G,"ft-icon":oe};dt.styles=Ou;lo([(0,Wi.property)()],dt.prototype,"icon",void 0);lo([(0,Wi.property)()],dt.prototype,"iconVariant",void 0);lo([(0,Wi.property)()],dt.prototype,"label",void 0);lo([(0,Wi.property)({type:Boolean,reflect:!0})],dt.prototype,"active",void 0);var ku=c(m());var Tu={"ft-accordion":Dt,"ft-accordion-item":dt};(0,ku.customElements)(Tu);var Mr=c(E()),
|
|
1467
|
+
`}update(e){super.update(e),e.has("active")&&this.active&&this.dispatchEvent(new Event("activated",{composed:!0,bubbles:!0}))}onToggleKeyDown(e){(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),this.active=!this.active)}};dt.elementDefinitions={"ft-ripple":M,"ft-typography":G,"ft-icon":oe};dt.styles=Ou;lo([(0,Wi.property)()],dt.prototype,"icon",void 0);lo([(0,Wi.property)()],dt.prototype,"iconVariant",void 0);lo([(0,Wi.property)()],dt.prototype,"label",void 0);lo([(0,Wi.property)({type:Boolean,reflect:!0})],dt.prototype,"active",void 0);var ku=c(m());var Tu={"ft-accordion":Dt,"ft-accordion-item":dt};(0,ku.customElements)(Tu);var Mr=c(E()),Se=c(j()),Iu=c(nt()),ii=c(m());var Ki=c(E()),P=c(m());var Lu=P.FtCssVariableFactory.extend("--ft-chip-color","",P.designSystemVariables.colorOnSurface),_e={backgroundColor:P.FtCssVariableFactory.extend("--ft-chip-background-color","",P.designSystemVariables.colorSurface),color:Lu,fontSize:P.FtCssVariableFactory.extend("--ft-chip-font-size","",ue.fontSize),fontWeight:P.FtCssVariableFactory.extend("--ft-chip-font-weight","",ue.fontWeight),iconSize:P.FtCssVariableFactory.create("--ft-chip-icon-size","","SIZE","18px"),borderRadius:P.FtCssVariableFactory.create("--ft-chip-border-radius","","SIZE",""),rippleColor:P.FtCssVariableFactory.extend("--ft-chip-ripple-color","",Lu),horizontalPadding:P.FtCssVariableFactory.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:P.FtCssVariableFactory.create("--ft-chip-vertical-padding","","SIZE","6px"),borderColor:P.FtCssVariableFactory.extend("--ft-chip-border-color","",P.designSystemVariables.colorOutline),opacityDisabled:P.FtCssVariableFactory.external(P.designSystemVariables.colorOpacityDisabled,"Design system")},$u=P.FtCssVariableFactory.extend("--ft-chip-highlighted-color","",P.FtCssVariableFactory.extend("--ft-chip-color","",P.designSystemVariables.colorOnPrimary)),_s={backgroundColor:P.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color","",P.FtCssVariableFactory.extend("--ft-chip-background-color","",P.designSystemVariables.colorPrimary)),color:$u,rippleColor:P.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color","",$u)},Du={horizontalPadding:P.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:P.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},Pu=[P.noTextSelect,Ki.css`
|
|
1459
1468
|
:host {
|
|
1460
1469
|
display: inline-block;
|
|
1461
1470
|
max-width: 100%;
|
|
@@ -1483,7 +1492,7 @@
|
|
|
1483
1492
|
border: 1px solid ${_e.borderColor};
|
|
1484
1493
|
color: ${_e.color};
|
|
1485
1494
|
${(0,P.setVariable)(W.color,_e.rippleColor)};
|
|
1486
|
-
border-radius: var(${(0,
|
|
1495
|
+
border-radius: var(${(0,Ki.unsafeCSS)(_e.borderRadius.name)}, calc(var(--chip-internal-content-height) / 2 + var(--chip-internal-vertical-padding)));
|
|
1487
1496
|
padding: calc(var(--chip-internal-vertical-padding) - 1px) calc(var(--chip-internal-horizontal-padding) - 1px);
|
|
1488
1497
|
background-color: ${_e.backgroundColor};
|
|
1489
1498
|
line-height: var(--chip-internal-content-height);
|
|
@@ -1501,7 +1510,7 @@
|
|
|
1501
1510
|
}
|
|
1502
1511
|
|
|
1503
1512
|
.ft-chip--no-content {
|
|
1504
|
-
--chip-internal-horizontal-padding: ${_e.horizontalPadding.get(
|
|
1513
|
+
--chip-internal-horizontal-padding: ${_e.horizontalPadding.get(Ki.css`var(--chip-internal-vertical-padding)`)};
|
|
1505
1514
|
}
|
|
1506
1515
|
|
|
1507
1516
|
.ft-chip--disabled {
|
|
@@ -1623,7 +1632,7 @@
|
|
|
1623
1632
|
<div class="ft-chip--icon-container ft-no-text-select" part="icon-container">
|
|
1624
1633
|
<ft-icon .variant=${this.iconVariant} .value=${this.internalIcon} part="icon"></ft-icon>
|
|
1625
1634
|
</div>
|
|
1626
|
-
`}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new co))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new co))}getLabel(){return this.label||this.getTextContent()}getTextContent(){return(0,ii.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};ne.elementDefinitions={"ft-ripple":M,"ft-typography":G,"ft-icon":oe,"ft-button":O};ne.styles=Pu;Le([(0,
|
|
1635
|
+
`}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new co))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new co))}getLabel(){return this.label||this.getTextContent()}getTextContent(){return(0,ii.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};ne.elementDefinitions={"ft-ripple":M,"ft-typography":G,"ft-icon":oe,"ft-button":O};ne.styles=Pu;Le([(0,Se.property)({type:Boolean})],ne.prototype,"highlighted",void 0);Le([(0,Se.property)({type:Boolean})],ne.prototype,"removable",void 0);Le([(0,Se.property)({type:Boolean})],ne.prototype,"disabled",void 0);Le([(0,Se.property)({type:Boolean})],ne.prototype,"clickable",void 0);Le([(0,Se.property)({type:Boolean})],ne.prototype,"iconClickable",void 0);Le([(0,Se.property)({type:Boolean})],ne.prototype,"dense",void 0);Le([(0,Se.property)({type:Boolean})],ne.prototype,"multiLine",void 0);Le([(0,Se.property)()],ne.prototype,"label",void 0);Le([(0,Se.property)()],ne.prototype,"iconLabel",void 0);Le([(0,Se.property)({type:Boolean})],ne.prototype,"hideIconTooltip",void 0);Le([(0,Se.property)({type:Boolean})],ne.prototype,"accessibleLabelOnIcon",void 0);Le([(0,Se.property)()],ne.prototype,"icon",void 0);Le([(0,Se.property)()],ne.prototype,"iconVariant",void 0);Le([(0,Se.property)({type:Boolean})],ne.prototype,"trailingIcon",void 0);Le([(0,Se.property)()],ne.prototype,"typographyVariant",void 0);Le([(0,Se.query)("ft-typography slot")],ne.prototype,"slottedContent",void 0);var Nu=c(m());var Mu={"ft-chip":ne};(0,Nu.customElements)(Mu);var oi=c(E()),me=c(j()),Yu=c(nt()),Zu=c(or());function qi(t,e,r){return t?e(t):r?.(t)}var ut=c(m());var uo=c(j());var Fu=c(E()),re=c(m());var B={fontSize:re.FtCssVariableFactory.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:re.FtCssVariableFactory.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:re.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:re.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:re.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:re.FtCssVariableFactory.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:re.FtCssVariableFactory.extend("--ft-input-label-border-color","",re.designSystemVariables.colorOutline),textColor:re.FtCssVariableFactory.extend("--ft-input-label-text-color","",re.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:re.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color","",re.designSystemVariables.colorOnSurfaceDisabled),backgroundColor:re.FtCssVariableFactory.extend("--ft-input-label-background-color","",re.designSystemVariables.colorSurface),borderRadius:re.FtCssVariableFactory.extend("--ft-input-label-border-radius","",re.designSystemVariables.borderRadiusS),colorError:re.FtCssVariableFactory.external(re.designSystemVariables.colorError,"Design system")},Bu=Fu.css`
|
|
1627
1636
|
.ft-input-label {
|
|
1628
1637
|
position: absolute;
|
|
1629
1638
|
inset: 0;
|
|
@@ -1719,14 +1728,14 @@
|
|
|
1719
1728
|
}
|
|
1720
1729
|
`;var Os=c(E()),Rs=c(j());var zu=c(nt()),Vu=c(m()),Uu=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},Nr=class extends Vu.FtLitElement{constructor(){super(...arguments),this.text="",this.raised=!1}get inputLabelClasses(){return{}}render(){return Os.html`
|
|
1721
1730
|
<div class="${(0,zu.classMap)(this.inputLabelClasses)}">
|
|
1722
|
-
${
|
|
1731
|
+
${qi(this.text,()=>Os.html`
|
|
1723
1732
|
<div class="ft-input-label--text ft-typography--caption">
|
|
1724
1733
|
<label class="ft-input-label--floating-text">${this.text}</label>
|
|
1725
1734
|
<span class="ft-input-label--hidden-text" aria-hidden="true">${this.text}</span>
|
|
1726
1735
|
</div>
|
|
1727
1736
|
`)}
|
|
1728
1737
|
</div>
|
|
1729
|
-
`}};Nr.elementDefinitions={};Uu([(0,Rs.property)({type:String})],Nr.prototype,"text",void 0);Uu([(0,Rs.property)({type:Boolean})],Nr.prototype,"raised",void 0);var Ts=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},Et=class extends Nr{constructor(){super(...arguments),this.outlined=!1,this.error=!1,this.disabled=!1}get inputLabelClasses(){return{"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error}}};Et.elementDefinitions={};Et.styles=[jt,Bu];Ts([(0,uo.property)({type:Boolean})],Et.prototype,"outlined",void 0);Ts([(0,uo.property)({type:Boolean})],Et.prototype,"error",void 0);Ts([(0,uo.property)({type:Boolean})],Et.prototype,"disabled",void 0);var ju=c(m());var Hu={"ft-input-label":Et};(0,ju.customElements)(Hu);var Wu=c(E()),D=c(m());var $={labelSize:D.FtCssVariableFactory.create("--ft-select-label-size","","SIZE","11px"),selectedOptionSize:D.FtCssVariableFactory.create("--ft-select-selected-option-size","","SIZE","14px"),verticalSpacing:D.FtCssVariableFactory.create("--ft-select-vertical-spacing","","SIZE","4px"),horizontalSpacing:D.FtCssVariableFactory.create("--ft-select-horizontal-spacing","","SIZE","16px"),optionsHeight:D.FtCssVariableFactory.create("--ft-select-options-height","","SIZE","70vh"),selectedOptionColor:D.FtCssVariableFactory.extend("--ft-select-selected-option-color","",D.designSystemVariables.colorOnSurface),helperColor:D.FtCssVariableFactory.extend("--ft-select-helper-color","",D.designSystemVariables.colorOnSurfaceMedium),optionsColor:D.FtCssVariableFactory.extend("--ft-select-options-color","",D.designSystemVariables.colorOnSurface),optionsZIndex:D.FtCssVariableFactory.create("--ft-select-options-z-index","","NUMBER","3"),backgroundColor:D.FtCssVariableFactory.extend("--ft-select-background-color","",D.designSystemVariables.colorSurface),colorOnSurfaceDisabled:D.FtCssVariableFactory.external(D.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:D.FtCssVariableFactory.external(D.designSystemVariables.colorPrimary,"Design system"),borderRadiusS:D.FtCssVariableFactory.external(D.designSystemVariables.borderRadiusS,"Design system"),elevation02:D.FtCssVariableFactory.external(D.designSystemVariables.elevation02,"Design system"),colorError:D.FtCssVariableFactory.external(D.designSystemVariables.colorError,"Design system")},
|
|
1738
|
+
`}};Nr.elementDefinitions={};Uu([(0,Rs.property)({type:String})],Nr.prototype,"text",void 0);Uu([(0,Rs.property)({type:Boolean})],Nr.prototype,"raised",void 0);var Ts=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},Et=class extends Nr{constructor(){super(...arguments),this.outlined=!1,this.error=!1,this.disabled=!1}get inputLabelClasses(){return{"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error}}};Et.elementDefinitions={};Et.styles=[jt,Bu];Ts([(0,uo.property)({type:Boolean})],Et.prototype,"outlined",void 0);Ts([(0,uo.property)({type:Boolean})],Et.prototype,"error",void 0);Ts([(0,uo.property)({type:Boolean})],Et.prototype,"disabled",void 0);var ju=c(m());var Hu={"ft-input-label":Et};(0,ju.customElements)(Hu);var Wu=c(E()),D=c(m());var $={labelSize:D.FtCssVariableFactory.create("--ft-select-label-size","","SIZE","11px"),selectedOptionSize:D.FtCssVariableFactory.create("--ft-select-selected-option-size","","SIZE","14px"),verticalSpacing:D.FtCssVariableFactory.create("--ft-select-vertical-spacing","","SIZE","4px"),horizontalSpacing:D.FtCssVariableFactory.create("--ft-select-horizontal-spacing","","SIZE","16px"),optionsHeight:D.FtCssVariableFactory.create("--ft-select-options-height","","SIZE","70vh"),selectedOptionColor:D.FtCssVariableFactory.extend("--ft-select-selected-option-color","",D.designSystemVariables.colorOnSurface),helperColor:D.FtCssVariableFactory.extend("--ft-select-helper-color","",D.designSystemVariables.colorOnSurfaceMedium),optionsColor:D.FtCssVariableFactory.extend("--ft-select-options-color","",D.designSystemVariables.colorOnSurface),optionsZIndex:D.FtCssVariableFactory.create("--ft-select-options-z-index","","NUMBER","3"),backgroundColor:D.FtCssVariableFactory.extend("--ft-select-background-color","",D.designSystemVariables.colorSurface),colorOnSurfaceDisabled:D.FtCssVariableFactory.external(D.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:D.FtCssVariableFactory.external(D.designSystemVariables.colorPrimary,"Design system"),borderRadiusS:D.FtCssVariableFactory.external(D.designSystemVariables.borderRadiusS,"Design system"),elevation02:D.FtCssVariableFactory.external(D.designSystemVariables.elevation02,"Design system"),colorError:D.FtCssVariableFactory.external(D.designSystemVariables.colorError,"Design system")},Ku=Wu.css`
|
|
1730
1739
|
*:focus {
|
|
1731
1740
|
outline: none;
|
|
1732
1741
|
}
|
|
@@ -1862,7 +1871,7 @@
|
|
|
1862
1871
|
.ft-select:not(.ft-select--has-option-selected) .ft-select--selected-option {
|
|
1863
1872
|
opacity: 0;
|
|
1864
1873
|
}
|
|
1865
|
-
`;var po=c(m());var ni=c(E()),Xu=c(nt()),ir=c(j());var ks=c(m());var
|
|
1874
|
+
`;var po=c(m());var ni=c(E()),Xu=c(nt()),ir=c(j());var ks=c(m());var qu=c(E()),Gu=qu.css`
|
|
1866
1875
|
.ft-select--option {
|
|
1867
1876
|
${(0,ks.setVariable)(W.opacityContentOnSurfaceHover,"0.08")};
|
|
1868
1877
|
${(0,ks.setVariable)(W.opacityContentOnSurfacePressed,"0.04")};
|
|
@@ -1918,7 +1927,7 @@
|
|
|
1918
1927
|
@click=${()=>{this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=this.optionsDisplayed}}
|
|
1919
1928
|
@keydown=${this.onMainPanelKeyDown}
|
|
1920
1929
|
aria-label="${Qt(this.ariaLabel)}"
|
|
1921
|
-
aria-labelledby="${
|
|
1930
|
+
aria-labelledby="${qi(!this.ariaLabel,()=>"label")}"
|
|
1922
1931
|
aria-haspopup="listbox"
|
|
1923
1932
|
aria-expanded="${s}"
|
|
1924
1933
|
aria-activedescendant="${Qt(this.getOptionId(this.selectedOption))}"
|
|
@@ -1942,7 +1951,7 @@
|
|
|
1942
1951
|
@option-change=${this.updateOptionsFromSlot}
|
|
1943
1952
|
>
|
|
1944
1953
|
</slot>
|
|
1945
|
-
${
|
|
1954
|
+
${qi(this.isSlotEmpty,()=>(0,Zu.repeat)(this.options,u=>u.value,u=>this.renderOption(u)))}
|
|
1946
1955
|
</div>
|
|
1947
1956
|
</div>
|
|
1948
1957
|
<slot name="helper" part="helper">
|
|
@@ -1957,7 +1966,7 @@
|
|
|
1957
1966
|
label="${e.label}"
|
|
1958
1967
|
.value=${e.value}
|
|
1959
1968
|
></ft-select-option>
|
|
1960
|
-
`}willUpdate(e){super.willUpdate(e),e.has("options")&&(this.selectedOption=this.options.filter(r=>r.selected)[0]),e.has("selectedOption")&&(this.optionsDisplayed=!1)}contentAvailableCallback(e){var r,i;if(super.contentAvailableCallback(e),e.has("focusOptions")&&this.focusOptions&&((r=(i=this.selectedOptionElement)!==null&&i!==void 0?i:this.firstOption)===null||r===void 0||r.focus(),this.focusOptions=!1),e.has("optionsDisplayed")&&(this.optionsDisplayed?document.addEventListener("click",this.hideOptions):document.removeEventListener("click",this.hideOptions)),e.has("optionsDisplayed")&&this.hasOptionsMenuOpen){this.optionsMenu.style.minWidth=this.mainPanel.getBoundingClientRect().width+"px";let o=["bottom","top"];(0,ut.computeOffsetAutoPosition)(this.mainPanel,this.optionsMenu,"bottom",o,"fixed",$.optionsHeight,0).then(({x:n,y:s})=>{this.optionsMenu.style.left=`${n}px`,this.optionsMenu.style.top=`${s}px`})}}get hasOptionsMenuOpen(){return!this.disabled&&this.optionsDisplayed&&this.hasOptions}get hasOptions(){return this.options.length>0}updateOptionsFromSlot(e){var r;e.stopPropagation(),this.isSlotEmpty=(0,ut.isSlotEmptyOrWithoutContent)(this.optionsSlot);let i=(r=this.optionsSlot)===null||r===void 0?void 0:r.assignedElements().map(o=>o);i&&i.length>0&&(this.options=i)}onMainPanelKeyDown(e){switch(e.key===" "&&(e.preventDefault(),e.stopPropagation()),e.key){case" ":case"Enter":this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=!0;break;case"ArrowUp":case"ArrowDown":e.preventDefault(),e.stopPropagation(),this.optionsDisplayed=!0,this.focusOptions=!0;break}}onOptionsKeyDown(e){var r,i;let o,n=this.focusedOption?this.optionsList.indexOf(this.focusedOption):0;switch(e.key){case" ":case"Enter":e.preventDefault(),e.stopPropagation(),this.onSelectOption(e),this.optionsDisplayed=!1,(r=this.mainPanel)===null||r===void 0||r.focus();break;case"Escape":this.optionsDisplayed=!1,(i=this.mainPanel)===null||i===void 0||i.focus();break;case"Tab":this.optionsDisplayed=!1;break;case"ArrowUp":e.preventDefault(),e.stopPropagation(),o=this.optionsList[(n-1+this.optionsList.length)%this.optionsList.length];break;case"ArrowDown":e.preventDefault(),e.stopPropagation(),o=this.optionsList[(n+1)%this.optionsList.length];break;default:if(e.key.length!=1)break;this.isKeyAlphanumeric(e.key)&&(o=this.handleAlphanumericPress(e.key));break}o?.focus()}isKeyAlphanumeric(e){let r=e.charCodeAt(0);return r>47&&r<58||r>64&&r<91||r>96&&r<123}handleAlphanumericPress(e){let r=new Date;r.getTime()-this.lastSearchInputDate.getTime()>t.searchTimeoutMilliseconds&&(this.currentSearch=""),this.currentSearch+=e.toLowerCase();let i=this.options.find(o=>{var n;return((n=o.label)===null||n===void 0?void 0:n.toLowerCase().substring(0,this.currentSearch.length))===this.currentSearch});return this.lastSearchInputDate=r,i&&this.optionsList.find(o=>o.value===i.value)}getOptionId(e){if(!e)return;let r=this.options.findIndex(i=>(0,ut.deepEqual)(i.value,e.value));if(r!==-1)return`option-${r}`}onSelectOption(e){e.stopPropagation(),this.setValue(e.target.value)}setValue(e,r=!0){let i=this.options.find(o=>(0,ut.deepEqual)(o.value,e));i&&this.selectOption(i,r)}selectOption(e,r=!0){var i,o;if(!(0,ut.deepEqual)((i=this.selectedOption)===null||i===void 0?void 0:i.value,e?.value)){this.selectedOption=e;for(let n of this.options)n.selected=n===e;r&&this.dispatchEvent(new CustomEvent("change",{detail:(o=this.selectedOption)===null||o===void 0?void 0:o.value}))}this.optionsDisplayed=!1}};Q.elementDefinitions={"ft-input-label":Et,"ft-typography":G,"ft-ripple":M,"ft-icon":oe,"ft-select-option":$e};Q.searchTimeoutMilliseconds=2e3;Q.styles=[jt,
|
|
1969
|
+
`}willUpdate(e){super.willUpdate(e),e.has("options")&&(this.selectedOption=this.options.filter(r=>r.selected)[0]),e.has("selectedOption")&&(this.optionsDisplayed=!1)}contentAvailableCallback(e){var r,i;if(super.contentAvailableCallback(e),e.has("focusOptions")&&this.focusOptions&&((r=(i=this.selectedOptionElement)!==null&&i!==void 0?i:this.firstOption)===null||r===void 0||r.focus(),this.focusOptions=!1),e.has("optionsDisplayed")&&(this.optionsDisplayed?document.addEventListener("click",this.hideOptions):document.removeEventListener("click",this.hideOptions)),e.has("optionsDisplayed")&&this.hasOptionsMenuOpen){this.optionsMenu.style.minWidth=this.mainPanel.getBoundingClientRect().width+"px";let o=["bottom","top"];(0,ut.computeOffsetAutoPosition)(this.mainPanel,this.optionsMenu,"bottom",o,"fixed",$.optionsHeight,0).then(({x:n,y:s})=>{this.optionsMenu.style.left=`${n}px`,this.optionsMenu.style.top=`${s}px`})}}get hasOptionsMenuOpen(){return!this.disabled&&this.optionsDisplayed&&this.hasOptions}get hasOptions(){return this.options.length>0}updateOptionsFromSlot(e){var r;e.stopPropagation(),this.isSlotEmpty=(0,ut.isSlotEmptyOrWithoutContent)(this.optionsSlot);let i=(r=this.optionsSlot)===null||r===void 0?void 0:r.assignedElements().map(o=>o);i&&i.length>0&&(this.options=i)}onMainPanelKeyDown(e){switch(e.key===" "&&(e.preventDefault(),e.stopPropagation()),e.key){case" ":case"Enter":this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=!0;break;case"ArrowUp":case"ArrowDown":e.preventDefault(),e.stopPropagation(),this.optionsDisplayed=!0,this.focusOptions=!0;break}}onOptionsKeyDown(e){var r,i;let o,n=this.focusedOption?this.optionsList.indexOf(this.focusedOption):0;switch(e.key){case" ":case"Enter":e.preventDefault(),e.stopPropagation(),this.onSelectOption(e),this.optionsDisplayed=!1,(r=this.mainPanel)===null||r===void 0||r.focus();break;case"Escape":this.optionsDisplayed=!1,(i=this.mainPanel)===null||i===void 0||i.focus();break;case"Tab":this.optionsDisplayed=!1;break;case"ArrowUp":e.preventDefault(),e.stopPropagation(),o=this.optionsList[(n-1+this.optionsList.length)%this.optionsList.length];break;case"ArrowDown":e.preventDefault(),e.stopPropagation(),o=this.optionsList[(n+1)%this.optionsList.length];break;default:if(e.key.length!=1)break;this.isKeyAlphanumeric(e.key)&&(o=this.handleAlphanumericPress(e.key));break}o?.focus()}isKeyAlphanumeric(e){let r=e.charCodeAt(0);return r>47&&r<58||r>64&&r<91||r>96&&r<123}handleAlphanumericPress(e){let r=new Date;r.getTime()-this.lastSearchInputDate.getTime()>t.searchTimeoutMilliseconds&&(this.currentSearch=""),this.currentSearch+=e.toLowerCase();let i=this.options.find(o=>{var n;return((n=o.label)===null||n===void 0?void 0:n.toLowerCase().substring(0,this.currentSearch.length))===this.currentSearch});return this.lastSearchInputDate=r,i&&this.optionsList.find(o=>o.value===i.value)}getOptionId(e){if(!e)return;let r=this.options.findIndex(i=>(0,ut.deepEqual)(i.value,e.value));if(r!==-1)return`option-${r}`}onSelectOption(e){e.stopPropagation(),this.setValue(e.target.value)}setValue(e,r=!0){let i=this.options.find(o=>(0,ut.deepEqual)(o.value,e));i&&this.selectOption(i,r)}selectOption(e,r=!0){var i,o;if(!(0,ut.deepEqual)((i=this.selectedOption)===null||i===void 0?void 0:i.value,e?.value)){this.selectedOption=e;for(let n of this.options)n.selected=n===e;r&&this.dispatchEvent(new CustomEvent("change",{detail:(o=this.selectedOption)===null||o===void 0?void 0:o.value}))}this.optionsDisplayed=!1}};Q.elementDefinitions={"ft-input-label":Et,"ft-typography":G,"ft-ripple":M,"ft-icon":oe,"ft-select-option":$e};Q.searchTimeoutMilliseconds=2e3;Q.styles=[jt,Ku];Oe([(0,me.property)({type:String})],Q.prototype,"label",void 0);Oe([(0,me.property)({type:String})],Q.prototype,"ariaLabel",void 0);Oe([(0,me.property)({type:String})],Q.prototype,"helper",void 0);Oe([(0,me.property)({type:Boolean})],Q.prototype,"outlined",void 0);Oe([(0,me.property)({type:Boolean})],Q.prototype,"disabled",void 0);Oe([(0,me.property)({type:Boolean})],Q.prototype,"error",void 0);Oe([(0,me.property)({type:Boolean})],Q.prototype,"fixedMenuPosition",void 0);Oe([(0,me.property)({type:Array})],Q.prototype,"options",void 0);Oe([(0,me.state)()],Q.prototype,"selectedOption",void 0);Oe([(0,me.state)()],Q.prototype,"optionsDisplayed",void 0);Oe([(0,me.state)()],Q.prototype,"focusOptions",void 0);Oe([(0,me.state)()],Q.prototype,"currentSearch",void 0);Oe([(0,me.state)()],Q.prototype,"lastSearchInputDate",void 0);Oe([(0,me.query)(".ft-select")],Q.prototype,"container",void 0);Oe([(0,me.query)(".ft-select--options")],Q.prototype,"optionsMenu",void 0);Oe([(0,me.query)(".ft-select--input-panel")],Q.prototype,"mainPanel",void 0);Oe([(0,me.query)("slot:not([name])")],Q.prototype,"optionsSlot",void 0);var Ju=c(m());var Qu={"ft-select":Q,"ft-select-option":$e};(0,Ju.customElements)(Qu);var k=c(m()),Ls=c(E());var ep=c(E()),At=c(m()),Re={display:At.FtCssVariableFactory.create("--ft-skeleton--display","","DISPLAY","block"),width:At.FtCssVariableFactory.create("--ft-skeleton--width","","SIZE","100%"),height:At.FtCssVariableFactory.create("--ft-skeleton--height","","SIZE","20px"),backgroundColor:At.FtCssVariableFactory.create("--ft-skeleton--background-color","","COLOR","#f1f1f1"),glareWidth:At.FtCssVariableFactory.create("--ft-skeleton--glare-width","","SIZE","200px"),glareColor:At.FtCssVariableFactory.create("--ft-skeleton--glare-color","","COLOR","rgba(255, 255, 255, .6)"),animationDuration:At.FtCssVariableFactory.create("--ft-skeleton--animation-duration","","UNKNOWN","2s"),borderRadiusM:At.FtCssVariableFactory.external(At.designSystemVariables.borderRadiusM,"Design system")},tp=ep.css`
|
|
1961
1970
|
:host {
|
|
1962
1971
|
width: ${Re.width};
|
|
1963
1972
|
height: ${Re.height};
|
|
@@ -2849,7 +2858,7 @@
|
|
|
2849
2858
|
part="floating-panel"
|
|
2850
2859
|
tabindex="-1">
|
|
2851
2860
|
${this.renderDesktopMenu()}
|
|
2852
|
-
</div>`}get ariaActiveDescendent(){if(this.selectedSuggestOptionId)return this.selectedSuggestRemoveRecent?"remove-"+this.selectedSuggestOptionId:this.selectedSuggestOptionId}};w.elementDefinitions={"ft-accordion":Dt,"ft-accordion-item":dt,"ft-button":O,"ft-chip":ne,"ft-filter":U,"ft-filter-option":et,"ft-icon":oe,"ft-ripple":M,"ft-select":Q,"ft-select-option":$e,"ft-size-watcher":We,"ft-skeleton":nr,"ft-snap-scroll":he,"ft-tooltip":ae,"ft-typography":G,"ft-radio-group":Ze,"ft-radio":
|
|
2861
|
+
</div>`}get ariaActiveDescendent(){if(this.selectedSuggestOptionId)return this.selectedSuggestRemoveRecent?"remove-"+this.selectedSuggestOptionId:this.selectedSuggestOptionId}};w.elementDefinitions={"ft-accordion":Dt,"ft-accordion-item":dt,"ft-button":O,"ft-chip":ne,"ft-filter":U,"ft-filter-option":et,"ft-icon":oe,"ft-ripple":M,"ft-select":Q,"ft-select-option":$e,"ft-size-watcher":We,"ft-skeleton":nr,"ft-snap-scroll":he,"ft-tooltip":ae,"ft-typography":G,"ft-radio-group":Ze,"ft-radio":xe};w.styles=[zr,Y.noTextInputDefaultClearButton,rp,ip,Mt.styles,It.styles,Y.screenReaderStyles];N([(0,F.property)({type:Boolean})],w.prototype,"dense",void 0);N([(0,F.property)()],w.prototype,"mode",void 0);N([(0,F.property)({type:Boolean})],w.prototype,"forceMobileMenuOpen",void 0);N([(0,F.property)({type:Boolean})],w.prototype,"forceMenuOpen",void 0);N([(0,F.property)()],w.prototype,"baseUrl",void 0);N([(0,F.property)()],w.prototype,"apiIntegrationIdentifier",void 0);N([(0,F.property)()],w.prototype,"contentLocale",void 0);N([(0,F.state)()],w.prototype,"availableContentLocales",void 0);N([(0,F.state)()],w.prototype,"availableContentLocalesInitialized",void 0);N([(0,F.property)()],w.prototype,"uiLocale",void 0);N([(0,Y.jsonProperty)({})],w.prototype,"labels",void 0);N([(0,Y.jsonProperty)([])],w.prototype,"displayedFilters",void 0);N([(0,Y.jsonProperty)([])],w.prototype,"presets",void 0);N([(0,F.property)({type:String,reflect:!0})],w.prototype,"selectedPreset",void 0);N([(0,Y.jsonProperty)([])],w.prototype,"priors",void 0);N([(0,F.property)()],w.prototype,"searchRequestSerializer",void 0);N([(0,F.property)({type:Boolean})],w.prototype,"focusOnDisplay",void 0);N([(0,F.state)()],w.prototype,"metadataFilters",void 0);N([(0,F.state)()],w.prototype,"sizeCategory",void 0);N([(0,F.state)()],w.prototype,"displayFacets",void 0);N([(0,F.state)()],w.prototype,"mobileMenuOpen",void 0);N([(0,F.state)()],w.prototype,"facets",void 0);N([(0,F.state)()],w.prototype,"facetsInitialized",void 0);N([(0,F.query)(".ft-search-bar--container")],w.prototype,"container",void 0);N([(0,F.query)(".ft-search-bar--filters-opener")],w.prototype,"filtersOpener",void 0);N([(0,F.query)(".ft-search-bar--floating-panel")],w.prototype,"floatingContainer",void 0);N([(0,F.query)("ft-snap-scroll.ft-search-bar--filters-container")],w.prototype,"scrollingFiltersContainer",void 0);N([(0,F.query)(".ft-search-bar--input")],w.prototype,"input",void 0);N([(0,F.query)(".ft-search-bar--launch-search")],w.prototype,"launchSearchButton",void 0);N([(0,F.state)()],w.prototype,"query",void 0);N([(0,F.state)()],w.prototype,"suggestions",void 0);N([(0,F.state)()],w.prototype,"recentSearches",void 0);N([(0,F.state)()],w.prototype,"scrollToFacet",void 0);N([(0,F.state)()],w.prototype,"api",void 0);N([(0,F.state)()],w.prototype,"displaySuggestListbox",void 0);N([(0,F.state)()],w.prototype,"selectedSuggestOptionId",void 0);N([(0,F.state)()],w.prototype,"selectedSuggestRemoveRecent",void 0);N([(0,F.state)()],w.prototype,"facetsLoaded",void 0);var hp={"ft-search-bar":w};(0,mp.customElements)(hp);})();
|
|
2853
2862
|
/*! Bundled license information:
|
|
2854
2863
|
|
|
2855
2864
|
.store/lit-html-npm-3.3.3-0f054b825a/package/lit-html.js:
|