@fluid-topics/ft-filter 2.1.7 → 2.1.9
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-filter-level.styles.js +2 -1
- package/build/ft-filter.light.js +114 -112
- package/build/ft-filter.min.js +92 -90
- package/package.json +10 -10
package/build/ft-filter.light.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";(()=>{var Pc=Object.create;var ro=Object.defineProperty;var kc=Object.getOwnPropertyDescriptor;var Dc=Object.getOwnPropertyNames;var Nc=Object.getPrototypeOf,Ic=Object.prototype.hasOwnProperty;var Vt=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}};var Mc=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Dc(e))!Ic.call(t,i)&&i!==r&&ro(t,i,{get:()=>e[i],enumerable:!(n=kc(e,i))||n.enumerable});return t};var f=(t,e,r)=>(r=t!=null?Pc(Nc(t)):{},Mc(e||!t||!t.__esModule?ro(r,"default",{value:t,enumerable:!0}):r,t));var E=Vt((sd,no)=>{no.exports=ftGlobals.wcUtils});var L=Vt((ad,io)=>{io.exports=ftGlobals.lit});var z=Vt((ld,oo)=>{oo.exports=ftGlobals.litDecorators});var Uo=Vt((Ld,$o)=>{$o.exports=ftGlobals.litRepeat});var er=Vt((Pd,Bo)=>{Bo.exports=ftGlobals.litClassMap});var $l=Vt((Sy,Ml)=>{Ml.exports=ftGlobals.litUnsafeHTML});var Lc=f(E());var jt=f(L()),N=f(z()),F=f(E());var qn=globalThis,Gr=qn.trustedTypes,so=Gr?Gr.createPolicy("lit-html",{createHTML:t=>t}):void 0,fo="$lit$",ot=`lit$${Math.random().toFixed(9).slice(2)}$`,ho="?"+ot,$c=`<${ho}>`,Ct=document,qr=()=>Ct.createComment(""),br=t=>t===null||typeof t!="object"&&typeof t!="function",Yn=Array.isArray,Uc=t=>Yn(t)||typeof t?.[Symbol.iterator]=="function",Fn=`[
|
|
2
2
|
\f\r]`,gr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ao=/-->/g,lo=/>/g,At=RegExp(`>|${Fn}(?:([^\\s"'>=/]+)(${Fn}*=${Fn}*(?:[^
|
|
3
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),co=/'/g,uo=/"/g,mo=/^(?:script|style|textarea|title)$/i,Xn=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),vo=Xn(1),yo=Xn(2),go=Xn(3),xr=Symbol.for("lit-noChange"),W=Symbol.for("lit-nothing"),po=new WeakMap,Et=Ct.createTreeWalker(Ct,129);function bo(t,e){if(!Yn(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return so!==void 0?so.createHTML(e):e}var Bc=(t,e)=>{let r=t.length-1,n=[],i,o=e===2?"<svg>":e===3?"<math>":"",s=gr;for(let a=0;a<r;a++){let l=t[a],c,u,d=-1,p=0;for(;p<l.length&&(s.lastIndex=p,u=s.exec(l),u!==null);)p=s.lastIndex,s===gr?u[1]==="!--"?s=ao:u[1]!==void 0?s=lo:u[2]!==void 0?(mo.test(u[2])&&(i=RegExp("</"+u[2],"g")),s=At):u[3]!==void 0&&(s=At):s===At?u[0]===">"?(s=i??gr,d=-1):u[1]===void 0?d=-2:(d=s.lastIndex-u[2].length,c=u[1],s=u[3]===void 0?At:u[3]==='"'?uo:co):s===uo||s===co?s=At:s===ao||s===lo?s=gr:(s=At,i=void 0);let h=s===At&&t[a+1].startsWith("/>")?" ":"";o+=s===gr?l+$c:d>=0?(n.push(c),l.slice(0,d)+fo+l.slice(d)+ot+h):l+ot+(d===-2?a:h)}return[bo(t,o+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),n]},Sr=class t{constructor({strings:e,_$litType$:r},n){let i;this.parts=[];let o=0,s=0,a=e.length-1,l=this.parts,[c,u]=Bc(e,r);if(this.el=t.createElement(c,n),Et.currentNode=this.el.content,r===2||r===3){let d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(i=Et.nextNode())!==null&&l.length<a;){if(i.nodeType===1){if(i.hasAttributes())for(let d of i.getAttributeNames())if(d.endsWith(fo)){let p=u[s++],h=i.getAttribute(d).split(ot),m=/([.?@])?(.*)/.exec(p);l.push({type:1,index:o,name:m[2],strings:h,ctor:m[1]==="."?zn:m[1]==="?"?Wn:m[1]==="@"?Kn:Wt}),i.removeAttribute(d)}else d.startsWith(ot)&&(l.push({type:6,index:o}),i.removeAttribute(d));if(mo.test(i.tagName)){let d=i.textContent.split(ot),p=d.length-1;if(p>0){i.textContent=Gr?Gr.emptyScript:"";for(let h=0;h<p;h++)i.append(d[h],qr()),Et.nextNode(),l.push({type:2,index:++o});i.append(d[p],qr())}}}else if(i.nodeType===8)if(i.data===ho)l.push({type:2,index:o});else{let d=-1;for(;(d=i.data.indexOf(ot,d+1))!==-1;)l.push({type:7,index:o}),d+=ot.length-1}o++}}static createElement(e,r){let n=Ct.createElement("template");return n.innerHTML=e,n}};function zt(t,e,r=t,n){if(e===xr)return e;let i=n!==void 0?r._$Co?.[n]:r._$Cl,o=br(e)?void 0:e._$litDirective$;return i?.constructor!==o&&(i?._$AO?.(!1),o===void 0?i=void 0:(i=new o(t),i._$AT(t,r,n)),n!==void 0?(r._$Co??=[])[n]=i:r._$Cl=i),i!==void 0&&(e=zt(t,i._$AS(t,e.values),i,n)),e}var Vn=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:n}=this._$AD,i=(e?.creationScope??Ct).importNode(r,!0);Et.currentNode=i;let o=Et.nextNode(),s=0,a=0,l=n[0];for(;l!==void 0;){if(s===l.index){let c;l.type===2?c=new Yr(o,o.nextSibling,this,e):l.type===1?c=new l.ctor(o,l.name,l.strings,this,e):l.type===6&&(c=new Gn(o,this,e)),this._$AV.push(c),l=n[++a]}s!==l?.index&&(o=Et.nextNode(),s++)}return Et.currentNode=Ct,i}p(e){let r=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,r),r+=n.strings.length-2):n._$AI(e[r])),r++}},Yr=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,n,i){this.type=2,this._$AH=W,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=n,this.options=i,this._$Cv=i?.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=zt(this,e,r),br(e)?e===W||e==null||e===""?(this._$AH!==W&&this._$AR(),this._$AH=W):e!==this._$AH&&e!==xr&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Uc(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==W&&br(this._$AH)?this._$AA.nextSibling.data=e:this.T(Ct.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:n}=e,i=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=Sr.createElement(bo(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===i)this._$AH.p(r);else{let o=new Vn(i,this),s=o.u(this.options);o.p(r),this.T(s),this._$AH=o}}_$AC(e){let r=po.get(e.strings);return r===void 0&&po.set(e.strings,r=new Sr(e)),r}k(e){Yn(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,i=0;for(let o of e)i===r.length?r.push(n=new t(this.O(qr()),this.O(qr()),this,this.options)):n=r[i],n._$AI(o),i++;i<r.length&&(this._$AR(n&&n._$AB.nextSibling,i),r.length=i)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e&&e!==this._$AB;){let n=e.nextSibling;e.remove(),e=n}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Wt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,n,i,o){this.type=1,this._$AH=W,this._$AN=void 0,this.element=e,this.name=r,this._$AM=i,this.options=o,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=W}_$AI(e,r=this,n,i){let o=this.strings,s=!1;if(o===void 0)e=zt(this,e,r,0),s=!br(e)||e!==this._$AH&&e!==xr,s&&(this._$AH=e);else{let a=e,l,c;for(e=o[0],l=0;l<o.length-1;l++)c=zt(this,a[n+l],r,l),c===xr&&(c=this._$AH[l]),s||=!br(c)||c!==this._$AH[l],c===W?e=W:e!==W&&(e+=(c??"")+o[l+1]),this._$AH[l]=c}s&&!i&&this.j(e)}j(e){e===W?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},zn=class extends Wt{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===W?void 0:e}},Wn=class extends Wt{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==W)}},Kn=class extends Wt{constructor(e,r,n,i,o){super(e,r,n,i,o),this.type=5}_$AI(e,r=this){if((e=zt(this,e,r,0)??W)===xr)return;let n=this._$AH,i=e===W&&n!==W||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,o=e!==W&&(n===W||i);i&&this.element.removeEventListener(this.name,this,n),o&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},Gn=class{constructor(e,r,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){zt(this,e)}};var Hc=qn.litHtmlPolyfillSupport;Hc?.(Sr,Yr),(qn.litHtmlVersions??=[]).push("3.3.0");var So=Symbol.for(""),jc=t=>{if(t?.r===So)return t?._$litStatic$},Jn=t=>({_$litStatic$:t,r:So});var xo=new Map,Zn=t=>(e,...r)=>{let n=r.length,i,o,s=[],a=[],l,c=0,u=!1;for(;c<n;){for(l=e[c];c<n&&(o=r[c],(i=jc(o))!==void 0);)l+=i+e[++c],u=!0;c!==n&&a.push(o),s.push(l),c++}if(c===n&&s.push(e[n]),u){let d=s.join("$$lit$$");(e=xo.get(d))===void 0&&(s.raw=s,xo.set(d,e=s)),r=a}return t(e,...r)},Qn=Zn(vo),dd=Zn(yo),pd=Zn(go);var ei=f(z()),No=f(E());var Q;(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"})(Q||(Q={}));var Ee=f(L()),g=f(E()),Ao=g.FtCssVariableFactory.extend("--ft-typography-font-family","",g.designSystemVariables.titleFont),Ze=g.FtCssVariableFactory.extend("--ft-typography-font-family","",g.designSystemVariables.contentFont),b={fontFamily:Ze,fontSize:g.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:g.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:g.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:g.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:g.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Kt={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-title-font-family","",Ao),fontSize:g.FtCssVariableFactory.extend("--ft-typography-title-font-size","",b.fontSize,"20px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",b.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",b.letterSpacing,"0.15px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-title-line-height","",b.lineHeight,"1.2"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",b.textTransform,"inherit")},Gt={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",Ao),fontSize:g.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",b.fontSize,"14px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",b.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",b.letterSpacing,"0.105px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",b.lineHeight,"1.7"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",b.textTransform,"inherit")},qt={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",Ze),fontSize:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",b.fontSize,"16px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",b.fontWeight,"600"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",b.letterSpacing,"0.144px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",b.lineHeight,"1.5"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",b.textTransform,"inherit")},Yt={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",Ze),fontSize:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",b.fontSize,"14px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",b.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",b.letterSpacing,"0.098px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",b.lineHeight,"1.7"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",b.textTransform,"inherit")},Xt={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",Ze),fontSize:g.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",b.fontSize,"16px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",b.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",b.letterSpacing,"0.496px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",b.lineHeight,"1.5"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",b.textTransform,"inherit")},me={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",Ze),fontSize:g.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",b.fontSize,"14px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",b.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",b.letterSpacing,"0.252px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",b.lineHeight,"1.4"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",b.textTransform,"inherit")},Jt={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",Ze),fontSize:g.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",b.fontSize,"12px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",b.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",b.letterSpacing,"0.396px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",b.lineHeight,"1.33"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",b.textTransform,"inherit")},Zt={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",Ze),fontSize:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",b.fontSize,"10px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",b.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",b.letterSpacing,"0.33px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",b.lineHeight,"1.6"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",b.textTransform,"inherit")},Qt={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",Ze),fontSize:g.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",b.fontSize,"10px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",b.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",b.letterSpacing,"1.5px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",b.lineHeight,"1.6"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",b.textTransform,"uppercase")},ze={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-button-font-family","",Ze),fontSize:g.FtCssVariableFactory.extend("--ft-typography-button-font-size","",b.fontSize,"14px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",b.fontWeight,"600"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",b.letterSpacing,"1.246px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-button-line-height","",b.lineHeight,"1.15"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",b.textTransform,"uppercase")},Eo=Ee.css`
|
|
3
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),co=/'/g,uo=/"/g,mo=/^(?:script|style|textarea|title)$/i,Xn=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),vo=Xn(1),yo=Xn(2),go=Xn(3),xr=Symbol.for("lit-noChange"),W=Symbol.for("lit-nothing"),po=new WeakMap,Et=Ct.createTreeWalker(Ct,129);function bo(t,e){if(!Yn(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return so!==void 0?so.createHTML(e):e}var Bc=(t,e)=>{let r=t.length-1,n=[],i,o=e===2?"<svg>":e===3?"<math>":"",s=gr;for(let a=0;a<r;a++){let l=t[a],c,u,d=-1,p=0;for(;p<l.length&&(s.lastIndex=p,u=s.exec(l),u!==null);)p=s.lastIndex,s===gr?u[1]==="!--"?s=ao:u[1]!==void 0?s=lo:u[2]!==void 0?(mo.test(u[2])&&(i=RegExp("</"+u[2],"g")),s=At):u[3]!==void 0&&(s=At):s===At?u[0]===">"?(s=i??gr,d=-1):u[1]===void 0?d=-2:(d=s.lastIndex-u[2].length,c=u[1],s=u[3]===void 0?At:u[3]==='"'?uo:co):s===uo||s===co?s=At:s===ao||s===lo?s=gr:(s=At,i=void 0);let h=s===At&&t[a+1].startsWith("/>")?" ":"";o+=s===gr?l+$c:d>=0?(n.push(c),l.slice(0,d)+fo+l.slice(d)+ot+h):l+ot+(d===-2?a:h)}return[bo(t,o+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),n]},Sr=class t{constructor({strings:e,_$litType$:r},n){let i;this.parts=[];let o=0,s=0,a=e.length-1,l=this.parts,[c,u]=Bc(e,r);if(this.el=t.createElement(c,n),Et.currentNode=this.el.content,r===2||r===3){let d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(i=Et.nextNode())!==null&&l.length<a;){if(i.nodeType===1){if(i.hasAttributes())for(let d of i.getAttributeNames())if(d.endsWith(fo)){let p=u[s++],h=i.getAttribute(d).split(ot),m=/([.?@])?(.*)/.exec(p);l.push({type:1,index:o,name:m[2],strings:h,ctor:m[1]==="."?zn:m[1]==="?"?Wn:m[1]==="@"?Kn:Wt}),i.removeAttribute(d)}else d.startsWith(ot)&&(l.push({type:6,index:o}),i.removeAttribute(d));if(mo.test(i.tagName)){let d=i.textContent.split(ot),p=d.length-1;if(p>0){i.textContent=Gr?Gr.emptyScript:"";for(let h=0;h<p;h++)i.append(d[h],qr()),Et.nextNode(),l.push({type:2,index:++o});i.append(d[p],qr())}}}else if(i.nodeType===8)if(i.data===ho)l.push({type:2,index:o});else{let d=-1;for(;(d=i.data.indexOf(ot,d+1))!==-1;)l.push({type:7,index:o}),d+=ot.length-1}o++}}static createElement(e,r){let n=Ct.createElement("template");return n.innerHTML=e,n}};function zt(t,e,r=t,n){if(e===xr)return e;let i=n!==void 0?r._$Co?.[n]:r._$Cl,o=br(e)?void 0:e._$litDirective$;return i?.constructor!==o&&(i?._$AO?.(!1),o===void 0?i=void 0:(i=new o(t),i._$AT(t,r,n)),n!==void 0?(r._$Co??=[])[n]=i:r._$Cl=i),i!==void 0&&(e=zt(t,i._$AS(t,e.values),i,n)),e}var Vn=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:n}=this._$AD,i=(e?.creationScope??Ct).importNode(r,!0);Et.currentNode=i;let o=Et.nextNode(),s=0,a=0,l=n[0];for(;l!==void 0;){if(s===l.index){let c;l.type===2?c=new Yr(o,o.nextSibling,this,e):l.type===1?c=new l.ctor(o,l.name,l.strings,this,e):l.type===6&&(c=new Gn(o,this,e)),this._$AV.push(c),l=n[++a]}s!==l?.index&&(o=Et.nextNode(),s++)}return Et.currentNode=Ct,i}p(e){let r=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,r),r+=n.strings.length-2):n._$AI(e[r])),r++}},Yr=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,n,i){this.type=2,this._$AH=W,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=n,this.options=i,this._$Cv=i?.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=zt(this,e,r),br(e)?e===W||e==null||e===""?(this._$AH!==W&&this._$AR(),this._$AH=W):e!==this._$AH&&e!==xr&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Uc(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==W&&br(this._$AH)?this._$AA.nextSibling.data=e:this.T(Ct.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:n}=e,i=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=Sr.createElement(bo(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===i)this._$AH.p(r);else{let o=new Vn(i,this),s=o.u(this.options);o.p(r),this.T(s),this._$AH=o}}_$AC(e){let r=po.get(e.strings);return r===void 0&&po.set(e.strings,r=new Sr(e)),r}k(e){Yn(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,i=0;for(let o of e)i===r.length?r.push(n=new t(this.O(qr()),this.O(qr()),this,this.options)):n=r[i],n._$AI(o),i++;i<r.length&&(this._$AR(n&&n._$AB.nextSibling,i),r.length=i)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e&&e!==this._$AB;){let n=e.nextSibling;e.remove(),e=n}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Wt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,n,i,o){this.type=1,this._$AH=W,this._$AN=void 0,this.element=e,this.name=r,this._$AM=i,this.options=o,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=W}_$AI(e,r=this,n,i){let o=this.strings,s=!1;if(o===void 0)e=zt(this,e,r,0),s=!br(e)||e!==this._$AH&&e!==xr,s&&(this._$AH=e);else{let a=e,l,c;for(e=o[0],l=0;l<o.length-1;l++)c=zt(this,a[n+l],r,l),c===xr&&(c=this._$AH[l]),s||=!br(c)||c!==this._$AH[l],c===W?e=W:e!==W&&(e+=(c??"")+o[l+1]),this._$AH[l]=c}s&&!i&&this.j(e)}j(e){e===W?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},zn=class extends Wt{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===W?void 0:e}},Wn=class extends Wt{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==W)}},Kn=class extends Wt{constructor(e,r,n,i,o){super(e,r,n,i,o),this.type=5}_$AI(e,r=this){if((e=zt(this,e,r,0)??W)===xr)return;let n=this._$AH,i=e===W&&n!==W||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,o=e!==W&&(n===W||i);i&&this.element.removeEventListener(this.name,this,n),o&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},Gn=class{constructor(e,r,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){zt(this,e)}};var Hc=qn.litHtmlPolyfillSupport;Hc?.(Sr,Yr),(qn.litHtmlVersions??=[]).push("3.3.0");var So=Symbol.for(""),jc=t=>{if(t?.r===So)return t?._$litStatic$},Jn=t=>({_$litStatic$:t,r:So});var xo=new Map,Zn=t=>(e,...r)=>{let n=r.length,i,o,s=[],a=[],l,c=0,u=!1;for(;c<n;){for(l=e[c];c<n&&(o=r[c],(i=jc(o))!==void 0);)l+=i+e[++c],u=!0;c!==n&&a.push(o),s.push(l),c++}if(c===n&&s.push(e[n]),u){let d=s.join("$$lit$$");(e=xo.get(d))===void 0&&(s.raw=s,xo.set(d,e=s)),r=a}return t(e,...r)},Qn=Zn(vo),dd=Zn(yo),pd=Zn(go);var ei=f(z()),No=f(E());var Q;(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"})(Q||(Q={}));var Ce=f(L()),g=f(E()),Ao=g.FtCssVariableFactory.extend("--ft-typography-font-family","",g.designSystemVariables.titleFont),Ze=g.FtCssVariableFactory.extend("--ft-typography-font-family","",g.designSystemVariables.contentFont),b={fontFamily:Ze,fontSize:g.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:g.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:g.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:g.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:g.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Kt={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-title-font-family","",Ao),fontSize:g.FtCssVariableFactory.extend("--ft-typography-title-font-size","",b.fontSize,"20px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",b.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",b.letterSpacing,"0.15px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-title-line-height","",b.lineHeight,"1.2"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",b.textTransform,"inherit")},Gt={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",Ao),fontSize:g.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",b.fontSize,"14px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",b.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",b.letterSpacing,"0.105px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",b.lineHeight,"1.7"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",b.textTransform,"inherit")},qt={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",Ze),fontSize:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",b.fontSize,"16px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",b.fontWeight,"600"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",b.letterSpacing,"0.144px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",b.lineHeight,"1.5"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",b.textTransform,"inherit")},Yt={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",Ze),fontSize:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",b.fontSize,"14px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",b.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",b.letterSpacing,"0.098px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",b.lineHeight,"1.7"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",b.textTransform,"inherit")},Xt={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",Ze),fontSize:g.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",b.fontSize,"16px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",b.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",b.letterSpacing,"0.496px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",b.lineHeight,"1.5"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",b.textTransform,"inherit")},ve={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",Ze),fontSize:g.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",b.fontSize,"14px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",b.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",b.letterSpacing,"0.252px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",b.lineHeight,"1.4"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",b.textTransform,"inherit")},Jt={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",Ze),fontSize:g.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",b.fontSize,"12px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",b.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",b.letterSpacing,"0.396px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",b.lineHeight,"1.33"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",b.textTransform,"inherit")},Zt={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",Ze),fontSize:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",b.fontSize,"10px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",b.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",b.letterSpacing,"0.33px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",b.lineHeight,"1.6"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",b.textTransform,"inherit")},Qt={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",Ze),fontSize:g.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",b.fontSize,"10px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",b.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",b.letterSpacing,"1.5px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",b.lineHeight,"1.6"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",b.textTransform,"uppercase")},We={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-button-font-family","",Ze),fontSize:g.FtCssVariableFactory.extend("--ft-typography-button-font-size","",b.fontSize,"14px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",b.fontWeight,"600"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",b.letterSpacing,"1.246px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-button-line-height","",b.lineHeight,"1.15"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",b.textTransform,"uppercase")},Eo=Ce.css`
|
|
4
4
|
.ft-typography--title {
|
|
5
5
|
font-family: ${Kt.fontFamily};
|
|
6
6
|
font-size: ${Kt.fontSize};
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
line-height: ${Kt.lineHeight};
|
|
10
10
|
text-transform: ${Kt.textTransform};
|
|
11
11
|
}
|
|
12
|
-
`,Co=
|
|
12
|
+
`,Co=Ce.css`
|
|
13
13
|
.ft-typography--title-dense {
|
|
14
14
|
font-family: ${Gt.fontFamily};
|
|
15
15
|
font-size: ${Gt.fontSize};
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
line-height: ${Gt.lineHeight};
|
|
19
19
|
text-transform: ${Gt.textTransform};
|
|
20
20
|
}
|
|
21
|
-
`,Oo=
|
|
21
|
+
`,Oo=Ce.css`
|
|
22
22
|
.ft-typography--subtitle1 {
|
|
23
23
|
font-family: ${qt.fontFamily};
|
|
24
24
|
font-size: ${qt.fontSize};
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
line-height: ${qt.lineHeight};
|
|
28
28
|
text-transform: ${qt.textTransform};
|
|
29
29
|
}
|
|
30
|
-
`,wo=
|
|
30
|
+
`,wo=Ce.css`
|
|
31
31
|
.ft-typography--subtitle2 {
|
|
32
32
|
font-family: ${Yt.fontFamily};
|
|
33
33
|
font-size: ${Yt.fontSize};
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
text-transform: ${Yt.textTransform};
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
`,To=
|
|
40
|
+
`,To=Ce.css`
|
|
41
41
|
.ft-typography--body1 {
|
|
42
42
|
font-family: ${Xt.fontFamily};
|
|
43
43
|
font-size: ${Xt.fontSize};
|
|
@@ -46,16 +46,16 @@
|
|
|
46
46
|
line-height: ${Xt.lineHeight};
|
|
47
47
|
text-transform: ${Xt.textTransform};
|
|
48
48
|
}
|
|
49
|
-
`,_o=
|
|
49
|
+
`,_o=Ce.css`
|
|
50
50
|
.ft-typography--body2 {
|
|
51
|
-
font-family: ${
|
|
52
|
-
font-size: ${
|
|
53
|
-
font-weight: ${
|
|
54
|
-
letter-spacing: ${
|
|
55
|
-
line-height: ${
|
|
56
|
-
text-transform: ${
|
|
57
|
-
}
|
|
58
|
-
`,Xr=
|
|
51
|
+
font-family: ${ve.fontFamily};
|
|
52
|
+
font-size: ${ve.fontSize};
|
|
53
|
+
font-weight: ${ve.fontWeight};
|
|
54
|
+
letter-spacing: ${ve.letterSpacing};
|
|
55
|
+
line-height: ${ve.lineHeight};
|
|
56
|
+
text-transform: ${ve.textTransform};
|
|
57
|
+
}
|
|
58
|
+
`,Xr=Ce.css`
|
|
59
59
|
.ft-typography--caption {
|
|
60
60
|
font-family: ${Jt.fontFamily};
|
|
61
61
|
font-size: ${Jt.fontSize};
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
line-height: ${Jt.lineHeight};
|
|
65
65
|
text-transform: ${Jt.textTransform};
|
|
66
66
|
}
|
|
67
|
-
`,Ro=
|
|
67
|
+
`,Ro=Ce.css`
|
|
68
68
|
.ft-typography--breadcrumb {
|
|
69
69
|
font-family: ${Zt.fontFamily};
|
|
70
70
|
font-size: ${Zt.fontSize};
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
line-height: ${Zt.lineHeight};
|
|
74
74
|
text-transform: ${Zt.textTransform};
|
|
75
75
|
}
|
|
76
|
-
`,Lo=
|
|
76
|
+
`,Lo=Ce.css`
|
|
77
77
|
.ft-typography--overline {
|
|
78
78
|
font-family: ${Qt.fontFamily};
|
|
79
79
|
font-size: ${Qt.fontSize};
|
|
@@ -82,16 +82,16 @@
|
|
|
82
82
|
line-height: ${Qt.lineHeight};
|
|
83
83
|
text-transform: ${Qt.textTransform};
|
|
84
84
|
}
|
|
85
|
-
`,Po=
|
|
85
|
+
`,Po=Ce.css`
|
|
86
86
|
.ft-typography--button {
|
|
87
|
-
font-family: ${
|
|
88
|
-
font-size: ${
|
|
89
|
-
font-weight: ${
|
|
90
|
-
letter-spacing: ${
|
|
91
|
-
line-height: ${
|
|
92
|
-
text-transform: ${
|
|
93
|
-
}
|
|
94
|
-
`,ko=
|
|
87
|
+
font-family: ${We.fontFamily};
|
|
88
|
+
font-size: ${We.fontSize};
|
|
89
|
+
font-weight: ${We.fontWeight};
|
|
90
|
+
letter-spacing: ${We.letterSpacing};
|
|
91
|
+
line-height: ${We.lineHeight};
|
|
92
|
+
text-transform: ${We.textTransform};
|
|
93
|
+
}
|
|
94
|
+
`,ko=Ce.css`
|
|
95
95
|
.ft-typography {
|
|
96
96
|
vertical-align: inherit;
|
|
97
97
|
}
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
</${Jn(this.element)}>
|
|
104
104
|
`:Qn`
|
|
105
105
|
<slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
|
|
106
|
-
`}};Y.styles=[Eo,Co,Oo,wo,To,_o,Xr,Ro,Lo,Po,ko];Do([(0,ei.property)()],Y.prototype,"element",void 0);Do([(0,ei.property)()],Y.prototype,"variant",void 0);var Mo=f(E());var Io={"ft-typography":Y};(0,Mo.customElements)(Io);var
|
|
106
|
+
`}};Y.styles=[Eo,Co,Oo,wo,To,_o,Xr,Ro,Lo,Po,ko];Do([(0,ei.property)()],Y.prototype,"element",void 0);Do([(0,ei.property)()],Y.prototype,"variant",void 0);var Mo=f(E());var Io={"ft-typography":Y};(0,Mo.customElements)(Io);var Se=f(L()),J=f(z()),bc=f(Uo()),fe=f(E());var ke=f(E());var Go=f(L()),ee=f(z()),qo=f(er()),Ar=f(E());var Wo=f(L()),K=f(E()),Ho=K.FtCssVariableFactory.extend("--ft-ripple-color","",K.designSystemVariables.colorContent),ce={color:Ho,backgroundColor:K.FtCssVariableFactory.extend("--ft-ripple-background-color","",Ho),opacityContentOnSurfacePressed:K.FtCssVariableFactory.external(K.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:K.FtCssVariableFactory.external(K.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:K.FtCssVariableFactory.external(K.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:K.FtCssVariableFactory.external(K.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:K.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},jo=K.FtCssVariableFactory.extend("--ft-ripple-color","",K.designSystemVariables.colorPrimary),Fo={color:jo,backgroundColor:K.FtCssVariableFactory.extend("--ft-ripple-background-color","",jo)},Vo=K.FtCssVariableFactory.extend("--ft-ripple-color","",K.designSystemVariables.colorSecondary),zo={color:Vo,backgroundColor:K.FtCssVariableFactory.extend("--ft-ripple-background-color","",Vo)},Ko=Wo.css`
|
|
107
107
|
:host {
|
|
108
108
|
display: contents;
|
|
109
109
|
}
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
|
|
117
117
|
.ft-ripple:not(.ft-ripple--unbounded) {
|
|
118
118
|
overflow: hidden;
|
|
119
|
-
border-radius: ${
|
|
119
|
+
border-radius: ${ce.borderRadius};
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
.ft-ripple .ft-ripple--background,
|
|
@@ -150,11 +150,11 @@
|
|
|
150
150
|
}
|
|
151
151
|
|
|
152
152
|
.ft-ripple .ft-ripple--background {
|
|
153
|
-
background-color: ${
|
|
153
|
+
background-color: ${ce.backgroundColor};
|
|
154
154
|
}
|
|
155
155
|
|
|
156
156
|
.ft-ripple .ft-ripple--effect {
|
|
157
|
-
background-color: ${
|
|
157
|
+
background-color: ${ce.color};
|
|
158
158
|
}
|
|
159
159
|
|
|
160
160
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
@@ -200,22 +200,22 @@
|
|
|
200
200
|
}
|
|
201
201
|
|
|
202
202
|
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
203
|
-
opacity: ${
|
|
203
|
+
opacity: ${ce.opacityContentOnSurfaceHover};
|
|
204
204
|
}
|
|
205
205
|
|
|
206
206
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
207
|
-
opacity: ${
|
|
207
|
+
opacity: ${ce.opacityContentOnSurfaceSelected};
|
|
208
208
|
}
|
|
209
209
|
|
|
210
210
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
211
|
-
opacity: ${
|
|
211
|
+
opacity: ${ce.opacityContentOnSurfaceFocused};
|
|
212
212
|
}
|
|
213
213
|
|
|
214
214
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
215
|
-
opacity: ${
|
|
215
|
+
opacity: ${ce.opacityContentOnSurfacePressed};
|
|
216
216
|
transform: translate(-50%, -50%) scale(1);
|
|
217
217
|
}
|
|
218
|
-
`;var
|
|
218
|
+
`;var ue=function(t,e,r,n){var i=arguments.length,o=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(i<3?s(o):i>3?s(e,r,o):s(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o},P=class extends Ar.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 Ar.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 Ar.Debouncer(10),this.moveRipple=e=>{var r,n;let{x:i,y:o}=this.getCoordinates(e),s=(n=(r=this.ripple)===null||r===void 0?void 0:r.getBoundingClientRect())!==null&&n!==void 0?n:{x:0,y:0,width:0,height:0};this.originX=Math.round(i!=null?i-s.x:s.width/2),this.originY=Math.round(o!=null?o-s.y:s.height/2)},this.startPress=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 Go.html`
|
|
219
219
|
<style>
|
|
220
220
|
.ft-ripple .ft-ripple--effect {
|
|
221
221
|
left: ${this.originX}px;
|
|
@@ -226,7 +226,7 @@
|
|
|
226
226
|
<div class="ft-ripple--background"></div>
|
|
227
227
|
<div class="ft-ripple--effect"></div>
|
|
228
228
|
</div>
|
|
229
|
-
`}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,n;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(n=this.target)===null||n===void 0||n.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var e,r;let n=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;n&&this.setupFor((r=this.target)!==null&&r!==void 0?r:n)}forceFocusUpdate(){var e;!((e=this.target)===null||e===void 0)&&e.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let r=(...a)=>l=>{a.forEach(c=>window.addEventListener(c,this.endPress,{once:!0})),this.startPress(l)},n=r("mouseup","contextmenu"),i=r("touchend","touchcancel"),o=a=>{["Enter"," "].includes(a.key)&&r("keyup")(a)},s={passive:!0};e.addEventListener("mouseover",this.startHover,s),e.addEventListener("mousemove",this.moveRipple,s),e.addEventListener("mouseleave",this.endHover,s),e.addEventListener("mousedown",n,s),e.addEventListener("touchstart",i,s),e.addEventListener("touchmove",this.moveRipple,s),e.addEventListener("keydown",o,s),e.addEventListener("focus",this.startFocus,s),e.addEventListener("blur",this.endFocus,s),e.addEventListener("focusin",this.startFocus,s),e.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,s),e.removeEventListener("mousemove",this.moveRipple,s),e.removeEventListener("mouseleave",this.endHover,s),e.removeEventListener("mousedown",n,s),e.removeEventListener("touchstart",i,s),e.removeEventListener("touchmove",this.moveRipple,s),e.removeEventListener("keydown",o,s),e.removeEventListener("focus",this.startFocus,s),e.removeEventListener("blur",this.endFocus,s),e.removeEventListener("focusin",this.startFocus,s),e.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let r=e,n=e,i,o;return r.x!=null?{x:i,y:o}=r:n.touches!=null&&(i=n.touches[0].clientX,o=n.touches[0].clientY),{x:i,y:o}}isFocusVisible(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()}};P.elementDefinitions={};P.styles=Ko;
|
|
229
|
+
`}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,n;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(n=this.target)===null||n===void 0||n.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var e,r;let n=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;n&&this.setupFor((r=this.target)!==null&&r!==void 0?r:n)}forceFocusUpdate(){var e;!((e=this.target)===null||e===void 0)&&e.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let r=(...a)=>l=>{a.forEach(c=>window.addEventListener(c,this.endPress,{once:!0})),this.startPress(l)},n=r("mouseup","contextmenu"),i=r("touchend","touchcancel"),o=a=>{["Enter"," "].includes(a.key)&&r("keyup")(a)},s={passive:!0};e.addEventListener("mouseover",this.startHover,s),e.addEventListener("mousemove",this.moveRipple,s),e.addEventListener("mouseleave",this.endHover,s),e.addEventListener("mousedown",n,s),e.addEventListener("touchstart",i,s),e.addEventListener("touchmove",this.moveRipple,s),e.addEventListener("keydown",o,s),e.addEventListener("focus",this.startFocus,s),e.addEventListener("blur",this.endFocus,s),e.addEventListener("focusin",this.startFocus,s),e.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,s),e.removeEventListener("mousemove",this.moveRipple,s),e.removeEventListener("mouseleave",this.endHover,s),e.removeEventListener("mousedown",n,s),e.removeEventListener("touchstart",i,s),e.removeEventListener("touchmove",this.moveRipple,s),e.removeEventListener("keydown",o,s),e.removeEventListener("focus",this.startFocus,s),e.removeEventListener("blur",this.endFocus,s),e.removeEventListener("focusin",this.startFocus,s),e.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let r=e,n=e,i,o;return r.x!=null?{x:i,y:o}=r:n.touches!=null&&(i=n.touches[0].clientX,o=n.touches[0].clientY),{x:i,y:o}}isFocusVisible(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()}};P.elementDefinitions={};P.styles=Ko;ue([(0,ee.property)({type:Boolean})],P.prototype,"primary",void 0);ue([(0,ee.property)({type:Boolean})],P.prototype,"secondary",void 0);ue([(0,ee.property)({type:Boolean})],P.prototype,"unbounded",void 0);ue([(0,ee.property)({type:Boolean})],P.prototype,"activated",void 0);ue([(0,ee.property)({type:Boolean})],P.prototype,"selected",void 0);ue([(0,ee.property)({type:Boolean})],P.prototype,"disabled",void 0);ue([(0,ee.state)()],P.prototype,"hovered",void 0);ue([(0,ee.state)()],P.prototype,"focused",void 0);ue([(0,ee.state)()],P.prototype,"pressed",void 0);ue([(0,ee.state)()],P.prototype,"rippling",void 0);ue([(0,ee.state)()],P.prototype,"originX",void 0);ue([(0,ee.state)()],P.prototype,"originY",void 0);ue([(0,ee.query)(".ft-ripple")],P.prototype,"ripple",void 0);ue([(0,ee.query)(".ft-ripple--effect")],P.prototype,"rippleEffect",void 0);var Xo=f(E());var Yo={"ft-ripple":P};(0,Xo.customElements)(Yo);var Pl=f(L()),Pe=f(z()),Le=f(E());var Jo=f(L()),st=f(E()),Er={distance:st.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:st.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:st.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),borderRadiusS:st.FtCssVariableFactory.extend("--ft-tooltip-border-radius","",st.designSystemVariables.borderRadiusS),maxWidth:st.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},Zo=Jo.css`
|
|
230
230
|
.ft-tooltip--container {
|
|
231
231
|
display: block;
|
|
232
232
|
}
|
|
@@ -257,11 +257,11 @@
|
|
|
257
257
|
position: relative;
|
|
258
258
|
word-break: break-word;
|
|
259
259
|
}
|
|
260
|
-
`;var es=["top","right","bottom","left"],Qo=["start","end"],ri=es.reduce((t,e)=>t.concat(e,e+"-"+Qo[0],e+"-"+Qo[1]),[]),Cr=Math.min,at=Math.max,Or=Math.round;var Ne=t=>({x:t,y:t}),Fc={left:"right",right:"left",bottom:"top",top:"bottom"};function ni(t,e,r){return at(t,Cr(e,r))}function Jr(t,e){return typeof t=="function"?t(e):t}function tr(t){return t.split("-")[0]}function lt(t){return t.split("-")[1]}function ii(t){return t==="x"?"y":"x"}function oi(t){return t==="y"?"height":"width"}function Zr(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function si(t){return ii(Zr(t))}function ts(t,e,r){r===void 0&&(r=!1);let n=lt(t),i=si(t),o=oi(i),s=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[o]>e.floating[o]&&(s=ti(s)),[s,ti(s)]}function rs(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function ti(t){let e=tr(t);return Fc[e]+t.slice(e.length)}function Vc(t){return{top:0,right:0,bottom:0,left:0,...t}}function ns(t){return typeof t!="number"?Vc(t):{top:t,right:t,bottom:t,left:t}}function Ot(t){let{x:e,y:r,width:n,height:i}=t;return{width:n,height:i,top:r,left:e,right:e+n,bottom:r+i,x:e,y:r}}function is(t,e,r){let{reference:n,floating:i}=t,o=Zr(e),s=si(e),a=oi(s),l=tr(e),c=o==="y",u=n.x+n.width/2-i.width/2,d=n.y+n.height/2-i.height/2,p=n[a]/2-i[a]/2,h;switch(l){case"top":h={x:u,y:n.y-i.height};break;case"bottom":h={x:u,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:d};break;case"left":h={x:n.x-i.width,y:d};break;default:h={x:n.x,y:n.y}}switch(lt(e)){case"start":h[s]-=p*(r&&c?-1:1);break;case"end":h[s]+=p*(r&&c?-1:1);break}return h}async function os(t,e){var r;e===void 0&&(e={});let{x:n,y:i,platform:o,rects:s,elements:a,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:h=0}=Jr(e,t),m=ns(h),x=a[p?d==="floating"?"reference":"floating":d],S=Ot(await o.getClippingRect({element:(r=await(o.isElement==null?void 0:o.isElement(x)))==null||r?x:x.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),A=d==="floating"?{x:n,y:i,width:s.floating.width,height:s.floating.height}:s.reference,C=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),O=await(o.isElement==null?void 0:o.isElement(C))?await(o.getScale==null?void 0:o.getScale(C))||{x:1,y:1}:{x:1,y:1},q=Ot(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:A,offsetParent:C,strategy:l}):A);return{top:(S.top-q.top+m.top)/O.y,bottom:(q.bottom-S.bottom+m.bottom)/O.y,left:(S.left-q.left+m.left)/O.x,right:(q.right-S.right+m.right)/O.x}}var zc=50,ss=async(t,e,r)=>{let{placement:n="bottom",strategy:i="absolute",middleware:o=[],platform:s}=r,a=s.detectOverflow?s:{...s,detectOverflow:os},l=await(s.isRTL==null?void 0:s.isRTL(e)),c=await s.getElementRects({reference:t,floating:e,strategy:i}),{x:u,y:d}=is(c,n,l),p=n,h=0,m={};for(let v=0;v<o.length;v++){let x=o[v];if(!x)continue;let{name:S,fn:A}=x,{x:C,y:O,data:q,reset:V}=await A({x:u,y:d,initialPlacement:n,placement:p,strategy:i,middlewareData:m,rects:c,platform:a,elements:{reference:t,floating:e}});u=C??u,d=O??d,m[S]={...m[S],...q},V&&h<zc&&(h++,typeof V=="object"&&(V.placement&&(p=V.placement),V.rects&&(c=V.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:i}):V.rects),{x:u,y:d}=is(c,p,l)),v=-1)}return{x:u,y:d,placement:p,strategy:i,middlewareData:m}};function Wc(t,e,r){return(t?[...r.filter(i=>lt(i)===t),...r.filter(i=>lt(i)!==t)]:r.filter(i=>tr(i)===i)).filter(i=>t?lt(i)===t||(e?rs(i)!==i:!1):!0)}var as=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,n,i;let{rects:o,middlewareData:s,placement:a,platform:l,elements:c}=e,{crossAxis:u=!1,alignment:d,allowedPlacements:p=ri,autoAlignment:h=!0,...m}=Jr(t,e),v=d!==void 0||p===ri?Wc(d||null,h,p):p,x=await l.detectOverflow(e,m),S=((r=s.autoPlacement)==null?void 0:r.index)||0,A=v[S];if(A==null)return{};let C=ts(A,o,await(l.isRTL==null?void 0:l.isRTL(c.floating)));if(a!==A)return{reset:{placement:v[0]}};let O=[x[tr(A)],x[C[0]],x[C[1]]],q=[...((n=s.autoPlacement)==null?void 0:n.overflows)||[],{placement:A,overflows:O}],V=v[S+1];if(V)return{data:{index:S+1,overflows:q},reset:{placement:V}};let nt=q.map(fe=>{let Ae=lt(fe.placement);return[fe.placement,Ae&&u?fe.overflows.slice(0,2).reduce((he,St)=>he+St,0):fe.overflows[0],fe.overflows]}).sort((fe,Ae)=>fe[1]-Ae[1]),it=((i=nt.filter(fe=>fe[2].slice(0,lt(fe[0])?2:3).every(Ae=>Ae<=0))[0])==null?void 0:i[0])||nt[0][0];return it!==a?{data:{index:S+1,overflows:q},reset:{placement:it}}:{}}}};var ls=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:n,placement:i,platform:o}=e,{mainAxis:s=!0,crossAxis:a=!1,limiter:l={fn:S=>{let{x:A,y:C}=S;return{x:A,y:C}}},...c}=Jr(t,e),u={x:r,y:n},d=await o.detectOverflow(e,c),p=Zr(tr(i)),h=ii(p),m=u[h],v=u[p];if(s){let S=h==="y"?"top":"left",A=h==="y"?"bottom":"right",C=m+d[S],O=m-d[A];m=ni(C,m,O)}if(a){let S=p==="y"?"top":"left",A=p==="y"?"bottom":"right",C=v+d[S],O=v-d[A];v=ni(C,v,O)}let x=l.fn({...e,[h]:m,[p]:v});return{...x,data:{x:x.x-r,y:x.y-n,enabled:{[h]:s,[p]:a}}}}}};function en(){return typeof window<"u"}function Tt(t){return us(t)?(t.nodeName||"").toLowerCase():"#document"}function ue(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function We(t){var e;return(e=(us(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function us(t){return en()?t instanceof Node||t instanceof ue(t).Node:!1}function Oe(t){return en()?t instanceof Element||t instanceof ue(t).Element:!1}function Ke(t){return en()?t instanceof HTMLElement||t instanceof ue(t).HTMLElement:!1}function cs(t){return!en()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof ue(t).ShadowRoot}function rr(t){let{overflow:e,overflowX:r,overflowY:n,display:i}=we(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+r)&&i!=="inline"&&i!=="contents"}function ds(t){return/^(table|td|th)$/.test(Tt(t))}function wr(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var Kc=/transform|translate|scale|rotate|perspective|filter/,Gc=/paint|layout|strict|content/,wt=t=>!!t&&t!=="none",ai;function nr(t){let e=Oe(t)?we(t):t;return wt(e.transform)||wt(e.translate)||wt(e.scale)||wt(e.rotate)||wt(e.perspective)||!tn()&&(wt(e.backdropFilter)||wt(e.filter))||Kc.test(e.willChange||"")||Gc.test(e.contain||"")}function ps(t){let e=Qe(t);for(;Ke(e)&&!_t(e);){if(nr(e))return e;if(wr(e))return null;e=Qe(e)}return null}function tn(){return ai==null&&(ai=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),ai}function _t(t){return/^(html|body|#document)$/.test(Tt(t))}function we(t){return ue(t).getComputedStyle(t)}function Tr(t){return Oe(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Qe(t){if(Tt(t)==="html")return t;let e=t.assignedSlot||t.parentNode||cs(t)&&t.host||We(t);return cs(e)?e.host:e}function fs(t){let e=Qe(t);return _t(e)?t.ownerDocument?t.ownerDocument.body:t.body:Ke(e)&&rr(e)?e:fs(e)}function Qr(t,e,r){var n;e===void 0&&(e=[]),r===void 0&&(r=!0);let i=fs(t),o=i===((n=t.ownerDocument)==null?void 0:n.body),s=ue(i);if(o){let a=rn(s);return e.concat(s,s.visualViewport||[],rr(i)?i:[],a&&r?Qr(a):[])}else return e.concat(i,Qr(i,[],r))}function rn(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function ys(t){let e=we(t),r=parseFloat(e.width)||0,n=parseFloat(e.height)||0,i=Ke(t),o=i?t.offsetWidth:r,s=i?t.offsetHeight:n,a=Or(r)!==o||Or(n)!==s;return a&&(r=o,n=s),{width:r,height:n,$:a}}function gs(t){return Oe(t)?t:t.contextElement}function ir(t){let e=gs(t);if(!Ke(e))return Ne(1);let r=e.getBoundingClientRect(),{width:n,height:i,$:o}=ys(e),s=(o?Or(r.width):r.width)/n,a=(o?Or(r.height):r.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}var qc=Ne(0);function bs(t){let e=ue(t);return!tn()||!e.visualViewport?qc:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Yc(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==ue(t)?!1:e}function _r(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r=!1);let i=t.getBoundingClientRect(),o=gs(t),s=Ne(1);e&&(n?Oe(n)&&(s=ir(n)):s=ir(t));let a=Yc(o,r,n)?bs(o):Ne(0),l=(i.left+a.x)/s.x,c=(i.top+a.y)/s.y,u=i.width/s.x,d=i.height/s.y;if(o){let p=ue(o),h=n&&Oe(n)?ue(n):n,m=p,v=rn(m);for(;v&&n&&h!==m;){let x=ir(v),S=v.getBoundingClientRect(),A=we(v),C=S.left+(v.clientLeft+parseFloat(A.paddingLeft))*x.x,O=S.top+(v.clientTop+parseFloat(A.paddingTop))*x.y;l*=x.x,c*=x.y,u*=x.x,d*=x.y,l+=C,c+=O,m=ue(v),v=rn(m)}}return Ot({width:u,height:d,x:l,y:c})}function nn(t,e){let r=Tr(t).scrollLeft;return e?e.left+r:_r(We(t)).left+r}function xs(t,e){let r=t.getBoundingClientRect(),n=r.left+e.scrollLeft-nn(t,r),i=r.top+e.scrollTop;return{x:n,y:i}}function Xc(t){let{elements:e,rect:r,offsetParent:n,strategy:i}=t,o=i==="fixed",s=We(n),a=e?wr(e.floating):!1;if(n===s||a&&o)return r;let l={scrollLeft:0,scrollTop:0},c=Ne(1),u=Ne(0),d=Ke(n);if((d||!d&&!o)&&((Tt(n)!=="body"||rr(s))&&(l=Tr(n)),d)){let h=_r(n);c=ir(n),u.x=h.x+n.clientLeft,u.y=h.y+n.clientTop}let p=s&&!d&&!o?xs(s,l):Ne(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+u.x+p.x,y:r.y*c.y-l.scrollTop*c.y+u.y+p.y}}function Jc(t){return Array.from(t.getClientRects())}function Zc(t){let e=We(t),r=Tr(t),n=t.ownerDocument.body,i=at(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),o=at(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),s=-r.scrollLeft+nn(t),a=-r.scrollTop;return we(n).direction==="rtl"&&(s+=at(e.clientWidth,n.clientWidth)-i),{width:i,height:o,x:s,y:a}}var hs=25;function Qc(t,e){let r=ue(t),n=We(t),i=r.visualViewport,o=n.clientWidth,s=n.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;let u=tn();(!u||u&&e==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}let c=nn(n);if(c<=0){let u=n.ownerDocument,d=u.body,p=getComputedStyle(d),h=u.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,m=Math.abs(n.clientWidth-d.clientWidth-h);m<=hs&&(o-=m)}else c<=hs&&(o+=c);return{width:o,height:s,x:a,y:l}}function eu(t,e){let r=_r(t,!0,e==="fixed"),n=r.top+t.clientTop,i=r.left+t.clientLeft,o=Ke(t)?ir(t):Ne(1),s=t.clientWidth*o.x,a=t.clientHeight*o.y,l=i*o.x,c=n*o.y;return{width:s,height:a,x:l,y:c}}function ms(t,e,r){let n;if(e==="viewport")n=Qc(t,r);else if(e==="document")n=Zc(We(t));else if(Oe(e))n=eu(e,r);else{let i=bs(t);n={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return Ot(n)}function Ss(t,e){let r=Qe(t);return r===e||!Oe(r)||_t(r)?!1:we(r).position==="fixed"||Ss(r,e)}function tu(t,e){let r=e.get(t);if(r)return r;let n=Qr(t,[],!1).filter(a=>Oe(a)&&Tt(a)!=="body"),i=null,o=we(t).position==="fixed",s=o?Qe(t):t;for(;Oe(s)&&!_t(s);){let a=we(s),l=nr(s);!l&&a.position==="fixed"&&(i=null),(o?!l&&!i:!l&&a.position==="static"&&!!i&&(i.position==="absolute"||i.position==="fixed")||rr(s)&&!l&&Ss(t,s))?n=n.filter(u=>u!==s):i=a,s=Qe(s)}return e.set(t,n),n}function ru(t){let{element:e,boundary:r,rootBoundary:n,strategy:i}=t,s=[...r==="clippingAncestors"?wr(e)?[]:tu(e,this._c):[].concat(r),n],a=ms(e,s[0],i),l=a.top,c=a.right,u=a.bottom,d=a.left;for(let p=1;p<s.length;p++){let h=ms(e,s[p],i);l=at(h.top,l),c=Cr(h.right,c),u=Cr(h.bottom,u),d=at(h.left,d)}return{width:c-d,height:u-l,x:d,y:l}}function nu(t){let{width:e,height:r}=ys(t);return{width:e,height:r}}function iu(t,e,r){let n=Ke(e),i=We(e),o=r==="fixed",s=_r(t,!0,o,e),a={scrollLeft:0,scrollTop:0},l=Ne(0);function c(){l.x=nn(i)}if(n||!n&&!o)if((Tt(e)!=="body"||rr(i))&&(a=Tr(e)),n){let h=_r(e,!0,o,e);l.x=h.x+e.clientLeft,l.y=h.y+e.clientTop}else i&&c();o&&!n&&i&&c();let u=i&&!n&&!o?xs(i,a):Ne(0),d=s.left+a.scrollLeft-l.x-u.x,p=s.top+a.scrollTop-l.y-u.y;return{x:d,y:p,width:s.width,height:s.height}}function li(t){return we(t).position==="static"}function vs(t,e){if(!Ke(t)||we(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return We(t)===r&&(r=r.ownerDocument.body),r}function As(t,e){let r=ue(t);if(wr(t))return r;if(!Ke(t)){let i=Qe(t);for(;i&&!_t(i);){if(Oe(i)&&!li(i))return i;i=Qe(i)}return r}let n=vs(t,e);for(;n&&ds(n)&&li(n);)n=vs(n,e);return n&&_t(n)&&li(n)&&!nr(n)?r:n||ps(t)||r}var ou=async function(t){let e=this.getOffsetParent||As,r=this.getDimensions,n=await r(t.floating);return{reference:iu(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function su(t){return we(t).direction==="rtl"}var on={convertOffsetParentRelativeRectToViewportRelativeRect:Xc,getDocumentElement:We,getClippingRect:ru,getOffsetParent:As,getElementRects:ou,getClientRects:Jc,getDimensions:nu,getScale:ir,isElement:Oe,isRTL:su};var Es=as,Cs=ls;var Os=(t,e,r)=>{let n=new Map,i={platform:on,...r},o={...i.platform,_c:n};return ss(t,e,{...i,platform:o})};function ws(t){return au(t)}function ci(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function au(t){for(let e=t;e;e=ci(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=ci(t);e;e=ci(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||nr(r)||e.tagName==="BODY"))return e}return null}async function Ts(t,e,r){let n;return typeof r=="object"?n=r:n={placement:r},Os(t,e,{strategy:n.strategy,platform:{...on,getOffsetParent:i=>on.getOffsetParent(i,ws)},middleware:[Cs({crossAxis:!0}),Es({allowedPlacements:[n.placement]})]})}var vr=f(E());var Ii=f(z());var _s=f(z(),1);var ui=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function Rs(t,e){return(0,_s.property)({type:Object,converter:{fromAttribute:r=>{if(r==null)return Rr(t);try{return JSON.parse(r)}catch{return Rr(t)}},toAttribute:r=>JSON.stringify(r)},hasChanged:Lr,...e??{}})}function lu(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;let r,n;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(n=r;n--!==0;)if(!sn(t[n],e[n]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;for(n of t.entries())if(!sn(n[1],e.get(n[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[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 i=s=>Object.keys(s).filter(a=>s[a]!=null),o=i(t);if(r=o.length,r!==i(e).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(e,o[n]))return!1;for(n=r;n--!==0;){let s=o[n];if(!sn(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function sn(t,e){try{return lu(t,e)}catch{return!1}}function Lr(t,e){return!sn(t,e)}function Rr(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function an(t,e){let r=n=>n[t]===!0;return n=>{if(r(n))return n;let i=e(n);return i[t]=!0,i}}var Ls=f(z(),1);var di=t=>{let e=t??{};return(r,n)=>{var i;let o={hasChanged:Lr,attribute:!1,...e};(0,Ls.property)(o)(r,n);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(n,{selector:(i=e.selector)!==null&&i!==void 0?i:(a=>a[n]),store:e.store})}};var ln=class{constructor(){this.queue=[]}add(e,r=!1){r&&this.clear(e.type),this.queue.push(e)}consume(e){let r=this.queue.find(n=>n.type===e);return r&&(this.queue=this.queue.filter(n=>n!==r)),r}clear(e){typeof e=="string"?this.queue=this.queue.filter(r=>r.type!==e):this.queue=this.queue.filter(r=>!e.test(r.type))}};var Rt=f(z(),1);var cn=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,n)=>{this.resolvePromise=r,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let n=[...this.callbacks];this.callbacks=[];let i=(e=this.rejectPromise)!==null&&e!==void 0?e:(()=>null),o=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let s of n)try{await s()}catch(a){i(a);return}o(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var ks=f(L(),1);var un=globalThis,cu=un.ShadowRoot&&(un.ShadyCSS===void 0||un.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;var Ps=(t,e)=>{if(cu)t.adoptedStyleSheets=e.map((r=>r instanceof CSSStyleSheet?r:r.styleSheet));else for(let r of e){let n=document.createElement("style"),i=un.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=r.cssText,t.appendChild(n)}};var dn=class extends ks.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},n=this.renderOptions.creationScope=this.attachShadow(r);return Ps(n,e.elementStyles),n}static canDefineScopedElement(e){return!!this.registry&&!this.registry.get(e)}static defineScopedElements(e){Object.entries(e).forEach(([r,n])=>this.defineScopedElement(r,n))}static defineScopedElement(e,r){ui(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 Ds(t,e,...r){var n;let i=t.querySelector(e);for(let o of r)i=(n=i?.shadowRoot)===null||n===void 0?void 0:n.querySelector(o);return i}var sr=function(t,e,r,n){var i=arguments.length,o=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(i<3?s(o):i>3?s(e,r,o):s(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o},$s,Ns=Symbol("constructorPrototype"),Is=Symbol("constructorName"),Us=Symbol("exportpartsDebouncer"),Ms=Symbol("dynamicDependenciesLoaded"),or=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};or.eventName="exportparts-updated";var Ge=class extends dn{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[$s]=new cn(5),this.scheduleExportpartsUpdate=()=>{var e,r,n;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(n=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&n!==void 0&&n)&&this[Us].run(()=>{var i,o;!((i=this.exportpartsPrefix)===null||i===void 0)&&i.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[Is]=this.constructor.name,this[Ns]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Is]&&Object.setPrototypeOf(this,this[Ns])}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(n){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",n)}let r=this.constructor;r[Ms]||(r[Ms]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(or.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(or.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 or)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:n,shadowPath:i}=this.elementToFocus;if(n!=null){let o=[...i??[],n];r=Ds(this.shadowRoot,...o)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var r,n,i;if(((n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(o=>o.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((i=this.customStylesheet)!==null&&i!==void 0?i:"")}catch(o){console.error(o,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let o=document.createElement("style");o.classList.add("ft-lit-element--custom-stylesheet"),o.innerHTML=this.customStylesheet,this.shadowRoot.append(o)}}setExportpartsAttribute(e){var r,n,i,o,s,a;let l=p=>p!=null&&p.trim().length>0,c=e.filter(l).map(p=>p.trim());if(c.length===0){this.exportparts=void 0;return}let u=new Set;for(let p of(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let h=(o=(i=p.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&o!==void 0?o:[],m=(a=(s=p.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(x=>x.split(":")[1]))!==null&&a!==void 0?a:[],v=[...h,...m].filter(l).map(x=>x.trim());for(let x of v)u.add(x)}if(u.size===0){this.exportparts=void 0;return}let d=[...u.values()].flatMap(p=>c.map(h=>`${p}:${h}--${p}`));this.exportparts=[...this.part,...d].join(", ")}};$s=Us;sr([(0,Rt.property)()],Ge.prototype,"exportpartsPrefix",void 0);sr([Rs([])],Ge.prototype,"exportpartsPrefixes",void 0);sr([(0,Rt.property)({reflect:!0})],Ge.prototype,"exportparts",void 0);sr([(0,Rt.property)()],Ge.prototype,"customStylesheet",void 0);sr([(0,Rt.property)()],Ge.prototype,"elementToFocus",void 0);sr([(0,Rt.state)()],Ge.prototype,"useAdoptedStyleSheets",void 0);function pn(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Pr=Symbol("internalReduxEventsUnsubscribers"),ct=Symbol("internalStoresUnsubscribers"),Lt=Symbol("internalStores"),uu=an(Symbol("withRedux"),function(t){var e,r,n;class i extends t{constructor(){super(...arguments),this[e]=new Map,this[r]=new Map,this[n]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(a=>s.has(a))&&this.updateFromStores()}getUnnamedStore(){if(this[Lt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Lt].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[Lt].get(s)}addStore(s,a){var l;a=(l=a??s.name)!==null&&l!==void 0?l:"default-store",this.unsubscribeFromStore(a),this[Lt].set(a,s),this.subscribeToStore(a,s),this.updateFromStores()}removeStore(s){let a=typeof s=="string"?s:s.name;this.unsubscribeFromStore(a),this[Lt].delete(a)}setupStores(){this.unsubscribeFromStores(),this[Lt].forEach((s,a)=>this.subscribeToStore(a,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,a)=>{let l=this.constructor.getPropertyOptions(a);if(!l?.attribute||!this.hasAttribute(typeof l?.attribute=="string"?l.attribute:a)){let c=this.getStore(s.store);c&&(s.store?this[ct].has(s.store):this[ct].size>0)&&(this[a]=s.selector(c.getState(),this))}})}subscribeToStore(s,a){var l;this[ct].set(s,a.subscribe(()=>this.updateFromStores())),this[Pr].set(s,[]),pn(a)&&a.eventBus&&((l=this.reduxConstructor.reduxEventListeners)===null||l===void 0||l.forEach((c,u)=>{if(typeof this[u]=="function"&&(!c.store||a.name===c.store)){let d=p=>this[u](p);a.addEventListener(c.eventName,d),this[Pr].get(s).push(()=>a.removeEventListener(c.eventName,d))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[ct].forEach((s,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(s){var a;this[ct].has(s)&&this[ct].get(s)(),this[ct].delete(s),(a=this[Pr].get(s))===null||a===void 0||a.forEach(l=>l()),this[Pr].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=ct,r=Lt,n=Pr,i.reduxProperties=new Map,i.reduxReactiveProperties=new Set,i.reduxEventListeners=new Map,i}),Bs=class extends uu(Ge){};function Te(t){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];if(0)var i,o;throw Error("[Immer] minified error nr: "+t+(r.length?" "+r.map((function(s){return"'"+s+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function et(t){return!!t&&!!t[U]}function Ie(t){var e;return!!t&&((function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===gu})(t)||Array.isArray(t)||!!t[Ks]||!!(!((e=t.constructor)===null||e===void 0)&&e[Ks])||xi(t)||Si(t))}function Pt(t,e,r){r===void 0&&(r=!1),cr(t)===0?(r?Object.keys:lr)(t).forEach((function(n){r&&typeof n=="symbol"||e(n,t[n],t)})):t.forEach((function(n,i){return e(i,n,t)}))}function cr(t){var e=t[U];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:xi(t)?2:Si(t)?3:0}function ar(t,e){return cr(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function du(t,e){return cr(t)===2?t.get(e):t[e]}function Gs(t,e,r){var n=cr(t);n===2?t.set(e,r):n===3?t.add(r):t[e]=r}function qs(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function xi(t){return vu&&t instanceof Map}function Si(t){return yu&&t instanceof Set}function ut(t){return t.o||t.t}function Ai(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Js(t);delete e[U];for(var r=lr(e),n=0;n<r.length;n++){var i=r[n],o=e[i];o.writable===!1&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(e[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:t[i]})}return Object.create(Object.getPrototypeOf(t),e)}function Ei(t,e){return e===void 0&&(e=!1),Ci(t)||et(t)||!Ie(t)||(cr(t)>1&&(t.set=t.add=t.clear=t.delete=pu),Object.freeze(t),e&&Pt(t,(function(r,n){return Ei(n,!0)}),!0)),t}function pu(){Te(2)}function Ci(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function qe(t){var e=bi[t];return e||Te(18,t),e}function fu(t,e){bi[t]||(bi[t]=e)}function vi(){return Dr}function pi(t,e){e&&(qe("Patches"),t.u=[],t.s=[],t.v=e)}function fn(t){yi(t),t.p.forEach(hu),t.p=null}function yi(t){t===Dr&&(Dr=t.l)}function Hs(t){return Dr={p:[],l:Dr,h:t,m:!0,_:0}}function hu(t){var e=t[U];e.i===0||e.i===1?e.j():e.g=!0}function fi(t,e){e._=e.p.length;var r=e.p[0],n=t!==void 0&&t!==r;return e.h.O||qe("ES5").S(e,t,n),n?(r[U].P&&(fn(e),Te(4)),Ie(t)&&(t=hn(e,t),e.l||mn(e,t)),e.u&&qe("Patches").M(r[U].t,t,e.u,e.s)):t=hn(e,r,[]),fn(e),e.u&&e.v(e.u,e.s),t!==Xs?t:void 0}function hn(t,e,r){if(Ci(e))return e;var n=e[U];if(!n)return Pt(e,(function(a,l){return js(t,n,e,a,l,r)}),!0),e;if(n.A!==t)return e;if(!n.P)return mn(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=Ai(n.k):n.o,o=i,s=!1;n.i===3&&(o=new Set(i),i.clear(),s=!0),Pt(o,(function(a,l){return js(t,n,i,a,l,r,s)})),mn(t,i,!1),r&&t.u&&qe("Patches").N(n,r,t.u,t.s)}return n.o}function js(t,e,r,n,i,o,s){if(et(i)){var a=hn(t,i,o&&e&&e.i!==3&&!ar(e.R,n)?o.concat(n):void 0);if(Gs(r,n,a),!et(a))return;t.m=!1}else s&&r.add(i);if(Ie(i)&&!Ci(i)){if(!t.h.D&&t._<1)return;hn(t,i),e&&e.A.l||mn(t,i)}}function mn(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&Ei(e,r)}function hi(t,e){var r=t[U];return(r?ut(r):t)[e]}function Fs(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var n=Object.getOwnPropertyDescriptor(r,e);if(n)return n;r=Object.getPrototypeOf(r)}}function dt(t){t.P||(t.P=!0,t.l&&dt(t.l))}function mi(t){t.o||(t.o=Ai(t.t))}function gi(t,e,r){var n=xi(e)?qe("MapSet").F(e,r):Si(e)?qe("MapSet").T(e,r):t.O?(function(i,o){var s=Array.isArray(i),a={i:s?1:0,A:o?o.A:vi(),P:!1,I:!1,R:{},l:o,t:i,k:null,o:null,j:null,C:!1},l=a,c=Nr;s&&(l=[a],c=kr);var u=Proxy.revocable(l,c),d=u.revoke,p=u.proxy;return a.k=p,a.j=d,p})(e,r):qe("ES5").J(e,r);return(r?r.A:vi()).p.push(n),n}function mu(t){return et(t)||Te(22,t),(function e(r){if(!Ie(r))return r;var n,i=r[U],o=cr(r);if(i){if(!i.P&&(i.i<4||!qe("ES5").K(i)))return i.t;i.I=!0,n=Vs(r,o),i.I=!1}else n=Vs(r,o);return Pt(n,(function(s,a){i&&du(i.t,s)===a||Gs(n,s,e(a))})),o===3?new Set(n):n})(t)}function Vs(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Ai(t)}function Ys(){function t(s,a){var l=o[s];return l?l.enumerable=a:o[s]=l={configurable:!0,enumerable:a,get:function(){var c=this[U];return Nr.get(c,s)},set:function(c){var u=this[U];Nr.set(u,s,c)}},l}function e(s){for(var a=s.length-1;a>=0;a--){var l=s[a][U];if(!l.P)switch(l.i){case 5:n(l)&&dt(l);break;case 4:r(l)&&dt(l)}}}function r(s){for(var a=s.t,l=s.k,c=lr(l),u=c.length-1;u>=0;u--){var d=c[u];if(d!==U){var p=a[d];if(p===void 0&&!ar(a,d))return!0;var h=l[d],m=h&&h[U];if(m?m.t!==p:!qs(h,p))return!0}}var v=!!a[U];return c.length!==lr(a).length+(v?0:1)}function n(s){var a=s.k;if(a.length!==s.t.length)return!0;var l=Object.getOwnPropertyDescriptor(a,a.length-1);if(l&&!l.get)return!0;for(var c=0;c<a.length;c++)if(!a.hasOwnProperty(c))return!0;return!1}function i(s){s.g&&Te(3,JSON.stringify(ut(s)))}var o={};fu("ES5",{J:function(s,a){var l=Array.isArray(s),c=(function(d,p){if(d){for(var h=Array(p.length),m=0;m<p.length;m++)Object.defineProperty(h,""+m,t(m,!0));return h}var v=Js(p);delete v[U];for(var x=lr(v),S=0;S<x.length;S++){var A=x[S];v[A]=t(A,d||!!v[A].enumerable)}return Object.create(Object.getPrototypeOf(p),v)})(l,s),u={i:l?5:4,A:a?a.A:vi(),P:!1,I:!1,R:{},l:a,t:s,k:c,o:null,g:!1,C:!1};return Object.defineProperty(c,U,{value:u,writable:!0}),c},S:function(s,a,l){l?et(a)&&a[U].A===s&&e(s.p):(s.u&&(function c(u){if(u&&typeof u=="object"){var d=u[U];if(d){var p=d.t,h=d.k,m=d.R,v=d.i;if(v===4)Pt(h,(function(O){O!==U&&(p[O]!==void 0||ar(p,O)?m[O]||c(h[O]):(m[O]=!0,dt(d)))})),Pt(p,(function(O){h[O]!==void 0||ar(h,O)||(m[O]=!1,dt(d))}));else if(v===5){if(n(d)&&(dt(d),m.length=!0),h.length<p.length)for(var x=h.length;x<p.length;x++)m[x]=!1;else for(var S=p.length;S<h.length;S++)m[S]=!0;for(var A=Math.min(h.length,p.length),C=0;C<A;C++)h.hasOwnProperty(C)||(m[C]=!0),m[C]===void 0&&c(h[C])}}}})(s.p[0]),e(s.p))},K:function(s){return s.i===4?r(s):n(s)}})}var zs,Dr,Oi=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",vu=typeof Map<"u",yu=typeof Set<"u",Ws=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Xs=Oi?Symbol.for("immer-nothing"):((zs={})["immer-nothing"]=!0,zs),Ks=Oi?Symbol.for("immer-draftable"):"__$immer_draftable",U=Oi?Symbol.for("immer-state"):"__$immer_state";var gu=""+Object.prototype.constructor,lr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Js=Object.getOwnPropertyDescriptors||function(t){var e={};return lr(t).forEach((function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)})),e},bi={},Nr={get:function(t,e){if(e===U)return t;var r=ut(t);if(!ar(r,e))return(function(i,o,s){var a,l=Fs(o,s);return l?"value"in l?l.value:(a=l.get)===null||a===void 0?void 0:a.call(i.k):void 0})(t,r,e);var n=r[e];return t.I||!Ie(n)?n:n===hi(t.t,e)?(mi(t),t.o[e]=gi(t.A.h,n,t)):n},has:function(t,e){return e in ut(t)},ownKeys:function(t){return Reflect.ownKeys(ut(t))},set:function(t,e,r){var n=Fs(ut(t),e);if(n?.set)return n.set.call(t.k,r),!0;if(!t.P){var i=hi(ut(t),e),o=i?.[U];if(o&&o.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(qs(r,i)&&(r!==void 0||ar(t.t,e)))return!0;mi(t),dt(t)}return t.o[e]===r&&(r!==void 0||e in t.o)||Number.isNaN(r)&&Number.isNaN(t.o[e])||(t.o[e]=r,t.R[e]=!0),!0},deleteProperty:function(t,e){return hi(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,mi(t),dt(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=ut(t),n=Reflect.getOwnPropertyDescriptor(r,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:r[e]}},defineProperty:function(){Te(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Te(12)}},kr={};Pt(Nr,(function(t,e){kr[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),kr.deleteProperty=function(t,e){return kr.set.call(this,t,e,void 0)},kr.set=function(t,e,r){return Nr.set.call(this,t[0],e,r,t[0])};var bu=(function(){function t(r){var n=this;this.O=Ws,this.D=!0,this.produce=function(i,o,s){if(typeof i=="function"&&typeof o!="function"){var a=o;o=i;var l=n;return function(v){var x=this;v===void 0&&(v=a);for(var S=arguments.length,A=Array(S>1?S-1:0),C=1;C<S;C++)A[C-1]=arguments[C];return l.produce(v,(function(O){var q;return(q=o).call.apply(q,[x,O].concat(A))}))}}var c;if(typeof o!="function"&&Te(6),s!==void 0&&typeof s!="function"&&Te(7),Ie(i)){var u=Hs(n),d=gi(n,i,void 0),p=!0;try{c=o(d),p=!1}finally{p?fn(u):yi(u)}return typeof Promise<"u"&&c instanceof Promise?c.then((function(v){return pi(u,s),fi(v,u)}),(function(v){throw fn(u),v})):(pi(u,s),fi(c,u))}if(!i||typeof i!="object"){if((c=o(i))===void 0&&(c=i),c===Xs&&(c=void 0),n.D&&Ei(c,!0),s){var h=[],m=[];qe("Patches").M(i,c,h,m),s(h,m)}return c}Te(21,i)},this.produceWithPatches=function(i,o){if(typeof i=="function")return function(c){for(var u=arguments.length,d=Array(u>1?u-1:0),p=1;p<u;p++)d[p-1]=arguments[p];return n.produceWithPatches(c,(function(h){return i.apply(void 0,[h].concat(d))}))};var s,a,l=n.produce(i,o,(function(c,u){s=c,a=u}));return typeof Promise<"u"&&l instanceof Promise?l.then((function(c){return[c,s,a]})):[l,s,a]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var e=t.prototype;return e.createDraft=function(r){Ie(r)||Te(8),et(r)&&(r=mu(r));var n=Hs(this),i=gi(this,r,void 0);return i[U].C=!0,yi(n),i},e.finishDraft=function(r,n){var i=r&&r[U],o=i.A;return pi(o,n),fi(void 0,o)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!Ws&&Te(20),this.O=r},e.applyPatches=function(r,n){var i;for(i=n.length-1;i>=0;i--){var o=n[i];if(o.path.length===0&&o.op==="replace"){r=o.value;break}}i>-1&&(n=n.slice(i+1));var s=qe("Patches").$;return et(r)?s(r,n):this.produce(r,(function(a){return s(a,n)}))},t})(),ve=new bu,xu=ve.produce,Hp=ve.produceWithPatches.bind(ve),jp=ve.setAutoFreeze.bind(ve),Fp=ve.setUseProxies.bind(ve),Vp=ve.applyPatches.bind(ve),zp=ve.createDraft.bind(ve),Wp=ve.finishDraft.bind(ve),vn=xu;function kt(t){"@babel/helpers - typeof";return kt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},kt(t)}function Zs(t,e){if(kt(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(kt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Qs(t){var e=Zs(t,"string");return kt(e)=="symbol"?e:e+""}function ea(t,e,r){return(e=Qs(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ta(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function wi(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?ta(Object(r),!0).forEach(function(n){ea(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ta(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function ie(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 ra=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),Ti=function(){return Math.random().toString(36).substring(7).split("").join(".")},yn={INIT:"@@redux/INIT"+Ti(),REPLACE:"@@redux/REPLACE"+Ti(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Ti()}};function Su(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function _i(t,e,r){var n;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(ie(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(ie(1));return r(_i)(t,e)}if(typeof t!="function")throw new Error(ie(2));var i=t,o=e,s=[],a=s,l=!1;function c(){a===s&&(a=s.slice())}function u(){if(l)throw new Error(ie(3));return o}function d(v){if(typeof v!="function")throw new Error(ie(4));if(l)throw new Error(ie(5));var x=!0;return c(),a.push(v),function(){if(x){if(l)throw new Error(ie(6));x=!1,c();var A=a.indexOf(v);a.splice(A,1),s=null}}}function p(v){if(!Su(v))throw new Error(ie(7));if(typeof v.type>"u")throw new Error(ie(8));if(l)throw new Error(ie(9));try{l=!0,o=i(o,v)}finally{l=!1}for(var x=s=a,S=0;S<x.length;S++){var A=x[S];A()}return v}function h(v){if(typeof v!="function")throw new Error(ie(10));i=v,p({type:yn.REPLACE})}function m(){var v,x=d;return v={subscribe:function(A){if(typeof A!="object"||A===null)throw new Error(ie(11));function C(){A.next&&A.next(u())}C();var O=x(C);return{unsubscribe:O}}},v[ra]=function(){return this},v}return p({type:yn.INIT}),n={dispatch:p,subscribe:d,getState:u,replaceReducer:h},n[ra]=m,n}function Au(t){Object.keys(t).forEach(function(e){var r=t[e],n=r(void 0,{type:yn.INIT});if(typeof n>"u")throw new Error(ie(12));if(typeof r(void 0,{type:yn.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ie(13))})}function na(t){for(var e=Object.keys(t),r={},n=0;n<e.length;n++){var i=e[n];typeof t[i]=="function"&&(r[i]=t[i])}var o=Object.keys(r),s,a;try{Au(r)}catch(l){a=l}return function(c,u){if(c===void 0&&(c={}),a)throw a;if(0)var d;for(var p=!1,h={},m=0;m<o.length;m++){var v=o[m],x=r[v],S=c[v],A=x(S,u);if(typeof A>"u"){var C=u&&u.type;throw new Error(ie(14))}h[v]=A,p=p||A!==S}return p=p||o.length!==Object.keys(c).length,p?h:c}}function ur(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function ia(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(n){return function(){var i=n.apply(void 0,arguments),o=function(){throw new Error(ie(15))},s={getState:i.getState,dispatch:function(){return o.apply(void 0,arguments)}},a=e.map(function(l){return l(s)});return o=ur.apply(void 0,a)(i.dispatch),wi(wi({},i),{},{dispatch:o})}}}function oa(t){var e=function(n){var i=n.dispatch,o=n.getState;return function(s){return function(a){return typeof a=="function"?a(i,o,t):s(a)}}};return e}var sa=oa();sa.withExtraArgument=oa;var Ri=sa;var da=(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),Eu=function(t,e){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(c){return function(u){return l([c,u])}}function l(c){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(o=c[0]&2?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,i=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){r.label=c[1];break}if(c[0]===6&&r.label<o[1]){r.label=o[1],o=c;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(c);break}o[2]&&r.ops.pop(),r.trys.pop();continue}c=e.call(t,r)}catch(u){c=[6,u],i=0}finally{n=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},dr=function(t,e){for(var r=0,n=e.length,i=t.length;r<n;r++,i++)t[i]=e[r];return t},Cu=Object.defineProperty,Ou=Object.defineProperties,wu=Object.getOwnPropertyDescriptors,aa=Object.getOwnPropertySymbols,Tu=Object.prototype.hasOwnProperty,_u=Object.prototype.propertyIsEnumerable,la=function(t,e,r){return e in t?Cu(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},pt=function(t,e){for(var r in e||(e={}))Tu.call(e,r)&&la(t,r,e[r]);if(aa)for(var n=0,i=aa(e);n<i.length;n++){var r=i[n];_u.call(e,r)&&la(t,r,e[r])}return t},Li=function(t,e){return Ou(t,wu(e))},Ru=function(t,e,r){return new Promise(function(n,i){var o=function(l){try{a(r.next(l))}catch(c){i(c)}},s=function(l){try{a(r.throw(l))}catch(c){i(c)}},a=function(l){return l.done?n(l.value):Promise.resolve(l.value).then(o,s)};a((r=r.apply(t,e)).next())})};var Lu=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?ur:ur.apply(null,arguments)},uf=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function Pu(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return e===r}function ft(t,e){function r(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(e){var o=e.apply(void 0,n);if(!o)throw new Error("prepareAction did not return an object");return pt(pt({type:t,payload:o.payload},"meta"in o&&{meta:o.meta}),"error"in o&&{error:o.error})}return{type:t,payload:n[0]}}return r.toString=function(){return""+t},r.type=t,r.match=function(n){return n.type===t},r}var ku=(function(t){da(e,t);function e(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=t.apply(this,r)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,dr([void 0],r[0].concat(this)))):new(e.bind.apply(e,dr([void 0],r.concat(this))))},e})(Array),Du=(function(t){da(e,t);function e(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=t.apply(this,r)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,dr([void 0],r[0].concat(this)))):new(e.bind.apply(e,dr([void 0],r.concat(this))))},e})(Array);function Di(t){return Ie(t)?vn(t,function(){}):t}function Nu(t){return typeof t=="boolean"}function Iu(){return function(e){return Mu(e)}}function Mu(t){t===void 0&&(t={});var e=t.thunk,r=e===void 0?!0:e,n=t.immutableCheck,i=n===void 0?!0:n,o=t.serializableCheck,s=o===void 0?!0:o,a=t.actionCreatorCheck,l=a===void 0?!0:a,c=new ku;if(r&&(Nu(r)?c.push(Ri):c.push(Ri.withExtraArgument(r.extraArgument))),0){if(i)var u;if(s)var d;if(l)var p}return c}var Pi=!0;function pa(t){var e=Iu(),r=t||{},n=r.reducer,i=n===void 0?void 0:n,o=r.middleware,s=o===void 0?e():o,a=r.devTools,l=a===void 0?!0:a,c=r.preloadedState,u=c===void 0?void 0:c,d=r.enhancers,p=d===void 0?void 0:d,h;if(typeof i=="function")h=i;else if(Pu(i))h=na(i);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var m=s;if(typeof m=="function"&&(m=m(e),!Pi&&!Array.isArray(m)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Pi&&m.some(function(O){return typeof O!="function"}))throw new Error("each middleware provided to configureStore must be a function");var v=ia.apply(void 0,m),x=ur;l&&(x=Lu(pt({trace:!Pi},typeof l=="object"&&l)));var S=new Du(v),A=S;Array.isArray(p)?A=dr([v],p):typeof p=="function"&&(A=p(S));var C=x.apply(void 0,A);return _i(h,u,C)}function fa(t){var e={},r=[],n,i={addCase:function(o,s){var a=typeof o=="string"?o:o.type;if(!a)throw new Error("`builder.addCase` cannot be called with an empty action type");if(a in e)throw new Error("`builder.addCase` cannot be called with two reducers for the same action type");return e[a]=s,i},addMatcher:function(o,s){return r.push({matcher:o,reducer:s}),i},addDefaultCase:function(o){return n=o,i}};return t(i),[e,r,n]}function $u(t){return typeof t=="function"}function Uu(t,e,r,n){r===void 0&&(r=[]);var i=typeof e=="function"?fa(e):[e,r,n],o=i[0],s=i[1],a=i[2],l;if($u(t))l=function(){return Di(t())};else{var c=Di(t);l=function(){return c}}function u(d,p){d===void 0&&(d=l());var h=dr([o[p.type]],s.filter(function(m){var v=m.matcher;return v(p)}).map(function(m){var v=m.reducer;return v}));return h.filter(function(m){return!!m}).length===0&&(h=[a]),h.reduce(function(m,v){if(v)if(et(m)){var x=m,S=v(x,p);return S===void 0?m:S}else{if(Ie(m))return vn(m,function(A){return v(A,p)});var S=v(m,p);if(S===void 0){if(m===null)return m;throw Error("A case reducer on a non-draftable value must not return undefined")}return S}return m},d)}return u.getInitialState=l,u}function Bu(t,e){return t+"/"+e}function ha(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof t.initialState=="function"?t.initialState:Di(t.initialState),n=t.reducers||{},i=Object.keys(n),o={},s={},a={};i.forEach(function(u){var d=n[u],p=Bu(e,u),h,m;"reducer"in d?(h=d.reducer,m=d.prepare):h=d,o[u]=h,s[p]=h,a[u]=m?ft(p,m):ft(p)});function l(){var u=typeof t.extraReducers=="function"?fa(t.extraReducers):[t.extraReducers],d=u[0],p=d===void 0?{}:d,h=u[1],m=h===void 0?[]:h,v=u[2],x=v===void 0?void 0:v,S=pt(pt({},p),s);return Uu(r,function(A){for(var C in S)A.addCase(C,S[C]);for(var O=0,q=m;O<q.length;O++){var V=q[O];A.addMatcher(V.matcher,V.reducer)}x&&A.addDefaultCase(x)})}var c;return{name:e,reducer:function(u,d){return c||(c=l()),c(u,d)},actions:a,caseReducers:o,getInitialState:function(){return c||(c=l()),c.getInitialState()}}}var Hu="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",ju=function(t){t===void 0&&(t=21);for(var e="",r=t;r--;)e+=Hu[Math.random()*64|0];return e},Fu=["name","message","stack","code"],ki=(function(){function t(e,r){this.payload=e,this.meta=r}return t})(),ca=(function(){function t(e,r){this.payload=e,this.meta=r}return t})(),Vu=function(t){if(typeof t=="object"&&t!==null){for(var e={},r=0,n=Fu;r<n.length;r++){var i=n[r];typeof t[i]=="string"&&(e[i]=t[i])}return e}return{message:String(t)}},hf=(function(){function t(e,r,n){var i=ft(e+"/fulfilled",function(u,d,p,h){return{payload:u,meta:Li(pt({},h||{}),{arg:p,requestId:d,requestStatus:"fulfilled"})}}),o=ft(e+"/pending",function(u,d,p){return{payload:void 0,meta:Li(pt({},p||{}),{arg:d,requestId:u,requestStatus:"pending"})}}),s=ft(e+"/rejected",function(u,d,p,h,m){return{payload:h,error:(n&&n.serializeError||Vu)(u||"Rejected"),meta:Li(pt({},m||{}),{arg:p,requestId:d,rejectedWithValue:!!h,requestStatus:"rejected",aborted:u?.name==="AbortError",condition:u?.name==="ConditionError"})}}),a=!1,l=typeof AbortController<"u"?AbortController:(function(){function u(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return u.prototype.abort=function(){},u})();function c(u){return function(d,p,h){var m=n?.idGenerator?n.idGenerator(u):ju(),v=new l,x,S=!1;function A(O){x=O,v.abort()}var C=(function(){return Ru(this,null,function(){var O,q,V,nt,jn,it,fe;return Eu(this,function(Ae){switch(Ae.label){case 0:return Ae.trys.push([0,4,,5]),nt=(O=n?.condition)==null?void 0:O.call(n,u,{getState:p,extra:h}),Wu(nt)?[4,nt]:[3,2];case 1:nt=Ae.sent(),Ae.label=2;case 2:if(nt===!1||v.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return S=!0,jn=new Promise(function(he,St){return v.signal.addEventListener("abort",function(){return St({name:"AbortError",message:x||"Aborted"})})}),d(o(m,u,(q=n?.getPendingMeta)==null?void 0:q.call(n,{requestId:m,arg:u},{getState:p,extra:h}))),[4,Promise.race([jn,Promise.resolve(r(u,{dispatch:d,getState:p,extra:h,requestId:m,signal:v.signal,abort:A,rejectWithValue:function(he,St){return new ki(he,St)},fulfillWithValue:function(he,St){return new ca(he,St)}})).then(function(he){if(he instanceof ki)throw he;return he instanceof ca?i(he.payload,m,u,he.meta):i(he,m,u)})])];case 3:return V=Ae.sent(),[3,5];case 4:return it=Ae.sent(),V=it instanceof ki?s(null,m,u,it.payload,it.meta):s(it,m,u),[3,5];case 5:return fe=n&&!n.dispatchConditionRejection&&s.match(V)&&V.meta.condition,fe||d(V),[2,V]}})})})();return Object.assign(C,{abort:A,requestId:m,arg:u,unwrap:function(){return C.then(zu)}})}}return Object.assign(c,{pending:o,rejected:s,fulfilled:i,typePrefix:e})}return t.withTypes=function(){return t},t})();function zu(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Wu(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var ma="listener",va="completed",ya="cancelled",mf="task-"+ya,vf="task-"+va,yf=ma+"-"+ya,gf=ma+"-"+va;var Ni="listenerMiddleware";var bf=ft(Ni+"/add"),xf=ft(Ni+"/removeAll"),Sf=ft(Ni+"/remove");var ua,Af=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(ua||(ua=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},Ku=function(t){return function(e){setTimeout(e,t)}},Ef=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Ku(10);Ys();var Gu=an(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(r,n,i){this.eventBus.addEventListener(r,n,i)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,n,i){this.eventBus.removeEventListener(r,n,i)}}}),gn=class extends Gu(Object){};window.ftReduxStores||(window.ftReduxStores={});var ga=class t extends gn{static get(e){var r;let n=typeof e=="string"?e:e.name,i=typeof e=="string"?void 0:e,o=window.ftReduxStores[n];if(pn(o))return o;if(i==null)return;let s=ha({...i,reducers:(r=i.reducers)!==null&&r!==void 0?r:{}}),a=pa({reducer:(l,c)=>{if(c.type==="CLEAR_FT_REDUX_STORE"){let u=Rr(s.getInitialState());for(let d of c.keeping)u[d]=(l??u)[d];return u}else if(typeof c.type=="string"&&c.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...l,...c.overwrites};return s.reducer(l,c)}});return window.ftReduxStores[i.name]=new t(s,a,i.eventBus)}constructor(e,r,n){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new ln;let i=o=>o!=null?JSON.parse(JSON.stringify(o)):o;this.actions=new Proxy(this.reduxSlice.actions,{get:(o,s,a)=>{let l=s,c=o[l];return c?(...u)=>{let d=c(...u.map(i));return this.reduxStore.dispatch(d),d}:u=>{this.setState({[l]:i(u)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...e){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:e})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var bn=class{static format(e,r,n,i,o){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(n,i,!!o)):this.getIntlDateTime(e,r,n,i,!!o)}static getMomentDateFormat(e,r,n){return n?"LT":e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,n,i,o){let s=typeof e=="string"?new Date(e):e,a=new Intl.DateTimeFormat(r,{dateStyle:n?"medium":"short"}).format(s),l=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(s);return o?l:i?`${a} ${l}`:a}static getTimezoneAsString(){let e=n=>String(Math.floor(n)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${e(Math.abs(r)/60)}:${e(Math.abs(r)%60)}`}};var xn=f(E()),qu="ft-app-info",pr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};pr.eventName="authentication-change";var Ir=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Ir.eventName="ui-locale-changed";var Yu={session:(t,e)=>{(0,xn.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>w.dispatchEvent(new pr(e.payload)),0))}},w=xn.FtReduxStore.get({name:qu,reducers:Yu,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],availableContentLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,searchLanguageSetsUiLanguage:!1,uiLanguageSetsSearchLanguage:!1,uiLanguageSetsReaderLanguage:!1,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}});var ba=f(E()),Sn=function(t,e,r,n){var i=arguments.length,o=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(i<3?s(o):i>3?s(e,r,o):s(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o},Jf=(0,ba.applyMixinOnce)(Symbol("withDateFormat"),function(t){class e extends t{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(w)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var i,o;return((o=(i=this.metadataDescriptors.find(a=>a.key===n))===null||i===void 0?void 0:i.date)!==null&&o!==void 0?o:!1)?a=>bn.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Sn([(0,Ii.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),Sn([(0,Ii.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),Sn([di({store:w.name,selector:r=>{var n,i;return(i=(n=r.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&i!==void 0?i:[]}})],e.prototype,"metadataDescriptors",void 0),Sn([di({store:w.name})],e.prototype,"uiLocale",void 0),e});var xa;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(xa||(xa={}));var Sa;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Sa||(Sa={}));var Aa;(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"})(Aa||(Aa={}));var Ea;(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"})(Ea||(Ea={}));var Ca;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Ca||(Ca={}));var Oa;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(Oa||(Oa={}));var wa;(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(wa||(wa={}));var Ta;(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"})(Ta||(Ta={}));var _a;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(_a||(_a={}));var Ra;(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"})(Ra||(Ra={}));var La;(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"})(La||(La={}));var Pa;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Pa||(Pa={}));var ka;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(ka||(ka={}));var Da;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Da||(Da={}));var Na;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Na||(Na={}));var Ia;(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"})(Ia||(Ia={}));var Ma;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(Ma||(Ma={}));var $a;(function(t){t.ASC="ASC",t.DESC="DESC"})($a||($a={}));var Ua;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Ua||(Ua={}));var Ba;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(Ba||(Ba={}));var Ha;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Ha||(Ha={}));var ja;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(ja||(ja={}));var Fa;(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"})(Fa||(Fa={}));var Va;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Va||(Va={}));var za;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(za||(za={}));var Wa;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Wa||(Wa={}));var Ka;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Ka||(Ka={}));var G;(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"})(G||(G={}));var _e;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(_e||(_e={}));var Ga;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(Ga||(Ga={}));var qa;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(qa||(qa={}));var Ya;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Ya||(Ya={}));var Xa;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SUMMARY="SUMMARY",t.SEMANTIC_SEARCH="SEMANTIC_SEARCH",t.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",t.DOCUMENTATION="DOCUMENTATION",t.OTHER="OTHER"})(Xa||(Xa={}));var Ja;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(Ja||(Ja={}));var Za;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Za||(Za={}));var Qa;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Qa||(Qa={}));var el;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(el||(el={}));var tl;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(tl||(tl={}));var rl;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(rl||(rl={}));var nl;(function(t){t.SOURCES="SOURCES",t.ENRICH_AND_CLEAN="ENRICH_AND_CLEAN",t.VOCABULARIES="VOCABULARIES",t.METADATA="METADATA",t.PRETTY_URL="PRETTY_URL",t.ACCESS_RULE="ACCESS_RULE",t.DESIGNED_PAGES="DESIGNED_PAGES",t.THEME_STUDIO="THEME_STUDIO",t.PORTAL_GENERAL="PORTAL_GENERAL",t.ASSETS="ASSETS",t.CODE_LIBRARY="CODE_LIBRARY",t.THEME="THEME",t.CONTENT_STYLES="CONTENT_STYLES",t.HOMEPAGE="HOMEPAGE",t.CLASSIC_SEARCH_PAGE="CLASSIC_SEARCH_PAGE",t.CLASSIC_READER_PAGE="CLASSIC_READER_PAGE",t.PORTAL_METADATA="PORTAL_METADATA",t.LANGUAGES="LANGUAGES",t.PRINT_TEMPLATES="PRINT_TEMPLATES",t.OFFLINE="OFFLINE",t.CUSTOM_JS="CUSTOM_JS",t.CONFIDENTIALITY="CONFIDENTIALITY",t.NOTIFICATIONS="NOTIFICATIONS"})(nl||(nl={}));var il;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(il||(il={}));var Xu={[G.PERSONAL_BOOK_SHARE_USER]:[G.PERSONAL_BOOK_USER],[G.HTML_EXPORT_USER]:[G.PERSONAL_BOOK_USER],[G.PDF_EXPORT_USER]:[G.PERSONAL_BOOK_USER],[G.KHUB_ADMIN]:[G.CONTENT_PUBLISHER],[G.ADMIN]:[G.KHUB_ADMIN,G.USERS_ADMIN,G.PORTAL_ADMIN,G.BEHAVIOR_DATA_USER],[G.GENERATIVE_AI_EXPORT_USER]:[G.GENERATIVE_AI_USER]};function ol(t,e){return t===e||(Xu[t]??[]).some(r=>ol(r,e))}function sl(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(n=>ol(n,e))}var wn=f(E());var Mi=f(E());var Dt=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:n}=w.getState(),i=e??n;if(r&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,i,!0)}static await(e){return new Promise(r=>{let n=t.get(e);if(n)r(n);else{let i=w.subscribe(()=>{n=t.get(e),n&&(i(),r(n))})}})}};var fr=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Dt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Dt.await()}};var ye=class extends fr{constructor(e=!0,r){var n;super(r),this.sortObjectFields=(o,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([a],[l])=>a.localeCompare(l)));let i=this.constructor;i.commonCache=(n=i.commonCache)!==null&&n!==void 0?n:new Mi.CacheRegistry,this.cache=e?i.commonCache:new Mi.CacheRegistry}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((r,n)=>0|31*r+n.charCodeAt(0),0))}};var An=class extends ye{async listMySearches(){let{session:e}=w.getState();return sl(e,G.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var En=class extends ye{async listMyBookmarks(){let e=w.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}};var Cn=class extends ye{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=w.getState().session;return!!e?.sessionAuthenticated}};var On=class extends ye{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=w.getState().session;return!!e?.sessionAuthenticated}};var Ju="ft-user-assets",Zu={setAssetCount:(t,e)=>{let{userAssetType:r,count:n}=e.payload.assetCount;t.assetCounts.allAsset[r]=n},clearAssetCount:t=>{Object.values(_e).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:n,asset:i}=e.payload;Ui(t,r,[...$i(t,r),i]),al(t,r,1,n),ll(t,i)},editAsset:(t,e)=>{let{assetType:r,asset:n}=e.payload;Ui(t,r,$i(t,r).map(i=>i.id===n.id?n:i)),ll(t,n)},removeAsset:(t,e)=>{let{assetType:r,mapId:n,assetId:i}=e.payload;Ui(t,r,$i(t,r).filter(o=>o.id!==i)),al(t,r,-1,n)}},cl={[_e.SEARCHES]:"savedSearches",[_e.BOOKMARKS]:"bookmarks",[_e.BOOKS]:void 0,[_e.COLLECTIONS]:void 0},$i=(t,e)=>{var r;let n=cl[e];return n?(r=t[n])!==null&&r!==void 0?r:[]:[]},Ui=(t,e,r)=>{let n=cl[e];n&&(t[n]=r)},al=(t,e,r,n)=>{let i=t.assetCounts.allAsset[e];if(i!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,i+r),e===_e.BOOKMARKS&&n)){let o=t.assetCounts.bookmarkByMap[n];t.assetCounts.bookmarkByMap[n]=Math.max(0,o+r)}},ll=(t,e)=>{let r=t.assetLabels.map(i=>i.title),n=e.labels.filter(i=>!r.includes(i)).map(i=>({title:i}));t.assetLabels.push(...n)},ae=wn.FtReduxStore.get({name:Ju,reducers:Zu,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(_e).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Bi=class{constructor(e=new Cn,r=new On){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=w.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new En,this.savedSearchesService=new An,w.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=w.getState();(0,wn.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(),ae.actions.clearAssetCount(),ae.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),ae.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),ae.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();ae.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();ae.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&ae.getState().assetCounts.allAsset[e]!==r.count&&ae.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&ae.getState().assetCounts.bookmarkByMap[e]!==r.count&&ae.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(ae.getState().assetCounts.bookmarkByMap).length!==0;e===_e.BOOKMARKS&&r&&ae.actions.clearBookmarkCountByMap(),ae.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;ae.actions.bookmarks(r)}}},Qu=new Bi;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Qu);var Hi=class{addCommand(e,r=!1){w.commands.add(e,r)}consumeCommand(e){return w.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Hi;var Re=f(E());var ul,hr=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},ed=Symbol("clearAfterUnitTest"),Tn=class extends(0,Re.withEventBus)(ye){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[ul]=()=>{this.defaultMessages={},this.cache=new Re.CacheRegistry,this.listeners={}},this.currentUiLocale=w.getState().uiLocale,w.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=w.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 n;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let i={...(n=this.defaultMessages[e])!==null&&n!==void 0?n:{},...r};(0,Re.deepEqual)(this.defaultMessages[e],i)||(this.defaultMessages[e]=i,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,n;return this.fetchContext(e),(n=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(e,r){let n=e.toLowerCase();return this.resolveContext(n)[r]}resolveMessage(e,r,...n){var i;let o=e.toLowerCase(),s=this.resolveContext(o);return new Re.ParametrizedLabelResolver((i=this.defaultMessages[o])!==null&&i!==void 0?i:{},s).resolve(r,...n)}async fetchContext(e){let r=!this.cache.has(e),n;try{n=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(i){!(i instanceof Re.CanceledPromiseError)&&r&&console.error(i)}return n}subscribe(e,r){var n;return e=e.toLowerCase(),this.listeners[e]=(n=this.listeners[e])!==null&&n!==void 0?n:new Set,this.listeners[e].add(r),()=>{var i;return(i=this.listeners[e])===null||i===void 0?void 0:i.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new hr({loadedContexts:e})),this.dispatchEvent(new hr({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new hr({loadedContexts:[e]})),this.dispatchEvent(new hr({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(n=>(0,Re.delay)(0).then(()=>n()).catch(()=>null)))}};ul=ed;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Tn{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Tn{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var Mr=window.FluidTopicsI18nService,ji=window.FluidTopicsCustomI18nService;var dl=f(E()),Fi=class{highlightHtml(e,r,n){(0,dl.highlightHtml)(e,r,n)}};window.FluidTopicsHighlightHtmlService=new Fi;var pl=f(E());var Vi=class{isDate(e){var r,n,i,o;return(o=(i=((n=(r=w.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(a=>a.key===e))===null||i===void 0?void 0:i.date)!==null&&o!==void 0?o:!1}format(e,r){var n,i,o,s;if(e==null)return"";try{return pl.DateFormatter.format(e,(n=r?.locale)!==null&&n!==void 0?n:w.getState().uiLocale,(i=r?.longFormat)!==null&&i!==void 0?i:!1,(o=r?.withTime)!==null&&o!==void 0?o:!1,(s=r?.onlyTime)!==null&&s!==void 0?s:!1)}catch(a){throw console.error(`Date ${JSON.stringify(e)} is not valid`,a),a}}};window.FluidTopicsDateService=new Vi;var fl=f(E());var $r=class{static get(e,r){var n,i;let o=w.getState(),{lang:s,region:a}=(i=(n=o.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&i!==void 0?i:{lang:"en",region:"US"};return new fl.SearchPlaceConverter(o.baseUrl,e??20,o.searchInAllLanguagesAllowed,r??`${s}-${a}`)}};var zi=class{urlToSearchRequest(e){return $r.get().parse(e)}searchRequestToUrl(e){return $r.get().serialize(e)}};window.FluidTopicsUrlService=new zi;var tt=f(E());var Nt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Nt.eventName="change";var Wi=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))}},hl=new Wi;var _n=class t extends tt.WithEventBus{static build(){return new t(window.history,hl,()=>window.location,!1)}constructor(e,r,n,i){var o,s;super(),this.history=e,this.historyStorage=r,this.windowLocation=n,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(o=e.state)===null||o===void 0?void 0:o.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(i)}setCurrentState(e,r=!1){let n=r&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,n&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,tt.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new Nt(this.currentItem())),0)}installProxies(){let e=r=>(n,i,[o,s,a])=>{let l=r(),c={...l===this.currentIndex?this.currentState:void 0,...o,index:l,href:typeof a=="string"?a:(a??this.windowLocation()).href};n.apply(i,[c,s,a]),this.setCurrentState(c,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply: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 n={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(e){this.addEventListener(Nt.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Nt.eventName,e)}currentItem(){return(0,tt.deepCopy)(this.currentState)}back(){let e=this.previousDifferentMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,tt.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(n=>!!n).filter(n=>n.index<this.currentIndex).reverse();return(0,tt.deepCopy)(r.find(n=>e(n)))}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return(0,tt.deepCopy)(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var r;let n=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!n)return e;let i=e,o=e+1;for(;this.states.length>o&&!this.isDifferentMajorState(o,n);)this.hasState(o)&&(i=o),o++;return i}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 n;if(!this.hasState(e))return!1;let i=r??this.currentState.majorStateId,o=(n=this.states[e])===null||n===void 0?void 0:n.majorStateId;return o==null||o!=i}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=_n.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:t=>window.FluidTopicsInternalHistoryService.backwardItemMatching(t),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t)});var ml=f(L());var vl=ml.css`
|
|
261
|
-
`;var bl=f(L()),
|
|
260
|
+
`;var es=["top","right","bottom","left"],Qo=["start","end"],ri=es.reduce((t,e)=>t.concat(e,e+"-"+Qo[0],e+"-"+Qo[1]),[]),Cr=Math.min,at=Math.max,Or=Math.round;var Ne=t=>({x:t,y:t}),Fc={left:"right",right:"left",bottom:"top",top:"bottom"};function ni(t,e,r){return at(t,Cr(e,r))}function Jr(t,e){return typeof t=="function"?t(e):t}function tr(t){return t.split("-")[0]}function lt(t){return t.split("-")[1]}function ii(t){return t==="x"?"y":"x"}function oi(t){return t==="y"?"height":"width"}function Zr(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function si(t){return ii(Zr(t))}function ts(t,e,r){r===void 0&&(r=!1);let n=lt(t),i=si(t),o=oi(i),s=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[o]>e.floating[o]&&(s=ti(s)),[s,ti(s)]}function rs(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function ti(t){let e=tr(t);return Fc[e]+t.slice(e.length)}function Vc(t){return{top:0,right:0,bottom:0,left:0,...t}}function ns(t){return typeof t!="number"?Vc(t):{top:t,right:t,bottom:t,left:t}}function Ot(t){let{x:e,y:r,width:n,height:i}=t;return{width:n,height:i,top:r,left:e,right:e+n,bottom:r+i,x:e,y:r}}function is(t,e,r){let{reference:n,floating:i}=t,o=Zr(e),s=si(e),a=oi(s),l=tr(e),c=o==="y",u=n.x+n.width/2-i.width/2,d=n.y+n.height/2-i.height/2,p=n[a]/2-i[a]/2,h;switch(l){case"top":h={x:u,y:n.y-i.height};break;case"bottom":h={x:u,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:d};break;case"left":h={x:n.x-i.width,y:d};break;default:h={x:n.x,y:n.y}}switch(lt(e)){case"start":h[s]-=p*(r&&c?-1:1);break;case"end":h[s]+=p*(r&&c?-1:1);break}return h}async function os(t,e){var r;e===void 0&&(e={});let{x:n,y:i,platform:o,rects:s,elements:a,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:h=0}=Jr(e,t),m=ns(h),x=a[p?d==="floating"?"reference":"floating":d],S=Ot(await o.getClippingRect({element:(r=await(o.isElement==null?void 0:o.isElement(x)))==null||r?x:x.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),A=d==="floating"?{x:n,y:i,width:s.floating.width,height:s.floating.height}:s.reference,C=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),O=await(o.isElement==null?void 0:o.isElement(C))?await(o.getScale==null?void 0:o.getScale(C))||{x:1,y:1}:{x:1,y:1},q=Ot(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:A,offsetParent:C,strategy:l}):A);return{top:(S.top-q.top+m.top)/O.y,bottom:(q.bottom-S.bottom+m.bottom)/O.y,left:(S.left-q.left+m.left)/O.x,right:(q.right-S.right+m.right)/O.x}}var zc=50,ss=async(t,e,r)=>{let{placement:n="bottom",strategy:i="absolute",middleware:o=[],platform:s}=r,a=s.detectOverflow?s:{...s,detectOverflow:os},l=await(s.isRTL==null?void 0:s.isRTL(e)),c=await s.getElementRects({reference:t,floating:e,strategy:i}),{x:u,y:d}=is(c,n,l),p=n,h=0,m={};for(let v=0;v<o.length;v++){let x=o[v];if(!x)continue;let{name:S,fn:A}=x,{x:C,y:O,data:q,reset:V}=await A({x:u,y:d,initialPlacement:n,placement:p,strategy:i,middlewareData:m,rects:c,platform:a,elements:{reference:t,floating:e}});u=C??u,d=O??d,m[S]={...m[S],...q},V&&h<zc&&(h++,typeof V=="object"&&(V.placement&&(p=V.placement),V.rects&&(c=V.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:i}):V.rects),{x:u,y:d}=is(c,p,l)),v=-1)}return{x:u,y:d,placement:p,strategy:i,middlewareData:m}};function Wc(t,e,r){return(t?[...r.filter(i=>lt(i)===t),...r.filter(i=>lt(i)!==t)]:r.filter(i=>tr(i)===i)).filter(i=>t?lt(i)===t||(e?rs(i)!==i:!1):!0)}var as=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,n,i;let{rects:o,middlewareData:s,placement:a,platform:l,elements:c}=e,{crossAxis:u=!1,alignment:d,allowedPlacements:p=ri,autoAlignment:h=!0,...m}=Jr(t,e),v=d!==void 0||p===ri?Wc(d||null,h,p):p,x=await l.detectOverflow(e,m),S=((r=s.autoPlacement)==null?void 0:r.index)||0,A=v[S];if(A==null)return{};let C=ts(A,o,await(l.isRTL==null?void 0:l.isRTL(c.floating)));if(a!==A)return{reset:{placement:v[0]}};let O=[x[tr(A)],x[C[0]],x[C[1]]],q=[...((n=s.autoPlacement)==null?void 0:n.overflows)||[],{placement:A,overflows:O}],V=v[S+1];if(V)return{data:{index:S+1,overflows:q},reset:{placement:V}};let nt=q.map(he=>{let Ee=lt(he.placement);return[he.placement,Ee&&u?he.overflows.slice(0,2).reduce((me,St)=>me+St,0):he.overflows[0],he.overflows]}).sort((he,Ee)=>he[1]-Ee[1]),it=((i=nt.filter(he=>he[2].slice(0,lt(he[0])?2:3).every(Ee=>Ee<=0))[0])==null?void 0:i[0])||nt[0][0];return it!==a?{data:{index:S+1,overflows:q},reset:{placement:it}}:{}}}};var ls=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:n,placement:i,platform:o}=e,{mainAxis:s=!0,crossAxis:a=!1,limiter:l={fn:S=>{let{x:A,y:C}=S;return{x:A,y:C}}},...c}=Jr(t,e),u={x:r,y:n},d=await o.detectOverflow(e,c),p=Zr(tr(i)),h=ii(p),m=u[h],v=u[p];if(s){let S=h==="y"?"top":"left",A=h==="y"?"bottom":"right",C=m+d[S],O=m-d[A];m=ni(C,m,O)}if(a){let S=p==="y"?"top":"left",A=p==="y"?"bottom":"right",C=v+d[S],O=v-d[A];v=ni(C,v,O)}let x=l.fn({...e,[h]:m,[p]:v});return{...x,data:{x:x.x-r,y:x.y-n,enabled:{[h]:s,[p]:a}}}}}};function en(){return typeof window<"u"}function Tt(t){return us(t)?(t.nodeName||"").toLowerCase():"#document"}function de(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Ke(t){var e;return(e=(us(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function us(t){return en()?t instanceof Node||t instanceof de(t).Node:!1}function Oe(t){return en()?t instanceof Element||t instanceof de(t).Element:!1}function Ge(t){return en()?t instanceof HTMLElement||t instanceof de(t).HTMLElement:!1}function cs(t){return!en()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof de(t).ShadowRoot}function rr(t){let{overflow:e,overflowX:r,overflowY:n,display:i}=we(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+r)&&i!=="inline"&&i!=="contents"}function ds(t){return/^(table|td|th)$/.test(Tt(t))}function wr(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var Kc=/transform|translate|scale|rotate|perspective|filter/,Gc=/paint|layout|strict|content/,wt=t=>!!t&&t!=="none",ai;function nr(t){let e=Oe(t)?we(t):t;return wt(e.transform)||wt(e.translate)||wt(e.scale)||wt(e.rotate)||wt(e.perspective)||!tn()&&(wt(e.backdropFilter)||wt(e.filter))||Kc.test(e.willChange||"")||Gc.test(e.contain||"")}function ps(t){let e=Qe(t);for(;Ge(e)&&!_t(e);){if(nr(e))return e;if(wr(e))return null;e=Qe(e)}return null}function tn(){return ai==null&&(ai=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),ai}function _t(t){return/^(html|body|#document)$/.test(Tt(t))}function we(t){return de(t).getComputedStyle(t)}function Tr(t){return Oe(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Qe(t){if(Tt(t)==="html")return t;let e=t.assignedSlot||t.parentNode||cs(t)&&t.host||Ke(t);return cs(e)?e.host:e}function fs(t){let e=Qe(t);return _t(e)?t.ownerDocument?t.ownerDocument.body:t.body:Ge(e)&&rr(e)?e:fs(e)}function Qr(t,e,r){var n;e===void 0&&(e=[]),r===void 0&&(r=!0);let i=fs(t),o=i===((n=t.ownerDocument)==null?void 0:n.body),s=de(i);if(o){let a=rn(s);return e.concat(s,s.visualViewport||[],rr(i)?i:[],a&&r?Qr(a):[])}else return e.concat(i,Qr(i,[],r))}function rn(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function ys(t){let e=we(t),r=parseFloat(e.width)||0,n=parseFloat(e.height)||0,i=Ge(t),o=i?t.offsetWidth:r,s=i?t.offsetHeight:n,a=Or(r)!==o||Or(n)!==s;return a&&(r=o,n=s),{width:r,height:n,$:a}}function gs(t){return Oe(t)?t:t.contextElement}function ir(t){let e=gs(t);if(!Ge(e))return Ne(1);let r=e.getBoundingClientRect(),{width:n,height:i,$:o}=ys(e),s=(o?Or(r.width):r.width)/n,a=(o?Or(r.height):r.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}var qc=Ne(0);function bs(t){let e=de(t);return!tn()||!e.visualViewport?qc:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Yc(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==de(t)?!1:e}function _r(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r=!1);let i=t.getBoundingClientRect(),o=gs(t),s=Ne(1);e&&(n?Oe(n)&&(s=ir(n)):s=ir(t));let a=Yc(o,r,n)?bs(o):Ne(0),l=(i.left+a.x)/s.x,c=(i.top+a.y)/s.y,u=i.width/s.x,d=i.height/s.y;if(o){let p=de(o),h=n&&Oe(n)?de(n):n,m=p,v=rn(m);for(;v&&n&&h!==m;){let x=ir(v),S=v.getBoundingClientRect(),A=we(v),C=S.left+(v.clientLeft+parseFloat(A.paddingLeft))*x.x,O=S.top+(v.clientTop+parseFloat(A.paddingTop))*x.y;l*=x.x,c*=x.y,u*=x.x,d*=x.y,l+=C,c+=O,m=de(v),v=rn(m)}}return Ot({width:u,height:d,x:l,y:c})}function nn(t,e){let r=Tr(t).scrollLeft;return e?e.left+r:_r(Ke(t)).left+r}function xs(t,e){let r=t.getBoundingClientRect(),n=r.left+e.scrollLeft-nn(t,r),i=r.top+e.scrollTop;return{x:n,y:i}}function Xc(t){let{elements:e,rect:r,offsetParent:n,strategy:i}=t,o=i==="fixed",s=Ke(n),a=e?wr(e.floating):!1;if(n===s||a&&o)return r;let l={scrollLeft:0,scrollTop:0},c=Ne(1),u=Ne(0),d=Ge(n);if((d||!d&&!o)&&((Tt(n)!=="body"||rr(s))&&(l=Tr(n)),d)){let h=_r(n);c=ir(n),u.x=h.x+n.clientLeft,u.y=h.y+n.clientTop}let p=s&&!d&&!o?xs(s,l):Ne(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+u.x+p.x,y:r.y*c.y-l.scrollTop*c.y+u.y+p.y}}function Jc(t){return Array.from(t.getClientRects())}function Zc(t){let e=Ke(t),r=Tr(t),n=t.ownerDocument.body,i=at(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),o=at(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),s=-r.scrollLeft+nn(t),a=-r.scrollTop;return we(n).direction==="rtl"&&(s+=at(e.clientWidth,n.clientWidth)-i),{width:i,height:o,x:s,y:a}}var hs=25;function Qc(t,e){let r=de(t),n=Ke(t),i=r.visualViewport,o=n.clientWidth,s=n.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;let u=tn();(!u||u&&e==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}let c=nn(n);if(c<=0){let u=n.ownerDocument,d=u.body,p=getComputedStyle(d),h=u.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,m=Math.abs(n.clientWidth-d.clientWidth-h);m<=hs&&(o-=m)}else c<=hs&&(o+=c);return{width:o,height:s,x:a,y:l}}function eu(t,e){let r=_r(t,!0,e==="fixed"),n=r.top+t.clientTop,i=r.left+t.clientLeft,o=Ge(t)?ir(t):Ne(1),s=t.clientWidth*o.x,a=t.clientHeight*o.y,l=i*o.x,c=n*o.y;return{width:s,height:a,x:l,y:c}}function ms(t,e,r){let n;if(e==="viewport")n=Qc(t,r);else if(e==="document")n=Zc(Ke(t));else if(Oe(e))n=eu(e,r);else{let i=bs(t);n={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return Ot(n)}function Ss(t,e){let r=Qe(t);return r===e||!Oe(r)||_t(r)?!1:we(r).position==="fixed"||Ss(r,e)}function tu(t,e){let r=e.get(t);if(r)return r;let n=Qr(t,[],!1).filter(a=>Oe(a)&&Tt(a)!=="body"),i=null,o=we(t).position==="fixed",s=o?Qe(t):t;for(;Oe(s)&&!_t(s);){let a=we(s),l=nr(s);!l&&a.position==="fixed"&&(i=null),(o?!l&&!i:!l&&a.position==="static"&&!!i&&(i.position==="absolute"||i.position==="fixed")||rr(s)&&!l&&Ss(t,s))?n=n.filter(u=>u!==s):i=a,s=Qe(s)}return e.set(t,n),n}function ru(t){let{element:e,boundary:r,rootBoundary:n,strategy:i}=t,s=[...r==="clippingAncestors"?wr(e)?[]:tu(e,this._c):[].concat(r),n],a=ms(e,s[0],i),l=a.top,c=a.right,u=a.bottom,d=a.left;for(let p=1;p<s.length;p++){let h=ms(e,s[p],i);l=at(h.top,l),c=Cr(h.right,c),u=Cr(h.bottom,u),d=at(h.left,d)}return{width:c-d,height:u-l,x:d,y:l}}function nu(t){let{width:e,height:r}=ys(t);return{width:e,height:r}}function iu(t,e,r){let n=Ge(e),i=Ke(e),o=r==="fixed",s=_r(t,!0,o,e),a={scrollLeft:0,scrollTop:0},l=Ne(0);function c(){l.x=nn(i)}if(n||!n&&!o)if((Tt(e)!=="body"||rr(i))&&(a=Tr(e)),n){let h=_r(e,!0,o,e);l.x=h.x+e.clientLeft,l.y=h.y+e.clientTop}else i&&c();o&&!n&&i&&c();let u=i&&!n&&!o?xs(i,a):Ne(0),d=s.left+a.scrollLeft-l.x-u.x,p=s.top+a.scrollTop-l.y-u.y;return{x:d,y:p,width:s.width,height:s.height}}function li(t){return we(t).position==="static"}function vs(t,e){if(!Ge(t)||we(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return Ke(t)===r&&(r=r.ownerDocument.body),r}function As(t,e){let r=de(t);if(wr(t))return r;if(!Ge(t)){let i=Qe(t);for(;i&&!_t(i);){if(Oe(i)&&!li(i))return i;i=Qe(i)}return r}let n=vs(t,e);for(;n&&ds(n)&&li(n);)n=vs(n,e);return n&&_t(n)&&li(n)&&!nr(n)?r:n||ps(t)||r}var ou=async function(t){let e=this.getOffsetParent||As,r=this.getDimensions,n=await r(t.floating);return{reference:iu(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function su(t){return we(t).direction==="rtl"}var on={convertOffsetParentRelativeRectToViewportRelativeRect:Xc,getDocumentElement:Ke,getClippingRect:ru,getOffsetParent:As,getElementRects:ou,getClientRects:Jc,getDimensions:nu,getScale:ir,isElement:Oe,isRTL:su};var Es=as,Cs=ls;var Os=(t,e,r)=>{let n=new Map,i={platform:on,...r},o={...i.platform,_c:n};return ss(t,e,{...i,platform:o})};function ws(t){return au(t)}function ci(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function au(t){for(let e=t;e;e=ci(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=ci(t);e;e=ci(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||nr(r)||e.tagName==="BODY"))return e}return null}async function Ts(t,e,r){let n;return typeof r=="object"?n=r:n={placement:r},Os(t,e,{strategy:n.strategy,platform:{...on,getOffsetParent:i=>on.getOffsetParent(i,ws)},middleware:[Cs({crossAxis:!0}),Es({allowedPlacements:[n.placement]})]})}var vr=f(E());var Ii=f(z());var _s=f(z(),1);var ui=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function Rs(t,e){return(0,_s.property)({type:Object,converter:{fromAttribute:r=>{if(r==null)return Rr(t);try{return JSON.parse(r)}catch{return Rr(t)}},toAttribute:r=>JSON.stringify(r)},hasChanged:Lr,...e??{}})}function lu(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;let r,n;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(n=r;n--!==0;)if(!sn(t[n],e[n]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;for(n of t.entries())if(!sn(n[1],e.get(n[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[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 i=s=>Object.keys(s).filter(a=>s[a]!=null),o=i(t);if(r=o.length,r!==i(e).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(e,o[n]))return!1;for(n=r;n--!==0;){let s=o[n];if(!sn(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function sn(t,e){try{return lu(t,e)}catch{return!1}}function Lr(t,e){return!sn(t,e)}function Rr(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function an(t,e){let r=n=>n[t]===!0;return n=>{if(r(n))return n;let i=e(n);return i[t]=!0,i}}var Ls=f(z(),1);var di=t=>{let e=t??{};return(r,n)=>{var i;let o={hasChanged:Lr,attribute:!1,...e};(0,Ls.property)(o)(r,n);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(n,{selector:(i=e.selector)!==null&&i!==void 0?i:(a=>a[n]),store:e.store})}};var ln=class{constructor(){this.queue=[]}add(e,r=!1){r&&this.clear(e.type),this.queue.push(e)}consume(e){let r=this.queue.find(n=>n.type===e);return r&&(this.queue=this.queue.filter(n=>n!==r)),r}clear(e){typeof e=="string"?this.queue=this.queue.filter(r=>r.type!==e):this.queue=this.queue.filter(r=>!e.test(r.type))}};var Rt=f(z(),1);var cn=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,n)=>{this.resolvePromise=r,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let n=[...this.callbacks];this.callbacks=[];let i=(e=this.rejectPromise)!==null&&e!==void 0?e:(()=>null),o=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let s of n)try{await s()}catch(a){i(a);return}o(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var ks=f(L(),1);var un=globalThis,cu=un.ShadowRoot&&(un.ShadyCSS===void 0||un.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;var Ps=(t,e)=>{if(cu)t.adoptedStyleSheets=e.map((r=>r instanceof CSSStyleSheet?r:r.styleSheet));else for(let r of e){let n=document.createElement("style"),i=un.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=r.cssText,t.appendChild(n)}};var dn=class extends ks.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},n=this.renderOptions.creationScope=this.attachShadow(r);return Ps(n,e.elementStyles),n}static canDefineScopedElement(e){return!!this.registry&&!this.registry.get(e)}static defineScopedElements(e){Object.entries(e).forEach(([r,n])=>this.defineScopedElement(r,n))}static defineScopedElement(e,r){ui(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 Ds(t,e,...r){var n;let i=t.querySelector(e);for(let o of r)i=(n=i?.shadowRoot)===null||n===void 0?void 0:n.querySelector(o);return i}var sr=function(t,e,r,n){var i=arguments.length,o=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(i<3?s(o):i>3?s(e,r,o):s(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o},$s,Ns=Symbol("constructorPrototype"),Is=Symbol("constructorName"),Us=Symbol("exportpartsDebouncer"),Ms=Symbol("dynamicDependenciesLoaded"),or=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};or.eventName="exportparts-updated";var qe=class extends dn{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[$s]=new cn(5),this.scheduleExportpartsUpdate=()=>{var e,r,n;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(n=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&n!==void 0&&n)&&this[Us].run(()=>{var i,o;!((i=this.exportpartsPrefix)===null||i===void 0)&&i.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[Is]=this.constructor.name,this[Ns]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Is]&&Object.setPrototypeOf(this,this[Ns])}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(n){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",n)}let r=this.constructor;r[Ms]||(r[Ms]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(or.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(or.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 or)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:n,shadowPath:i}=this.elementToFocus;if(n!=null){let o=[...i??[],n];r=Ds(this.shadowRoot,...o)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var r,n,i;if(((n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(o=>o.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((i=this.customStylesheet)!==null&&i!==void 0?i:"")}catch(o){console.error(o,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let o=document.createElement("style");o.classList.add("ft-lit-element--custom-stylesheet"),o.innerHTML=this.customStylesheet,this.shadowRoot.append(o)}}setExportpartsAttribute(e){var r,n,i,o,s,a;let l=p=>p!=null&&p.trim().length>0,c=e.filter(l).map(p=>p.trim());if(c.length===0){this.exportparts=void 0;return}let u=new Set;for(let p of(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let h=(o=(i=p.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&o!==void 0?o:[],m=(a=(s=p.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(x=>x.split(":")[1]))!==null&&a!==void 0?a:[],v=[...h,...m].filter(l).map(x=>x.trim());for(let x of v)u.add(x)}if(u.size===0){this.exportparts=void 0;return}let d=[...u.values()].flatMap(p=>c.map(h=>`${p}:${h}--${p}`));this.exportparts=[...this.part,...d].join(", ")}};$s=Us;sr([(0,Rt.property)()],qe.prototype,"exportpartsPrefix",void 0);sr([Rs([])],qe.prototype,"exportpartsPrefixes",void 0);sr([(0,Rt.property)({reflect:!0})],qe.prototype,"exportparts",void 0);sr([(0,Rt.property)()],qe.prototype,"customStylesheet",void 0);sr([(0,Rt.property)()],qe.prototype,"elementToFocus",void 0);sr([(0,Rt.state)()],qe.prototype,"useAdoptedStyleSheets",void 0);function pn(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Pr=Symbol("internalReduxEventsUnsubscribers"),ct=Symbol("internalStoresUnsubscribers"),Lt=Symbol("internalStores"),uu=an(Symbol("withRedux"),function(t){var e,r,n;class i extends t{constructor(){super(...arguments),this[e]=new Map,this[r]=new Map,this[n]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(a=>s.has(a))&&this.updateFromStores()}getUnnamedStore(){if(this[Lt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Lt].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[Lt].get(s)}addStore(s,a){var l;a=(l=a??s.name)!==null&&l!==void 0?l:"default-store",this.unsubscribeFromStore(a),this[Lt].set(a,s),this.subscribeToStore(a,s),this.updateFromStores()}removeStore(s){let a=typeof s=="string"?s:s.name;this.unsubscribeFromStore(a),this[Lt].delete(a)}setupStores(){this.unsubscribeFromStores(),this[Lt].forEach((s,a)=>this.subscribeToStore(a,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,a)=>{let l=this.constructor.getPropertyOptions(a);if(!l?.attribute||!this.hasAttribute(typeof l?.attribute=="string"?l.attribute:a)){let c=this.getStore(s.store);c&&(s.store?this[ct].has(s.store):this[ct].size>0)&&(this[a]=s.selector(c.getState(),this))}})}subscribeToStore(s,a){var l;this[ct].set(s,a.subscribe(()=>this.updateFromStores())),this[Pr].set(s,[]),pn(a)&&a.eventBus&&((l=this.reduxConstructor.reduxEventListeners)===null||l===void 0||l.forEach((c,u)=>{if(typeof this[u]=="function"&&(!c.store||a.name===c.store)){let d=p=>this[u](p);a.addEventListener(c.eventName,d),this[Pr].get(s).push(()=>a.removeEventListener(c.eventName,d))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[ct].forEach((s,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(s){var a;this[ct].has(s)&&this[ct].get(s)(),this[ct].delete(s),(a=this[Pr].get(s))===null||a===void 0||a.forEach(l=>l()),this[Pr].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=ct,r=Lt,n=Pr,i.reduxProperties=new Map,i.reduxReactiveProperties=new Set,i.reduxEventListeners=new Map,i}),Bs=class extends uu(qe){};function Te(t){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];if(0)var i,o;throw Error("[Immer] minified error nr: "+t+(r.length?" "+r.map((function(s){return"'"+s+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function et(t){return!!t&&!!t[U]}function Ie(t){var e;return!!t&&((function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===gu})(t)||Array.isArray(t)||!!t[Ks]||!!(!((e=t.constructor)===null||e===void 0)&&e[Ks])||xi(t)||Si(t))}function Pt(t,e,r){r===void 0&&(r=!1),cr(t)===0?(r?Object.keys:lr)(t).forEach((function(n){r&&typeof n=="symbol"||e(n,t[n],t)})):t.forEach((function(n,i){return e(i,n,t)}))}function cr(t){var e=t[U];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:xi(t)?2:Si(t)?3:0}function ar(t,e){return cr(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function du(t,e){return cr(t)===2?t.get(e):t[e]}function Gs(t,e,r){var n=cr(t);n===2?t.set(e,r):n===3?t.add(r):t[e]=r}function qs(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function xi(t){return vu&&t instanceof Map}function Si(t){return yu&&t instanceof Set}function ut(t){return t.o||t.t}function Ai(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Js(t);delete e[U];for(var r=lr(e),n=0;n<r.length;n++){var i=r[n],o=e[i];o.writable===!1&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(e[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:t[i]})}return Object.create(Object.getPrototypeOf(t),e)}function Ei(t,e){return e===void 0&&(e=!1),Ci(t)||et(t)||!Ie(t)||(cr(t)>1&&(t.set=t.add=t.clear=t.delete=pu),Object.freeze(t),e&&Pt(t,(function(r,n){return Ei(n,!0)}),!0)),t}function pu(){Te(2)}function Ci(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function Ye(t){var e=bi[t];return e||Te(18,t),e}function fu(t,e){bi[t]||(bi[t]=e)}function vi(){return Dr}function pi(t,e){e&&(Ye("Patches"),t.u=[],t.s=[],t.v=e)}function fn(t){yi(t),t.p.forEach(hu),t.p=null}function yi(t){t===Dr&&(Dr=t.l)}function Hs(t){return Dr={p:[],l:Dr,h:t,m:!0,_:0}}function hu(t){var e=t[U];e.i===0||e.i===1?e.j():e.g=!0}function fi(t,e){e._=e.p.length;var r=e.p[0],n=t!==void 0&&t!==r;return e.h.O||Ye("ES5").S(e,t,n),n?(r[U].P&&(fn(e),Te(4)),Ie(t)&&(t=hn(e,t),e.l||mn(e,t)),e.u&&Ye("Patches").M(r[U].t,t,e.u,e.s)):t=hn(e,r,[]),fn(e),e.u&&e.v(e.u,e.s),t!==Xs?t:void 0}function hn(t,e,r){if(Ci(e))return e;var n=e[U];if(!n)return Pt(e,(function(a,l){return js(t,n,e,a,l,r)}),!0),e;if(n.A!==t)return e;if(!n.P)return mn(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=Ai(n.k):n.o,o=i,s=!1;n.i===3&&(o=new Set(i),i.clear(),s=!0),Pt(o,(function(a,l){return js(t,n,i,a,l,r,s)})),mn(t,i,!1),r&&t.u&&Ye("Patches").N(n,r,t.u,t.s)}return n.o}function js(t,e,r,n,i,o,s){if(et(i)){var a=hn(t,i,o&&e&&e.i!==3&&!ar(e.R,n)?o.concat(n):void 0);if(Gs(r,n,a),!et(a))return;t.m=!1}else s&&r.add(i);if(Ie(i)&&!Ci(i)){if(!t.h.D&&t._<1)return;hn(t,i),e&&e.A.l||mn(t,i)}}function mn(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&Ei(e,r)}function hi(t,e){var r=t[U];return(r?ut(r):t)[e]}function Fs(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var n=Object.getOwnPropertyDescriptor(r,e);if(n)return n;r=Object.getPrototypeOf(r)}}function dt(t){t.P||(t.P=!0,t.l&&dt(t.l))}function mi(t){t.o||(t.o=Ai(t.t))}function gi(t,e,r){var n=xi(e)?Ye("MapSet").F(e,r):Si(e)?Ye("MapSet").T(e,r):t.O?(function(i,o){var s=Array.isArray(i),a={i:s?1:0,A:o?o.A:vi(),P:!1,I:!1,R:{},l:o,t:i,k:null,o:null,j:null,C:!1},l=a,c=Nr;s&&(l=[a],c=kr);var u=Proxy.revocable(l,c),d=u.revoke,p=u.proxy;return a.k=p,a.j=d,p})(e,r):Ye("ES5").J(e,r);return(r?r.A:vi()).p.push(n),n}function mu(t){return et(t)||Te(22,t),(function e(r){if(!Ie(r))return r;var n,i=r[U],o=cr(r);if(i){if(!i.P&&(i.i<4||!Ye("ES5").K(i)))return i.t;i.I=!0,n=Vs(r,o),i.I=!1}else n=Vs(r,o);return Pt(n,(function(s,a){i&&du(i.t,s)===a||Gs(n,s,e(a))})),o===3?new Set(n):n})(t)}function Vs(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Ai(t)}function Ys(){function t(s,a){var l=o[s];return l?l.enumerable=a:o[s]=l={configurable:!0,enumerable:a,get:function(){var c=this[U];return Nr.get(c,s)},set:function(c){var u=this[U];Nr.set(u,s,c)}},l}function e(s){for(var a=s.length-1;a>=0;a--){var l=s[a][U];if(!l.P)switch(l.i){case 5:n(l)&&dt(l);break;case 4:r(l)&&dt(l)}}}function r(s){for(var a=s.t,l=s.k,c=lr(l),u=c.length-1;u>=0;u--){var d=c[u];if(d!==U){var p=a[d];if(p===void 0&&!ar(a,d))return!0;var h=l[d],m=h&&h[U];if(m?m.t!==p:!qs(h,p))return!0}}var v=!!a[U];return c.length!==lr(a).length+(v?0:1)}function n(s){var a=s.k;if(a.length!==s.t.length)return!0;var l=Object.getOwnPropertyDescriptor(a,a.length-1);if(l&&!l.get)return!0;for(var c=0;c<a.length;c++)if(!a.hasOwnProperty(c))return!0;return!1}function i(s){s.g&&Te(3,JSON.stringify(ut(s)))}var o={};fu("ES5",{J:function(s,a){var l=Array.isArray(s),c=(function(d,p){if(d){for(var h=Array(p.length),m=0;m<p.length;m++)Object.defineProperty(h,""+m,t(m,!0));return h}var v=Js(p);delete v[U];for(var x=lr(v),S=0;S<x.length;S++){var A=x[S];v[A]=t(A,d||!!v[A].enumerable)}return Object.create(Object.getPrototypeOf(p),v)})(l,s),u={i:l?5:4,A:a?a.A:vi(),P:!1,I:!1,R:{},l:a,t:s,k:c,o:null,g:!1,C:!1};return Object.defineProperty(c,U,{value:u,writable:!0}),c},S:function(s,a,l){l?et(a)&&a[U].A===s&&e(s.p):(s.u&&(function c(u){if(u&&typeof u=="object"){var d=u[U];if(d){var p=d.t,h=d.k,m=d.R,v=d.i;if(v===4)Pt(h,(function(O){O!==U&&(p[O]!==void 0||ar(p,O)?m[O]||c(h[O]):(m[O]=!0,dt(d)))})),Pt(p,(function(O){h[O]!==void 0||ar(h,O)||(m[O]=!1,dt(d))}));else if(v===5){if(n(d)&&(dt(d),m.length=!0),h.length<p.length)for(var x=h.length;x<p.length;x++)m[x]=!1;else for(var S=p.length;S<h.length;S++)m[S]=!0;for(var A=Math.min(h.length,p.length),C=0;C<A;C++)h.hasOwnProperty(C)||(m[C]=!0),m[C]===void 0&&c(h[C])}}}})(s.p[0]),e(s.p))},K:function(s){return s.i===4?r(s):n(s)}})}var zs,Dr,Oi=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",vu=typeof Map<"u",yu=typeof Set<"u",Ws=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Xs=Oi?Symbol.for("immer-nothing"):((zs={})["immer-nothing"]=!0,zs),Ks=Oi?Symbol.for("immer-draftable"):"__$immer_draftable",U=Oi?Symbol.for("immer-state"):"__$immer_state";var gu=""+Object.prototype.constructor,lr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Js=Object.getOwnPropertyDescriptors||function(t){var e={};return lr(t).forEach((function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)})),e},bi={},Nr={get:function(t,e){if(e===U)return t;var r=ut(t);if(!ar(r,e))return(function(i,o,s){var a,l=Fs(o,s);return l?"value"in l?l.value:(a=l.get)===null||a===void 0?void 0:a.call(i.k):void 0})(t,r,e);var n=r[e];return t.I||!Ie(n)?n:n===hi(t.t,e)?(mi(t),t.o[e]=gi(t.A.h,n,t)):n},has:function(t,e){return e in ut(t)},ownKeys:function(t){return Reflect.ownKeys(ut(t))},set:function(t,e,r){var n=Fs(ut(t),e);if(n?.set)return n.set.call(t.k,r),!0;if(!t.P){var i=hi(ut(t),e),o=i?.[U];if(o&&o.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(qs(r,i)&&(r!==void 0||ar(t.t,e)))return!0;mi(t),dt(t)}return t.o[e]===r&&(r!==void 0||e in t.o)||Number.isNaN(r)&&Number.isNaN(t.o[e])||(t.o[e]=r,t.R[e]=!0),!0},deleteProperty:function(t,e){return hi(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,mi(t),dt(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=ut(t),n=Reflect.getOwnPropertyDescriptor(r,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:r[e]}},defineProperty:function(){Te(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Te(12)}},kr={};Pt(Nr,(function(t,e){kr[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),kr.deleteProperty=function(t,e){return kr.set.call(this,t,e,void 0)},kr.set=function(t,e,r){return Nr.set.call(this,t[0],e,r,t[0])};var bu=(function(){function t(r){var n=this;this.O=Ws,this.D=!0,this.produce=function(i,o,s){if(typeof i=="function"&&typeof o!="function"){var a=o;o=i;var l=n;return function(v){var x=this;v===void 0&&(v=a);for(var S=arguments.length,A=Array(S>1?S-1:0),C=1;C<S;C++)A[C-1]=arguments[C];return l.produce(v,(function(O){var q;return(q=o).call.apply(q,[x,O].concat(A))}))}}var c;if(typeof o!="function"&&Te(6),s!==void 0&&typeof s!="function"&&Te(7),Ie(i)){var u=Hs(n),d=gi(n,i,void 0),p=!0;try{c=o(d),p=!1}finally{p?fn(u):yi(u)}return typeof Promise<"u"&&c instanceof Promise?c.then((function(v){return pi(u,s),fi(v,u)}),(function(v){throw fn(u),v})):(pi(u,s),fi(c,u))}if(!i||typeof i!="object"){if((c=o(i))===void 0&&(c=i),c===Xs&&(c=void 0),n.D&&Ei(c,!0),s){var h=[],m=[];Ye("Patches").M(i,c,h,m),s(h,m)}return c}Te(21,i)},this.produceWithPatches=function(i,o){if(typeof i=="function")return function(c){for(var u=arguments.length,d=Array(u>1?u-1:0),p=1;p<u;p++)d[p-1]=arguments[p];return n.produceWithPatches(c,(function(h){return i.apply(void 0,[h].concat(d))}))};var s,a,l=n.produce(i,o,(function(c,u){s=c,a=u}));return typeof Promise<"u"&&l instanceof Promise?l.then((function(c){return[c,s,a]})):[l,s,a]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var e=t.prototype;return e.createDraft=function(r){Ie(r)||Te(8),et(r)&&(r=mu(r));var n=Hs(this),i=gi(this,r,void 0);return i[U].C=!0,yi(n),i},e.finishDraft=function(r,n){var i=r&&r[U],o=i.A;return pi(o,n),fi(void 0,o)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!Ws&&Te(20),this.O=r},e.applyPatches=function(r,n){var i;for(i=n.length-1;i>=0;i--){var o=n[i];if(o.path.length===0&&o.op==="replace"){r=o.value;break}}i>-1&&(n=n.slice(i+1));var s=Ye("Patches").$;return et(r)?s(r,n):this.produce(r,(function(a){return s(a,n)}))},t})(),ye=new bu,xu=ye.produce,Hp=ye.produceWithPatches.bind(ye),jp=ye.setAutoFreeze.bind(ye),Fp=ye.setUseProxies.bind(ye),Vp=ye.applyPatches.bind(ye),zp=ye.createDraft.bind(ye),Wp=ye.finishDraft.bind(ye),vn=xu;function kt(t){"@babel/helpers - typeof";return kt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},kt(t)}function Zs(t,e){if(kt(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(kt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Qs(t){var e=Zs(t,"string");return kt(e)=="symbol"?e:e+""}function ea(t,e,r){return(e=Qs(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ta(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function wi(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?ta(Object(r),!0).forEach(function(n){ea(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ta(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function ie(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 ra=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),Ti=function(){return Math.random().toString(36).substring(7).split("").join(".")},yn={INIT:"@@redux/INIT"+Ti(),REPLACE:"@@redux/REPLACE"+Ti(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Ti()}};function Su(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function _i(t,e,r){var n;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(ie(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(ie(1));return r(_i)(t,e)}if(typeof t!="function")throw new Error(ie(2));var i=t,o=e,s=[],a=s,l=!1;function c(){a===s&&(a=s.slice())}function u(){if(l)throw new Error(ie(3));return o}function d(v){if(typeof v!="function")throw new Error(ie(4));if(l)throw new Error(ie(5));var x=!0;return c(),a.push(v),function(){if(x){if(l)throw new Error(ie(6));x=!1,c();var A=a.indexOf(v);a.splice(A,1),s=null}}}function p(v){if(!Su(v))throw new Error(ie(7));if(typeof v.type>"u")throw new Error(ie(8));if(l)throw new Error(ie(9));try{l=!0,o=i(o,v)}finally{l=!1}for(var x=s=a,S=0;S<x.length;S++){var A=x[S];A()}return v}function h(v){if(typeof v!="function")throw new Error(ie(10));i=v,p({type:yn.REPLACE})}function m(){var v,x=d;return v={subscribe:function(A){if(typeof A!="object"||A===null)throw new Error(ie(11));function C(){A.next&&A.next(u())}C();var O=x(C);return{unsubscribe:O}}},v[ra]=function(){return this},v}return p({type:yn.INIT}),n={dispatch:p,subscribe:d,getState:u,replaceReducer:h},n[ra]=m,n}function Au(t){Object.keys(t).forEach(function(e){var r=t[e],n=r(void 0,{type:yn.INIT});if(typeof n>"u")throw new Error(ie(12));if(typeof r(void 0,{type:yn.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ie(13))})}function na(t){for(var e=Object.keys(t),r={},n=0;n<e.length;n++){var i=e[n];typeof t[i]=="function"&&(r[i]=t[i])}var o=Object.keys(r),s,a;try{Au(r)}catch(l){a=l}return function(c,u){if(c===void 0&&(c={}),a)throw a;if(0)var d;for(var p=!1,h={},m=0;m<o.length;m++){var v=o[m],x=r[v],S=c[v],A=x(S,u);if(typeof A>"u"){var C=u&&u.type;throw new Error(ie(14))}h[v]=A,p=p||A!==S}return p=p||o.length!==Object.keys(c).length,p?h:c}}function ur(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function ia(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(n){return function(){var i=n.apply(void 0,arguments),o=function(){throw new Error(ie(15))},s={getState:i.getState,dispatch:function(){return o.apply(void 0,arguments)}},a=e.map(function(l){return l(s)});return o=ur.apply(void 0,a)(i.dispatch),wi(wi({},i),{},{dispatch:o})}}}function oa(t){var e=function(n){var i=n.dispatch,o=n.getState;return function(s){return function(a){return typeof a=="function"?a(i,o,t):s(a)}}};return e}var sa=oa();sa.withExtraArgument=oa;var Ri=sa;var da=(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),Eu=function(t,e){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(c){return function(u){return l([c,u])}}function l(c){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(o=c[0]&2?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,i=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){r.label=c[1];break}if(c[0]===6&&r.label<o[1]){r.label=o[1],o=c;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(c);break}o[2]&&r.ops.pop(),r.trys.pop();continue}c=e.call(t,r)}catch(u){c=[6,u],i=0}finally{n=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},dr=function(t,e){for(var r=0,n=e.length,i=t.length;r<n;r++,i++)t[i]=e[r];return t},Cu=Object.defineProperty,Ou=Object.defineProperties,wu=Object.getOwnPropertyDescriptors,aa=Object.getOwnPropertySymbols,Tu=Object.prototype.hasOwnProperty,_u=Object.prototype.propertyIsEnumerable,la=function(t,e,r){return e in t?Cu(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},pt=function(t,e){for(var r in e||(e={}))Tu.call(e,r)&&la(t,r,e[r]);if(aa)for(var n=0,i=aa(e);n<i.length;n++){var r=i[n];_u.call(e,r)&&la(t,r,e[r])}return t},Li=function(t,e){return Ou(t,wu(e))},Ru=function(t,e,r){return new Promise(function(n,i){var o=function(l){try{a(r.next(l))}catch(c){i(c)}},s=function(l){try{a(r.throw(l))}catch(c){i(c)}},a=function(l){return l.done?n(l.value):Promise.resolve(l.value).then(o,s)};a((r=r.apply(t,e)).next())})};var Lu=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?ur:ur.apply(null,arguments)},uf=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function Pu(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return e===r}function ft(t,e){function r(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(e){var o=e.apply(void 0,n);if(!o)throw new Error("prepareAction did not return an object");return pt(pt({type:t,payload:o.payload},"meta"in o&&{meta:o.meta}),"error"in o&&{error:o.error})}return{type:t,payload:n[0]}}return r.toString=function(){return""+t},r.type=t,r.match=function(n){return n.type===t},r}var ku=(function(t){da(e,t);function e(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=t.apply(this,r)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,dr([void 0],r[0].concat(this)))):new(e.bind.apply(e,dr([void 0],r.concat(this))))},e})(Array),Du=(function(t){da(e,t);function e(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=t.apply(this,r)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,dr([void 0],r[0].concat(this)))):new(e.bind.apply(e,dr([void 0],r.concat(this))))},e})(Array);function Di(t){return Ie(t)?vn(t,function(){}):t}function Nu(t){return typeof t=="boolean"}function Iu(){return function(e){return Mu(e)}}function Mu(t){t===void 0&&(t={});var e=t.thunk,r=e===void 0?!0:e,n=t.immutableCheck,i=n===void 0?!0:n,o=t.serializableCheck,s=o===void 0?!0:o,a=t.actionCreatorCheck,l=a===void 0?!0:a,c=new ku;if(r&&(Nu(r)?c.push(Ri):c.push(Ri.withExtraArgument(r.extraArgument))),0){if(i)var u;if(s)var d;if(l)var p}return c}var Pi=!0;function pa(t){var e=Iu(),r=t||{},n=r.reducer,i=n===void 0?void 0:n,o=r.middleware,s=o===void 0?e():o,a=r.devTools,l=a===void 0?!0:a,c=r.preloadedState,u=c===void 0?void 0:c,d=r.enhancers,p=d===void 0?void 0:d,h;if(typeof i=="function")h=i;else if(Pu(i))h=na(i);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var m=s;if(typeof m=="function"&&(m=m(e),!Pi&&!Array.isArray(m)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Pi&&m.some(function(O){return typeof O!="function"}))throw new Error("each middleware provided to configureStore must be a function");var v=ia.apply(void 0,m),x=ur;l&&(x=Lu(pt({trace:!Pi},typeof l=="object"&&l)));var S=new Du(v),A=S;Array.isArray(p)?A=dr([v],p):typeof p=="function"&&(A=p(S));var C=x.apply(void 0,A);return _i(h,u,C)}function fa(t){var e={},r=[],n,i={addCase:function(o,s){var a=typeof o=="string"?o:o.type;if(!a)throw new Error("`builder.addCase` cannot be called with an empty action type");if(a in e)throw new Error("`builder.addCase` cannot be called with two reducers for the same action type");return e[a]=s,i},addMatcher:function(o,s){return r.push({matcher:o,reducer:s}),i},addDefaultCase:function(o){return n=o,i}};return t(i),[e,r,n]}function $u(t){return typeof t=="function"}function Uu(t,e,r,n){r===void 0&&(r=[]);var i=typeof e=="function"?fa(e):[e,r,n],o=i[0],s=i[1],a=i[2],l;if($u(t))l=function(){return Di(t())};else{var c=Di(t);l=function(){return c}}function u(d,p){d===void 0&&(d=l());var h=dr([o[p.type]],s.filter(function(m){var v=m.matcher;return v(p)}).map(function(m){var v=m.reducer;return v}));return h.filter(function(m){return!!m}).length===0&&(h=[a]),h.reduce(function(m,v){if(v)if(et(m)){var x=m,S=v(x,p);return S===void 0?m:S}else{if(Ie(m))return vn(m,function(A){return v(A,p)});var S=v(m,p);if(S===void 0){if(m===null)return m;throw Error("A case reducer on a non-draftable value must not return undefined")}return S}return m},d)}return u.getInitialState=l,u}function Bu(t,e){return t+"/"+e}function ha(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof t.initialState=="function"?t.initialState:Di(t.initialState),n=t.reducers||{},i=Object.keys(n),o={},s={},a={};i.forEach(function(u){var d=n[u],p=Bu(e,u),h,m;"reducer"in d?(h=d.reducer,m=d.prepare):h=d,o[u]=h,s[p]=h,a[u]=m?ft(p,m):ft(p)});function l(){var u=typeof t.extraReducers=="function"?fa(t.extraReducers):[t.extraReducers],d=u[0],p=d===void 0?{}:d,h=u[1],m=h===void 0?[]:h,v=u[2],x=v===void 0?void 0:v,S=pt(pt({},p),s);return Uu(r,function(A){for(var C in S)A.addCase(C,S[C]);for(var O=0,q=m;O<q.length;O++){var V=q[O];A.addMatcher(V.matcher,V.reducer)}x&&A.addDefaultCase(x)})}var c;return{name:e,reducer:function(u,d){return c||(c=l()),c(u,d)},actions:a,caseReducers:o,getInitialState:function(){return c||(c=l()),c.getInitialState()}}}var Hu="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",ju=function(t){t===void 0&&(t=21);for(var e="",r=t;r--;)e+=Hu[Math.random()*64|0];return e},Fu=["name","message","stack","code"],ki=(function(){function t(e,r){this.payload=e,this.meta=r}return t})(),ca=(function(){function t(e,r){this.payload=e,this.meta=r}return t})(),Vu=function(t){if(typeof t=="object"&&t!==null){for(var e={},r=0,n=Fu;r<n.length;r++){var i=n[r];typeof t[i]=="string"&&(e[i]=t[i])}return e}return{message:String(t)}},hf=(function(){function t(e,r,n){var i=ft(e+"/fulfilled",function(u,d,p,h){return{payload:u,meta:Li(pt({},h||{}),{arg:p,requestId:d,requestStatus:"fulfilled"})}}),o=ft(e+"/pending",function(u,d,p){return{payload:void 0,meta:Li(pt({},p||{}),{arg:d,requestId:u,requestStatus:"pending"})}}),s=ft(e+"/rejected",function(u,d,p,h,m){return{payload:h,error:(n&&n.serializeError||Vu)(u||"Rejected"),meta:Li(pt({},m||{}),{arg:p,requestId:d,rejectedWithValue:!!h,requestStatus:"rejected",aborted:u?.name==="AbortError",condition:u?.name==="ConditionError"})}}),a=!1,l=typeof AbortController<"u"?AbortController:(function(){function u(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return u.prototype.abort=function(){},u})();function c(u){return function(d,p,h){var m=n?.idGenerator?n.idGenerator(u):ju(),v=new l,x,S=!1;function A(O){x=O,v.abort()}var C=(function(){return Ru(this,null,function(){var O,q,V,nt,jn,it,he;return Eu(this,function(Ee){switch(Ee.label){case 0:return Ee.trys.push([0,4,,5]),nt=(O=n?.condition)==null?void 0:O.call(n,u,{getState:p,extra:h}),Wu(nt)?[4,nt]:[3,2];case 1:nt=Ee.sent(),Ee.label=2;case 2:if(nt===!1||v.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return S=!0,jn=new Promise(function(me,St){return v.signal.addEventListener("abort",function(){return St({name:"AbortError",message:x||"Aborted"})})}),d(o(m,u,(q=n?.getPendingMeta)==null?void 0:q.call(n,{requestId:m,arg:u},{getState:p,extra:h}))),[4,Promise.race([jn,Promise.resolve(r(u,{dispatch:d,getState:p,extra:h,requestId:m,signal:v.signal,abort:A,rejectWithValue:function(me,St){return new ki(me,St)},fulfillWithValue:function(me,St){return new ca(me,St)}})).then(function(me){if(me instanceof ki)throw me;return me instanceof ca?i(me.payload,m,u,me.meta):i(me,m,u)})])];case 3:return V=Ee.sent(),[3,5];case 4:return it=Ee.sent(),V=it instanceof ki?s(null,m,u,it.payload,it.meta):s(it,m,u),[3,5];case 5:return he=n&&!n.dispatchConditionRejection&&s.match(V)&&V.meta.condition,he||d(V),[2,V]}})})})();return Object.assign(C,{abort:A,requestId:m,arg:u,unwrap:function(){return C.then(zu)}})}}return Object.assign(c,{pending:o,rejected:s,fulfilled:i,typePrefix:e})}return t.withTypes=function(){return t},t})();function zu(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Wu(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var ma="listener",va="completed",ya="cancelled",mf="task-"+ya,vf="task-"+va,yf=ma+"-"+ya,gf=ma+"-"+va;var Ni="listenerMiddleware";var bf=ft(Ni+"/add"),xf=ft(Ni+"/removeAll"),Sf=ft(Ni+"/remove");var ua,Af=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(ua||(ua=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},Ku=function(t){return function(e){setTimeout(e,t)}},Ef=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Ku(10);Ys();var Gu=an(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(r,n,i){this.eventBus.addEventListener(r,n,i)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,n,i){this.eventBus.removeEventListener(r,n,i)}}}),gn=class extends Gu(Object){};window.ftReduxStores||(window.ftReduxStores={});var ga=class t extends gn{static get(e){var r;let n=typeof e=="string"?e:e.name,i=typeof e=="string"?void 0:e,o=window.ftReduxStores[n];if(pn(o))return o;if(i==null)return;let s=ha({...i,reducers:(r=i.reducers)!==null&&r!==void 0?r:{}}),a=pa({reducer:(l,c)=>{if(c.type==="CLEAR_FT_REDUX_STORE"){let u=Rr(s.getInitialState());for(let d of c.keeping)u[d]=(l??u)[d];return u}else if(typeof c.type=="string"&&c.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...l,...c.overwrites};return s.reducer(l,c)}});return window.ftReduxStores[i.name]=new t(s,a,i.eventBus)}constructor(e,r,n){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new ln;let i=o=>o!=null?JSON.parse(JSON.stringify(o)):o;this.actions=new Proxy(this.reduxSlice.actions,{get:(o,s,a)=>{let l=s,c=o[l];return c?(...u)=>{let d=c(...u.map(i));return this.reduxStore.dispatch(d),d}:u=>{this.setState({[l]:i(u)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...e){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:e})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var bn=class{static format(e,r,n,i,o){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(n,i,!!o)):this.getIntlDateTime(e,r,n,i,!!o)}static getMomentDateFormat(e,r,n){return n?"LT":e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,n,i,o){let s=typeof e=="string"?new Date(e):e,a=new Intl.DateTimeFormat(r,{dateStyle:n?"medium":"short"}).format(s),l=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(s);return o?l:i?`${a} ${l}`:a}static getTimezoneAsString(){let e=n=>String(Math.floor(n)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${e(Math.abs(r)/60)}:${e(Math.abs(r)%60)}`}};var xn=f(E()),qu="ft-app-info",pr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};pr.eventName="authentication-change";var Ir=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Ir.eventName="ui-locale-changed";var Yu={session:(t,e)=>{(0,xn.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>T.dispatchEvent(new pr(e.payload)),0))}},T=xn.FtReduxStore.get({name:qu,reducers:Yu,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],availableContentLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,searchLanguageSetsUiLanguage:!1,uiLanguageSetsSearchLanguage:!1,uiLanguageSetsReaderLanguage:!1,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}});var ba=f(E()),Sn=function(t,e,r,n){var i=arguments.length,o=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(i<3?s(o):i>3?s(e,r,o):s(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o},Jf=(0,ba.applyMixinOnce)(Symbol("withDateFormat"),function(t){class e extends t{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(T)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var i,o;return((o=(i=this.metadataDescriptors.find(a=>a.key===n))===null||i===void 0?void 0:i.date)!==null&&o!==void 0?o:!1)?a=>bn.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Sn([(0,Ii.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),Sn([(0,Ii.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),Sn([di({store:T.name,selector:r=>{var n,i;return(i=(n=r.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&i!==void 0?i:[]}})],e.prototype,"metadataDescriptors",void 0),Sn([di({store:T.name})],e.prototype,"uiLocale",void 0),e});var xa;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(xa||(xa={}));var Sa;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Sa||(Sa={}));var Aa;(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"})(Aa||(Aa={}));var Ea;(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"})(Ea||(Ea={}));var Ca;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Ca||(Ca={}));var Oa;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(Oa||(Oa={}));var wa;(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(wa||(wa={}));var Ta;(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"})(Ta||(Ta={}));var _a;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(_a||(_a={}));var Ra;(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"})(Ra||(Ra={}));var La;(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"})(La||(La={}));var Pa;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Pa||(Pa={}));var ka;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(ka||(ka={}));var Da;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Da||(Da={}));var Na;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Na||(Na={}));var Ia;(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"})(Ia||(Ia={}));var Ma;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(Ma||(Ma={}));var $a;(function(t){t.ASC="ASC",t.DESC="DESC"})($a||($a={}));var Ua;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Ua||(Ua={}));var Ba;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(Ba||(Ba={}));var Ha;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Ha||(Ha={}));var ja;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(ja||(ja={}));var Fa;(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"})(Fa||(Fa={}));var Va;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Va||(Va={}));var za;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(za||(za={}));var Wa;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Wa||(Wa={}));var Ka;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Ka||(Ka={}));var G;(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"})(G||(G={}));var _e;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(_e||(_e={}));var Ga;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(Ga||(Ga={}));var qa;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(qa||(qa={}));var Ya;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Ya||(Ya={}));var Xa;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SUMMARY="SUMMARY",t.SEMANTIC_SEARCH="SEMANTIC_SEARCH",t.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",t.DOCUMENTATION="DOCUMENTATION",t.OTHER="OTHER"})(Xa||(Xa={}));var Ja;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(Ja||(Ja={}));var Za;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Za||(Za={}));var Qa;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Qa||(Qa={}));var el;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(el||(el={}));var tl;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(tl||(tl={}));var rl;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(rl||(rl={}));var nl;(function(t){t.SOURCES="SOURCES",t.ENRICH_AND_CLEAN="ENRICH_AND_CLEAN",t.VOCABULARIES="VOCABULARIES",t.METADATA="METADATA",t.PRETTY_URL="PRETTY_URL",t.ACCESS_RULE="ACCESS_RULE",t.DESIGNED_PAGES="DESIGNED_PAGES",t.THEME_STUDIO="THEME_STUDIO",t.PORTAL_GENERAL="PORTAL_GENERAL",t.ASSETS="ASSETS",t.CODE_LIBRARY="CODE_LIBRARY",t.THEME="THEME",t.CONTENT_STYLES="CONTENT_STYLES",t.HOMEPAGE="HOMEPAGE",t.CLASSIC_SEARCH_PAGE="CLASSIC_SEARCH_PAGE",t.CLASSIC_READER_PAGE="CLASSIC_READER_PAGE",t.PORTAL_METADATA="PORTAL_METADATA",t.LANGUAGES="LANGUAGES",t.PRINT_TEMPLATES="PRINT_TEMPLATES",t.OFFLINE="OFFLINE",t.CUSTOM_JS="CUSTOM_JS",t.CONFIDENTIALITY="CONFIDENTIALITY",t.NOTIFICATIONS="NOTIFICATIONS"})(nl||(nl={}));var il;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(il||(il={}));var Xu={[G.PERSONAL_BOOK_SHARE_USER]:[G.PERSONAL_BOOK_USER],[G.HTML_EXPORT_USER]:[G.PERSONAL_BOOK_USER],[G.PDF_EXPORT_USER]:[G.PERSONAL_BOOK_USER],[G.KHUB_ADMIN]:[G.CONTENT_PUBLISHER],[G.ADMIN]:[G.KHUB_ADMIN,G.USERS_ADMIN,G.PORTAL_ADMIN,G.BEHAVIOR_DATA_USER],[G.GENERATIVE_AI_EXPORT_USER]:[G.GENERATIVE_AI_USER]};function ol(t,e){return t===e||(Xu[t]??[]).some(r=>ol(r,e))}function sl(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(n=>ol(n,e))}var wn=f(E());var Mi=f(E());var Dt=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:n}=T.getState(),i=e??n;if(r&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,i,!0)}static await(e){return new Promise(r=>{let n=t.get(e);if(n)r(n);else{let i=T.subscribe(()=>{n=t.get(e),n&&(i(),r(n))})}})}};var fr=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Dt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Dt.await()}};var ge=class extends fr{constructor(e=!0,r){var n;super(r),this.sortObjectFields=(o,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([a],[l])=>a.localeCompare(l)));let i=this.constructor;i.commonCache=(n=i.commonCache)!==null&&n!==void 0?n:new Mi.CacheRegistry,this.cache=e?i.commonCache:new Mi.CacheRegistry}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((r,n)=>0|31*r+n.charCodeAt(0),0))}};var An=class extends ge{async listMySearches(){let{session:e}=T.getState();return sl(e,G.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var En=class extends ge{async listMyBookmarks(){let e=T.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}};var Cn=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=T.getState().session;return!!e?.sessionAuthenticated}};var On=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=T.getState().session;return!!e?.sessionAuthenticated}};var Ju="ft-user-assets",Zu={setAssetCount:(t,e)=>{let{userAssetType:r,count:n}=e.payload.assetCount;t.assetCounts.allAsset[r]=n},clearAssetCount:t=>{Object.values(_e).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:n,asset:i}=e.payload;Ui(t,r,[...$i(t,r),i]),al(t,r,1,n),ll(t,i)},editAsset:(t,e)=>{let{assetType:r,asset:n}=e.payload;Ui(t,r,$i(t,r).map(i=>i.id===n.id?n:i)),ll(t,n)},removeAsset:(t,e)=>{let{assetType:r,mapId:n,assetId:i}=e.payload;Ui(t,r,$i(t,r).filter(o=>o.id!==i)),al(t,r,-1,n)}},cl={[_e.SEARCHES]:"savedSearches",[_e.BOOKMARKS]:"bookmarks",[_e.BOOKS]:void 0,[_e.COLLECTIONS]:void 0},$i=(t,e)=>{var r;let n=cl[e];return n?(r=t[n])!==null&&r!==void 0?r:[]:[]},Ui=(t,e,r)=>{let n=cl[e];n&&(t[n]=r)},al=(t,e,r,n)=>{let i=t.assetCounts.allAsset[e];if(i!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,i+r),e===_e.BOOKMARKS&&n)){let o=t.assetCounts.bookmarkByMap[n];t.assetCounts.bookmarkByMap[n]=Math.max(0,o+r)}},ll=(t,e)=>{let r=t.assetLabels.map(i=>i.title),n=e.labels.filter(i=>!r.includes(i)).map(i=>({title:i}));t.assetLabels.push(...n)},ae=wn.FtReduxStore.get({name:Ju,reducers:Zu,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(_e).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Bi=class{constructor(e=new Cn,r=new On){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=T.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new En,this.savedSearchesService=new An,T.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=T.getState();(0,wn.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(),ae.actions.clearAssetCount(),ae.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),ae.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),ae.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();ae.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();ae.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&ae.getState().assetCounts.allAsset[e]!==r.count&&ae.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&ae.getState().assetCounts.bookmarkByMap[e]!==r.count&&ae.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(ae.getState().assetCounts.bookmarkByMap).length!==0;e===_e.BOOKMARKS&&r&&ae.actions.clearBookmarkCountByMap(),ae.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;ae.actions.bookmarks(r)}}},Qu=new Bi;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Qu);var Hi=class{addCommand(e,r=!1){T.commands.add(e,r)}consumeCommand(e){return T.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Hi;var Re=f(E());var ul,hr=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},ed=Symbol("clearAfterUnitTest"),Tn=class extends(0,Re.withEventBus)(ge){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[ul]=()=>{this.defaultMessages={},this.cache=new Re.CacheRegistry,this.listeners={}},this.currentUiLocale=T.getState().uiLocale,T.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=T.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 n;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let i={...(n=this.defaultMessages[e])!==null&&n!==void 0?n:{},...r};(0,Re.deepEqual)(this.defaultMessages[e],i)||(this.defaultMessages[e]=i,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,n;return this.fetchContext(e),(n=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(e,r){let n=e.toLowerCase();return this.resolveContext(n)[r]}resolveMessage(e,r,...n){var i;let o=e.toLowerCase(),s=this.resolveContext(o);return new Re.ParametrizedLabelResolver((i=this.defaultMessages[o])!==null&&i!==void 0?i:{},s).resolve(r,...n)}async fetchContext(e){let r=!this.cache.has(e),n;try{n=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(i){!(i instanceof Re.CanceledPromiseError)&&r&&console.error(i)}return n}subscribe(e,r){var n;return e=e.toLowerCase(),this.listeners[e]=(n=this.listeners[e])!==null&&n!==void 0?n:new Set,this.listeners[e].add(r),()=>{var i;return(i=this.listeners[e])===null||i===void 0?void 0:i.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new hr({loadedContexts:e})),this.dispatchEvent(new hr({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new hr({loadedContexts:[e]})),this.dispatchEvent(new hr({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(n=>(0,Re.delay)(0).then(()=>n()).catch(()=>null)))}};ul=ed;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Tn{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Tn{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var Mr=window.FluidTopicsI18nService,ji=window.FluidTopicsCustomI18nService;var dl=f(E()),Fi=class{highlightHtml(e,r,n){(0,dl.highlightHtml)(e,r,n)}};window.FluidTopicsHighlightHtmlService=new Fi;var pl=f(E());var Vi=class{isDate(e){var r,n,i,o;return(o=(i=((n=(r=T.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(a=>a.key===e))===null||i===void 0?void 0:i.date)!==null&&o!==void 0?o:!1}format(e,r){var n,i,o,s;if(e==null)return"";try{return pl.DateFormatter.format(e,(n=r?.locale)!==null&&n!==void 0?n:T.getState().uiLocale,(i=r?.longFormat)!==null&&i!==void 0?i:!1,(o=r?.withTime)!==null&&o!==void 0?o:!1,(s=r?.onlyTime)!==null&&s!==void 0?s:!1)}catch(a){throw console.error(`Date ${JSON.stringify(e)} is not valid`,a),a}}};window.FluidTopicsDateService=new Vi;var fl=f(E());var $r=class{static get(e,r){var n,i;let o=T.getState(),{lang:s,region:a}=(i=(n=o.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&i!==void 0?i:{lang:"en",region:"US"};return new fl.SearchPlaceConverter(o.baseUrl,e??20,o.searchInAllLanguagesAllowed,r??`${s}-${a}`)}};var zi=class{urlToSearchRequest(e){return $r.get().parse(e)}searchRequestToUrl(e){return $r.get().serialize(e)}};window.FluidTopicsUrlService=new zi;var tt=f(E());var Nt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Nt.eventName="change";var Wi=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))}},hl=new Wi;var _n=class t extends tt.WithEventBus{static build(){return new t(window.history,hl,()=>window.location,!1)}constructor(e,r,n,i){var o,s;super(),this.history=e,this.historyStorage=r,this.windowLocation=n,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(o=e.state)===null||o===void 0?void 0:o.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(i)}setCurrentState(e,r=!1){let n=r&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,n&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,tt.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new Nt(this.currentItem())),0)}installProxies(){let e=r=>(n,i,[o,s,a])=>{let l=r(),c={...l===this.currentIndex?this.currentState:void 0,...o,index:l,href:typeof a=="string"?a:(a??this.windowLocation()).href};n.apply(i,[c,s,a]),this.setCurrentState(c,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply: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 n={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(e){this.addEventListener(Nt.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Nt.eventName,e)}currentItem(){return(0,tt.deepCopy)(this.currentState)}back(){let e=this.previousDifferentMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,tt.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(n=>!!n).filter(n=>n.index<this.currentIndex).reverse();return(0,tt.deepCopy)(r.find(n=>e(n)))}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return(0,tt.deepCopy)(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var r;let n=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!n)return e;let i=e,o=e+1;for(;this.states.length>o&&!this.isDifferentMajorState(o,n);)this.hasState(o)&&(i=o),o++;return i}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 n;if(!this.hasState(e))return!1;let i=r??this.currentState.majorStateId,o=(n=this.states[e])===null||n===void 0?void 0:n.majorStateId;return o==null||o!=i}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=_n.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:t=>window.FluidTopicsInternalHistoryService.backwardItemMatching(t),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t)});var ml=f(L());var vl=ml.css`
|
|
261
|
+
`;var bl=f(L()),be=f(z()),$t=f(E());var It=f(E());function yl(t,e){let{authenticationRequired:r,session:n}=T.getState();return r&&!n?.sessionAuthenticated?Promise.resolve(e):t()}var Rn=class extends fr{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}};var Ki=class t extends It.FtStateManager{static build(e){return new t(T,e)}constructor(e,r){super(),this.store=e,this.cache=new It.CacheRegistry,this.withManualResources=!0,this.localesConfiguration=null,this.userLocaleService=new Rn,this.cleanSessionDebouncer=new It.Debouncer,this.reloadDebouncer=new It.Debouncer(500),this.apiProvider=r??(()=>Dt.get())}setWithManualResources(e){this.withManualResources=e,this.updateIfNeeded()}async initService(){this.store.addEventListener(pr.eventName,this.reloadConfiguration)}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.store.getState().session==null&&this.updateSession(),this.store.getState().metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration(),(this.store.getState().availableContentLocales==null||this.store.getState().availableContentLocales.length==0)&&this.updateAvailableContentLocales())}async updateSession(){let e=await this.cache.get("session",async()=>{let r=await this.apiProvider().getCurrentSession();return r.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.setSession(void 0)},r.idleTimeoutInMillis),r});this.setSession(e)}async updateMetadataConfiguration(){this.setMetadataConfiguration(await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration()))}async updateLocalesConfiguration(){this.setLocalesConfiguration(await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration()))}async updateAvailableContentLocales(){var e;let r=await this.cache.get("availableContentLocales",()=>yl(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((e=r.contentLocales)!==null&&e!==void 0?e:[])}reloadConfiguration(){var e;(e=this.cache)===null||e===void 0||e.clear("availableContentLocales"),typeof this.updateAvailableContentLocales=="function"&&this.updateAvailableContentLocales()}setBaseUrl(e){this.store.actions.baseUrl(e),window.fluidTopicsBaseUrl=e}setApiIntegrationIdentifier(e){this.store.actions.apiIntegrationIdentifier(e)}setApiIntegrationAppVersion(e){this.store.actions.apiIntegrationAppVersion(e)}setUiLocale(e){this.store.actions.uiLocale(e)}setLocalesConfiguration(e){var r,n,i,o,s;this.localesConfiguration=e,this.store.actions.defaultLocales(this.localesConfiguration.defaultLocales),this.store.actions.availableUiLocales((r=this.localesConfiguration.availableUiLocales)!==null&&r!==void 0?r:[]),this.store.actions.searchInAllLanguagesAllowed((n=this.localesConfiguration.allLanguagesAllowed)!==null&&n!==void 0?n:!1),this.store.actions.searchLanguageSetsUiLanguage((i=this.localesConfiguration.searchLanguageSetsUiLanguage)!==null&&i!==void 0?i:!1),this.store.actions.uiLanguageSetsSearchLanguage((o=this.localesConfiguration.uiLanguageSetsSearchLanguage)!==null&&o!==void 0?o:!1),this.store.actions.uiLanguageSetsReaderLanguage((s=this.localesConfiguration.uiLanguageSetsReaderLanguage)!==null&&s!==void 0?s:!1),setTimeout(()=>this.updateIfNeeded())}setAvailableContentLocales(e){this.store.actions.availableContentLocales(e),setTimeout(()=>this.updateIfNeeded())}stopReloadDebouncer(){this.reloadDebouncer.cancel()}requestUiLocaleUpdate(e){this.userLocaleService.updateUiLocale({uiLocale:e}).then(r=>{r.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new Ir(r)))}).catch(()=>{})}setMetadataConfiguration(e){this.store.actions.metadataConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setNoCustom(e){this.store.actions.noCustom(e)}setEditorMode(e){this.store.actions.editorMode(e)}setNoCustomComponent(e){this.store.actions.noCustomComponent(e)}setSession(e){this.store.actions.session(e),setTimeout(()=>this.updateIfNeeded())}setOpenExternalDocumentInNewTab(e){this.store.actions.openExternalDocumentInNewTab(e)}setNavigatorOnline(e){this.store.actions.navigatorOnline(e)}setForcedOffline(e){this.store.actions.forcedOffline(e)}setAuthenticationRequired(e){this.store.actions.authenticationRequired(e)}},gl=Ki.build();var Mt=class extends Event{constructor(e,r,n,i){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=r,this.callback=n,this.subscribe=i??!1}};var Ur=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=e=>{let r=this.pendingContextRequests.get(e.context);if(r===void 0)return;this.pendingContextRequests.delete(e.context);let{requests:n}=r;for(let{elementRef:i,callbackRef:o}of n){let s=i.deref(),a=o.deref();s===void 0||a===void 0||s.dispatchEvent(new Mt(e.context,s,a,!0))}},this.onContextRequest=e=>{if(e.subscribe!==!0)return;let r=e.contextTarget??e.composedPath()[0],n=e.callback,i=this.pendingContextRequests.get(e.context);i===void 0&&this.pendingContextRequests.set(e.context,i={callbacks:new WeakMap,requests:[]});let o=i.callbacks.get(r);o===void 0&&i.callbacks.set(r,o=new WeakSet),o.has(n)||(o.add(n),i.requests.push({elementRef:new WeakRef(r),callbackRef:new WeakRef(n)}))}}attach(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 oe=function(t,e,r,n){var i=arguments.length,o=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(i<3?s(o):i>3?s(e,r,o):s(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o},j=class extends $t.FtLitElementRedux{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.authenticationRequired=!1,this.messageContexts=[],this.stateManager=gl,this.contextRoot=new Ur}render(){return bl.html`
|
|
262
262
|
<slot></slot>
|
|
263
|
-
`}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.contextRoot.detach(document.body)}update(e){var r;super.update(e),e.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),e.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),e.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),e.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),e.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),e.has("session")&&this.stateManager.setSession(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(n=>Mr.addContext(n)),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())}};j.elementDefinitions={};j.styles=vl;oe([(0,
|
|
264
|
-
`;var Nn=f(L()),In=f(z()),Mn=f(E());var jr=function(t,e,r,n){var i=arguments.length,o=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(i<3?s(o):i>3?s(e,r,o):s(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o},Me=class extends kn{constructor(){super(),this.editorMode=!1,this.addStore(
|
|
263
|
+
`}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.contextRoot.detach(document.body)}update(e){var r;super.update(e),e.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),e.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),e.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),e.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),e.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),e.has("session")&&this.stateManager.setSession(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(n=>Mr.addContext(n)),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())}};j.elementDefinitions={};j.styles=vl;oe([(0,be.property)()],j.prototype,"baseUrl",void 0);oe([(0,be.property)()],j.prototype,"apiIntegrationIdentifier",void 0);oe([(0,be.property)()],j.prototype,"apiIntegrationAppVersion",void 0);oe([(0,be.property)()],j.prototype,"uiLocale",void 0);oe([(0,$t.jsonProperty)(null)],j.prototype,"availableUiLocales",void 0);oe([(0,$t.jsonProperty)(null)],j.prototype,"metadataConfiguration",void 0);oe([(0,be.property)({type:Boolean})],j.prototype,"editorMode",void 0);oe([(0,be.property)({type:Boolean})],j.prototype,"noCustom",void 0);oe([(0,be.property)({type:Boolean})],j.prototype,"openExternalDocumentInNewTab",void 0);oe([(0,be.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],j.prototype,"noCustomComponent",void 0);oe([(0,be.property)({type:Boolean})],j.prototype,"withManualResources",void 0);oe([(0,be.property)({type:Boolean})],j.prototype,"navigatorOnline",void 0);oe([(0,be.property)({type:Boolean})],j.prototype,"forcedOffline",void 0);oe([(0,be.property)({type:Boolean})],j.prototype,"authenticationRequired",void 0);oe([(0,$t.jsonProperty)([])],j.prototype,"messageContexts",void 0);oe([(0,$t.jsonProperty)(void 0)],j.prototype,"session",void 0);var Sl=f(E());var xl={"ft-app-context":j};(0,Sl.customElements)(xl);var Al=f(z());var Gi=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,n]=e.split(".");return{context:r,key:n,custom:r!=="officialContext",message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},mr=new Gi;var nd=function(t,e,r,n){var i=arguments.length,o=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(i<3?s(o):i>3?s(e,r,o):s(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o},Hr=Symbol("i18nAttributes"),El=Symbol("i18nListAttributes"),Cl=Symbol("i18nProperties"),Ln=Symbol("i18nContexts"),Br=Symbol("i18nUnsubs"),Dn=(0,vr.applyMixinOnce)(Symbol("withI18n"),function(t){var e,r;class n extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[r]=new Map}getI18nService(o){return o??this.useCustomMessageContexts?ji:Mr}i18n(o){let{context:s,key:a,message:l}=o,{custom:c,args:u,argsProvider:d}=o;if(s&&a){this.hasI18nContext(s)||this.addI18nContext(s,void 0,c);let p=u??(d?d(this):[]);return this.getI18nService(c).resolveMessage(s,a,...p)}return l}async awaitI18n(o){let{context:s,custom:a}=o;return s&&await this.getI18nService(a).prepareContext(s),this.i18n(o)}customI18n(o,s){if(mr.isI18nKey(o)){let[a,l]=o.split(".");return this.i18n({custom:!0,context:a,key:l,...s})||o}return o}firstUpdated(o){super.firstUpdated(o),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(o){super.update(o),this.updateI18nAttributes((s,a,l)=>o.has(a)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(o){this.updateI18nAttributes((s,a,l)=>{var c;return((c=l?.context)===null||c===void 0?void 0:c.toLowerCase())===o}),this.updateI18nProperties(s=>s.context.toLowerCase()===o),this.requestUpdate()}updateI18nAttributes(o){var s,a;let l=this,c=(u,d,p)=>p?.context&&p.key&&o(u,d,p)?{...p,message:this.i18n({context:p.context,key:p.key,custom:p.custom,...u})}:p;(s=this[Hr])===null||s===void 0||s.forEach((u,d)=>l[d]=c(u,d,l[d])),(a=this[El])===null||a===void 0||a.forEach((u,d)=>{var p;return l[d]=(p=l[d])===null||p===void 0?void 0:p.map(h=>c(u,d,h))})}updateI18nProperties(o){var s;(s=this[Cl])===null||s===void 0||s.forEach((a,l)=>{o(a,l)&&(this[l]=this.i18n(a))})}addI18nMessages(o,s,a){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(o,s,a)}addI18nContext(o,s,a){let l=(typeof o=="string"?o:o.name).toLowerCase();a=typeof o=="string"?a:o.custom,this[Ln].set(l,{isCustomContext:a}),this[Br].has(l)||this[Br].set(l,this.getI18nService(a).subscribe(l,()=>this.onI18nUpdate(l))),this.getI18nService(a).prepareContext(l,s)}hasI18nContext(o){return this[Ln].has(o.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Ln].forEach((o,s)=>this.addI18nContext(s,void 0,o.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Br].forEach(o=>o()),this[Br].clear()}}return e=Ln,r=Br,nd([(0,Al.property)({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}),Pn=class extends Dn(vr.FtLitElement){},kn=class extends Dn(vr.FtLitElementRedux){};var Ol=f(E());var qi=class{fromAttribute(e){if(!e)return[];try{let r=JSON.parse(e);return Array.isArray(r)?r.map(n=>typeof n=="string"?mr.fromAttribute(n):n):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},id=new qi;var wl=(t,e)=>(r,n)=>{var i;r.constructor.createProperty(n,{type:Object,hasChanged:Ol.hasChanged,converter:mr,...e}),r[Hr]=(i=r[Hr])!==null&&i!==void 0?i:new Map,r[Hr].set(n,t??{})};var Tl=f(L());var _l=Tl.css`
|
|
264
|
+
`;var Nn=f(L()),In=f(z()),Mn=f(E());var jr=function(t,e,r,n){var i=arguments.length,o=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(i<3?s(o):i>3?s(e,r,o):s(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o},Me=class extends kn{constructor(){super(),this.editorMode=!1,this.addStore(T)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":Nn.nothing:Nn.html`
|
|
265
265
|
<span class="ft-i18n">
|
|
266
266
|
${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
|
|
267
267
|
</span>
|
|
@@ -409,7 +409,7 @@
|
|
|
409
409
|
<div></div>
|
|
410
410
|
<div></div>
|
|
411
411
|
</div>
|
|
412
|
-
`}};Bt.styles=Vl;var Gl=f(E());var Kl={"ft-loader":Bt};(0,Gl.customElements)(Kl);var vt=f(L()),Ji=f(er()),I=f(z());var Yi=t=>t??W;var Xl=f(L()),
|
|
412
|
+
`}};Bt.styles=Vl;var Gl=f(E());var Kl={"ft-loader":Bt};(0,Gl.customElements)(Kl);var vt=f(L()),Ji=f(er()),I=f(z());var Yi=t=>t??W;var Xl=f(L()),w=f(E());var ql=w.FtCssVariableFactory.extend("--ft-button-color","",w.designSystemVariables.colorPrimary),k={backgroundColor:w.FtCssVariableFactory.extend("--ft-button-background-color","",w.designSystemVariables.colorSurface),borderRadius:w.FtCssVariableFactory.extend("--ft-button-border-radius","",w.designSystemVariables.borderRadiusL),color:ql,fontSize:w.FtCssVariableFactory.extend("--ft-button-font-size","",We.fontSize),iconSize:w.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:w.FtCssVariableFactory.extend("--ft-button-ripple-color","",ql),verticalPadding:w.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:w.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:w.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:w.FtCssVariableFactory.external(w.designSystemVariables.colorOpacityDisabled,"Design system")},Yl=w.FtCssVariableFactory.extend("--ft-button-primary-color","",w.FtCssVariableFactory.extend("--ft-button-color","",w.designSystemVariables.colorOnPrimary)),Xi={backgroundColor:w.FtCssVariableFactory.extend("--ft-button-primary-background-color","",w.FtCssVariableFactory.extend("--ft-button-background-color","",w.designSystemVariables.colorPrimary)),color:Yl,rippleColor:w.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",Yl)},He={borderRadius:w.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",w.FtCssVariableFactory.extend("--ft-button-border-radius","",w.designSystemVariables.borderRadiusM)),verticalPadding:w.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:w.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:w.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},Jl=Xl.css`
|
|
413
413
|
:host {
|
|
414
414
|
display: inline-block;
|
|
415
415
|
max-width: 100%;
|
|
@@ -420,7 +420,7 @@
|
|
|
420
420
|
box-shadow: 0px 0px 0px transparent;
|
|
421
421
|
border: 0px solid transparent;
|
|
422
422
|
text-shadow: 0px 0px 0px transparent;
|
|
423
|
-
font-size: ${
|
|
423
|
+
font-size: ${k.fontSize};
|
|
424
424
|
text-decoration: none;
|
|
425
425
|
}
|
|
426
426
|
|
|
@@ -436,7 +436,12 @@
|
|
|
436
436
|
}
|
|
437
437
|
|
|
438
438
|
.ft-button:focus {
|
|
439
|
-
outline:
|
|
439
|
+
outline: none;
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
.ft-button:focus-visible {
|
|
443
|
+
outline: 2px solid ${w.designSystemVariables.colorPrimary};
|
|
444
|
+
outline-offset: 2px;
|
|
440
445
|
}
|
|
441
446
|
|
|
442
447
|
.ft-button {
|
|
@@ -445,36 +450,36 @@
|
|
|
445
450
|
justify-content: center;
|
|
446
451
|
align-items: center;
|
|
447
452
|
width: 100%;
|
|
448
|
-
overflow: hidden;
|
|
449
453
|
box-sizing: border-box;
|
|
450
454
|
border: none;
|
|
451
455
|
pointer-events: auto;
|
|
452
456
|
|
|
453
|
-
--button-internal-line-height: max(calc(${
|
|
454
|
-
--button-internal-color: ${
|
|
455
|
-
${(0,
|
|
456
|
-
${(0,
|
|
457
|
+
--button-internal-line-height: max(calc(${k.fontSize} + 2px), ${k.iconSize});
|
|
458
|
+
--button-internal-color: ${k.color};
|
|
459
|
+
${(0,w.setVariable)(Ue.size,k.iconSize)};
|
|
460
|
+
${(0,w.setVariable)(ce.color,k.rippleColor)};
|
|
461
|
+
${(0,w.setVariable)(ce.borderRadius,k.borderRadius)};
|
|
457
462
|
|
|
458
|
-
border-radius: ${
|
|
459
|
-
padding: ${
|
|
460
|
-
background-color: ${
|
|
463
|
+
border-radius: ${k.borderRadius};
|
|
464
|
+
padding: ${k.verticalPadding} ${k.horizontalPadding};
|
|
465
|
+
background-color: ${k.backgroundColor};
|
|
461
466
|
color: var(--button-internal-color);
|
|
462
|
-
-webkit-mask-image: radial-gradient(white, black);
|
|
463
467
|
}
|
|
464
468
|
|
|
465
469
|
.ft-button.ft-button--outlined {
|
|
466
470
|
border: 1px solid var(--button-internal-color);
|
|
467
|
-
padding: calc(${
|
|
471
|
+
padding: calc(${k.verticalPadding} - 1px) calc(${k.horizontalPadding} - 1px);
|
|
468
472
|
}
|
|
469
473
|
|
|
470
474
|
.ft-button.ft-button--dense {
|
|
471
|
-
padding: ${
|
|
472
|
-
border-radius: ${
|
|
473
|
-
gap: ${
|
|
475
|
+
padding: ${He.verticalPadding} ${He.horizontalPadding};
|
|
476
|
+
border-radius: ${He.borderRadius};
|
|
477
|
+
gap: ${He.iconPadding};
|
|
478
|
+
${(0,w.setVariable)(ce.borderRadius,He.borderRadius)};
|
|
474
479
|
}
|
|
475
480
|
|
|
476
481
|
.ft-button.ft-button--dense.ft-button--outlined {
|
|
477
|
-
padding: calc(${
|
|
482
|
+
padding: calc(${He.verticalPadding} - 1px) calc(${He.horizontalPadding} - 1px);
|
|
478
483
|
}
|
|
479
484
|
|
|
480
485
|
.ft-button:not([disabled]):hover {
|
|
@@ -482,26 +487,22 @@
|
|
|
482
487
|
}
|
|
483
488
|
|
|
484
489
|
.ft-button--round {
|
|
485
|
-
border-radius: calc(var(--button-internal-line-height) / 2 + ${
|
|
490
|
+
border-radius: calc(var(--button-internal-line-height) / 2 + ${k.verticalPadding});
|
|
486
491
|
}
|
|
487
492
|
|
|
488
493
|
.ft-button--round.ft-button--dense {
|
|
489
|
-
border-radius: calc(var(--button-internal-line-height) / 2 + ${
|
|
494
|
+
border-radius: calc(var(--button-internal-line-height) / 2 + ${He.verticalPadding});
|
|
490
495
|
}
|
|
491
496
|
|
|
492
497
|
.ft-button[disabled] {
|
|
493
498
|
filter: grayscale(1);
|
|
494
|
-
opacity: ${
|
|
499
|
+
opacity: ${k.opacityDisabled};
|
|
495
500
|
}
|
|
496
501
|
|
|
497
502
|
.ft-button.ft-button--primary {
|
|
498
503
|
background-color: ${Xi.backgroundColor};
|
|
499
504
|
--button-internal-color: ${Xi.color};
|
|
500
|
-
${(0,
|
|
501
|
-
}
|
|
502
|
-
|
|
503
|
-
.ft-button:focus {
|
|
504
|
-
outline: none;
|
|
505
|
+
${(0,w.setVariable)(ce.color,Xi.rippleColor)};
|
|
505
506
|
}
|
|
506
507
|
|
|
507
508
|
.ft-button--label {
|
|
@@ -510,13 +511,13 @@
|
|
|
510
511
|
white-space: nowrap;
|
|
511
512
|
text-overflow: ellipsis;
|
|
512
513
|
display: block;
|
|
513
|
-
margin: 0 ${
|
|
514
|
-
${(0,
|
|
515
|
-
${(0,
|
|
514
|
+
margin: 0 ${k.iconPadding};
|
|
515
|
+
${(0,w.setVariable)(We.fontSize,"1em")};
|
|
516
|
+
${(0,w.setVariable)(We.lineHeight,"var(--button-internal-line-height)")};
|
|
516
517
|
}
|
|
517
518
|
|
|
518
519
|
.ft-button--dense .ft-button--label {
|
|
519
|
-
margin: 0 ${
|
|
520
|
+
margin: 0 ${He.iconPadding};
|
|
520
521
|
}
|
|
521
522
|
|
|
522
523
|
.ft-button--label[hidden] {
|
|
@@ -529,13 +530,13 @@
|
|
|
529
530
|
}
|
|
530
531
|
|
|
531
532
|
.ft-button--label[hidden] + [part="icon"] {
|
|
532
|
-
margin: 0 calc(${
|
|
533
|
-
padding: 0 ${
|
|
533
|
+
margin: 0 calc(${k.horizontalPadding} * -1);
|
|
534
|
+
padding: 0 ${k.verticalPadding};
|
|
534
535
|
}
|
|
535
536
|
|
|
536
537
|
.ft-button--dense .ft-button--label[hidden] + [part="icon"] {
|
|
537
|
-
margin: 0 calc(${
|
|
538
|
-
padding: 0 ${
|
|
538
|
+
margin: 0 calc(${He.horizontalPadding} * -1);
|
|
539
|
+
padding: 0 ${He.verticalPadding};
|
|
539
540
|
}
|
|
540
541
|
|
|
541
542
|
.ft-button:not(.ft-button--trailing-icon) [part="label"] {
|
|
@@ -543,8 +544,8 @@
|
|
|
543
544
|
}
|
|
544
545
|
|
|
545
546
|
ft-loader {
|
|
546
|
-
${(0,
|
|
547
|
-
${(0,
|
|
547
|
+
${(0,w.setVariable)(Ut.size,k.iconSize)};
|
|
548
|
+
${(0,w.setVariable)(Ut.color,"var(--button-internal-color)")};
|
|
548
549
|
}
|
|
549
550
|
`;var B=function(t,e,r,n){var i=arguments.length,o=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(i<3?s(o):i>3?s(e,r,o):s(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o},_=class extends(0,ke.toFtFormComponent)(ke.FtLitElement){get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}constructor(){super(),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1,this.disabled=!1,this.icon=void 0,this.trailingIcon=!1,this.label="",this.type="button",this.href=void 0,this.target=void 0,this.loading=!1,this.ariaLabel=null,this.ariaHasPopup=null,this.ariaPressed=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.activated=!1,this.addEventListener("click",e=>{var r;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((r=this.form)===null||r===void 0||r.requestSubmit())})}render(){var e,r,n;let i=vt.html`
|
|
550
551
|
<ft-ripple part="ripple"
|
|
@@ -588,15 +589,15 @@
|
|
|
588
589
|
<ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
|
|
589
590
|
`:vt.html`
|
|
590
591
|
<slot part="icon" name="icon"></slot>
|
|
591
|
-
`}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 n;return(n=this.tooltip)===null||n===void 0?void 0:n.showTemporaryText(e,r)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}getLabel(){return this.label||this.getTextContent()}getTextContent(){return(0,ke.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};_.elementDefinitions={"ft-ripple":P,"ft-tooltip":X,"ft-icon":le,"ft-loader":Bt,"ft-typography":Y};_.styles=[ke.safariEllipsisFix,Jl,ke.noTextSelect];B([(0,I.property)({type:Boolean})],_.prototype,"primary",void 0);B([(0,I.property)({type:Boolean})],_.prototype,"outlined",void 0);B([(0,I.property)({type:Boolean})],_.prototype,"dense",void 0);B([(0,I.property)({type:Boolean})],_.prototype,"round",void 0);B([(0,I.property)({type:Boolean})],_.prototype,"disabled",void 0);B([(0,I.property)()],_.prototype,"icon",void 0);B([(0,I.property)()],_.prototype,"iconVariant",void 0);B([(0,I.property)({type:Boolean})],_.prototype,"trailingIcon",void 0);B([(0,I.property)()],_.prototype,"label",void 0);B([(0,I.property)()],_.prototype,"type",void 0);B([(0,I.property)()],_.prototype,"href",void 0);B([(0,I.property)()],_.prototype,"target",void 0);B([(0,I.property)({type:Boolean})],_.prototype,"loading",void 0);B([(0,I.property)({attribute:"aria-label"})],_.prototype,"ariaLabel",void 0);B([(0,I.property)()],_.prototype,"ariaHasPopup",void 0);B([(0,I.property)({attribute:"aria-pressed"})],_.prototype,"ariaPressed",void 0);B([(0,I.property)()],_.prototype,"tooltipPosition",void 0);B([(0,I.property)({type:Boolean})],_.prototype,"hideTooltip",void 0);B([(0,I.property)({type:Boolean})],_.prototype,"forceTooltip",void 0);B([(0,I.property)({type:Boolean})],_.prototype,"activated",void 0);B([(0,I.query)(".ft-button")],_.prototype,"button",void 0);B([(0,I.query)(".ft-button--label slot")],_.prototype,"slottedContent",void 0);B([(0,I.query)("[part=tooltip]")],_.prototype,"tooltip",void 0);var Ql=f(E());var Zl={"ft-button":_};(0,Ql.customElements)(Zl);var Un=f(L()),
|
|
592
|
+
`}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 n;return(n=this.tooltip)===null||n===void 0?void 0:n.showTemporaryText(e,r)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}getLabel(){return this.label||this.getTextContent()}getTextContent(){return(0,ke.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};_.elementDefinitions={"ft-ripple":P,"ft-tooltip":X,"ft-icon":le,"ft-loader":Bt,"ft-typography":Y};_.styles=[ke.safariEllipsisFix,Jl,ke.noTextSelect];B([(0,I.property)({type:Boolean})],_.prototype,"primary",void 0);B([(0,I.property)({type:Boolean})],_.prototype,"outlined",void 0);B([(0,I.property)({type:Boolean})],_.prototype,"dense",void 0);B([(0,I.property)({type:Boolean})],_.prototype,"round",void 0);B([(0,I.property)({type:Boolean})],_.prototype,"disabled",void 0);B([(0,I.property)()],_.prototype,"icon",void 0);B([(0,I.property)()],_.prototype,"iconVariant",void 0);B([(0,I.property)({type:Boolean})],_.prototype,"trailingIcon",void 0);B([(0,I.property)()],_.prototype,"label",void 0);B([(0,I.property)()],_.prototype,"type",void 0);B([(0,I.property)()],_.prototype,"href",void 0);B([(0,I.property)()],_.prototype,"target",void 0);B([(0,I.property)({type:Boolean})],_.prototype,"loading",void 0);B([(0,I.property)({attribute:"aria-label"})],_.prototype,"ariaLabel",void 0);B([(0,I.property)()],_.prototype,"ariaHasPopup",void 0);B([(0,I.property)({attribute:"aria-pressed"})],_.prototype,"ariaPressed",void 0);B([(0,I.property)()],_.prototype,"tooltipPosition",void 0);B([(0,I.property)({type:Boolean})],_.prototype,"hideTooltip",void 0);B([(0,I.property)({type:Boolean})],_.prototype,"forceTooltip",void 0);B([(0,I.property)({type:Boolean})],_.prototype,"activated",void 0);B([(0,I.query)(".ft-button")],_.prototype,"button",void 0);B([(0,I.query)(".ft-button--label slot")],_.prototype,"slottedContent",void 0);B([(0,I.query)("[part=tooltip]")],_.prototype,"tooltip",void 0);var Ql=f(E());var Zl={"ft-button":_};(0,Ql.customElements)(Zl);var Un=f(L()),je=f(z()),rc=f(E()),nc=f(er());var te=f(E()),ec=f(L());var xe={textColor:te.FtCssVariableFactory.extend("--ft-checkbox-text-color","",te.designSystemVariables.colorOnSurfaceHigh),fontSize:te.FtCssVariableFactory.extend("--ft-checkbox-font-size","",b.fontSize),activeColor:te.FtCssVariableFactory.extend("--ft-checkbox-active-color","",te.designSystemVariables.colorPrimary),checkColor:te.FtCssVariableFactory.extend("--ft-checkbox-check-color","",te.designSystemVariables.colorOnPrimary),borderColor:te.FtCssVariableFactory.extend("--ft-checkbox-border-color","",te.designSystemVariables.colorOnSurfaceMedium),disabledColor:te.FtCssVariableFactory.extend("--ft-checkbox-disabled-color","",te.designSystemVariables.colorOnSurfaceDisabled),errorColor:te.FtCssVariableFactory.extend("--ft-checkbox-error-color","",te.designSystemVariables.colorError)},tc=ec.css`
|
|
592
593
|
* {
|
|
593
594
|
box-sizing: border-box;
|
|
594
595
|
}
|
|
595
596
|
|
|
596
597
|
.ft-checkbox {
|
|
597
598
|
box-sizing: border-box;
|
|
598
|
-
color: ${
|
|
599
|
-
font-size: ${
|
|
599
|
+
color: ${xe.textColor};
|
|
600
|
+
font-size: ${xe.fontSize};
|
|
600
601
|
|
|
601
602
|
display: inline-flex;
|
|
602
603
|
align-items: center;
|
|
@@ -604,7 +605,7 @@
|
|
|
604
605
|
}
|
|
605
606
|
|
|
606
607
|
.ft-checkbox--disabled {
|
|
607
|
-
color: ${
|
|
608
|
+
color: ${xe.disabledColor};
|
|
608
609
|
}
|
|
609
610
|
|
|
610
611
|
input {
|
|
@@ -628,26 +629,26 @@
|
|
|
628
629
|
|
|
629
630
|
.ft-checkbox--box {
|
|
630
631
|
display: flex;
|
|
631
|
-
border: 2px solid ${
|
|
632
|
+
border: 2px solid ${xe.borderColor};
|
|
632
633
|
border-radius: 2px;
|
|
633
634
|
|
|
634
635
|
width: 18px;
|
|
635
636
|
height: 18px;
|
|
636
637
|
|
|
637
|
-
color: ${
|
|
638
|
+
color: ${xe.checkColor};
|
|
638
639
|
}
|
|
639
640
|
|
|
640
641
|
|
|
641
642
|
.ft-checkbox--checked .ft-checkbox--box,
|
|
642
643
|
.ft-checkbox--indeterminate .ft-checkbox--box {
|
|
643
|
-
border-color: ${
|
|
644
|
-
background-color: ${
|
|
644
|
+
border-color: ${xe.activeColor};
|
|
645
|
+
background-color: ${xe.activeColor};
|
|
645
646
|
}
|
|
646
647
|
|
|
647
648
|
.ft-checkbox--disabled .ft-checkbox--box {
|
|
648
|
-
border-color: ${
|
|
649
|
+
border-color: ${xe.disabledColor};
|
|
649
650
|
background-color: transparent;
|
|
650
|
-
color: ${
|
|
651
|
+
color: ${xe.disabledColor};
|
|
651
652
|
}
|
|
652
653
|
|
|
653
654
|
.ft-checkbox--checkmark {
|
|
@@ -668,16 +669,16 @@
|
|
|
668
669
|
}
|
|
669
670
|
|
|
670
671
|
.ft-checkbox.ft-checkbox--error {
|
|
671
|
-
color: ${
|
|
672
|
-
${(0,te.setVariable)(
|
|
672
|
+
color: ${xe.errorColor};
|
|
673
|
+
${(0,te.setVariable)(ce.color,xe.errorColor)};
|
|
673
674
|
|
|
674
675
|
.ft-checkbox--box {
|
|
675
|
-
border-color: ${
|
|
676
|
+
border-color: ${xe.errorColor};
|
|
676
677
|
}
|
|
677
678
|
|
|
678
679
|
&.ft-checkbox--checked, &.ft-checkbox--indeterminate {
|
|
679
680
|
.ft-checkbox--box {
|
|
680
|
-
background-color: ${
|
|
681
|
+
background-color: ${xe.errorColor};
|
|
681
682
|
}
|
|
682
683
|
}
|
|
683
684
|
}
|
|
@@ -715,7 +716,7 @@
|
|
|
715
716
|
<path class="ft-checkbox--checkmark-path" fill="none"
|
|
716
717
|
d="${this.indeterminate&&!this.checked?"M2,12 22,12":"M1.73,12.91 8.1,19.28 22.79,4.59"}"></path>
|
|
717
718
|
</svg>
|
|
718
|
-
`}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 Zi(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)}};re.elementDefinitions={"ft-ripple":P,"ft-typography":Y};re.styles=tc;rt([(0,
|
|
719
|
+
`}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 Zi(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)}};re.elementDefinitions={"ft-ripple":P,"ft-typography":Y};re.styles=tc;rt([(0,je.property)()],re.prototype,"name",void 0);rt([(0,je.property)()],re.prototype,"value",void 0);rt([(0,je.property)({type:Boolean,reflect:!0})],re.prototype,"checked",void 0);rt([(0,je.property)({type:Boolean})],re.prototype,"indeterminate",void 0);rt([(0,je.property)({type:Boolean})],re.prototype,"disabled",void 0);rt([(0,je.property)({type:Boolean})],re.prototype,"error",void 0);rt([(0,je.query)(".ft-checkbox")],re.prototype,"container",void 0);rt([(0,je.query)("ft-ripple")],re.prototype,"ripple",void 0);rt([(0,je.query)("input")],re.prototype,"input",void 0);var oc=f(E());var ic={"ft-checkbox":re};(0,oc.customElements)(ic);var lc=f(L()),Xe=f(z()),cc=f(E()),uc=f(er());var sc=f(L()),pe=f(E());var yt={textColor:pe.FtCssVariableFactory.extend("--ft-radio-text-color","",pe.designSystemVariables.colorOnSurfaceHigh),fontSize:pe.FtCssVariableFactory.extend("--ft-radio-font-size","",b.fontSize),colorPrimary:pe.FtCssVariableFactory.external(pe.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:pe.FtCssVariableFactory.external(pe.designSystemVariables.colorOnPrimary,"Design system"),borderColor:pe.FtCssVariableFactory.extend("--ft-radio-border-color","",pe.designSystemVariables.colorOnSurfaceMedium),colorOnSurfaceDisabled:pe.FtCssVariableFactory.external(pe.designSystemVariables.colorOnSurfaceDisabled,"Design system")},ac=sc.css`
|
|
719
720
|
* {
|
|
720
721
|
box-sizing: border-box;
|
|
721
722
|
}
|
|
@@ -797,7 +798,7 @@
|
|
|
797
798
|
}
|
|
798
799
|
|
|
799
800
|
.ft-radio:has(:focus-visible) {
|
|
800
|
-
outline: 2px solid ${
|
|
801
|
+
outline: 2px solid ${pe.designSystemVariables.colorPrimary};
|
|
801
802
|
outline-offset: -2px;
|
|
802
803
|
}
|
|
803
804
|
|
|
@@ -838,15 +839,16 @@
|
|
|
838
839
|
:host(:focus-visible) {
|
|
839
840
|
outline: none;
|
|
840
841
|
}
|
|
841
|
-
`;var Wr=function(t,e,r,n){var i=arguments.length,o=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(i<3?s(o):i>3?s(e,r,o):s(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o},
|
|
842
|
+
`;var Wr=function(t,e,r,n){var i=arguments.length,o=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(i<3?s(o):i>3?s(e,r,o):s(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o},Fe=class extends fc.FtLitElement{constructor(){super(...arguments),this.name="",this.role="radiogroup",this.ariaLabelledBy="",this.currentSelectedIndex=0,this.onFocus=()=>{setTimeout(()=>this.focusCurrentChecked(),100)}}get radioButtons(){var e,r;return(r=(e=this.assignedElements)===null||e===void 0?void 0:e.flatMap(n=>n.matches("ft-radio,ftds-radio")?[n]:[...n.querySelectorAll("ft-radio,ftds-radio")]))!==null&&r!==void 0?r:[]}render(){return hc.html`
|
|
842
843
|
<slot @slotchange=${this.onSlotChange}
|
|
843
844
|
@change=${this.onChange}
|
|
844
845
|
@keydown=${this.onKeyDown}
|
|
845
846
|
></slot>
|
|
846
|
-
`}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 n=this.currentSelectedIndex-1;this.radioButtons[n<0?this.radioButtons.length-1:n].select(),this.radioButtons[n<0?this.radioButtons.length-1:n].focus();break}case"ArrowDown":case"ArrowRight":{r=!0;let n=this.currentSelectedIndex+1;this.radioButtons[n>this.radioButtons.length-1?0:n].select(),this.radioButtons[n>this.radioButtons.length-1?0:n].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()}};
|
|
847
|
+
`}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 n=this.currentSelectedIndex-1;this.radioButtons[n<0?this.radioButtons.length-1:n].select(),this.radioButtons[n<0?this.radioButtons.length-1:n].focus();break}case"ArrowDown":case"ArrowRight":{r=!0;let n=this.currentSelectedIndex+1;this.radioButtons[n>this.radioButtons.length-1?0:n].select(),this.radioButtons[n>this.radioButtons.length-1?0:n].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()}};Fe.elementDefinitions={};Fe.styles=pc;Wr([(0,bt.property)()],Fe.prototype,"name",void 0);Wr([(0,bt.property)({reflect:!0,attribute:"role"})],Fe.prototype,"role",void 0);Wr([(0,bt.property)({reflect:!0,attribute:"aria-labelledby"})],Fe.prototype,"ariaLabelledBy",void 0);Wr([(0,bt.queryAssignedElements)()],Fe.prototype,"assignedElements",void 0);Wr([(0,bt.state)()],Fe.prototype,"currentSelectedIndex",void 0);var vc=f(E());var mc={"ft-radio":se,"ft-radio-group":Fe};(0,vc.customElements)(mc);var yc=f(L()),D=f(E());var Kr={buttonMoreColor:D.FtCssVariableFactory.extend("--ft-filter-level-button-more-color","",D.designSystemVariables.colorOnSurface),borderRadiusM:D.FtCssVariableFactory.external(D.designSystemVariables.borderRadiusM,"Design system"),colorOutline:D.FtCssVariableFactory.external(D.designSystemVariables.colorOutline,"Design system"),colorOnSurface:D.FtCssVariableFactory.external(D.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:D.FtCssVariableFactory.external(D.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:D.FtCssVariableFactory.external(D.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:D.FtCssVariableFactory.external(D.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:D.FtCssVariableFactory.external(D.designSystemVariables.colorOnPrimary,"Design system"),fontFamily:D.FtCssVariableFactory.external(ve.fontFamily,"Body2 typography"),fontSize:D.FtCssVariableFactory.external(ve.fontSize,"Body2 typography"),fontWeight:D.FtCssVariableFactory.external(ve.fontWeight,"Body2 typography"),letterSpacing:D.FtCssVariableFactory.external(ve.letterSpacing,"Body2 typography"),lineHeight:D.FtCssVariableFactory.external(ve.lineHeight,"Body2 typography"),textTransform:D.FtCssVariableFactory.external(ve.textTransform,"Body2 typography")},gc=yc.css`
|
|
847
848
|
.ft-filter-level--container {
|
|
848
849
|
display: flex;
|
|
849
850
|
flex-direction: column;
|
|
851
|
+
padding-bottom: 4px;
|
|
850
852
|
}
|
|
851
853
|
|
|
852
854
|
.ft-filter-level--container > * {
|
|
@@ -893,11 +895,11 @@
|
|
|
893
895
|
}
|
|
894
896
|
|
|
895
897
|
ft-button {
|
|
896
|
-
${(0,
|
|
898
|
+
${(0,D.setVariable)(k.color,Kr.colorOnSurface)};
|
|
897
899
|
}
|
|
898
900
|
|
|
899
901
|
ft-button.ft-filter-level--display-more {
|
|
900
|
-
${(0,
|
|
902
|
+
${(0,D.setVariable)(k.color,Kr.buttonMoreColor)};
|
|
901
903
|
}
|
|
902
904
|
|
|
903
905
|
ft-radio, ft-checkbox {
|
|
@@ -913,9 +915,9 @@
|
|
|
913
915
|
margin: 10px 0;
|
|
914
916
|
color: ${Kr.colorOnSurfaceMedium};
|
|
915
917
|
}
|
|
916
|
-
`;var ne=function(t,e,r,n){var i=arguments.length,o=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(i<3?s(o):i>3?s(e,r,o):s(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o},Qi={"more-filters-button-pressed":{label:"Revealing more filters",defaultEventName:"filters-click_see_more",defaultComponentId:"ft-filter-level"}},H=class extends(0,
|
|
918
|
+
`;var ne=function(t,e,r,n){var i=arguments.length,o=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(i<3?s(o):i>3?s(e,r,o):s(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o},Qi={"more-filters-button-pressed":{label:"Revealing more filters",defaultEventName:"filters-click_see_more",defaultComponentId:"ft-filter-level"}},H=class extends(0,fe.withAnalytics)(Dn((0,fe.withAriaNotification)(fe.FtLitElement)),Qi){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 fe.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 Se.html`
|
|
917
919
|
<div class="ft-filter-level--container ${this.disabled?"ft-filter--disabled":""}">
|
|
918
|
-
${this.parent==null?null:
|
|
920
|
+
${this.parent==null?null:Se.html`
|
|
919
921
|
<div tabindex="0"
|
|
920
922
|
part="controls go-back"
|
|
921
923
|
class="ft-filter-level--go-back"
|
|
@@ -929,15 +931,15 @@
|
|
|
929
931
|
<ft-typography variant="${Q.body2}">${this.parent.label}</ft-typography>
|
|
930
932
|
</div>
|
|
931
933
|
`}
|
|
932
|
-
${this.filteredOptions.length===0&&this.noValuesLabel?
|
|
934
|
+
${this.filteredOptions.length===0&&this.noValuesLabel?Se.html`
|
|
933
935
|
<ft-typography class="ft-filter-level--no-values" element="span" variant="${Q.body2}">
|
|
934
936
|
${this.noValuesLabel}
|
|
935
937
|
</ft-typography>
|
|
936
|
-
`:
|
|
937
|
-
${(0,bc.repeat)(e,r=>r.value,r=>{var n;return
|
|
938
|
+
`:Se.nothing}
|
|
939
|
+
${(0,bc.repeat)(e,r=>r.value,r=>{var n;return Se.html`
|
|
938
940
|
<div class="ft-filter-level--option" part="options" tabindex="-1">
|
|
939
941
|
${this.multivalued?this.buildMultiValuedOption(r):this.buildMonoValuedOption(r)}
|
|
940
|
-
${this.preventNavigation||r.selected||((n=r.subOptions)!==null&&n!==void 0?n:[]).length===0?
|
|
942
|
+
${this.preventNavigation||r.selected||((n=r.subOptions)!==null&&n!==void 0?n:[]).length===0?Se.nothing:Se.html`
|
|
941
943
|
<ft-button icon="thin_arrow_right"
|
|
942
944
|
part="controls navigate-hierarchy"
|
|
943
945
|
aria-label="Expand node"
|
|
@@ -948,7 +950,7 @@
|
|
|
948
950
|
`}
|
|
949
951
|
</div>
|
|
950
952
|
`})}
|
|
951
|
-
${e.length<this.filteredOptions.length?
|
|
953
|
+
${e.length<this.filteredOptions.length?Se.html`
|
|
952
954
|
<ft-button
|
|
953
955
|
class="ft-filter-level--display-more"
|
|
954
956
|
icon="thin_arrow"
|
|
@@ -957,20 +959,20 @@
|
|
|
957
959
|
@click=${()=>{this.emitAnalyticsAction("more-filters-button-pressed",{}),this.displayMore()}}>
|
|
958
960
|
${this.moreValuesButtonLabel}
|
|
959
961
|
</ft-button>
|
|
960
|
-
`:
|
|
962
|
+
`:Se.nothing}
|
|
961
963
|
</div>
|
|
962
|
-
`}goBackOnKeyPress(e){(e.key==="Enter"||e.key===" ")&&this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}goBackOnClick(e){e.stopPropagation(),e.preventDefault(),this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}displayMore(){var e;let r=(e=this.limit)!==null&&e!==void 0?e:0,n=this.parent!=null;this.displayedPages++,this.elementToFocus={selector:`.ft-filter-level--option:nth-child(${r+(n?2:1)}) [part~="option"]`}}buildMultiValuedOption(e){var r;return
|
|
964
|
+
`}goBackOnKeyPress(e){(e.key==="Enter"||e.key===" ")&&this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}goBackOnClick(e){e.stopPropagation(),e.preventDefault(),this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}displayMore(){var e;let r=(e=this.limit)!==null&&e!==void 0?e:0,n=this.parent!=null;this.displayedPages++,this.elementToFocus={selector:`.ft-filter-level--option:nth-child(${r+(n?2:1)}) [part~="option"]`}}buildMultiValuedOption(e){var r;return Se.html`
|
|
963
965
|
<ft-checkbox name="${this.filterId}"
|
|
964
966
|
part="multivalued-option option"
|
|
965
967
|
.exportpartsPrefixes=${["multivalued-option","option"]}
|
|
966
968
|
data-value="${e.value}"
|
|
967
969
|
.checked=${e.selected}
|
|
968
970
|
.disabled=${this.disabled}
|
|
969
|
-
.indeterminate=${(0,
|
|
971
|
+
.indeterminate=${(0,fe.flatDeep)((r=e.subOptions)!==null&&r!==void 0?r:[],n=>{var i;return(i=n.subOptions)!==null&&i!==void 0?i:[]}).some(n=>n.selected)}
|
|
970
972
|
@change=${n=>this.optionsChanged(n,e)}>
|
|
971
973
|
${e.renderOption?e.renderOption:e.label}${this.displayCount?` (${e.count})`:""}
|
|
972
974
|
</ft-checkbox>
|
|
973
|
-
`}buildMonoValuedOption(e){return
|
|
975
|
+
`}buildMonoValuedOption(e){return Se.html`
|
|
974
976
|
<ft-radio name="${this.filterId+Math.round(Math.random()*1e6)}"
|
|
975
977
|
part="monovalued-option option"
|
|
976
978
|
data-value="${e.value}"
|
|
@@ -981,7 +983,7 @@
|
|
|
981
983
|
@change=${r=>this.optionsChanged(r,e)}>
|
|
982
984
|
${e.renderOption?e.renderOption:e.label}${this.displayCount?` (${e.count})`:""}
|
|
983
985
|
</ft-radio>
|
|
984
|
-
`}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)})}};H.elementDefinitions={"ft-button":_,"ft-ripple":P,"ft-typography":Y,"ft-checkbox":re,"ft-icon":le,"ft-radio":se};H.styles=gc;ne([(0,J.property)({type:String})],H.prototype,"filterId",void 0);ne([(0,J.property)({type:Object})],H.prototype,"parent",void 0);ne([(0,J.property)({type:Array,hasChanged:
|
|
986
|
+
`}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)})}};H.elementDefinitions={"ft-button":_,"ft-ripple":P,"ft-typography":Y,"ft-checkbox":re,"ft-icon":le,"ft-radio":se};H.styles=gc;ne([(0,J.property)({type:String})],H.prototype,"filterId",void 0);ne([(0,J.property)({type:Object})],H.prototype,"parent",void 0);ne([(0,J.property)({type:Array,hasChanged:fe.hasChanged})],H.prototype,"options",void 0);ne([(0,J.property)({type:Boolean})],H.prototype,"multivalued",void 0);ne([(0,J.property)({type:Boolean})],H.prototype,"disabled",void 0);ne([(0,J.property)({type:Boolean})],H.prototype,"hideSelectedOptions",void 0);ne([(0,J.property)({type:Boolean})],H.prototype,"displayCount",void 0);ne([(0,J.property)({type:Boolean})],H.prototype,"preventNavigation",void 0);ne([(0,J.property)({type:String})],H.prototype,"filter",void 0);ne([(0,J.property)({type:String})],H.prototype,"moreValuesButtonLabel",void 0);ne([(0,J.property)({type:String})],H.prototype,"noValuesLabel",void 0);ne([(0,J.property)()],H.prototype,"filteredOptionsNumberAriaNotification",void 0);ne([(0,fe.numberProperty)()],H.prototype,"displayedValuesLimit",void 0);ne([(0,J.query)(".ft-filter-level--container")],H.prototype,"container",void 0);ne([(0,J.state)()],H.prototype,"radios",void 0);ne([(0,J.state)()],H.prototype,"displayedPages",void 0);ne([(0,J.state)()],H.prototype,"filteredOptions",void 0);var Ac=f(L()),Ae=f(z()),Ht=f(E());var Ec=f(er());var xc=f(L()),Ve=f(E());var xt={buttonsColor:Ve.FtCssVariableFactory.extend("--ft-snap-scroll-buttons-color","",Ve.designSystemVariables.colorPrimary),buttonsZIndex:Ve.FtCssVariableFactory.create("--ft-snap-scroll-buttons-z-index","","NUMBER","1"),gap:Ve.FtCssVariableFactory.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:Ve.FtCssVariableFactory.external(Ve.designSystemVariables.colorSurface,"Design system")},Sc=xc.css`
|
|
985
987
|
.ft-snap-scroll {
|
|
986
988
|
box-sizing: border-box;
|
|
987
989
|
position: relative;
|
|
@@ -1062,8 +1064,8 @@
|
|
|
1062
1064
|
z-index: ${xt.buttonsZIndex};
|
|
1063
1065
|
opacity: 1;
|
|
1064
1066
|
transition: background-color .5s ease-in-out, opacity .5s ease-in-out, z-index .5s ease-in-out;
|
|
1065
|
-
${(0,
|
|
1066
|
-
${(0,
|
|
1067
|
+
${(0,Ve.setVariable)(k.backgroundColor,"transparent")};
|
|
1068
|
+
${(0,Ve.setVariable)(k.color,xt.buttonsColor)};
|
|
1067
1069
|
}
|
|
1068
1070
|
|
|
1069
1071
|
.ft-snap-scroll--previous[hidden],
|
|
@@ -1130,7 +1132,7 @@
|
|
|
1130
1132
|
@click=${this.next}
|
|
1131
1133
|
></ft-button>
|
|
1132
1134
|
</div>
|
|
1133
|
-
`}update(e){super.update(e),e.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),e.has("currentElement")&&this.dispatchEvent(new eo(this.currentElement,this.elements[this.currentElement]))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),this.contentSlot&&this.listenedContainer!==this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,(r=this.listenedContainer)===null||r===void 0||r.addEventListener("scroll",this.updateScrollCallback))}onScroll(){this.scrollDebouncer.run(()=>this.snap()),this.scheduleUpdateScroll()}snap(){let e=this.closestElementFromStart();if(e!=null){let r=this.getDistanceFromStart(e);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<r&&(e=this.lastElement),this.scrollToElement(e)}}scrollToElement(e){var r,n;e&&(this.horizontal?(r=this.contentSlot)===null||r===void 0||r.scrollTo({left:this.getOffset(e)-this.controlsSize,behavior:"smooth"}):(n=this.contentSlot)===null||n===void 0||n.scrollTo({top:this.getOffset(e)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(e))}onSlotChange(){var e,r;this.elements=(r=(e=this.contentSlot)===null||e===void 0?void 0:e.assignedElements().map(n=>n))!==null&&r!==void 0?r:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let e=-1;for(let r=0;r<this.elements.length;r++)(e<0||this.getDistanceFromStart(this.elements[r])<this.getDistanceFromStart(this.elements[e]))&&(e=r);return e}scheduleUpdateScroll(){this.updateScrollDebouncer.run(()=>this.updateScroll())}updateScroll(){this.contentSlot!=null?(this.withScroll=this.contentSlot[this.scrollSizeAttribute]>this.contentSlot[this.sizeAttribute],this.startReached=this.contentSlot[this.scrollAttribute]===0,this.endReached=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]+1>=this.contentSlot[this.scrollSizeAttribute]):(this.withScroll=!1,this.startReached=!0,this.endReached=!0)}get lastElement(){return this.elements[this.elements.length-1]}get firstElementOffset(){let e=this.elements[0];return e?e[this.offsetAttribute]:0}get controlsSize(){return this.controls?36:0}get nextSize(){return this.endReached?0:this.controlsSize}get prevSize(){return this.startReached?0:this.controlsSize}getOffset(e){return e[this.offsetAttribute]-this.firstElementOffset}getDistanceFromStart(e){let r=e===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(e)-this.contentSlot[this.scrollAttribute]-r)}};Z.elementDefinitions={"ft-button":_};Z.styles=Sc;Je([(0,
|
|
1135
|
+
`}update(e){super.update(e),e.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),e.has("currentElement")&&this.dispatchEvent(new eo(this.currentElement,this.elements[this.currentElement]))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),this.contentSlot&&this.listenedContainer!==this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,(r=this.listenedContainer)===null||r===void 0||r.addEventListener("scroll",this.updateScrollCallback))}onScroll(){this.scrollDebouncer.run(()=>this.snap()),this.scheduleUpdateScroll()}snap(){let e=this.closestElementFromStart();if(e!=null){let r=this.getDistanceFromStart(e);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<r&&(e=this.lastElement),this.scrollToElement(e)}}scrollToElement(e){var r,n;e&&(this.horizontal?(r=this.contentSlot)===null||r===void 0||r.scrollTo({left:this.getOffset(e)-this.controlsSize,behavior:"smooth"}):(n=this.contentSlot)===null||n===void 0||n.scrollTo({top:this.getOffset(e)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(e))}onSlotChange(){var e,r;this.elements=(r=(e=this.contentSlot)===null||e===void 0?void 0:e.assignedElements().map(n=>n))!==null&&r!==void 0?r:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let e=-1;for(let r=0;r<this.elements.length;r++)(e<0||this.getDistanceFromStart(this.elements[r])<this.getDistanceFromStart(this.elements[e]))&&(e=r);return e}scheduleUpdateScroll(){this.updateScrollDebouncer.run(()=>this.updateScroll())}updateScroll(){this.contentSlot!=null?(this.withScroll=this.contentSlot[this.scrollSizeAttribute]>this.contentSlot[this.sizeAttribute],this.startReached=this.contentSlot[this.scrollAttribute]===0,this.endReached=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]+1>=this.contentSlot[this.scrollSizeAttribute]):(this.withScroll=!1,this.startReached=!0,this.endReached=!0)}get lastElement(){return this.elements[this.elements.length-1]}get firstElementOffset(){let e=this.elements[0];return e?e[this.offsetAttribute]:0}get controlsSize(){return this.controls?36:0}get nextSize(){return this.endReached?0:this.controlsSize}get prevSize(){return this.startReached?0:this.controlsSize}getOffset(e){return e[this.offsetAttribute]-this.firstElementOffset}getDistanceFromStart(e){let r=e===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(e)-this.contentSlot[this.scrollAttribute]-r)}};Z.elementDefinitions={"ft-button":_};Z.styles=Sc;Je([(0,Ae.property)({type:Boolean})],Z.prototype,"horizontal",void 0);Je([(0,Ae.property)({type:Boolean})],Z.prototype,"hideScrollbar",void 0);Je([(0,Ae.property)({type:Boolean})],Z.prototype,"controls",void 0);Je([(0,Ae.property)({type:Boolean})],Z.prototype,"limitSize",void 0);Je([(0,Ae.state)()],Z.prototype,"elements",void 0);Je([(0,Ae.state)()],Z.prototype,"currentElement",void 0);Je([(0,Ae.state)()],Z.prototype,"withScroll",void 0);Je([(0,Ae.state)()],Z.prototype,"startReached",void 0);Je([(0,Ae.state)()],Z.prototype,"endReached",void 0);Je([(0,Ae.query)(".ft-snap-scroll--content")],Z.prototype,"contentSlot",void 0);var Oc=f(E());var Cc={"ft-snap-scroll":Z};(0,Oc.customElements)(Cc);var wc=f(L()),M=f(E());var De={colorOutline:M.FtCssVariableFactory.external(M.designSystemVariables.colorOutline,"Design system"),colorOnSurface:M.FtCssVariableFactory.external(M.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:M.FtCssVariableFactory.external(M.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorPrimary:M.FtCssVariableFactory.external(M.designSystemVariables.colorPrimary,"Design system"),colorSurface:M.FtCssVariableFactory.external(M.designSystemVariables.colorSurface,"Design system"),transitionDuration:M.FtCssVariableFactory.external(M.designSystemVariables.transitionDuration,"Design system"),transitionTimingFunction:M.FtCssVariableFactory.external(M.designSystemVariables.transitionTimingFunction,"Design system"),labelColor:M.FtCssVariableFactory.extend("--ft-filter-label-color","",M.designSystemVariables.colorOnSurface),labelFontSize:M.FtCssVariableFactory.extend("--ft-filter-label-font-size","",b.fontSize,"16px")},Tc=[Xr,M.noTextInputDefaultClearButton,wc.css`
|
|
1134
1136
|
:host {
|
|
1135
1137
|
display: flex;
|
|
1136
1138
|
max-height: 100%;
|
|
@@ -1158,7 +1160,7 @@
|
|
|
1158
1160
|
.ft-filter--header ft-button {
|
|
1159
1161
|
flex-shrink: 0;
|
|
1160
1162
|
margin-left: auto;
|
|
1161
|
-
${(0,M.setVariable)(
|
|
1163
|
+
${(0,M.setVariable)(k.iconSize,"18px")};
|
|
1162
1164
|
}
|
|
1163
1165
|
|
|
1164
1166
|
.filter-label {
|
|
@@ -1331,9 +1333,9 @@
|
|
|
1331
1333
|
noValuesLabel="${this.noValuesLabel}"
|
|
1332
1334
|
.filteredOptionsNumberAriaNotification=${this.filteredOptionsNumberAriaNotification}
|
|
1333
1335
|
></ft-filter-level>
|
|
1334
|
-
`}goBack(e){this.slideOut=e.detail.value,(0,F.waitUntil)(()=>this.slideOut===void 0).then(()=>{var r;let n=(r=this.levelsContainer)===null||r===void 0?void 0:r.querySelector(".ft-filter--level-center");n?.focusOnExpandButton(e.detail.value)})}onDisplayLevel(e){this.displayedLevels.push(e.detail.value),this.slideIn=e.detail.value,(0,F.waitUntil)(()=>this.slideIn===void 0).then(()=>{var r;let n=(r=this.levelsContainer)===null||r===void 0?void 0:r.querySelector(".ft-filter--level-center");n?.focusOnBackButton()})}focusOnFirstOption(){(0,F.waitUntil)(()=>this.slideOut===void 0).then(()=>{var e;let r=(e=this.levelsContainer)===null||e===void 0?void 0:e.querySelector(".ft-filter--level-center");r?.focusOnFirstOption()})}clear(){if(this.flatOptions.forEach(e=>e.selected=!1),this.displayedLevels.length>0){let e=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[e],this.slideOut=e}this.optionsChanged()}onChange(e){var r;e.stopPropagation();let n=this.flatOptions.find(o=>o.value===e.detail.value);n.selected=!n.selected;let i=o=>{var s;o!==n&&(o.selected=!1),(s=o.subOptions)===null||s===void 0||s.forEach(i)};this.multivalued?(r=n.subOptions)===null||r===void 0||r.forEach(i):this.options.forEach(i),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run(()=>{var e;this.sendEventIfValuesChanged(),this.requestUpdate(),(e=this.levels)===null||e===void 0||e.forEach(r=>r.updateFilteredOptions())})}sendEventIfValuesChanged(){let e=this.selectedValues;(0,F.deepEqual)(this.lastDispatchedValues,e)||(this.dispatchEvent(new to(e)),this.lastDispatchedValues=e)}updateOptionsFromSlot(e){e.stopPropagation(),this.options=this.slotElement.assignedElements().map(r=>r),this.optionsChanged()}onFilterChange(){var e,r;this.filter=(r=(e=this.filterInput)===null||e===void 0?void 0:e.value)!==null&&r!==void 0?r:""}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}};R.elementDefinitions={"ft-button":_,"ft-filter-level":H,"ft-snap-scroll":Z,"ft-typography":Y};R.styles=Tc;$([(0,N.property)({type:String})],R.prototype,"id",void 0);$([(0,N.property)({type:String})],R.prototype,"label",void 0);$([(0,N.property)({type:String})],R.prototype,"filterPlaceHolder",void 0);$([(0,N.property)({type:String})],R.prototype,"clearButtonLabel",void 0);$([(0,N.property)({type:String})],R.prototype,"moreValuesButtonLabel",void 0);$([(0,N.property)({type:String})],R.prototype,"noValuesLabel",void 0);$([(0,F.jsonProperty)([])],R.prototype,"options",void 0);$([(0,N.property)({type:Boolean})],R.prototype,"multivalued",void 0);$([(0,N.property)({type:Boolean})],R.prototype,"disabled",void 0);$([(0,N.property)({type:Boolean})],R.prototype,"raiseSelectedOptions",void 0);$([(0,N.property)({type:Boolean})],R.prototype,"displayCount",void 0);$([(0,F.numberProperty)()],R.prototype,"displayedValuesLimit",void 0);$([(0,F.jsonProperty)(void 0)],R.prototype,"filteredOptionsNumberAriaNotification",void 0);$([(0,N.property)({type:Boolean})],R.prototype,"hideClearButton",void 0);$([(0,N.query)(".ft-filter--slot")],R.prototype,"slotElement",void 0);$([(0,N.query)(".ft-filter--container")],R.prototype,"container",void 0);$([(0,N.query)(".ft-filter--values")],R.prototype,"valuesContainer",void 0);$([(0,N.query)(".ft-filter--levels")],R.prototype,"levelsContainer",void 0);$([(0,N.state)()],R.prototype,"lastLevelHasHiddenvalues",void 0);$([(0,N.query)(".ft-filter--filter input")],R.prototype,"filterInput",void 0);$([(0,N.queryAll)(".ft-filter--levels ft-filter-level")],R.prototype,"levels",void 0);$([(0,N.state)()],R.prototype,"withScroll",void 0);$([(0,N.state)()],R.prototype,"filter",void 0);$([(0,N.state)()],R.prototype,"slideIn",void 0);$([(0,N.state)()],R.prototype,"slideOut",void 0);var Hn=f(E()),Ft=f(z()),_c=f(L()),yr=function(t,e,r,n){var i=arguments.length,o=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(i<3?s(o):i>3?s(e,r,o):s(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o},
|
|
1336
|
+
`}goBack(e){this.slideOut=e.detail.value,(0,F.waitUntil)(()=>this.slideOut===void 0).then(()=>{var r;let n=(r=this.levelsContainer)===null||r===void 0?void 0:r.querySelector(".ft-filter--level-center");n?.focusOnExpandButton(e.detail.value)})}onDisplayLevel(e){this.displayedLevels.push(e.detail.value),this.slideIn=e.detail.value,(0,F.waitUntil)(()=>this.slideIn===void 0).then(()=>{var r;let n=(r=this.levelsContainer)===null||r===void 0?void 0:r.querySelector(".ft-filter--level-center");n?.focusOnBackButton()})}focusOnFirstOption(){(0,F.waitUntil)(()=>this.slideOut===void 0).then(()=>{var e;let r=(e=this.levelsContainer)===null||e===void 0?void 0:e.querySelector(".ft-filter--level-center");r?.focusOnFirstOption()})}clear(){if(this.flatOptions.forEach(e=>e.selected=!1),this.displayedLevels.length>0){let e=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[e],this.slideOut=e}this.optionsChanged()}onChange(e){var r;e.stopPropagation();let n=this.flatOptions.find(o=>o.value===e.detail.value);n.selected=!n.selected;let i=o=>{var s;o!==n&&(o.selected=!1),(s=o.subOptions)===null||s===void 0||s.forEach(i)};this.multivalued?(r=n.subOptions)===null||r===void 0||r.forEach(i):this.options.forEach(i),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run(()=>{var e;this.sendEventIfValuesChanged(),this.requestUpdate(),(e=this.levels)===null||e===void 0||e.forEach(r=>r.updateFilteredOptions())})}sendEventIfValuesChanged(){let e=this.selectedValues;(0,F.deepEqual)(this.lastDispatchedValues,e)||(this.dispatchEvent(new to(e)),this.lastDispatchedValues=e)}updateOptionsFromSlot(e){e.stopPropagation(),this.options=this.slotElement.assignedElements().map(r=>r),this.optionsChanged()}onFilterChange(){var e,r;this.filter=(r=(e=this.filterInput)===null||e===void 0?void 0:e.value)!==null&&r!==void 0?r:""}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}};R.elementDefinitions={"ft-button":_,"ft-filter-level":H,"ft-snap-scroll":Z,"ft-typography":Y};R.styles=Tc;$([(0,N.property)({type:String})],R.prototype,"id",void 0);$([(0,N.property)({type:String})],R.prototype,"label",void 0);$([(0,N.property)({type:String})],R.prototype,"filterPlaceHolder",void 0);$([(0,N.property)({type:String})],R.prototype,"clearButtonLabel",void 0);$([(0,N.property)({type:String})],R.prototype,"moreValuesButtonLabel",void 0);$([(0,N.property)({type:String})],R.prototype,"noValuesLabel",void 0);$([(0,F.jsonProperty)([])],R.prototype,"options",void 0);$([(0,N.property)({type:Boolean})],R.prototype,"multivalued",void 0);$([(0,N.property)({type:Boolean})],R.prototype,"disabled",void 0);$([(0,N.property)({type:Boolean})],R.prototype,"raiseSelectedOptions",void 0);$([(0,N.property)({type:Boolean})],R.prototype,"displayCount",void 0);$([(0,F.numberProperty)()],R.prototype,"displayedValuesLimit",void 0);$([(0,F.jsonProperty)(void 0)],R.prototype,"filteredOptionsNumberAriaNotification",void 0);$([(0,N.property)({type:Boolean})],R.prototype,"hideClearButton",void 0);$([(0,N.query)(".ft-filter--slot")],R.prototype,"slotElement",void 0);$([(0,N.query)(".ft-filter--container")],R.prototype,"container",void 0);$([(0,N.query)(".ft-filter--values")],R.prototype,"valuesContainer",void 0);$([(0,N.query)(".ft-filter--levels")],R.prototype,"levelsContainer",void 0);$([(0,N.state)()],R.prototype,"lastLevelHasHiddenvalues",void 0);$([(0,N.query)(".ft-filter--filter input")],R.prototype,"filterInput",void 0);$([(0,N.queryAll)(".ft-filter--levels ft-filter-level")],R.prototype,"levels",void 0);$([(0,N.state)()],R.prototype,"withScroll",void 0);$([(0,N.state)()],R.prototype,"filter",void 0);$([(0,N.state)()],R.prototype,"slideIn",void 0);$([(0,N.state)()],R.prototype,"slideOut",void 0);var Hn=f(E()),Ft=f(z()),_c=f(L()),yr=function(t,e,r,n){var i=arguments.length,o=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(i<3?s(o):i>3?s(e,r,o):s(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o},ze=class extends Hn.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return _c.html`
|
|
1335
1337
|
<slot class="ft-filter-option--slot" @slotchange=${this.updateSubOptionsFromSlot}></slot>
|
|
1336
|
-
`}updateSubOptionsFromSlot(e){e.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map(r=>r)}update(e){super.update(e),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};
|
|
1338
|
+
`}updateSubOptionsFromSlot(e){e.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map(r=>r)}update(e){super.update(e),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};ze.elementDefinitions={};yr([(0,Ft.property)({type:String})],ze.prototype,"label",void 0);yr([(0,Ft.property)({type:Object,converter:t=>t})],ze.prototype,"value",void 0);yr([(0,Ft.property)({type:Boolean,reflect:!0})],ze.prototype,"selected",void 0);yr([(0,Ft.property)({type:Object})],ze.prototype,"subOptions",void 0);yr([(0,Hn.jsonProperty)({})],ze.prototype,"renderOption",void 0);yr([(0,Ft.query)(".ft-filter-option--slot")],ze.prototype,"slotElement",void 0);var Rc={"ft-filter":R,"ft-filter-option":ze};(0,Lc.customElements)(Rc);})();
|
|
1337
1339
|
/*! Bundled license information:
|
|
1338
1340
|
|
|
1339
1341
|
lit-html/lit-html.js:
|