@fluid-topics/ft-reader-search-in-document 2.1.19 → 2.1.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- "use strict";(()=>{var wx=Object.create;var Ea=Object.defineProperty;var Rx=Object.getOwnPropertyDescriptor;var Tx=Object.getOwnPropertyNames;var _x=Object.getPrototypeOf,kx=Object.prototype.hasOwnProperty;var l=(t,e,r)=>()=>{if(r)throw r[0];try{return t&&(e=t(t=0)),e}catch(i){throw r=[i],i}};var Hi=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}},si=(t,e)=>{for(var r in e)Ea(t,r,{get:e[r],enumerable:!0})},Lx=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of Tx(e))!kx.call(t,o)&&o!==r&&Ea(t,o,{get:()=>e[o],enumerable:!(i=Rx(e,o))||i.enumerable});return t};var u=(t,e,r)=>(r=t!=null?wx(_x(t)):{},Lx(e||!t||!t.__esModule?Ea(r,"default",{value:t,enumerable:!0}):r,t));var m=Hi((b0,Fu)=>{Fu.exports=ftGlobals.wcUtils});var b=Hi((x0,Bu)=>{Bu.exports=ftGlobals.lit});var qu,xe,Uu,q,Hu,Vu,ju,zu,Ku,gr=l(()=>{"use strict";qu=u(b()),xe=u(m()),Uu=xe.FtCssVariableFactory.extend("--ft-ripple-color","",xe.designSystemVariables.colorContent),q={color:Uu,backgroundColor:xe.FtCssVariableFactory.extend("--ft-ripple-background-color","",Uu),opacityContentOnSurfacePressed:xe.FtCssVariableFactory.external(xe.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:xe.FtCssVariableFactory.external(xe.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:xe.FtCssVariableFactory.external(xe.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:xe.FtCssVariableFactory.external(xe.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:xe.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},Hu=xe.FtCssVariableFactory.extend("--ft-ripple-color","",xe.designSystemVariables.colorPrimary),Vu={color:Hu,backgroundColor:xe.FtCssVariableFactory.extend("--ft-ripple-background-color","",Hu)},ju=xe.FtCssVariableFactory.extend("--ft-ripple-color","",xe.designSystemVariables.colorSecondary),zu={color:ju,backgroundColor:xe.FtCssVariableFactory.extend("--ft-ripple-background-color","",ju)},Ku=qu.css`
1
+ "use strict";(()=>{var Ex=Object.create;var Ca=Object.defineProperty;var Ax=Object.getOwnPropertyDescriptor;var Ox=Object.getOwnPropertyNames;var wx=Object.getPrototypeOf,Rx=Object.prototype.hasOwnProperty;var l=(t,e,r)=>()=>{if(r)throw r[0];try{return t&&(e=t(t=0)),e}catch(i){throw r=[i],i}};var Hi=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}},si=(t,e)=>{for(var r in e)Ca(t,r,{get:e[r],enumerable:!0})},Tx=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of Ox(e))!Rx.call(t,o)&&o!==r&&Ca(t,o,{get:()=>e[o],enumerable:!(i=Ax(e,o))||i.enumerable});return t};var u=(t,e,r)=>(r=t!=null?Ex(wx(t)):{},Tx(e||!t||!t.__esModule?Ca(r,"default",{value:t,enumerable:!0}):r,t));var m=Hi((v0,Du)=>{Du.exports=ftGlobals.wcUtils});var b=Hi((y0,Mu)=>{Mu.exports=ftGlobals.lit});var Vu,xe,Nu,q,Fu,Bu,Uu,Hu,ju,gr=l(()=>{"use strict";Vu=u(b()),xe=u(m()),Nu=xe.FtCssVariableFactory.extend("--ft-ripple-color","",xe.designSystemVariables.colorContent),q={color:Nu,backgroundColor:xe.FtCssVariableFactory.extend("--ft-ripple-background-color","",Nu),opacityContentOnSurfacePressed:xe.FtCssVariableFactory.external(xe.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:xe.FtCssVariableFactory.external(xe.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:xe.FtCssVariableFactory.external(xe.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:xe.FtCssVariableFactory.external(xe.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:xe.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},Fu=xe.FtCssVariableFactory.extend("--ft-ripple-color","",xe.designSystemVariables.colorPrimary),Bu={color:Fu,backgroundColor:xe.FtCssVariableFactory.extend("--ft-ripple-background-color","",Fu)},Uu=xe.FtCssVariableFactory.extend("--ft-ripple-color","",xe.designSystemVariables.colorSecondary),Hu={color:Uu,backgroundColor:xe.FtCssVariableFactory.extend("--ft-ripple-background-color","",Uu)},ju=Vu.css`
2
2
  :host {
3
3
  display: contents;
4
4
  }
@@ -53,19 +53,19 @@
53
53
  }
54
54
 
55
55
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
56
- background-color: ${zu.backgroundColor};
56
+ background-color: ${Hu.backgroundColor};
57
57
  }
58
58
 
59
59
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
60
- background-color: ${zu.color};
60
+ background-color: ${Hu.color};
61
61
  }
62
62
 
63
63
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
64
- background-color: ${Vu.backgroundColor};
64
+ background-color: ${Bu.backgroundColor};
65
65
  }
66
66
 
67
67
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
68
- background-color: ${Vu.color};
68
+ background-color: ${Bu.color};
69
69
  }
70
70
 
71
71
  .ft-ripple .ft-ripple--background {
@@ -110,20 +110,20 @@
110
110
  opacity: ${q.opacityContentOnSurfacePressed};
111
111
  transform: translate(-50%, -50%) scale(1);
112
112
  }
113
- `});var B=Hi((A0,Qu)=>{Qu.exports=ftGlobals.litDecorators});var it=Hi((O0,Xu)=>{Xu.exports=ftGlobals.litClassMap});var Yu,Le,Zu,$o,ot,L,Aa=l(()=>{"use strict";Yu=u(b()),Le=u(B()),Zu=u(it()),$o=u(m());gr();ot=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},L=class extends $o.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 $o.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 $o.Debouncer(10),this.moveRipple=e=>{var r,i;let{x:o,y:n}=this.getCoordinates(e),s=(i=(r=this.ripple)===null||r===void 0?void 0:r.getBoundingClientRect())!==null&&i!==void 0?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(o!=null?o-s.x:s.width/2),this.originY=Math.round(n!=null?n-s.y:s.height/2)},this.startPress=e=>{this.moveRipple(e),this.pressed=!this.isIgnored(e)},this.endPress=()=>{this.pressed=!1},this.startHover=e=>{this.hovered=!this.isIgnored(e)},this.endHover=()=>{this.hovered=!1},this.startFocus=e=>{this.focused=this.isFocusVisible(e?.target)&&!this.isIgnored(e)},this.endFocus=()=>{this.focused=!1}}render(){let e={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return Yu.html`
113
+ `});var B=Hi((C0,Ku)=>{Ku.exports=ftGlobals.litDecorators});var it=Hi((E0,Wu)=>{Wu.exports=ftGlobals.litClassMap});var Gu,Le,Qu,$o,ot,L,Ea=l(()=>{"use strict";Gu=u(b()),Le=u(B()),Qu=u(it()),$o=u(m());gr();ot=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},L=class extends $o.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 $o.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 $o.Debouncer(10),this.moveRipple=e=>{var r,i;let{x:o,y:n}=this.getCoordinates(e),s=(i=(r=this.ripple)===null||r===void 0?void 0:r.getBoundingClientRect())!==null&&i!==void 0?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(o!=null?o-s.x:s.width/2),this.originY=Math.round(n!=null?n-s.y:s.height/2)},this.startPress=e=>{this.moveRipple(e),this.pressed=!this.isIgnored(e)},this.endPress=()=>{this.pressed=!1},this.startHover=e=>{this.hovered=!this.isIgnored(e)},this.endHover=()=>{this.hovered=!1},this.startFocus=e=>{this.focused=this.isFocusVisible(e?.target)&&!this.isIgnored(e)},this.endFocus=()=>{this.focused=!1}}render(){let e={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return Gu.html`
114
114
  <style>
115
115
  .ft-ripple .ft-ripple--effect {
116
116
  left: ${this.originX}px;
117
117
  top: ${this.originY}px;
118
118
  }
119
119
  </style>
120
- <div class="${(0,Zu.classMap)(e)}">
120
+ <div class="${(0,Qu.classMap)(e)}">
121
121
  <div class="ft-ripple--background"></div>
122
122
  <div class="ft-ripple--effect"></div>
123
123
  </div>
124
- `}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var r,i;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(i=this.target)===null||i===void 0||i.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var e,r;let i=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;i&&this.setupFor((r=this.target)!==null&&r!==void 0?r:i)}forceFocusUpdate(){var e;!((e=this.target)===null||e===void 0)&&e.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let r=(...a)=>c=>{a.forEach(p=>window.addEventListener(p,this.endPress,{once:!0})),this.startPress(c)},i=r("mouseup","contextmenu"),o=r("touchend","touchcancel"),n=a=>{["Enter"," "].includes(a.key)&&r("keyup")(a)},s={passive:!0};e.addEventListener("mouseover",this.startHover,s),e.addEventListener("mousemove",this.moveRipple,s),e.addEventListener("mouseleave",this.endHover,s),e.addEventListener("mousedown",i,s),e.addEventListener("touchstart",o,s),e.addEventListener("touchmove",this.moveRipple,s),e.addEventListener("keydown",n,s),e.addEventListener("focus",this.startFocus,s),e.addEventListener("blur",this.endFocus,s),e.addEventListener("focusin",this.startFocus,s),e.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,s),e.removeEventListener("mousemove",this.moveRipple,s),e.removeEventListener("mouseleave",this.endHover,s),e.removeEventListener("mousedown",i,s),e.removeEventListener("touchstart",o,s),e.removeEventListener("touchmove",this.moveRipple,s),e.removeEventListener("keydown",n,s),e.removeEventListener("focus",this.startFocus,s),e.removeEventListener("blur",this.endFocus,s),e.removeEventListener("focusin",this.startFocus,s),e.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let r=e,i=e,o,n;return r.x!=null?{x:o,y:n}=r:i.touches!=null&&(o=i.touches[0].clientX,n=i.touches[0].clientY),{x:o,y:n}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let r of e.composedPath()){if(r===this.target)break;if("hasAttribute"in r&&r.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};L.elementDefinitions={};L.styles=Ku;ot([(0,Le.property)({type:Boolean})],L.prototype,"primary",void 0);ot([(0,Le.property)({type:Boolean})],L.prototype,"secondary",void 0);ot([(0,Le.property)({type:Boolean})],L.prototype,"unbounded",void 0);ot([(0,Le.property)({type:Boolean})],L.prototype,"activated",void 0);ot([(0,Le.property)({type:Boolean})],L.prototype,"selected",void 0);ot([(0,Le.property)({type:Boolean})],L.prototype,"disabled",void 0);ot([(0,Le.state)()],L.prototype,"hovered",void 0);ot([(0,Le.state)()],L.prototype,"focused",void 0);ot([(0,Le.state)()],L.prototype,"pressed",void 0);ot([(0,Le.state)()],L.prototype,"rippling",void 0);ot([(0,Le.state)()],L.prototype,"originX",void 0);ot([(0,Le.state)()],L.prototype,"originY",void 0);ot([(0,Le.query)(".ft-ripple")],L.prototype,"ripple",void 0);ot([(0,Le.query)(".ft-ripple--effect")],L.prototype,"rippleEffect",void 0)});var Ju=l(()=>{"use strict"});var ep,tp=l(()=>{"use strict";Aa();ep={"ft-ripple":L}});var rp,ip=l(()=>{"use strict";rp=u(m());tp();(0,rp.customElements)(ep)});var Ge=l(()=>{"use strict";Aa();gr();Ju();ip()});function vp(t,e){if(!Pa(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return np!==void 0?np.createHTML(e):e}function Vi(t,e,r=t,i){if(e===Mo)return e;let o=i!==void 0?r._$Co?.[i]:r._$Cl,n=Do(e)?void 0:e._$litDirective$;return o?.constructor!==n&&(o?._$AO?.(!1),n===void 0?o=void 0:(o=new n(t),o._$AT(t,r,i)),i!==void 0?(r._$Co??=[])[i]=o:r._$Cl=o),o!==void 0&&(e=Vi(t,o._$AS(t,e.values),o,i)),e}var La,op,_n,np,pp,Ir,dp,Px,ci,kn,Do,Pa,$x,Oa,Io,sp,ap,ai,lp,cp,hp,$a,fp,mp,gp,Mo,Se,up,li,Ix,No,wa,Ln,ji,Ra,Ta,_a,ka,Dx,Ia=l(()=>{La=globalThis,op=t=>t,_n=La.trustedTypes,np=_n?_n.createPolicy("lit-html",{createHTML:t=>t}):void 0,pp="$lit$",Ir=`lit$${Math.random().toFixed(9).slice(2)}$`,dp="?"+Ir,Px=`<${dp}>`,ci=document,kn=()=>ci.createComment(""),Do=t=>t===null||typeof t!="object"&&typeof t!="function",Pa=Array.isArray,$x=t=>Pa(t)||typeof t?.[Symbol.iterator]=="function",Oa=`[
125
- \f\r]`,Io=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,sp=/-->/g,ap=/>/g,ai=RegExp(`>|${Oa}(?:([^\\s"'>=/]+)(${Oa}*=${Oa}*(?:[^
126
- \f\r"'\`<>=]|("|')|))|$)`,"g"),lp=/'/g,cp=/"/g,hp=/^(?:script|style|textarea|title)$/i,$a=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),fp=$a(1),mp=$a(2),gp=$a(3),Mo=Symbol.for("lit-noChange"),Se=Symbol.for("lit-nothing"),up=new WeakMap,li=ci.createTreeWalker(ci,129);Ix=(t,e)=>{let r=t.length-1,i=[],o,n=e===2?"<svg>":e===3?"<math>":"",s=Io;for(let a=0;a<r;a++){let c=t[a],p,d,h=-1,f=0;for(;f<c.length&&(s.lastIndex=f,d=s.exec(c),d!==null);)f=s.lastIndex,s===Io?d[1]==="!--"?s=sp:d[1]!==void 0?s=ap:d[2]!==void 0?(hp.test(d[2])&&(o=RegExp("</"+d[2],"g")),s=ai):d[3]!==void 0&&(s=ai):s===ai?d[0]===">"?(s=o??Io,h=-1):d[1]===void 0?h=-2:(h=s.lastIndex-d[2].length,p=d[1],s=d[3]===void 0?ai:d[3]==='"'?cp:lp):s===cp||s===lp?s=ai:s===sp||s===ap?s=Io:(s=ai,o=void 0);let g=s===ai&&t[a+1].startsWith("/>")?" ":"";n+=s===Io?c+Px:h>=0?(i.push(p),c.slice(0,h)+pp+c.slice(h)+Ir+g):c+Ir+(h===-2?a:g)}return[vp(t,n+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},No=class t{constructor({strings:e,_$litType$:r},i){let o;this.parts=[];let n=0,s=0,a=e.length-1,c=this.parts,[p,d]=Ix(e,r);if(this.el=t.createElement(p,i),li.currentNode=this.el.content,r===2||r===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(o=li.nextNode())!==null&&c.length<a;){if(o.nodeType===1){if(o.hasAttributes())for(let h of o.getAttributeNames())if(h.endsWith(pp)){let f=d[s++],g=o.getAttribute(h).split(Ir),v=/([.?@])?(.*)/.exec(f);c.push({type:1,index:n,name:v[2],strings:g,ctor:v[1]==="."?Ra:v[1]==="?"?Ta:v[1]==="@"?_a:ji}),o.removeAttribute(h)}else h.startsWith(Ir)&&(c.push({type:6,index:n}),o.removeAttribute(h));if(hp.test(o.tagName)){let h=o.textContent.split(Ir),f=h.length-1;if(f>0){o.textContent=_n?_n.emptyScript:"";for(let g=0;g<f;g++)o.append(h[g],kn()),li.nextNode(),c.push({type:2,index:++n});o.append(h[f],kn())}}}else if(o.nodeType===8)if(o.data===dp)c.push({type:2,index:n});else{let h=-1;for(;(h=o.data.indexOf(Ir,h+1))!==-1;)c.push({type:7,index:n}),h+=Ir.length-1}n++}}static createElement(e,r){let i=ci.createElement("template");return i.innerHTML=e,i}};wa=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:i}=this._$AD,o=(e?.creationScope??ci).importNode(r,!0);li.currentNode=o;let n=li.nextNode(),s=0,a=0,c=i[0];for(;c!==void 0;){if(s===c.index){let p;c.type===2?p=new Ln(n,n.nextSibling,this,e):c.type===1?p=new c.ctor(n,c.name,c.strings,this,e):c.type===6&&(p=new ka(n,this,e)),this._$AV.push(p),c=i[++a]}s!==c?.index&&(n=li.nextNode(),s++)}return li.currentNode=ci,o}p(e){let r=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,r),r+=i.strings.length-2):i._$AI(e[r])),r++}},Ln=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,i,o){this.type=2,this._$AH=Se,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=i,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=Vi(this,e,r),Do(e)?e===Se||e==null||e===""?(this._$AH!==Se&&this._$AR(),this._$AH=Se):e!==this._$AH&&e!==Mo&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):$x(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!==Se&&Do(this._$AH)?this._$AA.nextSibling.data=e:this.T(ci.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:i}=e,o=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=No.createElement(vp(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===o)this._$AH.p(r);else{let n=new wa(o,this),s=n.u(this.options);n.p(r),this.T(s),this._$AH=n}}_$AC(e){let r=up.get(e.strings);return r===void 0&&up.set(e.strings,r=new No(e)),r}k(e){Pa(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,o=0;for(let n of e)o===r.length?r.push(i=new t(this.O(kn()),this.O(kn()),this,this.options)):i=r[o],i._$AI(n),o++;o<r.length&&(this._$AR(i&&i._$AB.nextSibling,o),r.length=o)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e!==this._$AB;){let i=op(e).nextSibling;op(e).remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},ji=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,i,o,n){this.type=1,this._$AH=Se,this._$AN=void 0,this.element=e,this.name=r,this._$AM=o,this.options=n,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Se}_$AI(e,r=this,i,o){let n=this.strings,s=!1;if(n===void 0)e=Vi(this,e,r,0),s=!Do(e)||e!==this._$AH&&e!==Mo,s&&(this._$AH=e);else{let a=e,c,p;for(e=n[0],c=0;c<n.length-1;c++)p=Vi(this,a[i+c],r,c),p===Mo&&(p=this._$AH[c]),s||=!Do(p)||p!==this._$AH[c],p===Se?e=Se:e!==Se&&(e+=(p??"")+n[c+1]),this._$AH[c]=p}s&&!o&&this.j(e)}j(e){e===Se?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Ra=class extends ji{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Se?void 0:e}},Ta=class extends ji{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==Se)}},_a=class extends ji{constructor(e,r,i,o,n){super(e,r,i,o,n),this.type=5}_$AI(e,r=this){if((e=Vi(this,e,r,0)??Se)===Mo)return;let i=this._$AH,o=e===Se&&i!==Se||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,n=e!==Se&&(i===Se||o);o&&this.element.removeEventListener(this.name,this,i),n&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},ka=class{constructor(e,r,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){Vi(this,e)}},Dx=La.litHtmlPolyfillSupport;Dx?.(No,Ln),(La.litHtmlVersions??=[]).push("3.3.3")});var bp,Mx,Da,yp,Ma,Na,F0,B0,xp=l(()=>{Ia();bp=Symbol.for(""),Mx=t=>{if(t?.r===bp)return t?._$litStatic$},Da=t=>({_$litStatic$:t,r:bp}),yp=new Map,Ma=t=>(e,...r)=>{let i=r.length,o,n,s=[],a=[],c,p=0,d=!1;for(;p<i;){for(c=e[p];p<i&&(n=r[p],(o=Mx(n))!==void 0);)c+=o+e[++p],d=!0;p!==i&&a.push(n),s.push(c),p++}if(p===i&&s.push(e[i]),d){let h=s.join("$$lit$$");(e=yp.get(h))===void 0&&(s.raw=s,yp.set(h,e=s)),r=a}return t(e,...r)},Na=Ma(fp),F0=Ma(mp),B0=Ma(gp)});var Sp=l(()=>{xp()});var Q,Pn=l(()=>{"use strict";(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 wt,S,Cp,yr,C,zi,qi,Ki,Wi,vr,we,ft,Gi,Qi,tr,Ep,Ap,Op,wp,Rp,Dr,Mr,Tp,_p,kp,Lp,Ft=l(()=>{"use strict";wt=u(b()),S=u(m()),Cp=S.FtCssVariableFactory.extend("--ft-typography-font-family","",S.designSystemVariables.titleFont),yr=S.FtCssVariableFactory.extend("--ft-typography-font-family","",S.designSystemVariables.contentFont),C={fontFamily:yr,fontSize:S.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:S.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:S.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:S.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:S.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},zi={fontFamily:S.FtCssVariableFactory.extend("--ft-typography-title-font-family","",Cp),fontSize:S.FtCssVariableFactory.extend("--ft-typography-title-font-size","",C.fontSize,"20px"),fontWeight:S.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",C.fontWeight,"normal"),letterSpacing:S.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",C.letterSpacing,"0.15px"),lineHeight:S.FtCssVariableFactory.extend("--ft-typography-title-line-height","",C.lineHeight,"1.2"),textTransform:S.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",C.textTransform,"inherit")},qi={fontFamily:S.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",Cp),fontSize:S.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",C.fontSize,"14px"),fontWeight:S.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",C.fontWeight,"normal"),letterSpacing:S.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",C.letterSpacing,"0.105px"),lineHeight:S.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",C.lineHeight,"1.7"),textTransform:S.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",C.textTransform,"inherit")},Ki={fontFamily:S.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",yr),fontSize:S.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",C.fontSize,"16px"),fontWeight:S.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",C.fontWeight,"600"),letterSpacing:S.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",C.letterSpacing,"0.144px"),lineHeight:S.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",C.lineHeight,"1.5"),textTransform:S.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",C.textTransform,"inherit")},Wi={fontFamily:S.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",yr),fontSize:S.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",C.fontSize,"14px"),fontWeight:S.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",C.fontWeight,"normal"),letterSpacing:S.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",C.letterSpacing,"0.098px"),lineHeight:S.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",C.lineHeight,"1.7"),textTransform:S.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",C.textTransform,"inherit")},vr={fontFamily:S.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",yr),fontSize:S.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",C.fontSize,"16px"),fontWeight:S.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",C.fontWeight,"normal"),letterSpacing:S.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",C.letterSpacing,"0.496px"),lineHeight:S.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",C.lineHeight,"1.5"),textTransform:S.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",C.textTransform,"inherit")},we={fontFamily:S.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",yr),fontSize:S.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",C.fontSize,"14px"),fontWeight:S.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",C.fontWeight,"normal"),letterSpacing:S.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",C.letterSpacing,"0.252px"),lineHeight:S.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",C.lineHeight,"1.4"),textTransform:S.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",C.textTransform,"inherit")},ft={fontFamily:S.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",yr),fontSize:S.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",C.fontSize,"12px"),fontWeight:S.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",C.fontWeight,"normal"),letterSpacing:S.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",C.letterSpacing,"0.396px"),lineHeight:S.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",C.lineHeight,"1.33"),textTransform:S.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",C.textTransform,"inherit")},Gi={fontFamily:S.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",yr),fontSize:S.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",C.fontSize,"10px"),fontWeight:S.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",C.fontWeight,"normal"),letterSpacing:S.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",C.letterSpacing,"0.33px"),lineHeight:S.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",C.lineHeight,"1.6"),textTransform:S.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",C.textTransform,"inherit")},Qi={fontFamily:S.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",yr),fontSize:S.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",C.fontSize,"10px"),fontWeight:S.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",C.fontWeight,"normal"),letterSpacing:S.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",C.letterSpacing,"1.5px"),lineHeight:S.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",C.lineHeight,"1.6"),textTransform:S.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",C.textTransform,"uppercase")},tr={fontFamily:S.FtCssVariableFactory.extend("--ft-typography-button-font-family","",yr),fontSize:S.FtCssVariableFactory.extend("--ft-typography-button-font-size","",C.fontSize,"14px"),fontWeight:S.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",C.fontWeight,"600"),letterSpacing:S.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",C.letterSpacing,"1.246px"),lineHeight:S.FtCssVariableFactory.extend("--ft-typography-button-line-height","",C.lineHeight,"1.15"),textTransform:S.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",C.textTransform,"uppercase")},Ep=wt.css`
124
+ `}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var r,i;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(i=this.target)===null||i===void 0||i.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var e,r;let i=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;i&&this.setupFor((r=this.target)!==null&&r!==void 0?r:i)}forceFocusUpdate(){var e;!((e=this.target)===null||e===void 0)&&e.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let r=(...a)=>c=>{a.forEach(p=>window.addEventListener(p,this.endPress,{once:!0})),this.startPress(c)},i=r("mouseup","contextmenu"),o=r("touchend","touchcancel"),n=a=>{["Enter"," "].includes(a.key)&&r("keyup")(a)},s={passive:!0};e.addEventListener("mouseover",this.startHover,s),e.addEventListener("mousemove",this.moveRipple,s),e.addEventListener("mouseleave",this.endHover,s),e.addEventListener("mousedown",i,s),e.addEventListener("touchstart",o,s),e.addEventListener("touchmove",this.moveRipple,s),e.addEventListener("keydown",n,s),e.addEventListener("focus",this.startFocus,s),e.addEventListener("blur",this.endFocus,s),e.addEventListener("focusin",this.startFocus,s),e.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,s),e.removeEventListener("mousemove",this.moveRipple,s),e.removeEventListener("mouseleave",this.endHover,s),e.removeEventListener("mousedown",i,s),e.removeEventListener("touchstart",o,s),e.removeEventListener("touchmove",this.moveRipple,s),e.removeEventListener("keydown",n,s),e.removeEventListener("focus",this.startFocus,s),e.removeEventListener("blur",this.endFocus,s),e.removeEventListener("focusin",this.startFocus,s),e.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let r=e,i=e,o,n;return r.x!=null?{x:o,y:n}=r:i.touches!=null&&(o=i.touches[0].clientX,n=i.touches[0].clientY),{x:o,y:n}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let r of e.composedPath()){if(r===this.target)break;if("hasAttribute"in r&&r.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};L.elementDefinitions={};L.styles=ju;ot([(0,Le.property)({type:Boolean})],L.prototype,"primary",void 0);ot([(0,Le.property)({type:Boolean})],L.prototype,"secondary",void 0);ot([(0,Le.property)({type:Boolean})],L.prototype,"unbounded",void 0);ot([(0,Le.property)({type:Boolean})],L.prototype,"activated",void 0);ot([(0,Le.property)({type:Boolean})],L.prototype,"selected",void 0);ot([(0,Le.property)({type:Boolean})],L.prototype,"disabled",void 0);ot([(0,Le.state)()],L.prototype,"hovered",void 0);ot([(0,Le.state)()],L.prototype,"focused",void 0);ot([(0,Le.state)()],L.prototype,"pressed",void 0);ot([(0,Le.state)()],L.prototype,"rippling",void 0);ot([(0,Le.state)()],L.prototype,"originX",void 0);ot([(0,Le.state)()],L.prototype,"originY",void 0);ot([(0,Le.query)(".ft-ripple")],L.prototype,"ripple",void 0);ot([(0,Le.query)(".ft-ripple--effect")],L.prototype,"rippleEffect",void 0)});var Xu=l(()=>{"use strict"});var Yu,Zu=l(()=>{"use strict";Ea();Yu={"ft-ripple":L}});var Ju,ep=l(()=>{"use strict";Ju=u(m());Zu();(0,Ju.customElements)(Yu)});var Ge=l(()=>{"use strict";Ea();gr();Xu();ep()});function fp(t,e){if(!La(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return rp!==void 0?rp.createHTML(e):e}function Vi(t,e,r=t,i){if(e===Mo)return e;let o=i!==void 0?r._$Co?.[i]:r._$Cl,n=Do(e)?void 0:e._$litDirective$;return o?.constructor!==n&&(o?._$AO?.(!1),n===void 0?o=void 0:(o=new n(t),o._$AT(t,r,i)),i!==void 0?(r._$Co??=[])[i]=o:r._$Cl=o),o!==void 0&&(e=Vi(t,o._$AS(t,e.values),o,i)),e}var ka,tp,_n,rp,lp,Ir,cp,_x,ci,kn,Do,La,kx,Aa,Io,ip,op,ai,np,sp,up,Pa,pp,dp,hp,Mo,Se,ap,li,Lx,No,Oa,Ln,ji,wa,Ra,Ta,_a,Px,$a=l(()=>{ka=globalThis,tp=t=>t,_n=ka.trustedTypes,rp=_n?_n.createPolicy("lit-html",{createHTML:t=>t}):void 0,lp="$lit$",Ir=`lit$${Math.random().toFixed(9).slice(2)}$`,cp="?"+Ir,_x=`<${cp}>`,ci=document,kn=()=>ci.createComment(""),Do=t=>t===null||typeof t!="object"&&typeof t!="function",La=Array.isArray,kx=t=>La(t)||typeof t?.[Symbol.iterator]=="function",Aa=`[
125
+ \f\r]`,Io=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ip=/-->/g,op=/>/g,ai=RegExp(`>|${Aa}(?:([^\\s"'>=/]+)(${Aa}*=${Aa}*(?:[^
126
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),np=/'/g,sp=/"/g,up=/^(?:script|style|textarea|title)$/i,Pa=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),pp=Pa(1),dp=Pa(2),hp=Pa(3),Mo=Symbol.for("lit-noChange"),Se=Symbol.for("lit-nothing"),ap=new WeakMap,li=ci.createTreeWalker(ci,129);Lx=(t,e)=>{let r=t.length-1,i=[],o,n=e===2?"<svg>":e===3?"<math>":"",s=Io;for(let a=0;a<r;a++){let c=t[a],p,d,h=-1,f=0;for(;f<c.length&&(s.lastIndex=f,d=s.exec(c),d!==null);)f=s.lastIndex,s===Io?d[1]==="!--"?s=ip:d[1]!==void 0?s=op:d[2]!==void 0?(up.test(d[2])&&(o=RegExp("</"+d[2],"g")),s=ai):d[3]!==void 0&&(s=ai):s===ai?d[0]===">"?(s=o??Io,h=-1):d[1]===void 0?h=-2:(h=s.lastIndex-d[2].length,p=d[1],s=d[3]===void 0?ai:d[3]==='"'?sp:np):s===sp||s===np?s=ai:s===ip||s===op?s=Io:(s=ai,o=void 0);let g=s===ai&&t[a+1].startsWith("/>")?" ":"";n+=s===Io?c+_x:h>=0?(i.push(p),c.slice(0,h)+lp+c.slice(h)+Ir+g):c+Ir+(h===-2?a:g)}return[fp(t,n+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},No=class t{constructor({strings:e,_$litType$:r},i){let o;this.parts=[];let n=0,s=0,a=e.length-1,c=this.parts,[p,d]=Lx(e,r);if(this.el=t.createElement(p,i),li.currentNode=this.el.content,r===2||r===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(o=li.nextNode())!==null&&c.length<a;){if(o.nodeType===1){if(o.hasAttributes())for(let h of o.getAttributeNames())if(h.endsWith(lp)){let f=d[s++],g=o.getAttribute(h).split(Ir),v=/([.?@])?(.*)/.exec(f);c.push({type:1,index:n,name:v[2],strings:g,ctor:v[1]==="."?wa:v[1]==="?"?Ra:v[1]==="@"?Ta:ji}),o.removeAttribute(h)}else h.startsWith(Ir)&&(c.push({type:6,index:n}),o.removeAttribute(h));if(up.test(o.tagName)){let h=o.textContent.split(Ir),f=h.length-1;if(f>0){o.textContent=_n?_n.emptyScript:"";for(let g=0;g<f;g++)o.append(h[g],kn()),li.nextNode(),c.push({type:2,index:++n});o.append(h[f],kn())}}}else if(o.nodeType===8)if(o.data===cp)c.push({type:2,index:n});else{let h=-1;for(;(h=o.data.indexOf(Ir,h+1))!==-1;)c.push({type:7,index:n}),h+=Ir.length-1}n++}}static createElement(e,r){let i=ci.createElement("template");return i.innerHTML=e,i}};Oa=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:i}=this._$AD,o=(e?.creationScope??ci).importNode(r,!0);li.currentNode=o;let n=li.nextNode(),s=0,a=0,c=i[0];for(;c!==void 0;){if(s===c.index){let p;c.type===2?p=new Ln(n,n.nextSibling,this,e):c.type===1?p=new c.ctor(n,c.name,c.strings,this,e):c.type===6&&(p=new _a(n,this,e)),this._$AV.push(p),c=i[++a]}s!==c?.index&&(n=li.nextNode(),s++)}return li.currentNode=ci,o}p(e){let r=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,r),r+=i.strings.length-2):i._$AI(e[r])),r++}},Ln=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,i,o){this.type=2,this._$AH=Se,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=i,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=Vi(this,e,r),Do(e)?e===Se||e==null||e===""?(this._$AH!==Se&&this._$AR(),this._$AH=Se):e!==this._$AH&&e!==Mo&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):kx(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!==Se&&Do(this._$AH)?this._$AA.nextSibling.data=e:this.T(ci.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:i}=e,o=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=No.createElement(fp(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===o)this._$AH.p(r);else{let n=new Oa(o,this),s=n.u(this.options);n.p(r),this.T(s),this._$AH=n}}_$AC(e){let r=ap.get(e.strings);return r===void 0&&ap.set(e.strings,r=new No(e)),r}k(e){La(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,o=0;for(let n of e)o===r.length?r.push(i=new t(this.O(kn()),this.O(kn()),this,this.options)):i=r[o],i._$AI(n),o++;o<r.length&&(this._$AR(i&&i._$AB.nextSibling,o),r.length=o)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e!==this._$AB;){let i=tp(e).nextSibling;tp(e).remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},ji=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,i,o,n){this.type=1,this._$AH=Se,this._$AN=void 0,this.element=e,this.name=r,this._$AM=o,this.options=n,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Se}_$AI(e,r=this,i,o){let n=this.strings,s=!1;if(n===void 0)e=Vi(this,e,r,0),s=!Do(e)||e!==this._$AH&&e!==Mo,s&&(this._$AH=e);else{let a=e,c,p;for(e=n[0],c=0;c<n.length-1;c++)p=Vi(this,a[i+c],r,c),p===Mo&&(p=this._$AH[c]),s||=!Do(p)||p!==this._$AH[c],p===Se?e=Se:e!==Se&&(e+=(p??"")+n[c+1]),this._$AH[c]=p}s&&!o&&this.j(e)}j(e){e===Se?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},wa=class extends ji{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Se?void 0:e}},Ra=class extends ji{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==Se)}},Ta=class extends ji{constructor(e,r,i,o,n){super(e,r,i,o,n),this.type=5}_$AI(e,r=this){if((e=Vi(this,e,r,0)??Se)===Mo)return;let i=this._$AH,o=e===Se&&i!==Se||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,n=e!==Se&&(i===Se||o);o&&this.element.removeEventListener(this.name,this,i),n&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},_a=class{constructor(e,r,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){Vi(this,e)}},Px=ka.litHtmlPolyfillSupport;Px?.(No,Ln),(ka.litHtmlVersions??=[]).push("3.3.3")});var gp,$x,Ia,mp,Da,Ma,M0,N0,vp=l(()=>{$a();gp=Symbol.for(""),$x=t=>{if(t?.r===gp)return t?._$litStatic$},Ia=t=>({_$litStatic$:t,r:gp}),mp=new Map,Da=t=>(e,...r)=>{let i=r.length,o,n,s=[],a=[],c,p=0,d=!1;for(;p<i;){for(c=e[p];p<i&&(n=r[p],(o=$x(n))!==void 0);)c+=o+e[++p],d=!0;p!==i&&a.push(n),s.push(c),p++}if(p===i&&s.push(e[i]),d){let h=s.join("$$lit$$");(e=mp.get(h))===void 0&&(s.raw=s,mp.set(h,e=s)),r=a}return t(e,...r)},Ma=Da(pp),M0=Da(dp),N0=Da(hp)});var yp=l(()=>{vp()});var Q,Pn=l(()=>{"use strict";(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 wt,S,bp,yr,C,zi,qi,Ki,Wi,vr,we,ft,Gi,Qi,tr,xp,Sp,Cp,Ep,Ap,Dr,Mr,Op,wp,Rp,Tp,Ft=l(()=>{"use strict";wt=u(b()),S=u(m()),bp=S.FtCssVariableFactory.extend("--ft-typography-font-family","",S.designSystemVariables.titleFont),yr=S.FtCssVariableFactory.extend("--ft-typography-font-family","",S.designSystemVariables.contentFont),C={fontFamily:yr,fontSize:S.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:S.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:S.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:S.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:S.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},zi={fontFamily:S.FtCssVariableFactory.extend("--ft-typography-title-font-family","",bp),fontSize:S.FtCssVariableFactory.extend("--ft-typography-title-font-size","",C.fontSize,"20px"),fontWeight:S.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",C.fontWeight,"normal"),letterSpacing:S.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",C.letterSpacing,"0.15px"),lineHeight:S.FtCssVariableFactory.extend("--ft-typography-title-line-height","",C.lineHeight,"1.2"),textTransform:S.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",C.textTransform,"inherit")},qi={fontFamily:S.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",bp),fontSize:S.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",C.fontSize,"14px"),fontWeight:S.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",C.fontWeight,"normal"),letterSpacing:S.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",C.letterSpacing,"0.105px"),lineHeight:S.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",C.lineHeight,"1.7"),textTransform:S.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",C.textTransform,"inherit")},Ki={fontFamily:S.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",yr),fontSize:S.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",C.fontSize,"16px"),fontWeight:S.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",C.fontWeight,"600"),letterSpacing:S.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",C.letterSpacing,"0.144px"),lineHeight:S.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",C.lineHeight,"1.5"),textTransform:S.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",C.textTransform,"inherit")},Wi={fontFamily:S.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",yr),fontSize:S.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",C.fontSize,"14px"),fontWeight:S.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",C.fontWeight,"normal"),letterSpacing:S.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",C.letterSpacing,"0.098px"),lineHeight:S.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",C.lineHeight,"1.7"),textTransform:S.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",C.textTransform,"inherit")},vr={fontFamily:S.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",yr),fontSize:S.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",C.fontSize,"16px"),fontWeight:S.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",C.fontWeight,"normal"),letterSpacing:S.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",C.letterSpacing,"0.496px"),lineHeight:S.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",C.lineHeight,"1.5"),textTransform:S.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",C.textTransform,"inherit")},we={fontFamily:S.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",yr),fontSize:S.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",C.fontSize,"14px"),fontWeight:S.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",C.fontWeight,"normal"),letterSpacing:S.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",C.letterSpacing,"0.252px"),lineHeight:S.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",C.lineHeight,"1.4"),textTransform:S.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",C.textTransform,"inherit")},ft={fontFamily:S.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",yr),fontSize:S.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",C.fontSize,"12px"),fontWeight:S.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",C.fontWeight,"normal"),letterSpacing:S.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",C.letterSpacing,"0.396px"),lineHeight:S.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",C.lineHeight,"1.33"),textTransform:S.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",C.textTransform,"inherit")},Gi={fontFamily:S.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",yr),fontSize:S.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",C.fontSize,"10px"),fontWeight:S.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",C.fontWeight,"normal"),letterSpacing:S.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",C.letterSpacing,"0.33px"),lineHeight:S.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",C.lineHeight,"1.6"),textTransform:S.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",C.textTransform,"inherit")},Qi={fontFamily:S.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",yr),fontSize:S.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",C.fontSize,"10px"),fontWeight:S.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",C.fontWeight,"normal"),letterSpacing:S.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",C.letterSpacing,"1.5px"),lineHeight:S.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",C.lineHeight,"1.6"),textTransform:S.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",C.textTransform,"uppercase")},tr={fontFamily:S.FtCssVariableFactory.extend("--ft-typography-button-font-family","",yr),fontSize:S.FtCssVariableFactory.extend("--ft-typography-button-font-size","",C.fontSize,"14px"),fontWeight:S.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",C.fontWeight,"600"),letterSpacing:S.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",C.letterSpacing,"1.246px"),lineHeight:S.FtCssVariableFactory.extend("--ft-typography-button-line-height","",C.lineHeight,"1.15"),textTransform:S.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",C.textTransform,"uppercase")},xp=wt.css`
127
127
  .ft-typography--title {
128
128
  font-family: ${zi.fontFamily};
129
129
  font-size: ${zi.fontSize};
@@ -132,7 +132,7 @@
132
132
  line-height: ${zi.lineHeight};
133
133
  text-transform: ${zi.textTransform};
134
134
  }
135
- `,Ap=wt.css`
135
+ `,Sp=wt.css`
136
136
  .ft-typography--title-dense {
137
137
  font-family: ${qi.fontFamily};
138
138
  font-size: ${qi.fontSize};
@@ -141,7 +141,7 @@
141
141
  line-height: ${qi.lineHeight};
142
142
  text-transform: ${qi.textTransform};
143
143
  }
144
- `,Op=wt.css`
144
+ `,Cp=wt.css`
145
145
  .ft-typography--subtitle1 {
146
146
  font-family: ${Ki.fontFamily};
147
147
  font-size: ${Ki.fontSize};
@@ -150,7 +150,7 @@
150
150
  line-height: ${Ki.lineHeight};
151
151
  text-transform: ${Ki.textTransform};
152
152
  }
153
- `,wp=wt.css`
153
+ `,Ep=wt.css`
154
154
  .ft-typography--subtitle2 {
155
155
  font-family: ${Wi.fontFamily};
156
156
  font-size: ${Wi.fontSize};
@@ -160,7 +160,7 @@
160
160
  text-transform: ${Wi.textTransform};
161
161
  }
162
162
 
163
- `,Rp=wt.css`
163
+ `,Ap=wt.css`
164
164
  .ft-typography--body1 {
165
165
  font-family: ${vr.fontFamily};
166
166
  font-size: ${vr.fontSize};
@@ -187,7 +187,7 @@
187
187
  line-height: ${ft.lineHeight};
188
188
  text-transform: ${ft.textTransform};
189
189
  }
190
- `,Tp=wt.css`
190
+ `,Op=wt.css`
191
191
  .ft-typography--breadcrumb {
192
192
  font-family: ${Gi.fontFamily};
193
193
  font-size: ${Gi.fontSize};
@@ -196,7 +196,7 @@
196
196
  line-height: ${Gi.lineHeight};
197
197
  text-transform: ${Gi.textTransform};
198
198
  }
199
- `,_p=wt.css`
199
+ `,wp=wt.css`
200
200
  .ft-typography--overline {
201
201
  font-family: ${Qi.fontFamily};
202
202
  font-size: ${Qi.fontSize};
@@ -205,7 +205,7 @@
205
205
  line-height: ${Qi.lineHeight};
206
206
  text-transform: ${Qi.textTransform};
207
207
  }
208
- `,kp=wt.css`
208
+ `,Rp=wt.css`
209
209
  .ft-typography--button {
210
210
  font-family: ${tr.fontFamily};
211
211
  font-size: ${tr.fontSize};
@@ -214,19 +214,19 @@
214
214
  line-height: ${tr.lineHeight};
215
215
  text-transform: ${tr.textTransform};
216
216
  }
217
- `,Lp=wt.css`
217
+ `,Tp=wt.css`
218
218
  .ft-typography {
219
219
  vertical-align: inherit;
220
220
  }
221
- `});var Fa,$p,Pp,j,Ba=l(()=>{"use strict";Sp();Fa=u(B()),$p=u(m());Pn();Ft();Pp=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},j=class extends $p.FtLitElement{constructor(){super(...arguments),this.variant=Q.body1}render(){return this.element?Na`
222
- <${Da(this.element)}
221
+ `});var Na,kp,_p,j,Fa=l(()=>{"use strict";yp();Na=u(B()),kp=u(m());Pn();Ft();_p=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},j=class extends kp.FtLitElement{constructor(){super(...arguments),this.variant=Q.body1}render(){return this.element?Ma`
222
+ <${Ia(this.element)}
223
223
  part="text"
224
224
  class="ft-typography ft-typography--${this.variant}">
225
225
  <slot></slot>
226
- </${Da(this.element)}>
227
- `:Na`
226
+ </${Ia(this.element)}>
227
+ `:Ma`
228
228
  <slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
229
- `}};j.styles=[Ep,Ap,Op,wp,Rp,Dr,Mr,Tp,_p,kp,Lp];Pp([(0,Fa.property)()],j.prototype,"element",void 0);Pp([(0,Fa.property)()],j.prototype,"variant",void 0)});var Ip,Dp=l(()=>{"use strict";Ba();Ip={"ft-typography":j}});var Mp,Np=l(()=>{"use strict";Mp=u(m());Dp();(0,Mp.customElements)(Ip)});var ge=l(()=>{"use strict";Ba();Ft();Pn();Np()});var Fp,Nr,Fo,Bp,Ua=l(()=>{"use strict";Fp=u(b()),Nr=u(m()),Fo={distance:Nr.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:Nr.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:Nr.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),borderRadiusS:Nr.FtCssVariableFactory.extend("--ft-tooltip-border-radius","",Nr.designSystemVariables.borderRadiusS),maxWidth:Nr.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},Bp=Fp.css`
229
+ `}};j.styles=[xp,Sp,Cp,Ep,Ap,Dr,Mr,Op,wp,Rp,Tp];_p([(0,Na.property)()],j.prototype,"element",void 0);_p([(0,Na.property)()],j.prototype,"variant",void 0)});var Lp,Pp=l(()=>{"use strict";Fa();Lp={"ft-typography":j}});var $p,Ip=l(()=>{"use strict";$p=u(m());Pp();(0,$p.customElements)(Lp)});var ge=l(()=>{"use strict";Fa();Ft();Pn();Ip()});var Dp,Nr,Fo,Mp,Ba=l(()=>{"use strict";Dp=u(b()),Nr=u(m()),Fo={distance:Nr.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:Nr.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:Nr.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),borderRadiusS:Nr.FtCssVariableFactory.extend("--ft-tooltip-border-radius","",Nr.designSystemVariables.borderRadiusS),maxWidth:Nr.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},Mp=Dp.css`
230
230
  .ft-tooltip--container {
231
231
  display: block;
232
232
  }
@@ -257,15 +257,15 @@
257
257
  position: relative;
258
258
  word-break: break-word;
259
259
  }
260
- `});function Vp(t,e,r){return Fr(t,Bo(e,r))}function $n(t,e){return typeof t=="function"?t(e):t}function Ho(t){return t.split("-")[0]}function Br(t){return t.split("-")[1]}function ja(t){return t==="x"?"y":"x"}function za(t){return t==="y"?"height":"width"}function In(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function qa(t){return ja(In(t))}function jp(t,e,r){r===void 0&&(r=!1);let i=Br(t),o=qa(t),n=za(o),s=o==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[n]>e.floating[n]&&(s=Ha(s)),[s,Ha(s)]}function zp(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function Ha(t){let e=Ho(t);return Nx[e]+t.slice(e.length)}function Fx(t){var e,r,i,o;return{top:(e=t.top)!=null?e:0,right:(r=t.right)!=null?r:0,bottom:(i=t.bottom)!=null?i:0,left:(o=t.left)!=null?o:0}}function qp(t){return typeof t!="number"?Fx(t):{top:t,right:t,bottom:t,left:t}}function ui(t){let{x:e,y:r,width:i,height:o}=t;return{width:i,height:o,top:r,left:e,right:e+i,bottom:r+o,x:e,y:r}}var Hp,Up,Va,Bo,Fr,Uo,rr,Nx,Dn=l(()=>{Hp=["top","right","bottom","left"],Up=["start","end"],Va=Hp.reduce((t,e)=>t.concat(e,e+"-"+Up[0],e+"-"+Up[1]),[]),Bo=Math.min,Fr=Math.max,Uo=Math.round,rr=t=>({x:t,y:t}),Nx={left:"right",right:"left",bottom:"top",top:"bottom"}});function Kp(t,e,r){let{reference:i,floating:o}=t,n=In(e),s=qa(e),a=za(s),c=Ho(e),p=n==="y",d=i.x+i.width/2-o.width/2,h=i.y+i.height/2-o.height/2,f=i[a]/2-o[a]/2,g;switch(c){case"top":g={x:d,y:i.y-o.height};break;case"bottom":g={x:d,y:i.y+i.height};break;case"right":g={x:i.x+i.width,y:h};break;case"left":g={x:i.x-o.width,y:h};break;default:g={x:i.x,y:i.y}}let v=Br(e);return v&&(g[s]+=f*(v==="end"?1:-1)*(r&&p?-1:1)),g}async function Wp(t,e){var r;e===void 0&&(e={});let{x:i,y:o,platform:n,rects:s,elements:a,strategy:c}=t,{boundary:p="clippingAncestors",rootBoundary:d="viewport",elementContext:h="floating",altBoundary:f=!1,padding:g=0}=$n(e,t),v=qp(g),E=a[f?h==="floating"?"reference":"floating":h],A=ui(await n.getClippingRect({element:(r=await(n.isElement==null?void 0:n.isElement(E)))==null||r?E:E.contextElement||await(n.getDocumentElement==null?void 0:n.getDocumentElement(a.floating)),boundary:p,rootBoundary:d,strategy:c})),w=h==="floating"?{x:i,y:o,width:s.floating.width,height:s.floating.height}:s.reference,$=await(n.getOffsetParent==null?void 0:n.getOffsetParent(a.floating)),F=await(n.isElement==null?void 0:n.isElement($))&&await(n.getScale==null?void 0:n.getScale($))||{x:1,y:1},Oe=ui(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:w,offsetParent:$,strategy:c}):w);return{top:(A.top-Oe.top+v.top)/F.y,bottom:(Oe.bottom-A.bottom+v.bottom)/F.y,left:(A.left-Oe.left+v.left)/F.x,right:(Oe.right-A.right+v.right)/F.x}}function Ux(t,e,r){return(t?[...r.filter(o=>Br(o)===t),...r.filter(o=>Br(o)!==t)]:r.filter(o=>Ho(o)===o)).filter(o=>t?Br(o)===t||(e?zp(o)!==o:!1):!0)}var Bx,Gp,Qp,Xp,Yp=l(()=>{Dn();Dn();Bx=50,Gp=async(t,e,r)=>{let{placement:i="bottom",strategy:o="absolute",middleware:n=[],platform:s}=r,a=s.detectOverflow?s:{...s,detectOverflow:Wp},c=await(s.isRTL==null?void 0:s.isRTL(e)),p=await s.getElementRects({reference:t,floating:e,strategy:o}),{x:d,y:h}=Kp(p,i,c),f=i,g=0,v={};for(let y=0;y<n.length;y++){let E=n[y];if(!E)continue;let{name:A,fn:w}=E,{x:$,y:F,data:Oe,reset:be}=await w({x:d,y:h,initialPlacement:i,placement:f,strategy:o,middlewareData:v,rects:p,platform:a,elements:{reference:t,floating:e}});d=$??d,h=F??h,v[A]={...v[A],...Oe},be&&g<Bx&&(g++,typeof be=="object"&&(be.placement&&(f=be.placement),be.rects&&(p=be.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:o}):be.rects),{x:d,y:h}=Kp(p,f,c)),y=-1)}return{x:d,y:h,placement:f,strategy:o,middlewareData:v}};Qp=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,i,o;let{rects:n,middlewareData:s,placement:a,platform:c,elements:p}=e,{crossAxis:d=!1,alignment:h,allowedPlacements:f=Va,autoAlignment:g=!0,...v}=$n(t,e),y=h!==void 0||f===Va?Ux(h||null,g,f):f,E=((r=s.autoPlacement)==null?void 0:r.index)||0,A=y[E];if(A==null)return{};if(a!==A)return{reset:{placement:y[0]}};let w=await c.detectOverflow(e,v),$=jp(A,n,await(c.isRTL==null?void 0:c.isRTL(p.floating))),F=[w[Ho(A)],w[$[0]],w[$[1]]],Oe=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:A,overflows:F}],be=y[E+1];if(be)return{data:{index:E+1,overflows:Oe},reset:{placement:be}};let Pr=Oe.map(dt=>{let Ot=Br(dt.placement);return[dt.placement,Ot&&d?dt.overflows.slice(0,2).reduce((ht,ni)=>ht+ni,0):dt.overflows[0],dt.overflows]}).sort((dt,Ot)=>dt[1]-Ot[1]),$r=((o=Pr.filter(dt=>dt[2].slice(0,Br(dt[0])?2:3).every(Ot=>Ot<=0))[0])==null?void 0:o[0])||Pr[0][0];return $r!==a?{data:{index:E+1,overflows:Oe},reset:{placement:$r}}:{}}}},Xp=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:i,placement:o,platform:n}=e,{mainAxis:s=!0,crossAxis:a=!1,limiter:c={fn:w=>{let{x:$,y:F}=w;return{x:$,y:F}}},...p}=$n(t,e),d={x:r,y:i},h=await n.detectOverflow(e,p),f=In(o),g=ja(f),v=d[g],y=d[f],E=(w,$)=>Vp($+h[w==="y"?"top":"left"],$,$-h[w==="y"?"bottom":"right"]);s&&(v=E(g,v)),a&&(y=E(f,y));let A=c.fn({...e,[g]:v,[f]:y});return{...A,data:{x:A.x-r,y:A.y-i,enabled:{[g]:s,[f]:a}}}}}}});function Nn(){return typeof window<"u"}function di(t){return Jp(t)?(t.nodeName||"").toLowerCase():"#document"}function nt(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function br(t){var e;return(e=(Jp(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Jp(t){return Nn()?t instanceof Node||t instanceof nt(t).Node:!1}function Bt(t){return Nn()?t instanceof Element||t instanceof nt(t).Element:!1}function xr(t){return Nn()?t instanceof HTMLElement||t instanceof nt(t).HTMLElement:!1}function Zp(t){return!Nn()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof nt(t).ShadowRoot}function Vo(t){let{overflow:e,overflowX:r,overflowY:i,display:o}=Ut(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&o!=="inline"&&o!=="contents"}function ed(t){return/^(table|td|th)$/.test(di(t))}function jo(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}function Xi(t){let e=Bt(t)?Ut(t):t;return pi(e.transform)||pi(e.translate)||pi(e.scale)||pi(e.rotate)||pi(e.perspective)||!Fn()&&(pi(e.backdropFilter)||pi(e.filter))||Hx.test(e.willChange||"")||Vx.test(e.contain||"")}function td(t){let e=Ur(t);for(;xr(e)&&!Yi(e);){if(Xi(e))return e;if(jo(e))return null;e=Ur(e)}return null}function Fn(){return Ka==null&&(Ka=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Ka}function Yi(t){return/^(html|body|#document)$/.test(di(t))}function Ut(t){return nt(t).getComputedStyle(t)}function zo(t){return Bt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Ur(t){if(di(t)==="html")return t;let e=t.assignedSlot||t.parentNode||Zp(t)&&t.host||br(t);return Zp(e)?e.host:e}function rd(t){let e=Ur(t);return Yi(e)?(t.ownerDocument||t).body:xr(e)&&Vo(e)?e:rd(e)}function Mn(t,e,r){var i;e===void 0&&(e=[]),r===void 0&&(r=!0);let o=rd(t),n=o===((i=t.ownerDocument)==null?void 0:i.body),s=nt(o);if(n){let a=Bn(s);return e.concat(s,s.visualViewport||[],Vo(o)?o:[],a&&r?Mn(a):[])}else return e.concat(o,Mn(o,[],r))}function Bn(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}var Hx,Vx,pi,Ka,Wa=l(()=>{Hx=/transform|translate|scale|rotate|perspective|filter/,Vx=/paint|layout|strict|content/,pi=t=>!!t&&t!=="none"});function nd(t){let e=Ut(t),r=parseFloat(e.width)||0,i=parseFloat(e.height)||0,o=xr(t),n=o?t.offsetWidth:r,s=o?t.offsetHeight:i,a=Uo(r)!==n||Uo(i)!==s;return a&&(r=n,i=s),{width:r,height:i,$:a}}function sd(t){return Bt(t)?t:t.contextElement}function Zi(t){let e=sd(t);if(!xr(e))return rr(1);let r=e.getBoundingClientRect(),{width:i,height:o,$:n}=nd(e),s=(n?Uo(r.width):r.width)/i,a=(n?Uo(r.height):r.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}function ad(t){let e=nt(t);return!Fn()||!e.visualViewport?jx:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function zx(t,e,r){return e===void 0&&(e=!1),!!r&&e&&r===nt(t)}function qo(t,e,r,i){e===void 0&&(e=!1),r===void 0&&(r=!1);let o=t.getBoundingClientRect(),n=sd(t),s=rr(1);e&&(i?Bt(i)&&(s=Zi(i)):s=Zi(t));let a=zx(n,r,i)?ad(n):rr(0),c=(o.left+a.x)/s.x,p=(o.top+a.y)/s.y,d=o.width/s.x,h=o.height/s.y;if(n&&i){let f=nt(n),g=Bt(i)?nt(i):i,v=f,y=Bn(v);for(;y&&g!==v;){let E=Zi(y),A=y.getBoundingClientRect(),w=Ut(y),$=A.left+(y.clientLeft+parseFloat(w.paddingLeft))*E.x,F=A.top+(y.clientTop+parseFloat(w.paddingTop))*E.y;c*=E.x,p*=E.y,d*=E.x,h*=E.y,c+=$,p+=F,v=nt(y),y=Bn(v)}}return ui({width:d,height:h,x:c,y:p})}function Un(t,e){let r=zo(t).scrollLeft;return e?e.left+r:qo(br(t)).left+r}function ld(t,e){let r=t.getBoundingClientRect(),i=r.left+e.scrollLeft-Un(t,r),o=r.top+e.scrollTop;return{x:i,y:o}}function qx(t){let{elements:e,rect:r,offsetParent:i,strategy:o}=t,n=o==="fixed",s=br(i),a=e?jo(e.floating):!1;if(i===s||a&&n)return r;let c={scrollLeft:0,scrollTop:0},p=rr(1),d=rr(0),h=xr(i);if((h||!n)&&((di(i)!=="body"||Vo(s))&&(c=zo(i)),h)){let g=qo(i);p=Zi(i),d.x=g.x+i.clientLeft,d.y=g.y+i.clientTop}let f=s&&!h&&!n?ld(s,c):rr(0);return{width:r.width*p.x,height:r.height*p.y,x:r.x*p.x-c.scrollLeft*p.x+d.x+f.x,y:r.y*p.y-c.scrollTop*p.y+d.y+f.y}}function Kx(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function Wx(t){let e=zo(t),r=t.ownerDocument.body,i=Fr(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=Fr(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),n=-e.scrollLeft+Un(t),s=-e.scrollTop;return Ut(r).direction==="rtl"&&(n+=Fr(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:n,y:s}}function Qx(t,e,r){r===void 0&&(r="viewport");let i=r==="layoutViewport",o=nt(t),n=br(t),s=o.visualViewport,a=n.clientWidth,c=n.clientHeight,p=0,d=0;if(s){let f=!Fn()||e==="fixed";i?f||(p=-s.offsetLeft,d=-s.offsetTop):(a=s.width,c=s.height,f&&(p=s.offsetLeft,d=s.offsetTop))}if(Un(n)<=0){let f=n.ownerDocument,g=f.body,v=getComputedStyle(g),y=f.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,E=Math.abs(n.clientWidth-g.clientWidth-y),A=getComputedStyle(n).scrollbarGutter==="stable both-edges"?E/2:E;A<=Gx&&(a-=A)}return{width:a,height:c,x:p,y:d}}function Xx(t,e){let r=qo(t,!0,e==="fixed"),i=r.top+t.clientTop,o=r.left+t.clientLeft,n=Zi(t),s=t.clientWidth*n.x,a=t.clientHeight*n.y,c=o*n.x,p=i*n.y;return{width:s,height:a,x:c,y:p}}function id(t,e,r){let i;if(e==="viewport"||e==="layoutViewport")i=Qx(t,r,e);else if(e==="document")i=Wx(br(t));else if(Bt(e))i=Xx(e,r);else{let o=ad(t);i={x:e.x-o.x,y:e.y-o.y,width:e.width,height:e.height}}return ui(i)}function Yx(t,e){let r=e.get(t);if(r)return r;let i=Mn(t,[],!1).filter(a=>Bt(a)&&di(a)!=="body"),o=null,n=Ut(t).position==="fixed",s=n?Ur(t):t;for(;Bt(s)&&!Yi(s);){let a=Ut(s),c=Xi(s),p=o?o.position:n?"fixed":"";!c&&(p==="fixed"||p==="absolute"&&a.position==="static")?i=i.filter(h=>h!==s):o=a,s=Ur(s)}return e.set(t,i),i}function Zx(t){let{element:e,boundary:r,rootBoundary:i,strategy:o}=t,s=[...r==="clippingAncestors"?jo(e)?[]:Yx(e,this._c):[].concat(r),i],a=id(e,s[0],o),c=a.top,p=a.right,d=a.bottom,h=a.left;for(let f=1;f<s.length;f++){let g=id(e,s[f],o);c=Fr(g.top,c),p=Bo(g.right,p),d=Bo(g.bottom,d),h=Fr(g.left,h)}return{width:p-h,height:d-c,x:h,y:c}}function Jx(t){let{width:e,height:r}=nd(t);return{width:e,height:r}}function eS(t,e,r){let i=xr(e),o=br(e),n=r==="fixed",s=qo(t,!0,n,e),a={scrollLeft:0,scrollTop:0},c=rr(0);if((i||!n)&&((di(e)!=="body"||Vo(o))&&(a=zo(e)),i)){let f=qo(e,!0,n,e);c.x=f.x+e.clientLeft,c.y=f.y+e.clientTop}!i&&o&&(c.x=Un(o));let p=o&&!i&&!n?ld(o,a):rr(0),d=s.left+a.scrollLeft-c.x-p.x,h=s.top+a.scrollTop-c.y-p.y;return{x:d,y:h,width:s.width,height:s.height}}function Ga(t){return Ut(t).position==="static"}function od(t,e){if(!xr(t)||Ut(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return br(t)===r&&(r=r.ownerDocument.body),r}function cd(t,e){let r=nt(t);if(jo(t))return r;if(!xr(t)){let o=Ur(t);for(;o&&!Yi(o);){if(Bt(o)&&!Ga(o))return o;o=Ur(o)}return r}let i=od(t,e);for(;i&&ed(i)&&Ga(i);)i=od(i,e);return i&&Yi(i)&&Ga(i)&&!Xi(i)?r:i||td(t)||r}function rS(t){return Ut(t).direction==="rtl"}var jx,Gx,tS,Hn,ud,pd,dd,hd=l(()=>{Yp();Dn();Wa();jx=rr(0);Gx=25;tS=async function(t){let e=this.getOffsetParent||cd,r=this.getDimensions,i=await r(t.floating);return{reference:eS(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};Hn={convertOffsetParentRelativeRectToViewportRelativeRect:qx,getDocumentElement:br,getClippingRect:Zx,getOffsetParent:cd,getElementRects:tS,getClientRects:Kx,getDimensions:Jx,getScale:Zi,isElement:Bt,isRTL:rS},ud=Qp,pd=Xp,dd=(t,e,r)=>{let i=new Map,o=r??{},n={...Hn,...o.platform,_c:i};return Gp(t,e,{...o,platform:n})}});function fd(t){return iS(t)}function Qa(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function iS(t){for(let e=t;e;e=Qa(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Qa(t);e;e=Qa(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||Xi(r)||e.tagName==="BODY"))return e}return null}var md=l(()=>{Wa()});async function gd(t,e,r){let i;return typeof r=="object"?i=r:i={placement:r},dd(t,e,{strategy:i.strategy,platform:{...Hn,getOffsetParent:o=>Hn.getOffsetParent(o,fd)},middleware:[pd({crossAxis:!0}),ud({allowedPlacements:[i.placement]})]})}var vd=l(()=>{"use strict";hd();md()});function bd(t,e){return(0,yd.property)({type:Object,converter:{fromAttribute:r=>{if(r==null)return Ko(t);try{return JSON.parse(r)}catch{return Ko(t)}},toAttribute:r=>JSON.stringify(r)},hasChanged:Wo,...e??{}})}var yd,Xa,Vn=l(()=>{"use strict";yd=u(B(),1);hi();Xa=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)}});function oS(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;let r,i;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(i=r;i--!==0;)if(!jn(t[i],e[i]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;for(i of t.entries())if(!jn(i[1],e.get(i[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let o=s=>Object.keys(s).filter(a=>s[a]!=null),n=o(t);if(r=n.length,r!==o(e).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,n[i]))return!1;for(i=r;i--!==0;){let s=n[i];if(!jn(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function jn(t,e){try{return oS(t,e)}catch{return!1}}function Wo(t,e){return!jn(t,e)}function Ko(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function zn(t,e){let r=i=>i[t]===!0;return i=>{if(r(i))return i;let o=e(i);return o[t]=!0,o}}var hi=l(()=>{"use strict";Vn()});var xd,Ya,Sd=l(()=>{"use strict";hi();xd=u(B(),1),Ya=t=>{let e=t??{};return(r,i)=>{var o;let n={hasChanged:Wo,attribute:!1,...e};(0,xd.property)(n)(r,i);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(i,{selector:(o=e.selector)!==null&&o!==void 0?o:(a=>a[i]),store:e.store})}}});var qn,Za=l(()=>{"use strict";qn=class{constructor(){this.queue=[]}add(e,r=!1){r&&this.clear(e.type),this.queue.push(e)}consume(e){let r=this.queue.find(i=>i.type===e);return r&&(this.queue=this.queue.filter(i=>i!==r)),r}clear(e){typeof e=="string"?this.queue=this.queue.filter(r=>r.type!==e):this.queue=this.queue.filter(r=>!e.test(r.type))}}});var Kn,Cd=l(()=>{"use strict";Kn=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,r){return this.callbacks=[e],this.debounce(r)}queue(e,r){return this.callbacks.push(e),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((r,i)=>{this.resolvePromise=r,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let i=[...this.callbacks];this.callbacks=[];let o=(e=this.rejectPromise)!==null&&e!==void 0?e:(()=>null),n=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let s of i)try{await s()}catch(a){o(a);return}n(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}});var Wn,nS,Ed,Ad=l(()=>{Wn=globalThis,nS=Wn.ShadowRoot&&(Wn.ShadyCSS===void 0||Wn.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ed=(t,e)=>{if(nS)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let i=document.createElement("style"),o=Wn.litNonce;o!==void 0&&i.setAttribute("nonce",o),i.textContent=r.cssText,t.appendChild(i)}}});var Od,Gn,wd=l(()=>{"use strict";Od=u(b(),1);Ad();Vn();Gn=class extends Od.LitElement{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let e=this.scopedRegistryConstructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,e.defineScopedElements(e.elementDefinitions));let r={...e.shadowRootOptions,customElements:e.registry},i=this.renderOptions.creationScope=this.attachShadow(r);return Ed(i,e.elementStyles),i}static canDefineScopedElement(e){return!!this.registry&&!this.registry.get(e)}static defineScopedElements(e){Object.entries(e).forEach(([r,i])=>this.defineScopedElement(r,i))}static defineScopedElement(e,r){Xa(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 Rd(t,e,...r){var i;let o=t.querySelector(e);for(let n of r)o=(i=o?.shadowRoot)===null||i===void 0?void 0:i.querySelector(n);return o}var Td=l(()=>{"use strict"});var fi,eo,Pd,_d,kd,$d,Ld,Ji,ir,Id=l(()=>{"use strict";fi=u(B(),1);Vn();Cd();wd();Td();eo=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},_d=Symbol("constructorPrototype"),kd=Symbol("constructorName"),$d=Symbol("exportpartsDebouncer"),Ld=Symbol("dynamicDependenciesLoaded"),Ji=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};Ji.eventName="exportparts-updated";ir=class extends Gn{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Pd]=new Kn(5),this.scheduleExportpartsUpdate=()=>{var e,r,i;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(i=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&i!==void 0&&i)&&this[$d].run(()=>{var o,n;!((o=this.exportpartsPrefix)===null||o===void 0)&&o.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((n=this.exportpartsPrefixes)===null||n===void 0?void 0:n.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[kd]=this.constructor.name,this[_d]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[kd]&&Object.setPrototypeOf(this,this[_d])}connectedCallback(){var e;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(i){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",i)}let r=this.constructor;r[Ld]||(r[Ld]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(Ji.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(Ji.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 Ji)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:i,shadowPath:o}=this.elementToFocus;if(i!=null){let n=[...o??[],i];r=Rd(this.shadowRoot,...n)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var r,i,o;if(((i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(n=>n.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((o=this.customStylesheet)!==null&&o!==void 0?o:"")}catch(n){console.error(n,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let n=document.createElement("style");n.classList.add("ft-lit-element--custom-stylesheet"),n.innerHTML=this.customStylesheet,this.shadowRoot.append(n)}}setExportpartsAttribute(e){var r,i,o,n,s,a;let c=f=>f!=null&&f.trim().length>0,p=e.filter(c).map(f=>f.trim());if(p.length===0){this.exportparts=void 0;return}let d=new Set;for(let f of(i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&i!==void 0?i:[]){let g=(n=(o=f.getAttribute("part"))===null||o===void 0?void 0:o.split(" "))!==null&&n!==void 0?n:[],v=(a=(s=f.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(E=>E.split(":")[1]))!==null&&a!==void 0?a:[],y=[...g,...v].filter(c).map(E=>E.trim());for(let E of y)d.add(E)}if(d.size===0){this.exportparts=void 0;return}let h=[...d.values()].flatMap(f=>p.map(g=>`${f}:${g}--${f}`));this.exportparts=[...this.part,...h].join(", ")}};Pd=$d;eo([(0,fi.property)()],ir.prototype,"exportpartsPrefix",void 0);eo([bd([])],ir.prototype,"exportpartsPrefixes",void 0);eo([(0,fi.property)({reflect:!0})],ir.prototype,"exportparts",void 0);eo([(0,fi.property)()],ir.prototype,"customStylesheet",void 0);eo([(0,fi.property)()],ir.prototype,"elementToFocus",void 0);eo([(0,fi.state)()],ir.prototype,"useAdoptedStyleSheets",void 0)});function Qn(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Xn=l(()=>{"use strict"});var Go,Hr,mi,sS,Dd,Md=l(()=>{"use strict";Id();Xn();hi();Go=Symbol("internalReduxEventsUnsubscribers"),Hr=Symbol("internalStoresUnsubscribers"),mi=Symbol("internalStores"),sS=zn(Symbol("withRedux"),function(t){var e,r,i;class o extends t{constructor(){super(...arguments),this[e]=new Map,this[r]=new Map,this[i]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(a=>s.has(a))&&this.updateFromStores()}getUnnamedStore(){if(this[mi].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[mi].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[mi].get(s)}addStore(s,a){var c;a=(c=a??s.name)!==null&&c!==void 0?c:"default-store",this.unsubscribeFromStore(a),this[mi].set(a,s),this.subscribeToStore(a,s),this.updateFromStores()}removeStore(s){let a=typeof s=="string"?s:s.name;this.unsubscribeFromStore(a),this[mi].delete(a)}setupStores(){this.unsubscribeFromStores(),this[mi].forEach((s,a)=>this.subscribeToStore(a,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,a)=>{let c=this.constructor.getPropertyOptions(a);if(!c?.attribute||!this.hasAttribute(typeof c?.attribute=="string"?c.attribute:a)){let p=this.getStore(s.store);p&&(s.store?this[Hr].has(s.store):this[Hr].size>0)&&(this[a]=s.selector(p.getState(),this))}})}subscribeToStore(s,a){var c;this[Hr].set(s,a.subscribe(()=>this.updateFromStores())),this[Go].set(s,[]),Qn(a)&&a.eventBus&&((c=this.reduxConstructor.reduxEventListeners)===null||c===void 0||c.forEach((p,d)=>{if(typeof this[d]=="function"&&(!p.store||a.name===p.store)){let h=f=>this[d](f);a.addEventListener(p.eventName,h),this[Go].get(s).push(()=>a.removeEventListener(p.eventName,h))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[Hr].forEach((s,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(s){var a;this[Hr].has(s)&&this[Hr].get(s)(),this[Hr].delete(s),(a=this[Go].get(s))===null||a===void 0||a.forEach(c=>c()),this[Go].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=Hr,r=mi,i=Go,o.reduxProperties=new Map,o.reduxReactiveProperties=new Set,o.reduxEventListeners=new Map,o}),Dd=class extends sS(ir){}});function Rt(t){for(var e=arguments.length,r=Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];if(0)var o,n;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 Sr(t){return!!t&&!!t[ce]}function Ht(t){var e;return!!t&&((function(r){if(!r||typeof r!="object")return!1;var i=Object.getPrototypeOf(r);if(i===null)return!0;var o=Object.hasOwnProperty.call(i,"constructor")&&i.constructor;return o===Object||typeof o=="function"&&Function.toString.call(o)===fS})(t)||Array.isArray(t)||!!t[jd]||!!(!((e=t.constructor)===null||e===void 0)&&e[jd])||al(t)||ll(t))}function gi(t,e,r){r===void 0&&(r=!1),io(t)===0?(r?Object.keys:ro)(t).forEach((function(i){r&&typeof i=="symbol"||e(i,t[i],t)})):t.forEach((function(i,o){return e(o,i,t)}))}function io(t){var e=t[ce];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:al(t)?2:ll(t)?3:0}function to(t,e){return io(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function aS(t,e){return io(t)===2?t.get(e):t[e]}function zd(t,e,r){var i=io(t);i===2?t.set(e,r):i===3?t.add(r):t[e]=r}function qd(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function al(t){return dS&&t instanceof Map}function ll(t){return hS&&t instanceof Set}function Vr(t){return t.o||t.t}function cl(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Gd(t);delete e[ce];for(var r=ro(e),i=0;i<r.length;i++){var o=r[i],n=e[o];n.writable===!1&&(n.writable=!0,n.configurable=!0),(n.get||n.set)&&(e[o]={configurable:!0,writable:!0,enumerable:n.enumerable,value:t[o]})}return Object.create(Object.getPrototypeOf(t),e)}function ul(t,e){return e===void 0&&(e=!1),pl(t)||Sr(t)||!Ht(t)||(io(t)>1&&(t.set=t.add=t.clear=t.delete=lS),Object.freeze(t),e&&gi(t,(function(r,i){return ul(i,!0)}),!0)),t}function lS(){Rt(2)}function pl(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function or(t){var e=sl[t];return e||Rt(18,t),e}function cS(t,e){sl[t]||(sl[t]=e)}function il(){return Xo}function Ja(t,e){e&&(or("Patches"),t.u=[],t.s=[],t.v=e)}function Yn(t){ol(t),t.p.forEach(uS),t.p=null}function ol(t){t===Xo&&(Xo=t.l)}function Nd(t){return Xo={p:[],l:Xo,h:t,m:!0,_:0}}function uS(t){var e=t[ce];e.i===0||e.i===1?e.j():e.g=!0}function el(t,e){e._=e.p.length;var r=e.p[0],i=t!==void 0&&t!==r;return e.h.O||or("ES5").S(e,t,i),i?(r[ce].P&&(Yn(e),Rt(4)),Ht(t)&&(t=Zn(e,t),e.l||Jn(e,t)),e.u&&or("Patches").M(r[ce].t,t,e.u,e.s)):t=Zn(e,r,[]),Yn(e),e.u&&e.v(e.u,e.s),t!==Wd?t:void 0}function Zn(t,e,r){if(pl(e))return e;var i=e[ce];if(!i)return gi(e,(function(a,c){return Fd(t,i,e,a,c,r)}),!0),e;if(i.A!==t)return e;if(!i.P)return Jn(t,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var o=i.i===4||i.i===5?i.o=cl(i.k):i.o,n=o,s=!1;i.i===3&&(n=new Set(o),o.clear(),s=!0),gi(n,(function(a,c){return Fd(t,i,o,a,c,r,s)})),Jn(t,o,!1),r&&t.u&&or("Patches").N(i,r,t.u,t.s)}return i.o}function Fd(t,e,r,i,o,n,s){if(Sr(o)){var a=Zn(t,o,n&&e&&e.i!==3&&!to(e.R,i)?n.concat(i):void 0);if(zd(r,i,a),!Sr(a))return;t.m=!1}else s&&r.add(o);if(Ht(o)&&!pl(o)){if(!t.h.D&&t._<1)return;Zn(t,o),e&&e.A.l||Jn(t,o)}}function Jn(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&ul(e,r)}function tl(t,e){var r=t[ce];return(r?Vr(r):t)[e]}function Bd(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var i=Object.getOwnPropertyDescriptor(r,e);if(i)return i;r=Object.getPrototypeOf(r)}}function jr(t){t.P||(t.P=!0,t.l&&jr(t.l))}function rl(t){t.o||(t.o=cl(t.t))}function nl(t,e,r){var i=al(e)?or("MapSet").F(e,r):ll(e)?or("MapSet").T(e,r):t.O?(function(o,n){var s=Array.isArray(o),a={i:s?1:0,A:n?n.A:il(),P:!1,I:!1,R:{},l:n,t:o,k:null,o:null,j:null,C:!1},c=a,p=Yo;s&&(c=[a],p=Qo);var d=Proxy.revocable(c,p),h=d.revoke,f=d.proxy;return a.k=f,a.j=h,f})(e,r):or("ES5").J(e,r);return(r?r.A:il()).p.push(i),i}function pS(t){return Sr(t)||Rt(22,t),(function e(r){if(!Ht(r))return r;var i,o=r[ce],n=io(r);if(o){if(!o.P&&(o.i<4||!or("ES5").K(o)))return o.t;o.I=!0,i=Ud(r,n),o.I=!1}else i=Ud(r,n);return gi(i,(function(s,a){o&&aS(o.t,s)===a||zd(i,s,e(a))})),n===3?new Set(i):i})(t)}function Ud(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return cl(t)}function Kd(){function t(s,a){var c=n[s];return c?c.enumerable=a:n[s]=c={configurable:!0,enumerable:a,get:function(){var p=this[ce];return Yo.get(p,s)},set:function(p){var d=this[ce];Yo.set(d,s,p)}},c}function e(s){for(var a=s.length-1;a>=0;a--){var c=s[a][ce];if(!c.P)switch(c.i){case 5:i(c)&&jr(c);break;case 4:r(c)&&jr(c)}}}function r(s){for(var a=s.t,c=s.k,p=ro(c),d=p.length-1;d>=0;d--){var h=p[d];if(h!==ce){var f=a[h];if(f===void 0&&!to(a,h))return!0;var g=c[h],v=g&&g[ce];if(v?v.t!==f:!qd(g,f))return!0}}var y=!!a[ce];return p.length!==ro(a).length+(y?0:1)}function i(s){var a=s.k;if(a.length!==s.t.length)return!0;var c=Object.getOwnPropertyDescriptor(a,a.length-1);if(c&&!c.get)return!0;for(var p=0;p<a.length;p++)if(!a.hasOwnProperty(p))return!0;return!1}function o(s){s.g&&Rt(3,JSON.stringify(Vr(s)))}var n={};cS("ES5",{J:function(s,a){var c=Array.isArray(s),p=(function(h,f){if(h){for(var g=Array(f.length),v=0;v<f.length;v++)Object.defineProperty(g,""+v,t(v,!0));return g}var y=Gd(f);delete y[ce];for(var E=ro(y),A=0;A<E.length;A++){var w=E[A];y[w]=t(w,h||!!y[w].enumerable)}return Object.create(Object.getPrototypeOf(f),y)})(c,s),d={i:c?5:4,A:a?a.A:il(),P:!1,I:!1,R:{},l:a,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,ce,{value:d,writable:!0}),p},S:function(s,a,c){c?Sr(a)&&a[ce].A===s&&e(s.p):(s.u&&(function p(d){if(d&&typeof d=="object"){var h=d[ce];if(h){var f=h.t,g=h.k,v=h.R,y=h.i;if(y===4)gi(g,(function(F){F!==ce&&(f[F]!==void 0||to(f,F)?v[F]||p(g[F]):(v[F]=!0,jr(h)))})),gi(f,(function(F){g[F]!==void 0||to(g,F)||(v[F]=!1,jr(h))}));else if(y===5){if(i(h)&&(jr(h),v.length=!0),g.length<f.length)for(var E=g.length;E<f.length;E++)v[E]=!1;else for(var A=f.length;A<g.length;A++)v[A]=!0;for(var w=Math.min(g.length,f.length),$=0;$<w;$++)g.hasOwnProperty($)||(v[$]=!0),v[$]===void 0&&p(g[$])}}}})(s.p[0]),e(s.p))},K:function(s){return s.i===4?r(s):i(s)}})}var Hd,Xo,dl,dS,hS,Vd,Wd,jd,ce,fS,ro,Gd,sl,Yo,Qo,mS,mt,gS,eE,tE,rE,iE,oE,nE,es,ts=l(()=>{dl=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",dS=typeof Map<"u",hS=typeof Set<"u",Vd=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Wd=dl?Symbol.for("immer-nothing"):((Hd={})["immer-nothing"]=!0,Hd),jd=dl?Symbol.for("immer-draftable"):"__$immer_draftable",ce=dl?Symbol.for("immer-state"):"__$immer_state",fS=""+Object.prototype.constructor,ro=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Gd=Object.getOwnPropertyDescriptors||function(t){var e={};return ro(t).forEach((function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)})),e},sl={},Yo={get:function(t,e){if(e===ce)return t;var r=Vr(t);if(!to(r,e))return(function(o,n,s){var a,c=Bd(n,s);return c?"value"in c?c.value:(a=c.get)===null||a===void 0?void 0:a.call(o.k):void 0})(t,r,e);var i=r[e];return t.I||!Ht(i)?i:i===tl(t.t,e)?(rl(t),t.o[e]=nl(t.A.h,i,t)):i},has:function(t,e){return e in Vr(t)},ownKeys:function(t){return Reflect.ownKeys(Vr(t))},set:function(t,e,r){var i=Bd(Vr(t),e);if(i?.set)return i.set.call(t.k,r),!0;if(!t.P){var o=tl(Vr(t),e),n=o?.[ce];if(n&&n.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(qd(r,o)&&(r!==void 0||to(t.t,e)))return!0;rl(t),jr(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 tl(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,rl(t),jr(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=Vr(t),i=Reflect.getOwnPropertyDescriptor(r,e);return i&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:i.enumerable,value:r[e]}},defineProperty:function(){Rt(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Rt(12)}},Qo={};gi(Yo,(function(t,e){Qo[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Qo.deleteProperty=function(t,e){return Qo.set.call(this,t,e,void 0)},Qo.set=function(t,e,r){return Yo.set.call(this,t[0],e,r,t[0])};mS=(function(){function t(r){var i=this;this.O=Vd,this.D=!0,this.produce=function(o,n,s){if(typeof o=="function"&&typeof n!="function"){var a=n;n=o;var c=i;return function(y){var E=this;y===void 0&&(y=a);for(var A=arguments.length,w=Array(A>1?A-1:0),$=1;$<A;$++)w[$-1]=arguments[$];return c.produce(y,(function(F){var Oe;return(Oe=n).call.apply(Oe,[E,F].concat(w))}))}}var p;if(typeof n!="function"&&Rt(6),s!==void 0&&typeof s!="function"&&Rt(7),Ht(o)){var d=Nd(i),h=nl(i,o,void 0),f=!0;try{p=n(h),f=!1}finally{f?Yn(d):ol(d)}return typeof Promise<"u"&&p instanceof Promise?p.then((function(y){return Ja(d,s),el(y,d)}),(function(y){throw Yn(d),y})):(Ja(d,s),el(p,d))}if(!o||typeof o!="object"){if((p=n(o))===void 0&&(p=o),p===Wd&&(p=void 0),i.D&&ul(p,!0),s){var g=[],v=[];or("Patches").M(o,p,g,v),s(g,v)}return p}Rt(21,o)},this.produceWithPatches=function(o,n){if(typeof o=="function")return function(p){for(var d=arguments.length,h=Array(d>1?d-1:0),f=1;f<d;f++)h[f-1]=arguments[f];return i.produceWithPatches(p,(function(g){return o.apply(void 0,[g].concat(h))}))};var s,a,c=i.produce(o,n,(function(p,d){s=p,a=d}));return typeof Promise<"u"&&c instanceof Promise?c.then((function(p){return[p,s,a]})):[c,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){Ht(r)||Rt(8),Sr(r)&&(r=pS(r));var i=Nd(this),o=nl(this,r,void 0);return o[ce].C=!0,ol(i),o},e.finishDraft=function(r,i){var o=r&&r[ce],n=o.A;return Ja(n,i),el(void 0,n)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!Vd&&Rt(20),this.O=r},e.applyPatches=function(r,i){var o;for(o=i.length-1;o>=0;o--){var n=i[o];if(n.path.length===0&&n.op==="replace"){r=n.value;break}}o>-1&&(i=i.slice(o+1));var s=or("Patches").$;return Sr(r)?s(r,i):this.produce(r,(function(a){return s(a,i)}))},t})(),mt=new mS,gS=mt.produce,eE=mt.produceWithPatches.bind(mt),tE=mt.setAutoFreeze.bind(mt),rE=mt.setUseProxies.bind(mt),iE=mt.applyPatches.bind(mt),oE=mt.createDraft.bind(mt),nE=mt.finishDraft.bind(mt),es=gS});function vi(t){"@babel/helpers - typeof";return vi=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},vi(t)}var hl=l(()=>{});function Qd(t,e){if(vi(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var i=r.call(t,e||"default");if(vi(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Xd=l(()=>{hl()});function Yd(t){var e=Qd(t,"string");return vi(e)=="symbol"?e:e+""}var Zd=l(()=>{hl();Xd()});function Jd(t,e,r){return(e=Yd(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var eh=l(()=>{Zd()});function th(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,i)}return r}function fl(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?th(Object(r),!0).forEach(function(i){Jd(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):th(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}var rh=l(()=>{eh()});function He(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. "}function vS(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 gl(t,e,r){var i;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(He(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(He(1));return r(gl)(t,e)}if(typeof t!="function")throw new Error(He(2));var o=t,n=e,s=[],a=s,c=!1;function p(){a===s&&(a=s.slice())}function d(){if(c)throw new Error(He(3));return n}function h(y){if(typeof y!="function")throw new Error(He(4));if(c)throw new Error(He(5));var E=!0;return p(),a.push(y),function(){if(E){if(c)throw new Error(He(6));E=!1,p();var w=a.indexOf(y);a.splice(w,1),s=null}}}function f(y){if(!vS(y))throw new Error(He(7));if(typeof y.type>"u")throw new Error(He(8));if(c)throw new Error(He(9));try{c=!0,n=o(n,y)}finally{c=!1}for(var E=s=a,A=0;A<E.length;A++){var w=E[A];w()}return y}function g(y){if(typeof y!="function")throw new Error(He(10));o=y,f({type:rs.REPLACE})}function v(){var y,E=h;return y={subscribe:function(w){if(typeof w!="object"||w===null)throw new Error(He(11));function $(){w.next&&w.next(d())}$();var F=E($);return{unsubscribe:F}}},y[ih]=function(){return this},y}return f({type:rs.INIT}),i={dispatch:f,subscribe:h,getState:d,replaceReducer:g},i[ih]=v,i}function yS(t){Object.keys(t).forEach(function(e){var r=t[e],i=r(void 0,{type:rs.INIT});if(typeof i>"u")throw new Error(He(12));if(typeof r(void 0,{type:rs.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(He(13))})}function oh(t){for(var e=Object.keys(t),r={},i=0;i<e.length;i++){var o=e[i];typeof t[o]=="function"&&(r[o]=t[o])}var n=Object.keys(r),s,a;try{yS(r)}catch(c){a=c}return function(p,d){if(p===void 0&&(p={}),a)throw a;if(0)var h;for(var f=!1,g={},v=0;v<n.length;v++){var y=n[v],E=r[y],A=p[y],w=E(A,d);if(typeof w>"u"){var $=d&&d.type;throw new Error(He(14))}g[y]=w,f=f||w!==A}return f=f||n.length!==Object.keys(p).length,f?g:p}}function oo(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.length===0?function(i){return i}:e.length===1?e[0]:e.reduce(function(i,o){return function(){return i(o.apply(void 0,arguments))}})}function nh(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(i){return function(){var o=i.apply(void 0,arguments),n=function(){throw new Error(He(15))},s={getState:o.getState,dispatch:function(){return n.apply(void 0,arguments)}},a=e.map(function(c){return c(s)});return n=oo.apply(void 0,a)(o.dispatch),fl(fl({},o),{},{dispatch:n})}}}var ih,ml,rs,is=l(()=>{rh();ih=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),ml=function(){return Math.random().toString(36).substring(7).split("").join(".")},rs={INIT:"@@redux/INIT"+ml(),REPLACE:"@@redux/REPLACE"+ml(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ml()}}});function sh(t){var e=function(i){var o=i.dispatch,n=i.getState;return function(s){return function(a){return typeof a=="function"?a(o,n,t):s(a)}}};return e}var ah,vl,lh=l(()=>{ah=sh();ah.withExtraArgument=sh;vl=ah});function RS(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 qr(t,e){function r(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];if(e){var n=e.apply(void 0,i);if(!n)throw new Error("prepareAction did not return an object");return zr(zr({type:t,payload:n.payload},"meta"in n&&{meta:n.meta}),"error"in n&&{error:n.error})}return{type:t,payload:i[0]}}return r.toString=function(){return""+t},r.type=t,r.match=function(i){return i.type===t},r}function Sl(t){return Ht(t)?es(t,function(){}):t}function kS(t){return typeof t=="boolean"}function LS(){return function(e){return PS(e)}}function PS(t){t===void 0&&(t={});var e=t.thunk,r=e===void 0?!0:e,i=t.immutableCheck,o=i===void 0?!0:i,n=t.serializableCheck,s=n===void 0?!0:n,a=t.actionCreatorCheck,c=a===void 0?!0:a,p=new TS;if(r&&(kS(r)?p.push(vl):p.push(vl.withExtraArgument(r.extraArgument))),0){if(o)var d;if(s)var h;if(c)var f}return p}function fh(t){var e=LS(),r=t||{},i=r.reducer,o=i===void 0?void 0:i,n=r.middleware,s=n===void 0?e():n,a=r.devTools,c=a===void 0?!0:a,p=r.preloadedState,d=p===void 0?void 0:p,h=r.enhancers,f=h===void 0?void 0:h,g;if(typeof o=="function")g=o;else if(RS(o))g=oh(o);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 v=s;if(typeof v=="function"&&(v=v(e),!bl&&!Array.isArray(v)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!bl&&v.some(function(F){return typeof F!="function"}))throw new Error("each middleware provided to configureStore must be a function");var y=nh.apply(void 0,v),E=oo;c&&(E=wS(zr({trace:!bl},typeof c=="object"&&c)));var A=new _S(y),w=A;Array.isArray(f)?w=no([y],f):typeof f=="function"&&(w=f(A));var $=E.apply(void 0,w);return gl(g,d,$)}function mh(t){var e={},r=[],i,o={addCase:function(n,s){var a=typeof n=="string"?n:n.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,o},addMatcher:function(n,s){return r.push({matcher:n,reducer:s}),o},addDefaultCase:function(n){return i=n,o}};return t(o),[e,r,i]}function $S(t){return typeof t=="function"}function IS(t,e,r,i){r===void 0&&(r=[]);var o=typeof e=="function"?mh(e):[e,r,i],n=o[0],s=o[1],a=o[2],c;if($S(t))c=function(){return Sl(t())};else{var p=Sl(t);c=function(){return p}}function d(h,f){h===void 0&&(h=c());var g=no([n[f.type]],s.filter(function(v){var y=v.matcher;return y(f)}).map(function(v){var y=v.reducer;return y}));return g.filter(function(v){return!!v}).length===0&&(g=[a]),g.reduce(function(v,y){if(y)if(Sr(v)){var E=v,A=y(E,f);return A===void 0?v:A}else{if(Ht(v))return es(v,function(w){return y(w,f)});var A=y(v,f);if(A===void 0){if(v===null)return v;throw Error("A case reducer on a non-draftable value must not return undefined")}return A}return v},h)}return d.getInitialState=c,d}function DS(t,e){return t+"/"+e}function gh(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:Sl(t.initialState),i=t.reducers||{},o=Object.keys(i),n={},s={},a={};o.forEach(function(d){var h=i[d],f=DS(e,d),g,v;"reducer"in h?(g=h.reducer,v=h.prepare):g=h,n[d]=g,s[f]=g,a[d]=v?qr(f,v):qr(f)});function c(){var d=typeof t.extraReducers=="function"?mh(t.extraReducers):[t.extraReducers],h=d[0],f=h===void 0?{}:h,g=d[1],v=g===void 0?[]:g,y=d[2],E=y===void 0?void 0:y,A=zr(zr({},f),s);return IS(r,function(w){for(var $ in A)w.addCase($,A[$]);for(var F=0,Oe=v;F<Oe.length;F++){var be=Oe[F];w.addMatcher(be.matcher,be.reducer)}E&&w.addDefaultCase(E)})}var p;return{name:e,reducer:function(d,h){return p||(p=c()),p(d,h)},actions:a,caseReducers:n,getInitialState:function(){return p||(p=c()),p.getInitialState()}}}function US(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function HS(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var hh,bS,no,xS,SS,CS,ch,ES,AS,uh,zr,yl,OS,wS,EE,TS,_S,bl,MS,NS,FS,xl,ph,BS,RE,vh,yh,bh,TE,_E,kE,LE,Cl,PE,$E,IE,dh,DE,VS,ME,xh=l(()=>{ts();is();is();is();lh();ts();ts();hh=(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(i[n]=o[n])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}})(),bS=function(t,e){var r={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},i,o,n,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(p){return function(d){return c([p,d])}}function c(p){if(i)throw new TypeError("Generator is already executing.");for(;r;)try{if(i=1,o&&(n=p[0]&2?o.return:p[0]?o.throw||((n=o.return)&&n.call(o),0):o.next)&&!(n=n.call(o,p[1])).done)return n;switch(o=0,n&&(p=[p[0]&2,n.value]),p[0]){case 0:case 1:n=p;break;case 4:return r.label++,{value:p[1],done:!1};case 5:r.label++,o=p[1],p=[0];continue;case 7:p=r.ops.pop(),r.trys.pop();continue;default:if(n=r.trys,!(n=n.length>0&&n[n.length-1])&&(p[0]===6||p[0]===2)){r=0;continue}if(p[0]===3&&(!n||p[1]>n[0]&&p[1]<n[3])){r.label=p[1];break}if(p[0]===6&&r.label<n[1]){r.label=n[1],n=p;break}if(n&&r.label<n[2]){r.label=n[2],r.ops.push(p);break}n[2]&&r.ops.pop(),r.trys.pop();continue}p=e.call(t,r)}catch(d){p=[6,d],o=0}finally{i=n=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},no=function(t,e){for(var r=0,i=e.length,o=t.length;r<i;r++,o++)t[o]=e[r];return t},xS=Object.defineProperty,SS=Object.defineProperties,CS=Object.getOwnPropertyDescriptors,ch=Object.getOwnPropertySymbols,ES=Object.prototype.hasOwnProperty,AS=Object.prototype.propertyIsEnumerable,uh=function(t,e,r){return e in t?xS(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},zr=function(t,e){for(var r in e||(e={}))ES.call(e,r)&&uh(t,r,e[r]);if(ch)for(var i=0,o=ch(e);i<o.length;i++){var r=o[i];AS.call(e,r)&&uh(t,r,e[r])}return t},yl=function(t,e){return SS(t,CS(e))},OS=function(t,e,r){return new Promise(function(i,o){var n=function(c){try{a(r.next(c))}catch(p){o(p)}},s=function(c){try{a(r.throw(c))}catch(p){o(p)}},a=function(c){return c.done?i(c.value):Promise.resolve(c.value).then(n,s)};a((r=r.apply(t,e)).next())})},wS=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?oo:oo.apply(null,arguments)},EE=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};TS=(function(t){hh(e,t);function e(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var o=t.apply(this,r)||this;return Object.setPrototypeOf(o,e.prototype),o}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,no([void 0],r[0].concat(this)))):new(e.bind.apply(e,no([void 0],r.concat(this))))},e})(Array),_S=(function(t){hh(e,t);function e(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var o=t.apply(this,r)||this;return Object.setPrototypeOf(o,e.prototype),o}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,no([void 0],r[0].concat(this)))):new(e.bind.apply(e,no([void 0],r.concat(this))))},e})(Array);bl=!0;MS="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",NS=function(t){t===void 0&&(t=21);for(var e="",r=t;r--;)e+=MS[Math.random()*64|0];return e},FS=["name","message","stack","code"],xl=(function(){function t(e,r){this.payload=e,this.meta=r}return t})(),ph=(function(){function t(e,r){this.payload=e,this.meta=r}return t})(),BS=function(t){if(typeof t=="object"&&t!==null){for(var e={},r=0,i=FS;r<i.length;r++){var o=i[r];typeof t[o]=="string"&&(e[o]=t[o])}return e}return{message:String(t)}},RE=(function(){function t(e,r,i){var o=qr(e+"/fulfilled",function(d,h,f,g){return{payload:d,meta:yl(zr({},g||{}),{arg:f,requestId:h,requestStatus:"fulfilled"})}}),n=qr(e+"/pending",function(d,h,f){return{payload:void 0,meta:yl(zr({},f||{}),{arg:h,requestId:d,requestStatus:"pending"})}}),s=qr(e+"/rejected",function(d,h,f,g,v){return{payload:g,error:(i&&i.serializeError||BS)(d||"Rejected"),meta:yl(zr({},v||{}),{arg:f,requestId:h,rejectedWithValue:!!g,requestStatus:"rejected",aborted:d?.name==="AbortError",condition:d?.name==="ConditionError"})}}),a=!1,c=typeof AbortController<"u"?AbortController:(function(){function d(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return d.prototype.abort=function(){},d})();function p(d){return function(h,f,g){var v=i?.idGenerator?i.idGenerator(d):NS(),y=new c,E,A=!1;function w(F){E=F,y.abort()}var $=(function(){return OS(this,null,function(){var F,Oe,be,Pr,Ca,$r,dt;return bS(this,function(Ot){switch(Ot.label){case 0:return Ot.trys.push([0,4,,5]),Pr=(F=i?.condition)==null?void 0:F.call(i,d,{getState:f,extra:g}),HS(Pr)?[4,Pr]:[3,2];case 1:Pr=Ot.sent(),Ot.label=2;case 2:if(Pr===!1||y.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return A=!0,Ca=new Promise(function(ht,ni){return y.signal.addEventListener("abort",function(){return ni({name:"AbortError",message:E||"Aborted"})})}),h(n(v,d,(Oe=i?.getPendingMeta)==null?void 0:Oe.call(i,{requestId:v,arg:d},{getState:f,extra:g}))),[4,Promise.race([Ca,Promise.resolve(r(d,{dispatch:h,getState:f,extra:g,requestId:v,signal:y.signal,abort:w,rejectWithValue:function(ht,ni){return new xl(ht,ni)},fulfillWithValue:function(ht,ni){return new ph(ht,ni)}})).then(function(ht){if(ht instanceof xl)throw ht;return ht instanceof ph?o(ht.payload,v,d,ht.meta):o(ht,v,d)})])];case 3:return be=Ot.sent(),[3,5];case 4:return $r=Ot.sent(),be=$r instanceof xl?s(null,v,d,$r.payload,$r.meta):s($r,v,d),[3,5];case 5:return dt=i&&!i.dispatchConditionRejection&&s.match(be)&&be.meta.condition,dt||h(be),[2,be]}})})})();return Object.assign($,{abort:w,requestId:v,arg:d,unwrap:function(){return $.then(US)}})}}return Object.assign(p,{pending:n,rejected:s,fulfilled:o,typePrefix:e})}return t.withTypes=function(){return t},t})();vh="listener",yh="completed",bh="cancelled",TE="task-"+bh,_E="task-"+yh,kE=vh+"-"+bh,LE=vh+"-"+yh,Cl="listenerMiddleware",PE=qr(Cl+"/add"),$E=qr(Cl+"/removeAll"),IE=qr(Cl+"/remove"),DE=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(dh||(dh=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},VS=function(t){return function(e){setTimeout(e,t)}},ME=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:VS(10);Kd()});var jS,os,Sh=l(()=>{"use strict";hi();jS=zn(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(r,i,o){this.eventBus.addEventListener(r,i,o)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,i,o){this.eventBus.removeEventListener(r,i,o)}}}),os=class extends jS(Object){}});var Ch,Eh=l(()=>{"use strict";xh();Xn();Za();Sh();hi();window.ftReduxStores||(window.ftReduxStores={});Ch=class t extends os{static get(e){var r;let i=typeof e=="string"?e:e.name,o=typeof e=="string"?void 0:e,n=window.ftReduxStores[i];if(Qn(n))return n;if(o==null)return;let s=gh({...o,reducers:(r=o.reducers)!==null&&r!==void 0?r:{}}),a=fh({reducer:(c,p)=>{if(p.type==="CLEAR_FT_REDUX_STORE"){let d=Ko(s.getInitialState());for(let h of p.keeping)d[h]=(c??d)[h];return d}else if(typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...c,...p.overwrites};return s.reducer(c,p)}});return window.ftReduxStores[o.name]=new t(s,a,o.eventBus)}constructor(e,r,i){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new qn;let o=n=>n!=null?JSON.parse(JSON.stringify(n)):n;this.actions=new Proxy(this.reduxSlice.actions,{get:(n,s,a)=>{let c=s,p=n[c];return p?(...d)=>{let h=p(...d.map(o));return this.reduxStore.dispatch(h),h}:d=>{this.setState({[c]:o(d)})}}}),this.eventBus=i??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...e){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:e})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}});var Ah=l(()=>{"use strict";hi()});var Oh=l(()=>{"use strict"});var wh=l(()=>{"use strict";Sd();Za();Md();Eh();Xn();Ah();Oh()});var ns,Rh=l(()=>{"use strict";ns=class{static format(e,r,i,o,n){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(i,o,!!n)):this.getIntlDateTime(e,r,i,o,!!n)}static getMomentDateFormat(e,r,i){return i?"LT":e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,i,o,n){let s=typeof e=="string"?new Date(e):e,a=new Intl.DateTimeFormat(r,{dateStyle:i?"medium":"short"}).format(s),c=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(s);return n?c:o?`${a} ${c}`:a}static getTimezoneAsString(){let e=i=>String(Math.floor(i)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${e(Math.abs(r)/60)}:${e(Math.abs(r)%60)}`}}});var ss,zS,Cr,Zo,qS,O,Ve=l(()=>{"use strict";ss=u(m()),zS="ft-app-info",Cr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Cr.eventName="authentication-change";Zo=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Zo.eventName="ui-locale-changed";qS={session:(t,e)=>{(0,ss.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>O.dispatchEvent(new Cr(e.payload)),0))}},O=ss.FtReduxStore.get({name:zS,reducers:qS,initialState:{baseUrl:void 0,tenantId:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableContentLocales:[],localesConfiguration:void 0,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}})});var El,Th,as,uA,_h=l(()=>{"use strict";El=u(B());wh();Rh();Ve();Th=u(m()),as=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},uA=(0,Th.applyMixinOnce)(Symbol("withDateFormat"),function(t){class e extends t{constructor(...i){super(i),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(O)}dateFormatOptionsChanged(i){return i.has("metadataDescriptors")||i.has("useLongDateFormat")||i.has("useDateTimeFormat")||i.has("uiLocale")}getDateFormatter(i){var o,n;return((n=(o=this.metadataDescriptors.find(a=>a.key===i))===null||o===void 0?void 0:o.date)!==null&&n!==void 0?n:!1)?a=>ns.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return as([(0,El.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),as([(0,El.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),as([Ya({store:O.name,selector:r=>{var i,o;return(o=(i=r.metadataConfiguration)===null||i===void 0?void 0:i.descriptors)!==null&&o!==void 0?o:[]}})],e.prototype,"metadataDescriptors",void 0),as([Ya({store:O.name})],e.prototype,"uiLocale",void 0),e})});var Al=l(()=>{});var kh,Lh,Ph,Kr,$h,Ih,Dh,yi,Mh,Nh,Fh,Bh,Uh,Hh,Vh,jh,ls,zh,qh,so,Kh,cs,Wh,Gh,nr,ao,Qh,me,Tt,Xh,Ol=l(()=>{(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(kh||(kh={}));(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Lh||(Lh={}));(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"})(Ph||(Ph={}));(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"})(Kr||(Kr={}));(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})($h||($h={}));(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(Ih||(Ih={}));(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(Dh||(Dh={}));(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"})(yi||(yi={}));(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(Mh||(Mh={}));(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"})(Nh||(Nh={}));(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"})(Fh||(Fh={}));(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Bh||(Bh={}));(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Uh||(Uh={}));(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Hh||(Hh={}));(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Vh||(Vh={}));(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"})(jh||(jh={}));(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(ls||(ls={}));(function(t){t.ASC="ASC",t.DESC="DESC"})(zh||(zh={}));(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(qh||(qh={}));(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(so||(so={}));(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Kh||(Kh={}));(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(cs||(cs={}));(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"})(Wh||(Wh={}));(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Gh||(Gh={}));(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(nr||(nr={}));(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(ao||(ao={}));(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Qh||(Qh={}));(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"})(me||(me={}));(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(Tt||(Tt={}));(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(Xh||(Xh={}))});var Yh,Zh,Jh,ef,tf,rf,of,nf,sf,af,lf,cf=l(()=>{(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(Yh||(Yh={}));(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Zh||(Zh={}));(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"})(Jh||(Jh={}));(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(ef||(ef={}));(function(t){t.JSON="JSON",t.TEXT="TEXT"})(tf||(tf={}));(function(t){t.JSON="JSON",t.TEXT="TEXT"})(rf||(rf={}));(function(t){t.TEXT="TEXT",t.HTML="HTML"})(of||(of={}));(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(nf||(nf={}));(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(sf||(sf={}));(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"})(af||(af={}));(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(lf||(lf={}))});var uf=l(()=>{Ol();cf()});function pf(t,e){return t===e||(KS[t]??[]).some(r=>pf(r,e))}function us(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(i=>pf(i,e))}var KS,df=l(()=>{Ol();KS={[me.PERSONAL_BOOK_SHARE_USER]:[me.PERSONAL_BOOK_USER],[me.HTML_EXPORT_USER]:[me.PERSONAL_BOOK_USER],[me.PDF_EXPORT_USER]:[me.PERSONAL_BOOK_USER],[me.KHUB_ADMIN]:[me.CONTENT_PUBLISHER],[me.ADMIN]:[me.KHUB_ADMIN,me.USERS_ADMIN,me.PORTAL_ADMIN,me.BEHAVIOR_DATA_USER],[me.GENERATIVE_AI_EXPORT_USER]:[me.GENERATIVE_AI_USER]}});var hf=l(()=>{});var bi=l(()=>{Al();uf();df();hf();Al()});var xi,wl=l(()=>{"use strict";Ve();xi=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:i}=O.getState(),o=e??i;if(r&&o&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,o,!0)}static await(e){return new Promise(r=>{let i=t.get(e);if(i)r(i);else{let o=O.subscribe(()=>{i=t.get(e),i&&(o(),r(i))})}})}}});var lo,Rl=l(()=>{"use strict";wl();lo=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:xi.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):xi.await()}}});var Tl,je,Wr=l(()=>{"use strict";Tl=u(m());Rl();je=class extends lo{constructor(e=!0,r){var i;super(r),this.sortObjectFields=(n,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([a],[c])=>a.localeCompare(c)));let o=this.constructor;o.commonCache=(i=o.commonCache)!==null&&i!==void 0?i:new Tl.CacheRegistry,this.cache=e?o.commonCache:new Tl.CacheRegistry}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((r,i)=>0|31*r+i.charCodeAt(0),0))}}});var ps,_l=l(()=>{"use strict";Ve();bi();Wr();ps=class extends je{async listMySearches(){let{session:e}=O.getState();return us(e,me.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}}});var ds,kl=l(()=>{"use strict";Ve();Wr();ds=class extends je{async listMyBookmarks(){let e=O.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}}});var hs,ff=l(()=>{"use strict";Ve();Wr();hs=class extends je{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=O.getState().session;return!!e?.sessionAuthenticated}}});var fs,mf=l(()=>{"use strict";Wr();Ve();fs=class extends je{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=O.getState().session;return!!e?.sessionAuthenticated}}});var ms,WS,GS,yf,Ll,Pl,gf,vf,Qe,$l,Il,gs=l(()=>{"use strict";bi();ms=u(m());_l();kl();Ve();ff();mf();WS="ft-user-assets",GS={setAssetCount:(t,e)=>{let{userAssetType:r,count:i}=e.payload.assetCount;t.assetCounts.allAsset[r]=i},clearAssetCount:t=>{Object.values(Tt).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let r=e.payload.mapId;t.assetCounts.bookmarkByMap[r]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:r,mapId:i,asset:o}=e.payload;Pl(t,r,[...Ll(t,r),o]),gf(t,r,1,i),vf(t,o)},editAsset:(t,e)=>{let{assetType:r,asset:i}=e.payload;Pl(t,r,Ll(t,r).map(o=>o.id===i.id?i:o)),vf(t,i)},removeAsset:(t,e)=>{let{assetType:r,mapId:i,assetId:o}=e.payload;Pl(t,r,Ll(t,r).filter(n=>n.id!==o)),gf(t,r,-1,i)}},yf={[Tt.SEARCHES]:"savedSearches",[Tt.BOOKMARKS]:"bookmarks",[Tt.BOOKS]:void 0,[Tt.COLLECTIONS]:void 0},Ll=(t,e)=>{var r;let i=yf[e];return i?(r=t[i])!==null&&r!==void 0?r:[]:[]},Pl=(t,e,r)=>{let i=yf[e];i&&(t[i]=r)},gf=(t,e,r,i)=>{let o=t.assetCounts.allAsset[e];if(o!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,o+r),e===Tt.BOOKMARKS&&i)){let n=t.assetCounts.bookmarkByMap[i];t.assetCounts.bookmarkByMap[i]=Math.max(0,n+r)}},vf=(t,e)=>{let r=t.assetLabels.map(o=>o.title),i=e.labels.filter(o=>!r.includes(o)).map(o=>({title:o}));t.assetLabels.push(...i)},Qe=ms.FtReduxStore.get({name:WS,reducers:GS,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Tt).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),$l=class{constructor(e=new hs,r=new fs){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=O.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new ds,this.savedSearchesService=new ps,O.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=O.getState();(0,ms.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(),Qe.actions.clearAssetCount(),Qe.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Qe.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Qe.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Qe.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();Qe.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&Qe.getState().assetCounts.allAsset[e]!==r.count&&Qe.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&Qe.getState().assetCounts.bookmarkByMap[e]!==r.count&&Qe.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(Qe.getState().assetCounts.bookmarkByMap).length!==0;e===Tt.BOOKMARKS&&r&&Qe.actions.clearBookmarkCountByMap(),Qe.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;Qe.actions.bookmarks(r)}}},Il=new $l;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Il)});var bf=l(()=>{"use strict";bi();gs()});var Dl,xf=l(()=>{"use strict";Ve();Dl=class{addCommand(e,r=!1){O.commands.add(e,r)}consumeCommand(e){return O.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Dl});var _t,Sf,co,QS,vs,uo,ys,Cf=l(()=>{"use strict";Ve();_t=u(m());Wr();co=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},QS=Symbol("clearAfterUnitTest"),vs=class extends(0,_t.withEventBus)(je){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Sf]=()=>{this.defaultMessages={},this.cache=new _t.CacheRegistry,this.listeners={}},this.currentUiLocale=O.getState().uiLocale,O.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=O.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let r=e.name.toLowerCase();this.cache.setFinal(r,e),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,r){var i;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let o={...(i=this.defaultMessages[e])!==null&&i!==void 0?i:{},...r};(0,_t.deepEqual)(this.defaultMessages[e],o)||(this.defaultMessages[e]=o,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,i;return this.fetchContext(e),(i=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&i!==void 0?i:{}}resolveRawMessage(e,r){let i=e.toLowerCase();return this.resolveContext(i)[r]}resolveMessage(e,r,...i){var o;let n=e.toLowerCase(),s=this.resolveContext(n);return new _t.ParametrizedLabelResolver((o=this.defaultMessages[n])!==null&&o!==void 0?o:{},s).resolve(r,...i)}async fetchContext(e){let r=!this.cache.has(e),i;try{i=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(o){!(o instanceof _t.CanceledPromiseError)&&r&&console.error(o)}return i}subscribe(e,r){var i;return e=e.toLowerCase(),this.listeners[e]=(i=this.listeners[e])!==null&&i!==void 0?i:new Set,this.listeners[e].add(r),()=>{var o;return(o=this.listeners[e])===null||o===void 0?void 0:o.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new co({loadedContexts:e})),this.dispatchEvent(new co({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new co({loadedContexts:[e]})),this.dispatchEvent(new co({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(i=>(0,_t.delay)(0).then(()=>i()).catch(()=>null)))}};Sf=QS;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends vs{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends vs{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});uo=window.FluidTopicsI18nService,ys=window.FluidTopicsCustomI18nService});var Ef,Ml,Af=l(()=>{"use strict";Ef=u(m()),Ml=class{highlightHtml(e,r,i){(0,Ef.highlightHtml)(e,r,i)}};window.FluidTopicsHighlightHtmlService=new Ml});var Of,Nl,wf=l(()=>{"use strict";Of=u(m());Ve();Nl=class{isDate(e){var r,i,o,n;return(n=(o=((i=(r=O.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&i!==void 0?i:[]).find(a=>a.key===e))===null||o===void 0?void 0:o.date)!==null&&n!==void 0?n:!1}format(e,r){var i,o,n,s;if(e==null)return"";try{return Of.DateFormatter.format(e,(i=r?.locale)!==null&&i!==void 0?i:O.getState().uiLocale,(o=r?.longFormat)!==null&&o!==void 0?o:!1,(n=r?.withTime)!==null&&n!==void 0?n:!1,(s=r?.onlyTime)!==null&&s!==void 0?s:!1)}catch(a){throw console.error(`Date ${JSON.stringify(e)} is not valid`,a),a}}};window.FluidTopicsDateService=new Nl});var Rf,Er,Fl=l(()=>{"use strict";Rf=u(m());Ve();Er=class{static get(e,r){var i,o,n,s;let a=O.getState(),{lang:c,region:p}=(n=(o=(i=a.localesConfiguration)===null||i===void 0?void 0:i.defaultLocales)===null||o===void 0?void 0:o.defaultContentLocale)!==null&&n!==void 0?n:{lang:"en",region:"US"};return new Rf.SearchPlaceConverter(a.baseUrl,e??20,(s=a.localesConfiguration)===null||s===void 0?void 0:s.allLanguagesAllowed,r??`${c}-${p}`)}}});var bs,Tf=l(()=>{"use strict";Wr();bs=class extends je{async sendDocumentStartDisplayEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.start_display event")}async sendTopicStartDisplayEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send topic.start_display event")}async sendKhubSearchEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send khub.search event")}async sendDocumentSearchEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.search event")}async sendSearchPageSelectEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send search_page.select event")}async sendSearchResultOpenContextMenuEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send search_result.open_context_menu event")}async sendDocumentOnDemandTranslateEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.on_demand_translate event")}async sendTopicAiTranslateEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send topic.ai_translate event")}convertMapToAnalyticsDocument(e){let r;switch(e.editorialType){case"BOOK":r="STRUCTURED_DOCUMENT";break;case"SHARED_BOOK":r="SHARED_PERSONAL_BOOK";break;case"ARTICLE":r="RESOURCE";break;case"HTML_PACKAGE":r="HTML_PACKAGE";break;default:throw new TypeError("Unknown editorial type for map : "+e.editorialType)}return{id:e.id,title:e.title,type:r,metadata:e.metadata}}sortEventArrays(e){let r=Object.entries(e).map(([i,o])=>Array.isArray(o)?[i,o.map(n=>typeof n=="object"&&n!=null&&!Array.isArray(n)?this.sortEventArrays(n):n).sort((n,s)=>typeof n=="object"&&n!==null&&"key"in n?n.key.localeCompare(s.key):typeof n=="string"&&typeof s=="string"?n.localeCompare(s):String(n).localeCompare(String(s)))]:typeof o=="object"&&o!==null?[i,this.sortEventArrays(o)]:[i,o]);return Object.fromEntries(r)}sendEvents(e,r){let i="anything not undefined";return this.cache.get("analytics-event-"+this.hash(e),async()=>(await this.awaitApi).sendEvents(e).then(()=>i).catch(o=>(console.info(r),console.debug(o),i)),1e3)}}});var Bl,_f=l(()=>{"use strict";Fl();Bl=class{urlToSearchRequest(e){return Er.get().parse(e)}searchRequestToUrl(e){return Er.get().serialize(e)}};window.FluidTopicsUrlService=new Bl});var Si,kf=l(()=>{"use strict";Si=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Si.eventName="change"});var Ul,Lf,Pf=l(()=>{"use strict";Ul=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))}},Lf=new Ul});var Ar,xs,$f=l(()=>{"use strict";Ar=u(m());kf();Pf();xs=class t extends Ar.WithEventBus{static build(){return new t(window.history,Lf,()=>window.location,!1)}constructor(e,r,i,o){var n,s;super(),this.history=e,this.historyStorage=r,this.windowLocation=i,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(n=e.state)===null||n===void 0?void 0:n.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(o)}setCurrentState(e,r=!1){let i=r&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,i&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,Ar.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new Si(this.currentItem())),0)}installProxies(){let e=r=>(i,o,[n,s,a])=>{let c=r(),p={...c===this.currentIndex?this.currentState:void 0,...n,index:c,href:typeof a=="string"?a:(a??this.windowLocation()).href};i.apply(o,[p,s,a]),this.setCurrentState(p,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let r=this.history.length-1;r>=0;r--)e?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(e){var r;let i={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(i)}addHistoryChangeListener(e){this.addEventListener(Si.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Si.eventName,e)}currentItem(){return(0,Ar.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,Ar.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(i=>!!i).filter(i=>i.index<this.currentIndex).reverse();return(0,Ar.deepCopy)(r.find(i=>e(i)))}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return(0,Ar.deepCopy)(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var r;let i=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!i)return e;let o=e,n=e+1;for(;this.states.length>n&&!this.isDifferentMajorState(n,i);)this.hasState(n)&&(o=n),n++;return o}buildCurrentState(){var e,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&r!==void 0?r:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,r){var i;if(!this.hasState(e))return!1;let o=r??this.currentState.majorStateId,n=(i=this.states[e])===null||i===void 0?void 0:i.majorStateId;return n==null||n!=o}}});var If=l(()=>{"use strict";$f();window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=xs.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 Df=l(()=>{"use strict";Ve()});var Ss=l(()=>{"use strict";kl();wl();xf();Cf();Wr();Af();_l();wf();Fl();Tf();_f();If();Df()});var Mf,Nf,Hl=l(()=>{"use strict";Mf=u(b()),Nf=Mf.css`
261
- `});var Ff=l(()=>{"use strict"});function Bf(t,e){let{authenticationRequired:r,session:i}=O.getState();return r&&!i?.sessionAuthenticated?Promise.resolve(e):t()}var Uf=l(()=>{"use strict";Ve()});var Cs,Hf=l(()=>{"use strict";Rl();Cs=class extends lo{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}}});var Ci,Vl,Jo,jl=l(()=>{"use strict";Ci=u(m());Ve();Uf();Ss();Hf();Vl=class t extends Ci.FtStateManager{static build(e){return new t(O,e)}constructor(e,r){super(),this.store=e,this.cache=new Ci.CacheRegistry,this.withManualResources=!0,this.userLocaleService=new Cs,this.cleanSessionDebouncer=new Ci.Debouncer,this.reloadDebouncer=new Ci.Debouncer(500),this.apiProvider=r??(()=>xi.get())}setWithManualResources(e){this.withManualResources=e,this.updateIfNeeded()}async initService(){this.store.addEventListener(Cr.eventName,this.reloadConfiguration)}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.store.getState().session==null&&this.updateSession(),this.store.getState().metadataConfiguration==null&&this.updateMetadataConfiguration()),this.store.getState().localesConfiguration==null&&this.updateLocalesConfiguration(),(this.store.getState().availableContentLocales==null||this.store.getState().availableContentLocales.length==0)&&this.updateAvailableContentLocales())}async updateSession(){let e=await this.cache.get("session",async()=>{let r=await this.apiProvider().getCurrentSession();return r.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.setSession(void 0)},r.idleTimeoutInMillis),r});this.setSession(e)}async updateMetadataConfiguration(){this.setMetadataConfiguration(await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration()))}async updateLocalesConfiguration(){this.setLocalesConfiguration(await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration()))}async updateAvailableContentLocales(){var e;let r=await this.cache.get("availableContentLocales",()=>Bf(()=>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}setTenantId(e){this.store.actions.tenantId(e)}setApiIntegrationIdentifier(e){this.store.actions.apiIntegrationIdentifier(e)}setApiIntegrationAppVersion(e){this.store.actions.apiIntegrationAppVersion(e)}setUiLocale(e){this.store.actions.uiLocale(e)}setLocalesConfiguration(e){this.store.actions.localesConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setAvailableContentLocales(e){this.store.actions.availableContentLocales(e),setTimeout(()=>this.updateIfNeeded())}stopReloadDebouncer(){this.reloadDebouncer.cancel()}requestUiLocaleUpdate(e){this.userLocaleService.updateUiLocale({uiLocale:e}).then(r=>{r.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new Zo(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)}},Jo=Vl.build()});var Ei,en=l(()=>{Ei=class extends Event{constructor(e,r,i,o){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=r,this.callback=i,this.subscribe=o??!1}}});var Vf=l(()=>{});var zl=l(()=>{en();});var jf=l(()=>{});var ql=l(()=>{en();jf();});var tn,zf=l(()=>{en();tn=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=e=>{let r=this.pendingContextRequests.get(e.context);if(r===void 0)return;this.pendingContextRequests.delete(e.context);let{requests:i}=r;for(let{elementRef:o,callbackRef:n}of i){let s=o.deref(),a=n.deref();s===void 0||a===void 0||s.dispatchEvent(new Ei(e.context,s,a,!0))}},this.onContextRequest=e=>{if(e.subscribe!==!0)return;let r=e.contextTarget??e.composedPath()[0],i=e.callback,o=this.pendingContextRequests.get(e.context);o===void 0&&this.pendingContextRequests.set(e.context,o={callbacks:new WeakMap,requests:[]});let n=o.callbacks.get(r);n===void 0&&o.callbacks.set(r,n=new WeakSet),n.has(i)||(n.add(i),o.requests.push({elementRef:new WeakRef(r),callbackRef:new WeakRef(i)}))}}attach(e){e.addEventListener("context-request",this.onContextRequest),e.addEventListener("context-provider",this.onContextProvider)}detach(e){e.removeEventListener("context-request",this.onContextRequest),e.removeEventListener("context-provider",this.onContextProvider)}}});var qf=l(()=>{ql();});var Kf=l(()=>{zl();});var Wf=l(()=>{en();Vf();zl();ql();zf();qf();Kf()});var Gf,st,Ai,Pe,pe,Kl=l(()=>{"use strict";Gf=u(b()),st=u(B()),Ai=u(m());Hl();Ss();jl();Wf();Pe=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},pe=class extends Ai.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=Jo,this.contextRoot=new tn}render(){return Gf.html`
260
+ `});function Bp(t,e,r){return Fr(t,Bo(e,r))}function $n(t,e){return typeof t=="function"?t(e):t}function Ho(t){return t.split("-")[0]}function Br(t){return t.split("-")[1]}function Va(t){return t==="x"?"y":"x"}function ja(t){return t==="y"?"height":"width"}function In(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function za(t){return Va(In(t))}function Up(t,e,r){r===void 0&&(r=!1);let i=Br(t),o=za(t),n=ja(o),s=o==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[n]>e.floating[n]&&(s=Ua(s)),[s,Ua(s)]}function Hp(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function Ua(t){let e=Ho(t);return Ix[e]+t.slice(e.length)}function Dx(t){var e,r,i,o;return{top:(e=t.top)!=null?e:0,right:(r=t.right)!=null?r:0,bottom:(i=t.bottom)!=null?i:0,left:(o=t.left)!=null?o:0}}function Vp(t){return typeof t!="number"?Dx(t):{top:t,right:t,bottom:t,left:t}}function ui(t){let{x:e,y:r,width:i,height:o}=t;return{width:i,height:o,top:r,left:e,right:e+i,bottom:r+o,x:e,y:r}}var Fp,Np,Ha,Bo,Fr,Uo,rr,Ix,Dn=l(()=>{Fp=["top","right","bottom","left"],Np=["start","end"],Ha=Fp.reduce((t,e)=>t.concat(e,e+"-"+Np[0],e+"-"+Np[1]),[]),Bo=Math.min,Fr=Math.max,Uo=Math.round,rr=t=>({x:t,y:t}),Ix={left:"right",right:"left",bottom:"top",top:"bottom"}});function jp(t,e,r){let{reference:i,floating:o}=t,n=In(e),s=za(e),a=ja(s),c=Ho(e),p=n==="y",d=i.x+i.width/2-o.width/2,h=i.y+i.height/2-o.height/2,f=i[a]/2-o[a]/2,g;switch(c){case"top":g={x:d,y:i.y-o.height};break;case"bottom":g={x:d,y:i.y+i.height};break;case"right":g={x:i.x+i.width,y:h};break;case"left":g={x:i.x-o.width,y:h};break;default:g={x:i.x,y:i.y}}let v=Br(e);return v&&(g[s]+=f*(v==="end"?1:-1)*(r&&p?-1:1)),g}async function zp(t,e){var r;e===void 0&&(e={});let{x:i,y:o,platform:n,rects:s,elements:a,strategy:c}=t,{boundary:p="clippingAncestors",rootBoundary:d="viewport",elementContext:h="floating",altBoundary:f=!1,padding:g=0}=$n(e,t),v=Vp(g),E=a[f?h==="floating"?"reference":"floating":h],A=ui(await n.getClippingRect({element:(r=await(n.isElement==null?void 0:n.isElement(E)))==null||r?E:E.contextElement||await(n.getDocumentElement==null?void 0:n.getDocumentElement(a.floating)),boundary:p,rootBoundary:d,strategy:c})),w=h==="floating"?{x:i,y:o,width:s.floating.width,height:s.floating.height}:s.reference,$=await(n.getOffsetParent==null?void 0:n.getOffsetParent(a.floating)),F=await(n.isElement==null?void 0:n.isElement($))&&await(n.getScale==null?void 0:n.getScale($))||{x:1,y:1},Oe=ui(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:w,offsetParent:$,strategy:c}):w);return{top:(A.top-Oe.top+v.top)/F.y,bottom:(Oe.bottom-A.bottom+v.bottom)/F.y,left:(A.left-Oe.left+v.left)/F.x,right:(Oe.right-A.right+v.right)/F.x}}function Nx(t,e,r){return(t?[...r.filter(o=>Br(o)===t),...r.filter(o=>Br(o)!==t)]:r.filter(o=>Ho(o)===o)).filter(o=>t?Br(o)===t||(e?Hp(o)!==o:!1):!0)}var Mx,qp,Kp,Wp,Gp=l(()=>{Dn();Dn();Mx=50,qp=async(t,e,r)=>{let{placement:i="bottom",strategy:o="absolute",middleware:n=[],platform:s}=r,a=s.detectOverflow?s:{...s,detectOverflow:zp},c=await(s.isRTL==null?void 0:s.isRTL(e)),p=await s.getElementRects({reference:t,floating:e,strategy:o}),{x:d,y:h}=jp(p,i,c),f=i,g=0,v={};for(let y=0;y<n.length;y++){let E=n[y];if(!E)continue;let{name:A,fn:w}=E,{x:$,y:F,data:Oe,reset:be}=await w({x:d,y:h,initialPlacement:i,placement:f,strategy:o,middlewareData:v,rects:p,platform:a,elements:{reference:t,floating:e}});d=$??d,h=F??h,v[A]={...v[A],...Oe},be&&g<Mx&&(g++,typeof be=="object"&&(be.placement&&(f=be.placement),be.rects&&(p=be.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:o}):be.rects),{x:d,y:h}=jp(p,f,c)),y=-1)}return{x:d,y:h,placement:f,strategy:o,middlewareData:v}};Kp=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,i,o;let{rects:n,middlewareData:s,placement:a,platform:c,elements:p}=e,{crossAxis:d=!1,alignment:h,allowedPlacements:f=Ha,autoAlignment:g=!0,...v}=$n(t,e),y=h!==void 0||f===Ha?Nx(h||null,g,f):f,E=((r=s.autoPlacement)==null?void 0:r.index)||0,A=y[E];if(A==null)return{};if(a!==A)return{reset:{placement:y[0]}};let w=await c.detectOverflow(e,v),$=Up(A,n,await(c.isRTL==null?void 0:c.isRTL(p.floating))),F=[w[Ho(A)],w[$[0]],w[$[1]]],Oe=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:A,overflows:F}],be=y[E+1];if(be)return{data:{index:E+1,overflows:Oe},reset:{placement:be}};let Pr=Oe.map(dt=>{let Ot=Br(dt.placement);return[dt.placement,Ot&&d?dt.overflows.slice(0,2).reduce((ht,ni)=>ht+ni,0):dt.overflows[0],dt.overflows]}).sort((dt,Ot)=>dt[1]-Ot[1]),$r=((o=Pr.filter(dt=>dt[2].slice(0,Br(dt[0])?2:3).every(Ot=>Ot<=0))[0])==null?void 0:o[0])||Pr[0][0];return $r!==a?{data:{index:E+1,overflows:Oe},reset:{placement:$r}}:{}}}},Wp=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:i,placement:o,platform:n}=e,{mainAxis:s=!0,crossAxis:a=!1,limiter:c={fn:w=>{let{x:$,y:F}=w;return{x:$,y:F}}},...p}=$n(t,e),d={x:r,y:i},h=await n.detectOverflow(e,p),f=In(o),g=Va(f),v=d[g],y=d[f],E=(w,$)=>Bp($+h[w==="y"?"top":"left"],$,$-h[w==="y"?"bottom":"right"]);s&&(v=E(g,v)),a&&(y=E(f,y));let A=c.fn({...e,[g]:v,[f]:y});return{...A,data:{x:A.x-r,y:A.y-i,enabled:{[g]:s,[f]:a}}}}}}});function Nn(){return typeof window<"u"}function di(t){return Xp(t)?(t.nodeName||"").toLowerCase():"#document"}function nt(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function br(t){var e;return(e=(Xp(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Xp(t){return Nn()?t instanceof Node||t instanceof nt(t).Node:!1}function Bt(t){return Nn()?t instanceof Element||t instanceof nt(t).Element:!1}function xr(t){return Nn()?t instanceof HTMLElement||t instanceof nt(t).HTMLElement:!1}function Qp(t){return!Nn()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof nt(t).ShadowRoot}function Vo(t){let{overflow:e,overflowX:r,overflowY:i,display:o}=Ut(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&o!=="inline"&&o!=="contents"}function Yp(t){return/^(table|td|th)$/.test(di(t))}function jo(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}function Xi(t){let e=Bt(t)?Ut(t):t;return pi(e.transform)||pi(e.translate)||pi(e.scale)||pi(e.rotate)||pi(e.perspective)||!Fn()&&(pi(e.backdropFilter)||pi(e.filter))||Fx.test(e.willChange||"")||Bx.test(e.contain||"")}function Zp(t){let e=Ur(t);for(;xr(e)&&!Yi(e);){if(Xi(e))return e;if(jo(e))return null;e=Ur(e)}return null}function Fn(){return qa==null&&(qa=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),qa}function Yi(t){return/^(html|body|#document)$/.test(di(t))}function Ut(t){return nt(t).getComputedStyle(t)}function zo(t){return Bt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Ur(t){if(di(t)==="html")return t;let e=t.assignedSlot||t.parentNode||Qp(t)&&t.host||br(t);return Qp(e)?e.host:e}function Jp(t){let e=Ur(t);return Yi(e)?(t.ownerDocument||t).body:xr(e)&&Vo(e)?e:Jp(e)}function Mn(t,e,r){var i;e===void 0&&(e=[]),r===void 0&&(r=!0);let o=Jp(t),n=o===((i=t.ownerDocument)==null?void 0:i.body),s=nt(o);if(n){let a=Bn(s);return e.concat(s,s.visualViewport||[],Vo(o)?o:[],a&&r?Mn(a):[])}else return e.concat(o,Mn(o,[],r))}function Bn(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}var Fx,Bx,pi,qa,Ka=l(()=>{Fx=/transform|translate|scale|rotate|perspective|filter/,Bx=/paint|layout|strict|content/,pi=t=>!!t&&t!=="none"});function rd(t){let e=Ut(t),r=parseFloat(e.width)||0,i=parseFloat(e.height)||0,o=xr(t),n=o?t.offsetWidth:r,s=o?t.offsetHeight:i,a=Uo(r)!==n||Uo(i)!==s;return a&&(r=n,i=s),{width:r,height:i,$:a}}function id(t){return Bt(t)?t:t.contextElement}function Zi(t){let e=id(t);if(!xr(e))return rr(1);let r=e.getBoundingClientRect(),{width:i,height:o,$:n}=rd(e),s=(n?Uo(r.width):r.width)/i,a=(n?Uo(r.height):r.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}function od(t){let e=nt(t);return!Fn()||!e.visualViewport?Ux:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Hx(t,e,r){return e===void 0&&(e=!1),!!r&&e&&r===nt(t)}function qo(t,e,r,i){e===void 0&&(e=!1),r===void 0&&(r=!1);let o=t.getBoundingClientRect(),n=id(t),s=rr(1);e&&(i?Bt(i)&&(s=Zi(i)):s=Zi(t));let a=Hx(n,r,i)?od(n):rr(0),c=(o.left+a.x)/s.x,p=(o.top+a.y)/s.y,d=o.width/s.x,h=o.height/s.y;if(n&&i){let f=nt(n),g=Bt(i)?nt(i):i,v=f,y=Bn(v);for(;y&&g!==v;){let E=Zi(y),A=y.getBoundingClientRect(),w=Ut(y),$=A.left+(y.clientLeft+parseFloat(w.paddingLeft))*E.x,F=A.top+(y.clientTop+parseFloat(w.paddingTop))*E.y;c*=E.x,p*=E.y,d*=E.x,h*=E.y,c+=$,p+=F,v=nt(y),y=Bn(v)}}return ui({width:d,height:h,x:c,y:p})}function Un(t,e){let r=zo(t).scrollLeft;return e?e.left+r:qo(br(t)).left+r}function nd(t,e){let r=t.getBoundingClientRect(),i=r.left+e.scrollLeft-Un(t,r),o=r.top+e.scrollTop;return{x:i,y:o}}function Vx(t){let{elements:e,rect:r,offsetParent:i,strategy:o}=t,n=o==="fixed",s=br(i),a=e?jo(e.floating):!1;if(i===s||a&&n)return r;let c={scrollLeft:0,scrollTop:0},p=rr(1),d=rr(0),h=xr(i);if((h||!n)&&((di(i)!=="body"||Vo(s))&&(c=zo(i)),h)){let g=qo(i);p=Zi(i),d.x=g.x+i.clientLeft,d.y=g.y+i.clientTop}let f=s&&!h&&!n?nd(s,c):rr(0);return{width:r.width*p.x,height:r.height*p.y,x:r.x*p.x-c.scrollLeft*p.x+d.x+f.x,y:r.y*p.y-c.scrollTop*p.y+d.y+f.y}}function jx(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function zx(t){let e=zo(t),r=t.ownerDocument.body,i=Fr(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=Fr(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),n=-e.scrollLeft+Un(t),s=-e.scrollTop;return Ut(r).direction==="rtl"&&(n+=Fr(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:n,y:s}}function Kx(t,e,r){r===void 0&&(r="viewport");let i=r==="layoutViewport",o=nt(t),n=br(t),s=o.visualViewport,a=n.clientWidth,c=n.clientHeight,p=0,d=0;if(s){let f=!Fn()||e==="fixed";i?f||(p=-s.offsetLeft,d=-s.offsetTop):(a=s.width,c=s.height,f&&(p=s.offsetLeft,d=s.offsetTop))}if(Un(n)<=0){let f=n.ownerDocument,g=f.body,v=getComputedStyle(g),y=f.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,E=Math.abs(n.clientWidth-g.clientWidth-y),A=getComputedStyle(n).scrollbarGutter==="stable both-edges"?E/2:E;A<=qx&&(a-=A)}return{width:a,height:c,x:p,y:d}}function Wx(t,e){let r=qo(t,!0,e==="fixed"),i=r.top+t.clientTop,o=r.left+t.clientLeft,n=Zi(t),s=t.clientWidth*n.x,a=t.clientHeight*n.y,c=o*n.x,p=i*n.y;return{width:s,height:a,x:c,y:p}}function ed(t,e,r){let i;if(e==="viewport"||e==="layoutViewport")i=Kx(t,r,e);else if(e==="document")i=zx(br(t));else if(Bt(e))i=Wx(e,r);else{let o=od(t);i={x:e.x-o.x,y:e.y-o.y,width:e.width,height:e.height}}return ui(i)}function Gx(t,e){let r=e.get(t);if(r)return r;let i=Mn(t,[],!1).filter(a=>Bt(a)&&di(a)!=="body"),o=null,n=Ut(t).position==="fixed",s=n?Ur(t):t;for(;Bt(s)&&!Yi(s);){let a=Ut(s),c=Xi(s),p=o?o.position:n?"fixed":"";!c&&(p==="fixed"||p==="absolute"&&a.position==="static")?i=i.filter(h=>h!==s):o=a,s=Ur(s)}return e.set(t,i),i}function Qx(t){let{element:e,boundary:r,rootBoundary:i,strategy:o}=t,s=[...r==="clippingAncestors"?jo(e)?[]:Gx(e,this._c):[].concat(r),i],a=ed(e,s[0],o),c=a.top,p=a.right,d=a.bottom,h=a.left;for(let f=1;f<s.length;f++){let g=ed(e,s[f],o);c=Fr(g.top,c),p=Bo(g.right,p),d=Bo(g.bottom,d),h=Fr(g.left,h)}return{width:p-h,height:d-c,x:h,y:c}}function Xx(t){let{width:e,height:r}=rd(t);return{width:e,height:r}}function Yx(t,e,r){let i=xr(e),o=br(e),n=r==="fixed",s=qo(t,!0,n,e),a={scrollLeft:0,scrollTop:0},c=rr(0);if((i||!n)&&((di(e)!=="body"||Vo(o))&&(a=zo(e)),i)){let f=qo(e,!0,n,e);c.x=f.x+e.clientLeft,c.y=f.y+e.clientTop}!i&&o&&(c.x=Un(o));let p=o&&!i&&!n?nd(o,a):rr(0),d=s.left+a.scrollLeft-c.x-p.x,h=s.top+a.scrollTop-c.y-p.y;return{x:d,y:h,width:s.width,height:s.height}}function Wa(t){return Ut(t).position==="static"}function td(t,e){if(!xr(t)||Ut(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return br(t)===r&&(r=r.ownerDocument.body),r}function sd(t,e){let r=nt(t);if(jo(t))return r;if(!xr(t)){let o=Ur(t);for(;o&&!Yi(o);){if(Bt(o)&&!Wa(o))return o;o=Ur(o)}return r}let i=td(t,e);for(;i&&Yp(i)&&Wa(i);)i=td(i,e);return i&&Yi(i)&&Wa(i)&&!Xi(i)?r:i||Zp(t)||r}function Jx(t){return Ut(t).direction==="rtl"}var Ux,qx,Zx,Hn,ad,ld,cd,ud=l(()=>{Gp();Dn();Ka();Ux=rr(0);qx=25;Zx=async function(t){let e=this.getOffsetParent||sd,r=this.getDimensions,i=await r(t.floating);return{reference:Yx(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};Hn={convertOffsetParentRelativeRectToViewportRelativeRect:Vx,getDocumentElement:br,getClippingRect:Qx,getOffsetParent:sd,getElementRects:Zx,getClientRects:jx,getDimensions:Xx,getScale:Zi,isElement:Bt,isRTL:Jx},ad=Kp,ld=Wp,cd=(t,e,r)=>{let i=new Map,o=r??{},n={...Hn,...o.platform,_c:i};return qp(t,e,{...o,platform:n})}});function pd(t){return eS(t)}function Ga(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function eS(t){for(let e=t;e;e=Ga(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Ga(t);e;e=Ga(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||Xi(r)||e.tagName==="BODY"))return e}return null}var dd=l(()=>{Ka()});async function hd(t,e,r){let i;return typeof r=="object"?i=r:i={placement:r},cd(t,e,{strategy:i.strategy,platform:{...Hn,getOffsetParent:o=>Hn.getOffsetParent(o,pd)},middleware:[ld({crossAxis:!0}),ad({allowedPlacements:[i.placement]})]})}var fd=l(()=>{"use strict";ud();dd()});function gd(t,e){return(0,md.property)({type:Object,converter:{fromAttribute:r=>{if(r==null)return Ko(t);try{return JSON.parse(r)}catch{return Ko(t)}},toAttribute:r=>JSON.stringify(r)},hasChanged:Wo,...e??{}})}var md,Qa,Vn=l(()=>{"use strict";md=u(B(),1);hi();Qa=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)}});function tS(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;let r,i;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(i=r;i--!==0;)if(!jn(t[i],e[i]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;for(i of t.entries())if(!jn(i[1],e.get(i[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let o=s=>Object.keys(s).filter(a=>s[a]!=null),n=o(t);if(r=n.length,r!==o(e).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,n[i]))return!1;for(i=r;i--!==0;){let s=n[i];if(!jn(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function jn(t,e){try{return tS(t,e)}catch{return!1}}function Wo(t,e){return!jn(t,e)}function Ko(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function zn(t,e){let r=i=>i[t]===!0;return i=>{if(r(i))return i;let o=e(i);return o[t]=!0,o}}var hi=l(()=>{"use strict";Vn()});var vd,Xa,yd=l(()=>{"use strict";hi();vd=u(B(),1),Xa=t=>{let e=t??{};return(r,i)=>{var o;let n={hasChanged:Wo,attribute:!1,...e};(0,vd.property)(n)(r,i);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(i,{selector:(o=e.selector)!==null&&o!==void 0?o:(a=>a[i]),store:e.store})}}});var qn,Ya=l(()=>{"use strict";qn=class{constructor(){this.queue=[]}add(e,r=!1){r&&this.clear(e.type),this.queue.push(e)}consume(e){let r=this.queue.find(i=>i.type===e);return r&&(this.queue=this.queue.filter(i=>i!==r)),r}clear(e){typeof e=="string"?this.queue=this.queue.filter(r=>r.type!==e):this.queue=this.queue.filter(r=>!e.test(r.type))}}});var Kn,bd=l(()=>{"use strict";Kn=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,r){return this.callbacks=[e],this.debounce(r)}queue(e,r){return this.callbacks.push(e),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((r,i)=>{this.resolvePromise=r,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let i=[...this.callbacks];this.callbacks=[];let o=(e=this.rejectPromise)!==null&&e!==void 0?e:(()=>null),n=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let s of i)try{await s()}catch(a){o(a);return}n(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}});var Wn,rS,xd,Sd=l(()=>{Wn=globalThis,rS=Wn.ShadowRoot&&(Wn.ShadyCSS===void 0||Wn.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,xd=(t,e)=>{if(rS)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let i=document.createElement("style"),o=Wn.litNonce;o!==void 0&&i.setAttribute("nonce",o),i.textContent=r.cssText,t.appendChild(i)}}});var Cd,Gn,Ed=l(()=>{"use strict";Cd=u(b(),1);Sd();Vn();Gn=class extends Cd.LitElement{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let e=this.scopedRegistryConstructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,e.defineScopedElements(e.elementDefinitions));let r={...e.shadowRootOptions,customElements:e.registry},i=this.renderOptions.creationScope=this.attachShadow(r);return xd(i,e.elementStyles),i}static canDefineScopedElement(e){return!!this.registry&&!this.registry.get(e)}static defineScopedElements(e){Object.entries(e).forEach(([r,i])=>this.defineScopedElement(r,i))}static defineScopedElement(e,r){Qa(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 Ad(t,e,...r){var i;let o=t.querySelector(e);for(let n of r)o=(i=o?.shadowRoot)===null||i===void 0?void 0:i.querySelector(n);return o}var Od=l(()=>{"use strict"});var fi,eo,_d,wd,Rd,kd,Td,Ji,ir,Ld=l(()=>{"use strict";fi=u(B(),1);Vn();bd();Ed();Od();eo=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},wd=Symbol("constructorPrototype"),Rd=Symbol("constructorName"),kd=Symbol("exportpartsDebouncer"),Td=Symbol("dynamicDependenciesLoaded"),Ji=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};Ji.eventName="exportparts-updated";ir=class extends Gn{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[_d]=new Kn(5),this.scheduleExportpartsUpdate=()=>{var e,r,i;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(i=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&i!==void 0&&i)&&this[kd].run(()=>{var o,n;!((o=this.exportpartsPrefix)===null||o===void 0)&&o.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((n=this.exportpartsPrefixes)===null||n===void 0?void 0:n.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[Rd]=this.constructor.name,this[wd]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Rd]&&Object.setPrototypeOf(this,this[wd])}connectedCallback(){var e;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(i){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",i)}let r=this.constructor;r[Td]||(r[Td]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(Ji.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(Ji.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 Ji)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:i,shadowPath:o}=this.elementToFocus;if(i!=null){let n=[...o??[],i];r=Ad(this.shadowRoot,...n)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var r,i,o;if(((i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(n=>n.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((o=this.customStylesheet)!==null&&o!==void 0?o:"")}catch(n){console.error(n,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let n=document.createElement("style");n.classList.add("ft-lit-element--custom-stylesheet"),n.innerHTML=this.customStylesheet,this.shadowRoot.append(n)}}setExportpartsAttribute(e){var r,i,o,n,s,a;let c=f=>f!=null&&f.trim().length>0,p=e.filter(c).map(f=>f.trim());if(p.length===0){this.exportparts=void 0;return}let d=new Set;for(let f of(i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&i!==void 0?i:[]){let g=(n=(o=f.getAttribute("part"))===null||o===void 0?void 0:o.split(" "))!==null&&n!==void 0?n:[],v=(a=(s=f.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(E=>E.split(":")[1]))!==null&&a!==void 0?a:[],y=[...g,...v].filter(c).map(E=>E.trim());for(let E of y)d.add(E)}if(d.size===0){this.exportparts=void 0;return}let h=[...d.values()].flatMap(f=>p.map(g=>`${f}:${g}--${f}`));this.exportparts=[...this.part,...h].join(", ")}};_d=kd;eo([(0,fi.property)()],ir.prototype,"exportpartsPrefix",void 0);eo([gd([])],ir.prototype,"exportpartsPrefixes",void 0);eo([(0,fi.property)({reflect:!0})],ir.prototype,"exportparts",void 0);eo([(0,fi.property)()],ir.prototype,"customStylesheet",void 0);eo([(0,fi.property)()],ir.prototype,"elementToFocus",void 0);eo([(0,fi.state)()],ir.prototype,"useAdoptedStyleSheets",void 0)});function Qn(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Xn=l(()=>{"use strict"});var Go,Hr,mi,iS,Pd,$d=l(()=>{"use strict";Ld();Xn();hi();Go=Symbol("internalReduxEventsUnsubscribers"),Hr=Symbol("internalStoresUnsubscribers"),mi=Symbol("internalStores"),iS=zn(Symbol("withRedux"),function(t){var e,r,i;class o extends t{constructor(){super(...arguments),this[e]=new Map,this[r]=new Map,this[i]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(a=>s.has(a))&&this.updateFromStores()}getUnnamedStore(){if(this[mi].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[mi].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[mi].get(s)}addStore(s,a){var c;a=(c=a??s.name)!==null&&c!==void 0?c:"default-store",this.unsubscribeFromStore(a),this[mi].set(a,s),this.subscribeToStore(a,s),this.updateFromStores()}removeStore(s){let a=typeof s=="string"?s:s.name;this.unsubscribeFromStore(a),this[mi].delete(a)}setupStores(){this.unsubscribeFromStores(),this[mi].forEach((s,a)=>this.subscribeToStore(a,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,a)=>{let c=this.constructor.getPropertyOptions(a);if(!c?.attribute||!this.hasAttribute(typeof c?.attribute=="string"?c.attribute:a)){let p=this.getStore(s.store);p&&(s.store?this[Hr].has(s.store):this[Hr].size>0)&&(this[a]=s.selector(p.getState(),this))}})}subscribeToStore(s,a){var c;this[Hr].set(s,a.subscribe(()=>this.updateFromStores())),this[Go].set(s,[]),Qn(a)&&a.eventBus&&((c=this.reduxConstructor.reduxEventListeners)===null||c===void 0||c.forEach((p,d)=>{if(typeof this[d]=="function"&&(!p.store||a.name===p.store)){let h=f=>this[d](f);a.addEventListener(p.eventName,h),this[Go].get(s).push(()=>a.removeEventListener(p.eventName,h))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[Hr].forEach((s,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(s){var a;this[Hr].has(s)&&this[Hr].get(s)(),this[Hr].delete(s),(a=this[Go].get(s))===null||a===void 0||a.forEach(c=>c()),this[Go].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=Hr,r=mi,i=Go,o.reduxProperties=new Map,o.reduxReactiveProperties=new Set,o.reduxEventListeners=new Map,o}),Pd=class extends iS(ir){}});function Rt(t){for(var e=arguments.length,r=Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];if(0)var o,n;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 Sr(t){return!!t&&!!t[ce]}function Ht(t){var e;return!!t&&((function(r){if(!r||typeof r!="object")return!1;var i=Object.getPrototypeOf(r);if(i===null)return!0;var o=Object.hasOwnProperty.call(i,"constructor")&&i.constructor;return o===Object||typeof o=="function"&&Function.toString.call(o)===pS})(t)||Array.isArray(t)||!!t[Ud]||!!(!((e=t.constructor)===null||e===void 0)&&e[Ud])||sl(t)||al(t))}function gi(t,e,r){r===void 0&&(r=!1),io(t)===0?(r?Object.keys:ro)(t).forEach((function(i){r&&typeof i=="symbol"||e(i,t[i],t)})):t.forEach((function(i,o){return e(o,i,t)}))}function io(t){var e=t[ce];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:sl(t)?2:al(t)?3:0}function to(t,e){return io(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function oS(t,e){return io(t)===2?t.get(e):t[e]}function Hd(t,e,r){var i=io(t);i===2?t.set(e,r):i===3?t.add(r):t[e]=r}function Vd(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function sl(t){return cS&&t instanceof Map}function al(t){return uS&&t instanceof Set}function Vr(t){return t.o||t.t}function ll(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=qd(t);delete e[ce];for(var r=ro(e),i=0;i<r.length;i++){var o=r[i],n=e[o];n.writable===!1&&(n.writable=!0,n.configurable=!0),(n.get||n.set)&&(e[o]={configurable:!0,writable:!0,enumerable:n.enumerable,value:t[o]})}return Object.create(Object.getPrototypeOf(t),e)}function cl(t,e){return e===void 0&&(e=!1),ul(t)||Sr(t)||!Ht(t)||(io(t)>1&&(t.set=t.add=t.clear=t.delete=nS),Object.freeze(t),e&&gi(t,(function(r,i){return cl(i,!0)}),!0)),t}function nS(){Rt(2)}function ul(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function or(t){var e=nl[t];return e||Rt(18,t),e}function sS(t,e){nl[t]||(nl[t]=e)}function rl(){return Xo}function Za(t,e){e&&(or("Patches"),t.u=[],t.s=[],t.v=e)}function Yn(t){il(t),t.p.forEach(aS),t.p=null}function il(t){t===Xo&&(Xo=t.l)}function Id(t){return Xo={p:[],l:Xo,h:t,m:!0,_:0}}function aS(t){var e=t[ce];e.i===0||e.i===1?e.j():e.g=!0}function Ja(t,e){e._=e.p.length;var r=e.p[0],i=t!==void 0&&t!==r;return e.h.O||or("ES5").S(e,t,i),i?(r[ce].P&&(Yn(e),Rt(4)),Ht(t)&&(t=Zn(e,t),e.l||Jn(e,t)),e.u&&or("Patches").M(r[ce].t,t,e.u,e.s)):t=Zn(e,r,[]),Yn(e),e.u&&e.v(e.u,e.s),t!==zd?t:void 0}function Zn(t,e,r){if(ul(e))return e;var i=e[ce];if(!i)return gi(e,(function(a,c){return Dd(t,i,e,a,c,r)}),!0),e;if(i.A!==t)return e;if(!i.P)return Jn(t,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var o=i.i===4||i.i===5?i.o=ll(i.k):i.o,n=o,s=!1;i.i===3&&(n=new Set(o),o.clear(),s=!0),gi(n,(function(a,c){return Dd(t,i,o,a,c,r,s)})),Jn(t,o,!1),r&&t.u&&or("Patches").N(i,r,t.u,t.s)}return i.o}function Dd(t,e,r,i,o,n,s){if(Sr(o)){var a=Zn(t,o,n&&e&&e.i!==3&&!to(e.R,i)?n.concat(i):void 0);if(Hd(r,i,a),!Sr(a))return;t.m=!1}else s&&r.add(o);if(Ht(o)&&!ul(o)){if(!t.h.D&&t._<1)return;Zn(t,o),e&&e.A.l||Jn(t,o)}}function Jn(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&cl(e,r)}function el(t,e){var r=t[ce];return(r?Vr(r):t)[e]}function Md(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var i=Object.getOwnPropertyDescriptor(r,e);if(i)return i;r=Object.getPrototypeOf(r)}}function jr(t){t.P||(t.P=!0,t.l&&jr(t.l))}function tl(t){t.o||(t.o=ll(t.t))}function ol(t,e,r){var i=sl(e)?or("MapSet").F(e,r):al(e)?or("MapSet").T(e,r):t.O?(function(o,n){var s=Array.isArray(o),a={i:s?1:0,A:n?n.A:rl(),P:!1,I:!1,R:{},l:n,t:o,k:null,o:null,j:null,C:!1},c=a,p=Yo;s&&(c=[a],p=Qo);var d=Proxy.revocable(c,p),h=d.revoke,f=d.proxy;return a.k=f,a.j=h,f})(e,r):or("ES5").J(e,r);return(r?r.A:rl()).p.push(i),i}function lS(t){return Sr(t)||Rt(22,t),(function e(r){if(!Ht(r))return r;var i,o=r[ce],n=io(r);if(o){if(!o.P&&(o.i<4||!or("ES5").K(o)))return o.t;o.I=!0,i=Nd(r,n),o.I=!1}else i=Nd(r,n);return gi(i,(function(s,a){o&&oS(o.t,s)===a||Hd(i,s,e(a))})),n===3?new Set(i):i})(t)}function Nd(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return ll(t)}function jd(){function t(s,a){var c=n[s];return c?c.enumerable=a:n[s]=c={configurable:!0,enumerable:a,get:function(){var p=this[ce];return Yo.get(p,s)},set:function(p){var d=this[ce];Yo.set(d,s,p)}},c}function e(s){for(var a=s.length-1;a>=0;a--){var c=s[a][ce];if(!c.P)switch(c.i){case 5:i(c)&&jr(c);break;case 4:r(c)&&jr(c)}}}function r(s){for(var a=s.t,c=s.k,p=ro(c),d=p.length-1;d>=0;d--){var h=p[d];if(h!==ce){var f=a[h];if(f===void 0&&!to(a,h))return!0;var g=c[h],v=g&&g[ce];if(v?v.t!==f:!Vd(g,f))return!0}}var y=!!a[ce];return p.length!==ro(a).length+(y?0:1)}function i(s){var a=s.k;if(a.length!==s.t.length)return!0;var c=Object.getOwnPropertyDescriptor(a,a.length-1);if(c&&!c.get)return!0;for(var p=0;p<a.length;p++)if(!a.hasOwnProperty(p))return!0;return!1}function o(s){s.g&&Rt(3,JSON.stringify(Vr(s)))}var n={};sS("ES5",{J:function(s,a){var c=Array.isArray(s),p=(function(h,f){if(h){for(var g=Array(f.length),v=0;v<f.length;v++)Object.defineProperty(g,""+v,t(v,!0));return g}var y=qd(f);delete y[ce];for(var E=ro(y),A=0;A<E.length;A++){var w=E[A];y[w]=t(w,h||!!y[w].enumerable)}return Object.create(Object.getPrototypeOf(f),y)})(c,s),d={i:c?5:4,A:a?a.A:rl(),P:!1,I:!1,R:{},l:a,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,ce,{value:d,writable:!0}),p},S:function(s,a,c){c?Sr(a)&&a[ce].A===s&&e(s.p):(s.u&&(function p(d){if(d&&typeof d=="object"){var h=d[ce];if(h){var f=h.t,g=h.k,v=h.R,y=h.i;if(y===4)gi(g,(function(F){F!==ce&&(f[F]!==void 0||to(f,F)?v[F]||p(g[F]):(v[F]=!0,jr(h)))})),gi(f,(function(F){g[F]!==void 0||to(g,F)||(v[F]=!1,jr(h))}));else if(y===5){if(i(h)&&(jr(h),v.length=!0),g.length<f.length)for(var E=g.length;E<f.length;E++)v[E]=!1;else for(var A=f.length;A<g.length;A++)v[A]=!0;for(var w=Math.min(g.length,f.length),$=0;$<w;$++)g.hasOwnProperty($)||(v[$]=!0),v[$]===void 0&&p(g[$])}}}})(s.p[0]),e(s.p))},K:function(s){return s.i===4?r(s):i(s)}})}var Fd,Xo,pl,cS,uS,Bd,zd,Ud,ce,pS,ro,qd,nl,Yo,Qo,dS,mt,hS,ZC,JC,eE,tE,rE,iE,es,ts=l(()=>{pl=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",cS=typeof Map<"u",uS=typeof Set<"u",Bd=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",zd=pl?Symbol.for("immer-nothing"):((Fd={})["immer-nothing"]=!0,Fd),Ud=pl?Symbol.for("immer-draftable"):"__$immer_draftable",ce=pl?Symbol.for("immer-state"):"__$immer_state",pS=""+Object.prototype.constructor,ro=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,qd=Object.getOwnPropertyDescriptors||function(t){var e={};return ro(t).forEach((function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)})),e},nl={},Yo={get:function(t,e){if(e===ce)return t;var r=Vr(t);if(!to(r,e))return(function(o,n,s){var a,c=Md(n,s);return c?"value"in c?c.value:(a=c.get)===null||a===void 0?void 0:a.call(o.k):void 0})(t,r,e);var i=r[e];return t.I||!Ht(i)?i:i===el(t.t,e)?(tl(t),t.o[e]=ol(t.A.h,i,t)):i},has:function(t,e){return e in Vr(t)},ownKeys:function(t){return Reflect.ownKeys(Vr(t))},set:function(t,e,r){var i=Md(Vr(t),e);if(i?.set)return i.set.call(t.k,r),!0;if(!t.P){var o=el(Vr(t),e),n=o?.[ce];if(n&&n.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(Vd(r,o)&&(r!==void 0||to(t.t,e)))return!0;tl(t),jr(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 el(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,tl(t),jr(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=Vr(t),i=Reflect.getOwnPropertyDescriptor(r,e);return i&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:i.enumerable,value:r[e]}},defineProperty:function(){Rt(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Rt(12)}},Qo={};gi(Yo,(function(t,e){Qo[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Qo.deleteProperty=function(t,e){return Qo.set.call(this,t,e,void 0)},Qo.set=function(t,e,r){return Yo.set.call(this,t[0],e,r,t[0])};dS=(function(){function t(r){var i=this;this.O=Bd,this.D=!0,this.produce=function(o,n,s){if(typeof o=="function"&&typeof n!="function"){var a=n;n=o;var c=i;return function(y){var E=this;y===void 0&&(y=a);for(var A=arguments.length,w=Array(A>1?A-1:0),$=1;$<A;$++)w[$-1]=arguments[$];return c.produce(y,(function(F){var Oe;return(Oe=n).call.apply(Oe,[E,F].concat(w))}))}}var p;if(typeof n!="function"&&Rt(6),s!==void 0&&typeof s!="function"&&Rt(7),Ht(o)){var d=Id(i),h=ol(i,o,void 0),f=!0;try{p=n(h),f=!1}finally{f?Yn(d):il(d)}return typeof Promise<"u"&&p instanceof Promise?p.then((function(y){return Za(d,s),Ja(y,d)}),(function(y){throw Yn(d),y})):(Za(d,s),Ja(p,d))}if(!o||typeof o!="object"){if((p=n(o))===void 0&&(p=o),p===zd&&(p=void 0),i.D&&cl(p,!0),s){var g=[],v=[];or("Patches").M(o,p,g,v),s(g,v)}return p}Rt(21,o)},this.produceWithPatches=function(o,n){if(typeof o=="function")return function(p){for(var d=arguments.length,h=Array(d>1?d-1:0),f=1;f<d;f++)h[f-1]=arguments[f];return i.produceWithPatches(p,(function(g){return o.apply(void 0,[g].concat(h))}))};var s,a,c=i.produce(o,n,(function(p,d){s=p,a=d}));return typeof Promise<"u"&&c instanceof Promise?c.then((function(p){return[p,s,a]})):[c,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){Ht(r)||Rt(8),Sr(r)&&(r=lS(r));var i=Id(this),o=ol(this,r,void 0);return o[ce].C=!0,il(i),o},e.finishDraft=function(r,i){var o=r&&r[ce],n=o.A;return Za(n,i),Ja(void 0,n)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!Bd&&Rt(20),this.O=r},e.applyPatches=function(r,i){var o;for(o=i.length-1;o>=0;o--){var n=i[o];if(n.path.length===0&&n.op==="replace"){r=n.value;break}}o>-1&&(i=i.slice(o+1));var s=or("Patches").$;return Sr(r)?s(r,i):this.produce(r,(function(a){return s(a,i)}))},t})(),mt=new dS,hS=mt.produce,ZC=mt.produceWithPatches.bind(mt),JC=mt.setAutoFreeze.bind(mt),eE=mt.setUseProxies.bind(mt),tE=mt.applyPatches.bind(mt),rE=mt.createDraft.bind(mt),iE=mt.finishDraft.bind(mt),es=hS});function vi(t){"@babel/helpers - typeof";return vi=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},vi(t)}var dl=l(()=>{});function Kd(t,e){if(vi(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var i=r.call(t,e||"default");if(vi(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Wd=l(()=>{dl()});function Gd(t){var e=Kd(t,"string");return vi(e)=="symbol"?e:e+""}var Qd=l(()=>{dl();Wd()});function Xd(t,e,r){return(e=Gd(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Yd=l(()=>{Qd()});function Zd(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,i)}return r}function hl(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Zd(Object(r),!0).forEach(function(i){Xd(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Zd(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}var Jd=l(()=>{Yd()});function He(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. "}function fS(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 ml(t,e,r){var i;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(He(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(He(1));return r(ml)(t,e)}if(typeof t!="function")throw new Error(He(2));var o=t,n=e,s=[],a=s,c=!1;function p(){a===s&&(a=s.slice())}function d(){if(c)throw new Error(He(3));return n}function h(y){if(typeof y!="function")throw new Error(He(4));if(c)throw new Error(He(5));var E=!0;return p(),a.push(y),function(){if(E){if(c)throw new Error(He(6));E=!1,p();var w=a.indexOf(y);a.splice(w,1),s=null}}}function f(y){if(!fS(y))throw new Error(He(7));if(typeof y.type>"u")throw new Error(He(8));if(c)throw new Error(He(9));try{c=!0,n=o(n,y)}finally{c=!1}for(var E=s=a,A=0;A<E.length;A++){var w=E[A];w()}return y}function g(y){if(typeof y!="function")throw new Error(He(10));o=y,f({type:rs.REPLACE})}function v(){var y,E=h;return y={subscribe:function(w){if(typeof w!="object"||w===null)throw new Error(He(11));function $(){w.next&&w.next(d())}$();var F=E($);return{unsubscribe:F}}},y[eh]=function(){return this},y}return f({type:rs.INIT}),i={dispatch:f,subscribe:h,getState:d,replaceReducer:g},i[eh]=v,i}function mS(t){Object.keys(t).forEach(function(e){var r=t[e],i=r(void 0,{type:rs.INIT});if(typeof i>"u")throw new Error(He(12));if(typeof r(void 0,{type:rs.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(He(13))})}function th(t){for(var e=Object.keys(t),r={},i=0;i<e.length;i++){var o=e[i];typeof t[o]=="function"&&(r[o]=t[o])}var n=Object.keys(r),s,a;try{mS(r)}catch(c){a=c}return function(p,d){if(p===void 0&&(p={}),a)throw a;if(0)var h;for(var f=!1,g={},v=0;v<n.length;v++){var y=n[v],E=r[y],A=p[y],w=E(A,d);if(typeof w>"u"){var $=d&&d.type;throw new Error(He(14))}g[y]=w,f=f||w!==A}return f=f||n.length!==Object.keys(p).length,f?g:p}}function oo(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.length===0?function(i){return i}:e.length===1?e[0]:e.reduce(function(i,o){return function(){return i(o.apply(void 0,arguments))}})}function rh(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(i){return function(){var o=i.apply(void 0,arguments),n=function(){throw new Error(He(15))},s={getState:o.getState,dispatch:function(){return n.apply(void 0,arguments)}},a=e.map(function(c){return c(s)});return n=oo.apply(void 0,a)(o.dispatch),hl(hl({},o),{},{dispatch:n})}}}var eh,fl,rs,is=l(()=>{Jd();eh=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),fl=function(){return Math.random().toString(36).substring(7).split("").join(".")},rs={INIT:"@@redux/INIT"+fl(),REPLACE:"@@redux/REPLACE"+fl(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+fl()}}});function ih(t){var e=function(i){var o=i.dispatch,n=i.getState;return function(s){return function(a){return typeof a=="function"?a(o,n,t):s(a)}}};return e}var oh,gl,nh=l(()=>{oh=ih();oh.withExtraArgument=ih;gl=oh});function AS(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 qr(t,e){function r(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];if(e){var n=e.apply(void 0,i);if(!n)throw new Error("prepareAction did not return an object");return zr(zr({type:t,payload:n.payload},"meta"in n&&{meta:n.meta}),"error"in n&&{error:n.error})}return{type:t,payload:i[0]}}return r.toString=function(){return""+t},r.type=t,r.match=function(i){return i.type===t},r}function xl(t){return Ht(t)?es(t,function(){}):t}function RS(t){return typeof t=="boolean"}function TS(){return function(e){return _S(e)}}function _S(t){t===void 0&&(t={});var e=t.thunk,r=e===void 0?!0:e,i=t.immutableCheck,o=i===void 0?!0:i,n=t.serializableCheck,s=n===void 0?!0:n,a=t.actionCreatorCheck,c=a===void 0?!0:a,p=new OS;if(r&&(RS(r)?p.push(gl):p.push(gl.withExtraArgument(r.extraArgument))),0){if(o)var d;if(s)var h;if(c)var f}return p}function ph(t){var e=TS(),r=t||{},i=r.reducer,o=i===void 0?void 0:i,n=r.middleware,s=n===void 0?e():n,a=r.devTools,c=a===void 0?!0:a,p=r.preloadedState,d=p===void 0?void 0:p,h=r.enhancers,f=h===void 0?void 0:h,g;if(typeof o=="function")g=o;else if(AS(o))g=th(o);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 v=s;if(typeof v=="function"&&(v=v(e),!yl&&!Array.isArray(v)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!yl&&v.some(function(F){return typeof F!="function"}))throw new Error("each middleware provided to configureStore must be a function");var y=rh.apply(void 0,v),E=oo;c&&(E=ES(zr({trace:!yl},typeof c=="object"&&c)));var A=new wS(y),w=A;Array.isArray(f)?w=no([y],f):typeof f=="function"&&(w=f(A));var $=E.apply(void 0,w);return ml(g,d,$)}function dh(t){var e={},r=[],i,o={addCase:function(n,s){var a=typeof n=="string"?n:n.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,o},addMatcher:function(n,s){return r.push({matcher:n,reducer:s}),o},addDefaultCase:function(n){return i=n,o}};return t(o),[e,r,i]}function kS(t){return typeof t=="function"}function LS(t,e,r,i){r===void 0&&(r=[]);var o=typeof e=="function"?dh(e):[e,r,i],n=o[0],s=o[1],a=o[2],c;if(kS(t))c=function(){return xl(t())};else{var p=xl(t);c=function(){return p}}function d(h,f){h===void 0&&(h=c());var g=no([n[f.type]],s.filter(function(v){var y=v.matcher;return y(f)}).map(function(v){var y=v.reducer;return y}));return g.filter(function(v){return!!v}).length===0&&(g=[a]),g.reduce(function(v,y){if(y)if(Sr(v)){var E=v,A=y(E,f);return A===void 0?v:A}else{if(Ht(v))return es(v,function(w){return y(w,f)});var A=y(v,f);if(A===void 0){if(v===null)return v;throw Error("A case reducer on a non-draftable value must not return undefined")}return A}return v},h)}return d.getInitialState=c,d}function PS(t,e){return t+"/"+e}function hh(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:xl(t.initialState),i=t.reducers||{},o=Object.keys(i),n={},s={},a={};o.forEach(function(d){var h=i[d],f=PS(e,d),g,v;"reducer"in h?(g=h.reducer,v=h.prepare):g=h,n[d]=g,s[f]=g,a[d]=v?qr(f,v):qr(f)});function c(){var d=typeof t.extraReducers=="function"?dh(t.extraReducers):[t.extraReducers],h=d[0],f=h===void 0?{}:h,g=d[1],v=g===void 0?[]:g,y=d[2],E=y===void 0?void 0:y,A=zr(zr({},f),s);return LS(r,function(w){for(var $ in A)w.addCase($,A[$]);for(var F=0,Oe=v;F<Oe.length;F++){var be=Oe[F];w.addMatcher(be.matcher,be.reducer)}E&&w.addDefaultCase(E)})}var p;return{name:e,reducer:function(d,h){return p||(p=c()),p(d,h)},actions:a,caseReducers:n,getInitialState:function(){return p||(p=c()),p.getInitialState()}}}function NS(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function FS(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var uh,gS,no,vS,yS,bS,sh,xS,SS,ah,zr,vl,CS,ES,SE,OS,wS,yl,$S,IS,DS,bl,lh,MS,OE,fh,mh,gh,wE,RE,TE,_E,Sl,kE,LE,PE,ch,$E,BS,IE,vh=l(()=>{ts();is();is();is();nh();ts();ts();uh=(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(i[n]=o[n])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}})(),gS=function(t,e){var r={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},i,o,n,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(p){return function(d){return c([p,d])}}function c(p){if(i)throw new TypeError("Generator is already executing.");for(;r;)try{if(i=1,o&&(n=p[0]&2?o.return:p[0]?o.throw||((n=o.return)&&n.call(o),0):o.next)&&!(n=n.call(o,p[1])).done)return n;switch(o=0,n&&(p=[p[0]&2,n.value]),p[0]){case 0:case 1:n=p;break;case 4:return r.label++,{value:p[1],done:!1};case 5:r.label++,o=p[1],p=[0];continue;case 7:p=r.ops.pop(),r.trys.pop();continue;default:if(n=r.trys,!(n=n.length>0&&n[n.length-1])&&(p[0]===6||p[0]===2)){r=0;continue}if(p[0]===3&&(!n||p[1]>n[0]&&p[1]<n[3])){r.label=p[1];break}if(p[0]===6&&r.label<n[1]){r.label=n[1],n=p;break}if(n&&r.label<n[2]){r.label=n[2],r.ops.push(p);break}n[2]&&r.ops.pop(),r.trys.pop();continue}p=e.call(t,r)}catch(d){p=[6,d],o=0}finally{i=n=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},no=function(t,e){for(var r=0,i=e.length,o=t.length;r<i;r++,o++)t[o]=e[r];return t},vS=Object.defineProperty,yS=Object.defineProperties,bS=Object.getOwnPropertyDescriptors,sh=Object.getOwnPropertySymbols,xS=Object.prototype.hasOwnProperty,SS=Object.prototype.propertyIsEnumerable,ah=function(t,e,r){return e in t?vS(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},zr=function(t,e){for(var r in e||(e={}))xS.call(e,r)&&ah(t,r,e[r]);if(sh)for(var i=0,o=sh(e);i<o.length;i++){var r=o[i];SS.call(e,r)&&ah(t,r,e[r])}return t},vl=function(t,e){return yS(t,bS(e))},CS=function(t,e,r){return new Promise(function(i,o){var n=function(c){try{a(r.next(c))}catch(p){o(p)}},s=function(c){try{a(r.throw(c))}catch(p){o(p)}},a=function(c){return c.done?i(c.value):Promise.resolve(c.value).then(n,s)};a((r=r.apply(t,e)).next())})},ES=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?oo:oo.apply(null,arguments)},SE=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};OS=(function(t){uh(e,t);function e(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var o=t.apply(this,r)||this;return Object.setPrototypeOf(o,e.prototype),o}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,no([void 0],r[0].concat(this)))):new(e.bind.apply(e,no([void 0],r.concat(this))))},e})(Array),wS=(function(t){uh(e,t);function e(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var o=t.apply(this,r)||this;return Object.setPrototypeOf(o,e.prototype),o}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,no([void 0],r[0].concat(this)))):new(e.bind.apply(e,no([void 0],r.concat(this))))},e})(Array);yl=!0;$S="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",IS=function(t){t===void 0&&(t=21);for(var e="",r=t;r--;)e+=$S[Math.random()*64|0];return e},DS=["name","message","stack","code"],bl=(function(){function t(e,r){this.payload=e,this.meta=r}return t})(),lh=(function(){function t(e,r){this.payload=e,this.meta=r}return t})(),MS=function(t){if(typeof t=="object"&&t!==null){for(var e={},r=0,i=DS;r<i.length;r++){var o=i[r];typeof t[o]=="string"&&(e[o]=t[o])}return e}return{message:String(t)}},OE=(function(){function t(e,r,i){var o=qr(e+"/fulfilled",function(d,h,f,g){return{payload:d,meta:vl(zr({},g||{}),{arg:f,requestId:h,requestStatus:"fulfilled"})}}),n=qr(e+"/pending",function(d,h,f){return{payload:void 0,meta:vl(zr({},f||{}),{arg:h,requestId:d,requestStatus:"pending"})}}),s=qr(e+"/rejected",function(d,h,f,g,v){return{payload:g,error:(i&&i.serializeError||MS)(d||"Rejected"),meta:vl(zr({},v||{}),{arg:f,requestId:h,rejectedWithValue:!!g,requestStatus:"rejected",aborted:d?.name==="AbortError",condition:d?.name==="ConditionError"})}}),a=!1,c=typeof AbortController<"u"?AbortController:(function(){function d(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return d.prototype.abort=function(){},d})();function p(d){return function(h,f,g){var v=i?.idGenerator?i.idGenerator(d):IS(),y=new c,E,A=!1;function w(F){E=F,y.abort()}var $=(function(){return CS(this,null,function(){var F,Oe,be,Pr,Sa,$r,dt;return gS(this,function(Ot){switch(Ot.label){case 0:return Ot.trys.push([0,4,,5]),Pr=(F=i?.condition)==null?void 0:F.call(i,d,{getState:f,extra:g}),FS(Pr)?[4,Pr]:[3,2];case 1:Pr=Ot.sent(),Ot.label=2;case 2:if(Pr===!1||y.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return A=!0,Sa=new Promise(function(ht,ni){return y.signal.addEventListener("abort",function(){return ni({name:"AbortError",message:E||"Aborted"})})}),h(n(v,d,(Oe=i?.getPendingMeta)==null?void 0:Oe.call(i,{requestId:v,arg:d},{getState:f,extra:g}))),[4,Promise.race([Sa,Promise.resolve(r(d,{dispatch:h,getState:f,extra:g,requestId:v,signal:y.signal,abort:w,rejectWithValue:function(ht,ni){return new bl(ht,ni)},fulfillWithValue:function(ht,ni){return new lh(ht,ni)}})).then(function(ht){if(ht instanceof bl)throw ht;return ht instanceof lh?o(ht.payload,v,d,ht.meta):o(ht,v,d)})])];case 3:return be=Ot.sent(),[3,5];case 4:return $r=Ot.sent(),be=$r instanceof bl?s(null,v,d,$r.payload,$r.meta):s($r,v,d),[3,5];case 5:return dt=i&&!i.dispatchConditionRejection&&s.match(be)&&be.meta.condition,dt||h(be),[2,be]}})})})();return Object.assign($,{abort:w,requestId:v,arg:d,unwrap:function(){return $.then(NS)}})}}return Object.assign(p,{pending:n,rejected:s,fulfilled:o,typePrefix:e})}return t.withTypes=function(){return t},t})();fh="listener",mh="completed",gh="cancelled",wE="task-"+gh,RE="task-"+mh,TE=fh+"-"+gh,_E=fh+"-"+mh,Sl="listenerMiddleware",kE=qr(Sl+"/add"),LE=qr(Sl+"/removeAll"),PE=qr(Sl+"/remove"),$E=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(ch||(ch=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},BS=function(t){return function(e){setTimeout(e,t)}},IE=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:BS(10);jd()});var US,os,yh=l(()=>{"use strict";hi();US=zn(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(r,i,o){this.eventBus.addEventListener(r,i,o)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,i,o){this.eventBus.removeEventListener(r,i,o)}}}),os=class extends US(Object){}});var bh,xh=l(()=>{"use strict";vh();Xn();Ya();yh();hi();window.ftReduxStores||(window.ftReduxStores={});bh=class t extends os{static get(e){var r;let i=typeof e=="string"?e:e.name,o=typeof e=="string"?void 0:e,n=window.ftReduxStores[i];if(Qn(n))return n;if(o==null)return;let s=hh({...o,reducers:(r=o.reducers)!==null&&r!==void 0?r:{}}),a=ph({reducer:(c,p)=>{if(p.type==="CLEAR_FT_REDUX_STORE"){let d=Ko(s.getInitialState());for(let h of p.keeping)d[h]=(c??d)[h];return d}else if(typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...c,...p.overwrites};return s.reducer(c,p)}});return window.ftReduxStores[o.name]=new t(s,a,o.eventBus)}constructor(e,r,i){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new qn;let o=n=>n!=null?JSON.parse(JSON.stringify(n)):n;this.actions=new Proxy(this.reduxSlice.actions,{get:(n,s,a)=>{let c=s,p=n[c];return p?(...d)=>{let h=p(...d.map(o));return this.reduxStore.dispatch(h),h}:d=>{this.setState({[c]:o(d)})}}}),this.eventBus=i??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...e){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:e})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}});var Sh=l(()=>{"use strict";hi()});var Ch=l(()=>{"use strict"});var Eh=l(()=>{"use strict";yd();Ya();$d();xh();Xn();Sh();Ch()});var ns,Ah=l(()=>{"use strict";ns=class{static format(e,r,i,o,n){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(i,o,!!n)):this.getIntlDateTime(e,r,i,o,!!n)}static getMomentDateFormat(e,r,i){return i?"LT":e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,i,o,n){let s=typeof e=="string"?new Date(e):e,a=new Intl.DateTimeFormat(r,{dateStyle:i?"medium":"short"}).format(s),c=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(s);return n?c:o?`${a} ${c}`:a}static getTimezoneAsString(){let e=i=>String(Math.floor(i)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${e(Math.abs(r)/60)}:${e(Math.abs(r)%60)}`}}});var ss,HS,Cr,Zo,VS,O,Ve=l(()=>{"use strict";ss=u(m()),HS="ft-app-info",Cr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Cr.eventName="authentication-change";Zo=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Zo.eventName="ui-locale-changed";VS={session:(t,e)=>{(0,ss.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>O.dispatchEvent(new Cr(e.payload)),0))}},O=ss.FtReduxStore.get({name:HS,reducers:VS,initialState:{baseUrl:void 0,tenantId:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableContentLocales:[],localesConfiguration:void 0,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}})});var Cl,Oh,as,lA,wh=l(()=>{"use strict";Cl=u(B());Eh();Ah();Ve();Oh=u(m()),as=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},lA=(0,Oh.applyMixinOnce)(Symbol("withDateFormat"),function(t){class e extends t{constructor(...i){super(i),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(O)}dateFormatOptionsChanged(i){return i.has("metadataDescriptors")||i.has("useLongDateFormat")||i.has("useDateTimeFormat")||i.has("uiLocale")}getDateFormatter(i){var o,n;return((n=(o=this.metadataDescriptors.find(a=>a.key===i))===null||o===void 0?void 0:o.date)!==null&&n!==void 0?n:!1)?a=>ns.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return as([(0,Cl.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),as([(0,Cl.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),as([Xa({store:O.name,selector:r=>{var i,o;return(o=(i=r.metadataConfiguration)===null||i===void 0?void 0:i.descriptors)!==null&&o!==void 0?o:[]}})],e.prototype,"metadataDescriptors",void 0),as([Xa({store:O.name})],e.prototype,"uiLocale",void 0),e})});var El=l(()=>{});var Rh,Th,_h,Kr,kh,Lh,Ph,yi,$h,Ih,Dh,Mh,Nh,Fh,Bh,Uh,ls,Hh,Vh,so,jh,cs,zh,qh,nr,ao,Kh,me,Tt,Wh,Al=l(()=>{(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(Rh||(Rh={}));(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Th||(Th={}));(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"})(_h||(_h={}));(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"})(Kr||(Kr={}));(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(kh||(kh={}));(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(Lh||(Lh={}));(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(Ph||(Ph={}));(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"})(yi||(yi={}));(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})($h||($h={}));(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"})(Ih||(Ih={}));(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"})(Dh||(Dh={}));(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Mh||(Mh={}));(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Nh||(Nh={}));(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Fh||(Fh={}));(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Bh||(Bh={}));(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"})(Uh||(Uh={}));(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(ls||(ls={}));(function(t){t.ASC="ASC",t.DESC="DESC"})(Hh||(Hh={}));(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Vh||(Vh={}));(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(so||(so={}));(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(jh||(jh={}));(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(cs||(cs={}));(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"})(zh||(zh={}));(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(qh||(qh={}));(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(nr||(nr={}));(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(ao||(ao={}));(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Kh||(Kh={}));(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"})(me||(me={}));(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(Tt||(Tt={}));(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(Wh||(Wh={}))});var Gh,Qh,Xh,Yh,Zh,Jh,ef,tf,rf,of,nf,sf=l(()=>{(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(Gh||(Gh={}));(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Qh||(Qh={}));(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"})(Xh||(Xh={}));(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(Yh||(Yh={}));(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Zh||(Zh={}));(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Jh||(Jh={}));(function(t){t.TEXT="TEXT",t.HTML="HTML"})(ef||(ef={}));(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(tf||(tf={}));(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(rf||(rf={}));(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"})(of||(of={}));(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(nf||(nf={}))});var af=l(()=>{Al();sf()});function lf(t,e){return t===e||(jS[t]??[]).some(r=>lf(r,e))}function us(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(i=>lf(i,e))}var jS,cf=l(()=>{Al();jS={[me.PERSONAL_BOOK_SHARE_USER]:[me.PERSONAL_BOOK_USER],[me.HTML_EXPORT_USER]:[me.PERSONAL_BOOK_USER],[me.PDF_EXPORT_USER]:[me.PERSONAL_BOOK_USER],[me.KHUB_ADMIN]:[me.CONTENT_PUBLISHER],[me.ADMIN]:[me.KHUB_ADMIN,me.USERS_ADMIN,me.PORTAL_ADMIN,me.BEHAVIOR_DATA_USER],[me.GENERATIVE_AI_EXPORT_USER]:[me.GENERATIVE_AI_USER]}});var uf=l(()=>{});var bi=l(()=>{El();af();cf();uf();El()});var xi,Ol=l(()=>{"use strict";Ve();xi=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:i}=O.getState(),o=e??i;if(r&&o&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,o,!0)}static await(e){return new Promise(r=>{let i=t.get(e);if(i)r(i);else{let o=O.subscribe(()=>{i=t.get(e),i&&(o(),r(i))})}})}}});var lo,wl=l(()=>{"use strict";Ol();lo=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:xi.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):xi.await()}}});var Rl,je,Wr=l(()=>{"use strict";Rl=u(m());wl();je=class extends lo{constructor(e=!0,r){var i;super(r),this.sortObjectFields=(n,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([a],[c])=>a.localeCompare(c)));let o=this.constructor;o.commonCache=(i=o.commonCache)!==null&&i!==void 0?i:new Rl.CacheRegistry,this.cache=e?o.commonCache:new Rl.CacheRegistry}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((r,i)=>0|31*r+i.charCodeAt(0),0))}}});var ps,Tl=l(()=>{"use strict";Ve();bi();Wr();ps=class extends je{async listMySearches(){let{session:e}=O.getState();return us(e,me.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}}});var ds,_l=l(()=>{"use strict";Ve();Wr();ds=class extends je{async listMyBookmarks(){let e=O.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}}});var hs,pf=l(()=>{"use strict";Ve();Wr();hs=class extends je{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=O.getState().session;return!!e?.sessionAuthenticated}}});var fs,df=l(()=>{"use strict";Wr();Ve();fs=class extends je{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=O.getState().session;return!!e?.sessionAuthenticated}}});var ms,zS,qS,mf,kl,Ll,hf,ff,Qe,Pl,KS,$l=l(()=>{"use strict";bi();ms=u(m());Tl();_l();Ve();pf();df();zS="ft-user-assets",qS={setAssetCount:(t,e)=>{let{userAssetType:r,count:i}=e.payload.assetCount;t.assetCounts.allAsset[r]=i},clearAssetCount:t=>{Object.values(Tt).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let r=e.payload.mapId;t.assetCounts.bookmarkByMap[r]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:r,mapId:i,asset:o}=e.payload;Ll(t,r,[...kl(t,r),o]),hf(t,r,1,i),ff(t,o)},editAsset:(t,e)=>{let{assetType:r,asset:i}=e.payload;Ll(t,r,kl(t,r).map(o=>o.id===i.id?i:o)),ff(t,i)},removeAsset:(t,e)=>{let{assetType:r,mapId:i,assetId:o}=e.payload;Ll(t,r,kl(t,r).filter(n=>n.id!==o)),hf(t,r,-1,i)}},mf={[Tt.SEARCHES]:"savedSearches",[Tt.BOOKMARKS]:"bookmarks",[Tt.BOOKS]:void 0,[Tt.COLLECTIONS]:void 0},kl=(t,e)=>{var r;let i=mf[e];return i?(r=t[i])!==null&&r!==void 0?r:[]:[]},Ll=(t,e,r)=>{let i=mf[e];i&&(t[i]=r)},hf=(t,e,r,i)=>{let o=t.assetCounts.allAsset[e];if(o!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,o+r),e===Tt.BOOKMARKS&&i)){let n=t.assetCounts.bookmarkByMap[i];t.assetCounts.bookmarkByMap[i]=Math.max(0,n+r)}},ff=(t,e)=>{let r=t.assetLabels.map(o=>o.title),i=e.labels.filter(o=>!r.includes(o)).map(o=>({title:o}));t.assetLabels.push(...i)},Qe=ms.FtReduxStore.get({name:zS,reducers:qS,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Tt).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Pl=class{constructor(e=new hs,r=new fs){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=O.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new ds,this.savedSearchesService=new ps,O.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=O.getState();(0,ms.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(),Qe.actions.clearAssetCount(),Qe.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Qe.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Qe.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Qe.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();Qe.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&Qe.getState().assetCounts.allAsset[e]!==r.count&&Qe.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&Qe.getState().assetCounts.bookmarkByMap[e]!==r.count&&Qe.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(Qe.getState().assetCounts.bookmarkByMap).length!==0;e===Tt.BOOKMARKS&&r&&Qe.actions.clearBookmarkCountByMap(),Qe.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;Qe.actions.bookmarks(r)}}},KS=new Pl;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=KS)});var gf=l(()=>{"use strict";bi();$l()});var Il,vf=l(()=>{"use strict";Ve();Il=class{addCommand(e,r=!1){O.commands.add(e,r)}consumeCommand(e){return O.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Il});var _t,yf,co,WS,gs,uo,vs,bf=l(()=>{"use strict";Ve();_t=u(m());Wr();co=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},WS=Symbol("clearAfterUnitTest"),gs=class extends(0,_t.withEventBus)(je){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[yf]=()=>{this.defaultMessages={},this.cache=new _t.CacheRegistry,this.listeners={}},this.currentUiLocale=O.getState().uiLocale,O.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=O.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let r=e.name.toLowerCase();this.cache.setFinal(r,e),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,r){var i;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let o={...(i=this.defaultMessages[e])!==null&&i!==void 0?i:{},...r};(0,_t.deepEqual)(this.defaultMessages[e],o)||(this.defaultMessages[e]=o,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,i;return this.fetchContext(e),(i=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&i!==void 0?i:{}}resolveRawMessage(e,r){let i=e.toLowerCase();return this.resolveContext(i)[r]}resolveMessage(e,r,...i){var o;let n=e.toLowerCase(),s=this.resolveContext(n);return new _t.ParametrizedLabelResolver((o=this.defaultMessages[n])!==null&&o!==void 0?o:{},s).resolve(r,...i)}async fetchContext(e){let r=!this.cache.has(e),i;try{i=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(o){!(o instanceof _t.CanceledPromiseError)&&r&&console.error(o)}return i}subscribe(e,r){var i;return e=e.toLowerCase(),this.listeners[e]=(i=this.listeners[e])!==null&&i!==void 0?i:new Set,this.listeners[e].add(r),()=>{var o;return(o=this.listeners[e])===null||o===void 0?void 0:o.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new co({loadedContexts:e})),this.dispatchEvent(new co({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new co({loadedContexts:[e]})),this.dispatchEvent(new co({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(i=>(0,_t.delay)(0).then(()=>i()).catch(()=>null)))}};yf=WS;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends gs{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends gs{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});uo=window.FluidTopicsI18nService,vs=window.FluidTopicsCustomI18nService});var xf,Dl,Sf=l(()=>{"use strict";xf=u(m()),Dl=class{highlightHtml(e,r,i){(0,xf.highlightHtml)(e,r,i)}};window.FluidTopicsHighlightHtmlService=new Dl});var Cf,Ml,Ef=l(()=>{"use strict";Cf=u(m());Ve();Ml=class{isDate(e){var r,i,o,n;return(n=(o=((i=(r=O.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&i!==void 0?i:[]).find(a=>a.key===e))===null||o===void 0?void 0:o.date)!==null&&n!==void 0?n:!1}format(e,r){var i,o,n,s;if(e==null)return"";try{return Cf.DateFormatter.format(e,(i=r?.locale)!==null&&i!==void 0?i:O.getState().uiLocale,(o=r?.longFormat)!==null&&o!==void 0?o:!1,(n=r?.withTime)!==null&&n!==void 0?n:!1,(s=r?.onlyTime)!==null&&s!==void 0?s:!1)}catch(a){throw console.error(`Date ${JSON.stringify(e)} is not valid`,a),a}}};window.FluidTopicsDateService=new Ml});var Af,Er,Nl=l(()=>{"use strict";Af=u(m());Ve();Er=class{static get(e,r){var i,o,n,s;let a=O.getState(),{lang:c,region:p}=(n=(o=(i=a.localesConfiguration)===null||i===void 0?void 0:i.defaultLocales)===null||o===void 0?void 0:o.defaultContentLocale)!==null&&n!==void 0?n:{lang:"en",region:"US"};return new Af.SearchPlaceConverter(a.baseUrl,e??20,(s=a.localesConfiguration)===null||s===void 0?void 0:s.allLanguagesAllowed,r??`${c}-${p}`)}}});var ys,Of=l(()=>{"use strict";Wr();ys=class extends je{async sendDocumentStartDisplayEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.start_display event")}async sendTopicStartDisplayEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send topic.start_display event")}async sendKhubSearchEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send khub.search event")}async sendDocumentSearchEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.search event")}async sendSearchPageSelectEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send search_page.select event")}async sendSearchResultOpenContextMenuEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send search_result.open_context_menu event")}async sendDocumentOnDemandTranslateEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.on_demand_translate event")}async sendTopicAiTranslateEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send topic.ai_translate event")}convertMapToAnalyticsDocument(e){let r;switch(e.editorialType){case"BOOK":r="STRUCTURED_DOCUMENT";break;case"SHARED_BOOK":r="SHARED_PERSONAL_BOOK";break;case"ARTICLE":r="RESOURCE";break;case"HTML_PACKAGE":r="HTML_PACKAGE";break;default:throw new TypeError("Unknown editorial type for map : "+e.editorialType)}return{id:e.id,title:e.title,type:r,metadata:e.metadata}}sortEventArrays(e){let r=Object.entries(e).map(([i,o])=>Array.isArray(o)?[i,o.map(n=>typeof n=="object"&&n!=null&&!Array.isArray(n)?this.sortEventArrays(n):n).sort((n,s)=>typeof n=="object"&&n!==null&&"key"in n?n.key.localeCompare(s.key):typeof n=="string"&&typeof s=="string"?n.localeCompare(s):String(n).localeCompare(String(s)))]:typeof o=="object"&&o!==null?[i,this.sortEventArrays(o)]:[i,o]);return Object.fromEntries(r)}sendEvents(e,r){let i="anything not undefined";return this.cache.get("analytics-event-"+this.hash(e),async()=>(await this.awaitApi).sendEvents(e).then(()=>i).catch(o=>(console.info(r),console.debug(o),i)),1e3)}}});var Fl,wf=l(()=>{"use strict";Nl();Fl=class{urlToSearchRequest(e){return Er.get().parse(e)}searchRequestToUrl(e){return Er.get().serialize(e)}};window.FluidTopicsUrlService=new Fl});var Si,Rf=l(()=>{"use strict";Si=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Si.eventName="change"});var Bl,Tf,_f=l(()=>{"use strict";Bl=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))}},Tf=new Bl});var Ar,bs,kf=l(()=>{"use strict";Ar=u(m());Rf();_f();bs=class t extends Ar.WithEventBus{static build(){return new t(window.history,Tf,()=>window.location,!1)}constructor(e,r,i,o){var n,s;super(),this.history=e,this.historyStorage=r,this.windowLocation=i,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(n=e.state)===null||n===void 0?void 0:n.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(o)}setCurrentState(e,r=!1){let i=r&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,i&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,Ar.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new Si(this.currentItem())),0)}installProxies(){let e=r=>(i,o,[n,s,a])=>{let c=r(),p={...c===this.currentIndex?this.currentState:void 0,...n,index:c,href:typeof a=="string"?a:(a??this.windowLocation()).href};i.apply(o,[p,s,a]),this.setCurrentState(p,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let r=this.history.length-1;r>=0;r--)e?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(e){var r;let i={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(i)}addHistoryChangeListener(e){this.addEventListener(Si.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Si.eventName,e)}currentItem(){return(0,Ar.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,Ar.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(i=>!!i).filter(i=>i.index<this.currentIndex).reverse();return(0,Ar.deepCopy)(r.find(i=>e(i)))}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return(0,Ar.deepCopy)(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var r;let i=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!i)return e;let o=e,n=e+1;for(;this.states.length>n&&!this.isDifferentMajorState(n,i);)this.hasState(n)&&(o=n),n++;return o}buildCurrentState(){var e,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&r!==void 0?r:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,r){var i;if(!this.hasState(e))return!1;let o=r??this.currentState.majorStateId,n=(i=this.states[e])===null||i===void 0?void 0:i.majorStateId;return n==null||n!=o}}});var Lf=l(()=>{"use strict";kf();window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=bs.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 Pf=l(()=>{"use strict";Ve()});var xs=l(()=>{"use strict";_l();Ol();vf();bf();Wr();Sf();Tl();Ef();Nl();Of();wf();Lf();Pf()});var $f,If,Ul=l(()=>{"use strict";$f=u(b()),If=$f.css`
261
+ `});var Df=l(()=>{"use strict"});function Mf(t,e){let{authenticationRequired:r,session:i}=O.getState();return r&&!i?.sessionAuthenticated?Promise.resolve(e):t()}var Nf=l(()=>{"use strict";Ve()});var Ss,Ff=l(()=>{"use strict";wl();Ss=class extends lo{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}}});var Ci,Hl,Jo,Vl=l(()=>{"use strict";Ci=u(m());Ve();Nf();xs();Ff();Hl=class t extends Ci.FtStateManager{static build(e){return new t(O,e)}constructor(e,r){super(),this.store=e,this.cache=new Ci.CacheRegistry,this.withManualResources=!0,this.userLocaleService=new Ss,this.cleanSessionDebouncer=new Ci.Debouncer,this.reloadDebouncer=new Ci.Debouncer(500),this.apiProvider=r??(()=>xi.get())}setWithManualResources(e){this.withManualResources=e,this.updateIfNeeded()}async initService(){this.store.addEventListener(Cr.eventName,this.reloadConfiguration)}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.store.getState().session==null&&this.updateSession(),this.store.getState().metadataConfiguration==null&&this.updateMetadataConfiguration()),this.store.getState().localesConfiguration==null&&this.updateLocalesConfiguration(),(this.store.getState().availableContentLocales==null||this.store.getState().availableContentLocales.length==0)&&this.updateAvailableContentLocales())}async updateSession(){let e=await this.cache.get("session",async()=>{let r=await this.apiProvider().getCurrentSession();return r.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.setSession(void 0)},r.idleTimeoutInMillis),r});this.setSession(e)}async updateMetadataConfiguration(){this.setMetadataConfiguration(await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration()))}async updateLocalesConfiguration(){this.setLocalesConfiguration(await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration()))}async updateAvailableContentLocales(){var e;let r=await this.cache.get("availableContentLocales",()=>Mf(()=>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}setTenantId(e){this.store.actions.tenantId(e)}setApiIntegrationIdentifier(e){this.store.actions.apiIntegrationIdentifier(e)}setApiIntegrationAppVersion(e){this.store.actions.apiIntegrationAppVersion(e)}setUiLocale(e){this.store.actions.uiLocale(e)}setLocalesConfiguration(e){this.store.actions.localesConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setAvailableContentLocales(e){this.store.actions.availableContentLocales(e),setTimeout(()=>this.updateIfNeeded())}stopReloadDebouncer(){this.reloadDebouncer.cancel()}requestUiLocaleUpdate(e,r){this.userLocaleService.updateUiLocale({uiLocale:e,contentLocale:r}).then(i=>{i.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new Zo(i)))}).catch(()=>{})}setMetadataConfiguration(e){this.store.actions.metadataConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setNoCustom(e){this.store.actions.noCustom(e)}setEditorMode(e){this.store.actions.editorMode(e)}setNoCustomComponent(e){this.store.actions.noCustomComponent(e)}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)}},Jo=Hl.build()});var Ei,en=l(()=>{Ei=class extends Event{constructor(e,r,i,o){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=r,this.callback=i,this.subscribe=o??!1}}});var Bf=l(()=>{});var jl=l(()=>{en();});var Uf=l(()=>{});var zl=l(()=>{en();Uf();});var tn,Hf=l(()=>{en();tn=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=e=>{let r=this.pendingContextRequests.get(e.context);if(r===void 0)return;this.pendingContextRequests.delete(e.context);let{requests:i}=r;for(let{elementRef:o,callbackRef:n}of i){let s=o.deref(),a=n.deref();s===void 0||a===void 0||s.dispatchEvent(new Ei(e.context,s,a,!0))}},this.onContextRequest=e=>{if(e.subscribe!==!0)return;let r=e.contextTarget??e.composedPath()[0],i=e.callback,o=this.pendingContextRequests.get(e.context);o===void 0&&this.pendingContextRequests.set(e.context,o={callbacks:new WeakMap,requests:[]});let n=o.callbacks.get(r);n===void 0&&o.callbacks.set(r,n=new WeakSet),n.has(i)||(n.add(i),o.requests.push({elementRef:new WeakRef(r),callbackRef:new WeakRef(i)}))}}attach(e){e.addEventListener("context-request",this.onContextRequest),e.addEventListener("context-provider",this.onContextProvider)}detach(e){e.removeEventListener("context-request",this.onContextRequest),e.removeEventListener("context-provider",this.onContextProvider)}}});var Vf=l(()=>{zl();});var jf=l(()=>{jl();});var zf=l(()=>{en();Bf();jl();zl();Hf();Vf();jf()});var qf,st,Ai,Pe,pe,ql=l(()=>{"use strict";qf=u(b()),st=u(B()),Ai=u(m());Ul();xs();Vl();zf();Pe=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},pe=class extends Ai.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=Jo,this.contextRoot=new tn}render(){return qf.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("tenantId")&&this.stateManager.setTenantId(this.tenantId),e.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),e.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),e.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),e.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),e.has("session")&&this.stateManager.setSession(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(i=>uo.addContext(i)),e.has("openExternalDocumentInNewTab")&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&this.stateManager.setNavigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&this.stateManager.setForcedOffline(this.forcedOffline),e.has("authenticationRequired")&&this.stateManager.setAuthenticationRequired(this.authenticationRequired),e.has("withManualResources")&&((r=this.stateManager)===null||r===void 0||r.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};pe.elementDefinitions={};pe.styles=Nf;Pe([(0,st.property)()],pe.prototype,"baseUrl",void 0);Pe([(0,st.property)()],pe.prototype,"tenantId",void 0);Pe([(0,st.property)()],pe.prototype,"apiIntegrationIdentifier",void 0);Pe([(0,st.property)()],pe.prototype,"apiIntegrationAppVersion",void 0);Pe([(0,st.property)()],pe.prototype,"uiLocale",void 0);Pe([(0,Ai.jsonProperty)(null)],pe.prototype,"availableUiLocales",void 0);Pe([(0,Ai.jsonProperty)(null)],pe.prototype,"metadataConfiguration",void 0);Pe([(0,st.property)({type:Boolean})],pe.prototype,"editorMode",void 0);Pe([(0,st.property)({type:Boolean})],pe.prototype,"noCustom",void 0);Pe([(0,st.property)({type:Boolean})],pe.prototype,"openExternalDocumentInNewTab",void 0);Pe([(0,st.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],pe.prototype,"noCustomComponent",void 0);Pe([(0,st.property)({type:Boolean})],pe.prototype,"withManualResources",void 0);Pe([(0,st.property)({type:Boolean})],pe.prototype,"navigatorOnline",void 0);Pe([(0,st.property)({type:Boolean})],pe.prototype,"forcedOffline",void 0);Pe([(0,st.property)({type:Boolean})],pe.prototype,"authenticationRequired",void 0);Pe([(0,Ai.jsonProperty)([])],pe.prototype,"messageContexts",void 0);Pe([(0,Ai.jsonProperty)(void 0)],pe.prototype,"session",void 0)});var Qf,Xf=l(()=>{"use strict";Kl();Qf={"ft-app-context":pe}});var Yf,Zf=l(()=>{"use strict";Yf=u(m());Xf();(0,Yf.customElements)(Qf)});var Vt=l(()=>{"use strict";_h();Ve();gs();bf();Ss();Hl();Ff();Kl();jl();Zf()});var Wl,po,Es=l(()=>{"use strict";Wl=class{fromLocalizableLabel(e){return e.type=="PLAIN_TEXT"?{message:e.text}:{key:e.key,custom:e.type=="LOCALIZED_CUSTOM",context:e.context,message:e.key}}fromAttribute(e){if(e!=null)try{return JSON.parse(e)}catch{if(this.isI18nKey(e)){let[r,i]=e.split(".");return{context:r,key:i,custom:r!=="officialContext",message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},po=new Wl});var ho,Jf,ZS,on,em,tm,As,rn,at,Os,ws,nn=l(()=>{"use strict";ho=u(m());Vt();Jf=u(B());Es();ZS=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},on=Symbol("i18nAttributes"),em=Symbol("i18nListAttributes"),tm=Symbol("i18nProperties"),As=Symbol("i18nContexts"),rn=Symbol("i18nUnsubs"),at=(0,ho.applyMixinOnce)(Symbol("withI18n"),function(t){var e,r;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[r]=new Map}getI18nService(n){return n??this.useCustomMessageContexts?ys:uo}i18n(n){let{context:s,key:a,message:c}=n,{custom:p,args:d,argsProvider:h}=n;if(s&&a){this.hasI18nContext(s)||this.addI18nContext(s,void 0,p);let f=d??(h?h(this):[]);return this.getI18nService(p).resolveMessage(s,a,...f)}return c}async awaitI18n(n){let{context:s,custom:a}=n;return s&&await this.getI18nService(a).prepareContext(s),this.i18n(n)}customI18n(n,s){if(po.isI18nKey(n)){let[a,c]=n.split(".");return this.i18n({custom:!0,context:a,key:c,...s})||n}return n}firstUpdated(n){super.firstUpdated(n),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(n){super.update(n),this.updateI18nAttributes((s,a,c)=>n.has(a)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(n){this.updateI18nAttributes((s,a,c)=>{var p;return((p=c?.context)===null||p===void 0?void 0:p.toLowerCase())===n}),this.updateI18nProperties(s=>s.context.toLowerCase()===n),this.requestUpdate()}updateI18nAttributes(n){var s,a;let c=this,p=(d,h,f)=>f?.context&&f.key&&n(d,h,f)?{...f,message:this.i18n({context:f.context,key:f.key,custom:f.custom,...d})}:f;(s=this[on])===null||s===void 0||s.forEach((d,h)=>c[h]=p(d,h,c[h])),(a=this[em])===null||a===void 0||a.forEach((d,h)=>{var f;return c[h]=(f=c[h])===null||f===void 0?void 0:f.map(g=>p(d,h,g))})}updateI18nProperties(n){var s;(s=this[tm])===null||s===void 0||s.forEach((a,c)=>{n(a,c)&&(this[c]=this.i18n(a))})}addI18nMessages(n,s,a){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(n,s,a)}addI18nContext(n,s,a){let c=(typeof n=="string"?n:n.name).toLowerCase();a=typeof n=="string"?a:n.custom,this[As].set(c,{isCustomContext:a}),this[rn].has(c)||this[rn].set(c,this.getI18nService(a).subscribe(c,()=>this.onI18nUpdate(c))),this.getI18nService(a).prepareContext(c,s)}hasI18nContext(n){return this[As].has(n.toLowerCase())}connectedCallback(){super.connectedCallback(),this[As].forEach((n,s)=>this.addI18nContext(s,void 0,n.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[rn].forEach(n=>n()),this[rn].clear()}}return e=As,r=rn,ZS([(0,Jf.property)({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}),Os=class extends at(ho.FtLitElement){},ws=class extends at(ho.FtLitElementRedux){}});var Gl,JS,rm=l(()=>{"use strict";Es();Gl=class{fromAttribute(e){if(!e)return[];try{let r=JSON.parse(e);return Array.isArray(r)?r.map(i=>typeof i=="string"?po.fromAttribute(i):i):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},JS=new Gl});var im,fo,Rs=l(()=>{"use strict";nn();im=u(m());Es();rm();fo=(t,e)=>(r,i)=>{var o;r.constructor.createProperty(i,{type:Object,hasChanged:im.hasChanged,converter:po,...e}),r[on]=(o=r[on])!==null&&o!==void 0?o:new Map,r[on].set(i,t??{})}});var sr,om=l(()=>{"use strict";Vt();sr=class t{static build(e){return new t(e)}static buildCustom(e){return new t(e,!0)}static fromGwt(e){return new t(e)}get service(){return this.custom?ys:uo}constructor(e,r=!1){this.name=e,this.custom=r,this.properties=new Proxy({},{get:(i,o)=>{let n=o;return s=>({context:this.name,key:n,custom:this.custom,args:typeof s=="function"?void 0:s,argsProvider:typeof s=="function"?s:void 0})}}),this.messages=new Proxy({},{get:(i,o)=>(...n)=>this.service.resolveMessage(this.name,o,...n)}),this.rawMessages=new Proxy({},{get:(i,o)=>this.service.resolveRawMessage(this.name,o)}),this.keys=new Proxy({},{get:(i,o)=>()=>o}),this.attributes=new Proxy({},{get:(i,o)=>()=>({context:this.name,key:o,message:this.service.resolveRawMessage(this.name,o)})})}}});var nm=l(()=>{"use strict";nn()});var sm,am,Ql=l(()=>{"use strict";sm=u(b()),am=sm.css`
264
- `});var lm=l(()=>{"use strict"});var Ts,_s,ks,sn,jt,Xl=l(()=>{"use strict";Ts=u(b()),_s=u(B()),ks=u(m());Ql();nn();Vt();sn=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},jt=class extends ws{constructor(){super(),this.editorMode=!1,this.addStore(O)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":Ts.nothing:Ts.html`
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("tenantId")&&this.stateManager.setTenantId(this.tenantId),e.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),e.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),e.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),e.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),e.has("session")&&this.stateManager.setSession(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(i=>uo.addContext(i)),e.has("openExternalDocumentInNewTab")&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&this.stateManager.setNavigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&this.stateManager.setForcedOffline(this.forcedOffline),e.has("authenticationRequired")&&this.stateManager.setAuthenticationRequired(this.authenticationRequired),e.has("withManualResources")&&((r=this.stateManager)===null||r===void 0||r.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};pe.elementDefinitions={};pe.styles=If;Pe([(0,st.property)()],pe.prototype,"baseUrl",void 0);Pe([(0,st.property)()],pe.prototype,"tenantId",void 0);Pe([(0,st.property)()],pe.prototype,"apiIntegrationIdentifier",void 0);Pe([(0,st.property)()],pe.prototype,"apiIntegrationAppVersion",void 0);Pe([(0,st.property)()],pe.prototype,"uiLocale",void 0);Pe([(0,Ai.jsonProperty)(null)],pe.prototype,"availableUiLocales",void 0);Pe([(0,Ai.jsonProperty)(null)],pe.prototype,"metadataConfiguration",void 0);Pe([(0,st.property)({type:Boolean})],pe.prototype,"editorMode",void 0);Pe([(0,st.property)({type:Boolean})],pe.prototype,"noCustom",void 0);Pe([(0,st.property)({type:Boolean})],pe.prototype,"openExternalDocumentInNewTab",void 0);Pe([(0,st.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],pe.prototype,"noCustomComponent",void 0);Pe([(0,st.property)({type:Boolean})],pe.prototype,"withManualResources",void 0);Pe([(0,st.property)({type:Boolean})],pe.prototype,"navigatorOnline",void 0);Pe([(0,st.property)({type:Boolean})],pe.prototype,"forcedOffline",void 0);Pe([(0,st.property)({type:Boolean})],pe.prototype,"authenticationRequired",void 0);Pe([(0,Ai.jsonProperty)([])],pe.prototype,"messageContexts",void 0);Pe([(0,Ai.jsonProperty)(void 0)],pe.prototype,"session",void 0)});var Kf,Wf=l(()=>{"use strict";ql();Kf={"ft-app-context":pe}});var Gf,Qf=l(()=>{"use strict";Gf=u(m());Wf();(0,Gf.customElements)(Kf)});var Vt=l(()=>{"use strict";wh();Ve();$l();gf();xs();Ul();Df();ql();Vl();Qf()});var Kl,po,Cs=l(()=>{"use strict";Kl=class{fromLocalizableLabel(e){return e.type=="PLAIN_TEXT"?{message:e.text}:{key:e.key,custom:e.type=="LOCALIZED_CUSTOM",context:e.context,message:e.key}}fromAttribute(e){if(e!=null)try{return JSON.parse(e)}catch{if(this.isI18nKey(e)){let[r,i]=e.split(".");return{context:r,key:i,custom:r!=="officialContext",message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},po=new Kl});var ho,Xf,XS,on,Yf,Zf,Es,rn,at,As,Os,nn=l(()=>{"use strict";ho=u(m());Vt();Xf=u(B());Cs();XS=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},on=Symbol("i18nAttributes"),Yf=Symbol("i18nListAttributes"),Zf=Symbol("i18nProperties"),Es=Symbol("i18nContexts"),rn=Symbol("i18nUnsubs"),at=(0,ho.applyMixinOnce)(Symbol("withI18n"),function(t){var e,r;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[r]=new Map}getI18nService(n){return n??this.useCustomMessageContexts?vs:uo}i18n(n){let{context:s,key:a,message:c}=n,{custom:p,args:d,argsProvider:h}=n;if(s&&a){this.hasI18nContext(s)||this.addI18nContext(s,void 0,p);let f=d??(h?h(this):[]);return this.getI18nService(p).resolveMessage(s,a,...f)}return c}async awaitI18n(n){let{context:s,custom:a}=n;return s&&await this.getI18nService(a).prepareContext(s),this.i18n(n)}customI18n(n,s){if(po.isI18nKey(n)){let[a,c]=n.split(".");return this.i18n({custom:!0,context:a,key:c,...s})||n}return n}firstUpdated(n){super.firstUpdated(n),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(n){super.update(n),this.updateI18nAttributes((s,a,c)=>n.has(a)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(n){this.updateI18nAttributes((s,a,c)=>{var p;return((p=c?.context)===null||p===void 0?void 0:p.toLowerCase())===n}),this.updateI18nProperties(s=>s.context.toLowerCase()===n),this.requestUpdate()}updateI18nAttributes(n){var s,a;let c=this,p=(d,h,f)=>f?.context&&f.key&&n(d,h,f)?{...f,message:this.i18n({context:f.context,key:f.key,custom:f.custom,...d})}:f;(s=this[on])===null||s===void 0||s.forEach((d,h)=>c[h]=p(d,h,c[h])),(a=this[Yf])===null||a===void 0||a.forEach((d,h)=>{var f;return c[h]=(f=c[h])===null||f===void 0?void 0:f.map(g=>p(d,h,g))})}updateI18nProperties(n){var s;(s=this[Zf])===null||s===void 0||s.forEach((a,c)=>{n(a,c)&&(this[c]=this.i18n(a))})}addI18nMessages(n,s,a){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(n,s,a)}addI18nContext(n,s,a){let c=(typeof n=="string"?n:n.name).toLowerCase();a=typeof n=="string"?a:n.custom,this[Es].set(c,{isCustomContext:a}),this[rn].has(c)||this[rn].set(c,this.getI18nService(a).subscribe(c,()=>this.onI18nUpdate(c))),this.getI18nService(a).prepareContext(c,s)}hasI18nContext(n){return this[Es].has(n.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Es].forEach((n,s)=>this.addI18nContext(s,void 0,n.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[rn].forEach(n=>n()),this[rn].clear()}}return e=Es,r=rn,XS([(0,Xf.property)({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}),As=class extends at(ho.FtLitElement){},Os=class extends at(ho.FtLitElementRedux){}});var Wl,YS,Jf=l(()=>{"use strict";Cs();Wl=class{fromAttribute(e){if(!e)return[];try{let r=JSON.parse(e);return Array.isArray(r)?r.map(i=>typeof i=="string"?po.fromAttribute(i):i):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},YS=new Wl});var em,fo,ws=l(()=>{"use strict";nn();em=u(m());Cs();Jf();fo=(t,e)=>(r,i)=>{var o;r.constructor.createProperty(i,{type:Object,hasChanged:em.hasChanged,converter:po,...e}),r[on]=(o=r[on])!==null&&o!==void 0?o:new Map,r[on].set(i,t??{})}});var sr,tm=l(()=>{"use strict";Vt();sr=class t{static build(e){return new t(e)}static buildCustom(e){return new t(e,!0)}static fromGwt(e){return new t(e)}get service(){return this.custom?vs:uo}constructor(e,r=!1){this.name=e,this.custom=r,this.properties=new Proxy({},{get:(i,o)=>{let n=o;return s=>({context:this.name,key:n,custom:this.custom,args:typeof s=="function"?void 0:s,argsProvider:typeof s=="function"?s:void 0})}}),this.messages=new Proxy({},{get:(i,o)=>(...n)=>this.service.resolveMessage(this.name,o,...n)}),this.rawMessages=new Proxy({},{get:(i,o)=>this.service.resolveRawMessage(this.name,o)}),this.keys=new Proxy({},{get:(i,o)=>()=>o}),this.attributes=new Proxy({},{get:(i,o)=>()=>({context:this.name,key:o,message:this.service.resolveRawMessage(this.name,o)})})}}});var rm=l(()=>{"use strict";nn()});var im,om,Gl=l(()=>{"use strict";im=u(b()),om=im.css`
264
+ `});var nm=l(()=>{"use strict"});var Rs,Ts,_s,sn,jt,Ql=l(()=>{"use strict";Rs=u(b()),Ts=u(B()),_s=u(m());Gl();nn();Vt();sn=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},jt=class extends Os{constructor(){super(),this.editorMode=!1,this.addStore(O)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":Rs.nothing:Rs.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>
268
- `}update(e){var r;super.update(e),["context","key","defaultMessage"].some(i=>e.has(i))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};jt.elementDefinitions={};jt.styles=am;sn([(0,ks.redux)()],jt.prototype,"editorMode",void 0);sn([(0,_s.property)()],jt.prototype,"context",void 0);sn([(0,_s.property)()],jt.prototype,"key",void 0);sn([(0,ks.jsonProperty)([])],jt.prototype,"args",void 0);sn([(0,_s.property)()],jt.prototype,"defaultMessage",void 0)});var cm,um=l(()=>{"use strict";Xl();cm={"ft-i18n":jt}});var pm,dm=l(()=>{"use strict";pm=u(m());um();(0,pm.customElements)(cm)});var kt=l(()=>{"use strict";om();nn();nm();Ql();lm();Xl();dm()});var hm,Pt,Lt,zt,ve,Yl=l(()=>{"use strict";hm=u(b()),Pt=u(B()),Lt=u(m());ge();Ua();vd();Rs();kt();zt=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},ve=class extends Os{constructor(){super(...arguments),this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.ignoreMatchingElements=[],this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new Lt.Debouncer,this.revealDebouncer=new Lt.Debouncer,this.onTouch=e=>{this.isIgnored(e)||(this.show(),setTimeout(()=>window.addEventListener("touchstart",r=>{r.composedPath().includes(this.container)||this.onOut(r)},{once:!0}),100))},this.onHover=e=>{this.isIgnored(e)?this.matchesIgnored(e)&&this.hide():this.show()},this.onFocusIn=e=>{!this.isIgnored(e)&&window.FluidTopicsA11yHints.isKeyboardNavigation&&window.FluidTopicsA11yHints.lastPressedKey==="Tab"&&this.show()},this.onOut=e=>{this.isIgnored(e)||(this.revealDebouncer.cancel(),this.hide())},this.onClick=e=>{this.isIgnored(e)||(this.revealDebouncer.cancel(),this.hide())}}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){var e,r;return hm.html`
268
+ `}update(e){var r;super.update(e),["context","key","defaultMessage"].some(i=>e.has(i))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};jt.elementDefinitions={};jt.styles=om;sn([(0,_s.redux)()],jt.prototype,"editorMode",void 0);sn([(0,Ts.property)()],jt.prototype,"context",void 0);sn([(0,Ts.property)()],jt.prototype,"key",void 0);sn([(0,_s.jsonProperty)([])],jt.prototype,"args",void 0);sn([(0,Ts.property)()],jt.prototype,"defaultMessage",void 0)});var sm,am=l(()=>{"use strict";Ql();sm={"ft-i18n":jt}});var lm,cm=l(()=>{"use strict";lm=u(m());am();(0,lm.customElements)(sm)});var kt=l(()=>{"use strict";tm();nn();rm();Gl();nm();Ql();cm()});var um,Pt,Lt,zt,ve,Xl=l(()=>{"use strict";um=u(b()),Pt=u(B()),Lt=u(m());ge();Ba();fd();ws();kt();zt=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},ve=class extends As{constructor(){super(...arguments),this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.ignoreMatchingElements=[],this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new Lt.Debouncer,this.revealDebouncer=new Lt.Debouncer,this.onTouch=e=>{this.isIgnored(e)||(this.show(),setTimeout(()=>window.addEventListener("touchstart",r=>{r.composedPath().includes(this.container)||this.onOut(r)},{once:!0}),100))},this.onHover=e=>{this.isIgnored(e)?this.matchesIgnored(e)&&this.hide():this.show()},this.onFocusIn=e=>{!this.isIgnored(e)&&window.FluidTopicsA11yHints.isKeyboardNavigation&&window.FluidTopicsA11yHints.lastPressedKey==="Tab"&&this.show()},this.onOut=e=>{this.isIgnored(e)||(this.revealDebouncer.cancel(),this.hide())},this.onClick=e=>{this.isIgnored(e)||(this.revealDebouncer.cancel(),this.hide())}}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){var e,r;return um.html`
269
269
  <div part="container"
270
270
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}">
271
271
  <slot part="slot"></slot>
@@ -280,7 +280,7 @@
280
280
  </div>
281
281
  </div>
282
282
  </div>
283
- `}setupFor(e){this.eventsTarget!==e&&(this.removeHandlers(),this.eventsTarget=e,this.eventsTarget.addEventListener("mouseover",this.onHover,{passive:!0}),this.eventsTarget.addEventListener("mouseleave",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("focusin",this.onFocusIn,{passive:!0}),this.eventsTarget.addEventListener("focusout",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("touchstart",this.onTouch,{passive:!0}),this.eventsTarget.addEventListener("click",this.onClick,{passive:!0}))}removeHandlers(){this.eventsTarget&&(this.eventsTarget.removeEventListener("mouseover",this.onHover),this.eventsTarget.removeEventListener("mouseleave",this.onOut),this.eventsTarget.removeEventListener("focusin",this.onFocusIn),this.eventsTarget.removeEventListener("focusout",this.onOut),this.eventsTarget.removeEventListener("touchstart",this.onTouch),this.eventsTarget.removeEventListener("click",this.onClick),this.eventsTarget=void 0)}defaultSetup(){this.container&&this.setupFor(this.container)}updated(e){var r,i;e.has("visible")&&(this.visible?(this.resetTooltipContent(),(r=this.tooltip)===null||r===void 0||r.showPopover()):(i=this.tooltip)===null||i===void 0||i.hidePopover()),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(r=>e.has(r))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}async showTemporaryText(e,r){let i=this.manual;this.manual=!0;let o=this.text;this.text={message:e},await this.show(r),this.text=o,this.manual=i}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&gd(this.slottedElement,this.tooltip,{placement:this.position,strategy:"fixed"}).then(({x:e,y:r})=>{this.tooltip&&(this.tooltip.style.transform=`translate(${e}px,${r}px)`)}),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${Lt.designSystemVariables.transitionDuration}, left ${Lt.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}matchesIgnored(e){return(0,Lt.eventPathContainsMatchingElement)(e,this.ignoreMatchingElements,this.eventsTarget)}isIgnored(e){return this.manual||this.matchesIgnored(e)}};ve.elementDefinitions={"ft-typography":j};ve.styles=Bp;zt([fo()],ve.prototype,"text",void 0);zt([(0,Pt.property)({type:Boolean})],ve.prototype,"manual",void 0);zt([(0,Pt.property)({type:Boolean})],ve.prototype,"inline",void 0);zt([(0,Lt.numberProperty)()],ve.prototype,"delay",void 0);zt([(0,Pt.property)()],ve.prototype,"position",void 0);zt([(0,Lt.jsonProperty)([])],ve.prototype,"ignoreMatchingElements",void 0);zt([(0,Pt.queryAssignedNodes)()],ve.prototype,"slotNodes",void 0);zt([(0,Pt.query)(".ft-tooltip--container")],ve.prototype,"container",void 0);zt([(0,Pt.query)(".ft-tooltip")],ve.prototype,"tooltip",void 0);zt([(0,Pt.query)(".ft-tooltip--content")],ve.prototype,"tooltipContent",void 0);zt([(0,Pt.state)()],ve.prototype,"visible",void 0)});var fm=l(()=>{"use strict"});var mm,gm=l(()=>{"use strict";Yl();mm={"ft-tooltip":ve}});var vm,ym=l(()=>{"use strict";vm=u(m());gm();(0,vm.customElements)(mm)});var Zl=l(()=>{"use strict";Yl();Ua();fm();ym()});var bm,qt,Xe,xm,mo=l(()=>{"use strict";bm=u(b()),qt=u(m()),Xe={size:qt.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:qt.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",qt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:qt.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",qt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:qt.FtCssVariableFactory.extend("--ft-icon-material-font-family","",qt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:qt.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},xm=[bm.css`
283
+ `}setupFor(e){this.eventsTarget!==e&&(this.removeHandlers(),this.eventsTarget=e,this.eventsTarget.addEventListener("mouseover",this.onHover,{passive:!0}),this.eventsTarget.addEventListener("mouseleave",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("focusin",this.onFocusIn,{passive:!0}),this.eventsTarget.addEventListener("focusout",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("touchstart",this.onTouch,{passive:!0}),this.eventsTarget.addEventListener("click",this.onClick,{passive:!0}))}removeHandlers(){this.eventsTarget&&(this.eventsTarget.removeEventListener("mouseover",this.onHover),this.eventsTarget.removeEventListener("mouseleave",this.onOut),this.eventsTarget.removeEventListener("focusin",this.onFocusIn),this.eventsTarget.removeEventListener("focusout",this.onOut),this.eventsTarget.removeEventListener("touchstart",this.onTouch),this.eventsTarget.removeEventListener("click",this.onClick),this.eventsTarget=void 0)}defaultSetup(){this.container&&this.setupFor(this.container)}updated(e){var r,i;e.has("visible")&&(this.visible?(this.resetTooltipContent(),(r=this.tooltip)===null||r===void 0||r.showPopover()):(i=this.tooltip)===null||i===void 0||i.hidePopover()),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(r=>e.has(r))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}async showTemporaryText(e,r){let i=this.manual;this.manual=!0;let o=this.text;this.text={message:e},await this.show(r),this.text=o,this.manual=i}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&hd(this.slottedElement,this.tooltip,{placement:this.position,strategy:"fixed"}).then(({x:e,y:r})=>{this.tooltip&&(this.tooltip.style.transform=`translate(${e}px,${r}px)`)}),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${Lt.designSystemVariables.transitionDuration}, left ${Lt.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}matchesIgnored(e){return(0,Lt.eventPathContainsMatchingElement)(e,this.ignoreMatchingElements,this.eventsTarget)}isIgnored(e){return this.manual||this.matchesIgnored(e)}};ve.elementDefinitions={"ft-typography":j};ve.styles=Mp;zt([fo()],ve.prototype,"text",void 0);zt([(0,Pt.property)({type:Boolean})],ve.prototype,"manual",void 0);zt([(0,Pt.property)({type:Boolean})],ve.prototype,"inline",void 0);zt([(0,Lt.numberProperty)()],ve.prototype,"delay",void 0);zt([(0,Pt.property)()],ve.prototype,"position",void 0);zt([(0,Lt.jsonProperty)([])],ve.prototype,"ignoreMatchingElements",void 0);zt([(0,Pt.queryAssignedNodes)()],ve.prototype,"slotNodes",void 0);zt([(0,Pt.query)(".ft-tooltip--container")],ve.prototype,"container",void 0);zt([(0,Pt.query)(".ft-tooltip")],ve.prototype,"tooltip",void 0);zt([(0,Pt.query)(".ft-tooltip--content")],ve.prototype,"tooltipContent",void 0);zt([(0,Pt.state)()],ve.prototype,"visible",void 0)});var pm=l(()=>{"use strict"});var dm,hm=l(()=>{"use strict";Xl();dm={"ft-tooltip":ve}});var fm,mm=l(()=>{"use strict";fm=u(m());hm();(0,fm.customElements)(dm)});var Yl=l(()=>{"use strict";Xl();Ba();pm();mm()});var gm,qt,Xe,vm,mo=l(()=>{"use strict";gm=u(b()),qt=u(m()),Xe={size:qt.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:qt.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",qt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:qt.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",qt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:qt.FtCssVariableFactory.extend("--ft-icon-material-font-family","",qt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:qt.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},vm=[gm.css`
284
284
  :host, i.ft-icon {
285
285
  display: inline-flex;
286
286
  align-items: center;
@@ -328,12 +328,12 @@
328
328
  .ft-icon--material {
329
329
  font-family: ${Xe.materialFontFamily}, "Material Icons", sans-serif;
330
330
  }
331
- `,qt.noTextSelect]});var Ye,Jl=l(()=>{"use strict";(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(Ye||(Ye={}))});var Ls=Hi((IR,Sm)=>{Sm.exports=ftGlobals.litUnsafeHTML});function Ps(t,e){var r,i,o,n;t=(t??"").toLowerCase(),e=(e??"").toLowerCase();let[s,a]=(((r=e0.get(t))!==null&&r!==void 0?r:t)+"/").split("/");return(n=(o=(i=ec.get(a))!==null&&i!==void 0?i:ec.get(e))!==null&&o!==void 0?o:ec.get(s))!==null&&n!==void 0?n:x.UNKNOWN}var Ce,x,ec,e0,DR,tc=l(()=>{"use strict";(function(t){t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.BOOKS="&#xe806;",t.MENU="&#xe807;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.HOME="&#xe80b;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.EXPORT="&#xe80f;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.USER="&#xe813;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.OFFLINE="&#xe816;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.STAR_PLAIN="&#xe900;",t.TOPICS="&#xe901;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN="&#xe90f;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_THEME="&#xe911;",t.ADMIN_USERS="&#xe912;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.INFO="&#xe919;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.THIN_ARROW="&#xe921;",t.SIGN_IN="&#xe922;",t.LOGOUT="&#xe923;",t.TRANSLATE="&#xe924;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.ARTICLE="&#xe927;",t.COLUMNS="&#xe928;",t.ANALYTICS="&#xe929;",t.COLLECTIONS="&#xe92a;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.COPY_TO_CLIPBOARD="&#xe930;",t.SHARED_PBK="&#xe931;",t.ATTACHMENTS="&#xe932;",t.STRIPE_ARROW_LEFT="&#xe933;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.FILTERS="&#xe935;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.SAVE="&#xe93a;",t.LOCKER="&#xe93b;",t.ADMIN_INTEGRATION="&#xe93c;",t.SYNC="&#xe93d;",t.TAG="&#xe93e;",t.BOOK_PLAIN="&#xe93f;",t.UPLOAD="&#xe940;",t.ONLINE="&#xe941;",t.TAG_PLAIN="&#xe942;",t.ACCOUNT_SETTINGS="&#xe943;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.SHORTCUT_MENU="&#xe946;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.ADMIN_PORTAL="&#xe94b;",t.STAR="&#xe94c;",t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.FEEDBACK_PLAIN="&#xe951;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_COLLECTIONS="&#xe955;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.RESET="&#xe958;",t.MY_LIBRARY="&#xe959;",t.UNSTRUCTURED_DOC="&#xe95a;",t.CONTEXTUAL="&#xe95b;",t.THIN_ARROW_UP="&#xe95c;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.DESKTOP="&#xe95e;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.CHART_BAR_STACKED="&#xe96e;",t.CHART_BAR_GROUPED="&#xe96f;",t.EYE_SLASH="&#xe970;",t.X_MARK="&#xe971;",t.EXPAND_WIDE="&#xe972;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.EXTLINK_LIGHT="&#xe978;",t.CLONE="&#xe979;",t.CLONE_LINK_SIMPLE="&#xe97a;",t.CHART_BAR_NORMALIZED="&#xe97b;",t.CONSUMER="&#xe97c;",t.OCTAGON_XMARK="&#xe97d;",t.HOURGLASS_HALF="&#xe97e;",t.CLOCK="&#xe97f;",t.CLOCK_THREE="&#xe97f;",t.CALENDAR_DAY="&#xe980;",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",t.WAND_MAGIC_SPARKLES="&#xe982;",t.PAPER_PLANE="&#xe983;",t.CIRCLE_STOP="&#xe984;",t.ARROW_ROTATE_RIGHT="&#xe985;",t.ARROWS_ROTATE="&#xe986;",t.ALIGN_RIGHT="&#xe987;",t.FORMAT_CLEAR="&#xe988;",t.ALIGN_CENTER="&#xe989;",t.ALIGN_LEFT="&#xe98a;",t.PALETTE="&#xe98b;",t.BOLD="&#xe98c;",t.ITALIC="&#xe98d;",t.UNDERLINE="&#xe98e;",t.STRIKETHROUGH="&#xe98f;",t.LINK_SIMPLE_SLASH="&#xe990;",t.LINK_SIMPLE="&#xe991;",t.ROUTE="&#xe992;",t.CIRCLE_USER_SLASH="&#xe993;",t.CIRCLE_USER_CHECK="&#xe994;",t.LIST_MAGNIFYING_GLASS="&#xe995;",t.MEDAL="&#xe996;",t.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",t.ARROW_TURN_DOWN_RIGHT="&#xe998;",t.FLASK="&#xe999;",t.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",t.HOURGLASS_END="&#xe99b;",t.CIRCLE_QUESTION="&#xe99c;",t.GRIP_LINES_SOLID="&#xe99d;",t.TRANSLATE_SPARKLE_SOLID="&#xe99e;",t.CODE="&#xe99f;",t.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="&#xe9a0;",t.PAPER_PLANE_SLASH="&#xe9a1;",t.COMPRESS="&#xe9a2;",t.EXPAND="&#xe9a3;",t.ARROW_ROTATE_LEFT="&#xe9a4;",t.MOBILE_SMALL="&#xe9a5;",t.SPARKLES="&#xe9a6;",t.HAND_SOLID="&#xe9a7;",t.CLOCK_SOLID="&#xe9a8;",t.CONTEXT_MENU_CURSOR="&#xe9a9;",t.LANGUAGE_SLASH="&#xe9aa;",t.MAGNIFYING_GLASS_FLOPPY_DISK="&#xe9ab;",t.CABINET_FILING_FLOPPY_DISK="&#xe9ac;",t.BOOKMARK_SLASH="&#xe9ad;",t.CIRCLE_PAUSE="&#xe9ae;",t.CIRCLE_PLAY="&#xe9af;",t.CIRCLE_STOP_PLAIN="&#xe9b0;",t.CIRCLE_ARROW_DOWN="&#xe9b1;",t.SHARE_NODES="&#xe9b2;",t.BELL="&#xe9b3;",t.BELL_SLASH="&#xe9b4;",t.FILE="&#xe9b5;",t.HAND="&#xe9b6;",t.SQUARE_INFO_SOLID="&#xe9b7;",t.FILE_CODE="&#xe9b8;",t.BOX_CODE="&#xe9b9;",t.TOPICS_SOLID="&#xe9ba;",t.PHOTO_FILM="&#xe9bb;",t.HYPHEN_SOLID="&#xe9bc;",t.CROSSHAIRS="&#xe9bd;",t.PERSON_CHALKBOARD="&#xe9be;",t.CIRCLE_ARROW_DOWN_SLASH="&#xe9bf;",t.BOOK_OPEN_COVER="&#xe9c0;",t.LIGHTBULB="&#xe9c1;",t.MESSAGE_BOT_AGENTIC_SOLID="&#xe9c2;",t.CHART_LINE_USER="&#xe9c3;",t.SERVER_CIRCLE_ARROW_DOWN="&#xe9c4;",t.EYE="&#xf06e;",t.SHARE="&#xe80f1;"})(Ce||(Ce={}));(function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"})(x||(x={}));ec=new Map([...["abw"].map(t=>[t,x.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(t=>[t,x.AUDIO]),...["avi"].map(t=>[t,x.AVI]),...["chm","xhs"].map(t=>[t,x.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(t=>[t,x.CODE]),...["csv"].map(t=>[t,x.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,x.DITA]),...["epub"].map(t=>[t,x.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,x.EXCEL]),...["flac"].map(t=>[t,x.FLAC]),...["gif"].map(t=>[t,x.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,x.GZIP]),...["html","htm","xhtml"].map(t=>[t,x.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(t=>[t,x.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,x.JPEG]),...["json"].map(t=>[t,x.JSON]),...["m4a","m4p"].map(t=>[t,x.M4A]),...["mov","qt"].map(t=>[t,x.MOV]),...["mp3"].map(t=>[t,x.MP3]),...["mp4","m4v"].map(t=>[t,x.MP4]),...["ogg","oga"].map(t=>[t,x.OGG]),...["pdf","ps"].map(t=>[t,x.PDF]),...["png"].map(t=>[t,x.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,x.POWERPOINT]),...["rar"].map(t=>[t,x.RAR]),...["stp"].map(t=>[t,x.STP]),...["txt","rtf","md","mdown"].map(t=>[t,x.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(t=>[t,x.VIDEO]),...["wav"].map(t=>[t,x.WAV]),...["wma"].map(t=>[t,x.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,x.WORD]),...["xml","xsl","rdf"].map(t=>[t,x.XML]),...["yaml","yml","x-yaml"].map(t=>[t,x.YAML]),...["zip"].map(t=>[t,x.ZIP])]),e0=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);DR={[x.ABW]:"#91ABC6",[x.AUDIO]:"#1795E3",[x.AVI]:"#E63324",[x.CHM]:"#71C3EB",[x.CODE]:"#71C3EB",[x.CSV]:"#1F7345",[x.DITA]:"#71C3EB",[x.EPUB]:"#85B926",[x.EXCEL]:"#1F7345",[x.FLAC]:"#1795E3",[x.GIF]:"#59B031",[x.GZIP]:"#F8AB36",[x.HTML]:"#71C3EB",[x.IMAGE]:"#59B031",[x.JPEG]:"#59B031",[x.JSON]:"#71C3EB",[x.M4A]:"#1795E3",[x.MOV]:"#E63324",[x.MP3]:"#1795E3",[x.MP4]:"#E63324",[x.OGG]:"#1795E3",[x.PDF]:"#E44948",[x.PNG]:"#59B031",[x.POWERPOINT]:"#B54A2B",[x.RAR]:"#F8AB36",[x.STP]:"#3764B1",[x.TEXT]:"#3162AB",[x.UNKNOWN]:"#999999",[x.VIDEO]:"#E63324",[x.WAV]:"#1795E3",[x.WMA]:"#1795E3",[x.WORD]:"#3162AB",[x.XML]:"#71C3EB",[x.YAML]:"#71C3EB",[x.ZIP]:"#F8AB36"}});var an,Gr,Cm,Em,ln,oe,rc=l(()=>{"use strict";an=u(b()),Gr=u(B()),Cm=u(m()),Em=u(Ls());tc();mo();Jl();ln=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},oe=class extends Cm.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=an.nothing}render(){let e=this.variant&&Object.values(Ye).includes(this.variant)?this.variant:Ye.fluid_topics,r=e!==Ye.material||!!this.value;return an.html`
331
+ `,qt.noTextSelect]});var Ye,Zl=l(()=>{"use strict";(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(Ye||(Ye={}))});var ks=Hi((PR,ym)=>{ym.exports=ftGlobals.litUnsafeHTML});function Ls(t,e){var r,i,o,n;t=(t??"").toLowerCase(),e=(e??"").toLowerCase();let[s,a]=(((r=ZS.get(t))!==null&&r!==void 0?r:t)+"/").split("/");return(n=(o=(i=Jl.get(a))!==null&&i!==void 0?i:Jl.get(e))!==null&&o!==void 0?o:Jl.get(s))!==null&&n!==void 0?n:x.UNKNOWN}var Ce,x,Jl,ZS,$R,ec=l(()=>{"use strict";(function(t){t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.BOOKS="&#xe806;",t.MENU="&#xe807;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.HOME="&#xe80b;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.EXPORT="&#xe80f;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.USER="&#xe813;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.OFFLINE="&#xe816;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.STAR_PLAIN="&#xe900;",t.TOPICS="&#xe901;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN="&#xe90f;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_THEME="&#xe911;",t.ADMIN_USERS="&#xe912;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.INFO="&#xe919;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.THIN_ARROW="&#xe921;",t.SIGN_IN="&#xe922;",t.LOGOUT="&#xe923;",t.TRANSLATE="&#xe924;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.ARTICLE="&#xe927;",t.COLUMNS="&#xe928;",t.ANALYTICS="&#xe929;",t.COLLECTIONS="&#xe92a;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.COPY_TO_CLIPBOARD="&#xe930;",t.SHARED_PBK="&#xe931;",t.ATTACHMENTS="&#xe932;",t.STRIPE_ARROW_LEFT="&#xe933;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.FILTERS="&#xe935;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.SAVE="&#xe93a;",t.LOCKER="&#xe93b;",t.ADMIN_INTEGRATION="&#xe93c;",t.SYNC="&#xe93d;",t.TAG="&#xe93e;",t.BOOK_PLAIN="&#xe93f;",t.UPLOAD="&#xe940;",t.ONLINE="&#xe941;",t.TAG_PLAIN="&#xe942;",t.ACCOUNT_SETTINGS="&#xe943;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.SHORTCUT_MENU="&#xe946;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.ADMIN_PORTAL="&#xe94b;",t.STAR="&#xe94c;",t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.FEEDBACK_PLAIN="&#xe951;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_COLLECTIONS="&#xe955;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.RESET="&#xe958;",t.MY_LIBRARY="&#xe959;",t.UNSTRUCTURED_DOC="&#xe95a;",t.CONTEXTUAL="&#xe95b;",t.THIN_ARROW_UP="&#xe95c;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.DESKTOP="&#xe95e;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.CHART_BAR_STACKED="&#xe96e;",t.CHART_BAR_GROUPED="&#xe96f;",t.EYE_SLASH="&#xe970;",t.X_MARK="&#xe971;",t.EXPAND_WIDE="&#xe972;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.EXTLINK_LIGHT="&#xe978;",t.CLONE="&#xe979;",t.CLONE_LINK_SIMPLE="&#xe97a;",t.CHART_BAR_NORMALIZED="&#xe97b;",t.CONSUMER="&#xe97c;",t.OCTAGON_XMARK="&#xe97d;",t.HOURGLASS_HALF="&#xe97e;",t.CLOCK="&#xe97f;",t.CLOCK_THREE="&#xe97f;",t.CALENDAR_DAY="&#xe980;",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",t.WAND_MAGIC_SPARKLES="&#xe982;",t.PAPER_PLANE="&#xe983;",t.CIRCLE_STOP="&#xe984;",t.ARROW_ROTATE_RIGHT="&#xe985;",t.ARROWS_ROTATE="&#xe986;",t.ALIGN_RIGHT="&#xe987;",t.FORMAT_CLEAR="&#xe988;",t.ALIGN_CENTER="&#xe989;",t.ALIGN_LEFT="&#xe98a;",t.PALETTE="&#xe98b;",t.BOLD="&#xe98c;",t.ITALIC="&#xe98d;",t.UNDERLINE="&#xe98e;",t.STRIKETHROUGH="&#xe98f;",t.LINK_SIMPLE_SLASH="&#xe990;",t.LINK_SIMPLE="&#xe991;",t.ROUTE="&#xe992;",t.CIRCLE_USER_SLASH="&#xe993;",t.CIRCLE_USER_CHECK="&#xe994;",t.LIST_MAGNIFYING_GLASS="&#xe995;",t.MEDAL="&#xe996;",t.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",t.ARROW_TURN_DOWN_RIGHT="&#xe998;",t.FLASK="&#xe999;",t.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",t.HOURGLASS_END="&#xe99b;",t.CIRCLE_QUESTION="&#xe99c;",t.GRIP_LINES_SOLID="&#xe99d;",t.TRANSLATE_SPARKLE_SOLID="&#xe99e;",t.CODE="&#xe99f;",t.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="&#xe9a0;",t.PAPER_PLANE_SLASH="&#xe9a1;",t.COMPRESS="&#xe9a2;",t.EXPAND="&#xe9a3;",t.ARROW_ROTATE_LEFT="&#xe9a4;",t.MOBILE_SMALL="&#xe9a5;",t.SPARKLES="&#xe9a6;",t.HAND_SOLID="&#xe9a7;",t.CLOCK_SOLID="&#xe9a8;",t.CONTEXT_MENU_CURSOR="&#xe9a9;",t.LANGUAGE_SLASH="&#xe9aa;",t.MAGNIFYING_GLASS_FLOPPY_DISK="&#xe9ab;",t.CABINET_FILING_FLOPPY_DISK="&#xe9ac;",t.BOOKMARK_SLASH="&#xe9ad;",t.CIRCLE_PAUSE="&#xe9ae;",t.CIRCLE_PLAY="&#xe9af;",t.CIRCLE_STOP_PLAIN="&#xe9b0;",t.CIRCLE_ARROW_DOWN="&#xe9b1;",t.SHARE_NODES="&#xe9b2;",t.BELL="&#xe9b3;",t.BELL_SLASH="&#xe9b4;",t.FILE="&#xe9b5;",t.HAND="&#xe9b6;",t.SQUARE_INFO_SOLID="&#xe9b7;",t.FILE_CODE="&#xe9b8;",t.BOX_CODE="&#xe9b9;",t.TOPICS_SOLID="&#xe9ba;",t.PHOTO_FILM="&#xe9bb;",t.HYPHEN_SOLID="&#xe9bc;",t.CROSSHAIRS="&#xe9bd;",t.PERSON_CHALKBOARD="&#xe9be;",t.CIRCLE_ARROW_DOWN_SLASH="&#xe9bf;",t.BOOK_OPEN_COVER="&#xe9c0;",t.LIGHTBULB="&#xe9c1;",t.MESSAGE_BOT_AGENTIC_SOLID="&#xe9c2;",t.CHART_LINE_USER="&#xe9c3;",t.SERVER_CIRCLE_ARROW_DOWN="&#xe9c4;",t.EYE="&#xf06e;",t.SHARE="&#xe80f1;"})(Ce||(Ce={}));(function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"})(x||(x={}));Jl=new Map([...["abw"].map(t=>[t,x.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(t=>[t,x.AUDIO]),...["avi"].map(t=>[t,x.AVI]),...["chm","xhs"].map(t=>[t,x.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(t=>[t,x.CODE]),...["csv"].map(t=>[t,x.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,x.DITA]),...["epub"].map(t=>[t,x.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,x.EXCEL]),...["flac"].map(t=>[t,x.FLAC]),...["gif"].map(t=>[t,x.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,x.GZIP]),...["html","htm","xhtml"].map(t=>[t,x.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(t=>[t,x.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,x.JPEG]),...["json"].map(t=>[t,x.JSON]),...["m4a","m4p"].map(t=>[t,x.M4A]),...["mov","qt"].map(t=>[t,x.MOV]),...["mp3"].map(t=>[t,x.MP3]),...["mp4","m4v"].map(t=>[t,x.MP4]),...["ogg","oga"].map(t=>[t,x.OGG]),...["pdf","ps"].map(t=>[t,x.PDF]),...["png"].map(t=>[t,x.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,x.POWERPOINT]),...["rar"].map(t=>[t,x.RAR]),...["stp"].map(t=>[t,x.STP]),...["txt","rtf","md","mdown"].map(t=>[t,x.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(t=>[t,x.VIDEO]),...["wav"].map(t=>[t,x.WAV]),...["wma"].map(t=>[t,x.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,x.WORD]),...["xml","xsl","rdf"].map(t=>[t,x.XML]),...["yaml","yml","x-yaml"].map(t=>[t,x.YAML]),...["zip"].map(t=>[t,x.ZIP])]),ZS=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);$R={[x.ABW]:"#91ABC6",[x.AUDIO]:"#1795E3",[x.AVI]:"#E63324",[x.CHM]:"#71C3EB",[x.CODE]:"#71C3EB",[x.CSV]:"#1F7345",[x.DITA]:"#71C3EB",[x.EPUB]:"#85B926",[x.EXCEL]:"#1F7345",[x.FLAC]:"#1795E3",[x.GIF]:"#59B031",[x.GZIP]:"#F8AB36",[x.HTML]:"#71C3EB",[x.IMAGE]:"#59B031",[x.JPEG]:"#59B031",[x.JSON]:"#71C3EB",[x.M4A]:"#1795E3",[x.MOV]:"#E63324",[x.MP3]:"#1795E3",[x.MP4]:"#E63324",[x.OGG]:"#1795E3",[x.PDF]:"#E44948",[x.PNG]:"#59B031",[x.POWERPOINT]:"#B54A2B",[x.RAR]:"#F8AB36",[x.STP]:"#3764B1",[x.TEXT]:"#3162AB",[x.UNKNOWN]:"#999999",[x.VIDEO]:"#E63324",[x.WAV]:"#1795E3",[x.WMA]:"#1795E3",[x.WORD]:"#3162AB",[x.XML]:"#71C3EB",[x.YAML]:"#71C3EB",[x.ZIP]:"#F8AB36"}});var an,Gr,bm,xm,ln,oe,tc=l(()=>{"use strict";an=u(b()),Gr=u(B()),bm=u(m()),xm=u(ks());ec();mo();Zl();ln=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},oe=class extends bm.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=an.nothing}render(){let e=this.variant&&Object.values(Ye).includes(this.variant)?this.variant:Ye.fluid_topics,r=e!==Ye.material||!!this.value;return an.html`
332
332
  <i class="ft-icon ft-icon--${e} ft-no-text-select" part="icon icon-${e}">
333
- ${(0,Em.unsafeHTML)(this.resolvedIcon)}
333
+ ${(0,xm.unsafeHTML)(this.resolvedIcon)}
334
334
  <slot ?hidden=${r}></slot>
335
335
  </i>
336
- `}getTextContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&r!==void 0?r:""}update(e){super.update(e),["value","variant"].some(r=>e.has(r))&&this.resolveIcon()}resolveIcon(){var e,r;let i=this.value||this.getTextContent();switch(this.variant){case Ye.file_format:this.resolvedIcon=(e=x[i.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:i;break;case Ye.material:this.resolvedIcon=this.value||an.nothing;break;default:this.resolvedIcon=(r=Ce[i.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:i;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};oe.elementDefinitions={};oe.styles=xm;ln([(0,Gr.property)()],oe.prototype,"variant",void 0);ln([(0,Gr.property)()],oe.prototype,"value",void 0);ln([(0,Gr.property)({reflect:!0,attribute:"aria-hidden"})],oe.prototype,"ariaHidden",void 0);ln([(0,Gr.state)()],oe.prototype,"resolvedIcon",void 0);ln([(0,Gr.query)("slot")],oe.prototype,"slottedContent",void 0)});var Am,Om=l(()=>{"use strict";rc();Am={"ft-icon":oe}});var wm,Rm=l(()=>{"use strict";wm=u(m());Om();(0,wm.customElements)(Am)});var Or=l(()=>{"use strict";mo();Jl();rc();tc();Rm()});var Tm,cn,Oi,_m,$s=l(()=>{"use strict";Tm=u(b()),cn=u(m()),Oi={color:cn.FtCssVariableFactory.extend("--ft-loader-color","",cn.designSystemVariables.colorPrimary),size:cn.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},_m=Tm.css`
336
+ `}getTextContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&r!==void 0?r:""}update(e){super.update(e),["value","variant"].some(r=>e.has(r))&&this.resolveIcon()}resolveIcon(){var e,r;let i=this.value||this.getTextContent();switch(this.variant){case Ye.file_format:this.resolvedIcon=(e=x[i.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:i;break;case Ye.material:this.resolvedIcon=this.value||an.nothing;break;default:this.resolvedIcon=(r=Ce[i.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:i;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};oe.elementDefinitions={};oe.styles=vm;ln([(0,Gr.property)()],oe.prototype,"variant",void 0);ln([(0,Gr.property)()],oe.prototype,"value",void 0);ln([(0,Gr.property)({reflect:!0,attribute:"aria-hidden"})],oe.prototype,"ariaHidden",void 0);ln([(0,Gr.state)()],oe.prototype,"resolvedIcon",void 0);ln([(0,Gr.query)("slot")],oe.prototype,"slottedContent",void 0)});var Sm,Cm=l(()=>{"use strict";tc();Sm={"ft-icon":oe}});var Em,Am=l(()=>{"use strict";Em=u(m());Cm();(0,Em.customElements)(Sm)});var Or=l(()=>{"use strict";mo();Zl();tc();ec();Am()});var Om,cn,Oi,wm,Ps=l(()=>{"use strict";Om=u(b()),cn=u(m()),Oi={color:cn.FtCssVariableFactory.extend("--ft-loader-color","",cn.designSystemVariables.colorPrimary),size:cn.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},wm=Om.css`
337
337
  :host {
338
338
  line-height: 0;
339
339
  }
@@ -402,14 +402,14 @@
402
402
  transform: translate(calc(0.35 * ${Oi.size}), 0);
403
403
  }
404
404
  }
405
- `});var km=l(()=>{"use strict"});var Lm,Pm,wi,ic=l(()=>{"use strict";Lm=u(b()),Pm=u(m());$s();wi=class extends Pm.FtLitElement{render(){return Lm.html`
405
+ `});var Rm=l(()=>{"use strict"});var Tm,_m,wi,rc=l(()=>{"use strict";Tm=u(b()),_m=u(m());Ps();wi=class extends _m.FtLitElement{render(){return Tm.html`
406
406
  <div class="ft-loader">
407
407
  <div></div>
408
408
  <div></div>
409
409
  <div></div>
410
410
  <div></div>
411
411
  </div>
412
- `}};wi.styles=_m});var $m,Im=l(()=>{"use strict";ic();$m={"ft-loader":wi}});var Dm,Mm=l(()=>{"use strict";Dm=u(m());Im();(0,Dm.customElements)($m)});var Nm=l(()=>{"use strict";$s();km();ic();Mm()});var Qr,Fm=l(()=>{Ia();Qr=t=>t??Se});var Is=l(()=>{Fm()});var Hm,D,Bm,I,Um,oc,Kt,Vm,Ri=l(()=>{"use strict";Hm=u(b()),D=u(m());gr();Ft();$s();mo();Bm=D.FtCssVariableFactory.extend("--ft-button-color","",D.designSystemVariables.colorPrimary),I={backgroundColor:D.FtCssVariableFactory.extend("--ft-button-background-color","",D.designSystemVariables.colorSurface),borderRadius:D.FtCssVariableFactory.extend("--ft-button-border-radius","",D.designSystemVariables.borderRadiusL),color:Bm,fontSize:D.FtCssVariableFactory.extend("--ft-button-font-size","",tr.fontSize),iconSize:D.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:D.FtCssVariableFactory.extend("--ft-button-ripple-color","",Bm),verticalPadding:D.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:D.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:D.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:D.FtCssVariableFactory.external(D.designSystemVariables.colorOpacityDisabled,"Design system")},Um=D.FtCssVariableFactory.extend("--ft-button-primary-color","",D.FtCssVariableFactory.extend("--ft-button-color","",D.designSystemVariables.colorOnPrimary)),oc={backgroundColor:D.FtCssVariableFactory.extend("--ft-button-primary-background-color","",D.FtCssVariableFactory.extend("--ft-button-background-color","",D.designSystemVariables.colorPrimary)),color:Um,rippleColor:D.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",Um)},Kt={borderRadius:D.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",D.FtCssVariableFactory.extend("--ft-button-border-radius","",D.designSystemVariables.borderRadiusM)),verticalPadding:D.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:D.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:D.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},Vm=Hm.css`
412
+ `}};wi.styles=wm});var km,Lm=l(()=>{"use strict";rc();km={"ft-loader":wi}});var Pm,$m=l(()=>{"use strict";Pm=u(m());Lm();(0,Pm.customElements)(km)});var Im=l(()=>{"use strict";Ps();Rm();rc();$m()});var Qr,Dm=l(()=>{$a();Qr=t=>t??Se});var $s=l(()=>{Dm()});var Fm,D,Mm,I,Nm,ic,Kt,Bm,Ri=l(()=>{"use strict";Fm=u(b()),D=u(m());gr();Ft();Ps();mo();Mm=D.FtCssVariableFactory.extend("--ft-button-color","",D.designSystemVariables.colorPrimary),I={backgroundColor:D.FtCssVariableFactory.extend("--ft-button-background-color","",D.designSystemVariables.colorSurface),borderRadius:D.FtCssVariableFactory.extend("--ft-button-border-radius","",D.designSystemVariables.borderRadiusL),color:Mm,fontSize:D.FtCssVariableFactory.extend("--ft-button-font-size","",tr.fontSize),iconSize:D.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:D.FtCssVariableFactory.extend("--ft-button-ripple-color","",Mm),verticalPadding:D.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:D.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:D.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:D.FtCssVariableFactory.external(D.designSystemVariables.colorOpacityDisabled,"Design system")},Nm=D.FtCssVariableFactory.extend("--ft-button-primary-color","",D.FtCssVariableFactory.extend("--ft-button-color","",D.designSystemVariables.colorOnPrimary)),ic={backgroundColor:D.FtCssVariableFactory.extend("--ft-button-primary-background-color","",D.FtCssVariableFactory.extend("--ft-button-background-color","",D.designSystemVariables.colorPrimary)),color:Nm,rippleColor:D.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",Nm)},Kt={borderRadius:D.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",D.FtCssVariableFactory.extend("--ft-button-border-radius","",D.designSystemVariables.borderRadiusM)),verticalPadding:D.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:D.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:D.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},Bm=Fm.css`
413
413
  :host {
414
414
  display: inline-block;
415
415
  max-width: 100%;
@@ -500,9 +500,9 @@
500
500
  }
501
501
 
502
502
  .ft-button.ft-button--primary {
503
- background-color: ${oc.backgroundColor};
504
- --button-internal-color: ${oc.color};
505
- ${(0,D.setVariable)(q.color,oc.rippleColor)};
503
+ background-color: ${ic.backgroundColor};
504
+ --button-internal-color: ${ic.color};
505
+ ${(0,D.setVariable)(q.color,ic.rippleColor)};
506
506
  }
507
507
 
508
508
  .ft-button--label {
@@ -547,7 +547,7 @@
547
547
  ${(0,D.setVariable)(Oi.size,I.iconSize)};
548
548
  ${(0,D.setVariable)(Oi.color,"var(--button-internal-color)")};
549
549
  }
550
- `});var $t,Xr,nc,ne,de,_,sc=l(()=>{"use strict";$t=u(m());Ge();Zl();Or();Nm();Xr=u(b()),nc=u(it()),ne=u(B());Is();ge();Ri();de=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},_=class extends(0,$t.toFtFormComponent)($t.FtLitElement){get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}constructor(){super(),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1,this.disabled=!1,this.icon=void 0,this.trailingIcon=!1,this.label="",this.type="button",this.href=void 0,this.target=void 0,this.loading=!1,this.ariaLabel=null,this.ariaHasPopup=null,this.ariaPressed=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.activated=!1,this.addEventListener("click",e=>{var r;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((r=this.form)===null||r===void 0||r.requestSubmit())})}render(){var e,r,i;let o=Xr.html`
550
+ `});var $t,Xr,oc,ne,de,_,nc=l(()=>{"use strict";$t=u(m());Ge();Yl();Or();Im();Xr=u(b()),oc=u(it()),ne=u(B());$s();ge();Ri();de=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},_=class extends(0,$t.toFtFormComponent)($t.FtLitElement){get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}constructor(){super(),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1,this.disabled=!1,this.icon=void 0,this.trailingIcon=!1,this.label="",this.type="button",this.href=void 0,this.target=void 0,this.loading=!1,this.ariaLabel=null,this.ariaHasPopup=null,this.ariaPressed=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.activated=!1,this.addEventListener("click",e=>{var r;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((r=this.form)===null||r===void 0||r.requestSubmit())})}render(){var e,r,i;let o=Xr.html`
551
551
  <ft-ripple part="ripple"
552
552
  ?disabled=${this.isDisabled()}
553
553
  ?activated=${this.activated}
@@ -564,14 +564,14 @@
564
564
  <a href="${n}"
565
565
  target="${(e=this.target)!==null&&e!==void 0?e:"_self"}"
566
566
  part="button"
567
- class="${(0,nc.classMap)(this.buttonClasses)}"
567
+ class="${(0,oc.classMap)(this.buttonClasses)}"
568
568
  aria-label="${(r=this.ariaLabel)!==null&&r!==void 0?r:this.getLabel()}"
569
569
  ?disabled=${this.isDisabled()}>
570
570
  ${o}
571
571
  </a>
572
572
  `:Xr.html`
573
573
  <button part="button"
574
- class="${(0,nc.classMap)(this.buttonClasses)}"
574
+ class="${(0,oc.classMap)(this.buttonClasses)}"
575
575
  aria-label="${(i=this.ariaLabel)!==null&&i!==void 0?i:this.getLabel()}"
576
576
  aria-haspopup="${Qr(this.ariaHasPopup)}"
577
577
  aria-pressed="${Qr(this.ariaPressed)}"
@@ -589,7 +589,7 @@
589
589
  <ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
590
590
  `:Xr.html`
591
591
  <slot part="icon" name="icon"></slot>
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 i;return(i=this.tooltip)===null||i===void 0?void 0:i.showTemporaryText(e,r)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}getLabel(){return this.label||this.getTextContent()}getTextContent(){return(0,$t.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};_.elementDefinitions={"ft-ripple":L,"ft-tooltip":ve,"ft-icon":oe,"ft-loader":wi,"ft-typography":j};_.styles=[$t.safariEllipsisFix,Vm,$t.noTextSelect];de([(0,ne.property)({type:Boolean})],_.prototype,"primary",void 0);de([(0,ne.property)({type:Boolean})],_.prototype,"outlined",void 0);de([(0,ne.property)({type:Boolean})],_.prototype,"dense",void 0);de([(0,ne.property)({type:Boolean})],_.prototype,"round",void 0);de([(0,ne.property)({type:Boolean})],_.prototype,"disabled",void 0);de([(0,ne.property)()],_.prototype,"icon",void 0);de([(0,ne.property)()],_.prototype,"iconVariant",void 0);de([(0,ne.property)({type:Boolean})],_.prototype,"trailingIcon",void 0);de([(0,ne.property)()],_.prototype,"label",void 0);de([(0,ne.property)()],_.prototype,"type",void 0);de([(0,ne.property)()],_.prototype,"href",void 0);de([(0,ne.property)()],_.prototype,"target",void 0);de([(0,ne.property)({type:Boolean})],_.prototype,"loading",void 0);de([(0,ne.property)({attribute:"aria-label"})],_.prototype,"ariaLabel",void 0);de([(0,ne.property)()],_.prototype,"ariaHasPopup",void 0);de([(0,ne.property)({attribute:"aria-pressed"})],_.prototype,"ariaPressed",void 0);de([(0,ne.property)()],_.prototype,"tooltipPosition",void 0);de([(0,ne.property)({type:Boolean})],_.prototype,"hideTooltip",void 0);de([(0,ne.property)({type:Boolean})],_.prototype,"forceTooltip",void 0);de([(0,ne.property)({type:Boolean})],_.prototype,"activated",void 0);de([(0,ne.query)(".ft-button")],_.prototype,"button",void 0);de([(0,ne.query)(".ft-button--label slot")],_.prototype,"slottedContent",void 0);de([(0,ne.query)("[part=tooltip]")],_.prototype,"tooltip",void 0)});var jm=l(()=>{"use strict"});var zm,qm=l(()=>{"use strict";sc();zm={"ft-button":_}});var Km,Wm=l(()=>{"use strict";Km=u(m());qm();(0,Km.customElements)(zm)});var Wt=l(()=>{"use strict";sc();Ri();jm();Wm()});var Gm,Y,ee,ac,un=l(()=>{"use strict";Gm=u(b()),Y=u(m());Wt();ee={height:Y.FtCssVariableFactory.create("--ft-search-input-height","","SIZE","38px"),borderRadius:Y.FtCssVariableFactory.extend("--ft-search-input-border-radius","",Y.designSystemVariables.borderRadiusS),desktopFiltersHeight:Y.FtCssVariableFactory.create("--ft-search-input-desktop-filters-height","","SIZE","350px"),floatingZIndex:Y.FtCssVariableFactory.create("--ft-search-input-floating-components-z-index","","NUMBER","3"),colorSurface:Y.FtCssVariableFactory.extend("--ft-search-input-background-color","",Y.designSystemVariables.colorSurface),colorOnSurface:Y.FtCssVariableFactory.extend("--ft-search-input-color","",Y.designSystemVariables.colorOnSurface),colorOnSurfaceMedium:Y.FtCssVariableFactory.extend("--ft-search-input-placeholder-color","",Y.designSystemVariables.colorOnSurfaceMedium),colorOutline:Y.FtCssVariableFactory.extend("--ft-search-input-outline-color","",Y.designSystemVariables.colorOutline),elevation02:Y.FtCssVariableFactory.extend("--ft-search-input-elevation","",Y.designSystemVariables.elevation02),focusOutlineColor:Y.FtCssVariableFactory.extend("--ft-search-input-focused-outline-color","",Y.designSystemVariables.colorPrimary),buttonColor:Y.FtCssVariableFactory.extend("--ft-search-input-button-color","",Y.designSystemVariables.colorPrimary),buttonRippleColor:Y.FtCssVariableFactory.extend("--ft-search-input-button-ripple-color","",Y.designSystemVariables.colorPrimary)},ac=Gm.css`
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 i;return(i=this.tooltip)===null||i===void 0?void 0:i.showTemporaryText(e,r)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}getLabel(){return this.label||this.getTextContent()}getTextContent(){return(0,$t.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};_.elementDefinitions={"ft-ripple":L,"ft-tooltip":ve,"ft-icon":oe,"ft-loader":wi,"ft-typography":j};_.styles=[$t.safariEllipsisFix,Bm,$t.noTextSelect];de([(0,ne.property)({type:Boolean})],_.prototype,"primary",void 0);de([(0,ne.property)({type:Boolean})],_.prototype,"outlined",void 0);de([(0,ne.property)({type:Boolean})],_.prototype,"dense",void 0);de([(0,ne.property)({type:Boolean})],_.prototype,"round",void 0);de([(0,ne.property)({type:Boolean})],_.prototype,"disabled",void 0);de([(0,ne.property)()],_.prototype,"icon",void 0);de([(0,ne.property)()],_.prototype,"iconVariant",void 0);de([(0,ne.property)({type:Boolean})],_.prototype,"trailingIcon",void 0);de([(0,ne.property)()],_.prototype,"label",void 0);de([(0,ne.property)()],_.prototype,"type",void 0);de([(0,ne.property)()],_.prototype,"href",void 0);de([(0,ne.property)()],_.prototype,"target",void 0);de([(0,ne.property)({type:Boolean})],_.prototype,"loading",void 0);de([(0,ne.property)({attribute:"aria-label"})],_.prototype,"ariaLabel",void 0);de([(0,ne.property)()],_.prototype,"ariaHasPopup",void 0);de([(0,ne.property)({attribute:"aria-pressed"})],_.prototype,"ariaPressed",void 0);de([(0,ne.property)()],_.prototype,"tooltipPosition",void 0);de([(0,ne.property)({type:Boolean})],_.prototype,"hideTooltip",void 0);de([(0,ne.property)({type:Boolean})],_.prototype,"forceTooltip",void 0);de([(0,ne.property)({type:Boolean})],_.prototype,"activated",void 0);de([(0,ne.query)(".ft-button")],_.prototype,"button",void 0);de([(0,ne.query)(".ft-button--label slot")],_.prototype,"slottedContent",void 0);de([(0,ne.query)("[part=tooltip]")],_.prototype,"tooltip",void 0)});var Um=l(()=>{"use strict"});var Hm,Vm=l(()=>{"use strict";nc();Hm={"ft-button":_}});var jm,zm=l(()=>{"use strict";jm=u(m());Vm();(0,jm.customElements)(Hm)});var Wt=l(()=>{"use strict";nc();Ri();Um();zm()});var qm,Y,ee,sc,un=l(()=>{"use strict";qm=u(b()),Y=u(m());Wt();ee={height:Y.FtCssVariableFactory.create("--ft-search-input-height","","SIZE","38px"),borderRadius:Y.FtCssVariableFactory.extend("--ft-search-input-border-radius","",Y.designSystemVariables.borderRadiusS),desktopFiltersHeight:Y.FtCssVariableFactory.create("--ft-search-input-desktop-filters-height","","SIZE","350px"),floatingZIndex:Y.FtCssVariableFactory.create("--ft-search-input-floating-components-z-index","","NUMBER","3"),colorSurface:Y.FtCssVariableFactory.extend("--ft-search-input-background-color","",Y.designSystemVariables.colorSurface),colorOnSurface:Y.FtCssVariableFactory.extend("--ft-search-input-color","",Y.designSystemVariables.colorOnSurface),colorOnSurfaceMedium:Y.FtCssVariableFactory.extend("--ft-search-input-placeholder-color","",Y.designSystemVariables.colorOnSurfaceMedium),colorOutline:Y.FtCssVariableFactory.extend("--ft-search-input-outline-color","",Y.designSystemVariables.colorOutline),elevation02:Y.FtCssVariableFactory.extend("--ft-search-input-elevation","",Y.designSystemVariables.elevation02),focusOutlineColor:Y.FtCssVariableFactory.extend("--ft-search-input-focused-outline-color","",Y.designSystemVariables.colorPrimary),buttonColor:Y.FtCssVariableFactory.extend("--ft-search-input-button-color","",Y.designSystemVariables.colorPrimary),buttonRippleColor:Y.FtCssVariableFactory.extend("--ft-search-input-button-ripple-color","",Y.designSystemVariables.colorPrimary)},sc=qm.css`
593
593
  * {
594
594
  box-sizing: border-box;
595
595
  ${(0,Y.setVariable)(I.color,ee.buttonColor)};
@@ -663,15 +663,15 @@
663
663
  height: 20px;
664
664
  border-right: 1px solid ${ee.colorOutline};
665
665
  }
666
- `});var Qm,Xm,Ds,lc,Ms=l(()=>{"use strict";Qm=u(b()),Xm=u(m()),Ds={highlightBackgroundColor:Xm.FtCssVariableFactory.create("--ft-sra-highlight-background-color","","COLOR","transparent")},lc=Qm.css`
666
+ `});var Km,Wm,Is,ac,Ds=l(()=>{"use strict";Km=u(b()),Wm=u(m()),Is={highlightBackgroundColor:Wm.FtCssVariableFactory.create("--ft-sra-highlight-background-color","","COLOR","transparent")},ac=Km.css`
667
667
  .kwicmatch {
668
668
  font-weight: 700;
669
- background-color: ${Ds.highlightBackgroundColor};
669
+ background-color: ${Is.highlightBackgroundColor};
670
670
  }
671
- `});var Ym,Zm,Ns,cc,Fs=l(()=>{"use strict";Ym=u(b()),Zm=u(m()),Ns={highlightBackgroundColor:Zm.FtCssVariableFactory.create("--ft-srt-highlight-background-color","","COLOR","transparent")},cc=Ym.css`
671
+ `});var Gm,Qm,Ms,lc,Ns=l(()=>{"use strict";Gm=u(b()),Qm=u(m()),Ms={highlightBackgroundColor:Qm.FtCssVariableFactory.create("--ft-srt-highlight-background-color","","COLOR","transparent")},lc=Gm.css`
672
672
  .kwicmatch {
673
673
  font-weight: 700;
674
- background-color: ${Ns.highlightBackgroundColor};
674
+ background-color: ${Ms.highlightBackgroundColor};
675
675
  }
676
676
 
677
677
  a {
@@ -682,11 +682,11 @@
682
682
  a:focus {
683
683
  outline: revert;
684
684
  }
685
- `});function og(t){var e;return((e=(0,pn.accessResult)(t))===null||e===void 0?void 0:e.openMode)===cs.EXTERNAL}function Hs(t){return og(t)?(0,pn.accessResult)(t).originUrl:(0,pn.accessResultUrl)(t)}function ng(t,e){return Qr(e&&og(t)?"_blank":void 0)}var pn,hc=l(()=>{"use strict";bi();Is();pn=u(m())});var vo,yo,Vs,js,zs,hn,fn=l(()=>{"use strict";vo=class extends CustomEvent{constructor(e,r){super("ft-search-result-click",{detail:{result:e,rank:r},bubbles:!0,composed:!0})}},yo=class extends CustomEvent{constructor(e,r){super("ft-search-result-open-context-menu",{detail:{result:e,rank:r},bubbles:!0,composed:!0})}},Vs=class extends CustomEvent{constructor(e){super("ft-search-load-error",{detail:e})}},js=class extends CustomEvent{constructor(e){super("ft-search-request-change",{detail:e})}},zs=class extends CustomEvent{constructor(e,r,i){super("ft-search-results-change",{detail:{request:e,paging:r,spellcheck:i}})}},hn=class t extends Event{constructor(){super(t.eventName)}};hn.eventName="search-context-clear-all-filters"});var ug,i0,mc,gc=l(()=>{"use strict";ug=u(b()),i0={},mc=ug.css`
686
- `});var pg=l(()=>{"use strict"});var Gt,bo=l(()=>{"use strict";(function(t){t.CLUSTERED_SEARCH="CLUSTERED_SEARCH"})(Gt||(Gt={}))});var dg,o0,hg,fg=l(()=>{"use strict";dg=u(m()),o0={setRequest:(t,e)=>{t.request=e.payload}},hg=t=>dg.FtReduxStore.get({name:"ft-search-"+t,initialState:{request:{query:"",clusterSortCriterions:[],metadataFilters:[],facets:[],sort:[],sortId:void 0,paging:{page:1,perPage:20},keywordMatch:void 0},liveQuery:"",recentQueries:[],paging:void 0,facets:void 0,spellcheck:void 0,locales:[],results:void 0,announcements:void 0,suggestResults:void 0,configuration:void 0},reducers:o0})});var qs,mg=l(()=>{"use strict";Vt();qs=class extends je{constructor(e){super(!0,e),this.cache.registerFinal("search-configuration",async()=>(await this.awaitApi).getSearchConfiguration())}async launchSearch(e){let r={...e,metadataFilters:this.sortFilters(e.metadataFilters),facets:[...e.facets].sort((i,o)=>i.id.localeCompare(o.id))};return this.cache.get("search-"+this.hash(r),async()=>(await this.awaitApi).search(e),120*1e3)}async launchSuggest(e){let r={...e,metadataFilters:this.sortFilters(e.metadataFilters)};return this.cache.get("suggest-"+this.hash(r),async()=>(await this.awaitApi).getSuggestions(e),120*1e3)}async getAvailableSearchLocales(){return this.cache.get("available-locales",async()=>(await this.awaitApi).getAvailableSearchLocales())}async getConfiguration(){return this.cache.get("search-configuration")}sortFilters(e){return e.map(r=>r.valueFilter==null?r:{...r,valueFilter:{...r.valueFilter,values:[...r.valueFilter.values].sort((i,o)=>i.localeCompare(o))}}).sort((r,i)=>r.key.localeCompare(i.key))}}});var Re,gg,vg,n0,xo,vc=l(()=>{"use strict";bo();Re=u(m());fg();bi();mg();fn();Vt();gg=t=>t.request.virtualField===so.TITLE_ONLY&&t.request.scope===ao.DOCUMENTS,vg=t=>t.request.keywordMatch==ls.MANDATORY,n0=20,xo=class t extends Re.FtStateManager{static build(e,r){return new t(hg(e.trim()||"context"),r)}constructor(e,r){super(),this.store=e,this.ignoreEmptyQuery=!1,this.canUpdateUiLocale=!1,this.openExternalDocumentInNewTab=!1,this.onNewNeededRequest=i=>{i==Gt.CLUSTERED_SEARCH&&this.launchSearch(this.buildSearchRequest(this.store.getState()))},this.onStorageEvent=i=>{i.key===this.recentQueriesStorageKey?this.loadRecentQueries():i.key===this.taruqaConfigStorageKey&&this.loadTaruqaTemplate()},this.loadTaruqaTemplate=()=>{var i;let o;if(us(O.getState().session,me.DEBUG_USER)){let n=JSON.parse((i=window.localStorage.getItem(this.taruqaConfigStorageKey))!==null&&i!==void 0?i:"{}");o=n.overrideEnabled?n.template:void 0}this.updateSearchRequest({taruqaTemplateOverride:o,changedByConfiguration:!0})},this.localesDebouncer=new Re.Debouncer(10),this.searchDebouncer=new Re.Debouncer(100),this.launchSearch=i=>this.searchDebouncer.run(()=>this.fetchSearchData(i??this.buildSearchRequest(this.store.getState()))),this.buildSearchRequest=i=>({...i.request,facets:this.facetIds.map(o=>({id:o}))}),this.suggestDebouncer=new Re.Debouncer(1e3),this.launchSuggest=i=>this.suggestDebouncer.run(()=>this.fetchSuggestData(i??this.buildSuggestRequest(this.store.getState()))),this.buildSuggestRequest=i=>{var o;return{input:i.liveQuery,metadataFilters:i.request.metadataFilters,sort:(o=i.request.sort)!==null&&o!==void 0?o:[],sortId:i.request.sortId,contentLocale:i.request.contentLocale,scope:i.request.scope,keywordMatch:i.request.keywordMatch}},this.service=r??new qs,this.service.cache.addEventListener("clear-cache",i=>{i.detail.clearedKeys.includes("available-locales")&&this.updateLocales()}),this.searchWatcher=(0,Re.watch)(e,this.buildSearchRequest,this.launchSearch),this.suggestWatcher=(0,Re.watch)(e,this.buildSuggestRequest,this.launchSuggest)}async initService(){return this.updateLocales(),this.service.getConfiguration().then(e=>{this.store.actions.configuration(e),this.setSortId(this.store.getState().request.sortId)}),this.loadRecentQueries(),this.loadTaruqaTemplate(),this.launchSearch()}addListeners(){window.addEventListener("storage",this.onStorageEvent),O.addEventListener(Cr.eventName,this.loadTaruqaTemplate)}removeListeners(){window.removeEventListener("storage",this.onStorageEvent),O.removeEventListener(Cr.eventName,this.loadTaruqaTemplate)}get recentQueriesStorageKey(){return O.getState().tenantId+"-ft-recent-queries"}get taruqaConfigStorageKey(){return O.getState().tenantId+"-taruqa-experiment-conf"}updateSearchRequest(e,r=!1){let i=(0,Re.deepCopy)(this.store.getState().request);delete i.changedByConfiguration,this.store.actions.setRequest({...i,paging:{perPage:i.paging.perPage,page:r?1:i.paging.page},...e})}setQuery(e){this.updateSearchRequest({query:e},!0),this.setLiveQuery(e)}setContentLocale(e){var r,i;let o=(r=this.store.getState().locales)!==null&&r!==void 0?r:[],n=this.store.getState().request.contentLocale;if(e!=n){if(o.length>0){let s=a=>o.some(c=>c.lang==a);s(e)||(e=s(n)?n:o[0].lang)}this.updateSearchRequest({contentLocale:e,metadataFilters:[]},!0),this.canUpdateUiLocale&&(!((i=Jo.store.getState().localesConfiguration)===null||i===void 0)&&i.searchLanguageSetsUiLanguage)&&e&&Jo.requestUiLocaleUpdate(e)}return e}forceContentLocale(e){this.updateSearchRequest({contentLocale:e})}setPageSize(e){let r=this.store.getState().request;this.updateSearchRequest({paging:{...r.paging,perPage:isNaN(e)?20:(0,Re.minmax)(1,e,1e3)}})}setPageNumber(e){let r=this.store.getState().request;this.updateSearchRequest({paging:{...r.paging,page:isNaN(e)?1:Math.max(1,e)}})}get sortOptions(){var e,r;return(r=(e=this.store.getState().configuration)===null||e===void 0?void 0:e.sortOptions)!==null&&r!==void 0?r:[]}setSort(e){this.updateSearchRequest({sort:e},!0)}setSortId(e,r=!1){var i;let o=r?{changedByConfiguration:!0}:{};if(e==null||this.sortOptions.length==0)return this.updateSearchRequest({sortId:e,...o},!0),e;let n=(i=this.sortOptions.find(s=>s.id==e))!==null&&i!==void 0?i:this.sortOptions[0];return this.updateSearchRequest({sortId:n.id,...o},!0),n.id}setFilters(e){let r=e.filter(i=>!i.valueFilter||i.valueFilter.values.length>0);this.updateSearchRequest({metadataFilters:r},!0)}setClusterSortCriterion(e){this.updateSearchRequest({clusterSortCriterions:e})}setSearchInDocumentTitlesOnly(e){e?this.updateSearchRequest({virtualField:so.TITLE_ONLY,scope:ao.DOCUMENTS},!0):this.updateSearchRequest({virtualField:so.EVERYWHERE,scope:ao.DEFAULT},!0)}setKeywordMatch(e){this.updateSearchRequest({keywordMatch:e},!0)}setVirtualField(e){this.updateSearchRequest({virtualField:e},!0)}get searchInDocumentTitlesOnly(){return gg(this.store.getState())}get keywordMatch(){return vg(this.store.getState())}clearAllFilters(){this.setFilters([]),this.store.dispatchEvent(new hn)}addFacet(e){this.facetIds=[...this.facetIds,e]}replaceFacet(e,r){let i=this.facetIds.filter(o=>o!=e);r&&i.push(r),this.facetIds=i}get facetIds(){var e;let r=this.store.getState().request;return[...new Set([...r.facets.map(i=>i.id),...((e=r.metadataFilters)!==null&&e!==void 0?e:[]).map(i=>i.key)])]}set facetIds(e){let i=[...new Set(e)].map(o=>({id:o}));this.updateSearchRequest({facets:i})}setFilter(e,r){this.setValueFilter(e,r)}setValueFilter(e,r){let i=this.store.getState().request.metadataFilters,o={key:e,valueFilter:{values:r,negative:!1}},n=[...i.filter(s=>!s.valueFilter),...i.filter(s=>s.valueFilter&&s.key!==o.key),o];this.setFilters(n)}setDateFilter(e,r){let i=this.store.getState().request.metadataFilters,o={key:e,dateFilter:{type:r}},n=[...i.filter(s=>!s.dateFilter),...i.filter(s=>s.dateFilter&&s.key!==o.key),o];this.setFilters(n)}removeDateFilter(e){let r=this.store.getState().request.metadataFilters,i=[...r.filter(o=>!o.dateFilter),...r.filter(o=>o.dateFilter&&o.key!==e)];this.setFilters(i)}setRangeFilter(e,r,i){let o=this.store.getState().request.metadataFilters,n={key:e,rangeFilter:{from:r,to:i}},s=[...o.filter(a=>!a.rangeFilter),...o.filter(a=>a.rangeFilter&&a.key!==n.key),n];this.setFilters(s)}removeRangeFilter(e){let r=this.store.getState().request.metadataFilters,i=[...r.filter(o=>!o.rangeFilter),...r.filter(o=>o.rangeFilter&&o.key!==e)];this.setFilters(i)}setLiveQuery(e){this.store.actions.liveQuery(e)}setRequest(e){this.updateSearchRequest({...e,facets:this.store.getState().request.facets},!0),this.setLiveQuery(e.query)}setScope(e){this.updateSearchRequest({scope:e})}setOtherQueryParams(e){this.updateSearchRequest({otherQueryParams:e})}setIgnoreEmptyQuery(e){this.ignoreEmptyQuery=e}setOpenExternalDocumentInNewTab(e){this.openExternalDocumentInNewTab=e}setCanUpdateUiLocale(e){this.canUpdateUiLocale=e}loadRecentQueries(){var e;this.store.actions.recentQueries(JSON.parse((e=window.localStorage.getItem(this.recentQueriesStorageKey))!==null&&e!==void 0?e:"[]"))}addRecentQuery(e){if(e=e.trim(),e.length===0)return;let r=e.toLowerCase(),i=this.store.getState().recentQueries.filter(o=>o.toLowerCase()!==r).slice(0,n0-1);i.unshift(e),this.setRecentQueries(i)}removeRecentQuery(e){let r=e.trim().toLowerCase(),i=this.store.getState().recentQueries,o=i.filter(n=>n.toLowerCase()!==r);i.length!==o.length&&this.setRecentQueries(o)}setRecentQueries(e){let r=JSON.stringify(e);window.localStorage.setItem(this.recentQueriesStorageKey,r),window.dispatchEvent(new StorageEvent("storage",{key:this.recentQueriesStorageKey,newValue:r,storageArea:window.localStorage,url:window.location.href}))}updateLocales(){return this.localesDebouncer.run(async()=>this.store.actions.locales((await this.service.getAvailableSearchLocales()).contentLocales))}async fetchSearchData(e){var r,i,o,n,s;if((r=this.cancelableSearch)===null||r===void 0||r.cancel(),!!this.isRequestNeeded(Gt.CLUSTERED_SEARCH))try{if(this.store.actions.paging(void 0),this.ignoreEmptyQuery&&e.query.length==0)this.store.actions.results(void 0),this.store.actions.announcements(void 0),this.store.actions.facets(void 0),this.store.actions.spellcheck(void 0);else{!((i=this.store.getState().results)===null||i===void 0)&&i.length||this.store.actions.results(void 0),this.cancelableSearch=(0,Re.cancelable)(this.service.launchSearch(e));let a=await this.cancelableSearch;if(this.store.actions.announcements(a.announcements),a.paging.currentPage<=1)this.store.actions.results(a.results),this.store.actions.facets(a.facets),this.store.actions.spellcheck(a.spellcheck);else{let c=((o=this.store.getState().results)!==null&&o!==void 0?o:[]).concat(a.results);this.store.actions.results(c),this.store.commands.clear(/^focus-result-/),this.store.commands.add({type:`focus-result-${(a.paging.currentPage-1)*((n=e.paging.perPage)!==null&&n!==void 0?n:20)+1}`})}this.store.actions.paging(a.paging)}}catch(a){a instanceof Re.CanceledPromiseError||(console.error(a),(s=this.errorHandler)===null||s===void 0||s.call(this,a))}}async fetchSuggestData(e){var r;try{if((r=this.cancelableSuggest)===null||r===void 0||r.cancel(),e.input.length<3){this.store.actions.suggestResults([]);return}this.cancelableSuggest=(0,Re.cancelable)(this.service.launchSuggest(e));let i=await this.cancelableSuggest;this.store.actions.suggestResults(i.suggestions)}catch(i){!(i instanceof Re.CanceledPromiseError)&&this.errorHandler&&this.errorHandler(i)}}clear(){this.store.clear()}clearResults(){this.store.actions.paging(void 0),this.store.actions.results(void 0),this.store.actions.announcements(void 0),this.store.actions.facets(void 0),this.store.actions.spellcheck(void 0)}}});var So,bc,yg,xc,bg,yc,s0,a0,It,_i=l(()=>{"use strict";So=u(m()),bc=u(B());bo();vc();yg=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},xc=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},bg=Symbol("registerInterval"),yc=Symbol("registerAttempts"),s0=40,a0=(0,So.applyMixinOnce)(Symbol("toFtSearchComponent"),function(t){class e extends t{constructor(){super(...arguments),this.neededSearchRequests=[]}willUpdate(i){var o,n,s;super.willUpdate(i),i.has("neededSearchRequests")&&((o=this.stateManager)===null||o===void 0||o.unregisterComponent(this,(n=i.get("neededSearchRequests"))!==null&&n!==void 0?n:[]),(s=this.stateManager)===null||s===void 0||s.registerComponent(this,this.neededSearchRequests))}setSearchStateManager(i){this.clearStateManager(),this.stateManager=i,this.stateManager.registerComponent(this,this.neededSearchRequests),this.addStore(i.store,"search")}clearStateManager(){this.stateManager&&(this.stateManager.unregisterComponent(this,this.neededSearchRequests),this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[yc]=0,this.tryToRegisterToContext(),this[bg]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[yc]>s0?window.clearInterval(this[bg]):(this[yc]++,this.dispatchEvent(new xc))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return yg([(0,bc.state)()],e.prototype,"stateManager",void 0),yg([(0,bc.state)({hasChanged:So.hasChanged})],e.prototype,"neededSearchRequests",void 0),e}),It=class extends a0(So.FtLitElementRedux){}});function mn(t){return t.filter(e=>e.key==="ft:lastEdition").filter(e=>!e.valueFilter).map(e=>e.dateFilter?e.dateFilter.type:"CUSTOM").shift()}function gn(t){var e,r;return t.dateFilter?{key:t.key,type:"DATE",dateValue:t.dateFilter.type}:t.rangeFilter?{key:t.key,type:"RANGE",from:t.rangeFilter.from,to:t.rangeFilter.to}:{key:t.key,values:(e=t.valueFilter)===null||e===void 0?void 0:e.values,negative:(r=t.valueFilter)===null||r===void 0?void 0:r.negative}}var Sc=l(()=>{"use strict"});var Ws,Ks,xg=l(()=>{"use strict";Ws=u(m());bi();Vt();Sc();Ks=class{constructor(e,r){this.store=e,this.ignoreEmptyQuery=!1,this.openExternalDocumentInNewTab=!1,this.enableAnalyticsEvents=!0,this.appName=void 0,this.appVersion=void 0,this.document=void 0,this.sendEvent=([i,o])=>{if(!this.canSendEvent()||!i||!o)return;let n=this.store.getState().request;this.document==null?this.sendKhubSearchEvent(n,i,o):this.sendDocumentSearchEvent(n,i,o)},this.eventsService=r??new bs,this.resultsWatcher=(0,Ws.watch)(e,i=>[i.results,i.paging],this.sendEvent)}setEnableAnalyticsEvents(e){this.enableAnalyticsEvents=e}setAppName(e){this.appName=e}setAppVersion(e){this.appVersion=e}setDocumentSearch(e){this.document=e}setDocumentSearchFromMap(e){this.setDocumentSearch(this.eventsService.convertMapToAnalyticsDocument(e))}initAppInfo(){let{apiIntegrationIdentifier:e,apiIntegrationAppVersion:r}=O.getState();this.setAppName(e??"unknown"),this.setAppVersion(r??"unknown")}canSendEvent(){if(this.appName==null||this.appVersion==null)return console.debug("ft-search-context.eventManager is not initialized. No events will be sent!"),!1;let{editorMode:e}=O.getState();return this.enableAnalyticsEvents&&!e}sendKhubSearchEvent(e,r,i){let o={offline:!1,appVersion:this.appVersion,appName:this.appName,name:yi.KHUB__SEARCH,searchResponse:{autocorrect:this.store.getState().spellcheck!=null,nbResults:i.totalClustersCount},searchQuery:{terms:e.query,searchType:e.virtualField,lastUpdate:mn(e.metadataFilters),facets:e.metadataFilters.map(n=>gn(n))}};this.eventsService.sendKhubSearchEvent(o)}sendDocumentSearchEvent(e,r,i){if(e.metadataFilters.find(n=>{var s;return n.key==="ft:publicationId"&&((s=n.valueFilter)===null||s===void 0?void 0:s.values[0])===this.document.id})!==void 0){let n={offline:!1,appVersion:this.appVersion,appName:this.appName,name:yi.DOCUMENT__SEARCH,searchResponse:{autocorrect:this.store.getState().spellcheck!=null,nbResults:i.totalClustersCount},searchQuery:{terms:e.query},document:this.document};this.eventsService.sendDocumentSearchEvent(n)}}sendResultClickedEvent(e,r){if(!this.canSendEvent())return;let i=this.store.getState().request,o;e.type==nr.TOPIC&&(o={tocId:e.topic.tocId,title:e.topic.title});let n={offline:!1,appVersion:this.appVersion,appName:this.appName,name:yi.SEARCH_PAGE__SELECT,searchQuery:{terms:i.query,searchType:i.virtualField,lastUpdate:mn(i.metadataFilters),facets:i.metadataFilters.map(s=>gn(s))},searchResult:{rank:r,type:e.type,document:this.convertDocument(e),topic:o},externalLink:this.convertExternalLink(e)};this.eventsService.sendSearchPageSelectEvent(n)}sendResultContextMenuOpenedEvent(e,r){if(!this.canSendEvent())return;let i=this.store.getState().request,o;e.type==nr.TOPIC&&(o={tocId:e.topic.tocId,title:e.topic.title});let n={offline:!1,appVersion:this.appVersion,appName:this.appName,name:yi.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU,searchQuery:{terms:i.query,searchType:i.virtualField,lastUpdate:mn(i.metadataFilters),facets:i.metadataFilters.map(s=>gn(s))},searchResult:{rank:r,type:e.type,document:this.convertDocument(e),topic:o},externalLink:this.convertExternalLink(e)};this.eventsService.sendSearchResultOpenContextMenuEvent(n)}convertDocument(e){switch(e.type){case nr.MAP:return{id:e.map.mapId,title:e.map.title,type:Kr.STRUCTURED_DOCUMENT,metadata:e.map.metadata};case nr.TOPIC:return{id:e.topic.mapId,title:e.topic.mapTitle,type:Kr.STRUCTURED_DOCUMENT,metadata:e.topic.metadata};case nr.DOCUMENT:return{id:e.document.documentId,title:e.document.title,type:Kr.UNSTRUCTURED_DOCUMENT,metadata:e.document.metadata,mimeType:e.document.mimeType};case nr.HTML_PACKAGE:return{id:e.htmlPackage.packageId,title:e.htmlPackage.title,type:Kr.HTML_PACKAGE,metadata:e.htmlPackage.metadata};case nr.HTML_PACKAGE_PAGE:return{id:e.htmlPackagePage.packageId,title:e.htmlPackagePage.title,type:Kr.HTML_PACKAGE,metadata:e.htmlPackagePage.metadata};default:throw new TypeError("Unknown type "+e.type)}}convertExternalLink(e){var r;return(r=(0,Ws.accessResult)(e))===null||r===void 0?void 0:r.originUrl}}});var Sg,ar,Ze,Te,te,Cc=l(()=>{"use strict";Sg=u(b()),ar=u(B()),Ze=u(m());gc();_i();Vt();gs();xg();fn();Te=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},te=class extends Ze.FtLitElementRedux{get stateManager(){if(this._stateManager==null){let e=this.searchServiceProvider?this.searchServiceProvider():void 0;this._stateManager=xo.build(this.id||(""+Math.round(Math.random()*999e3)).padStart(6,"0"),e),this._stateManager.errorHandler=r=>this.handleLoadError(r),this.addStore(this.stateManager.store,"search")}return this._stateManager}get eventManager(){return this._eventManager==null&&(this._eventManager=new Ks(this.stateManager.store)),this._eventManager}constructor(){super(),this.query="",this.pageSize=20,this.searchInDocumentTitlesOnly=!1,this.ignoreEmptyQuery=!1,this.openExternalDocumentInNewTab=!1,this.filters=[],this.sort=[],this.otherQueryParams={},this._appIntegrationInfoReady=!1,this.addStore(O)}render(){return Sg.html`
685
+ `});function tg(t){var e;return((e=(0,pn.accessResult)(t))===null||e===void 0?void 0:e.openMode)===cs.EXTERNAL}function Us(t){return tg(t)?(0,pn.accessResult)(t).originUrl:(0,pn.accessResultUrl)(t)}function rg(t,e){return Qr(e&&tg(t)?"_blank":void 0)}var pn,dc=l(()=>{"use strict";bi();$s();pn=u(m())});var vo,yo,Hs,Vs,js,hn,fn=l(()=>{"use strict";vo=class extends CustomEvent{constructor(e,r){super("ft-search-result-click",{detail:{result:e,rank:r},bubbles:!0,composed:!0})}},yo=class extends CustomEvent{constructor(e,r){super("ft-search-result-open-context-menu",{detail:{result:e,rank:r},bubbles:!0,composed:!0})}},Hs=class extends CustomEvent{constructor(e){super("ft-search-load-error",{detail:e,composed:!0,bubbles:!0})}},Vs=class extends CustomEvent{constructor(e){super("ft-search-request-change",{detail:e,composed:!0,bubbles:!0})}},js=class extends CustomEvent{constructor(e,r,i){super("ft-search-results-change",{detail:{request:e,paging:r,spellcheck:i},composed:!0,bubbles:!0})}},hn=class t extends Event{constructor(){super(t.eventName)}};hn.eventName="search-context-clear-all-filters"});var ag,t0,fc,mc=l(()=>{"use strict";ag=u(b()),t0={},fc=ag.css`
686
+ `});var lg=l(()=>{"use strict"});var Gt,bo=l(()=>{"use strict";(function(t){t.CLUSTERED_SEARCH="CLUSTERED_SEARCH"})(Gt||(Gt={}))});var cg,r0,ug,pg=l(()=>{"use strict";cg=u(m()),r0={setRequest:(t,e)=>{t.request=e.payload}},ug=t=>cg.FtReduxStore.get({name:"ft-search-"+t,initialState:{request:{query:"",clusterSortCriterions:[],metadataFilters:[],facets:[],sort:[],sortId:void 0,paging:{page:1,perPage:20},keywordMatch:void 0},liveQuery:"",recentQueries:[],paging:void 0,facets:void 0,spellcheck:void 0,locales:[],results:void 0,announcements:void 0,suggestResults:void 0,configuration:void 0},reducers:r0})});var zs,dg=l(()=>{"use strict";Vt();zs=class extends je{constructor(e){super(!0,e),this.cache.registerFinal("search-configuration",async()=>(await this.awaitApi).getSearchConfiguration())}async launchSearch(e){let r={...e,metadataFilters:this.sortFilters(e.metadataFilters),facets:[...e.facets].sort((i,o)=>i.id.localeCompare(o.id))};return this.cache.get("search-"+this.hash(r),async()=>(await this.awaitApi).search(e),120*1e3)}async launchSuggest(e){let r={...e,metadataFilters:this.sortFilters(e.metadataFilters)};return this.cache.get("suggest-"+this.hash(r),async()=>(await this.awaitApi).getSuggestions(e),120*1e3)}async getAvailableSearchLocales(){return this.cache.get("available-locales",async()=>(await this.awaitApi).getAvailableSearchLocales())}async getConfiguration(){return this.cache.get("search-configuration")}sortFilters(e){return e.map(r=>r.valueFilter==null?r:{...r,valueFilter:{...r.valueFilter,values:[...r.valueFilter.values].sort((i,o)=>i.localeCompare(o))}}).sort((r,i)=>r.key.localeCompare(i.key))}}});var Re,hg,fg,i0,xo,gc=l(()=>{"use strict";bo();Re=u(m());pg();bi();dg();fn();Vt();hg=t=>t.request.virtualField===so.TITLE_ONLY&&t.request.scope===ao.DOCUMENTS,fg=t=>t.request.keywordMatch==ls.MANDATORY,i0=20,xo=class t extends Re.FtStateManager{static build(e,r){return new t(ug(e.trim()||"context"),r)}constructor(e,r){super(),this.store=e,this.ignoreEmptyQuery=!1,this.canUpdateUiLocale=!1,this.openExternalDocumentInNewTab=!1,this.onNewNeededRequest=i=>{i==Gt.CLUSTERED_SEARCH&&this.launchSearch(this.buildSearchRequest(this.store.getState()))},this.onStorageEvent=i=>{i.key===this.recentQueriesStorageKey?this.loadRecentQueries():i.key===this.taruqaConfigStorageKey&&this.loadTaruqaTemplate()},this.loadTaruqaTemplate=()=>{var i;let o;if(us(O.getState().session,me.DEBUG_USER)){let n=JSON.parse((i=window.localStorage.getItem(this.taruqaConfigStorageKey))!==null&&i!==void 0?i:"{}");o=n.overrideEnabled?n.template:void 0}this.updateSearchRequest({taruqaTemplateOverride:o,changedByConfiguration:!0})},this.localesDebouncer=new Re.Debouncer(10),this.searchDebouncer=new Re.Debouncer(100),this.launchSearch=i=>this.searchDebouncer.run(()=>this.fetchSearchData(i??this.buildSearchRequest(this.store.getState()))),this.buildSearchRequest=i=>({...i.request,facets:this.facetIds.map(o=>({id:o}))}),this.suggestDebouncer=new Re.Debouncer(1e3),this.launchSuggest=i=>this.suggestDebouncer.run(()=>this.fetchSuggestData(i??this.buildSuggestRequest(this.store.getState()))),this.buildSuggestRequest=i=>{var o;return{input:i.liveQuery,metadataFilters:i.request.metadataFilters,sort:(o=i.request.sort)!==null&&o!==void 0?o:[],sortId:i.request.sortId,contentLocale:i.request.contentLocale,scope:i.request.scope,keywordMatch:i.request.keywordMatch}},this.service=r??new zs,this.service.cache.addEventListener("clear-cache",i=>{i.detail.clearedKeys.includes("available-locales")&&this.updateLocales()}),this.searchWatcher=(0,Re.watch)(e,this.buildSearchRequest,this.launchSearch),this.suggestWatcher=(0,Re.watch)(e,this.buildSuggestRequest,this.launchSuggest)}async initService(){return this.updateLocales(),this.service.getConfiguration().then(e=>{this.store.actions.configuration(e),this.setSortId(this.store.getState().request.sortId)}),this.loadRecentQueries(),this.loadTaruqaTemplate(),this.launchSearch()}addListeners(){window.addEventListener("storage",this.onStorageEvent),O.addEventListener(Cr.eventName,this.loadTaruqaTemplate)}removeListeners(){window.removeEventListener("storage",this.onStorageEvent),O.removeEventListener(Cr.eventName,this.loadTaruqaTemplate)}get recentQueriesStorageKey(){return O.getState().tenantId+"-ft-recent-queries"}get taruqaConfigStorageKey(){return O.getState().tenantId+"-taruqa-experiment-conf"}updateSearchRequest(e,r=!1){let i=(0,Re.deepCopy)(this.store.getState().request);delete i.changedByConfiguration,this.store.actions.setRequest({...i,paging:{perPage:i.paging.perPage,page:r?1:i.paging.page},...e})}setQuery(e){this.updateSearchRequest({query:e},!0),this.setLiveQuery(e)}setContentLocale(e){var r,i;let o=(r=this.store.getState().locales)!==null&&r!==void 0?r:[],n=this.store.getState().request.contentLocale;if(e!=n){if(o.length>0){let s=a=>o.some(c=>c.lang==a);s(e)||(e=s(n)?n:o[0].lang)}this.updateSearchRequest({contentLocale:e,metadataFilters:[]},!0),this.canUpdateUiLocale&&(!((i=Jo.store.getState().localesConfiguration)===null||i===void 0)&&i.searchLanguageSetsUiLanguage)&&e&&Jo.requestUiLocaleUpdate(e,e)}return e}forceContentLocale(e){this.updateSearchRequest({contentLocale:e})}setPageSize(e){let r=this.store.getState().request;this.updateSearchRequest({paging:{...r.paging,perPage:isNaN(e)?20:(0,Re.minmax)(1,e,1e3)}})}setPageNumber(e){let r=this.store.getState().request;this.updateSearchRequest({paging:{...r.paging,page:isNaN(e)?1:Math.max(1,e)}})}get sortOptions(){var e,r;return(r=(e=this.store.getState().configuration)===null||e===void 0?void 0:e.sortOptions)!==null&&r!==void 0?r:[]}setSort(e){this.updateSearchRequest({sort:e},!0)}setSortId(e,r=!1){var i;let o=r?{changedByConfiguration:!0}:{};if(e==null||this.sortOptions.length==0)return this.updateSearchRequest({sortId:e,...o},!0),e;let n=(i=this.sortOptions.find(s=>s.id==e))!==null&&i!==void 0?i:this.sortOptions[0];return this.updateSearchRequest({sortId:n.id,...o},!0),n.id}setFilters(e){let r=e.filter(i=>!i.valueFilter||i.valueFilter.values.length>0);this.updateSearchRequest({metadataFilters:r},!0)}setClusterSortCriterion(e){this.updateSearchRequest({clusterSortCriterions:e})}setSearchInDocumentTitlesOnly(e){e?this.updateSearchRequest({virtualField:so.TITLE_ONLY,scope:ao.DOCUMENTS},!0):this.updateSearchRequest({virtualField:so.EVERYWHERE,scope:ao.DEFAULT},!0)}setKeywordMatch(e){this.updateSearchRequest({keywordMatch:e},!0)}setVirtualField(e){this.updateSearchRequest({virtualField:e},!0)}get searchInDocumentTitlesOnly(){return hg(this.store.getState())}get keywordMatch(){return fg(this.store.getState())}clearAllFilters(){this.setFilters([]),this.store.dispatchEvent(new hn)}addFacet(e){this.facetIds=[...this.facetIds,e]}replaceFacet(e,r){let i=this.facetIds.filter(o=>o!=e);r&&i.push(r),this.facetIds=i}get facetIds(){var e;let r=this.store.getState().request;return[...new Set([...r.facets.map(i=>i.id),...((e=r.metadataFilters)!==null&&e!==void 0?e:[]).map(i=>i.key)])]}set facetIds(e){let i=[...new Set(e)].map(o=>({id:o}));this.updateSearchRequest({facets:i})}setFilter(e,r){this.setValueFilter(e,r)}setValueFilter(e,r){let i=this.store.getState().request.metadataFilters,o={key:e,valueFilter:{values:r,negative:!1}},n=[...i.filter(s=>!s.valueFilter),...i.filter(s=>s.valueFilter&&s.key!==o.key),o];this.setFilters(n)}setDateFilter(e,r){let i=this.store.getState().request.metadataFilters,o={key:e,dateFilter:{type:r}},n=[...i.filter(s=>!s.dateFilter),...i.filter(s=>s.dateFilter&&s.key!==o.key),o];this.setFilters(n)}removeDateFilter(e){let r=this.store.getState().request.metadataFilters,i=[...r.filter(o=>!o.dateFilter),...r.filter(o=>o.dateFilter&&o.key!==e)];this.setFilters(i)}setRangeFilter(e,r,i){let o=this.store.getState().request.metadataFilters,n={key:e,rangeFilter:{from:r,to:i}},s=[...o.filter(a=>!a.rangeFilter),...o.filter(a=>a.rangeFilter&&a.key!==n.key),n];this.setFilters(s)}removeRangeFilter(e){let r=this.store.getState().request.metadataFilters,i=[...r.filter(o=>!o.rangeFilter),...r.filter(o=>o.rangeFilter&&o.key!==e)];this.setFilters(i)}setLiveQuery(e){this.store.actions.liveQuery(e)}setRequest(e){this.updateSearchRequest({...e,facets:this.store.getState().request.facets},!0),this.setLiveQuery(e.query)}setScope(e){this.updateSearchRequest({scope:e})}setOtherQueryParams(e){this.updateSearchRequest({otherQueryParams:e})}setIgnoreEmptyQuery(e){this.ignoreEmptyQuery=e}setOpenExternalDocumentInNewTab(e){this.openExternalDocumentInNewTab=e}setCanUpdateUiLocale(e){this.canUpdateUiLocale=e}loadRecentQueries(){var e;this.store.actions.recentQueries(JSON.parse((e=window.localStorage.getItem(this.recentQueriesStorageKey))!==null&&e!==void 0?e:"[]"))}addRecentQuery(e){if(e=e.trim(),e.length===0)return;let r=e.toLowerCase(),i=this.store.getState().recentQueries.filter(o=>o.toLowerCase()!==r).slice(0,i0-1);i.unshift(e),this.setRecentQueries(i)}removeRecentQuery(e){let r=e.trim().toLowerCase(),i=this.store.getState().recentQueries,o=i.filter(n=>n.toLowerCase()!==r);i.length!==o.length&&this.setRecentQueries(o)}setRecentQueries(e){let r=JSON.stringify(e);window.localStorage.setItem(this.recentQueriesStorageKey,r),window.dispatchEvent(new StorageEvent("storage",{key:this.recentQueriesStorageKey,newValue:r,storageArea:window.localStorage,url:window.location.href}))}updateLocales(){return this.localesDebouncer.run(async()=>this.store.actions.locales((await this.service.getAvailableSearchLocales()).contentLocales))}async fetchSearchData(e){var r,i,o,n,s;if((r=this.cancelableSearch)===null||r===void 0||r.cancel(),!!this.isRequestNeeded(Gt.CLUSTERED_SEARCH))try{if(this.store.actions.paging(void 0),this.ignoreEmptyQuery&&e.query.length==0)this.store.actions.results(void 0),this.store.actions.announcements(void 0),this.store.actions.facets(void 0),this.store.actions.spellcheck(void 0);else{!((i=this.store.getState().results)===null||i===void 0)&&i.length||this.store.actions.results(void 0),this.cancelableSearch=(0,Re.cancelable)(this.service.launchSearch(e));let a=await this.cancelableSearch;if(this.store.actions.announcements(a.announcements),a.paging.currentPage<=1)this.store.actions.results(a.results),this.store.actions.facets(a.facets),this.store.actions.spellcheck(a.spellcheck);else{let c=((o=this.store.getState().results)!==null&&o!==void 0?o:[]).concat(a.results);this.store.actions.results(c),this.store.commands.clear(/^focus-result-/),this.store.commands.add({type:`focus-result-${(a.paging.currentPage-1)*((n=e.paging.perPage)!==null&&n!==void 0?n:20)+1}`})}this.store.actions.paging(a.paging)}}catch(a){a instanceof Re.CanceledPromiseError||(console.error(a),(s=this.errorHandler)===null||s===void 0||s.call(this,a))}}async fetchSuggestData(e){var r;try{if((r=this.cancelableSuggest)===null||r===void 0||r.cancel(),e.input.length<3){this.store.actions.suggestResults([]);return}this.cancelableSuggest=(0,Re.cancelable)(this.service.launchSuggest(e));let i=await this.cancelableSuggest;this.store.actions.suggestResults(i.suggestions)}catch(i){!(i instanceof Re.CanceledPromiseError)&&this.errorHandler&&this.errorHandler(i)}}clear(){this.store.clear()}clearResults(){this.store.actions.paging(void 0),this.store.actions.results(void 0),this.store.actions.announcements(void 0),this.store.actions.facets(void 0),this.store.actions.spellcheck(void 0)}}});var So,yc,mg,bc,gg,vc,o0,n0,It,_i=l(()=>{"use strict";So=u(m()),yc=u(B());bo();gc();mg=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},bc=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},gg=Symbol("registerInterval"),vc=Symbol("registerAttempts"),o0=40,n0=(0,So.applyMixinOnce)(Symbol("toFtSearchComponent"),function(t){class e extends t{constructor(){super(...arguments),this.neededSearchRequests=[]}willUpdate(i){var o,n,s;super.willUpdate(i),i.has("neededSearchRequests")&&((o=this.stateManager)===null||o===void 0||o.unregisterComponent(this,(n=i.get("neededSearchRequests"))!==null&&n!==void 0?n:[]),(s=this.stateManager)===null||s===void 0||s.registerComponent(this,this.neededSearchRequests))}setSearchStateManager(i){this.clearStateManager(),this.stateManager=i,this.stateManager.registerComponent(this,this.neededSearchRequests),this.addStore(i.store,"search")}clearStateManager(){this.stateManager&&(this.stateManager.unregisterComponent(this,this.neededSearchRequests),this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[vc]=0,this.tryToRegisterToContext(),this[gg]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[vc]>o0?window.clearInterval(this[gg]):(this[vc]++,this.dispatchEvent(new bc))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return mg([(0,yc.state)()],e.prototype,"stateManager",void 0),mg([(0,yc.state)({hasChanged:So.hasChanged})],e.prototype,"neededSearchRequests",void 0),e}),It=class extends n0(So.FtLitElementRedux){}});function mn(t){return t.filter(e=>e.key==="ft:lastEdition").filter(e=>!e.valueFilter).map(e=>e.dateFilter?e.dateFilter.type:"CUSTOM").shift()}function gn(t){var e,r;return t.dateFilter?{key:t.key,type:"DATE",dateValue:t.dateFilter.type}:t.rangeFilter?{key:t.key,type:"RANGE",from:t.rangeFilter.from,to:t.rangeFilter.to}:{key:t.key,values:(e=t.valueFilter)===null||e===void 0?void 0:e.values,negative:(r=t.valueFilter)===null||r===void 0?void 0:r.negative}}var xc=l(()=>{"use strict"});var Ks,qs,vg=l(()=>{"use strict";Ks=u(m());bi();Vt();xc();qs=class{constructor(e,r){this.store=e,this.ignoreEmptyQuery=!1,this.openExternalDocumentInNewTab=!1,this.enableAnalyticsEvents=!0,this.appName=void 0,this.appVersion=void 0,this.document=void 0,this.sendEvent=([i,o])=>{if(!this.canSendEvent()||!i||!o)return;let n=this.store.getState().request;this.document==null?this.sendKhubSearchEvent(n,i,o):this.sendDocumentSearchEvent(n,i,o)},this.eventsService=r??new ys,this.resultsWatcher=(0,Ks.watch)(e,i=>[i.results,i.paging],this.sendEvent)}setEnableAnalyticsEvents(e){this.enableAnalyticsEvents=e}setAppName(e){this.appName=e}setAppVersion(e){this.appVersion=e}setDocumentSearch(e){this.document=e}setDocumentSearchFromMap(e){this.setDocumentSearch(this.eventsService.convertMapToAnalyticsDocument(e))}initAppInfo(){let{apiIntegrationIdentifier:e,apiIntegrationAppVersion:r}=O.getState();this.setAppName(e??"unknown"),this.setAppVersion(r??"unknown")}canSendEvent(){if(this.appName==null||this.appVersion==null)return console.debug("ft-search-context.eventManager is not initialized. No events will be sent!"),!1;let{editorMode:e}=O.getState();return this.enableAnalyticsEvents&&!e}sendKhubSearchEvent(e,r,i){let o={offline:!1,appVersion:this.appVersion,appName:this.appName,name:yi.KHUB__SEARCH,searchResponse:{autocorrect:this.store.getState().spellcheck!=null,nbResults:i.totalClustersCount},searchQuery:{terms:e.query,searchType:e.virtualField,lastUpdate:mn(e.metadataFilters),facets:e.metadataFilters.map(n=>gn(n))}};this.eventsService.sendKhubSearchEvent(o)}sendDocumentSearchEvent(e,r,i){if(e.metadataFilters.find(n=>{var s;return n.key==="ft:publicationId"&&((s=n.valueFilter)===null||s===void 0?void 0:s.values[0])===this.document.id})!==void 0){let n={offline:!1,appVersion:this.appVersion,appName:this.appName,name:yi.DOCUMENT__SEARCH,searchResponse:{autocorrect:this.store.getState().spellcheck!=null,nbResults:i.totalClustersCount},searchQuery:{terms:e.query},document:this.document};this.eventsService.sendDocumentSearchEvent(n)}}sendResultClickedEvent(e,r){if(!this.canSendEvent())return;let i=this.store.getState().request,o;e.type==nr.TOPIC&&(o={tocId:e.topic.tocId,title:e.topic.title});let n={offline:!1,appVersion:this.appVersion,appName:this.appName,name:yi.SEARCH_PAGE__SELECT,searchQuery:{terms:i.query,searchType:i.virtualField,lastUpdate:mn(i.metadataFilters),facets:i.metadataFilters.map(s=>gn(s))},searchResult:{rank:r,type:e.type,document:this.convertDocument(e),topic:o},externalLink:this.convertExternalLink(e)};this.eventsService.sendSearchPageSelectEvent(n)}sendResultContextMenuOpenedEvent(e,r){if(!this.canSendEvent())return;let i=this.store.getState().request,o;e.type==nr.TOPIC&&(o={tocId:e.topic.tocId,title:e.topic.title});let n={offline:!1,appVersion:this.appVersion,appName:this.appName,name:yi.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU,searchQuery:{terms:i.query,searchType:i.virtualField,lastUpdate:mn(i.metadataFilters),facets:i.metadataFilters.map(s=>gn(s))},searchResult:{rank:r,type:e.type,document:this.convertDocument(e),topic:o},externalLink:this.convertExternalLink(e)};this.eventsService.sendSearchResultOpenContextMenuEvent(n)}convertDocument(e){switch(e.type){case nr.MAP:return{id:e.map.mapId,title:e.map.title,type:Kr.STRUCTURED_DOCUMENT,metadata:e.map.metadata};case nr.TOPIC:return{id:e.topic.mapId,title:e.topic.mapTitle,type:Kr.STRUCTURED_DOCUMENT,metadata:e.topic.metadata};case nr.DOCUMENT:return{id:e.document.documentId,title:e.document.title,type:Kr.UNSTRUCTURED_DOCUMENT,metadata:e.document.metadata,mimeType:e.document.mimeType};case nr.HTML_PACKAGE:return{id:e.htmlPackage.packageId,title:e.htmlPackage.title,type:Kr.HTML_PACKAGE,metadata:e.htmlPackage.metadata};case nr.HTML_PACKAGE_PAGE:return{id:e.htmlPackagePage.packageId,title:e.htmlPackagePage.title,type:Kr.HTML_PACKAGE,metadata:e.htmlPackagePage.metadata};default:throw new TypeError("Unknown type "+e.type)}}convertExternalLink(e){var r;return(r=(0,Ks.accessResult)(e))===null||r===void 0?void 0:r.originUrl}}});var yg,ar,Ze,Te,te,Sc=l(()=>{"use strict";yg=u(b()),ar=u(B()),Ze=u(m());mc();_i();Vt();vg();fn();Te=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},te=class extends Ze.FtLitElementRedux{get stateManager(){if(this._stateManager==null){let e=this.searchServiceProvider?this.searchServiceProvider():void 0;this._stateManager=xo.build(this.id||(""+Math.round(Math.random()*999e3)).padStart(6,"0"),e),this._stateManager.errorHandler=r=>this.handleLoadError(r),this.addStore(this.stateManager.store,"search")}return this._stateManager}get eventManager(){return this._eventManager==null&&(this._eventManager=new qs(this.stateManager.store)),this._eventManager}constructor(){super(),this.query="",this.pageSize=20,this.searchInDocumentTitlesOnly=!1,this.ignoreEmptyQuery=!1,this.openExternalDocumentInNewTab=!1,this.filters=[],this.sort=[],this.otherQueryParams={},this._appIntegrationInfoReady=!1,this.addStore(O)}render(){return yg.html`
687
687
  <slot @register-ft-search-component=${this.registerComponent} @ft-search-result-click=${this.onResultClicked}
688
688
  @ft-search-result-open-context-menu=${this.onResultContextMenuOpened}></slot>
689
- `}willUpdate(e){super.willUpdate(e),e.has("_appIntegrationInfoReady")&&this._appIntegrationInfoReady&&this.eventManager.initAppInfo(),e.has("query")&&this.query!==void 0&&this.stateManager.setQuery(this.query),e.has("contentLocale")&&this.contentLocale!==void 0&&this.stateManager.forceContentLocale(this.contentLocale),e.has("filters")&&this.filters!==void 0&&this.stateManager.setFilters(this.filters),e.has("sortId")&&this.stateManager.setSortId(this.sortId),e.has("sort")&&this.sort!==void 0&&this.stateManager.setSort(this.sort),e.has("pageSize")&&this.pageSize!==void 0&&this.stateManager.setPageSize(this.pageSize),e.has("searchInDocumentTitlesOnly")&&this.searchInDocumentTitlesOnly!==void 0&&this.stateManager.setSearchInDocumentTitlesOnly(this.searchInDocumentTitlesOnly),e.has("keywordMatch")&&this.stateManager.setKeywordMatch(this.keywordMatch),e.has("scope")&&this.scope!==void 0&&this.stateManager.setScope(this.scope),e.has("virtualField")&&this.virtualField!==void 0&&this.stateManager.setVirtualField(this.virtualField),e.has("ignoreEmptyQuery")&&this.ignoreEmptyQuery!==void 0&&this.stateManager.setIgnoreEmptyQuery(this.ignoreEmptyQuery),e.has("openExternalDocumentInNewTab")&&this.openExternalDocumentInNewTab!==void 0&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("otherQueryParams")&&this.otherQueryParams!==void 0&&this.stateManager.setOtherQueryParams(this.otherQueryParams),e.has("session")&&this.session!==void 0&&e.get("session")!=null&&(this.stateManager.service.clearCache(),this.stateManager.initService())}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),this.stateManager.clearResults(),this.stateManager.setQuery(this.query),this.stateManager.forceContentLocale(this.contentLocale),this.stateManager.setFilters(this.filters),this.stateManager.setPageSize(this.pageSize),this.stateManager.setSort(this.sort),this.stateManager.setOtherQueryParams(this.otherQueryParams),this.stateManager.addListeners()}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.removeListeners(),this.stateManager.clearResults()}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("request")&&this.request&&this.dispatchEvent(new js(this.request)),e.has("paging")&&this.paging!==void 0&&this.dispatchEvent(new zs(this.request,this.paging,this.spellcheckAutocorrect))}registerComponent(e){e.stopPropagation();let r=e.composedPath()[0];this.register(r)}register(e){e.setSearchStateManager(this.stateManager)}handleLoadError(e){this.dispatchEvent(new Vs(e))}reloadSavedSearches(){Il.clearMySearches()}clear(){this.stateManager.clear()}onResultClicked(e){this.eventManager.sendResultClickedEvent(e.detail.result,e.detail.rank)}onResultContextMenuOpened(e){this.eventManager.sendResultContextMenuOpenedEvent(e.detail.result,e.detail.rank)}};te.elementDefinitions={};te.styles=mc;Te([(0,Ze.redux)({store:O.name})],te.prototype,"session",void 0);Te([(0,ar.property)()],te.prototype,"query",void 0);Te([(0,ar.property)()],te.prototype,"contentLocale",void 0);Te([(0,Ze.numberProperty)()],te.prototype,"pageSize",void 0);Te([(0,ar.property)({type:Boolean})],te.prototype,"searchInDocumentTitlesOnly",void 0);Te([(0,ar.property)()],te.prototype,"keywordMatch",void 0);Te([(0,ar.property)()],te.prototype,"scope",void 0);Te([(0,ar.property)()],te.prototype,"virtualField",void 0);Te([(0,ar.property)({type:Boolean})],te.prototype,"ignoreEmptyQuery",void 0);Te([(0,Ze.redux)({store:O.name})],te.prototype,"openExternalDocumentInNewTab",void 0);Te([(0,Ze.jsonProperty)([])],te.prototype,"filters",void 0);Te([(0,ar.property)()],te.prototype,"sortId",void 0);Te([(0,Ze.jsonProperty)([])],te.prototype,"sort",void 0);Te([(0,Ze.jsonProperty)({})],te.prototype,"otherQueryParams",void 0);Te([(0,Ze.redux)({store:"search"})],te.prototype,"request",void 0);Te([(0,Ze.redux)({store:"search"})],te.prototype,"paging",void 0);Te([(0,Ze.redux)({store:"search",selector:t=>t.spellcheck})],te.prototype,"spellcheckAutocorrect",void 0);Te([(0,Ze.redux)({store:O.name,selector:t=>t.apiIntegrationIdentifier!==void 0&&t.apiIntegrationAppVersion!==void 0})],te.prototype,"_appIntegrationInfoReady",void 0);Te([(0,ar.property)({attribute:!1})],te.prototype,"searchServiceProvider",void 0)});var Cg,Eg=l(()=>{"use strict";Cc();Cg={"ft-search-context":te}});var Ag,Og=l(()=>{"use strict";Ag=u(m());Eg();(0,Ag.customElements)(Cg)});var wg={};si(wg,{FtSearchContext:()=>te,FtSearchContextCssVariables:()=>i0,FtSearchStateManager:()=>xo,convertMetadataFilterToAnalyticsFacet:()=>gn,getAnalyticsLastUpdate:()=>mn,keywordMatchSelector:()=>vg,searchInDocumentTitlesOnlySelector:()=>gg,styles:()=>mc});var Rg=l(()=>{"use strict";gc();pg();Cc();vc();Sc();Og()});var Tg=l(()=>{"use strict"});var wr,Ec=l(()=>{"use strict";kt();wr=sr.build("designedSearchInput")});var Rr=Hi((W_,_g)=>{_g.exports=ftGlobals.litRepeat});var Dt,Ac=l(()=>{"use strict";(function(t){t.S="S",t.M="M",t.L="L",t.XL="XL",t.XXL="XXL"})(Dt||(Dt={}))});var kg,Lg,Oc=l(()=>{"use strict";kg=u(b()),Lg=kg.css`
689
+ `}willUpdate(e){super.willUpdate(e),e.has("_appIntegrationInfoReady")&&this._appIntegrationInfoReady&&this.eventManager.initAppInfo(),e.has("query")&&this.query!==void 0&&this.stateManager.setQuery(this.query),e.has("contentLocale")&&this.contentLocale!==void 0&&this.stateManager.forceContentLocale(this.contentLocale),e.has("filters")&&this.filters!==void 0&&this.stateManager.setFilters(this.filters),e.has("sortId")&&this.stateManager.setSortId(this.sortId),e.has("sort")&&this.sort!==void 0&&this.stateManager.setSort(this.sort),e.has("pageSize")&&this.pageSize!==void 0&&this.stateManager.setPageSize(this.pageSize),e.has("searchInDocumentTitlesOnly")&&this.searchInDocumentTitlesOnly!==void 0&&this.stateManager.setSearchInDocumentTitlesOnly(this.searchInDocumentTitlesOnly),e.has("keywordMatch")&&this.stateManager.setKeywordMatch(this.keywordMatch),e.has("scope")&&this.scope!==void 0&&this.stateManager.setScope(this.scope),e.has("virtualField")&&this.virtualField!==void 0&&this.stateManager.setVirtualField(this.virtualField),e.has("ignoreEmptyQuery")&&this.ignoreEmptyQuery!==void 0&&this.stateManager.setIgnoreEmptyQuery(this.ignoreEmptyQuery),e.has("openExternalDocumentInNewTab")&&this.openExternalDocumentInNewTab!==void 0&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("otherQueryParams")&&this.otherQueryParams!==void 0&&this.stateManager.setOtherQueryParams(this.otherQueryParams),e.has("session")&&this.session!==void 0&&e.get("session")!=null&&(this.stateManager.service.clearCache(),this.stateManager.initService())}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),this.stateManager.clearResults(),this.stateManager.setQuery(this.query),this.stateManager.forceContentLocale(this.contentLocale),this.stateManager.setFilters(this.filters),this.stateManager.setPageSize(this.pageSize),this.stateManager.setSort(this.sort),this.stateManager.setOtherQueryParams(this.otherQueryParams),this.stateManager.addListeners()}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.removeListeners(),this.stateManager.clearResults()}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("request")&&this.request&&this.dispatchEvent(new Vs(this.request)),e.has("paging")&&this.paging!==void 0&&this.dispatchEvent(new js(this.request,this.paging,this.spellcheckAutocorrect))}registerComponent(e){e.stopPropagation();let r=e.composedPath()[0];this.register(r)}register(e){e.setSearchStateManager(this.stateManager)}handleLoadError(e){this.dispatchEvent(new Hs(e))}clear(){this.stateManager.clear()}onResultClicked(e){this.eventManager.sendResultClickedEvent(e.detail.result,e.detail.rank)}onResultContextMenuOpened(e){this.eventManager.sendResultContextMenuOpenedEvent(e.detail.result,e.detail.rank)}};te.elementDefinitions={};te.styles=fc;Te([(0,Ze.redux)({store:O.name})],te.prototype,"session",void 0);Te([(0,ar.property)()],te.prototype,"query",void 0);Te([(0,ar.property)()],te.prototype,"contentLocale",void 0);Te([(0,Ze.numberProperty)()],te.prototype,"pageSize",void 0);Te([(0,ar.property)({type:Boolean})],te.prototype,"searchInDocumentTitlesOnly",void 0);Te([(0,ar.property)()],te.prototype,"keywordMatch",void 0);Te([(0,ar.property)()],te.prototype,"scope",void 0);Te([(0,ar.property)()],te.prototype,"virtualField",void 0);Te([(0,ar.property)({type:Boolean})],te.prototype,"ignoreEmptyQuery",void 0);Te([(0,Ze.redux)({store:O.name})],te.prototype,"openExternalDocumentInNewTab",void 0);Te([(0,Ze.jsonProperty)([])],te.prototype,"filters",void 0);Te([(0,ar.property)()],te.prototype,"sortId",void 0);Te([(0,Ze.jsonProperty)([])],te.prototype,"sort",void 0);Te([(0,Ze.jsonProperty)({})],te.prototype,"otherQueryParams",void 0);Te([(0,Ze.redux)({store:"search"})],te.prototype,"request",void 0);Te([(0,Ze.redux)({store:"search"})],te.prototype,"paging",void 0);Te([(0,Ze.redux)({store:"search",selector:t=>t.spellcheck})],te.prototype,"spellcheckAutocorrect",void 0);Te([(0,Ze.redux)({store:O.name,selector:t=>t.apiIntegrationIdentifier!==void 0&&t.apiIntegrationAppVersion!==void 0})],te.prototype,"_appIntegrationInfoReady",void 0);Te([(0,ar.property)({attribute:!1})],te.prototype,"searchServiceProvider",void 0)});var bg,xg=l(()=>{"use strict";Sc();bg={"ft-search-context":te}});var Sg,Cg=l(()=>{"use strict";Sg=u(m());xg();(0,Sg.customElements)(bg)});var Eg={};si(Eg,{FtSearchContext:()=>te,FtSearchContextCssVariables:()=>t0,FtSearchStateManager:()=>xo,convertMetadataFilterToAnalyticsFacet:()=>gn,getAnalyticsLastUpdate:()=>mn,keywordMatchSelector:()=>fg,searchInDocumentTitlesOnlySelector:()=>hg,styles:()=>fc});var Ag=l(()=>{"use strict";mc();lg();Sc();gc();xc();Cg()});var Og=l(()=>{"use strict"});var wr,Cc=l(()=>{"use strict";kt();wr=sr.build("designedSearchInput")});var Rr=Hi((z_,wg)=>{wg.exports=ftGlobals.litRepeat});var Dt,Ec=l(()=>{"use strict";(function(t){t.S="S",t.M="M",t.L="L",t.XL="XL",t.XXL="XXL"})(Dt||(Dt={}))});var Rg,Tg,Ac=l(()=>{"use strict";Rg=u(b()),Tg=Rg.css`
690
690
  .ft-size-watcher--pixel {
691
691
  width: 0;
692
692
  height: 0;
@@ -705,11 +705,11 @@
705
705
  .ft-size-watcher--local .ft-size-watcher--watcher {
706
706
  width: 100%;
707
707
  }
708
- `});var Pg,ki,Gs,vn,wc,gt,Rc=l(()=>{"use strict";Pg=u(b()),ki=u(B()),Gs=u(m());Ac();Oc();vn=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},wc=class extends CustomEvent{constructor(e,r){super("change",{detail:{size:e,category:r}})}},gt=class extends Gs.FtLitElement{constructor(){super(...arguments),this.debounceTimeout=100,this.local=!1,this.size=0,this.category=Dt.S,this.resizeObserver=new ResizeObserver(()=>this.updateSize()),this.debouncer=new Gs.Debouncer}render(){return Pg.html`
708
+ `});var _g,ki,Ws,vn,Oc,gt,wc=l(()=>{"use strict";_g=u(b()),ki=u(B()),Ws=u(m());Ec();Ac();vn=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},Oc=class extends CustomEvent{constructor(e,r){super("change",{detail:{size:e,category:r}})}},gt=class extends Ws.FtLitElement{constructor(){super(...arguments),this.debounceTimeout=100,this.local=!1,this.size=0,this.category=Dt.S,this.resizeObserver=new ResizeObserver(()=>this.updateSize()),this.debouncer=new Ws.Debouncer}render(){return _g.html`
709
709
  <div class="ft-size-watcher--pixel ${this.local?"ft-size-watcher--local":""}">
710
710
  <div class="ft-size-watcher--watcher"></div>
711
711
  </div>
712
- `}contentAvailableCallback(e){super.contentAvailableCallback(e),this.watcher&&this.resizeObserver.observe(this.watcher),this.updateSize()}updateSize(){this.debouncer.run(()=>{this.watcher&&this.size!==this.watcher.clientWidth&&(this.size=this.watcher.clientWidth,this.size<768?this.category=Dt.S:this.size<976?this.category=Dt.M:this.size<1024?this.category=Dt.L:this.size<1440?this.category=Dt.XL:this.category=Dt.XXL,this.dispatchEvent(new wc(this.size,this.category)))},this.debounceTimeout)}};gt.elementDefinitions={};gt.styles=Lg;vn([(0,ki.property)({type:Number})],gt.prototype,"debounceTimeout",void 0);vn([(0,ki.property)({type:Boolean})],gt.prototype,"local",void 0);vn([(0,ki.property)({type:Number,reflect:!0})],gt.prototype,"size",void 0);vn([(0,ki.property)({type:String,reflect:!0})],gt.prototype,"category",void 0);vn([(0,ki.query)(".ft-size-watcher--watcher")],gt.prototype,"watcher",void 0)});var $g,Ig=l(()=>{"use strict";Rc();$g={"ft-size-watcher":gt}});var Dg,Mg=l(()=>{"use strict";Dg=u(m());Ig();(0,Dg.customElements)($g)});var Ng=l(()=>{"use strict";Rc();Oc();Ac();Mg()});function Qs(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function Fg(t){return Qs(t).split("|").pop()}function Bg(t){return Qs(t).split("|").join(" > ")}function Ug(t,e){return{label:t.label,selected:!e&&t.selected,subOptions:t.childNodes.map(r=>Ug(r,t.selected)),value:t.value}}function Hg(t){return(0,Tc.flatDeep)(t.options,e=>{var r;return(r=e.subOptions)!==null&&r!==void 0?r:[]}).filter(e=>e.selected).map(e=>e.label)}function _c(t){return{id:t.key,label:t.label,multivalued:t.multiSelectionable,options:t.rootNodes.map(e=>Ug(e,!1))}}function Vg(t){return(0,Tc.flatDeep)(t.rootNodes,e=>e.selected?[]:e.childNodes).filter(e=>e.selected).map(e=>e.value)}var Tc,kc=l(()=>{"use strict";Tc=u(m())});var jg,Z,yn,zg,Lc=l(()=>{"use strict";jg=u(b()),Z=u(m());Ri();Ft();yn={buttonMoreColor:Z.FtCssVariableFactory.extend("--ft-filter-level-button-more-color","",Z.designSystemVariables.colorOnSurface),borderRadiusM:Z.FtCssVariableFactory.external(Z.designSystemVariables.borderRadiusM,"Design system"),colorOutline:Z.FtCssVariableFactory.external(Z.designSystemVariables.colorOutline,"Design system"),colorOnSurface:Z.FtCssVariableFactory.external(Z.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:Z.FtCssVariableFactory.external(Z.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:Z.FtCssVariableFactory.external(Z.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:Z.FtCssVariableFactory.external(Z.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:Z.FtCssVariableFactory.external(Z.designSystemVariables.colorOnPrimary,"Design system"),fontFamily:Z.FtCssVariableFactory.external(we.fontFamily,"Body2 typography"),fontSize:Z.FtCssVariableFactory.external(we.fontSize,"Body2 typography"),fontWeight:Z.FtCssVariableFactory.external(we.fontWeight,"Body2 typography"),letterSpacing:Z.FtCssVariableFactory.external(we.letterSpacing,"Body2 typography"),lineHeight:Z.FtCssVariableFactory.external(we.lineHeight,"Body2 typography"),textTransform:Z.FtCssVariableFactory.external(we.textTransform,"Body2 typography")},zg=jg.css`
712
+ `}contentAvailableCallback(e){super.contentAvailableCallback(e),this.watcher&&this.resizeObserver.observe(this.watcher),this.updateSize()}updateSize(){this.debouncer.run(()=>{this.watcher&&this.size!==this.watcher.clientWidth&&(this.size=this.watcher.clientWidth,this.size<768?this.category=Dt.S:this.size<976?this.category=Dt.M:this.size<1024?this.category=Dt.L:this.size<1440?this.category=Dt.XL:this.category=Dt.XXL,this.dispatchEvent(new Oc(this.size,this.category)))},this.debounceTimeout)}};gt.elementDefinitions={};gt.styles=Tg;vn([(0,ki.property)({type:Number})],gt.prototype,"debounceTimeout",void 0);vn([(0,ki.property)({type:Boolean})],gt.prototype,"local",void 0);vn([(0,ki.property)({type:Number,reflect:!0})],gt.prototype,"size",void 0);vn([(0,ki.property)({type:String,reflect:!0})],gt.prototype,"category",void 0);vn([(0,ki.query)(".ft-size-watcher--watcher")],gt.prototype,"watcher",void 0)});var kg,Lg=l(()=>{"use strict";wc();kg={"ft-size-watcher":gt}});var Pg,$g=l(()=>{"use strict";Pg=u(m());Lg();(0,Pg.customElements)(kg)});var Ig=l(()=>{"use strict";wc();Ac();Ec();$g()});function Gs(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function Dg(t){return Gs(t).split("|").pop()}function Mg(t){return Gs(t).split("|").join(" > ")}function Ng(t,e){return{label:t.label,selected:!e&&t.selected,subOptions:t.childNodes.map(r=>Ng(r,t.selected)),value:t.value}}function Fg(t){return(0,Rc.flatDeep)(t.options,e=>{var r;return(r=e.subOptions)!==null&&r!==void 0?r:[]}).filter(e=>e.selected).map(e=>e.label)}function Tc(t){return{id:t.key,label:t.label,multivalued:t.multiSelectionable,options:t.rootNodes.map(e=>Ng(e,!1))}}function Bg(t){return(0,Rc.flatDeep)(t.rootNodes,e=>e.selected?[]:e.childNodes).filter(e=>e.selected).map(e=>e.value)}var Rc,_c=l(()=>{"use strict";Rc=u(m())});var Ug,Z,yn,Hg,kc=l(()=>{"use strict";Ug=u(b()),Z=u(m());Ri();Ft();yn={buttonMoreColor:Z.FtCssVariableFactory.extend("--ft-filter-level-button-more-color","",Z.designSystemVariables.colorOnSurface),borderRadiusM:Z.FtCssVariableFactory.external(Z.designSystemVariables.borderRadiusM,"Design system"),colorOutline:Z.FtCssVariableFactory.external(Z.designSystemVariables.colorOutline,"Design system"),colorOnSurface:Z.FtCssVariableFactory.external(Z.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:Z.FtCssVariableFactory.external(Z.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:Z.FtCssVariableFactory.external(Z.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:Z.FtCssVariableFactory.external(Z.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:Z.FtCssVariableFactory.external(Z.designSystemVariables.colorOnPrimary,"Design system"),fontFamily:Z.FtCssVariableFactory.external(we.fontFamily,"Body2 typography"),fontSize:Z.FtCssVariableFactory.external(we.fontSize,"Body2 typography"),fontWeight:Z.FtCssVariableFactory.external(we.fontWeight,"Body2 typography"),letterSpacing:Z.FtCssVariableFactory.external(we.letterSpacing,"Body2 typography"),lineHeight:Z.FtCssVariableFactory.external(we.lineHeight,"Body2 typography"),textTransform:Z.FtCssVariableFactory.external(we.textTransform,"Body2 typography")},Hg=Ug.css`
713
713
  .ft-filter-level--container {
714
714
  display: flex;
715
715
  flex-direction: column;
@@ -780,7 +780,7 @@
780
780
  margin: 10px 0;
781
781
  color: ${yn.colorOnSurfaceMedium};
782
782
  }
783
- `});var $e,qg,vt,Kg,Pc=l(()=>{"use strict";$e=u(m()),qg=u(b());ge();Ge();vt={textColor:$e.FtCssVariableFactory.extend("--ft-checkbox-text-color","",$e.designSystemVariables.colorOnSurfaceHigh),fontSize:$e.FtCssVariableFactory.extend("--ft-checkbox-font-size","",C.fontSize),activeColor:$e.FtCssVariableFactory.extend("--ft-checkbox-active-color","",$e.designSystemVariables.colorPrimary),checkColor:$e.FtCssVariableFactory.extend("--ft-checkbox-check-color","",$e.designSystemVariables.colorOnPrimary),borderColor:$e.FtCssVariableFactory.extend("--ft-checkbox-border-color","",$e.designSystemVariables.colorOnSurfaceMedium),disabledColor:$e.FtCssVariableFactory.extend("--ft-checkbox-disabled-color","",$e.designSystemVariables.colorOnSurfaceDisabled),errorColor:$e.FtCssVariableFactory.extend("--ft-checkbox-error-color","",$e.designSystemVariables.colorError)},Kg=qg.css`
783
+ `});var $e,Vg,vt,jg,Lc=l(()=>{"use strict";$e=u(m()),Vg=u(b());ge();Ge();vt={textColor:$e.FtCssVariableFactory.extend("--ft-checkbox-text-color","",$e.designSystemVariables.colorOnSurfaceHigh),fontSize:$e.FtCssVariableFactory.extend("--ft-checkbox-font-size","",C.fontSize),activeColor:$e.FtCssVariableFactory.extend("--ft-checkbox-active-color","",$e.designSystemVariables.colorPrimary),checkColor:$e.FtCssVariableFactory.extend("--ft-checkbox-check-color","",$e.designSystemVariables.colorOnPrimary),borderColor:$e.FtCssVariableFactory.extend("--ft-checkbox-border-color","",$e.designSystemVariables.colorOnSurfaceMedium),disabledColor:$e.FtCssVariableFactory.extend("--ft-checkbox-disabled-color","",$e.designSystemVariables.colorOnSurfaceDisabled),errorColor:$e.FtCssVariableFactory.extend("--ft-checkbox-error-color","",$e.designSystemVariables.colorError)},jg=Vg.css`
784
784
  * {
785
785
  box-sizing: border-box;
786
786
  }
@@ -873,7 +873,7 @@
873
873
  }
874
874
  }
875
875
  }
876
- `});var Xs,Qt,Wg,Gg,Tr,$c,Ie,Ic=l(()=>{"use strict";Xs=u(b()),Qt=u(B()),Wg=u(m()),Gg=u(it());Ge();ge();Pc();Tr=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},$c=class extends CustomEvent{constructor(e){super("change",{detail:e})}},Ie=class extends Wg.FtLitElement{constructor(){super(...arguments),this.name="",this.value="",this.checked=!1,this.indeterminate=!1,this.disabled=!1,this.error=!1}get checkboxClasses(){return{"ft-checkbox":!0,"ft-checkbox--error":this.error,"ft-checkbox--checked":this.indeterminate?!1:this.checked,"ft-checkbox--indeterminate":this.indeterminate,"ft-checkbox--disabled":this.disabled}}renderBoxContainer(){return Xs.html`
876
+ `});var Qs,Qt,zg,qg,Tr,Pc,Ie,$c=l(()=>{"use strict";Qs=u(b()),Qt=u(B()),zg=u(m()),qg=u(it());Ge();ge();Lc();Tr=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},Pc=class extends CustomEvent{constructor(e){super("change",{detail:e})}},Ie=class extends zg.FtLitElement{constructor(){super(...arguments),this.name="",this.value="",this.checked=!1,this.indeterminate=!1,this.disabled=!1,this.error=!1}get checkboxClasses(){return{"ft-checkbox":!0,"ft-checkbox--error":this.error,"ft-checkbox--checked":this.indeterminate?!1:this.checked,"ft-checkbox--indeterminate":this.indeterminate,"ft-checkbox--disabled":this.disabled}}renderBoxContainer(){return Qs.html`
877
877
  <div class="ft-checkbox--box-container" part="checkbox-box-container">
878
878
  <ft-ripple part="checkbox-ripple"
879
879
  ?disabled=${this.disabled}
@@ -895,19 +895,19 @@
895
895
  @change=${this.onChange}
896
896
  >
897
897
  </div>
898
- `}render(){return Xs.html`
899
- <label class="${(0,Gg.classMap)(this.checkboxClasses)}" for="checkbox-input" part="checkbox-label">
898
+ `}render(){return Qs.html`
899
+ <label class="${(0,qg.classMap)(this.checkboxClasses)}" for="checkbox-input" part="checkbox-label">
900
900
  ${this.renderBoxContainer()}
901
901
  <ft-typography variant="${Q.body2}" part="checkbox-body">
902
902
  <slot @slotchange=${this.onSlotchange}></slot>
903
903
  </ft-typography>
904
904
  </label>
905
- `}renderBoxIcon(){return Xs.html`
905
+ `}renderBoxIcon(){return Qs.html`
906
906
  <svg class="ft-checkbox--checkmark" viewBox="0 0 24 24" part="checkbox-check" aria-hidden="true">
907
907
  <path class="ft-checkbox--checkmark-path" fill="none"
908
908
  d="${this.indeterminate&&!this.checked?"M2,12 22,12":"M1.73,12.91 8.1,19.28 22.79,4.59"}"></path>
909
909
  </svg>
910
- `}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 $c(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)}};Ie.elementDefinitions={"ft-ripple":L,"ft-typography":j};Ie.styles=Kg;Tr([(0,Qt.property)()],Ie.prototype,"name",void 0);Tr([(0,Qt.property)()],Ie.prototype,"value",void 0);Tr([(0,Qt.property)({type:Boolean,reflect:!0})],Ie.prototype,"checked",void 0);Tr([(0,Qt.property)({type:Boolean})],Ie.prototype,"indeterminate",void 0);Tr([(0,Qt.property)({type:Boolean})],Ie.prototype,"disabled",void 0);Tr([(0,Qt.property)({type:Boolean})],Ie.prototype,"error",void 0);Tr([(0,Qt.query)(".ft-checkbox")],Ie.prototype,"container",void 0);Tr([(0,Qt.query)("ft-ripple")],Ie.prototype,"ripple",void 0);Tr([(0,Qt.query)("input")],Ie.prototype,"input",void 0)});var Qg=l(()=>{"use strict"});var Xg,Yg=l(()=>{"use strict";Ic();Xg={"ft-checkbox":Ie}});var Zg,Jg=l(()=>{"use strict";Zg=u(m());Yg();(0,Zg.customElements)(Xg)});var ev=l(()=>{"use strict";Ic();Pc();Qg();Jg()});var tv,ct,Yr,rv,Dc=l(()=>{"use strict";tv=u(b()),ct=u(m());ge();Yr={textColor:ct.FtCssVariableFactory.extend("--ft-radio-text-color","",ct.designSystemVariables.colorOnSurfaceHigh),fontSize:ct.FtCssVariableFactory.extend("--ft-radio-font-size","",C.fontSize),colorPrimary:ct.FtCssVariableFactory.external(ct.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:ct.FtCssVariableFactory.external(ct.designSystemVariables.colorOnPrimary,"Design system"),borderColor:ct.FtCssVariableFactory.extend("--ft-radio-border-color","",ct.designSystemVariables.colorOnSurfaceMedium),colorOnSurfaceDisabled:ct.FtCssVariableFactory.external(ct.designSystemVariables.colorOnSurfaceDisabled,"Design system")},rv=tv.css`
910
+ `}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 Pc(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)}};Ie.elementDefinitions={"ft-ripple":L,"ft-typography":j};Ie.styles=jg;Tr([(0,Qt.property)()],Ie.prototype,"name",void 0);Tr([(0,Qt.property)()],Ie.prototype,"value",void 0);Tr([(0,Qt.property)({type:Boolean,reflect:!0})],Ie.prototype,"checked",void 0);Tr([(0,Qt.property)({type:Boolean})],Ie.prototype,"indeterminate",void 0);Tr([(0,Qt.property)({type:Boolean})],Ie.prototype,"disabled",void 0);Tr([(0,Qt.property)({type:Boolean})],Ie.prototype,"error",void 0);Tr([(0,Qt.query)(".ft-checkbox")],Ie.prototype,"container",void 0);Tr([(0,Qt.query)("ft-ripple")],Ie.prototype,"ripple",void 0);Tr([(0,Qt.query)("input")],Ie.prototype,"input",void 0)});var Kg=l(()=>{"use strict"});var Wg,Gg=l(()=>{"use strict";$c();Wg={"ft-checkbox":Ie}});var Qg,Xg=l(()=>{"use strict";Qg=u(m());Gg();(0,Qg.customElements)(Wg)});var Yg=l(()=>{"use strict";$c();Lc();Kg();Xg()});var Zg,ct,Yr,Jg,Ic=l(()=>{"use strict";Zg=u(b()),ct=u(m());ge();Yr={textColor:ct.FtCssVariableFactory.extend("--ft-radio-text-color","",ct.designSystemVariables.colorOnSurfaceHigh),fontSize:ct.FtCssVariableFactory.extend("--ft-radio-font-size","",C.fontSize),colorPrimary:ct.FtCssVariableFactory.external(ct.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:ct.FtCssVariableFactory.external(ct.designSystemVariables.colorOnPrimary,"Design system"),borderColor:ct.FtCssVariableFactory.extend("--ft-radio-border-color","",ct.designSystemVariables.colorOnSurfaceMedium),colorOnSurfaceDisabled:ct.FtCssVariableFactory.external(ct.designSystemVariables.colorOnSurfaceDisabled,"Design system")},Jg=Zg.css`
911
911
  * {
912
912
  box-sizing: border-box;
913
913
  }
@@ -996,8 +996,8 @@
996
996
  .ft-radio ft-typography {
997
997
  padding-right: 2px;
998
998
  }
999
- `});var iv,lr,ov,nv,Zr,Ys,ke,Mc=l(()=>{"use strict";iv=u(b()),lr=u(B()),ov=u(m()),nv=u(it());Ge();ge();Pn();Dc();Zr=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},Ys=class extends CustomEvent{constructor(e,r){super("change",{detail:{value:e,checked:r},bubbles:!0,composed:!0})}},ke=class extends ov.FtLitElement{constructor(){super(...arguments),this.name="",this.value="",this.checked=!1,this.ariaChecked="false",this.disabled=!1}get radioClasses(){return{"ft-radio":!0,"ft-radio--checked":this.checked,"ft-radio--disabled":this.disabled}}render(){return iv.html`
1000
- <div class="${(0,nv.classMap)(this.radioClasses)}"
999
+ `});var ev,lr,tv,rv,Zr,Xs,ke,Dc=l(()=>{"use strict";ev=u(b()),lr=u(B()),tv=u(m()),rv=u(it());Ge();ge();Pn();Ic();Zr=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},Xs=class extends CustomEvent{constructor(e,r){super("change",{detail:{value:e,checked:r},bubbles:!0,composed:!0})}},ke=class extends tv.FtLitElement{constructor(){super(...arguments),this.name="",this.value="",this.checked=!1,this.ariaChecked="false",this.disabled=!1}get radioClasses(){return{"ft-radio":!0,"ft-radio--checked":this.checked,"ft-radio--disabled":this.disabled}}render(){return ev.html`
1000
+ <div class="${(0,rv.classMap)(this.radioClasses)}"
1001
1001
  @click=${this.onClick}>
1002
1002
  <div class="ft-radio--box-container">
1003
1003
  <ft-ripple
@@ -1022,7 +1022,7 @@
1022
1022
  </ft-typography>
1023
1023
  </label>
1024
1024
  </div>
1025
- `}willUpdate(e){super.willUpdate(e),e.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.dispatchEvent(new Ys(this.value,this.checked))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),(r=this.ripple)===null||r===void 0||r.setupFor(this.container)}select(){this.checked=!0,this.dispatchEvent(new Ys(this.value,this.checked))}setInputTabIndex(e){this.input&&(this.input.tabIndex=e)}focus(){var e;(e=this.input)===null||e===void 0||e.focus(),setTimeout(()=>{var r;return(r=this.ripple)===null||r===void 0?void 0:r.forceFocusUpdate()},0)}onClick(e){var r;e.target!==this.input&&(e.stopPropagation(),e.preventDefault(),(r=this.input)===null||r===void 0||r.click())}};ke.elementDefinitions={"ft-ripple":L,"ft-typography":j};ke.styles=rv;Zr([(0,lr.property)()],ke.prototype,"name",void 0);Zr([(0,lr.property)()],ke.prototype,"value",void 0);Zr([(0,lr.property)({type:Boolean,reflect:!0})],ke.prototype,"checked",void 0);Zr([(0,lr.property)({attribute:"aria-checked",reflect:!0})],ke.prototype,"ariaChecked",void 0);Zr([(0,lr.property)({type:Boolean})],ke.prototype,"disabled",void 0);Zr([(0,lr.query)(".ft-radio")],ke.prototype,"container",void 0);Zr([(0,lr.query)("ft-ripple")],ke.prototype,"ripple",void 0);Zr([(0,lr.query)("input")],ke.prototype,"input",void 0)});var sv=l(()=>{"use strict"});var av,lv,Nc=l(()=>{"use strict";av=u(b()),lv=av.css`
1025
+ `}willUpdate(e){super.willUpdate(e),e.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.dispatchEvent(new Xs(this.value,this.checked))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),(r=this.ripple)===null||r===void 0||r.setupFor(this.container)}select(){this.checked=!0,this.dispatchEvent(new Xs(this.value,this.checked))}setInputTabIndex(e){this.input&&(this.input.tabIndex=e)}focus(){var e;(e=this.input)===null||e===void 0||e.focus(),setTimeout(()=>{var r;return(r=this.ripple)===null||r===void 0?void 0:r.forceFocusUpdate()},0)}onClick(e){var r;e.target!==this.input&&(e.stopPropagation(),e.preventDefault(),(r=this.input)===null||r===void 0||r.click())}};ke.elementDefinitions={"ft-ripple":L,"ft-typography":j};ke.styles=Jg;Zr([(0,lr.property)()],ke.prototype,"name",void 0);Zr([(0,lr.property)()],ke.prototype,"value",void 0);Zr([(0,lr.property)({type:Boolean,reflect:!0})],ke.prototype,"checked",void 0);Zr([(0,lr.property)({attribute:"aria-checked",reflect:!0})],ke.prototype,"ariaChecked",void 0);Zr([(0,lr.property)({type:Boolean})],ke.prototype,"disabled",void 0);Zr([(0,lr.query)(".ft-radio")],ke.prototype,"container",void 0);Zr([(0,lr.query)("ft-ripple")],ke.prototype,"ripple",void 0);Zr([(0,lr.query)("input")],ke.prototype,"input",void 0)});var iv=l(()=>{"use strict"});var ov,nv,Mc=l(()=>{"use strict";ov=u(b()),nv=ov.css`
1026
1026
  :host {
1027
1027
  display: block;
1028
1028
  }
@@ -1030,12 +1030,12 @@
1030
1030
  :host(:focus-visible) {
1031
1031
  outline: none;
1032
1032
  }
1033
- `});var cv,Jr,uv,bn,yt,Fc=l(()=>{"use strict";cv=u(m()),Jr=u(B()),uv=u(b());Nc();bn=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},yt=class extends cv.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(i=>i.matches("ft-radio,ftds-radio")?[i]:[...i.querySelectorAll("ft-radio,ftds-radio")]))!==null&&r!==void 0?r:[]}render(){return uv.html`
1033
+ `});var sv,Jr,av,bn,yt,Nc=l(()=>{"use strict";sv=u(m()),Jr=u(B()),av=u(b());Mc();bn=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},yt=class extends sv.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(i=>i.matches("ft-radio,ftds-radio")?[i]:[...i.querySelectorAll("ft-radio,ftds-radio")]))!==null&&r!==void 0?r:[]}render(){return av.html`
1034
1034
  <slot @slotchange=${this.onSlotChange}
1035
1035
  @change=${this.onChange}
1036
1036
  @keydown=${this.onKeyDown}
1037
1037
  ></slot>
1038
- `}connectedCallback(){super.connectedCallback(),this.addEventListener("focus",this.onFocus)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this.onFocus)}onSlotChange(){this.radioButtons.forEach(e=>e.name=this.name)}contentAvailableCallback(e){super.contentAvailableCallback(e),this.radioButtons.forEach(r=>r.setInputTabIndex(-1)),this.resolveCurrentSelectedIndex()}onChange(e){e.stopPropagation(),this.radioButtons.forEach(r=>r.checked=e.detail.value===r.value),this.dispatchEvent(new CustomEvent("change",{detail:e.detail.value})),this.resolveCurrentSelectedIndex()}onKeyDown(e){let r=!1;switch(e.key){case"ArrowUp":case"ArrowLeft":{r=!0;let i=this.currentSelectedIndex-1;this.radioButtons[i<0?this.radioButtons.length-1:i].select(),this.radioButtons[i<0?this.radioButtons.length-1:i].focus();break}case"ArrowDown":case"ArrowRight":{r=!0;let i=this.currentSelectedIndex+1;this.radioButtons[i>this.radioButtons.length-1?0:i].select(),this.radioButtons[i>this.radioButtons.length-1?0:i].focus();break}case"Enter":this.radioButtons[this.currentSelectedIndex].select()}r&&(e.stopPropagation(),e.preventDefault())}resolveCurrentSelectedIndex(){let e=this.radioButtons.findIndex(r=>r.checked);e==-1?(this.currentSelectedIndex=0,this.radioButtons[0].select()):this.currentSelectedIndex=e,this.radioButtons[this.currentSelectedIndex].setInputTabIndex(0)}focusCurrentChecked(){this.radioButtons[this.currentSelectedIndex].focus()}};yt.elementDefinitions={};yt.styles=lv;bn([(0,Jr.property)()],yt.prototype,"name",void 0);bn([(0,Jr.property)({reflect:!0,attribute:"role"})],yt.prototype,"role",void 0);bn([(0,Jr.property)({reflect:!0,attribute:"aria-labelledby"})],yt.prototype,"ariaLabelledBy",void 0);bn([(0,Jr.queryAssignedElements)()],yt.prototype,"assignedElements",void 0);bn([(0,Jr.state)()],yt.prototype,"currentSelectedIndex",void 0)});var pv=l(()=>{"use strict"});var dv,hv=l(()=>{"use strict";Mc();Fc();dv={"ft-radio":ke,"ft-radio-group":yt}});var fv,mv=l(()=>{"use strict";fv=u(m());hv();(0,fv.customElements)(dv)});var Bc=l(()=>{"use strict";Mc();sv();Dc();Fc();pv();Nc();mv()});var bt,_e,gv,ut,De,Uc,he,vv=l(()=>{"use strict";bt=u(b()),_e=u(B()),gv=u(Rr()),ut=u(m());Wt();ge();Ge();Or();ev();Bc();Lc();kt();De=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},Uc={"more-filters-button-pressed":{label:"Revealing more filters",defaultEventName:"filters-click_see_more",defaultComponentId:"ft-filter-level"}},he=class extends(0,ut.withAnalytics)(at((0,ut.withAriaNotification)(ut.FtLitElement)),Uc){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 ut.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 bt.html`
1038
+ `}connectedCallback(){super.connectedCallback(),this.addEventListener("focus",this.onFocus)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this.onFocus)}onSlotChange(){this.radioButtons.forEach(e=>e.name=this.name)}contentAvailableCallback(e){super.contentAvailableCallback(e),this.radioButtons.forEach(r=>r.setInputTabIndex(-1)),this.resolveCurrentSelectedIndex()}onChange(e){e.stopPropagation(),this.radioButtons.forEach(r=>r.checked=e.detail.value===r.value),this.dispatchEvent(new CustomEvent("change",{detail:e.detail.value})),this.resolveCurrentSelectedIndex()}onKeyDown(e){let r=!1;switch(e.key){case"ArrowUp":case"ArrowLeft":{r=!0;let i=this.currentSelectedIndex-1;this.radioButtons[i<0?this.radioButtons.length-1:i].select(),this.radioButtons[i<0?this.radioButtons.length-1:i].focus();break}case"ArrowDown":case"ArrowRight":{r=!0;let i=this.currentSelectedIndex+1;this.radioButtons[i>this.radioButtons.length-1?0:i].select(),this.radioButtons[i>this.radioButtons.length-1?0:i].focus();break}case"Enter":this.radioButtons[this.currentSelectedIndex].select()}r&&(e.stopPropagation(),e.preventDefault())}resolveCurrentSelectedIndex(){let e=this.radioButtons.findIndex(r=>r.checked);e==-1?(this.currentSelectedIndex=0,this.radioButtons[0].select()):this.currentSelectedIndex=e,this.radioButtons[this.currentSelectedIndex].setInputTabIndex(0)}focusCurrentChecked(){this.radioButtons[this.currentSelectedIndex].focus()}};yt.elementDefinitions={};yt.styles=nv;bn([(0,Jr.property)()],yt.prototype,"name",void 0);bn([(0,Jr.property)({reflect:!0,attribute:"role"})],yt.prototype,"role",void 0);bn([(0,Jr.property)({reflect:!0,attribute:"aria-labelledby"})],yt.prototype,"ariaLabelledBy",void 0);bn([(0,Jr.queryAssignedElements)()],yt.prototype,"assignedElements",void 0);bn([(0,Jr.state)()],yt.prototype,"currentSelectedIndex",void 0)});var lv=l(()=>{"use strict"});var cv,uv=l(()=>{"use strict";Dc();Nc();cv={"ft-radio":ke,"ft-radio-group":yt}});var pv,dv=l(()=>{"use strict";pv=u(m());uv();(0,pv.customElements)(cv)});var Fc=l(()=>{"use strict";Dc();iv();Ic();Nc();lv();Mc();dv()});var bt,_e,hv,ut,De,Bc,he,fv=l(()=>{"use strict";bt=u(b()),_e=u(B()),hv=u(Rr()),ut=u(m());Wt();ge();Ge();Or();Yg();Fc();kc();kt();De=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},Bc={"more-filters-button-pressed":{label:"Revealing more filters",defaultEventName:"filters-click_see_more",defaultComponentId:"ft-filter-level"}},he=class extends(0,ut.withAnalytics)(at((0,ut.withAriaNotification)(ut.FtLitElement)),Bc){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 ut.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 bt.html`
1039
1039
  <div class="ft-filter-level--container ${this.disabled?"ft-filter--disabled":""}">
1040
1040
  ${this.parent==null?null:bt.html`
1041
1041
  <div tabindex="0"
@@ -1056,7 +1056,7 @@
1056
1056
  ${this.noValuesLabel}
1057
1057
  </ft-typography>
1058
1058
  `:bt.nothing}
1059
- ${(0,gv.repeat)(e,r=>r.value,r=>{var i;return bt.html`
1059
+ ${(0,hv.repeat)(e,r=>r.value,r=>{var i;return bt.html`
1060
1060
  <div class="ft-filter-level--option" part="options" tabindex="-1">
1061
1061
  ${this.multivalued?this.buildMultiValuedOption(r):this.buildMonoValuedOption(r)}
1062
1062
  ${this.preventNavigation||r.selected||((i=r.subOptions)!==null&&i!==void 0?i:[]).length===0?bt.nothing:bt.html`
@@ -1103,7 +1103,7 @@
1103
1103
  @change=${r=>this.optionsChanged(r,e)}>
1104
1104
  ${e.renderOption?e.renderOption:e.label}${this.displayCount?` (${e.count})`:""}
1105
1105
  </ft-radio>
1106
- `}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)})}};he.elementDefinitions={"ft-button":_,"ft-ripple":L,"ft-typography":j,"ft-checkbox":Ie,"ft-icon":oe,"ft-radio":ke};he.styles=zg;De([(0,_e.property)({type:String})],he.prototype,"filterId",void 0);De([(0,_e.property)({type:Object})],he.prototype,"parent",void 0);De([(0,_e.property)({type:Array,hasChanged:ut.hasChanged})],he.prototype,"options",void 0);De([(0,_e.property)({type:Boolean})],he.prototype,"multivalued",void 0);De([(0,_e.property)({type:Boolean})],he.prototype,"disabled",void 0);De([(0,_e.property)({type:Boolean})],he.prototype,"hideSelectedOptions",void 0);De([(0,_e.property)({type:Boolean})],he.prototype,"displayCount",void 0);De([(0,_e.property)({type:Boolean})],he.prototype,"preventNavigation",void 0);De([(0,_e.property)({type:String})],he.prototype,"filter",void 0);De([(0,_e.property)({type:String})],he.prototype,"moreValuesButtonLabel",void 0);De([(0,_e.property)({type:String})],he.prototype,"noValuesLabel",void 0);De([(0,_e.property)()],he.prototype,"filteredOptionsNumberAriaNotification",void 0);De([(0,ut.numberProperty)()],he.prototype,"displayedValuesLimit",void 0);De([(0,_e.query)(".ft-filter-level--container")],he.prototype,"container",void 0);De([(0,_e.state)()],he.prototype,"radios",void 0);De([(0,_e.state)()],he.prototype,"displayedPages",void 0);De([(0,_e.state)()],he.prototype,"filteredOptions",void 0)});var yv,Xt,Je,bv,Zs=l(()=>{"use strict";yv=u(b()),Xt=u(m());Ri();Je={buttonsColor:Xt.FtCssVariableFactory.extend("--ft-snap-scroll-buttons-color","",Xt.designSystemVariables.colorPrimary),buttonsZIndex:Xt.FtCssVariableFactory.create("--ft-snap-scroll-buttons-z-index","","NUMBER","1"),gap:Xt.FtCssVariableFactory.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:Xt.FtCssVariableFactory.external(Xt.designSystemVariables.colorSurface,"Design system")},bv=yv.css`
1106
+ `}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)})}};he.elementDefinitions={"ft-button":_,"ft-ripple":L,"ft-typography":j,"ft-checkbox":Ie,"ft-icon":oe,"ft-radio":ke};he.styles=Hg;De([(0,_e.property)({type:String})],he.prototype,"filterId",void 0);De([(0,_e.property)({type:Object})],he.prototype,"parent",void 0);De([(0,_e.property)({type:Array,hasChanged:ut.hasChanged})],he.prototype,"options",void 0);De([(0,_e.property)({type:Boolean})],he.prototype,"multivalued",void 0);De([(0,_e.property)({type:Boolean})],he.prototype,"disabled",void 0);De([(0,_e.property)({type:Boolean})],he.prototype,"hideSelectedOptions",void 0);De([(0,_e.property)({type:Boolean})],he.prototype,"displayCount",void 0);De([(0,_e.property)({type:Boolean})],he.prototype,"preventNavigation",void 0);De([(0,_e.property)({type:String})],he.prototype,"filter",void 0);De([(0,_e.property)({type:String})],he.prototype,"moreValuesButtonLabel",void 0);De([(0,_e.property)({type:String})],he.prototype,"noValuesLabel",void 0);De([(0,_e.property)()],he.prototype,"filteredOptionsNumberAriaNotification",void 0);De([(0,ut.numberProperty)()],he.prototype,"displayedValuesLimit",void 0);De([(0,_e.query)(".ft-filter-level--container")],he.prototype,"container",void 0);De([(0,_e.state)()],he.prototype,"radios",void 0);De([(0,_e.state)()],he.prototype,"displayedPages",void 0);De([(0,_e.state)()],he.prototype,"filteredOptions",void 0)});var mv,Xt,Je,gv,Ys=l(()=>{"use strict";mv=u(b()),Xt=u(m());Ri();Je={buttonsColor:Xt.FtCssVariableFactory.extend("--ft-snap-scroll-buttons-color","",Xt.designSystemVariables.colorPrimary),buttonsZIndex:Xt.FtCssVariableFactory.create("--ft-snap-scroll-buttons-z-index","","NUMBER","1"),gap:Xt.FtCssVariableFactory.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:Xt.FtCssVariableFactory.external(Xt.designSystemVariables.colorSurface,"Design system")},gv=mv.css`
1107
1107
  .ft-snap-scroll {
1108
1108
  box-sizing: border-box;
1109
1109
  position: relative;
@@ -1228,7 +1228,7 @@
1228
1228
  .ft-snap-scroll--vertical .ft-snap-scroll--next:hover {
1229
1229
  background-color: ${Je.colorSurface};
1230
1230
  }
1231
- `});var xv,xt,Li,Sv,cr,Hc,Ee,Vc=l(()=>{"use strict";xv=u(b()),xt=u(B()),Li=u(m());Wt();Sv=u(it());Zs();cr=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},Hc=class extends CustomEvent{constructor(e,r){super("current-element-change",{detail:{index:e,element:r}})}},Ee=class extends Li.FtLitElement{constructor(){super(...arguments),this.horizontal=!1,this.hideScrollbar=!1,this.controls=!1,this.limitSize=!1,this.elements=[],this.currentElement=0,this.withScroll=!1,this.startReached=!0,this.endReached=!0,this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight",this.updateScrollCallback=()=>this.onScroll(),this.resizeObserver=new ResizeObserver(()=>this.scheduleUpdateScroll()),this.scrollDebouncer=new Li.Debouncer(200),this.updateScrollDebouncer=new Li.Debouncer(100)}scrollToIndex(e){this.scrollToElement(this.elements[e])}scrollIndexIntoView(e){let r=this.elements[e];if(r){let i=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.nextSize,o=this.contentSlot[this.scrollAttribute]+this.prevSize;(r[this.offsetAttribute]<o||r[this.offsetAttribute]+r[this.sizeAttribute]>i)&&this.scrollToElement(r)}}previous(){this.scrollToElement(this.elements[Math.max(0,this.closestIndexFromStart()-1)])}next(){this.scrollToElement(this.elements[Math.min(this.closestIndexFromStart()+1,this.elements.length-1)])}render(){let e=(0,Sv.classMap)({"ft-snap-scroll":!0,"ft-snap-scroll--horizontal":this.horizontal,"ft-snap-scroll--vertical":!this.horizontal,"ft-snap-scroll--hide-scrollbar":this.hideScrollbar,"ft-snap-scroll--limit-size":this.limitSize,"ft-snap-scroll--safari-fix":Li.isSafari}),r=this.controls&&this.withScroll;return xv.html`
1231
+ `});var vv,xt,Li,yv,cr,Uc,Ee,Hc=l(()=>{"use strict";vv=u(b()),xt=u(B()),Li=u(m());Wt();yv=u(it());Ys();cr=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},Uc=class extends CustomEvent{constructor(e,r){super("current-element-change",{detail:{index:e,element:r}})}},Ee=class extends Li.FtLitElement{constructor(){super(...arguments),this.horizontal=!1,this.hideScrollbar=!1,this.controls=!1,this.limitSize=!1,this.elements=[],this.currentElement=0,this.withScroll=!1,this.startReached=!0,this.endReached=!0,this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight",this.updateScrollCallback=()=>this.onScroll(),this.resizeObserver=new ResizeObserver(()=>this.scheduleUpdateScroll()),this.scrollDebouncer=new Li.Debouncer(200),this.updateScrollDebouncer=new Li.Debouncer(100)}scrollToIndex(e){this.scrollToElement(this.elements[e])}scrollIndexIntoView(e){let r=this.elements[e];if(r){let i=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.nextSize,o=this.contentSlot[this.scrollAttribute]+this.prevSize;(r[this.offsetAttribute]<o||r[this.offsetAttribute]+r[this.sizeAttribute]>i)&&this.scrollToElement(r)}}previous(){this.scrollToElement(this.elements[Math.max(0,this.closestIndexFromStart()-1)])}next(){this.scrollToElement(this.elements[Math.min(this.closestIndexFromStart()+1,this.elements.length-1)])}render(){let e=(0,yv.classMap)({"ft-snap-scroll":!0,"ft-snap-scroll--horizontal":this.horizontal,"ft-snap-scroll--vertical":!this.horizontal,"ft-snap-scroll--hide-scrollbar":this.hideScrollbar,"ft-snap-scroll--limit-size":this.limitSize,"ft-snap-scroll--safari-fix":Li.isSafari}),r=this.controls&&this.withScroll;return vv.html`
1232
1232
  <div part="container" class="${e}">
1233
1233
  <ft-button
1234
1234
  class="ft-snap-scroll--previous"
@@ -1252,7 +1252,7 @@
1252
1252
  @click=${this.next}
1253
1253
  ></ft-button>
1254
1254
  </div>
1255
- `}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 Hc(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,i;e&&(this.horizontal?(r=this.contentSlot)===null||r===void 0||r.scrollTo({left:this.getOffset(e)-this.controlsSize,behavior:"smooth"}):(i=this.contentSlot)===null||i===void 0||i.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(i=>i))!==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)}};Ee.elementDefinitions={"ft-button":_};Ee.styles=bv;cr([(0,xt.property)({type:Boolean})],Ee.prototype,"horizontal",void 0);cr([(0,xt.property)({type:Boolean})],Ee.prototype,"hideScrollbar",void 0);cr([(0,xt.property)({type:Boolean})],Ee.prototype,"controls",void 0);cr([(0,xt.property)({type:Boolean})],Ee.prototype,"limitSize",void 0);cr([(0,xt.state)()],Ee.prototype,"elements",void 0);cr([(0,xt.state)()],Ee.prototype,"currentElement",void 0);cr([(0,xt.state)()],Ee.prototype,"withScroll",void 0);cr([(0,xt.state)()],Ee.prototype,"startReached",void 0);cr([(0,xt.state)()],Ee.prototype,"endReached",void 0);cr([(0,xt.query)(".ft-snap-scroll--content")],Ee.prototype,"contentSlot",void 0)});var Cv=l(()=>{"use strict"});var Ev,Av=l(()=>{"use strict";Vc();Ev={"ft-snap-scroll":Ee}});var Ov,wv=l(()=>{"use strict";Ov=u(m());Av();(0,Ov.customElements)(Ev)});var Js=l(()=>{"use strict";Vc();Zs();Cv();wv()});var Rv,se,pt,Tv,ea=l(()=>{"use strict";Rv=u(b()),se=u(m());Ft();Ri();pt={colorOutline:se.FtCssVariableFactory.external(se.designSystemVariables.colorOutline,"Design system"),colorOnSurface:se.FtCssVariableFactory.external(se.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:se.FtCssVariableFactory.external(se.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorPrimary:se.FtCssVariableFactory.external(se.designSystemVariables.colorPrimary,"Design system"),colorSurface:se.FtCssVariableFactory.external(se.designSystemVariables.colorSurface,"Design system"),transitionDuration:se.FtCssVariableFactory.external(se.designSystemVariables.transitionDuration,"Design system"),transitionTimingFunction:se.FtCssVariableFactory.external(se.designSystemVariables.transitionTimingFunction,"Design system"),labelColor:se.FtCssVariableFactory.extend("--ft-filter-label-color","",se.designSystemVariables.colorOnSurface),labelFontSize:se.FtCssVariableFactory.extend("--ft-filter-label-font-size","",C.fontSize,"16px")},Tv=[Mr,se.noTextInputDefaultClearButton,Rv.css`
1255
+ `}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 Uc(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,i;e&&(this.horizontal?(r=this.contentSlot)===null||r===void 0||r.scrollTo({left:this.getOffset(e)-this.controlsSize,behavior:"smooth"}):(i=this.contentSlot)===null||i===void 0||i.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(i=>i))!==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)}};Ee.elementDefinitions={"ft-button":_};Ee.styles=gv;cr([(0,xt.property)({type:Boolean})],Ee.prototype,"horizontal",void 0);cr([(0,xt.property)({type:Boolean})],Ee.prototype,"hideScrollbar",void 0);cr([(0,xt.property)({type:Boolean})],Ee.prototype,"controls",void 0);cr([(0,xt.property)({type:Boolean})],Ee.prototype,"limitSize",void 0);cr([(0,xt.state)()],Ee.prototype,"elements",void 0);cr([(0,xt.state)()],Ee.prototype,"currentElement",void 0);cr([(0,xt.state)()],Ee.prototype,"withScroll",void 0);cr([(0,xt.state)()],Ee.prototype,"startReached",void 0);cr([(0,xt.state)()],Ee.prototype,"endReached",void 0);cr([(0,xt.query)(".ft-snap-scroll--content")],Ee.prototype,"contentSlot",void 0)});var bv=l(()=>{"use strict"});var xv,Sv=l(()=>{"use strict";Hc();xv={"ft-snap-scroll":Ee}});var Cv,Ev=l(()=>{"use strict";Cv=u(m());Sv();(0,Cv.customElements)(xv)});var Zs=l(()=>{"use strict";Hc();Ys();bv();Ev()});var Av,se,pt,Ov,Js=l(()=>{"use strict";Av=u(b()),se=u(m());Ft();Ri();pt={colorOutline:se.FtCssVariableFactory.external(se.designSystemVariables.colorOutline,"Design system"),colorOnSurface:se.FtCssVariableFactory.external(se.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:se.FtCssVariableFactory.external(se.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorPrimary:se.FtCssVariableFactory.external(se.designSystemVariables.colorPrimary,"Design system"),colorSurface:se.FtCssVariableFactory.external(se.designSystemVariables.colorSurface,"Design system"),transitionDuration:se.FtCssVariableFactory.external(se.designSystemVariables.transitionDuration,"Design system"),transitionTimingFunction:se.FtCssVariableFactory.external(se.designSystemVariables.transitionTimingFunction,"Design system"),labelColor:se.FtCssVariableFactory.extend("--ft-filter-label-color","",se.designSystemVariables.colorOnSurface),labelFontSize:se.FtCssVariableFactory.extend("--ft-filter-label-font-size","",C.fontSize,"16px")},Ov=[Mr,se.noTextInputDefaultClearButton,Av.css`
1256
1256
  :host {
1257
1257
  display: flex;
1258
1258
  max-height: 100%;
@@ -1369,7 +1369,7 @@
1369
1369
  slot:not([name]) {
1370
1370
  display: none;
1371
1371
  }
1372
- `]});var Pi,re,ye,ae,jc,W,zc=l(()=>{"use strict";Pi=u(b()),re=u(B()),ye=u(m());ge();vv();Wt();Js();ea();ae=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},jc=class extends CustomEvent{constructor(e){super("change",{detail:e})}},W=class extends(0,ye.withAnalytics)(ye.FtLitElement,Uc){constructor(){super(...arguments),this.id="",this.label="",this.filterPlaceHolder="Filter {0}",this.clearButtonLabel="Clear",this.moreValuesButtonLabel="More",this.noValuesLabel="No values available",this.options=[],this.multivalued=!1,this.disabled=!1,this.raiseSelectedOptions=!1,this.displayCount=!1,this.displayedValuesLimit=0,this.hideClearButton=!1,this.lastLevelHasHiddenvalues=!1,this.withScroll=!1,this.filter="",this.displayedLevels=[],this.scrollResizeObserver=new ResizeObserver(()=>this.updateScroll()),this.levelsScrollDebouncer=new ye.Debouncer(300),this.changeDebouncer=new ye.Debouncer(10),this.lastDispatchedValues=[]}get flatOptions(){return(0,ye.flatDeep)(this.options,e=>{var r;return(r=e.subOptions)!==null&&r!==void 0?r:[]})}get childrenFilteredFlatOptions(){return(0,ye.flatDeep)(this.options,e=>{var r;return e.selected?[]:(r=e.subOptions)!==null&&r!==void 0?r:[]})}get selectedValues(){return this.childrenFilteredFlatOptions.filter(e=>e.selected).map(e=>e.value)}render(){let e=this.flatOptions.some(o=>o.selected),r=this.withScroll||this.filter||this.lastLevelHasHiddenvalues,i=this.filterPlaceHolder.replace("{0}",this.label);return Pi.html`
1372
+ `]});var Pi,re,ye,ae,Vc,W,jc=l(()=>{"use strict";Pi=u(b()),re=u(B()),ye=u(m());ge();fv();Wt();Zs();Js();ae=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},Vc=class extends CustomEvent{constructor(e){super("change",{detail:e})}},W=class extends(0,ye.withAnalytics)(ye.FtLitElement,Bc){constructor(){super(...arguments),this.id="",this.label="",this.filterPlaceHolder="Filter {0}",this.clearButtonLabel="Clear",this.moreValuesButtonLabel="More",this.noValuesLabel="No values available",this.options=[],this.multivalued=!1,this.disabled=!1,this.raiseSelectedOptions=!1,this.displayCount=!1,this.displayedValuesLimit=0,this.hideClearButton=!1,this.lastLevelHasHiddenvalues=!1,this.withScroll=!1,this.filter="",this.displayedLevels=[],this.scrollResizeObserver=new ResizeObserver(()=>this.updateScroll()),this.levelsScrollDebouncer=new ye.Debouncer(300),this.changeDebouncer=new ye.Debouncer(10),this.lastDispatchedValues=[]}get flatOptions(){return(0,ye.flatDeep)(this.options,e=>{var r;return(r=e.subOptions)!==null&&r!==void 0?r:[]})}get childrenFilteredFlatOptions(){return(0,ye.flatDeep)(this.options,e=>{var r;return e.selected?[]:(r=e.subOptions)!==null&&r!==void 0?r:[]})}get selectedValues(){return this.childrenFilteredFlatOptions.filter(e=>e.selected).map(e=>e.value)}render(){let e=this.flatOptions.some(o=>o.selected),r=this.withScroll||this.filter||this.lastLevelHasHiddenvalues,i=this.filterPlaceHolder.replace("{0}",this.label);return Pi.html`
1373
1373
  <div class="ft-filter--container ${this.disabled?"ft-filter--disabled":""}"
1374
1374
  part="container">
1375
1375
  ${!this.label&&!e?null:Pi.html`
@@ -1436,7 +1436,7 @@
1436
1436
  class="${e}"
1437
1437
  filterId="${this.id}"
1438
1438
  .filter=${this.filter}
1439
- .configuredAnalyticsActions="${this.configuredAnalyticsActions}"
1439
+ .configuredAnalyticsActions=${this.configuredAnalyticsActions}
1440
1440
  moreValuesButtonLabel="${this.moreValuesButtonLabel}"
1441
1441
  ?multivalued=${this.multivalued}
1442
1442
  ?disabled=${this.disabled||e!=="ft-filter--level-center"}
@@ -1453,17 +1453,17 @@
1453
1453
  noValuesLabel="${this.noValuesLabel}"
1454
1454
  .filteredOptionsNumberAriaNotification=${this.filteredOptionsNumberAriaNotification}
1455
1455
  ></ft-filter-level>
1456
- `}goBack(e){this.slideOut=e.detail.value,(0,ye.waitUntil)(()=>this.slideOut===void 0).then(()=>{var r;let i=(r=this.levelsContainer)===null||r===void 0?void 0:r.querySelector(".ft-filter--level-center");i?.focusOnExpandButton(e.detail.value)})}onDisplayLevel(e){this.displayedLevels.push(e.detail.value),this.slideIn=e.detail.value,(0,ye.waitUntil)(()=>this.slideIn===void 0).then(()=>{var r;let i=(r=this.levelsContainer)===null||r===void 0?void 0:r.querySelector(".ft-filter--level-center");i?.focusOnBackButton()})}focusOnFirstOption(){(0,ye.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 i=this.flatOptions.find(n=>n.value===e.detail.value);i.selected=!i.selected;let o=n=>{var s;n!==i&&(n.selected=!1),(s=n.subOptions)===null||s===void 0||s.forEach(o)};this.multivalued?(r=i.subOptions)===null||r===void 0||r.forEach(o):this.options.forEach(o),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,ye.deepEqual)(this.lastDispatchedValues,e)||(this.dispatchEvent(new jc(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)}};W.elementDefinitions={"ft-button":_,"ft-filter-level":he,"ft-snap-scroll":Ee,"ft-typography":j};W.styles=Tv;ae([(0,re.property)({type:String})],W.prototype,"id",void 0);ae([(0,re.property)({type:String})],W.prototype,"label",void 0);ae([(0,re.property)({type:String})],W.prototype,"filterPlaceHolder",void 0);ae([(0,re.property)({type:String})],W.prototype,"clearButtonLabel",void 0);ae([(0,re.property)({type:String})],W.prototype,"moreValuesButtonLabel",void 0);ae([(0,re.property)({type:String})],W.prototype,"noValuesLabel",void 0);ae([(0,ye.jsonProperty)([])],W.prototype,"options",void 0);ae([(0,re.property)({type:Boolean})],W.prototype,"multivalued",void 0);ae([(0,re.property)({type:Boolean})],W.prototype,"disabled",void 0);ae([(0,re.property)({type:Boolean})],W.prototype,"raiseSelectedOptions",void 0);ae([(0,re.property)({type:Boolean})],W.prototype,"displayCount",void 0);ae([(0,ye.numberProperty)()],W.prototype,"displayedValuesLimit",void 0);ae([(0,ye.jsonProperty)(void 0)],W.prototype,"filteredOptionsNumberAriaNotification",void 0);ae([(0,re.property)({type:Boolean})],W.prototype,"hideClearButton",void 0);ae([(0,re.query)(".ft-filter--slot")],W.prototype,"slotElement",void 0);ae([(0,re.query)(".ft-filter--container")],W.prototype,"container",void 0);ae([(0,re.query)(".ft-filter--values")],W.prototype,"valuesContainer",void 0);ae([(0,re.query)(".ft-filter--levels")],W.prototype,"levelsContainer",void 0);ae([(0,re.state)()],W.prototype,"lastLevelHasHiddenvalues",void 0);ae([(0,re.query)(".ft-filter--filter input")],W.prototype,"filterInput",void 0);ae([(0,re.queryAll)(".ft-filter--levels ft-filter-level")],W.prototype,"levels",void 0);ae([(0,re.state)()],W.prototype,"withScroll",void 0);ae([(0,re.state)()],W.prototype,"filter",void 0);ae([(0,re.state)()],W.prototype,"slideIn",void 0);ae([(0,re.state)()],W.prototype,"slideOut",void 0)});var _v=l(()=>{"use strict"});var ta,$i,kv,Co,St,qc=l(()=>{"use strict";ta=u(m()),$i=u(B()),kv=u(b()),Co=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},St=class extends ta.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return kv.html`
1456
+ `}goBack(e){this.slideOut=e.detail.value,(0,ye.waitUntil)(()=>this.slideOut===void 0).then(()=>{var r;let i=(r=this.levelsContainer)===null||r===void 0?void 0:r.querySelector(".ft-filter--level-center");i?.focusOnExpandButton(e.detail.value)})}onDisplayLevel(e){this.displayedLevels.push(e.detail.value),this.slideIn=e.detail.value,(0,ye.waitUntil)(()=>this.slideIn===void 0).then(()=>{var r;let i=(r=this.levelsContainer)===null||r===void 0?void 0:r.querySelector(".ft-filter--level-center");i?.focusOnBackButton()})}focusOnFirstOption(){(0,ye.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 i=this.flatOptions.find(n=>n.value===e.detail.value);i.selected=!i.selected;let o=n=>{var s;n!==i&&(n.selected=!1),(s=n.subOptions)===null||s===void 0||s.forEach(o)};this.multivalued?(r=i.subOptions)===null||r===void 0||r.forEach(o):this.options.forEach(o),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,ye.deepEqual)(this.lastDispatchedValues,e)||(this.dispatchEvent(new Vc(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)}};W.elementDefinitions={"ft-button":_,"ft-filter-level":he,"ft-snap-scroll":Ee,"ft-typography":j};W.styles=Ov;ae([(0,re.property)({type:String})],W.prototype,"id",void 0);ae([(0,re.property)({type:String})],W.prototype,"label",void 0);ae([(0,re.property)({type:String})],W.prototype,"filterPlaceHolder",void 0);ae([(0,re.property)({type:String})],W.prototype,"clearButtonLabel",void 0);ae([(0,re.property)({type:String})],W.prototype,"moreValuesButtonLabel",void 0);ae([(0,re.property)({type:String})],W.prototype,"noValuesLabel",void 0);ae([(0,ye.jsonProperty)([])],W.prototype,"options",void 0);ae([(0,re.property)({type:Boolean})],W.prototype,"multivalued",void 0);ae([(0,re.property)({type:Boolean})],W.prototype,"disabled",void 0);ae([(0,re.property)({type:Boolean})],W.prototype,"raiseSelectedOptions",void 0);ae([(0,re.property)({type:Boolean})],W.prototype,"displayCount",void 0);ae([(0,ye.numberProperty)()],W.prototype,"displayedValuesLimit",void 0);ae([(0,ye.jsonProperty)(void 0)],W.prototype,"filteredOptionsNumberAriaNotification",void 0);ae([(0,re.property)({type:Boolean})],W.prototype,"hideClearButton",void 0);ae([(0,re.query)(".ft-filter--slot")],W.prototype,"slotElement",void 0);ae([(0,re.query)(".ft-filter--container")],W.prototype,"container",void 0);ae([(0,re.query)(".ft-filter--values")],W.prototype,"valuesContainer",void 0);ae([(0,re.query)(".ft-filter--levels")],W.prototype,"levelsContainer",void 0);ae([(0,re.state)()],W.prototype,"lastLevelHasHiddenvalues",void 0);ae([(0,re.query)(".ft-filter--filter input")],W.prototype,"filterInput",void 0);ae([(0,re.queryAll)(".ft-filter--levels ft-filter-level")],W.prototype,"levels",void 0);ae([(0,re.state)()],W.prototype,"withScroll",void 0);ae([(0,re.state)()],W.prototype,"filter",void 0);ae([(0,re.state)()],W.prototype,"slideIn",void 0);ae([(0,re.state)()],W.prototype,"slideOut",void 0)});var wv=l(()=>{"use strict"});var ea,$i,Rv,Co,St,zc=l(()=>{"use strict";ea=u(m()),$i=u(B()),Rv=u(b()),Co=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},St=class extends ea.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return Rv.html`
1457
1457
  <slot class="ft-filter-option--slot" @slotchange=${this.updateSubOptionsFromSlot}></slot>
1458
- `}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}))}};St.elementDefinitions={};Co([(0,$i.property)({type:String})],St.prototype,"label",void 0);Co([(0,$i.property)({type:Object,converter:t=>t})],St.prototype,"value",void 0);Co([(0,$i.property)({type:Boolean,reflect:!0})],St.prototype,"selected",void 0);Co([(0,$i.property)({type:Object})],St.prototype,"subOptions",void 0);Co([(0,ta.jsonProperty)({})],St.prototype,"renderOption",void 0);Co([(0,$i.query)(".ft-filter-option--slot")],St.prototype,"slotElement",void 0)});var Lv=l(()=>{"use strict"});var Pv,$v=l(()=>{"use strict";zc();qc();Pv={"ft-filter":W,"ft-filter-option":St}});var Iv,Dv=l(()=>{"use strict";Iv=u(m());$v();(0,Iv.customElements)(Pv)});var Mv=l(()=>{"use strict";Lc();zc();ea();_v();qc();Lv();Dv()});var Nv,Fv,Kc=l(()=>{"use strict";Nv=u(b()),Fv=Nv.css`
1458
+ `}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}))}};St.elementDefinitions={};Co([(0,$i.property)({type:String})],St.prototype,"label",void 0);Co([(0,$i.property)({type:Object,converter:t=>t})],St.prototype,"value",void 0);Co([(0,$i.property)({type:Boolean,reflect:!0})],St.prototype,"selected",void 0);Co([(0,$i.property)({type:Object})],St.prototype,"subOptions",void 0);Co([(0,ea.jsonProperty)({})],St.prototype,"renderOption",void 0);Co([(0,$i.query)(".ft-filter-option--slot")],St.prototype,"slotElement",void 0)});var Tv=l(()=>{"use strict"});var _v,kv=l(()=>{"use strict";jc();zc();_v={"ft-filter":W,"ft-filter-option":St}});var Lv,Pv=l(()=>{"use strict";Lv=u(m());kv();(0,Lv.customElements)(_v)});var $v=l(()=>{"use strict";kc();jc();Js();wv();zc();Tv();Pv()});var Iv,Dv,qc=l(()=>{"use strict";Iv=u(b()),Dv=Iv.css`
1459
1459
  .ft-accordion {
1460
1460
  box-sizing: border-box;
1461
1461
  }
1462
- `});var Uv,ra,Hv,Bv,ur,Wc=l(()=>{"use strict";Uv=u(b()),ra=u(B()),Hv=u(m());Kc();Bv=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},ur=class extends Hv.FtLitElement{constructor(){super(...arguments),this.multi=!1}render(){return Uv.html`
1462
+ `});var Nv,ta,Fv,Mv,ur,Kc=l(()=>{"use strict";Nv=u(b()),ta=u(B()),Fv=u(m());qc();Mv=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},ur=class extends Fv.FtLitElement{constructor(){super(...arguments),this.multi=!1}render(){return Nv.html`
1463
1463
  <div class="ft-accordion">
1464
1464
  <slot @activated=${this.onChange}></slot>
1465
1465
  </div>
1466
- `}onChange(e){e.stopPropagation(),this.multi||this.content.assignedElements().forEach(r=>r.active=r===e.target)}};ur.elementDefinitions={};ur.styles=Fv;Bv([(0,ra.property)({type:Boolean})],ur.prototype,"multi",void 0);Bv([(0,ra.query)("slot")],ur.prototype,"content",void 0)});var Vv=l(()=>{"use strict"});var jv,Di,Ii,zv,Gc=l(()=>{"use strict";jv=u(b()),Di=u(m()),Ii={horizontalSpacing:Di.FtCssVariableFactory.create("--ft-accordion-toggle-horizontal-spacing","","SIZE","16px"),verticalSpacing:Di.FtCssVariableFactory.create("--ft-accordion-toggle-vertical-spacing","","SIZE","16px"),colorOutline:Di.FtCssVariableFactory.external(Di.designSystemVariables.colorOutline,"Design system"),backgroundColor:Di.FtCssVariableFactory.create("--ft-accordion-item-background-color","","COLOR","#FFFFFF")},zv=jv.css`
1466
+ `}onChange(e){e.stopPropagation(),this.multi||this.content.assignedElements().forEach(r=>r.active=r===e.target)}};ur.elementDefinitions={};ur.styles=Dv;Mv([(0,ta.property)({type:Boolean})],ur.prototype,"multi",void 0);Mv([(0,ta.query)("slot")],ur.prototype,"content",void 0)});var Bv=l(()=>{"use strict"});var Uv,Di,Ii,Hv,Wc=l(()=>{"use strict";Uv=u(b()),Di=u(m()),Ii={horizontalSpacing:Di.FtCssVariableFactory.create("--ft-accordion-toggle-horizontal-spacing","","SIZE","16px"),verticalSpacing:Di.FtCssVariableFactory.create("--ft-accordion-toggle-vertical-spacing","","SIZE","16px"),colorOutline:Di.FtCssVariableFactory.external(Di.designSystemVariables.colorOutline,"Design system"),backgroundColor:Di.FtCssVariableFactory.create("--ft-accordion-item-background-color","","COLOR","#FFFFFF")},Hv=Uv.css`
1467
1467
  .ft-accordion-item {
1468
1468
  display: flex;
1469
1469
  flex-direction: column;
@@ -1509,7 +1509,7 @@
1509
1509
  .ft-accordion-item--separator {
1510
1510
  border-bottom: 1px solid ${Ii.colorOutline};
1511
1511
  }
1512
- `});var xn,Sn,qv,ia,Mt,Qc=l(()=>{"use strict";xn=u(b()),Sn=u(B()),qv=u(m());Ge();ge();Or();Gc();ia=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},Mt=class extends qv.FtLitElement{constructor(){super(...arguments),this.icon="",this.label="",this.active=!1}render(){return xn.html`
1512
+ `});var xn,Sn,Vv,ra,Mt,Gc=l(()=>{"use strict";xn=u(b()),Sn=u(B()),Vv=u(m());Ge();ge();Or();Wc();ra=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},Mt=class extends Vv.FtLitElement{constructor(){super(...arguments),this.icon="",this.label="",this.active=!1}render(){return xn.html`
1513
1513
  <div class="ft-accordion-item ${this.active?"ft-accordion-item--active":""}">
1514
1514
  <div class="ft-accordion-item--toggle"
1515
1515
  part="toggle"
@@ -1539,7 +1539,7 @@
1539
1539
  </div>
1540
1540
  <div class="ft-accordion-item--separator" part="separator"></div>
1541
1541
  </div>
1542
- `}update(e){super.update(e),e.has("active")&&this.active&&this.dispatchEvent(new Event("activated",{composed:!0,bubbles:!0}))}onToggleKeyDown(e){(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),this.active=!this.active)}};Mt.elementDefinitions={"ft-ripple":L,"ft-typography":j,"ft-icon":oe};Mt.styles=zv;ia([(0,Sn.property)()],Mt.prototype,"icon",void 0);ia([(0,Sn.property)()],Mt.prototype,"iconVariant",void 0);ia([(0,Sn.property)()],Mt.prototype,"label",void 0);ia([(0,Sn.property)({type:Boolean,reflect:!0})],Mt.prototype,"active",void 0)});var Kv=l(()=>{"use strict"});var Wv,Gv=l(()=>{"use strict";Wc();Qc();Wv={"ft-accordion":ur,"ft-accordion-item":Mt}});var Qv,Xv=l(()=>{"use strict";Qv=u(m());Gv();(0,Qv.customElements)(Wv)});var Yv=l(()=>{"use strict";Wc();Kc();Vv();Qc();Gc();Kv();Xv()});var Cn,U,Zv,Me,Jv,Xc,ey,ty,Yc=l(()=>{"use strict";Cn=u(b()),U=u(m());gr();Ft();mo();Wt();Zv=U.FtCssVariableFactory.extend("--ft-chip-color","",U.designSystemVariables.colorOnSurface),Me={backgroundColor:U.FtCssVariableFactory.extend("--ft-chip-background-color","",U.designSystemVariables.colorSurface),color:Zv,fontSize:U.FtCssVariableFactory.extend("--ft-chip-font-size","",we.fontSize),fontWeight:U.FtCssVariableFactory.extend("--ft-chip-font-weight","",we.fontWeight),iconSize:U.FtCssVariableFactory.create("--ft-chip-icon-size","","SIZE","18px"),borderRadius:U.FtCssVariableFactory.create("--ft-chip-border-radius","","SIZE",""),rippleColor:U.FtCssVariableFactory.extend("--ft-chip-ripple-color","",Zv),horizontalPadding:U.FtCssVariableFactory.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:U.FtCssVariableFactory.create("--ft-chip-vertical-padding","","SIZE","6px"),borderColor:U.FtCssVariableFactory.extend("--ft-chip-border-color","",U.designSystemVariables.colorOutline),opacityDisabled:U.FtCssVariableFactory.external(U.designSystemVariables.colorOpacityDisabled,"Design system")},Jv=U.FtCssVariableFactory.extend("--ft-chip-highlighted-color","",U.FtCssVariableFactory.extend("--ft-chip-color","",U.designSystemVariables.colorOnPrimary)),Xc={backgroundColor:U.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color","",U.FtCssVariableFactory.extend("--ft-chip-background-color","",U.designSystemVariables.colorPrimary)),color:Jv,rippleColor:U.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color","",Jv)},ey={horizontalPadding:U.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:U.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},ty=[U.noTextSelect,Cn.css`
1542
+ `}update(e){super.update(e),e.has("active")&&this.active&&this.dispatchEvent(new Event("activated",{composed:!0,bubbles:!0}))}onToggleKeyDown(e){(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),this.active=!this.active)}};Mt.elementDefinitions={"ft-ripple":L,"ft-typography":j,"ft-icon":oe};Mt.styles=Hv;ra([(0,Sn.property)()],Mt.prototype,"icon",void 0);ra([(0,Sn.property)()],Mt.prototype,"iconVariant",void 0);ra([(0,Sn.property)()],Mt.prototype,"label",void 0);ra([(0,Sn.property)({type:Boolean,reflect:!0})],Mt.prototype,"active",void 0)});var jv=l(()=>{"use strict"});var zv,qv=l(()=>{"use strict";Kc();Gc();zv={"ft-accordion":ur,"ft-accordion-item":Mt}});var Kv,Wv=l(()=>{"use strict";Kv=u(m());qv();(0,Kv.customElements)(zv)});var Gv=l(()=>{"use strict";Kc();qc();Bv();Gc();Wc();jv();Wv()});var Cn,U,Qv,Me,Xv,Qc,Yv,Zv,Xc=l(()=>{"use strict";Cn=u(b()),U=u(m());gr();Ft();mo();Wt();Qv=U.FtCssVariableFactory.extend("--ft-chip-color","",U.designSystemVariables.colorOnSurface),Me={backgroundColor:U.FtCssVariableFactory.extend("--ft-chip-background-color","",U.designSystemVariables.colorSurface),color:Qv,fontSize:U.FtCssVariableFactory.extend("--ft-chip-font-size","",we.fontSize),fontWeight:U.FtCssVariableFactory.extend("--ft-chip-font-weight","",we.fontWeight),iconSize:U.FtCssVariableFactory.create("--ft-chip-icon-size","","SIZE","18px"),borderRadius:U.FtCssVariableFactory.create("--ft-chip-border-radius","","SIZE",""),rippleColor:U.FtCssVariableFactory.extend("--ft-chip-ripple-color","",Qv),horizontalPadding:U.FtCssVariableFactory.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:U.FtCssVariableFactory.create("--ft-chip-vertical-padding","","SIZE","6px"),borderColor:U.FtCssVariableFactory.extend("--ft-chip-border-color","",U.designSystemVariables.colorOutline),opacityDisabled:U.FtCssVariableFactory.external(U.designSystemVariables.colorOpacityDisabled,"Design system")},Xv=U.FtCssVariableFactory.extend("--ft-chip-highlighted-color","",U.FtCssVariableFactory.extend("--ft-chip-color","",U.designSystemVariables.colorOnPrimary)),Qc={backgroundColor:U.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color","",U.FtCssVariableFactory.extend("--ft-chip-background-color","",U.designSystemVariables.colorPrimary)),color:Xv,rippleColor:U.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color","",Xv)},Yv={horizontalPadding:U.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:U.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},Zv=[U.noTextSelect,Cn.css`
1543
1543
  :host {
1544
1544
  display: inline-block;
1545
1545
  max-width: 100%;
@@ -1579,8 +1579,8 @@
1579
1579
 
1580
1580
  .ft-chip--dense {
1581
1581
  --chip-internal-icon-padding: 3px;
1582
- --chip-internal-vertical-padding: ${ey.verticalPadding};
1583
- --chip-internal-horizontal-padding: ${ey.horizontalPadding};
1582
+ --chip-internal-vertical-padding: ${Yv.verticalPadding};
1583
+ --chip-internal-horizontal-padding: ${Yv.horizontalPadding};
1584
1584
  --chip-internal-line-height: max(16px, calc(var(--chip-internal-font-size) + 2px));
1585
1585
  }
1586
1586
 
@@ -1598,9 +1598,9 @@
1598
1598
  .ft-chip--highlighted {
1599
1599
  border: none;
1600
1600
  padding: var(--chip-internal-vertical-padding) var(--chip-internal-horizontal-padding);
1601
- background-color: ${Xc.backgroundColor};
1602
- ${(0,U.setVariable)(q.color,Xc.rippleColor)};
1603
- color: ${Xc.color};
1601
+ background-color: ${Qc.backgroundColor};
1602
+ ${(0,U.setVariable)(q.color,Qc.rippleColor)};
1603
+ color: ${Qc.color};
1604
1604
  }
1605
1605
 
1606
1606
  .ft-chip--clickable {
@@ -1679,8 +1679,8 @@
1679
1679
  .ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-button {
1680
1680
  order: -1;
1681
1681
  }
1682
- `]});var oa,Ne,ry,Eo,et,na,fe,Zc=l(()=>{"use strict";oa=u(b()),Ne=u(B()),ry=u(it()),Eo=u(m());Ge();ge();Or();Yc();Wt();et=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},na=class extends CustomEvent{constructor(){super("icon-click")}},fe=class extends Eo.FtLitElement{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.iconLabel="",this.hideIconTooltip=!1,this.icon=void 0,this.trailingIcon=!1}render(){var e;let r={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":Eo.isSafari};return oa.html`
1683
- <div class="${(0,ry.classMap)(r)}"
1682
+ `]});var ia,Ne,Jv,Eo,et,oa,fe,Yc=l(()=>{"use strict";ia=u(b()),Ne=u(B()),Jv=u(it()),Eo=u(m());Ge();ge();Or();Xc();Wt();et=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},oa=class extends CustomEvent{constructor(){super("icon-click")}},fe=class extends Eo.FtLitElement{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.iconLabel="",this.hideIconTooltip=!1,this.icon=void 0,this.trailingIcon=!1}render(){var e;let r={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":Eo.isSafari};return ia.html`
1683
+ <div class="${(0,Jv.classMap)(r)}"
1684
1684
  aria-label="${this.getLabel()}"
1685
1685
  tabindex="${this.interactionsOnChip?0:-1}"
1686
1686
  @keyup=${this.onKeyUp}
@@ -1691,7 +1691,7 @@
1691
1691
  </ft-typography>
1692
1692
  ${this.internalIcon?this.renderIcon():null}
1693
1693
  </div>
1694
- `}get interactionsOnChip(){return this.clickable&&!this.disabled}get interactionsOnIcon(){return(this.iconClickable||this.removable)&&!this.disabled}renderIcon(){return this.interactionsOnIcon?oa.html`
1694
+ `}get interactionsOnChip(){return this.clickable&&!this.disabled}get interactionsOnIcon(){return(this.iconClickable||this.removable)&&!this.disabled}renderIcon(){return this.interactionsOnIcon?ia.html`
1695
1695
  <ft-button round
1696
1696
  class="ft-chip--icon-button"
1697
1697
  @click=${this.onIconClick}
@@ -1702,11 +1702,11 @@
1702
1702
  part="icon-button"
1703
1703
  ?hideTooltip=${this.hideIconTooltip}
1704
1704
  ></ft-button>
1705
- `:oa.html`
1705
+ `:ia.html`
1706
1706
  <div class="ft-chip--icon-container ft-no-text-select" part="icon-container">
1707
1707
  <ft-icon .variant=${this.iconVariant} .value=${this.internalIcon} part="icon"></ft-icon>
1708
1708
  </div>
1709
- `}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new na))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new na))}getLabel(){return this.label||this.getTextContent()}getTextContent(){return(0,Eo.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};fe.elementDefinitions={"ft-ripple":L,"ft-typography":j,"ft-icon":oe,"ft-button":_};fe.styles=ty;et([(0,Ne.property)({type:Boolean})],fe.prototype,"highlighted",void 0);et([(0,Ne.property)({type:Boolean})],fe.prototype,"removable",void 0);et([(0,Ne.property)({type:Boolean})],fe.prototype,"disabled",void 0);et([(0,Ne.property)({type:Boolean})],fe.prototype,"clickable",void 0);et([(0,Ne.property)({type:Boolean})],fe.prototype,"iconClickable",void 0);et([(0,Ne.property)({type:Boolean})],fe.prototype,"dense",void 0);et([(0,Ne.property)({type:Boolean})],fe.prototype,"multiLine",void 0);et([(0,Ne.property)()],fe.prototype,"label",void 0);et([(0,Ne.property)()],fe.prototype,"iconLabel",void 0);et([(0,Ne.property)({type:Boolean})],fe.prototype,"hideIconTooltip",void 0);et([(0,Ne.property)()],fe.prototype,"icon",void 0);et([(0,Ne.property)()],fe.prototype,"iconVariant",void 0);et([(0,Ne.property)({type:Boolean})],fe.prototype,"trailingIcon",void 0);et([(0,Ne.property)()],fe.prototype,"typographyVariant",void 0);et([(0,Ne.query)("ft-typography slot")],fe.prototype,"slottedContent",void 0)});var iy=l(()=>{"use strict"});var oy,ny=l(()=>{"use strict";Zc();oy={"ft-chip":fe}});var sy,ay=l(()=>{"use strict";sy=u(m());ny();(0,sy.customElements)(oy)});var Jc=l(()=>{"use strict";Zc();Yc();iy();ay()});function En(t,e,r){return t?e(t):r?.(t)}var ly=l(()=>{});var eu=l(()=>{ly()});var cy,le,H,uy,An=l(()=>{"use strict";cy=u(b()),le=u(m());Ft();H={fontSize:le.FtCssVariableFactory.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:le.FtCssVariableFactory.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:le.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:le.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:le.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:le.FtCssVariableFactory.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:le.FtCssVariableFactory.extend("--ft-input-label-border-color","",le.designSystemVariables.colorOutline),textColor:le.FtCssVariableFactory.extend("--ft-input-label-text-color","",le.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:le.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color","",le.designSystemVariables.colorOnSurfaceDisabled),backgroundColor:le.FtCssVariableFactory.extend("--ft-input-label-background-color","",le.designSystemVariables.colorSurface),borderRadius:le.FtCssVariableFactory.extend("--ft-input-label-border-radius","",le.designSystemVariables.borderRadiusS),colorError:le.FtCssVariableFactory.external(le.designSystemVariables.colorError,"Design system")},uy=cy.css`
1709
+ `}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new oa))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new oa))}getLabel(){return this.label||this.getTextContent()}getTextContent(){return(0,Eo.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};fe.elementDefinitions={"ft-ripple":L,"ft-typography":j,"ft-icon":oe,"ft-button":_};fe.styles=Zv;et([(0,Ne.property)({type:Boolean})],fe.prototype,"highlighted",void 0);et([(0,Ne.property)({type:Boolean})],fe.prototype,"removable",void 0);et([(0,Ne.property)({type:Boolean})],fe.prototype,"disabled",void 0);et([(0,Ne.property)({type:Boolean})],fe.prototype,"clickable",void 0);et([(0,Ne.property)({type:Boolean})],fe.prototype,"iconClickable",void 0);et([(0,Ne.property)({type:Boolean})],fe.prototype,"dense",void 0);et([(0,Ne.property)({type:Boolean})],fe.prototype,"multiLine",void 0);et([(0,Ne.property)()],fe.prototype,"label",void 0);et([(0,Ne.property)()],fe.prototype,"iconLabel",void 0);et([(0,Ne.property)({type:Boolean})],fe.prototype,"hideIconTooltip",void 0);et([(0,Ne.property)()],fe.prototype,"icon",void 0);et([(0,Ne.property)()],fe.prototype,"iconVariant",void 0);et([(0,Ne.property)({type:Boolean})],fe.prototype,"trailingIcon",void 0);et([(0,Ne.property)()],fe.prototype,"typographyVariant",void 0);et([(0,Ne.query)("ft-typography slot")],fe.prototype,"slottedContent",void 0)});var ey=l(()=>{"use strict"});var ty,ry=l(()=>{"use strict";Yc();ty={"ft-chip":fe}});var iy,oy=l(()=>{"use strict";iy=u(m());ry();(0,iy.customElements)(ty)});var Zc=l(()=>{"use strict";Yc();Xc();ey();oy()});function En(t,e,r){return t?e(t):r?.(t)}var ny=l(()=>{});var Jc=l(()=>{ny()});var sy,le,H,ay,An=l(()=>{"use strict";sy=u(b()),le=u(m());Ft();H={fontSize:le.FtCssVariableFactory.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:le.FtCssVariableFactory.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:le.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:le.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:le.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:le.FtCssVariableFactory.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:le.FtCssVariableFactory.extend("--ft-input-label-border-color","",le.designSystemVariables.colorOutline),textColor:le.FtCssVariableFactory.extend("--ft-input-label-text-color","",le.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:le.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color","",le.designSystemVariables.colorOnSurfaceDisabled),backgroundColor:le.FtCssVariableFactory.extend("--ft-input-label-background-color","",le.designSystemVariables.colorSurface),borderRadius:le.FtCssVariableFactory.extend("--ft-input-label-border-radius","",le.designSystemVariables.borderRadiusS),colorError:le.FtCssVariableFactory.external(le.designSystemVariables.colorError,"Design system")},ay=sy.css`
1710
1710
  .ft-input-label {
1711
1711
  position: absolute;
1712
1712
  inset: 0;
@@ -1828,16 +1828,16 @@
1828
1828
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
1829
1829
  border-top: none;
1830
1830
  }
1831
- `});var tu,ru,dy,hy,py,Mi,fy=l(()=>{"use strict";tu=u(b()),ru=u(B());eu();dy=u(it()),hy=u(m()),py=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},Mi=class extends hy.FtLitElement{constructor(){super(...arguments),this.text="",this.raised=!1}get inputLabelClasses(){return{}}render(){return tu.html`
1832
- <div class="${(0,dy.classMap)(this.inputLabelClasses)}">
1833
- ${En(this.text,()=>tu.html`
1831
+ `});var eu,tu,cy,uy,ly,Mi,py=l(()=>{"use strict";eu=u(b()),tu=u(B());Jc();cy=u(it()),uy=u(m()),ly=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},Mi=class extends uy.FtLitElement{constructor(){super(...arguments),this.text="",this.raised=!1}get inputLabelClasses(){return{}}render(){return eu.html`
1832
+ <div class="${(0,cy.classMap)(this.inputLabelClasses)}">
1833
+ ${En(this.text,()=>eu.html`
1834
1834
  <div class="ft-input-label--text ft-typography--caption">
1835
1835
  <label class="ft-input-label--floating-text">${this.text}</label>
1836
1836
  <span class="ft-input-label--hidden-text" aria-hidden="true">${this.text}</span>
1837
1837
  </div>
1838
1838
  `)}
1839
1839
  </div>
1840
- `}};Mi.elementDefinitions={};py([(0,ru.property)({type:String})],Mi.prototype,"text",void 0);py([(0,ru.property)({type:Boolean})],Mi.prototype,"raised",void 0)});var sa,iu,Yt,ou=l(()=>{"use strict";sa=u(B());Ft();An();fy();iu=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},Yt=class extends Mi{constructor(){super(...arguments),this.outlined=!1,this.error=!1,this.disabled=!1}get inputLabelClasses(){return{"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error}}};Yt.elementDefinitions={};Yt.styles=[Mr,uy];iu([(0,sa.property)({type:Boolean})],Yt.prototype,"outlined",void 0);iu([(0,sa.property)({type:Boolean})],Yt.prototype,"error",void 0);iu([(0,sa.property)({type:Boolean})],Yt.prototype,"disabled",void 0)});var my=l(()=>{"use strict"});var gy,vy=l(()=>{"use strict";ou();gy={"ft-input-label":Yt}});var yy,by=l(()=>{"use strict";yy=u(m());vy();(0,yy.customElements)(gy)});var xy=l(()=>{"use strict";ou();An();my();by()});var Sy,N,M,Cy,On=l(()=>{"use strict";Sy=u(b()),N=u(m());An();Ft();gr();mo();M={labelSize:N.FtCssVariableFactory.create("--ft-select-label-size","","SIZE","11px"),selectedOptionSize:N.FtCssVariableFactory.create("--ft-select-selected-option-size","","SIZE","14px"),verticalSpacing:N.FtCssVariableFactory.create("--ft-select-vertical-spacing","","SIZE","4px"),horizontalSpacing:N.FtCssVariableFactory.create("--ft-select-horizontal-spacing","","SIZE","16px"),optionsHeight:N.FtCssVariableFactory.create("--ft-select-options-height","","SIZE","70vh"),selectedOptionColor:N.FtCssVariableFactory.extend("--ft-select-selected-option-color","",N.designSystemVariables.colorOnSurface),helperColor:N.FtCssVariableFactory.extend("--ft-select-helper-color","",N.designSystemVariables.colorOnSurfaceMedium),optionsColor:N.FtCssVariableFactory.extend("--ft-select-options-color","",N.designSystemVariables.colorOnSurface),optionsZIndex:N.FtCssVariableFactory.create("--ft-select-options-z-index","","NUMBER","3"),backgroundColor:N.FtCssVariableFactory.extend("--ft-select-background-color","",N.designSystemVariables.colorSurface),colorOnSurfaceDisabled:N.FtCssVariableFactory.external(N.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:N.FtCssVariableFactory.external(N.designSystemVariables.colorPrimary,"Design system"),borderRadiusS:N.FtCssVariableFactory.external(N.designSystemVariables.borderRadiusS,"Design system"),elevation02:N.FtCssVariableFactory.external(N.designSystemVariables.elevation02,"Design system"),colorError:N.FtCssVariableFactory.external(N.designSystemVariables.colorError,"Design system")},Cy=Sy.css`
1840
+ `}};Mi.elementDefinitions={};ly([(0,tu.property)({type:String})],Mi.prototype,"text",void 0);ly([(0,tu.property)({type:Boolean})],Mi.prototype,"raised",void 0)});var na,ru,Yt,iu=l(()=>{"use strict";na=u(B());Ft();An();py();ru=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},Yt=class extends Mi{constructor(){super(...arguments),this.outlined=!1,this.error=!1,this.disabled=!1}get inputLabelClasses(){return{"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error}}};Yt.elementDefinitions={};Yt.styles=[Mr,ay];ru([(0,na.property)({type:Boolean})],Yt.prototype,"outlined",void 0);ru([(0,na.property)({type:Boolean})],Yt.prototype,"error",void 0);ru([(0,na.property)({type:Boolean})],Yt.prototype,"disabled",void 0)});var dy=l(()=>{"use strict"});var hy,fy=l(()=>{"use strict";iu();hy={"ft-input-label":Yt}});var my,gy=l(()=>{"use strict";my=u(m());fy();(0,my.customElements)(hy)});var vy=l(()=>{"use strict";iu();An();dy();gy()});var yy,N,M,by,On=l(()=>{"use strict";yy=u(b()),N=u(m());An();Ft();gr();mo();M={labelSize:N.FtCssVariableFactory.create("--ft-select-label-size","","SIZE","11px"),selectedOptionSize:N.FtCssVariableFactory.create("--ft-select-selected-option-size","","SIZE","14px"),verticalSpacing:N.FtCssVariableFactory.create("--ft-select-vertical-spacing","","SIZE","4px"),horizontalSpacing:N.FtCssVariableFactory.create("--ft-select-horizontal-spacing","","SIZE","16px"),optionsHeight:N.FtCssVariableFactory.create("--ft-select-options-height","","SIZE","70vh"),selectedOptionColor:N.FtCssVariableFactory.extend("--ft-select-selected-option-color","",N.designSystemVariables.colorOnSurface),helperColor:N.FtCssVariableFactory.extend("--ft-select-helper-color","",N.designSystemVariables.colorOnSurfaceMedium),optionsColor:N.FtCssVariableFactory.extend("--ft-select-options-color","",N.designSystemVariables.colorOnSurface),optionsZIndex:N.FtCssVariableFactory.create("--ft-select-options-z-index","","NUMBER","3"),backgroundColor:N.FtCssVariableFactory.extend("--ft-select-background-color","",N.designSystemVariables.colorSurface),colorOnSurfaceDisabled:N.FtCssVariableFactory.external(N.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:N.FtCssVariableFactory.external(N.designSystemVariables.colorPrimary,"Design system"),borderRadiusS:N.FtCssVariableFactory.external(N.designSystemVariables.borderRadiusS,"Design system"),elevation02:N.FtCssVariableFactory.external(N.designSystemVariables.elevation02,"Design system"),colorError:N.FtCssVariableFactory.external(N.designSystemVariables.colorError,"Design system")},by=yy.css`
1841
1841
  *:focus {
1842
1842
  outline: none;
1843
1843
  }
@@ -1973,10 +1973,10 @@
1973
1973
  .ft-select:not(.ft-select--has-option-selected) .ft-select--selected-option {
1974
1974
  opacity: 0;
1975
1975
  }
1976
- `});var nu,Ey,Ay,Oy=l(()=>{"use strict";gr();nu=u(m());On();Ey=u(b()),Ay=Ey.css`
1976
+ `});var ou,xy,Sy,Cy=l(()=>{"use strict";gr();ou=u(m());On();xy=u(b()),Sy=xy.css`
1977
1977
  .ft-select--option {
1978
- ${(0,nu.setVariable)(q.opacityContentOnSurfaceHover,"0.08")};
1979
- ${(0,nu.setVariable)(q.opacityContentOnSurfacePressed,"0.04")};
1978
+ ${(0,ou.setVariable)(q.opacityContentOnSurfaceHover,"0.08")};
1979
+ ${(0,ou.setVariable)(q.opacityContentOnSurfacePressed,"0.04")};
1980
1980
  }
1981
1981
 
1982
1982
  .ft-select--option > *:not(ft-ripple) {
@@ -2000,8 +2000,8 @@
2000
2000
  overflow: hidden;
2001
2001
  }
2002
2002
 
2003
- `});var aa,Ao,wy,ei,wn,qe,Ry=l(()=>{"use strict";aa=u(m());Ge();ge();Ao=u(b()),wy=u(it()),ei=u(B());Oy();wn=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},qe=class extends aa.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.isSlotEmpty=!0}render(){var e,r;let i={"ft-select--option":!0,"ft-select--option-selected":this.selected,"ft-typography--body2":!0};return Ao.html`
2004
- <div class="${(0,wy.classMap)(i)}"
2003
+ `});var sa,Ao,Ey,ei,wn,qe,Ay=l(()=>{"use strict";sa=u(m());Ge();ge();Ao=u(b()),Ey=u(it()),ei=u(B());Cy();wn=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},qe=class extends sa.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.isSlotEmpty=!0}render(){var e,r;let i={"ft-select--option":!0,"ft-select--option-selected":this.selected,"ft-typography--body2":!0};return Ao.html`
2004
+ <div class="${(0,Ey.classMap)(i)}"
2005
2005
  part="option option-${(r=(e=this.value)===null||e===void 0?void 0:e.toString())===null||r===void 0?void 0:r.replace(/[^\w-]/g,"")}"
2006
2006
  tabindex="0"
2007
2007
  aria-label="${this.label}"
@@ -2012,8 +2012,8 @@
2012
2012
  </slot>
2013
2013
  ${this.isSlotEmpty?Ao.html`<span>${this.label}</span>`:Ao.html``}
2014
2014
  </div>
2015
- `}onSlotChange(){this.isSlotEmpty=(0,aa.isSlotEmptyOrWithoutContent)(this.slotElement)}onClick(){this.dispatchEvent(new Event("select-option",{bubbles:!0,composed:!0}))}update(e){super.update(e),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};qe.elementDefinitions={"ft-ripple":L};qe.shadowRootOptions={...Ao.LitElement.shadowRootOptions,delegatesFocus:!0};qe.styles=[Ay,Dr];wn([(0,ei.property)({type:String})],qe.prototype,"label",void 0);wn([(0,ei.property)({type:Object,converter:t=>t})],qe.prototype,"value",void 0);wn([(0,ei.property)({type:Boolean,reflect:!0})],qe.prototype,"selected",void 0);wn([(0,ei.query)("slot")],qe.prototype,"slotElement",void 0);wn([(0,ei.state)()],qe.prototype,"isSlotEmpty",void 0)});var Oo,Ae,Ty,_y,Nt,Fe,ie,su=l(()=>{"use strict";Oo=u(b()),Ae=u(B()),Ty=u(it()),_y=u(Rr());eu();Is();Nt=u(m());ge();xy();Ge();Or();On();Ry();Fe=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},ie=class t extends Nt.FtLitElement{constructor(){super(...arguments),this.label="",this.ariaLabel=null,this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.options=[],this.optionsDisplayed=!1,this.focusOptions=!1,this.currentSearch="",this.lastSearchInputDate=new Date("01/01/1970"),this.isSlotEmpty=!0,this.hideOptions=e=>this.optionsDisplayed=this.optionsDisplayed&&e.composedPath().includes(this.container)}get firstOption(){return this.optionsList[0]}get optionsList(){let e=[...this.querySelectorAll("ft-select-option")];return e.length>0?e:[...this.shadowRoot.querySelectorAll("ft-select-option")]}get focusedOption(){return this.optionsList.find(e=>e.matches(":focus-within"))}get selectedOptionElement(){return this.optionsList.find(e=>e.selected)}get lastOption(){return(0,Nt.last)(this.optionsList)}render(){var e,r,i,o,n;let s=this.hasOptionsMenuOpen,a=this.disabled||!this.hasOptions,c=((e=this.selectedOption)===null||e===void 0?void 0:e.value)!=null||((i=(r=this.selectedOption)===null||r===void 0?void 0:r.label)!==null&&i!==void 0?i:"").length>0,p={"ft-select":!0,"ft-select--filled":!this.outlined,"ft-select--outlined":this.outlined,"ft-select--disabled":a,"ft-select--options-displayed":s,"ft-select--has-option-selected":c,"ft-select--no-label":!this.label,"ft-select--fixed":this.fixedMenuPosition,"ft-select--in-error":this.error};return Oo.html`
2016
- <div class="${(0,Ty.classMap)(p)}" part="container">
2015
+ `}onSlotChange(){this.isSlotEmpty=(0,sa.isSlotEmptyOrWithoutContent)(this.slotElement)}onClick(){this.dispatchEvent(new Event("select-option",{bubbles:!0,composed:!0}))}update(e){super.update(e),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};qe.elementDefinitions={"ft-ripple":L};qe.shadowRootOptions={...Ao.LitElement.shadowRootOptions,delegatesFocus:!0};qe.styles=[Sy,Dr];wn([(0,ei.property)({type:String})],qe.prototype,"label",void 0);wn([(0,ei.property)({type:Object,converter:t=>t})],qe.prototype,"value",void 0);wn([(0,ei.property)({type:Boolean,reflect:!0})],qe.prototype,"selected",void 0);wn([(0,ei.query)("slot")],qe.prototype,"slotElement",void 0);wn([(0,ei.state)()],qe.prototype,"isSlotEmpty",void 0)});var Oo,Ae,Oy,wy,Nt,Fe,ie,nu=l(()=>{"use strict";Oo=u(b()),Ae=u(B()),Oy=u(it()),wy=u(Rr());Jc();$s();Nt=u(m());ge();vy();Ge();Or();On();Ay();Fe=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},ie=class t extends Nt.FtLitElement{constructor(){super(...arguments),this.label="",this.ariaLabel=null,this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.options=[],this.optionsDisplayed=!1,this.focusOptions=!1,this.currentSearch="",this.lastSearchInputDate=new Date("01/01/1970"),this.isSlotEmpty=!0,this.hideOptions=e=>this.optionsDisplayed=this.optionsDisplayed&&e.composedPath().includes(this.container)}get firstOption(){return this.optionsList[0]}get optionsList(){let e=[...this.querySelectorAll("ft-select-option")];return e.length>0?e:[...this.shadowRoot.querySelectorAll("ft-select-option")]}get focusedOption(){return this.optionsList.find(e=>e.matches(":focus-within"))}get selectedOptionElement(){return this.optionsList.find(e=>e.selected)}get lastOption(){return(0,Nt.last)(this.optionsList)}render(){var e,r,i,o,n;let s=this.hasOptionsMenuOpen,a=this.disabled||!this.hasOptions,c=((e=this.selectedOption)===null||e===void 0?void 0:e.value)!=null||((i=(r=this.selectedOption)===null||r===void 0?void 0:r.label)!==null&&i!==void 0?i:"").length>0,p={"ft-select":!0,"ft-select--filled":!this.outlined,"ft-select--outlined":this.outlined,"ft-select--disabled":a,"ft-select--options-displayed":s,"ft-select--has-option-selected":c,"ft-select--no-label":!this.label,"ft-select--fixed":this.fixedMenuPosition,"ft-select--in-error":this.error};return Oo.html`
2016
+ <div class="${(0,Oy.classMap)(p)}" part="container">
2017
2017
  <div class="ft-select--main-panel" part="main-panel">
2018
2018
  <ft-input-label text="${this.label}"
2019
2019
  part="label"
@@ -2053,7 +2053,7 @@
2053
2053
  @option-change=${this.updateOptionsFromSlot}
2054
2054
  >
2055
2055
  </slot>
2056
- ${En(this.isSlotEmpty,()=>(0,_y.repeat)(this.options,d=>d.value,d=>this.renderOption(d)))}
2056
+ ${En(this.isSlotEmpty,()=>(0,wy.repeat)(this.options,d=>d.value,d=>this.renderOption(d)))}
2057
2057
  </div>
2058
2058
  </div>
2059
2059
  <slot name="helper" part="helper">
@@ -2068,7 +2068,7 @@
2068
2068
  label="${e.label}"
2069
2069
  .value=${e.value}
2070
2070
  ></ft-select-option>
2071
- `}willUpdate(e){super.willUpdate(e),e.has("options")&&(this.selectedOption=this.options.filter(r=>r.selected)[0]),e.has("selectedOption")&&(this.optionsDisplayed=!1)}contentAvailableCallback(e){var r,i;if(super.contentAvailableCallback(e),e.has("focusOptions")&&this.focusOptions&&((i=(r=this.selectedOptionElement)!==null&&r!==void 0?r:this.firstOption)===null||i===void 0||i.focus(),this.focusOptions=!1),e.has("optionsDisplayed")&&this.hasOptionsMenuOpen){this.optionsMenu.style.minWidth=this.mainPanel.getBoundingClientRect().width+"px";let o=["bottom","top"];(0,Nt.computeOffsetAutoPosition)(this.mainPanel,this.optionsMenu,"bottom",o,"fixed",M.optionsHeight,0).then(({x:n,y:s})=>{this.optionsMenu.style.left=`${n}px`,this.optionsMenu.style.top=`${s}px`})}}get hasOptionsMenuOpen(){return!this.disabled&&this.optionsDisplayed&&this.hasOptions}get hasOptions(){return this.options.length>0}updateOptionsFromSlot(e){var r;e.stopPropagation(),this.isSlotEmpty=(0,Nt.isSlotEmptyOrWithoutContent)(this.optionsSlot);let i=(r=this.optionsSlot)===null||r===void 0?void 0:r.assignedElements().map(o=>o);i&&i.length>0&&(this.options=i)}onMainPanelKeyDown(e){switch(e.key){case" ":e.preventDefault(),e.stopPropagation();case"Enter":this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=!0;break;case"ArrowUp":case"ArrowDown":e.preventDefault(),e.stopPropagation(),this.optionsDisplayed=!0,this.focusOptions=!0;break}}onOptionsKeyDown(e){var r,i;let o,n=this.focusedOption?this.optionsList.indexOf(this.focusedOption):0;switch(e.key){case" ":case"Enter":e.preventDefault(),e.stopPropagation(),this.onSelectOption(e),this.optionsDisplayed=!1,(r=this.mainPanel)===null||r===void 0||r.focus();break;case"Escape":this.optionsDisplayed=!1,(i=this.mainPanel)===null||i===void 0||i.focus();break;case"Tab":this.optionsDisplayed=!1;break;case"ArrowUp":e.preventDefault(),e.stopPropagation(),o=this.optionsList[(n-1+this.optionsList.length)%this.optionsList.length];break;case"ArrowDown":e.preventDefault(),e.stopPropagation(),o=this.optionsList[(n+1)%this.optionsList.length];break;default:if(e.key.length!=1)break;this.isKeyAlphanumeric(e.key)&&(o=this.handleAlphanumericPress(e.key));break}o?.focus()}isKeyAlphanumeric(e){let r=e.charCodeAt(0);return r>47&&r<58||r>64&&r<91||r>96&&r<123}handleAlphanumericPress(e){let r=new Date;r.getTime()-this.lastSearchInputDate.getTime()>t.searchTimeoutMilliseconds&&(this.currentSearch=""),this.currentSearch+=e.toLowerCase();let i=this.options.find(o=>{var n;return((n=o.label)===null||n===void 0?void 0:n.toLowerCase().substring(0,this.currentSearch.length))===this.currentSearch});return this.lastSearchInputDate=r,i&&this.optionsList.find(o=>o.value===i.value)}getOptionId(e){if(!e)return;let r=this.options.findIndex(i=>(0,Nt.deepEqual)(i.value,e.value));if(r!==-1)return`option-${r}`}onSelectOption(e){e.stopPropagation(),this.setValue(e.target.value)}setValue(e,r=!0){let i=this.options.find(o=>(0,Nt.deepEqual)(o.value,e));i&&this.selectOption(i,r)}selectOption(e,r=!0){var i,o;if(!(0,Nt.deepEqual)((i=this.selectedOption)===null||i===void 0?void 0:i.value,e?.value)){this.selectedOption=e;for(let n of this.options)n.selected=n===e;r&&this.dispatchEvent(new CustomEvent("change",{detail:(o=this.selectedOption)===null||o===void 0?void 0:o.value}))}this.optionsDisplayed=!1}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.hideOptions)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptions)}};ie.elementDefinitions={"ft-input-label":Yt,"ft-typography":j,"ft-ripple":L,"ft-icon":oe,"ft-select-option":qe};ie.searchTimeoutMilliseconds=2e3;ie.styles=[Mr,Cy];Fe([(0,Ae.property)({type:String})],ie.prototype,"label",void 0);Fe([(0,Ae.property)({type:String})],ie.prototype,"ariaLabel",void 0);Fe([(0,Ae.property)({type:String})],ie.prototype,"helper",void 0);Fe([(0,Ae.property)({type:Boolean})],ie.prototype,"outlined",void 0);Fe([(0,Ae.property)({type:Boolean})],ie.prototype,"disabled",void 0);Fe([(0,Ae.property)({type:Boolean})],ie.prototype,"error",void 0);Fe([(0,Ae.property)({type:Boolean})],ie.prototype,"fixedMenuPosition",void 0);Fe([(0,Ae.property)({type:Array})],ie.prototype,"options",void 0);Fe([(0,Ae.state)()],ie.prototype,"selectedOption",void 0);Fe([(0,Ae.state)()],ie.prototype,"optionsDisplayed",void 0);Fe([(0,Ae.state)()],ie.prototype,"focusOptions",void 0);Fe([(0,Ae.state)()],ie.prototype,"currentSearch",void 0);Fe([(0,Ae.state)()],ie.prototype,"lastSearchInputDate",void 0);Fe([(0,Ae.query)(".ft-select")],ie.prototype,"container",void 0);Fe([(0,Ae.query)(".ft-select--options")],ie.prototype,"optionsMenu",void 0);Fe([(0,Ae.query)(".ft-select--input-panel")],ie.prototype,"mainPanel",void 0);Fe([(0,Ae.query)("slot:not([name])")],ie.prototype,"optionsSlot",void 0)});var ky=l(()=>{"use strict"});var Ly,Py=l(()=>{"use strict";su();Ly={"ft-select":ie,"ft-select-option":qe}});var $y,Iy=l(()=>{"use strict";$y=u(m());Py();(0,$y.customElements)(Ly)});var Dy=l(()=>{"use strict";su();On();ky();Iy()});var My,Zt,Be,Ny,la=l(()=>{"use strict";My=u(b()),Zt=u(m()),Be={display:Zt.FtCssVariableFactory.create("--ft-skeleton--display","","DISPLAY","block"),width:Zt.FtCssVariableFactory.create("--ft-skeleton--width","","SIZE","100%"),height:Zt.FtCssVariableFactory.create("--ft-skeleton--height","","SIZE","20px"),backgroundColor:Zt.FtCssVariableFactory.create("--ft-skeleton--background-color","","COLOR","#f1f1f1"),glareWidth:Zt.FtCssVariableFactory.create("--ft-skeleton--glare-width","","SIZE","200px"),glareColor:Zt.FtCssVariableFactory.create("--ft-skeleton--glare-color","","COLOR","rgba(255, 255, 255, .6)"),animationDuration:Zt.FtCssVariableFactory.create("--ft-skeleton--animation-duration","","UNKNOWN","2s"),borderRadiusM:Zt.FtCssVariableFactory.external(Zt.designSystemVariables.borderRadiusM,"Design system")},Ny=My.css`
2071
+ `}willUpdate(e){super.willUpdate(e),e.has("options")&&(this.selectedOption=this.options.filter(r=>r.selected)[0]),e.has("selectedOption")&&(this.optionsDisplayed=!1)}contentAvailableCallback(e){var r,i;if(super.contentAvailableCallback(e),e.has("focusOptions")&&this.focusOptions&&((i=(r=this.selectedOptionElement)!==null&&r!==void 0?r:this.firstOption)===null||i===void 0||i.focus(),this.focusOptions=!1),e.has("optionsDisplayed")&&this.hasOptionsMenuOpen){this.optionsMenu.style.minWidth=this.mainPanel.getBoundingClientRect().width+"px";let o=["bottom","top"];(0,Nt.computeOffsetAutoPosition)(this.mainPanel,this.optionsMenu,"bottom",o,"fixed",M.optionsHeight,0).then(({x:n,y:s})=>{this.optionsMenu.style.left=`${n}px`,this.optionsMenu.style.top=`${s}px`})}}get hasOptionsMenuOpen(){return!this.disabled&&this.optionsDisplayed&&this.hasOptions}get hasOptions(){return this.options.length>0}updateOptionsFromSlot(e){var r;e.stopPropagation(),this.isSlotEmpty=(0,Nt.isSlotEmptyOrWithoutContent)(this.optionsSlot);let i=(r=this.optionsSlot)===null||r===void 0?void 0:r.assignedElements().map(o=>o);i&&i.length>0&&(this.options=i)}onMainPanelKeyDown(e){switch(e.key===" "&&(e.preventDefault(),e.stopPropagation()),e.key){case" ":case"Enter":this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=!0;break;case"ArrowUp":case"ArrowDown":e.preventDefault(),e.stopPropagation(),this.optionsDisplayed=!0,this.focusOptions=!0;break}}onOptionsKeyDown(e){var r,i;let o,n=this.focusedOption?this.optionsList.indexOf(this.focusedOption):0;switch(e.key){case" ":case"Enter":e.preventDefault(),e.stopPropagation(),this.onSelectOption(e),this.optionsDisplayed=!1,(r=this.mainPanel)===null||r===void 0||r.focus();break;case"Escape":this.optionsDisplayed=!1,(i=this.mainPanel)===null||i===void 0||i.focus();break;case"Tab":this.optionsDisplayed=!1;break;case"ArrowUp":e.preventDefault(),e.stopPropagation(),o=this.optionsList[(n-1+this.optionsList.length)%this.optionsList.length];break;case"ArrowDown":e.preventDefault(),e.stopPropagation(),o=this.optionsList[(n+1)%this.optionsList.length];break;default:if(e.key.length!=1)break;this.isKeyAlphanumeric(e.key)&&(o=this.handleAlphanumericPress(e.key));break}o?.focus()}isKeyAlphanumeric(e){let r=e.charCodeAt(0);return r>47&&r<58||r>64&&r<91||r>96&&r<123}handleAlphanumericPress(e){let r=new Date;r.getTime()-this.lastSearchInputDate.getTime()>t.searchTimeoutMilliseconds&&(this.currentSearch=""),this.currentSearch+=e.toLowerCase();let i=this.options.find(o=>{var n;return((n=o.label)===null||n===void 0?void 0:n.toLowerCase().substring(0,this.currentSearch.length))===this.currentSearch});return this.lastSearchInputDate=r,i&&this.optionsList.find(o=>o.value===i.value)}getOptionId(e){if(!e)return;let r=this.options.findIndex(i=>(0,Nt.deepEqual)(i.value,e.value));if(r!==-1)return`option-${r}`}onSelectOption(e){e.stopPropagation(),this.setValue(e.target.value)}setValue(e,r=!0){let i=this.options.find(o=>(0,Nt.deepEqual)(o.value,e));i&&this.selectOption(i,r)}selectOption(e,r=!0){var i,o;if(!(0,Nt.deepEqual)((i=this.selectedOption)===null||i===void 0?void 0:i.value,e?.value)){this.selectedOption=e;for(let n of this.options)n.selected=n===e;r&&this.dispatchEvent(new CustomEvent("change",{detail:(o=this.selectedOption)===null||o===void 0?void 0:o.value}))}this.optionsDisplayed=!1}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.hideOptions)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptions)}};ie.elementDefinitions={"ft-input-label":Yt,"ft-typography":j,"ft-ripple":L,"ft-icon":oe,"ft-select-option":qe};ie.searchTimeoutMilliseconds=2e3;ie.styles=[Mr,by];Fe([(0,Ae.property)({type:String})],ie.prototype,"label",void 0);Fe([(0,Ae.property)({type:String})],ie.prototype,"ariaLabel",void 0);Fe([(0,Ae.property)({type:String})],ie.prototype,"helper",void 0);Fe([(0,Ae.property)({type:Boolean})],ie.prototype,"outlined",void 0);Fe([(0,Ae.property)({type:Boolean})],ie.prototype,"disabled",void 0);Fe([(0,Ae.property)({type:Boolean})],ie.prototype,"error",void 0);Fe([(0,Ae.property)({type:Boolean})],ie.prototype,"fixedMenuPosition",void 0);Fe([(0,Ae.property)({type:Array})],ie.prototype,"options",void 0);Fe([(0,Ae.state)()],ie.prototype,"selectedOption",void 0);Fe([(0,Ae.state)()],ie.prototype,"optionsDisplayed",void 0);Fe([(0,Ae.state)()],ie.prototype,"focusOptions",void 0);Fe([(0,Ae.state)()],ie.prototype,"currentSearch",void 0);Fe([(0,Ae.state)()],ie.prototype,"lastSearchInputDate",void 0);Fe([(0,Ae.query)(".ft-select")],ie.prototype,"container",void 0);Fe([(0,Ae.query)(".ft-select--options")],ie.prototype,"optionsMenu",void 0);Fe([(0,Ae.query)(".ft-select--input-panel")],ie.prototype,"mainPanel",void 0);Fe([(0,Ae.query)("slot:not([name])")],ie.prototype,"optionsSlot",void 0)});var Ry=l(()=>{"use strict"});var Ty,_y=l(()=>{"use strict";nu();Ty={"ft-select":ie,"ft-select-option":qe}});var ky,Ly=l(()=>{"use strict";ky=u(m());_y();(0,ky.customElements)(Ty)});var Py=l(()=>{"use strict";nu();On();Ry();Ly()});var $y,Zt,Be,Iy,aa=l(()=>{"use strict";$y=u(b()),Zt=u(m()),Be={display:Zt.FtCssVariableFactory.create("--ft-skeleton--display","","DISPLAY","block"),width:Zt.FtCssVariableFactory.create("--ft-skeleton--width","","SIZE","100%"),height:Zt.FtCssVariableFactory.create("--ft-skeleton--height","","SIZE","20px"),backgroundColor:Zt.FtCssVariableFactory.create("--ft-skeleton--background-color","","COLOR","#f1f1f1"),glareWidth:Zt.FtCssVariableFactory.create("--ft-skeleton--glare-width","","SIZE","200px"),glareColor:Zt.FtCssVariableFactory.create("--ft-skeleton--glare-color","","COLOR","rgba(255, 255, 255, .6)"),animationDuration:Zt.FtCssVariableFactory.create("--ft-skeleton--animation-duration","","UNKNOWN","2s"),borderRadiusM:Zt.FtCssVariableFactory.external(Zt.designSystemVariables.borderRadiusM,"Design system")},Iy=$y.css`
2072
2072
  :host {
2073
2073
  width: ${Be.width};
2074
2074
  height: ${Be.height};
@@ -2095,7 +2095,7 @@
2095
2095
  background-position: calc(100vw + ${Be.glareWidth}) 0, calc(${Be.glareWidth} * -1) 0;
2096
2096
  }
2097
2097
  }
2098
- `});var P,au,T,Fy,By,ca=l(()=>{"use strict";P=u(m()),au=u(b());Ri();An();On();la();Zs();ea();Ft();T={height:P.FtCssVariableFactory.create("--ft-search-bar-height","","SIZE","38px"),borderRadius:P.FtCssVariableFactory.extend("--ft-search-bar-border-radius","",P.designSystemVariables.borderRadiusS),mobileOpenPosition:P.FtCssVariableFactory.create("--ft-search-bar-mobile-open-position","","POSITION","fixed"),mobileOpenTop:P.FtCssVariableFactory.create("--ft-search-bar-mobile-open-top","","SIZE","0"),mobileOpenBottom:P.FtCssVariableFactory.create("--ft-search-bar-mobile-open-bottom","","SIZE","0"),mobileOpenLeft:P.FtCssVariableFactory.create("--ft-search-bar-mobile-open-left","","SIZE","0"),mobileOpenRight:P.FtCssVariableFactory.create("--ft-search-bar-mobile-open-right","","SIZE","0"),desktopFiltersHeight:P.FtCssVariableFactory.create("--ft-search-bar-desktop-filters-height","","SIZE","350px"),floatingZIndex:P.FtCssVariableFactory.create("--ft-search-bar-floating-components-z-index","","NUMBER","3"),colorSurface:P.FtCssVariableFactory.external(P.designSystemVariables.colorSurface,"Design system"),colorOnSurface:P.FtCssVariableFactory.external(P.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:P.FtCssVariableFactory.external(P.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOutline:P.FtCssVariableFactory.external(P.designSystemVariables.colorOutline,"Design system"),colorPrimary:P.FtCssVariableFactory.external(P.designSystemVariables.colorPrimary,"Design system"),elevation02:P.FtCssVariableFactory.external(P.designSystemVariables.elevation02,"Design system"),buttonColor:P.FtCssVariableFactory.external(I.color,"Button"),buttonRippleColor:P.FtCssVariableFactory.external(I.rippleColor,"Button"),activeItemBorderColor:P.FtCssVariableFactory.extend("--ft-search-bar-active-border-color","",P.designSystemVariables.colorPrimary)},Fy=au.css`
2098
+ `});var P,su,T,Dy,My,la=l(()=>{"use strict";P=u(m()),su=u(b());Ri();An();On();aa();Ys();Js();Ft();T={height:P.FtCssVariableFactory.create("--ft-search-bar-height","","SIZE","38px"),borderRadius:P.FtCssVariableFactory.extend("--ft-search-bar-border-radius","",P.designSystemVariables.borderRadiusS),mobileOpenPosition:P.FtCssVariableFactory.create("--ft-search-bar-mobile-open-position","","POSITION","fixed"),mobileOpenTop:P.FtCssVariableFactory.create("--ft-search-bar-mobile-open-top","","SIZE","0"),mobileOpenBottom:P.FtCssVariableFactory.create("--ft-search-bar-mobile-open-bottom","","SIZE","0"),mobileOpenLeft:P.FtCssVariableFactory.create("--ft-search-bar-mobile-open-left","","SIZE","0"),mobileOpenRight:P.FtCssVariableFactory.create("--ft-search-bar-mobile-open-right","","SIZE","0"),desktopFiltersHeight:P.FtCssVariableFactory.create("--ft-search-bar-desktop-filters-height","","SIZE","350px"),floatingZIndex:P.FtCssVariableFactory.create("--ft-search-bar-floating-components-z-index","","NUMBER","3"),colorSurface:P.FtCssVariableFactory.external(P.designSystemVariables.colorSurface,"Design system"),colorOnSurface:P.FtCssVariableFactory.external(P.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:P.FtCssVariableFactory.external(P.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOutline:P.FtCssVariableFactory.external(P.designSystemVariables.colorOutline,"Design system"),colorPrimary:P.FtCssVariableFactory.external(P.designSystemVariables.colorPrimary,"Design system"),elevation02:P.FtCssVariableFactory.external(P.designSystemVariables.elevation02,"Design system"),buttonColor:P.FtCssVariableFactory.external(I.color,"Button"),buttonRippleColor:P.FtCssVariableFactory.external(I.rippleColor,"Button"),activeItemBorderColor:P.FtCssVariableFactory.extend("--ft-search-bar-active-border-color","",P.designSystemVariables.colorPrimary)},Dy=su.css`
2099
2099
  * {
2100
2100
  box-sizing: border-box;
2101
2101
  }
@@ -2288,7 +2288,7 @@
2288
2288
  ${(0,P.setVariable)(C.fontWeight,"bold")};
2289
2289
  }
2290
2290
 
2291
- `,By=au.css`
2291
+ `,My=su.css`
2292
2292
  .ft-search-bar--presets {
2293
2293
  min-width: 200px;
2294
2294
  }
@@ -2449,14 +2449,14 @@
2449
2449
  .ft-search-bar--desktop-menu .ft-search-bar--launch-search {
2450
2450
  margin: 0;
2451
2451
  }
2452
- `});var Uy,Hy,ti,lu=l(()=>{"use strict";Uy=u(b()),Hy=u(m());la();ti=class extends Hy.FtLitElement{render(){return Uy.html`
2453
- `}};ti.elementDefinitions={};ti.styles=Ny});var Vy=l(()=>{"use strict"});var jy,zy=l(()=>{"use strict";lu();jy={"ft-skeleton":ti}});var qy,Ky=l(()=>{"use strict";qy=u(m());zy();(0,qy.customElements)(jy)});var Wy=l(()=>{"use strict";lu();la();Vy();Ky()});var pr,cu,wo,dr,ua=l(()=>{"use strict";pr=u(b()),cu=u(Rr());Or();wo=u(m());ca();Ge();dr=class{constructor(e,r=300){this.listboxId="suggestManager",this.searchBar=e,this.updateDebouncer=new wo.Debouncer(r)}render(){let e=this.recentSearchesMatchingQuery;return pr.html`
2452
+ `});var Ny,Fy,ti,au=l(()=>{"use strict";Ny=u(b()),Fy=u(m());aa();ti=class extends Fy.FtLitElement{render(){return Ny.html`
2453
+ `}};ti.elementDefinitions={};ti.styles=Iy});var By=l(()=>{"use strict"});var Uy,Hy=l(()=>{"use strict";au();Uy={"ft-skeleton":ti}});var Vy,jy=l(()=>{"use strict";Vy=u(m());Hy();(0,Vy.customElements)(Uy)});var zy=l(()=>{"use strict";au();aa();By();jy()});var pr,lu,wo,dr,ca=l(()=>{"use strict";pr=u(b()),lu=u(Rr());Or();wo=u(m());la();Ge();dr=class{constructor(e,r=300){this.listboxId="suggestManager",this.searchBar=e,this.updateDebouncer=new wo.Debouncer(r)}render(){let e=this.recentSearchesMatchingQuery;return pr.html`
2454
2454
  <div class="ft-search-bar--suggestions ft-word-wrap ${this.shouldDisplaySuggestions?"ft-search-bar--suggestions-not-empty":""}"
2455
2455
  id="${this.listboxId}"
2456
2456
  role="listbox"
2457
2457
  aria-label="${this.searchBar.labelResolver.resolve("suggestionsAriaLabel")}"
2458
2458
  part="suggestions-container">
2459
- ${(0,cu.repeat)(e.slice(0,5),r=>r,(r,i)=>pr.html`
2459
+ ${(0,lu.repeat)(e.slice(0,5),r=>r,(r,i)=>pr.html`
2460
2460
  <div part="suggestion-container"
2461
2461
  class="${this.searchBar.selectedSuggestOptionId===this.recentSearchId(i)?"ft-search-bar--suggestions-selected":pr.nothing}">
2462
2462
  <a href="${this.getRequestWithQuery(r)}"
@@ -2485,7 +2485,7 @@
2485
2485
  </ft-button>
2486
2486
  </div>
2487
2487
  `)}
2488
- ${(0,cu.repeat)(this.searchBar.suggestions,r=>r.value,(r,i)=>pr.html`
2488
+ ${(0,lu.repeat)(this.searchBar.suggestions,r=>r.value,(r,i)=>pr.html`
2489
2489
  <div part="suggestion-container"
2490
2490
  class="${this.searchBar.selectedSuggestOptionId===this.suggestionId(i)?"ft-search-bar--suggestions-selected":pr.nothing}">
2491
2491
  <a href="${this.getRequestWithQuery(r.value)}"
@@ -2503,7 +2503,7 @@
2503
2503
  </div>
2504
2504
  `)}
2505
2505
  </div>
2506
- `}recentSearchId(e){return this.listboxId+"-recent-"+e}suggestionId(e){return this.listboxId+"-suggest-"+e}getRequestWithQuery(e){return this.searchBar.searchRequestSerializer({...this.searchBar.request,paging:{page:1},query:e})}update(){return new Promise((e,r)=>{this.updateDebouncer.run(async()=>{this.searchBar.suggestions=this.searchBar.api&&this.searchBar.query.length>2?await this.searchBar.api.getSuggestions(this.searchBar.suggestRequest).then(i=>i.suggestions).catch(()=>[]):[],e()})})}onSuggestClick(e,r){this.searchBar.setQuery(r),this.searchBar.onLaunchSearch()}removeRecentSearch(e,r){e.preventDefault(),e.stopPropagation(),this.selectSuggestion(null),this.searchBar.recentSearches=this.searchBar.recentSearches.filter(i=>i.toLowerCase()!==r.toLowerCase()),this.searchBar.saveRecentSearches()}getIcon(e){let r=e.type==="DOCUMENT"?Ye.file_format:Ye.fluid_topics,i;switch(e.type){case"MAP":i=e.editorialType==="BOOK"?Ce.BOOK:Ce.ARTICLE;break;case"DOCUMENT":i=Ps(e.mimeType,e.filenameExtension);break;case"TOPIC":i=Ce.TOPICS;break;case"HTML_PACKAGE":i=Ce.BOX_CODE;break;case"HTML_PACKAGE_PAGE":i=Ce.FILE_CODE;break}return pr.html`
2506
+ `}recentSearchId(e){return this.listboxId+"-recent-"+e}suggestionId(e){return this.listboxId+"-suggest-"+e}getRequestWithQuery(e){return this.searchBar.searchRequestSerializer({...this.searchBar.request,paging:{page:1},query:e})}update(){return new Promise((e,r)=>{this.updateDebouncer.run(async()=>{this.searchBar.suggestions=this.searchBar.api&&this.searchBar.query.length>2?await this.searchBar.api.getSuggestions(this.searchBar.suggestRequest).then(i=>i.suggestions).catch(()=>[]):[],e()})})}onSuggestClick(e,r){this.searchBar.setQuery(r),this.searchBar.onLaunchSearch()}removeRecentSearch(e,r){e.preventDefault(),e.stopPropagation(),this.selectSuggestion(null),this.searchBar.recentSearches=this.searchBar.recentSearches.filter(i=>i.toLowerCase()!==r.toLowerCase()),this.searchBar.saveRecentSearches()}getIcon(e){let r=e.type==="DOCUMENT"?Ye.file_format:Ye.fluid_topics,i;switch(e.type){case"MAP":i=e.editorialType==="BOOK"?Ce.BOOK:Ce.ARTICLE;break;case"DOCUMENT":i=Ls(e.mimeType,e.filenameExtension);break;case"TOPIC":i=Ce.TOPICS;break;case"HTML_PACKAGE":i=Ce.BOX_CODE;break;case"HTML_PACKAGE_PAGE":i=Ce.FILE_CODE;break}return pr.html`
2507
2507
  <ft-icon .variant=${r} .value=${i} part="suggestion-icon"></ft-icon>
2508
2508
  `}focusNextSuggestion(){this.selectSuggestion(this.nextSuggestionElement())}focusPreviousSuggestion(){this.selectSuggestion(this.previousSuggestionElement())}nextSuggestionElement(){let e=this.selectedSuggestOption;return e?e?.nextElementSibling:this.getFirstSuggestionElement()}getFirstSuggestionElement(){return this.searchBar.querySelector("[part=suggestion-container]")}previousSuggestionElement(){let e=this.selectedSuggestOption;return e?e?.previousElementSibling:this.getLastSuggestionElement()}get selectedSuggestOption(){var e;return(e=this.searchBar.querySelector("[id='"+this.searchBar.selectedSuggestOptionId+"']"))===null||e===void 0?void 0:e.parentElement}get selectedSuggestOptionLink(){return this.searchBar.querySelector("[id='"+this.searchBar.selectedSuggestOptionId+"']")}get selectedSuggestRemoveRecentButton(){var e;return(e=this.selectedSuggestOption)===null||e===void 0?void 0:e.querySelector("[part=remove-suggestion]")}getLastSuggestionElement(){let e=this.searchBar.querySelectorAll("[part=suggestion-container]");return e.length>0?e[e.length-1]:null}selectSuggestion(e){var r;this.searchBar.selectedSuggestRemoveRecent=!1,e?this.searchBar.selectedSuggestOptionId=(r=e.querySelector("[part=suggestions]"))===null||r===void 0?void 0:r.id:this.searchBar.selectedSuggestOptionId=void 0}focusArrowLeft(){this.searchBar.selectedSuggestRemoveRecent?this.searchBar.selectedSuggestRemoveRecent=!1:this.selectSuggestion(null)}focusArrowRight(){!this.searchBar.selectedSuggestRemoveRecent&&this.selectedSuggestRemoveRecentButton?this.searchBar.selectedSuggestRemoveRecent=!0:this.selectSuggestion(null)}get shouldDisplaySuggestions(){return this.searchBar.displaySuggestListbox&&(this.searchBar.suggestions.length>0||this.recentSearchesMatchingQuery.length>0)}get recentSearchesMatchingQuery(){return this.searchBar.recentSearches.filter(e=>e.toLowerCase().includes(this.searchBar.query.toLowerCase()))}};dr.styles=[wo.wordWrap,pr.css`
2509
2509
  .ft-search-bar--mobile .ft-search-bar--suggestions {
@@ -2595,7 +2595,7 @@
2595
2595
  ft-ripple {
2596
2596
  ${(0,wo.setVariable)(q.opacityContentOnSurfaceHover,q.opacityContentOnSurfaceSelected)}
2597
2597
  }
2598
- `]});var tt,uu,pa,hr,da=l(()=>{"use strict";tt=u(b()),uu=u(Rr());kc();pa=u(m());Js();Jc();hr=class{constructor(e){this.searchBar=e}render(){if(!this.searchBar.hasLocaleSelector()&&!this.searchBar.hasFacets())return tt.html``;let e=this.searchBar.isMobile(),r=!e&&this.searchBar.dense||e&&this.searchBar.isMobileMenuOpen(),i=tt.html`
2598
+ `]});var tt,cu,ua,hr,pa=l(()=>{"use strict";tt=u(b()),cu=u(Rr());_c();ua=u(m());Zs();Zc();hr=class{constructor(e){this.searchBar=e}render(){if(!this.searchBar.hasLocaleSelector()&&!this.searchBar.hasFacets())return tt.html``;let e=this.searchBar.isMobile(),r=!e&&this.searchBar.dense||e&&this.searchBar.isMobileMenuOpen(),i=tt.html`
2599
2599
  ${this.searchBar.hasLocaleSelector()&&(this.searchBar.hasFacets()||e)?tt.html`
2600
2600
  <ft-chip part="selected-filters selected-filter-ft-locale"
2601
2601
  ?dense=${this.searchBar.dense&&!e}
@@ -2606,20 +2606,20 @@
2606
2606
  ${this.getLocaleLabel(this.searchBar.contentLocale)}
2607
2607
  </ft-chip>
2608
2608
  `:null}
2609
- ${(0,uu.repeat)(this.searchBar.facets,o=>o.key,o=>{let n=Vg(o);return(0,uu.repeat)(n,s=>{let a=o.label+": "+Bg(s),c=o.key.replace(":","-"),p=tt.html`
2609
+ ${(0,cu.repeat)(this.searchBar.facets,o=>o.key,o=>{let n=Bg(o);return(0,cu.repeat)(n,s=>{let a=o.label+": "+Mg(s),c=o.key.replace(":","-"),p=tt.html`
2610
2610
  <ft-chip
2611
2611
  part="selected-filters selected-filter-${c}"
2612
2612
  ?dense=${this.searchBar.dense&&!e}
2613
2613
  ?clickable=${e}
2614
2614
  ?removable=${!e}
2615
- icon=${e?tt.nothing:"close"}
2615
+ icon="${e?tt.nothing:"close"}"
2616
2616
  label="${a}"
2617
- title=${r?a:tt.nothing}
2617
+ title="${r?a:tt.nothing}"
2618
2618
  @click=${()=>this.openMobileFilters(o.key)}
2619
2619
  @icon-click=${()=>this.searchBar.setFilter(o.key,n.filter(d=>d!==s))}
2620
2620
  data-key="${o.key}"
2621
2621
  data-value="${s}">
2622
- ${Fg(s)}
2622
+ ${Dg(s)}
2623
2623
  </ft-chip>
2624
2624
  `;return r?p:tt.html`
2625
2625
  <ft-tooltip inline text="${a}">
@@ -2656,7 +2656,7 @@
2656
2656
 
2657
2657
  ft-snap-scroll.ft-search-bar--selected-filters {
2658
2658
  overflow: hidden;
2659
- ${(0,pa.setVariable)(Je.gap,"4px")};
2659
+ ${(0,ua.setVariable)(Je.gap,"4px")};
2660
2660
  }
2661
2661
 
2662
2662
  ft-snap-scroll.ft-search-bar--selected-filters::part(content) {
@@ -2664,8 +2664,8 @@
2664
2664
  }
2665
2665
 
2666
2666
  .ft-search-bar--desktop ft-snap-scroll.ft-search-bar--selected-filters {
2667
- ${(0,pa.setVariable)(Me.iconSize,"17px")};
2668
- ${(0,pa.setVariable)(Me.fontSize,"12px")};
2667
+ ${(0,ua.setVariable)(Me.iconSize,"17px")};
2668
+ ${(0,ua.setVariable)(Me.fontSize,"12px")};
2669
2669
  }
2670
2670
 
2671
2671
  .ft-search-bar--selected-filters * {
@@ -2675,8 +2675,8 @@
2675
2675
  .ft-search-bar--selected-filters ft-chip {
2676
2676
  flex-grow: 0;
2677
2677
  }
2678
- `});var Jt,Gy,Qy,l0,Ro,Xy=l(()=>{"use strict";Jt=u(b());da();ua();Gy=u(it()),Qy=u(m()),l0=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},Ro=class{constructor(e,r,i){this.searchBar=e,this.selectedFacetsManager=r??new hr(e),this.suggestManager=i??new dr(e)}render(){var e;let r={"ft-search-bar--container":!0,"ft-search-bar--mobile":!0,"ft-search-bar--mobile-menu-open":this.searchBar.isMobileMenuOpen(),"ft-search-bar--forced-open":this.searchBar.forceMobileMenuOpen};return Jt.html`
2679
- <div class="${(0,Gy.classMap)(r)}" part="container" tabindex="-1">
2678
+ `});var Jt,qy,Ky,s0,Ro,Wy=l(()=>{"use strict";Jt=u(b());pa();ca();qy=u(it()),Ky=u(m()),s0=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},Ro=class{constructor(e,r,i){this.searchBar=e,this.selectedFacetsManager=r??new hr(e),this.suggestManager=i??new dr(e)}render(){var e;let r={"ft-search-bar--container":!0,"ft-search-bar--mobile":!0,"ft-search-bar--mobile-menu-open":this.searchBar.isMobileMenuOpen(),"ft-search-bar--forced-open":this.searchBar.forceMobileMenuOpen};return Jt.html`
2679
+ <div class="${(0,qy.classMap)(r)}" part="container" tabindex="-1">
2680
2680
  <div class="ft-search-bar" role="search">
2681
2681
  <div class="ft-search-bar--input-container" part="input-container">
2682
2682
  <div class="ft-search-bar--input-outline" part="input-outline">
@@ -2734,8 +2734,8 @@
2734
2734
  </div>
2735
2735
  `}onSearchBarKeyDown(e){var r;switch(e.key){case"ArrowDown":e.stopPropagation(),e.preventDefault(),this.suggestManager.focusNextSuggestion();break;case"ArrowUp":e.stopPropagation(),e.preventDefault(),this.suggestManager.focusPreviousSuggestion();break;case"ArrowLeft":this.searchBar.selectedSuggestOptionId&&(e.stopPropagation(),e.preventDefault(),this.suggestManager.focusArrowLeft());break;case"ArrowRight":this.searchBar.selectedSuggestOptionId&&(e.stopPropagation(),e.preventDefault(),this.suggestManager.focusArrowRight());break;case"Enter":if(this.searchBar.selectedSuggestRemoveRecent)(r=this.suggestManager.selectedSuggestRemoveRecentButton)===null||r===void 0||r.click();else{let i=this.suggestManager.selectedSuggestOptionLink||this.searchBar.launchSearchButton;i?.click()}break}}onInput(e){let r=e.composedPath()[0];this.searchBar.query=r.value}};Ro.styles=Jt.css`
2736
2736
 
2737
- `;l0([(0,Qy.ignoreComposingEvents)()],Ro.prototype,"onSearchBarKeyDown",null)});var rt,Yy,Zy,Jy,c0,To,eb=l(()=>{"use strict";rt=u(b()),Yy=u(Rr());da();ua();Zy=u(it()),Jy=u(m()),c0=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},To=class{constructor(e,r,i){this.searchBar=e,this.selectedFacetsManager=r??new hr(e),this.suggestManager=i??new dr(e)}render(){var e;let r={"ft-search-bar--container":!0,"ft-search-bar--dense":this.searchBar.dense,"ft-search-bar--desktop":!0,"ft-search-bar--floating-panel-open":this.searchBar.displayFacets&&!this.searchBar.forceMenuOpen,"ft-search-bar--forced-open":this.searchBar.forceMenuOpen};return rt.html`
2738
- <div class="${(0,Zy.classMap)(r)}" part="container" tabindex="-1">
2737
+ `;s0([(0,Ky.ignoreComposingEvents)()],Ro.prototype,"onSearchBarKeyDown",null)});var rt,Gy,Qy,Xy,a0,To,Yy=l(()=>{"use strict";rt=u(b()),Gy=u(Rr());pa();ca();Qy=u(it()),Xy=u(m()),a0=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},To=class{constructor(e,r,i){this.searchBar=e,this.selectedFacetsManager=r??new hr(e),this.suggestManager=i??new dr(e)}render(){var e;let r={"ft-search-bar--container":!0,"ft-search-bar--dense":this.searchBar.dense,"ft-search-bar--desktop":!0,"ft-search-bar--floating-panel-open":this.searchBar.displayFacets&&!this.searchBar.forceMenuOpen,"ft-search-bar--forced-open":this.searchBar.forceMenuOpen};return rt.html`
2738
+ <div class="${(0,Qy.classMap)(r)}" part="container" tabindex="-1">
2739
2739
  <div class="ft-search-bar" part="search-bar" role="search">
2740
2740
  ${this.renderSearchBarLeftAction()}
2741
2741
  <div class="ft-search-bar--input-container" part="input-container" tabindex="-1">
@@ -2782,7 +2782,7 @@
2782
2782
  ariaLabel="${this.searchBar.labelResolver.resolve("selectLocale")}"
2783
2783
  .exportpartsPrefixes=${["content-locale","select-ft-locale"]}
2784
2784
  @change=${e=>this.searchBar.contentLocale=e.detail==null?void 0:e.detail}>
2785
- ${(0,Yy.repeat)(this.searchBar.availableContentLocales,e=>e.lang,e=>rt.html`
2785
+ ${(0,Gy.repeat)(this.searchBar.availableContentLocales,e=>e.lang,e=>rt.html`
2786
2786
  <ft-select-option .value=${e.lang}
2787
2787
  label="${e.label}"
2788
2788
  ?selected=${e.lang==this.searchBar.contentLocale}>
@@ -2813,7 +2813,7 @@
2813
2813
  </div>
2814
2814
  `}onSearchBarKeyDown(e){var r;switch(["Escape","Tab","Shift"].includes(e.key)||(this.searchBar.displaySuggestListbox=!0),e.key){case"Tab":this.searchBar.displaySuggestListbox=!1,this.searchBar.selectedSuggestOptionId=void 0;break;case"Escape":this.suggestManager.shouldDisplaySuggestions&&(e.stopPropagation(),e.preventDefault(),this.searchBar.displaySuggestListbox=!1,this.searchBar.selectedSuggestOptionId=void 0),this.searchBar.mobileMenuOpen=!1;break;case"ArrowDown":e.stopPropagation(),e.preventDefault(),this.suggestManager.focusNextSuggestion();break;case"ArrowUp":e.stopPropagation(),e.preventDefault(),this.suggestManager.focusPreviousSuggestion();break;case"ArrowLeft":this.searchBar.selectedSuggestOptionId&&(e.stopPropagation(),e.preventDefault(),this.suggestManager.focusArrowLeft());break;case"ArrowRight":this.searchBar.selectedSuggestOptionId&&(e.stopPropagation(),e.preventDefault(),this.suggestManager.focusArrowRight());break;case"Enter":if(this.searchBar.selectedSuggestRemoveRecent)(r=this.suggestManager.selectedSuggestRemoveRecentButton)===null||r===void 0||r.click();else{let i=this.suggestManager.selectedSuggestOptionLink||this.searchBar.launchSearchButton;i?.click()}break}}onInput(e){let r=e.composedPath()[0];this.searchBar.query=r.value}onClick(){this.onFocus()}onFocus(){this.searchBar.reactToFocus&&(this.searchBar.displaySuggestListbox=!0)}};To.styles=rt.css`
2815
2815
 
2816
- `;c0([(0,Jy.ignoreComposingEvents)()],To.prototype,"onSearchBarKeyDown",null)});var G,z,Rn,J,V,tb,pu,u0,k,du=l(()=>{"use strict";G=u(b()),z=u(B()),Rn=u(Rr()),J=u(m());Ng();ge();kc();Mv();Or();Yv();Wt();Jc();Dy();Js();Zl();Ge();ca();Wy();ua();da();Xy();eb();Bc();Vt();V=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n};window.fluidtopics==null&&console.warn("Fluid Topics public API was not found. You can find it here: https://www.npmjs.com/package/@fluid-topics/public-api");tb={filtersButton:"Filters",inputPlaceHolder:"Search",filterInputPlaceHolder:"Filter {0}",clearInputButton:"Clear",clearFilterButton:"Clear",displayMoreFilterValuesButton:"More",noFilterValuesAvailable:"No values available",searchButton:"Search",clearFilters:"Clear filters",contentLocaleSelector:"Lang",presetsSelector:"Quick filters",removeRecentSearch:"Remove {0}",back:"Back",selectLocale:"Select a language"},pu=class extends CustomEvent{constructor(e){super("change",{detail:e})}},u0=()=>{},k=class extends J.FtLitElement{constructor(){super(...arguments),this.dense=!1,this.mode="auto",this.forceMobileMenuOpen=!1,this.forceMenuOpen=!1,this.baseUrl="",this.apiIntegrationIdentifier="ft-search-bar",this.availableContentLocales=[],this.availableContentLocalesInitialized=!1,this.labels={},this.labelResolver=new J.ParametrizedLabelResolver(tb,{}),this.displayedFilters=[],this.presets=[],this.priors=[],this.searchRequestSerializer=e=>new J.SearchPlaceConverter(this.baseUrl).serialize(e),this.focusOnDisplay=!1,this.metadataFilters=[],this.sizeCategory=Dt.M,this.displayFacets=!1,this.mobileMenuOpen=!1,this.facets=[],this.facetsInitialized=!1,this.knownFacetLabels=new Map,this.query="",this.suggestions=[],this.recentSearches=[],this.reactToFocus=!0,this.displaySuggestListbox=!1,this.selectedSuggestRemoveRecent=!1,this.suggestManager=new dr(this),this.selectedFacetsManager=new hr(this),this.desktopSearchBarManager=new To(this),this.mobileSearchBarManager=new Ro(this,this.selectedFacetsManager,this.suggestManager),this.stateChangeEventDebouncer=new J.Debouncer(10),this.updateLocalesDebouncer=new J.Debouncer(10),this.initSearchData=()=>{this.availableContentLocalesInitialized=!1,this.facetsLoaded=!1,this.facetsInitialized=!1,this.updateLocalesDebouncer.run(()=>{var e;(e=this.api)===null||e===void 0||e.getAvailableSearchLocales().then(r=>r.contentLocales).catch(()=>[]).then(r=>{this.availableContentLocales=r,this.availableContentLocalesInitialized=!0})}),this.updateFacets()},this.facetsLoaded=!1,this.updateFacetsDebouncer=new J.Debouncer(500),this.closeFloatingContainer=e=>{this.isMobile()||(this.displayFacets=this.displayFacets&&e.composedPath().some(r=>r===this.floatingContainer))},this.closeSuggestListbox=e=>{e.composedPath().some(o=>o===this||o===this.shadowRoot)||(this.displaySuggestListbox=!1,this.selectedSuggestOptionId=void 0)},this.compareUnknownFilters=(e,r)=>e.valueFilter&&r.valueFilter?this.compareValueFilters(e.valueFilter,r.valueFilter):e.dateFilter&&r.dateFilter?this.compareDateFilters(e.dateFilter,r.dateFilter):e.rangeFilter&&r.rangeFilter?this.compareRangeFilters(e.rangeFilter,r.rangeFilter):!1,this.compareValueFilters=(e,r)=>e.negative==r.negative&&e.values.length===r.values.length&&e.values.every(i=>r.values.includes(i)),this.compareDateFilters=(e,r)=>e.type===r.type,this.compareRangeFilters=(e,r)=>e.from===r.from&&e.to===r.to,this.compareFilters=(e,r)=>e.key===r.key&&this.compareUnknownFilters(e,r),this.compareRequests=(e,r)=>(e.contentLocale==null||r.contentLocale==null||e.contentLocale===r.contentLocale)&&e.metadataFilters.length===r.metadataFilters.length&&e.metadataFilters.every(i=>r.metadataFilters.some(o=>this.compareFilters(i,o)))}isMobileMenuOpen(){return this.isMobile()&&(this.forceMobileMenuOpen||this.forceMenuOpen||this.mobileMenuOpen)}get request(){return{uiLocale:this.uiLocale,contentLocale:this.contentLocale,query:this.query,facets:this.facetsRequest,priors:this.hasPriors?this.priors:void 0,metadataFilters:this.metadataFilters,paging:{perPage:0,page:1},sort:[]}}get facetsRequest(){let e=this.metadataFilters.filter(r=>{var i,o;return((o=(i=r.valueFilter)===null||i===void 0?void 0:i.values.length)!==null&&o!==void 0?o:0)>0&&!this.displayedFilters.includes(r.key)}).map(r=>({id:r.key}));return[...this.displayedFilters.map(r=>({id:r})),...e]}get suggestRequest(){return{contentLocale:this.contentLocale,input:this.query,metadataFilters:this.metadataFilters,sort:[]}}isMobile(){switch(this.mode){case"mobile":return!0;case"desktop":return!1;default:return this.sizeCategory===Dt.S}}hasFacets(){return this.facetsRequest.length>0}get hasPresets(){return this.presets!=null&&this.presets.length>0}get hasPriors(){return this.priors!=null&&this.priors.length>0}hasLocaleSelector(){return this.availableContentLocales.length>1}focus(){var e;(e=this.container)===null||e===void 0||e.focus()}async focusInput(e=!1){this.reactToFocus=e,await(0,J.waitFor)(()=>this.input,50),this.input.focus(),this.reactToFocus=!0}clear(){this.query="",this.metadataFilters=[],this.input&&(this.input.value=""),this.mobileMenuOpen=!1,this.displayFacets=!1}render(){return G.html`
2816
+ `;a0([(0,Xy.ignoreComposingEvents)()],To.prototype,"onSearchBarKeyDown",null)});var G,z,Rn,J,V,Zy,uu,l0,k,pu=l(()=>{"use strict";G=u(b()),z=u(B()),Rn=u(Rr()),J=u(m());Ig();ge();_c();$v();Or();Gv();Wt();Zc();Py();Zs();Yl();Ge();la();zy();ca();pa();Wy();Yy();Fc();Vt();V=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n};window.fluidtopics==null&&console.warn("Fluid Topics public API was not found. You can find it here: https://www.npmjs.com/package/@fluid-topics/public-api");Zy={filtersButton:"Filters",inputPlaceHolder:"Search",filterInputPlaceHolder:"Filter {0}",clearInputButton:"Clear",clearFilterButton:"Clear",displayMoreFilterValuesButton:"More",noFilterValuesAvailable:"No values available",searchButton:"Search",clearFilters:"Clear filters",contentLocaleSelector:"Lang",presetsSelector:"Quick filters",removeRecentSearch:"Remove {0}",back:"Back",selectLocale:"Select a language"},uu=class extends CustomEvent{constructor(e){super("change",{detail:e})}},l0=()=>{},k=class extends J.FtLitElement{constructor(){super(...arguments),this.dense=!1,this.mode="auto",this.forceMobileMenuOpen=!1,this.forceMenuOpen=!1,this.baseUrl="",this.apiIntegrationIdentifier="ft-search-bar",this.availableContentLocales=[],this.availableContentLocalesInitialized=!1,this.labels={},this.labelResolver=new J.ParametrizedLabelResolver(Zy,{}),this.displayedFilters=[],this.presets=[],this.priors=[],this.searchRequestSerializer=e=>new J.SearchPlaceConverter(this.baseUrl).serialize(e),this.focusOnDisplay=!1,this.metadataFilters=[],this.sizeCategory=Dt.M,this.displayFacets=!1,this.mobileMenuOpen=!1,this.facets=[],this.facetsInitialized=!1,this.knownFacetLabels=new Map,this.query="",this.suggestions=[],this.recentSearches=[],this.reactToFocus=!0,this.displaySuggestListbox=!1,this.selectedSuggestRemoveRecent=!1,this.suggestManager=new dr(this),this.selectedFacetsManager=new hr(this),this.desktopSearchBarManager=new To(this),this.mobileSearchBarManager=new Ro(this,this.selectedFacetsManager,this.suggestManager),this.stateChangeEventDebouncer=new J.Debouncer(10),this.updateLocalesDebouncer=new J.Debouncer(10),this.initSearchData=()=>{this.availableContentLocalesInitialized=!1,this.facetsLoaded=!1,this.facetsInitialized=!1,this.updateLocalesDebouncer.run(()=>{var e;(e=this.api)===null||e===void 0||e.getAvailableSearchLocales().then(r=>r.contentLocales).catch(()=>[]).then(r=>{this.availableContentLocales=r,this.availableContentLocalesInitialized=!0})}),this.updateFacets()},this.facetsLoaded=!1,this.updateFacetsDebouncer=new J.Debouncer(500),this.closeFloatingContainer=e=>{this.isMobile()||(this.displayFacets=this.displayFacets&&e.composedPath().some(r=>r===this.floatingContainer))},this.closeSuggestListbox=e=>{e.composedPath().some(o=>o===this||o===this.shadowRoot)||(this.displaySuggestListbox=!1,this.selectedSuggestOptionId=void 0)},this.compareUnknownFilters=(e,r)=>e.valueFilter&&r.valueFilter?this.compareValueFilters(e.valueFilter,r.valueFilter):e.dateFilter&&r.dateFilter?this.compareDateFilters(e.dateFilter,r.dateFilter):e.rangeFilter&&r.rangeFilter?this.compareRangeFilters(e.rangeFilter,r.rangeFilter):!1,this.compareValueFilters=(e,r)=>e.negative==r.negative&&e.values.length===r.values.length&&e.values.every(i=>r.values.includes(i)),this.compareDateFilters=(e,r)=>e.type===r.type,this.compareRangeFilters=(e,r)=>e.from===r.from&&e.to===r.to,this.compareFilters=(e,r)=>e.key===r.key&&this.compareUnknownFilters(e,r),this.compareRequests=(e,r)=>(e.contentLocale==null||r.contentLocale==null||e.contentLocale===r.contentLocale)&&e.metadataFilters.length===r.metadataFilters.length&&e.metadataFilters.every(i=>r.metadataFilters.some(o=>this.compareFilters(i,o)))}isMobileMenuOpen(){return this.isMobile()&&(this.forceMobileMenuOpen||this.forceMenuOpen||this.mobileMenuOpen)}get request(){return{uiLocale:this.uiLocale,contentLocale:this.contentLocale,query:this.query,facets:this.facetsRequest,priors:this.hasPriors?this.priors:void 0,metadataFilters:this.metadataFilters,paging:{perPage:0,page:1},sort:[]}}get facetsRequest(){let e=this.metadataFilters.filter(r=>{var i,o;return((o=(i=r.valueFilter)===null||i===void 0?void 0:i.values.length)!==null&&o!==void 0?o:0)>0&&!this.displayedFilters.includes(r.key)}).map(r=>({id:r.key}));return[...this.displayedFilters.map(r=>({id:r})),...e]}get suggestRequest(){return{contentLocale:this.contentLocale,input:this.query,metadataFilters:this.metadataFilters,sort:[]}}isMobile(){switch(this.mode){case"mobile":return!0;case"desktop":return!1;default:return this.sizeCategory===Dt.S}}hasFacets(){return this.facetsRequest.length>0}get hasPresets(){return this.presets!=null&&this.presets.length>0}get hasPriors(){return this.priors!=null&&this.priors.length>0}hasLocaleSelector(){return this.availableContentLocales.length>1}focus(){var e;(e=this.container)===null||e===void 0||e.focus()}async focusInput(e=!1){this.reactToFocus=e,await(0,J.waitFor)(()=>this.input,50),this.input.focus(),this.reactToFocus=!0}clear(){this.query="",this.metadataFilters=[],this.input&&(this.input.value=""),this.mobileMenuOpen=!1,this.displayFacets=!1}render(){return G.html`
2817
2817
  <ft-size-watcher @change=${this.updateSize}></ft-size-watcher>
2818
2818
  <div class="sr-only" aria-live="polite" aria-atomic="true">
2819
2819
  ${this.renderLiveText()}
@@ -2841,7 +2841,7 @@
2841
2841
  </div>
2842
2842
  </ft-accordion-item>
2843
2843
  `:null}
2844
- ${(0,Rn.repeat)(this.facets,r=>r.key,r=>{let i=_c(r),o=r.key.replace(":","-"),n=Hg(i);return r.rootNodes.length>0?G.html`
2844
+ ${(0,Rn.repeat)(this.facets,r=>r.key,r=>{let i=Tc(r),o=r.key.replace(":","-"),n=Fg(i);return r.rootNodes.length>0?G.html`
2845
2845
  <ft-accordion-item data-facet-key="${r.key}">
2846
2846
  <div class="ft-search-bar--filter-label" slot="toggle">
2847
2847
  <ft-typography variant="button">${r.label}</ft-typography>
@@ -2934,7 +2934,7 @@
2934
2934
  ${this.getContentLocaleRadioGroup()}
2935
2935
  </div>
2936
2936
  `:G.nothing}
2937
- ${(0,Rn.repeat)(this.facets,e=>e.key,e=>{let r=_c(e),i=r.options.some(n=>{var s,a;return((a=(s=n.subOptions)===null||s===void 0?void 0:s.length)!==null&&a!==void 0?a:0)>0}),o=e.key.replace(":","-");return G.html`
2937
+ ${(0,Rn.repeat)(this.facets,e=>e.key,e=>{let r=Tc(e),i=r.options.some(n=>{var s,a;return((a=(s=n.subOptions)===null||s===void 0?void 0:s.length)!==null&&a!==void 0?a:0)>0}),o=e.key.replace(":","-");return G.html`
2938
2938
  <ft-filter
2939
2939
  class="${i?"ft-search-bar--hierarchical-filter":""}"
2940
2940
  part="filters filter filter-${o}"
@@ -2953,14 +2953,14 @@
2953
2953
  ></ft-filter>
2954
2954
  `})}
2955
2955
  </ft-snap-scroll>
2956
- `:G.nothing}async firstUpdated(e){super.firstUpdated(e),this.initApi(),window.addEventListener("storage",r=>{r.key===this.recentSearchesStorageKey&&this.initRecentSearches()})}update(e){var r,i,o,n,s;if(e.has("labels")&&(this.labelResolver=new J.ParametrizedLabelResolver(tb,this.labels)),e.has("sizeCategory")&&(this.mobileMenuOpen=!1,this.displayFacets=this.displayFacets&&!this.isMobile()),super.update(e),(e.has("availableContentLocales")||e.has("contentLocale"))&&this.availableContentLocales.length>0){let a=c=>this.availableContentLocales.some(p=>p.lang==c);a(this.contentLocale)||(this.contentLocale=e.has("contentLocale")&&a(e.get("contentLocale"))?e.get("contentLocale"):(r=this.availableContentLocales[0])===null||r===void 0?void 0:r.lang)}if(e.has("baseUrl")&&this.baseUrl&&(this.baseUrl.endsWith("/")&&(this.baseUrl=this.baseUrl.replace(/\/$/,"")),this.initRecentSearches()),e.has("presets")&&((i=this.presets)!==null&&i!==void 0?i:[]).forEach(a=>a.metadataFilters.forEach(c=>{c.valueFilter&&(c.valueFilter.values=c.valueFilter.values.map(p=>Qs(p)))})),e.has("presets")||e.has("selectedPreset")){let a=((o=this.presets)!==null&&o!==void 0?o:[]).find(c=>c.name===this.selectedPreset);a&&!this.compareRequests(this.request,a)&&this.setFiltersFromPreset(a)}e.has("contentLocale")&&this.contentLocale!=null&&(this.knownFacetLabels=new Map),["contentLocale","metadataFilters"].some(a=>e.has(a))&&(this.selectedPreset=(s=((n=this.presets)!==null&&n!==void 0?n:[]).find(a=>this.compareRequests(a,this.request)))===null||s===void 0?void 0:s.name),["baseUrl","apiIntegrationIdentifier"].some(a=>e.has(a))&&(this.api=void 0,this.initApi()),e.has("api")&&this.api&&this.initSearchData(),["uiLocale","contentLocale","metadataFilters","displayedFilters"].some(a=>e.has(a))&&this.updateFacets(),["query","uiLocale","contentLocale","metadataFilters","displayedFilters","api"].some(a=>e.has(a))&&this.suggestManager.update(),["query","uiLocale","contentLocale","metadataFilters"].some(a=>e.has(a))&&this.dispatchStateChangeEvent()}dispatchStateChangeEvent(){this.stateChangeEventDebouncer.run(()=>this.dispatchEvent(new pu(this.request)))}updateFacets(){this.facetsRequest.length>0?(this.facetsLoaded=!1,this.updateFacetsDebouncer.run(async()=>{await this.retrieveFacetsFromSearch(),this.facetsLoaded=!0,this.facetsInitialized=!0},this.facetsInitialized?500:10)):(this.facets=[],this.facetsLoaded=!0,this.facetsInitialized=!0)}contentAvailableCallback(e){var r,i,o;if(super.contentAvailableCallback(e),e.has("displayFacets")&&this.displayFacets&&((r=this.floatingContainer)===null||r===void 0||r.focus()),this.scrollToFacet!=null&&this.facetsLoaded){(i=this.scrollingFiltersContainer)===null||i===void 0||i.scrollIndexIntoView(this.facets.findIndex(s=>s.key===this.scrollToFacet));let n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelector(`ft-accordion-item[data-facet-key="${this.scrollToFacet}"]`);n&&(n.active=!0),this.scrollToFacet=void 0}}initApi(){this.api==null&&(this.api=window.fluidtopics?new window.fluidtopics.FluidTopicsApi(this.baseUrl,this.apiIntegrationIdentifier,!0):void 0,setTimeout(()=>this.initApi(),10))}async retrieveFacetsFromSearch(){var e;if(this.facetsRequest.length==0){this.facets=[];return}let r=new Map;await((e=this.api)===null||e===void 0?void 0:e.search({...this.request,query:""}).then(i=>i.facets.forEach(o=>{this.knownFacetLabels.set(o.key,o.label),r.set(o.key,o)})).catch(u0)),this.facets=[];for(let i of this.facetsRequest)r.has(i.id)?this.facets.push(r.get(i.id)):this.knownFacetLabels.has(i.id)&&this.facets.push({key:i.id,label:this.knownFacetLabels.get(i.id),rootNodes:[],multiSelectionable:!0,hierarchical:!1})}onFloatingContainerKeyUp(e){var r;e.key==="Escape"&&(this.displayFacets=!1,(r=this.filtersOpener)===null||r===void 0||r.focus())}setQuery(e){this.input&&(this.input.value=e),this.query=e}onLaunchSearch(){if(this.query){let e=this.recentSearches.filter(r=>r.toLowerCase()!==this.query.toLowerCase()).filter((r,i)=>i<20);this.recentSearches=[this.query,...e],this.saveRecentSearches()}this.mobileMenuOpen=!1,this.displayFacets=!1,this.focus()}get recentSearchesStorageKey(){return this.baseUrl+":ft:recent-search-queries"}initRecentSearches(){var e;this.recentSearches=JSON.parse((e=window.localStorage.getItem(this.recentSearchesStorageKey))!==null&&e!==void 0?e:"[]")}saveRecentSearches(){let e=JSON.stringify(this.recentSearches);window.localStorage.setItem(this.recentSearchesStorageKey,e),window.dispatchEvent(new StorageEvent("storage",{key:this.recentSearchesStorageKey,newValue:e,storageArea:window.localStorage,url:window.location.href}))}async connectedCallback(){super.connectedCallback(),document.addEventListener("pointerdown",this.closeSuggestListbox),document.addEventListener("focusin",this.closeFloatingContainer),document.addEventListener("click",this.closeFloatingContainer),this.focusOnDisplay&&!J.isTouchScreen&&this.focusInput(),O.addEventListener("authentication-change",this.initSearchData),this.initSearchData()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("pointerdown",this.closeSuggestListbox),document.removeEventListener("focusin",this.closeFloatingContainer),document.removeEventListener("click",this.closeFloatingContainer),O.removeEventListener("authentication-change",this.initSearchData)}updateSize(e){this.sizeCategory=e.detail.category}setFilter(e,r){let i=this.metadataFilters.filter(o=>!o.valueFilter||o.key!==e);this.facets.forEach(o=>{o.key===e&&(0,J.flatDeep)(o.rootNodes,n=>n.childNodes).forEach(n=>n.selected=r.includes(n.value))}),r.length&&i.push({key:e,valueFilter:{negative:!1,values:r}}),this.metadataFilters=i,this.scrollToFacet=e}setFiltersFromPreset(e){e!=null&&(e.contentLocale!=null&&(this.contentLocale=e.contentLocale),this.metadataFilters=e.metadataFilters)}clearFilters(){this.facets.forEach(r=>(0,J.flatDeep)(r.rootNodes,i=>i.childNodes).forEach(i=>i.selected=!1)),this.metadataFilters=[];let e=this.facets[0];this.scrollToFacet=e?.key}querySelector(e){return this.shadowRoot.querySelector(e)}querySelectorAll(e){return this.shadowRoot.querySelectorAll(e)}renderDesktopFloatingMenu(){return this.forceMenuOpen?G.nothing:G.html`
2956
+ `:G.nothing}firstUpdated(e){super.firstUpdated(e),this.initApi(),window.addEventListener("storage",r=>{r.key===this.recentSearchesStorageKey&&this.initRecentSearches()})}update(e){var r,i,o,n,s;if(e.has("labels")&&(this.labelResolver=new J.ParametrizedLabelResolver(Zy,this.labels)),e.has("sizeCategory")&&(this.mobileMenuOpen=!1,this.displayFacets=this.displayFacets&&!this.isMobile()),super.update(e),(e.has("availableContentLocales")||e.has("contentLocale"))&&this.availableContentLocales.length>0){let a=c=>this.availableContentLocales.some(p=>p.lang==c);a(this.contentLocale)||(this.contentLocale=e.has("contentLocale")&&a(e.get("contentLocale"))?e.get("contentLocale"):(r=this.availableContentLocales[0])===null||r===void 0?void 0:r.lang)}if(e.has("baseUrl")&&this.baseUrl&&(this.baseUrl.endsWith("/")&&(this.baseUrl=this.baseUrl.replace(/\/$/,"")),this.initRecentSearches()),e.has("presets")&&((i=this.presets)!==null&&i!==void 0?i:[]).forEach(a=>a.metadataFilters.forEach(c=>{c.valueFilter&&(c.valueFilter.values=c.valueFilter.values.map(p=>Gs(p)))})),e.has("presets")||e.has("selectedPreset")){let a=((o=this.presets)!==null&&o!==void 0?o:[]).find(c=>c.name===this.selectedPreset);a&&!this.compareRequests(this.request,a)&&this.setFiltersFromPreset(a)}e.has("contentLocale")&&this.contentLocale!=null&&(this.knownFacetLabels=new Map),["contentLocale","metadataFilters"].some(a=>e.has(a))&&(this.selectedPreset=(s=((n=this.presets)!==null&&n!==void 0?n:[]).find(a=>this.compareRequests(a,this.request)))===null||s===void 0?void 0:s.name),["baseUrl","apiIntegrationIdentifier"].some(a=>e.has(a))&&(this.api=void 0,this.initApi()),e.has("api")&&this.api&&this.initSearchData(),["uiLocale","contentLocale","metadataFilters","displayedFilters"].some(a=>e.has(a))&&this.updateFacets(),["query","uiLocale","contentLocale","metadataFilters","displayedFilters","api"].some(a=>e.has(a))&&this.suggestManager.update(),["query","uiLocale","contentLocale","metadataFilters"].some(a=>e.has(a))&&this.dispatchStateChangeEvent()}dispatchStateChangeEvent(){this.stateChangeEventDebouncer.run(()=>this.dispatchEvent(new uu(this.request)))}updateFacets(){this.facetsRequest.length>0?(this.facetsLoaded=!1,this.updateFacetsDebouncer.run(async()=>{await this.retrieveFacetsFromSearch(),this.facetsLoaded=!0,this.facetsInitialized=!0},this.facetsInitialized?500:10)):(this.facets=[],this.facetsLoaded=!0,this.facetsInitialized=!0)}contentAvailableCallback(e){var r,i,o;if(super.contentAvailableCallback(e),e.has("displayFacets")&&this.displayFacets&&((r=this.floatingContainer)===null||r===void 0||r.focus()),this.scrollToFacet!=null&&this.facetsLoaded){(i=this.scrollingFiltersContainer)===null||i===void 0||i.scrollIndexIntoView(this.facets.findIndex(s=>s.key===this.scrollToFacet));let n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelector(`ft-accordion-item[data-facet-key="${this.scrollToFacet}"]`);n&&(n.active=!0),this.scrollToFacet=void 0}}initApi(){this.api==null&&(this.api=window.fluidtopics?new window.fluidtopics.FluidTopicsApi(this.baseUrl,this.apiIntegrationIdentifier,!0):void 0,setTimeout(()=>this.initApi(),10))}async retrieveFacetsFromSearch(){var e;if(this.facetsRequest.length==0){this.facets=[];return}let r=new Map;await((e=this.api)===null||e===void 0?void 0:e.search({...this.request,query:""}).then(i=>i.facets.forEach(o=>{this.knownFacetLabels.set(o.key,o.label),r.set(o.key,o)})).catch(l0)),this.facets=[];for(let i of this.facetsRequest)r.has(i.id)?this.facets.push(r.get(i.id)):this.knownFacetLabels.has(i.id)&&this.facets.push({key:i.id,label:this.knownFacetLabels.get(i.id),rootNodes:[],multiSelectionable:!0,hierarchical:!1})}onFloatingContainerKeyUp(e){var r;e.key==="Escape"&&(this.displayFacets=!1,(r=this.filtersOpener)===null||r===void 0||r.focus())}setQuery(e){this.input&&(this.input.value=e),this.query=e}onLaunchSearch(){if(this.query){let e=this.recentSearches.filter(r=>r.toLowerCase()!==this.query.toLowerCase()).filter((r,i)=>i<20);this.recentSearches=[this.query,...e],this.saveRecentSearches()}this.mobileMenuOpen=!1,this.displayFacets=!1,this.focus()}get recentSearchesStorageKey(){return this.baseUrl+":ft:recent-search-queries"}initRecentSearches(){var e;this.recentSearches=JSON.parse((e=window.localStorage.getItem(this.recentSearchesStorageKey))!==null&&e!==void 0?e:"[]")}saveRecentSearches(){let e=JSON.stringify(this.recentSearches);window.localStorage.setItem(this.recentSearchesStorageKey,e),window.dispatchEvent(new StorageEvent("storage",{key:this.recentSearchesStorageKey,newValue:e,storageArea:window.localStorage,url:window.location.href}))}async connectedCallback(){super.connectedCallback(),document.addEventListener("pointerdown",this.closeSuggestListbox),document.addEventListener("focusin",this.closeFloatingContainer),document.addEventListener("click",this.closeFloatingContainer),this.focusOnDisplay&&!J.isTouchScreen&&this.focusInput(),O.addEventListener("authentication-change",this.initSearchData),this.initSearchData()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("pointerdown",this.closeSuggestListbox),document.removeEventListener("focusin",this.closeFloatingContainer),document.removeEventListener("click",this.closeFloatingContainer),O.removeEventListener("authentication-change",this.initSearchData)}updateSize(e){this.sizeCategory=e.detail.category}setFilter(e,r){let i=this.metadataFilters.filter(o=>!o.valueFilter||o.key!==e);this.facets.forEach(o=>{o.key===e&&(0,J.flatDeep)(o.rootNodes,n=>n.childNodes).forEach(n=>n.selected=r.includes(n.value))}),r.length&&i.push({key:e,valueFilter:{negative:!1,values:r}}),this.metadataFilters=i,this.scrollToFacet=e}setFiltersFromPreset(e){e!=null&&(e.contentLocale!=null&&(this.contentLocale=e.contentLocale),this.metadataFilters=e.metadataFilters)}clearFilters(){this.facets.forEach(r=>(0,J.flatDeep)(r.rootNodes,i=>i.childNodes).forEach(i=>i.selected=!1)),this.metadataFilters=[];let e=this.facets[0];this.scrollToFacet=e?.key}querySelector(e){return this.shadowRoot.querySelector(e)}querySelectorAll(e){return this.shadowRoot.querySelectorAll(e)}renderDesktopFloatingMenu(){return this.forceMenuOpen?G.nothing:G.html`
2957
2957
  <div class="ft-search-bar--floating-panel"
2958
2958
  id="ft-search-bar-floating-panel"
2959
2959
  @keyup=${this.onFloatingContainerKeyUp}
2960
2960
  part="floating-panel"
2961
2961
  tabindex="-1">
2962
2962
  ${this.renderDesktopMenu()}
2963
- </div>`}get ariaActiveDescendent(){if(this.selectedSuggestOptionId)return this.selectedSuggestRemoveRecent?"remove-"+this.selectedSuggestOptionId:this.selectedSuggestOptionId}};k.elementDefinitions={"ft-accordion":ur,"ft-accordion-item":Mt,"ft-button":_,"ft-chip":fe,"ft-filter":W,"ft-filter-option":St,"ft-icon":oe,"ft-ripple":L,"ft-select":ie,"ft-select-option":qe,"ft-size-watcher":gt,"ft-skeleton":ti,"ft-snap-scroll":Ee,"ft-tooltip":ve,"ft-typography":j,"ft-radio-group":yt,"ft-radio":ke};k.styles=[Dr,J.noTextInputDefaultClearButton,Fy,By,hr.styles,dr.styles,J.screenReaderStyles];V([(0,z.property)({type:Boolean})],k.prototype,"dense",void 0);V([(0,z.property)()],k.prototype,"mode",void 0);V([(0,z.property)({type:Boolean})],k.prototype,"forceMobileMenuOpen",void 0);V([(0,z.property)({type:Boolean})],k.prototype,"forceMenuOpen",void 0);V([(0,z.property)()],k.prototype,"baseUrl",void 0);V([(0,z.property)()],k.prototype,"apiIntegrationIdentifier",void 0);V([(0,z.property)()],k.prototype,"contentLocale",void 0);V([(0,z.state)()],k.prototype,"availableContentLocales",void 0);V([(0,z.state)()],k.prototype,"availableContentLocalesInitialized",void 0);V([(0,z.property)()],k.prototype,"uiLocale",void 0);V([(0,J.jsonProperty)({})],k.prototype,"labels",void 0);V([(0,J.jsonProperty)([])],k.prototype,"displayedFilters",void 0);V([(0,J.jsonProperty)([])],k.prototype,"presets",void 0);V([(0,z.property)({type:String,reflect:!0})],k.prototype,"selectedPreset",void 0);V([(0,J.jsonProperty)([])],k.prototype,"priors",void 0);V([(0,z.property)()],k.prototype,"searchRequestSerializer",void 0);V([(0,z.property)({type:Boolean})],k.prototype,"focusOnDisplay",void 0);V([(0,z.state)()],k.prototype,"metadataFilters",void 0);V([(0,z.state)()],k.prototype,"sizeCategory",void 0);V([(0,z.state)()],k.prototype,"displayFacets",void 0);V([(0,z.state)()],k.prototype,"mobileMenuOpen",void 0);V([(0,z.state)()],k.prototype,"facets",void 0);V([(0,z.state)()],k.prototype,"facetsInitialized",void 0);V([(0,z.query)(".ft-search-bar--container")],k.prototype,"container",void 0);V([(0,z.query)(".ft-search-bar--filters-opener")],k.prototype,"filtersOpener",void 0);V([(0,z.query)(".ft-search-bar--floating-panel")],k.prototype,"floatingContainer",void 0);V([(0,z.query)("ft-snap-scroll.ft-search-bar--filters-container")],k.prototype,"scrollingFiltersContainer",void 0);V([(0,z.query)(".ft-search-bar--input")],k.prototype,"input",void 0);V([(0,z.query)(".ft-search-bar--launch-search")],k.prototype,"launchSearchButton",void 0);V([(0,z.state)()],k.prototype,"query",void 0);V([(0,z.state)()],k.prototype,"suggestions",void 0);V([(0,z.state)()],k.prototype,"recentSearches",void 0);V([(0,z.state)()],k.prototype,"scrollToFacet",void 0);V([(0,z.state)()],k.prototype,"api",void 0);V([(0,z.state)()],k.prototype,"displaySuggestListbox",void 0);V([(0,z.state)()],k.prototype,"selectedSuggestOptionId",void 0);V([(0,z.state)()],k.prototype,"selectedSuggestRemoveRecent",void 0);V([(0,z.state)()],k.prototype,"facetsLoaded",void 0)});var rb=l(()=>{"use strict"});var ib,ob=l(()=>{"use strict";du();ib={"ft-search-bar":k}});var nb,sb=l(()=>{"use strict";nb=u(m());ob();(0,nb.customElements)(ib)});var ab=l(()=>{"use strict";du();ca();rb();sb()});var lb,cb,ub,pb=l(()=>{"use strict";lb=u(b());un();cb=u(m());Ge();ab();ub=lb.css`
2963
+ </div>`}get ariaActiveDescendent(){if(this.selectedSuggestOptionId)return this.selectedSuggestRemoveRecent?"remove-"+this.selectedSuggestOptionId:this.selectedSuggestOptionId}};k.elementDefinitions={"ft-accordion":ur,"ft-accordion-item":Mt,"ft-button":_,"ft-chip":fe,"ft-filter":W,"ft-filter-option":St,"ft-icon":oe,"ft-ripple":L,"ft-select":ie,"ft-select-option":qe,"ft-size-watcher":gt,"ft-skeleton":ti,"ft-snap-scroll":Ee,"ft-tooltip":ve,"ft-typography":j,"ft-radio-group":yt,"ft-radio":ke};k.styles=[Dr,J.noTextInputDefaultClearButton,Dy,My,hr.styles,dr.styles,J.screenReaderStyles];V([(0,z.property)({type:Boolean})],k.prototype,"dense",void 0);V([(0,z.property)()],k.prototype,"mode",void 0);V([(0,z.property)({type:Boolean})],k.prototype,"forceMobileMenuOpen",void 0);V([(0,z.property)({type:Boolean})],k.prototype,"forceMenuOpen",void 0);V([(0,z.property)()],k.prototype,"baseUrl",void 0);V([(0,z.property)()],k.prototype,"apiIntegrationIdentifier",void 0);V([(0,z.property)()],k.prototype,"contentLocale",void 0);V([(0,z.state)()],k.prototype,"availableContentLocales",void 0);V([(0,z.state)()],k.prototype,"availableContentLocalesInitialized",void 0);V([(0,z.property)()],k.prototype,"uiLocale",void 0);V([(0,J.jsonProperty)({})],k.prototype,"labels",void 0);V([(0,J.jsonProperty)([])],k.prototype,"displayedFilters",void 0);V([(0,J.jsonProperty)([])],k.prototype,"presets",void 0);V([(0,z.property)({type:String,reflect:!0})],k.prototype,"selectedPreset",void 0);V([(0,J.jsonProperty)([])],k.prototype,"priors",void 0);V([(0,z.property)()],k.prototype,"searchRequestSerializer",void 0);V([(0,z.property)({type:Boolean})],k.prototype,"focusOnDisplay",void 0);V([(0,z.state)()],k.prototype,"metadataFilters",void 0);V([(0,z.state)()],k.prototype,"sizeCategory",void 0);V([(0,z.state)()],k.prototype,"displayFacets",void 0);V([(0,z.state)()],k.prototype,"mobileMenuOpen",void 0);V([(0,z.state)()],k.prototype,"facets",void 0);V([(0,z.state)()],k.prototype,"facetsInitialized",void 0);V([(0,z.query)(".ft-search-bar--container")],k.prototype,"container",void 0);V([(0,z.query)(".ft-search-bar--filters-opener")],k.prototype,"filtersOpener",void 0);V([(0,z.query)(".ft-search-bar--floating-panel")],k.prototype,"floatingContainer",void 0);V([(0,z.query)("ft-snap-scroll.ft-search-bar--filters-container")],k.prototype,"scrollingFiltersContainer",void 0);V([(0,z.query)(".ft-search-bar--input")],k.prototype,"input",void 0);V([(0,z.query)(".ft-search-bar--launch-search")],k.prototype,"launchSearchButton",void 0);V([(0,z.state)()],k.prototype,"query",void 0);V([(0,z.state)()],k.prototype,"suggestions",void 0);V([(0,z.state)()],k.prototype,"recentSearches",void 0);V([(0,z.state)()],k.prototype,"scrollToFacet",void 0);V([(0,z.state)()],k.prototype,"api",void 0);V([(0,z.state)()],k.prototype,"displaySuggestListbox",void 0);V([(0,z.state)()],k.prototype,"selectedSuggestOptionId",void 0);V([(0,z.state)()],k.prototype,"selectedSuggestRemoveRecent",void 0);V([(0,z.state)()],k.prototype,"facetsLoaded",void 0)});var Jy=l(()=>{"use strict"});var eb,tb=l(()=>{"use strict";pu();eb={"ft-search-bar":k}});var rb,ib=l(()=>{"use strict";rb=u(m());tb();(0,rb.customElements)(eb)});var ob=l(()=>{"use strict";pu();la();Jy();ib()});var nb,sb,ab,lb=l(()=>{"use strict";nb=u(b());un();sb=u(m());Ge();ob();ab=nb.css`
2964
2964
  * {
2965
2965
  box-sizing: border-box;
2966
2966
  }
@@ -3012,18 +3012,18 @@
3012
3012
  }
3013
3013
 
3014
3014
  ft-ripple {
3015
- ${(0,cb.setVariable)(q.opacityContentOnSurfaceHover,q.opacityContentOnSurfaceSelected)}
3015
+ ${(0,sb.setVariable)(q.opacityContentOnSurfaceHover,q.opacityContentOnSurfaceSelected)}
3016
3016
  }
3017
- `});var db,Ni,hu,ri,hb=l(()=>{"use strict";db=u(m()),Ni=u(b());pb();hu=u(Rr());Or();Ge();ge();Vt();Ec();Wt();ri=class{constructor(e){this.ftSearchInput=e,this.listboxId="ft-search-input-suggestion"}render(){var e;let r=Er.get(),{recentQuerySuggestions:i}=this.ftSearchInput;return Ni.html`
3017
+ `});var cb,Ni,du,ri,ub=l(()=>{"use strict";cb=u(m()),Ni=u(b());lb();du=u(Rr());Or();Ge();ge();Vt();Cc();Wt();ri=class{constructor(e){this.ftSearchInput=e,this.listboxId="ft-search-input-suggestion"}render(){var e;let r=Er.get(),{recentQuerySuggestions:i}=this.ftSearchInput;return Ni.html`
3018
3018
  <div class="ft-search-input-suggestion ft-word-wrap"
3019
3019
  id="${this.listboxId}"
3020
3020
  role="listbox"
3021
3021
  aria-label="${wr.messages.suggestionsLabel()}"
3022
3022
  part="container">
3023
- ${(0,hu.repeat)(i,o=>o,(o,n)=>this.renderRecentQuery(n,o,r))}
3024
- ${(0,hu.repeat)((e=this.ftSearchInput.suggestResults)!==null&&e!==void 0?e:[],o=>o.value,(o,n)=>this.renderSuggestion(i.length+n,o,r))}
3023
+ ${(0,du.repeat)(i,o=>o,(o,n)=>this.renderRecentQuery(n,o,r))}
3024
+ ${(0,du.repeat)((e=this.ftSearchInput.suggestResults)!==null&&e!==void 0?e:[],o=>o.value,(o,n)=>this.renderSuggestion(i.length+n,o,r))}
3025
3025
  </div>
3026
- `}renderRecentQuery(e,r,i){return this.renderOption(e,r,"history",Ye.material,!0,i)}renderSuggestion(e,r,i){let o=r.type==="DOCUMENT"?Ye.file_format:Ye.fluid_topics,n;switch(r.type){case"MAP":n=r.editorialType==="BOOK"?Ce.BOOK:Ce.ARTICLE;break;case"DOCUMENT":n=Ps(r.mimeType,r.filenameExtension);break;case"TOPIC":n=Ce.TOPICS;break;case"HTML_PACKAGE":n=Ce.BOX_CODE;break;case"HTML_PACKAGE_PAGE":n=Ce.FILE_CODE;break}return this.renderOption(e,r.value,n,o,!1,i)}renderOption(e,r,i,o,n,s){let a=this.ftSearchInput.selectedSuggestOptionIndex===e,c=this.ftSearchInput.selectedSuggestOptionRemove,p=this.ftSearchInput.launchSearchPath?s.serializeToCurrentPageIfPossible({...this.ftSearchInput.request,query:r},this.ftSearchInput.launchSearchPath):Ni.nothing;return Ni.html`
3026
+ `}renderRecentQuery(e,r,i){return this.renderOption(e,r,"history",Ye.material,!0,i)}renderSuggestion(e,r,i){let o=r.type==="DOCUMENT"?Ye.file_format:Ye.fluid_topics,n;switch(r.type){case"MAP":n=r.editorialType==="BOOK"?Ce.BOOK:Ce.ARTICLE;break;case"DOCUMENT":n=Ls(r.mimeType,r.filenameExtension);break;case"TOPIC":n=Ce.TOPICS;break;case"HTML_PACKAGE":n=Ce.BOX_CODE;break;case"HTML_PACKAGE_PAGE":n=Ce.FILE_CODE;break}return this.renderOption(e,r.value,n,o,!1,i)}renderOption(e,r,i,o,n,s){let a=this.ftSearchInput.selectedSuggestOptionIndex===e,c=this.ftSearchInput.selectedSuggestOptionRemove,p=this.ftSearchInput.launchSearchPath?s.serializeToCurrentPageIfPossible({...this.ftSearchInput.request,query:r},this.ftSearchInput.launchSearchPath):Ni.nothing;return Ni.html`
3027
3027
  <div part="suggestion-container"
3028
3028
  class="ft-search-input-suggestion--container">
3029
3029
  <a href="${p}"
@@ -3053,8 +3053,8 @@
3053
3053
  </ft-button>
3054
3054
  `:Ni.nothing}
3055
3055
  </div>
3056
- `}onRemoveRecentQuery(e){var r;(r=this.ftSearchInput.stateManager)===null||r===void 0||r.removeRecentQuery(e)}onSelectOption(e){this.ftSearchInput.onSuggestionSelected(e)}get activeElementId(){let{selectedSuggestOptionIndex:e,selectedSuggestOptionRemove:r}=this.ftSearchInput;if(e!==void 0)return(r?"remove-suggestion-":"suggestion-")+e}get activeElement(){var e;let r=this.activeElementId;if(r!==void 0)return(e=this.ftSearchInput.shadowRoot.getElementById(r))!==null&&e!==void 0?e:void 0}recentQueriesCount(){return this.ftSearchInput.recentQuerySuggestions.length}suggestionsCount(){var e,r;return(r=(e=this.ftSearchInput.suggestResults)===null||e===void 0?void 0:e.length)!==null&&r!==void 0?r:0}optionsCount(){return this.recentQueriesCount()+this.suggestionsCount()}clearSelection(){this.ftSearchInput.selectedSuggestOptionIndex=void 0,this.ftSearchInput.selectedSuggestOptionRemove=!1}selectNext(){this.ftSearchInput.selectedSuggestOptionIndex===void 0?this.ftSearchInput.selectedSuggestOptionIndex=0:(this.ftSearchInput.selectedSuggestOptionIndex++,this.ftSearchInput.selectedSuggestOptionIndex>=this.optionsCount()&&this.clearSelection())}selectPrevious(){this.ftSearchInput.selectedSuggestOptionIndex===void 0?this.ftSearchInput.selectedSuggestOptionIndex=this.optionsCount()-1:(this.ftSearchInput.selectedSuggestOptionIndex--,this.ftSearchInput.selectedSuggestOptionIndex<0&&this.clearSelection())}selectLeft(){this.ftSearchInput.selectedSuggestOptionIndex!==void 0&&(this.ftSearchInput.selectedSuggestOptionRemove?this.ftSearchInput.selectedSuggestOptionRemove=!1:this.clearSelection())}isRemovable(e){return e<this.recentQueriesCount()}selectRight(){let e=this.ftSearchInput.selectedSuggestOptionIndex;e!==void 0&&(!this.ftSearchInput.selectedSuggestOptionRemove&&this.isRemovable(e)?this.ftSearchInput.selectedSuggestOptionRemove=!0:this.clearSelection())}closeBox(){this.ftSearchInput.displaySuggestListbox=!1,this.clearSelection()}};ri.elementDefinitions={"ft-ripple":L,"ft-typography":j,"ft-icon":oe,"ft-button":_};ri.styles=[db.wordWrap,ub]});function d0(t){let e=t.liveQuery.trim().toLowerCase();return t.recentQueries.filter(r=>r.toLowerCase().includes(e)).slice(0,p0)}var _o,Ke,Ct,fb,Ue,p0,ue,fu=l(()=>{"use strict";_o=u(b()),Ke=u(m());un();_i();kt();Ec();Ct=u(B()),fb=u(it());hb();Wt();ge();Vt();Rs();Ue=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},p0=5;ue=class extends at(It){constructor(){super(),this.liveQuery="",this.recentQuerySuggestions=[],this.forceCloseSuggestion=!1,this.displaySuggestListbox=!1,this.selectedSuggestOptionRemove=!1,this.useCustomSearchPath=!1,this.triggerSearchOnClear=!1,this.focusOnDisplay=!1,this.suggestions=new ri(this),this.showSuggestionsOnFocus=!0,this.onPointerDown=e=>{e.composedPath().some(o=>o===this||o===this.shadowRoot)||this.suggestions.closeBox()},this.addI18nContext(wr)}render(){var e;let r=this.suggestions.optionsCount()>0,i={"ft-search-input":!0,"ft-search-input--with-suggestions":r,"ft-search-input--with-suggestions-closed":this.forceCloseSuggestion},o={...this.request,query:this.liveQuery},n=this.useCustomSearchPath?this.launchSearchPath:void 0,s=Er.get().serializeToCurrentPageIfPossible(o,n),a=!this.forceCloseSuggestion&&this.displaySuggestListbox&&r;return _o.html`
3057
- <div class="${(0,fb.classMap)(i)}" @focusout=${()=>this.forceCloseSuggestion=!1} role="search">
3056
+ `}onRemoveRecentQuery(e){var r;(r=this.ftSearchInput.stateManager)===null||r===void 0||r.removeRecentQuery(e)}onSelectOption(e){this.ftSearchInput.onSuggestionSelected(e)}get activeElementId(){let{selectedSuggestOptionIndex:e,selectedSuggestOptionRemove:r}=this.ftSearchInput;if(e!==void 0)return(r?"remove-suggestion-":"suggestion-")+e}get activeElement(){var e;let r=this.activeElementId;if(r!==void 0)return(e=this.ftSearchInput.shadowRoot.getElementById(r))!==null&&e!==void 0?e:void 0}recentQueriesCount(){return this.ftSearchInput.recentQuerySuggestions.length}suggestionsCount(){var e,r;return(r=(e=this.ftSearchInput.suggestResults)===null||e===void 0?void 0:e.length)!==null&&r!==void 0?r:0}optionsCount(){return this.recentQueriesCount()+this.suggestionsCount()}clearSelection(){this.ftSearchInput.selectedSuggestOptionIndex=void 0,this.ftSearchInput.selectedSuggestOptionRemove=!1}selectNext(){this.ftSearchInput.selectedSuggestOptionIndex===void 0?this.ftSearchInput.selectedSuggestOptionIndex=0:(this.ftSearchInput.selectedSuggestOptionIndex++,this.ftSearchInput.selectedSuggestOptionIndex>=this.optionsCount()&&this.clearSelection())}selectPrevious(){this.ftSearchInput.selectedSuggestOptionIndex===void 0?this.ftSearchInput.selectedSuggestOptionIndex=this.optionsCount()-1:(this.ftSearchInput.selectedSuggestOptionIndex--,this.ftSearchInput.selectedSuggestOptionIndex<0&&this.clearSelection())}selectLeft(){this.ftSearchInput.selectedSuggestOptionIndex!==void 0&&(this.ftSearchInput.selectedSuggestOptionRemove?this.ftSearchInput.selectedSuggestOptionRemove=!1:this.clearSelection())}isRemovable(e){return e<this.recentQueriesCount()}selectRight(){let e=this.ftSearchInput.selectedSuggestOptionIndex;e!==void 0&&(!this.ftSearchInput.selectedSuggestOptionRemove&&this.isRemovable(e)?this.ftSearchInput.selectedSuggestOptionRemove=!0:this.clearSelection())}closeBox(){this.ftSearchInput.displaySuggestListbox=!1,this.clearSelection()}};ri.elementDefinitions={"ft-ripple":L,"ft-typography":j,"ft-icon":oe,"ft-button":_};ri.styles=[cb.wordWrap,ab]});function u0(t){let e=t.liveQuery.trim().toLowerCase();return t.recentQueries.filter(r=>r.toLowerCase().includes(e)).slice(0,c0)}var _o,Ke,Ct,pb,Ue,c0,ue,hu=l(()=>{"use strict";_o=u(b()),Ke=u(m());un();_i();kt();Cc();Ct=u(B()),pb=u(it());ub();Wt();ge();Vt();ws();Ue=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},c0=5;ue=class extends at(It){constructor(){super(),this.liveQuery="",this.recentQuerySuggestions=[],this.forceCloseSuggestion=!1,this.displaySuggestListbox=!1,this.selectedSuggestOptionRemove=!1,this.useCustomSearchPath=!1,this.triggerSearchOnClear=!1,this.focusOnDisplay=!1,this.suggestions=new ri(this),this.showSuggestionsOnFocus=!0,this.onPointerDown=e=>{e.composedPath().some(o=>o===this||o===this.shadowRoot)||this.suggestions.closeBox()},this.addI18nContext(wr)}render(){var e;let r=this.suggestions.optionsCount()>0,i={"ft-search-input":!0,"ft-search-input--with-suggestions":r,"ft-search-input--with-suggestions-closed":this.forceCloseSuggestion},o={...this.request,query:this.liveQuery},n=this.useCustomSearchPath?this.launchSearchPath:void 0,s=Er.get().serializeToCurrentPageIfPossible(o,n),a=!this.forceCloseSuggestion&&this.displaySuggestListbox&&r;return _o.html`
3057
+ <div class="${(0,pb.classMap)(i)}" @focusout=${()=>this.forceCloseSuggestion=!1} role="search">
3058
3058
  <div class="ft-search-input--input-container" part="input-container" tabindex="-1">
3059
3059
  <div class="ft-search-input--input-outline" part="input-outline">
3060
3060
  <input class="ft-search-input--input ft-typography--body2"
@@ -3100,59 +3100,59 @@
3100
3100
  ></ft-button>
3101
3101
  </div>
3102
3102
  </div>
3103
- `}onSearchBarKeyDown(e){switch(this.forceCloseSuggestion=!1,["Escape","Tab","Shift"].includes(e.key)||(this.displaySuggestListbox=!0),e.key){case"Tab":this.suggestions.closeBox();break;case"Escape":this.displaySuggestListbox&&this.suggestions.optionsCount()>0&&(e.stopPropagation(),e.preventDefault(),this.suggestions.closeBox());break;case"ArrowDown":e.stopPropagation(),e.preventDefault(),this.suggestions.selectNext();break;case"ArrowUp":e.stopPropagation(),e.preventDefault(),this.suggestions.selectPrevious();break;case"ArrowLeft":this.selectedSuggestOptionIndex!==void 0&&(e.stopPropagation(),e.preventDefault(),this.suggestions.selectLeft());break;case"ArrowRight":this.selectedSuggestOptionIndex!==void 0&&(e.stopPropagation(),e.preventDefault(),this.suggestions.selectRight());break;case"Enter":{let r=this.suggestions.activeElement;if(r){r.click();break}this.useCustomSearchPath?this.launchSearchButton.click():this.launchSearch(this.liveQuery);break}case"Backspace":e.stopPropagation();break}}onSearchBarKeyUp(e){e.key==="Backspace"&&e.stopPropagation()}onInput(){var e;(e=this.stateManager)===null||e===void 0||e.setLiveQuery(this.input.value),this.forceCloseSuggestion=!1}onClearInput(){var e;(e=this.stateManager)===null||e===void 0||e.setLiveQuery(""),this.triggerSearchOnClear&&this.launchSearch(""),this.input.focus()}launchSearch(e){var r,i;this.forceCloseSuggestion=!0,this.dispatchEvent(new CustomEvent("change",{detail:e})),(r=this.stateManager)===null||r===void 0||r.setQuery(e),(i=this.stateManager)===null||i===void 0||i.addRecentQuery(e)}onSuggestionSelected(e){this.launchSearch(e),this.suggestions.closeBox()}onClick(){this.onFocus()}onFocus(){this.showSuggestionsOnFocus&&(this.displaySuggestListbox=!0),this.forceCloseSuggestion=!1}async focusInput(e=!0){this.showSuggestionsOnFocus=e,await(0,Ke.waitFor)(()=>this.input,50),this.input.focus(),this.showSuggestionsOnFocus=!0}async connectedCallback(){super.connectedCallback(),document.addEventListener("pointerdown",this.onPointerDown),this.focusOnDisplay&&!Ke.isTouchScreen&&this.focusInput(!1)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("pointerdown",this.onPointerDown)}};ue.elementDefinitions={"ft-button":_,...ri.elementDefinitions};ue.styles=[Dr,Ke.noTextInputDefaultClearButton,ac,...ri.styles,Ke.screenReaderStyles];Ue([(0,Ke.redux)()],ue.prototype,"request",void 0);Ue([(0,Ke.redux)()],ue.prototype,"liveQuery",void 0);Ue([(0,Ke.redux)()],ue.prototype,"suggestResults",void 0);Ue([(0,Ke.redux)({selector:d0})],ue.prototype,"recentQuerySuggestions",void 0);Ue([(0,Ct.state)()],ue.prototype,"forceCloseSuggestion",void 0);Ue([(0,Ct.state)()],ue.prototype,"displaySuggestListbox",void 0);Ue([(0,Ct.state)()],ue.prototype,"selectedSuggestOptionIndex",void 0);Ue([(0,Ct.state)()],ue.prototype,"selectedSuggestOptionRemove",void 0);Ue([(0,Ct.property)()],ue.prototype,"launchSearchPath",void 0);Ue([fo()],ue.prototype,"placeholder",void 0);Ue([(0,Ct.property)({type:Boolean})],ue.prototype,"useCustomSearchPath",void 0);Ue([(0,Ct.property)({type:Boolean})],ue.prototype,"triggerSearchOnClear",void 0);Ue([(0,Ct.property)({type:Boolean})],ue.prototype,"focusOnDisplay",void 0);Ue([(0,Ct.query)(".ft-search-input--input")],ue.prototype,"input",void 0);Ue([(0,Ct.query)('[part="launch-search-in-input"]')],ue.prototype,"launchSearchButton",void 0);Ue([(0,Ke.ignoreComposingEvents)()],ue.prototype,"onSearchBarKeyDown",null);Ue([(0,Ke.ignoreComposingEvents)()],ue.prototype,"onSearchBarKeyUp",null)});var mb,gb=l(()=>{"use strict";fu();mb={"ft-search-input":ue}});var vb,yb=l(()=>{"use strict";vb=u(m());gb();(0,vb.customElements)(mb)});var bb={};si(bb,{FtSearchInput:()=>ue,FtSearchInputCssVariables:()=>ee,styles:()=>ac});var xb=l(()=>{"use strict";un();Tg();fu();yb()});var Sb,h0,mu,gu=l(()=>{"use strict";Sb=u(b()),h0={},mu=Sb.css`
3104
- `});var Cb=l(()=>{"use strict"});var vu,Eb=l(()=>{"use strict";kt();vu=sr.fromGwt("designedActionBlockAriaLabels")});var ha,yu,Ab,_r,bu=l(()=>{"use strict";ha=u(b()),yu=u(m());gu();Wt();_i();kt();Eb();bo();Ab=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},_r=class extends at(It){constructor(){super(),this.currentPage=1,this.isLastPage=!0,this.neededSearchRequests=[Gt.CLUSTERED_SEARCH],this.addI18nContext(vu)}render(){return this.isLastPage?ha.nothing:ha.html`
3103
+ `}onSearchBarKeyDown(e){switch(this.forceCloseSuggestion=!1,["Escape","Tab","Shift"].includes(e.key)||(this.displaySuggestListbox=!0),e.key){case"Tab":this.suggestions.closeBox();break;case"Escape":this.displaySuggestListbox&&this.suggestions.optionsCount()>0&&(e.stopPropagation(),e.preventDefault(),this.suggestions.closeBox());break;case"ArrowDown":e.stopPropagation(),e.preventDefault(),this.suggestions.selectNext();break;case"ArrowUp":e.stopPropagation(),e.preventDefault(),this.suggestions.selectPrevious();break;case"ArrowLeft":this.selectedSuggestOptionIndex!==void 0&&(e.stopPropagation(),e.preventDefault(),this.suggestions.selectLeft());break;case"ArrowRight":this.selectedSuggestOptionIndex!==void 0&&(e.stopPropagation(),e.preventDefault(),this.suggestions.selectRight());break;case"Enter":{let r=this.suggestions.activeElement;if(r){r.click();break}this.useCustomSearchPath?this.launchSearchButton.click():this.launchSearch(this.liveQuery);break}case"Backspace":e.stopPropagation();break}}onSearchBarKeyUp(e){e.key==="Backspace"&&e.stopPropagation()}onInput(){var e;(e=this.stateManager)===null||e===void 0||e.setLiveQuery(this.input.value),this.forceCloseSuggestion=!1}onClearInput(){var e;(e=this.stateManager)===null||e===void 0||e.setLiveQuery(""),this.triggerSearchOnClear&&this.launchSearch(""),this.input.focus()}launchSearch(e){var r,i;this.forceCloseSuggestion=!0,this.dispatchEvent(new CustomEvent("change",{detail:e})),(r=this.stateManager)===null||r===void 0||r.setQuery(e),(i=this.stateManager)===null||i===void 0||i.addRecentQuery(e)}onSuggestionSelected(e){this.launchSearch(e),this.suggestions.closeBox()}onClick(){this.onFocus()}onFocus(){this.showSuggestionsOnFocus&&(this.displaySuggestListbox=!0),this.forceCloseSuggestion=!1}async focusInput(e=!0){this.showSuggestionsOnFocus=e,await(0,Ke.waitFor)(()=>this.input,50),this.input.focus(),this.showSuggestionsOnFocus=!0}async connectedCallback(){super.connectedCallback(),document.addEventListener("pointerdown",this.onPointerDown),this.focusOnDisplay&&!Ke.isTouchScreen&&this.focusInput(!1)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("pointerdown",this.onPointerDown)}};ue.elementDefinitions={"ft-button":_,...ri.elementDefinitions};ue.styles=[Dr,Ke.noTextInputDefaultClearButton,sc,...ri.styles,Ke.screenReaderStyles];Ue([(0,Ke.redux)()],ue.prototype,"request",void 0);Ue([(0,Ke.redux)()],ue.prototype,"liveQuery",void 0);Ue([(0,Ke.redux)()],ue.prototype,"suggestResults",void 0);Ue([(0,Ke.redux)({selector:u0})],ue.prototype,"recentQuerySuggestions",void 0);Ue([(0,Ct.state)()],ue.prototype,"forceCloseSuggestion",void 0);Ue([(0,Ct.state)()],ue.prototype,"displaySuggestListbox",void 0);Ue([(0,Ct.state)()],ue.prototype,"selectedSuggestOptionIndex",void 0);Ue([(0,Ct.state)()],ue.prototype,"selectedSuggestOptionRemove",void 0);Ue([(0,Ct.property)()],ue.prototype,"launchSearchPath",void 0);Ue([fo()],ue.prototype,"placeholder",void 0);Ue([(0,Ct.property)({type:Boolean})],ue.prototype,"useCustomSearchPath",void 0);Ue([(0,Ct.property)({type:Boolean})],ue.prototype,"triggerSearchOnClear",void 0);Ue([(0,Ct.property)({type:Boolean})],ue.prototype,"focusOnDisplay",void 0);Ue([(0,Ct.query)(".ft-search-input--input")],ue.prototype,"input",void 0);Ue([(0,Ct.query)('[part="launch-search-in-input"]')],ue.prototype,"launchSearchButton",void 0);Ue([(0,Ke.ignoreComposingEvents)()],ue.prototype,"onSearchBarKeyDown",null);Ue([(0,Ke.ignoreComposingEvents)()],ue.prototype,"onSearchBarKeyUp",null)});var db,hb=l(()=>{"use strict";hu();db={"ft-search-input":ue}});var fb,mb=l(()=>{"use strict";fb=u(m());hb();(0,fb.customElements)(db)});var gb={};si(gb,{FtSearchInput:()=>ue,FtSearchInputCssVariables:()=>ee,styles:()=>sc});var vb=l(()=>{"use strict";un();Og();hu();mb()});var yb,p0,fu,mu=l(()=>{"use strict";yb=u(b()),p0={},fu=yb.css`
3104
+ `});var bb=l(()=>{"use strict"});var gu,xb=l(()=>{"use strict";kt();gu=sr.fromGwt("designedActionBlockAriaLabels")});var da,vu,Sb,_r,yu=l(()=>{"use strict";da=u(b()),vu=u(m());mu();Wt();_i();kt();xb();bo();Sb=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},_r=class extends at(It){constructor(){super(),this.currentPage=1,this.isLastPage=!0,this.neededSearchRequests=[Gt.CLUSTERED_SEARCH],this.addI18nContext(gu)}render(){return this.isLastPage?da.nothing:da.html`
3105
3105
  <ft-button @click=${this.loadMore}>
3106
- ${vu.messages.searchPageLoadMore()}
3106
+ ${gu.messages.searchPageLoadMore()}
3107
3107
  </ft-button>
3108
- `}loadMore(){var e;(e=this.stateManager)===null||e===void 0||e.setPageNumber(this.currentPage+1)}};_r.elementDefinitions={"ft-button":_};_r.styles=mu;Ab([(0,yu.redux)({store:"search",selector:t=>{var e,r;return(r=(e=t.paging)===null||e===void 0?void 0:e.currentPage)!==null&&r!==void 0?r:1}})],_r.prototype,"currentPage",void 0);Ab([(0,yu.redux)({store:"search",selector:t=>{var e,r;return(r=(e=t.paging)===null||e===void 0?void 0:e.isLastPage)!==null&&r!==void 0?r:!0}})],_r.prototype,"isLastPage",void 0)});var Ob,wb=l(()=>{"use strict";bu();Ob={"ft-search-load-more-button":_r}});var Rb,Tb=l(()=>{"use strict";Rb=u(m());wb();(0,Rb.customElements)(Ob)});var _b={};si(_b,{FtSearchLoadMoreButton:()=>_r,FtSearchLoadMoreButtonCssVariables:()=>h0,styles:()=>mu});var kb=l(()=>{"use strict";gu();Cb();bu();Tb()});var Lb=l(()=>{"use strict"});var ga,ma,fa,Su,xu,f0,ko,Cu=l(()=>{"use strict";ga=u(m());_i();ma=u(B()),fa=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},Su=class extends Event{constructor(){super("register-ft-search-result-component",{bubbles:!0,composed:!0})}},xu=Symbol("registerInterval"),f0=(0,ga.applyMixinOnce)(Symbol("toFtSearchResultComponent"),function(t){var e;class r extends t{constructor(){super(...arguments),this[e]=0}setResultStateManager(o){this.resultStateManager=o}unregisterResultStateManager(){this.resultStateManager&&(this.resultStateManager.unregisterComponent(this),this.resultStateManager=void 0)}connectedCallback(){super.connectedCallback(),this[xu]=window.setInterval(()=>this.tryToRegisterToResultContext(),50)}tryToRegisterToResultContext(){this.result!=null?window.clearInterval(this[xu]):this.dispatchEvent(new Su)}disconnectedCallback(){super.disconnectedCallback(),this.unregisterResultStateManager()}}return e=xu,fa([(0,ma.property)({attribute:!1})],r.prototype,"cluster",void 0),fa([(0,ma.property)({attribute:!1})],r.prototype,"result",void 0),fa([(0,ga.numberProperty)()],r.prototype,"rank",void 0),fa([(0,ma.property)({attribute:!1,type:Boolean})],r.prototype,"openResultInNewTab",void 0),r}),ko=class extends f0(It){}});var Eu,Pb,$b,Fi,Au=l(()=>{"use strict";Eu=u(b()),Pb=u(m());Cu();Ms();$b=u(Ls());ge();Fi=class extends ko{render(){var e;let r=(e=(0,Pb.accessResult)(this.result))===null||e===void 0?void 0:e.htmlExcerpt;return r?Eu.html`
3109
- <ft-typography variant="${Q.body1}" part="text">${(0,$b.unsafeHTML)(r)}</ft-typography>
3110
- `:Eu.html`
3108
+ `}loadMore(){var e;(e=this.stateManager)===null||e===void 0||e.setPageNumber(this.currentPage+1)}};_r.elementDefinitions={"ft-button":_};_r.styles=fu;Sb([(0,vu.redux)({store:"search",selector:t=>{var e,r;return(r=(e=t.paging)===null||e===void 0?void 0:e.currentPage)!==null&&r!==void 0?r:1}})],_r.prototype,"currentPage",void 0);Sb([(0,vu.redux)({store:"search",selector:t=>{var e,r;return(r=(e=t.paging)===null||e===void 0?void 0:e.isLastPage)!==null&&r!==void 0?r:!0}})],_r.prototype,"isLastPage",void 0)});var Cb,Eb=l(()=>{"use strict";yu();Cb={"ft-search-load-more-button":_r}});var Ab,Ob=l(()=>{"use strict";Ab=u(m());Eb();(0,Ab.customElements)(Cb)});var wb={};si(wb,{FtSearchLoadMoreButton:()=>_r,FtSearchLoadMoreButtonCssVariables:()=>p0,styles:()=>fu});var Rb=l(()=>{"use strict";mu();bb();yu();Ob()});var Tb=l(()=>{"use strict"});var ma,fa,ha,xu,bu,d0,ko,Su=l(()=>{"use strict";ma=u(m());_i();fa=u(B()),ha=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},xu=class extends Event{constructor(){super("register-ft-search-result-component",{bubbles:!0,composed:!0})}},bu=Symbol("registerInterval"),d0=(0,ma.applyMixinOnce)(Symbol("toFtSearchResultComponent"),function(t){var e;class r extends t{constructor(){super(...arguments),this[e]=0}setResultStateManager(o){this.resultStateManager=o}unregisterResultStateManager(){this.resultStateManager&&(this.resultStateManager.unregisterComponent(this),this.resultStateManager=void 0)}connectedCallback(){super.connectedCallback(),this[bu]=window.setInterval(()=>this.tryToRegisterToResultContext(),50)}tryToRegisterToResultContext(){this.result!=null?window.clearInterval(this[bu]):this.dispatchEvent(new xu)}disconnectedCallback(){super.disconnectedCallback(),this.unregisterResultStateManager()}}return e=bu,ha([(0,fa.property)({attribute:!1})],r.prototype,"cluster",void 0),ha([(0,fa.property)({attribute:!1})],r.prototype,"result",void 0),ha([(0,ma.numberProperty)()],r.prototype,"rank",void 0),ha([(0,fa.property)({attribute:!1,type:Boolean})],r.prototype,"openResultInNewTab",void 0),r}),ko=class extends d0(It){}});var Cu,_b,kb,Fi,Eu=l(()=>{"use strict";Cu=u(b()),_b=u(m());Su();Ds();kb=u(ks());ge();Fi=class extends ko{render(){var e;let r=(e=(0,_b.accessResult)(this.result))===null||e===void 0?void 0:e.htmlExcerpt;return r?Cu.html`
3109
+ <ft-typography variant="${Q.body1}" part="text">${(0,kb.unsafeHTML)(r)}</ft-typography>
3110
+ `:Cu.html`
3111
3111
  <style>
3112
3112
  :host {
3113
3113
  display: none !important;
3114
3114
  }
3115
3115
  </style>
3116
- `}contentAvailableCallback(e){super.contentAvailableCallback(e),this.shadowRoot.querySelectorAll(".kwicmatch").forEach(r=>r.setAttribute("part","kwicmatch"))}};Fi.elementDefinitions={"ft-typography":j};Fi.styles=lc});var Ib,Db=l(()=>{"use strict";Au();Ib={"ft-search-result-abstract":Fi}});var Mb,Nb=l(()=>{"use strict";Mb=u(m());Db();(0,Mb.customElements)(Ib)});var Fb={};si(Fb,{FtSearchResultAbstract:()=>Fi,FtSearchResultAbstractCssVariables:()=>Ds,styles:()=>lc});var Ou=l(()=>{"use strict";Ms();Lb();Au();Nb()});var Bb=l(()=>{"use strict"});var Tn,Ub,Hb,Vb,m0,ii,wu=l(()=>{"use strict";Tn=u(b()),Ub=u(B()),Hb=u(m());Cu();Fs();ge();Vb=u(Ls());hc();fn();m0=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},ii=class extends ko{constructor(){super(...arguments),this.withoutLink=!1}render(){var e;return this.result?this.withoutLink?this.renderTitle():Tn.html`
3117
- <a href="${Hs(this.result)}"
3116
+ `}contentAvailableCallback(e){super.contentAvailableCallback(e),this.shadowRoot.querySelectorAll(".kwicmatch").forEach(r=>r.setAttribute("part","kwicmatch"))}};Fi.elementDefinitions={"ft-typography":j};Fi.styles=ac});var Lb,Pb=l(()=>{"use strict";Eu();Lb={"ft-search-result-abstract":Fi}});var $b,Au=l(()=>{"use strict";$b=u(m());Pb();(0,$b.customElements)(Lb)});var Ib={};si(Ib,{FtSearchResultAbstract:()=>Fi,FtSearchResultAbstractCssVariables:()=>Is,styles:()=>ac});var Db=l(()=>{"use strict";Ds();Tb();Eu();Au()});var Mb=l(()=>{"use strict"});var Tn,Nb,Fb,Bb,h0,ii,Ou=l(()=>{"use strict";Tn=u(b()),Nb=u(B()),Fb=u(m());Su();Ns();ge();Bb=u(ks());dc();fn();h0=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},ii=class extends ko{constructor(){super(...arguments),this.withoutLink=!1}render(){var e;return this.result?this.withoutLink?this.renderTitle():Tn.html`
3117
+ <a href="${Us(this.result)}"
3118
3118
  @click=${this.onResultClick}
3119
3119
  @auxclick=${r=>this.onAuxClick(r)}
3120
3120
  @contextmenu=${this.onContextMenu}
3121
- target="${ng(this.result,(e=this.stateManager)===null||e===void 0?void 0:e.openExternalDocumentInNewTab)}"
3121
+ target="${rg(this.result,(e=this.stateManager)===null||e===void 0?void 0:e.openExternalDocumentInNewTab)}"
3122
3122
  part="link">
3123
3123
  ${this.renderTitle()}
3124
3124
  </a>
3125
3125
  `:Tn.nothing}onAuxClick(e){e.button==1&&this.onResultClick()}renderTitle(){var e;return Tn.html`
3126
- <ft-typography variant="${Q.title}" part="text">${(0,Vb.unsafeHTML)((e=(0,Hb.accessResult)(this.result))===null||e===void 0?void 0:e.htmlTitle)}</ft-typography>
3127
- `}onResultClick(){this.dispatchEvent(new vo(this.result,this.rank))}onContextMenu(){this.result.type!="HTML_PACKAGE"&&this.result.type!="HTML_PACKAGE_PAGE"&&this.dispatchEvent(new yo(this.result,this.rank))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),this.shadowRoot.querySelectorAll(".kwicmatch").forEach(i=>i.setAttribute("part","kwicmatch")),!this.withoutLink&&e.has("rank")&&this.rank!=null&&!((r=this.stateManager)===null||r===void 0)&&r.store.commands.consume(`focus-result-${this.rank}`)&&(this.elementToFocus={selector:"a"})}};ii.elementDefinitions={"ft-typography":j};ii.styles=cc;m0([(0,Ub.property)({type:Boolean})],ii.prototype,"withoutLink",void 0)});var jb,zb=l(()=>{"use strict";wu();jb={"ft-search-result-title":ii}});var qb,Kb=l(()=>{"use strict";qb=u(m());zb();(0,qb.customElements)(jb)});var Wb={};si(Wb,{FtSearchResultTitle:()=>ii,FtSearchResultTitleCssVariables:()=>Ns,styles:()=>cc});var Ru=l(()=>{"use strict";Fs();Bb();wu();Kb()});var Gb,g0,Tu,_u=l(()=>{"use strict";Gb=u(b()),g0={},Tu=Gb.css`
3126
+ <ft-typography variant="${Q.title}" part="text">${(0,Bb.unsafeHTML)((e=(0,Fb.accessResult)(this.result))===null||e===void 0?void 0:e.htmlTitle)}</ft-typography>
3127
+ `}onResultClick(){this.dispatchEvent(new vo(this.result,this.rank))}onContextMenu(){this.result.type!="HTML_PACKAGE"&&this.result.type!="HTML_PACKAGE_PAGE"&&this.dispatchEvent(new yo(this.result,this.rank))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),this.shadowRoot.querySelectorAll(".kwicmatch").forEach(i=>i.setAttribute("part","kwicmatch")),!this.withoutLink&&e.has("rank")&&this.rank!=null&&!((r=this.stateManager)===null||r===void 0)&&r.store.commands.consume(`focus-result-${this.rank}`)&&(this.elementToFocus={selector:"a"})}};ii.elementDefinitions={"ft-typography":j};ii.styles=lc;h0([(0,Nb.property)({type:Boolean})],ii.prototype,"withoutLink",void 0)});var Ub,Hb=l(()=>{"use strict";Ou();Ub={"ft-search-result-title":ii}});var Vb,wu=l(()=>{"use strict";Vb=u(m());Hb();(0,Vb.customElements)(Ub)});var jb={};si(jb,{FtSearchResultTitle:()=>ii,FtSearchResultTitleCssVariables:()=>Ms,styles:()=>lc});var zb=l(()=>{"use strict";Ns();Mb();Ou();wu()});var qb,f0,Ru,Tu=l(()=>{"use strict";qb=u(b()),f0={},Ru=qb.css`
3128
3128
  [part="no-results-message"] {
3129
3129
  text-align: center;
3130
3130
  padding: 12px;
3131
3131
  }
3132
- `});var Qb=l(()=>{"use strict"});var Xb,Yb,ku=l(()=>{"use strict";Xb=u(b()),Yb=Xb.css`
3132
+ `});var Kb=l(()=>{"use strict"});var Wb,Gb,Qb=l(()=>{"use strict";Wb=u(b()),Gb=Wb.css`
3133
3133
  a {
3134
3134
  color: inherit;
3135
3135
  text-decoration: inherit;
3136
3136
  }
3137
- `});var Zb=l(()=>{"use strict"});var va,Jb=l(()=>{"use strict";va=class{constructor(e){this.onResultSelected=e,this.registeredComponents=[],this.registeredMetadata=new Set}registerComponent(e){e.setResultStateManager(this),this.registeredComponents.push(e),this.bindComponent(e)}unregisterComponent(e){this.registeredComponents.splice(this.registeredComponents.indexOf(e),1),e.cluster=void 0,e.result=void 0,e.rank=void 0}registerMetadata(e){this.registeredMetadata.add(e)}unregisterMetadata(e){this.registeredMetadata.delete(e)}updateCluster(e,r){this.cluster=e,this.rank=r,this.selectResult(this.cluster.entries[0])}updateOpenResultInNewTab(e){this.openResultInNewTab=e}selectResult(e){this.result=e,this.onResultSelected(e),this.registeredComponents.forEach(r=>this.bindComponent(r))}clear(){this.registeredComponents=[]}bindComponent(e){e.cluster=this.cluster,e.result=this.result,e.rank=this.rank,e.openResultInNewTab=this.openResultInNewTab}}});var ex,Lo,tx,ya,Lu,fr,Pu=l(()=>{"use strict";ex=u(b()),Lo=u(B()),tx=u(m());ku();Jb();ya=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},Lu=class extends CustomEvent{constructor(e){super("ft-search-result-cluster-change",{detail:e,bubbles:!0,composed:!0})}},fr=class extends tx.FtLitElement{constructor(){super(...arguments),this.openResultInNewTab=!1,this.index=0,this.stateManager=new va(e=>this.onResultSelected(e))}render(){return ex.html`
3137
+ `});var ga,Xb=l(()=>{"use strict";ga=class{constructor(e){this.onResultSelected=e,this.registeredComponents=[],this.registeredMetadata=new Set}registerComponent(e){e.setResultStateManager(this),this.registeredComponents.push(e),this.bindComponent(e)}unregisterComponent(e){this.registeredComponents.splice(this.registeredComponents.indexOf(e),1),e.cluster=void 0,e.result=void 0,e.rank=void 0}registerMetadata(e){this.registeredMetadata.add(e)}unregisterMetadata(e){this.registeredMetadata.delete(e)}updateCluster(e,r){this.cluster=e,this.rank=r,this.selectResult(this.cluster.entries[0])}updateOpenResultInNewTab(e){this.openResultInNewTab=e}selectResult(e){this.result=e,this.onResultSelected(e),this.registeredComponents.forEach(r=>this.bindComponent(r))}clear(){this.registeredComponents=[]}bindComponent(e){e.cluster=this.cluster,e.result=this.result,e.rank=this.rank,e.openResultInNewTab=this.openResultInNewTab}}});var Yb,Lo,Zb,va,_u,fr,Jb=l(()=>{"use strict";Yb=u(b()),Lo=u(B()),Zb=u(m());Qb();Xb();va=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},_u=class extends CustomEvent{constructor(e){super("ft-search-result-cluster-change",{detail:e,bubbles:!0,composed:!0})}},fr=class extends Zb.FtLitElement{constructor(){super(...arguments),this.openResultInNewTab=!1,this.index=0,this.stateManager=new ga(e=>this.onResultSelected(e))}render(){return Yb.html`
3138
3138
  <slot @register-ft-search-result-component=${this.registerComponent}></slot>
3139
- `}onResultSelected(e){this.result=e,this.dispatchEvent(new Lu(this.result))}registerComponent(e){e.stopPropagation();let r=e.composedPath()[0];this.register(r)}register(e){this.stateManager.registerComponent(e)}update(e){super.update(e),e.has("cluster")&&this.cluster&&this.stateManager.updateCluster(this.cluster,this.index+1),e.has("openResultInNewTab")&&this.stateManager.updateOpenResultInNewTab(this.openResultInNewTab)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.clear()}};fr.elementDefinitions={};fr.styles=Yb;ya([(0,Lo.property)({attribute:!1})],fr.prototype,"cluster",void 0);ya([(0,Lo.property)({attribute:!1,type:Boolean})],fr.prototype,"openResultInNewTab",void 0);ya([(0,Lo.state)()],fr.prototype,"result",void 0);ya([(0,Lo.property)()],fr.prototype,"index",void 0)});var rx,ix=l(()=>{"use strict";Pu();rx={"ft-search-result-context":fr}});var ox,nx=l(()=>{"use strict";ox=u(m());ix();(0,ox.customElements)(rx)});var sx=l(()=>{"use strict";ku();Zb();Pu();nx()});var Po,ax,$u=l(()=>{"use strict";kt();Po=sr.build("searchResultsNumber"),ax={results:"{0} results","results[\\=1]":"1 result"}});var ba,lx,xa,er,Bi,Et,Iu=l(()=>{"use strict";ba=u(b()),lx=u(Rr()),xa=u(B()),er=u(m());_u();_i();sx();Ru();Ou();kt();$u();bo();Bi=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},Et=class extends at(It){constructor(){super(),this.clusterPolicy="display-first-result",this.displayNoResultsMessage=!1,this.renderResult=()=>ba.html`
3139
+ `}onResultSelected(e){this.result=e,this.dispatchEvent(new _u(this.result))}registerComponent(e){e.stopPropagation();let r=e.composedPath()[0];this.register(r)}register(e){this.stateManager.registerComponent(e)}update(e){super.update(e),e.has("cluster")&&this.cluster&&this.stateManager.updateCluster(this.cluster,this.index+1),e.has("openResultInNewTab")&&this.stateManager.updateOpenResultInNewTab(this.openResultInNewTab)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.clear()}};fr.elementDefinitions={};fr.styles=Gb;va([(0,Lo.property)({attribute:!1})],fr.prototype,"cluster",void 0);va([(0,Lo.property)({attribute:!1,type:Boolean})],fr.prototype,"openResultInNewTab",void 0);va([(0,Lo.state)()],fr.prototype,"result",void 0);va([(0,Lo.property)()],fr.prototype,"index",void 0)});var ex,tx=l(()=>{"use strict";Jb();ex={"ft-search-result-context":fr}});var rx,ix=l(()=>{"use strict";rx=u(m());tx();(0,rx.customElements)(ex)});var Po,ox,ku=l(()=>{"use strict";kt();Po=sr.build("searchResultsNumber"),ox={results:"{0} results","results[\\=1]":"1 result"}});var ya,nx,ba,er,Bi,Et,Lu=l(()=>{"use strict";ya=u(b()),nx=u(Rr()),ba=u(B()),er=u(m());Tu();_i();ix();wu();Au();kt();ku();bo();Bi=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},Et=class extends at(It){constructor(){super(),this.clusterPolicy="display-first-result",this.displayNoResultsMessage=!1,this.renderResult=()=>ya.html`
3140
3140
  <ft-search-result-title></ft-search-result-title>
3141
3141
  <ft-search-result-abstract></ft-search-result-abstract>
3142
- `,this.clusterSortCriterion=[],this.selectedResultByCluster={},this.neededSearchRequests=[Gt.CLUSTERED_SEARCH],this.addI18nContext(Po)}render(){if(this.displayNoResultsMessage&&this.results!=null&&this.results.length==0)return ba.html`
3142
+ `,this.clusterSortCriterion=[],this.selectedResultByCluster={},this.neededSearchRequests=[Gt.CLUSTERED_SEARCH],this.addI18nContext(Po)}render(){if(this.displayNoResultsMessage&&this.results!=null&&this.results.length==0)return ya.html`
3143
3143
  <ft-typography part="no-results-message" variant="body1">${Po.messages.results(0)}</ft-typography>
3144
- `;let e=this.buildClusters();return(0,lx.repeat)(e,r=>r.id,(r,i)=>{var o;return ba.html`
3144
+ `;let e=this.buildClusters();return(0,nx.repeat)(e,r=>r.id,(r,i)=>{var o;return ya.html`
3145
3145
  <ft-search-result-context .cluster=${r} index="${i}"
3146
3146
  @ft-search-result-cluster-change=${n=>this.onClusterChange(r.id,n.detail)}>
3147
3147
  ${this.renderResult((o=this.selectedResultByCluster[r.id])!==null&&o!==void 0?o:r.entries[0],i)}
3148
3148
  </ft-search-result-context>
3149
- `})}update(e){var r;super.update(e),(e.has("clusterSortCriterion")||e.has("stateManager"))&&this.clusterSortCriterion&&((r=this.stateManager)===null||r===void 0||r.setClusterSortCriterion(this.clusterSortCriterion))}contentAvailableCallback(e){var r;if(super.contentAvailableCallback(e),e.has("requestWithoutPaging")){let i=(r=this.renderRoot)===null||r===void 0?void 0:r.querySelector("ft-search-result-context");i&&er.scrollHelper.scrollIntoViewIfPossible(i,{position:1,behavior:"smooth"})}}onClusterChange(e,r){this.selectedResultByCluster[e]=r}buildClusters(){return this.clusterPolicy==="display-all-results"?this.buildAllResultsClusters():this.buildFullClusters()}buildFullClusters(){var e,r;return(r=(e=this.results)===null||e===void 0?void 0:e.map(i=>({id:(0,er.accessResultId)(i.entries[0]),entries:i.entries})))!==null&&r!==void 0?r:[]}buildAllResultsClusters(){var e,r,i;let o=(r=(e=this.results)===null||e===void 0?void 0:e.flatMap(n=>n.entries.map(s=>({id:(0,er.accessResultId)(s),entries:[s]}))))!==null&&r!==void 0?r:[];return this.paging&&this.paging.page===1?o.slice(0,(i=this.paging.perPage)!==null&&i!==void 0?i:20):o}};Et.styles=Tu;Bi([(0,xa.property)({type:String,attribute:"cluster-policy"})],Et.prototype,"clusterPolicy",void 0);Bi([(0,xa.property)({type:Boolean})],Et.prototype,"displayNoResultsMessage",void 0);Bi([(0,xa.property)({attribute:!1})],Et.prototype,"renderResult",void 0);Bi([(0,er.jsonProperty)([])],Et.prototype,"clusterSortCriterion",void 0);Bi([(0,er.redux)({selector:t=>({...t.request,paging:void 0})})],Et.prototype,"requestWithoutPaging",void 0);Bi([(0,er.redux)({selector:t=>t.request.paging})],Et.prototype,"paging",void 0);Bi([(0,er.redux)()],Et.prototype,"results",void 0)});var cx,ux=l(()=>{"use strict";Iu();cx={"ft-search-results":Et}});var px,dx=l(()=>{"use strict";px=u(m());ux();(0,px.customElements)(cx)});var hx={};si(hx,{FtSearchResults:()=>Et,FtSearchResultsCssVariables:()=>g0,styles:()=>Tu});var fx=l(()=>{"use strict";_u();Qb();Iu();dx()});var mx,v0,Du,Mu=l(()=>{"use strict";mx=u(b()),v0={},Du=mx.css`
3149
+ `})}update(e){var r;super.update(e),(e.has("clusterSortCriterion")||e.has("stateManager"))&&this.clusterSortCriterion&&((r=this.stateManager)===null||r===void 0||r.setClusterSortCriterion(this.clusterSortCriterion))}contentAvailableCallback(e){var r;if(super.contentAvailableCallback(e),e.has("requestWithoutPaging")){let i=(r=this.renderRoot)===null||r===void 0?void 0:r.querySelector("ft-search-result-context");i&&er.scrollHelper.scrollIntoViewIfPossible(i,{position:1,behavior:"smooth"})}}onClusterChange(e,r){this.selectedResultByCluster[e]=r}buildClusters(){return this.clusterPolicy==="display-all-results"?this.buildAllResultsClusters():this.buildFullClusters()}buildFullClusters(){var e,r;return(r=(e=this.results)===null||e===void 0?void 0:e.map(i=>({id:(0,er.accessResultId)(i.entries[0]),entries:i.entries})))!==null&&r!==void 0?r:[]}buildAllResultsClusters(){var e,r,i;let o=(r=(e=this.results)===null||e===void 0?void 0:e.flatMap(n=>n.entries.map(s=>({id:(0,er.accessResultId)(s),entries:[s]}))))!==null&&r!==void 0?r:[];return this.paging&&this.paging.page===1?o.slice(0,(i=this.paging.perPage)!==null&&i!==void 0?i:20):o}};Et.styles=Ru;Bi([(0,ba.property)({type:String,attribute:"cluster-policy"})],Et.prototype,"clusterPolicy",void 0);Bi([(0,ba.property)({type:Boolean})],Et.prototype,"displayNoResultsMessage",void 0);Bi([(0,ba.property)({attribute:!1})],Et.prototype,"renderResult",void 0);Bi([(0,er.jsonProperty)([])],Et.prototype,"clusterSortCriterion",void 0);Bi([(0,er.redux)({selector:t=>({...t.request,paging:void 0})})],Et.prototype,"requestWithoutPaging",void 0);Bi([(0,er.redux)({selector:t=>t.request.paging})],Et.prototype,"paging",void 0);Bi([(0,er.redux)()],Et.prototype,"results",void 0)});var sx,ax=l(()=>{"use strict";Lu();sx={"ft-search-results":Et}});var lx,cx=l(()=>{"use strict";lx=u(m());ax();(0,lx.customElements)(sx)});var ux={};si(ux,{FtSearchResults:()=>Et,FtSearchResultsCssVariables:()=>f0,styles:()=>Ru});var px=l(()=>{"use strict";Tu();Kb();Lu();cx()});var dx,m0,Pu,$u=l(()=>{"use strict";dx=u(b()),m0={},Pu=dx.css`
3150
3150
 
3151
- `});var gx=l(()=>{"use strict"});var Sa,oi,vx,kr,Nu=l(()=>{"use strict";Sa=u(b()),oi=u(m());Mu();_i();kt();$u();ge();bo();vx=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},kr=class extends(0,oi.withAriaNotification)(at(It)){constructor(){super(),this.ariaNotificationDebouncer=new oi.Debouncer(100),this.searchNumberOfResults={context:"officialContext",key:"searchNumberOfResults",message:""},this.neededSearchRequests=[Gt.CLUSTERED_SEARCH],this.addI18nContext(Po,ax)}render(){return this.paging==null?Sa.nothing:Sa.html`
3151
+ `});var hx=l(()=>{"use strict"});var xa,oi,fx,kr,Iu=l(()=>{"use strict";xa=u(b()),oi=u(m());$u();_i();kt();ku();ge();bo();fx=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},kr=class extends(0,oi.withAriaNotification)(at(It)){constructor(){super(),this.ariaNotificationDebouncer=new oi.Debouncer(100),this.searchNumberOfResults={context:"officialContext",key:"searchNumberOfResults",message:""},this.neededSearchRequests=[Gt.CLUSTERED_SEARCH],this.addI18nContext(Po,ox)}render(){return this.paging==null?xa.nothing:xa.html`
3152
3152
  <ft-typography variant="${Q.body1}">
3153
3153
  ${Po.messages.results(this.paging.totalClustersCount)}
3154
3154
  </ft-typography>
3155
- `}willUpdate(e){super.willUpdate(e),e.has("paging")&&this.ariaNotificationDebouncer.run(async()=>{if(this.paging!==void 0){let r=await this.awaitI18n({...this.searchNumberOfResults,args:[this.paging.totalClustersCount]});this.sendAriaNotification(r)}})}};kr.elementDefinitions={"ft-typography":j};kr.styles=Du;vx([(0,oi.jsonProperty)({context:"officialContext",key:"searchNumberOfResults"})],kr.prototype,"searchNumberOfResults",void 0);vx([(0,oi.redux)()],kr.prototype,"paging",void 0)});var yx,bx=l(()=>{"use strict";Nu();yx={"ft-search-results-number":kr}});var xx,Sx=l(()=>{"use strict";xx=u(m());bx();(0,xx.customElements)(yx)});var Cx={};si(Cx,{FtSearchResultsNumber:()=>kr,FtSearchResultsNumberCssVariables:()=>v0,styles:()=>Du});var Ex=l(()=>{"use strict";Mu();gx();Nu();Sx()});var Ox=u(m());var At=u(b()),Ui=u(m());var uc=u(b()),R=u(m());var Wu=u(b()),K=u(m());gr();var X={padding:K.FtCssVariableFactory.create("--ft-card-padding","","SIZE","12px"),borderRadius:K.FtCssVariableFactory.extend("--ft-card-border-radius","",K.designSystemVariables.borderRadiusM),borderStyle:K.FtCssVariableFactory.create("--ft-card-border-style","","UNKNOWN","none"),borderColor:K.FtCssVariableFactory.extend("--ft-card-border-color","",K.designSystemVariables.colorOutline),hoverBorderColor:K.FtCssVariableFactory.extend("--ft-card-hover-border-color","",K.designSystemVariables.colorPrimary),outlineStyle:K.FtCssVariableFactory.create("--ft-card-outline-style","","UNKNOWN","solid"),outlineWidth:K.FtCssVariableFactory.create("--ft-card-outline-width","","SIZE","0"),outlineColor:K.FtCssVariableFactory.extend("--ft-card-outline-color","",K.designSystemVariables.colorPrimary),selectedOutlineStyle:K.FtCssVariableFactory.create("--ft-card-selected-outline-style","","UNKNOWN","solid"),selectedOutlineWidth:K.FtCssVariableFactory.create("--ft-card-selected-outline-width","","SIZE","2px"),selectedOutlineColor:K.FtCssVariableFactory.extend("--ft-card-selected-outline-color","",K.designSystemVariables.colorPrimary),selectedBorderRadius:K.FtCssVariableFactory.extend("--ft-card-selected-border-radius","",K.designSystemVariables.borderRadiusM),colorSurface:K.FtCssVariableFactory.extend("--ft-card-background-color","",K.designSystemVariables.colorSurface),colorOnSurfaceMedium:K.FtCssVariableFactory.extend("--ft-card-content-color","",K.designSystemVariables.colorOnSurfaceMedium),colorOnSurfaceHigh:K.FtCssVariableFactory.extend("--ft-card-title-color","",K.designSystemVariables.colorOnSurfaceHigh),elevation02:K.FtCssVariableFactory.extend("--ft-card-elevation","",K.designSystemVariables.elevation02),elevation04:K.FtCssVariableFactory.extend("--ft-card-selected-elevation","",K.designSystemVariables.elevation04)},Gu=Wu.css`
3155
+ `}willUpdate(e){super.willUpdate(e),e.has("paging")&&this.ariaNotificationDebouncer.run(async()=>{if(this.paging!==void 0){let r=await this.awaitI18n({...this.searchNumberOfResults,args:[this.paging.totalClustersCount]});this.sendAriaNotification(r)}})}};kr.elementDefinitions={"ft-typography":j};kr.styles=Pu;fx([(0,oi.jsonProperty)({context:"officialContext",key:"searchNumberOfResults"})],kr.prototype,"searchNumberOfResults",void 0);fx([(0,oi.redux)()],kr.prototype,"paging",void 0)});var mx,gx=l(()=>{"use strict";Iu();mx={"ft-search-results-number":kr}});var vx,yx=l(()=>{"use strict";vx=u(m());gx();(0,vx.customElements)(mx)});var bx={};si(bx,{FtSearchResultsNumber:()=>kr,FtSearchResultsNumberCssVariables:()=>m0,styles:()=>Pu});var xx=l(()=>{"use strict";$u();hx();Iu();yx()});var Cx=u(m());var At=u(b()),Ui=u(m());var cc=u(b()),R=u(m());var zu=u(b()),K=u(m());gr();var X={padding:K.FtCssVariableFactory.create("--ft-card-padding","","SIZE","12px"),borderRadius:K.FtCssVariableFactory.extend("--ft-card-border-radius","",K.designSystemVariables.borderRadiusM),borderStyle:K.FtCssVariableFactory.create("--ft-card-border-style","","UNKNOWN","none"),borderColor:K.FtCssVariableFactory.extend("--ft-card-border-color","",K.designSystemVariables.colorOutline),hoverBorderColor:K.FtCssVariableFactory.extend("--ft-card-hover-border-color","",K.designSystemVariables.colorPrimary),outlineStyle:K.FtCssVariableFactory.create("--ft-card-outline-style","","UNKNOWN","solid"),outlineWidth:K.FtCssVariableFactory.create("--ft-card-outline-width","","SIZE","0"),outlineColor:K.FtCssVariableFactory.extend("--ft-card-outline-color","",K.designSystemVariables.colorPrimary),selectedOutlineStyle:K.FtCssVariableFactory.create("--ft-card-selected-outline-style","","UNKNOWN","solid"),selectedOutlineWidth:K.FtCssVariableFactory.create("--ft-card-selected-outline-width","","SIZE","2px"),selectedOutlineColor:K.FtCssVariableFactory.extend("--ft-card-selected-outline-color","",K.designSystemVariables.colorPrimary),selectedBorderRadius:K.FtCssVariableFactory.extend("--ft-card-selected-border-radius","",K.designSystemVariables.borderRadiusM),colorSurface:K.FtCssVariableFactory.extend("--ft-card-background-color","",K.designSystemVariables.colorSurface),colorOnSurfaceMedium:K.FtCssVariableFactory.extend("--ft-card-content-color","",K.designSystemVariables.colorOnSurfaceMedium),colorOnSurfaceHigh:K.FtCssVariableFactory.extend("--ft-card-title-color","",K.designSystemVariables.colorOnSurfaceHigh),elevation02:K.FtCssVariableFactory.extend("--ft-card-elevation","",K.designSystemVariables.elevation02),elevation04:K.FtCssVariableFactory.extend("--ft-card-selected-elevation","",K.designSystemVariables.elevation04)},qu=zu.css`
3156
3156
  :host {
3157
3157
  display: block;
3158
3158
  }
@@ -3241,7 +3241,7 @@
3241
3241
  #action {
3242
3242
  grid-area: actions;
3243
3243
  }
3244
- `;un();Ms();gr();Fs();var ze={searchFieldBackgroundColor:R.FtCssVariableFactory.extend("--ft-rsid-search-field-background-color","",R.designSystemVariables.colorSurface),searchFieldBorderColor:R.FtCssVariableFactory.extend("--ft-rsid-search-field-border-color","",R.designSystemVariables.colorOutline),searchFieldTextColor:R.FtCssVariableFactory.extend("--ft-rsid-search-field-text-color","",R.designSystemVariables.colorOnSurface),searchFieldBorderRadius:R.FtCssVariableFactory.extend("--ft-rsid-search-field-border-radius","",R.designSystemVariables.borderRadiusS),searchButtonColor:R.FtCssVariableFactory.extend("--ft-rsid-search-field-button-color","",R.designSystemVariables.colorPrimary),resultsNumberColor:R.FtCssVariableFactory.extend("--ft-rsid-results-number-color","",R.designSystemVariables.colorOnSurfaceMedium),resultBackgroundColor:R.FtCssVariableFactory.extend("--ft-rsid-result-background-color","",R.designSystemVariables.colorSurface),resultBorderColor:R.FtCssVariableFactory.extend("--ft-rsid-result-border-color","",R.designSystemVariables.colorOutline),resultBorderRadius:R.FtCssVariableFactory.extend("--ft-rsid-result-border-radius","",R.designSystemVariables.borderRadiusS),resultTitleTextColor:R.FtCssVariableFactory.extend("--ft-rsid-result-title-text-color","",R.designSystemVariables.colorOnSurface),resultBreadcrumbTextColor:R.FtCssVariableFactory.extend("--ft-rsid-result-breadcrumb-text-color","",R.designSystemVariables.colorOnSurfaceMedium),resultContentTextColor:R.FtCssVariableFactory.extend("--ft-rsid-result-content-text-color","",R.designSystemVariables.colorOnSurface),resultHighlightBackgroundColor:R.FtCssVariableFactory.create("--ft-rsid-result-highlight-background-color","","COLOR","#FFF26E"),resultHoverBackgroundColor:R.FtCssVariableFactory.extend("--ft-rsid-result-hover-background-color","",R.designSystemVariables.colorPrimary),resultHoverBorderColor:R.FtCssVariableFactory.extend("--ft-rsid-result-hover-border-color","",R.designSystemVariables.colorPrimary)},Jm=uc.css`
3244
+ `;un();Ds();gr();Ns();var ze={searchFieldBackgroundColor:R.FtCssVariableFactory.extend("--ft-rsid-search-field-background-color","",R.designSystemVariables.colorSurface),searchFieldBorderColor:R.FtCssVariableFactory.extend("--ft-rsid-search-field-border-color","",R.designSystemVariables.colorOutline),searchFieldTextColor:R.FtCssVariableFactory.extend("--ft-rsid-search-field-text-color","",R.designSystemVariables.colorOnSurface),searchFieldBorderRadius:R.FtCssVariableFactory.extend("--ft-rsid-search-field-border-radius","",R.designSystemVariables.borderRadiusS),searchButtonColor:R.FtCssVariableFactory.extend("--ft-rsid-search-field-button-color","",R.designSystemVariables.colorPrimary),resultsNumberColor:R.FtCssVariableFactory.extend("--ft-rsid-results-number-color","",R.designSystemVariables.colorOnSurfaceMedium),resultBackgroundColor:R.FtCssVariableFactory.extend("--ft-rsid-result-background-color","",R.designSystemVariables.colorSurface),resultBorderColor:R.FtCssVariableFactory.extend("--ft-rsid-result-border-color","",R.designSystemVariables.colorOutline),resultBorderRadius:R.FtCssVariableFactory.extend("--ft-rsid-result-border-radius","",R.designSystemVariables.borderRadiusS),resultTitleTextColor:R.FtCssVariableFactory.extend("--ft-rsid-result-title-text-color","",R.designSystemVariables.colorOnSurface),resultBreadcrumbTextColor:R.FtCssVariableFactory.extend("--ft-rsid-result-breadcrumb-text-color","",R.designSystemVariables.colorOnSurfaceMedium),resultContentTextColor:R.FtCssVariableFactory.extend("--ft-rsid-result-content-text-color","",R.designSystemVariables.colorOnSurface),resultHighlightBackgroundColor:R.FtCssVariableFactory.create("--ft-rsid-result-highlight-background-color","","COLOR","#FFF26E"),resultHoverBackgroundColor:R.FtCssVariableFactory.extend("--ft-rsid-result-hover-background-color","",R.designSystemVariables.colorPrimary),resultHoverBorderColor:R.FtCssVariableFactory.extend("--ft-rsid-result-hover-border-color","",R.designSystemVariables.colorPrimary)},Xm=cc.css`
3245
3245
  .ft-search-in-doc--container {
3246
3246
  display: flex;
3247
3247
  flex-direction: column;
@@ -3267,7 +3267,7 @@
3267
3267
  ft-search-load-more-button {
3268
3268
  margin: auto;
3269
3269
  }
3270
- `,eg=uc.css`
3270
+ `,Ym=cc.css`
3271
3271
  ft-card {
3272
3272
  margin-bottom: 8px;
3273
3273
  ${(0,R.setVariable)(X.elevation04,"none")};
@@ -3281,7 +3281,7 @@
3281
3281
 
3282
3282
  ft-search-result-title {
3283
3283
  color: ${ze.resultTitleTextColor};
3284
- ${(0,R.setVariable)(Ns.highlightBackgroundColor,ze.resultHighlightBackgroundColor)};
3284
+ ${(0,R.setVariable)(Ms.highlightBackgroundColor,ze.resultHighlightBackgroundColor)};
3285
3285
  }
3286
3286
 
3287
3287
  .breadcrumb {
@@ -3290,7 +3290,7 @@
3290
3290
 
3291
3291
  ft-search-result-abstract {
3292
3292
  color: ${ze.resultContentTextColor};
3293
- ${(0,R.setVariable)(Ds.highlightBackgroundColor,ze.resultHighlightBackgroundColor)};
3293
+ ${(0,R.setVariable)(Is.highlightBackgroundColor,ze.resultHighlightBackgroundColor)};
3294
3294
  }
3295
3295
 
3296
3296
  ft-card:hover {
@@ -3308,8 +3308,8 @@
3308
3308
  text-decoration: none;
3309
3309
  color: inherit;
3310
3310
  }
3311
- `;kt();var Us=u(m()),ig=u(B());var tg;(function(t){t.clusteringHelperCreated="clustering-helper-created",t.mapAttachmentsUpdate="map-attachments-update",t.visibleTopicChange="visible-topic-change",t.requestedTopicNotFound="requested-topic-not-found"})(tg||(tg={}));var rg;(function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"})(rg||(rg={}));var t0=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},dc=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},pc=Symbol("registerInterval"),r0=(0,Us.applyMixinOnce)(Symbol("toFtReaderComponent"),function(t){var e;class r extends t{constructor(){super(...arguments),this[e]=0}setReaderStateManager(o){this.clearStateManager(),this.stateManager=o,this.addStore(o.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var o;return(o=this.stateManager)===null||o===void 0?void 0:o.service}connectedCallback(){super.connectedCallback(),this[pc]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[pc]):this.dispatchEvent(new dc)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=pc,t0([(0,ig.state)()],r.prototype,"stateManager",void 0),r}),Bs=class extends r0(Us.FtLitElementRedux){};var Lr=u(B());hc();kt();var fc=sr.build("designedReaderSearchInDocument");var dn=u(b()),Ti=u(B()),sg=u(m());Ge();ge();var ag=u(it()),go=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},lt=class extends sg.FtLitElement{constructor(){super(...arguments),this.title="",this.clickable=!1,this.selected=!1,this.noHeader=!1,this.noContent=!1,this.oneLineHeader=!1}render(){let e={selected:this.selected,clickable:this.clickable,"no-header":this.noHeader,"no-content":this.noContent,"one-line-header":this.oneLineHeader};return dn.html`
3312
- <div id="container" part="container" class="${(0,ag.classMap)(e)}">
3311
+ `;kt();var Bs=u(m()),eg=u(B());var Zm;(function(t){t.clusteringHelperCreated="clustering-helper-created",t.mapAttachmentsUpdate="map-attachments-update",t.visibleTopicChange="visible-topic-change",t.requestedTopicNotFound="requested-topic-not-found"})(Zm||(Zm={}));var Jm;(function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"})(Jm||(Jm={}));var JS=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},pc=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},uc=Symbol("registerInterval"),e0=(0,Bs.applyMixinOnce)(Symbol("toFtReaderComponent"),function(t){var e;class r extends t{constructor(){super(...arguments),this[e]=0}setReaderStateManager(o){this.clearStateManager(),this.stateManager=o,this.addStore(o.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var o;return(o=this.stateManager)===null||o===void 0?void 0:o.service}connectedCallback(){super.connectedCallback(),this[uc]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[uc]):this.dispatchEvent(new pc)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=uc,JS([(0,eg.state)()],r.prototype,"stateManager",void 0),r}),Fs=class extends e0(Bs.FtLitElementRedux){};var Lr=u(B());dc();kt();var hc=sr.build("designedReaderSearchInDocument");var dn=u(b()),Ti=u(B()),ig=u(m());Ge();ge();var og=u(it()),go=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},lt=class extends ig.FtLitElement{constructor(){super(...arguments),this.title="",this.clickable=!1,this.selected=!1,this.noHeader=!1,this.noContent=!1,this.oneLineHeader=!1}render(){let e={selected:this.selected,clickable:this.clickable,"no-header":this.noHeader,"no-content":this.noContent,"one-line-header":this.oneLineHeader};return dn.html`
3312
+ <div id="container" part="container" class="${(0,og.classMap)(e)}">
3313
3313
  ${this.clickable?dn.html`
3314
3314
  <ft-ripple primary ?selected=${this.selected}></ft-ripple>
3315
3315
  `:dn.nothing}
@@ -3326,9 +3326,9 @@
3326
3326
  </ft-typography>
3327
3327
  </div>
3328
3328
  </div>
3329
- `}};lt.elementDefinitions={"ft-ripple":L,"ft-typography":j};lt.styles=Gu;go([(0,Ti.property)()],lt.prototype,"title",void 0);go([(0,Ti.property)({type:Boolean})],lt.prototype,"clickable",void 0);go([(0,Ti.property)({type:Boolean})],lt.prototype,"selected",void 0);go([(0,Ti.property)({type:Boolean})],lt.prototype,"noHeader",void 0);go([(0,Ti.property)({type:Boolean})],lt.prototype,"noContent",void 0);go([(0,Ti.property)({type:Boolean})],lt.prototype,"oneLineHeader",void 0);var cg=u(m());var lg={"ft-card":lt};(0,cg.customElements)(lg);fn();ge();Rs();var mr=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},We=class t extends at(Bs){constructor(){super(),this.searchInDocumentQuery="",this.hideResultTitle=!1,this.hideResultBreadcrumb=!1,this.hideResultAbstract=!1,this.hideResultsNumber=!1,this.emptyResultOnClear=!1,this.uniqueId=(0,Ui.randomId)(6,"search-in-document-"),this.addI18nContext(fc)}get filters(){return[{key:"ft:publicationId",valueFilter:{negative:!1,values:[this.map.id]}}]}renderResult(e,r){var i;return At.html`
3330
- <style> ${eg}</style>
3331
- <a href="${Hs(e)}" @click=${()=>this.onLinkClick(e,r)}
3329
+ `}};lt.elementDefinitions={"ft-ripple":L,"ft-typography":j};lt.styles=qu;go([(0,Ti.property)()],lt.prototype,"title",void 0);go([(0,Ti.property)({type:Boolean})],lt.prototype,"clickable",void 0);go([(0,Ti.property)({type:Boolean})],lt.prototype,"selected",void 0);go([(0,Ti.property)({type:Boolean})],lt.prototype,"noHeader",void 0);go([(0,Ti.property)({type:Boolean})],lt.prototype,"noContent",void 0);go([(0,Ti.property)({type:Boolean})],lt.prototype,"oneLineHeader",void 0);var sg=u(m());var ng={"ft-card":lt};(0,sg.customElements)(ng);fn();ge();ws();var mr=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},We=class t extends at(Fs){constructor(){super(),this.searchInDocumentQuery="",this.hideResultTitle=!1,this.hideResultBreadcrumb=!1,this.hideResultAbstract=!1,this.hideResultsNumber=!1,this.emptyResultOnClear=!1,this.uniqueId=(0,Ui.randomId)(6,"search-in-document-"),this.addI18nContext(hc)}get filters(){return[{key:"ft:publicationId",valueFilter:{negative:!1,values:[this.map.id]}}]}renderResult(e,r){var i;return At.html`
3330
+ <style> ${Ym}</style>
3331
+ <a href="${Us(e)}" @click=${()=>this.onLinkClick(e,r)}
3332
3332
  @auxclick=${o=>this.onAuxClick(o,e,r)}
3333
3333
  @contextmenu=${()=>this.onContextMenu(e,r)}>
3334
3334
  <ft-card clickable noheader>
@@ -3353,7 +3353,7 @@
3353
3353
  scope="ALL_TOPICS"
3354
3354
  ignoreEmptyQuery>
3355
3355
  <div class="ft-search-in-doc--container">
3356
- <ft-search-input placeholder="${this.placeholder?this.placeholder.message:fc.messages.placeholder()}"
3356
+ <ft-search-input placeholder="${this.placeholder?this.placeholder.message:hc.messages.placeholder()}"
3357
3357
  ?triggerSearchOnClear=${this.emptyResultOnClear}
3358
3358
  @change=${e=>{var r;(r=this.stateManager)===null||r===void 0||r.setSearchInDocumentQuery(e.detail)}}></ft-search-input>
3359
3359
  ${this.hideResultsNumber?At.nothing:At.html`
@@ -3368,7 +3368,7 @@
3368
3368
  </slot>
3369
3369
  </div>
3370
3370
  </ft-search-context>
3371
- `:At.nothing}willUpdate(e){super.willUpdate(e),e.has("map")&&this.map&&this.initEventManager(),["hideResultTitle","hideResultBreadcrumb","hideResultAbstract"].some(r=>e.has(r))&&this.searchResults&&this.searchResults.requestUpdate()}initEventManager(){(0,Ui.waitFor)(()=>{var e;return(e=this.searchContext)===null||e===void 0?void 0:e.eventManager}).then(e=>{e.setDocumentSearchFromMap(this.map),e.initAppInfo()})}onLinkClick(e,r){this.dispatchEvent(new vo(e,r))}importDynamicDependencies(){super.importDynamicDependencies();let e=t.registry;Promise.resolve().then(()=>(Rg(),wg)).then(({FtSearchContext:r})=>e.define("ft-search-context",r)),Promise.resolve().then(()=>(xb(),bb)).then(({FtSearchInput:r})=>e.define("ft-search-input",r)),Promise.resolve().then(()=>(kb(),_b)).then(({FtSearchLoadMoreButton:r})=>e.define("ft-search-load-more-button",r)),Promise.resolve().then(()=>(Ou(),Fb)).then(({FtSearchResultAbstract:r})=>e.define("ft-search-result-abstract",r)),Promise.resolve().then(()=>(Ru(),Wb)).then(({FtSearchResultTitle:r})=>e.define("ft-search-result-title",r)),Promise.resolve().then(()=>(fx(),hx)).then(({FtSearchResults:r})=>e.define("ft-search-results",r)),Promise.resolve().then(()=>(Ex(),Cx)).then(({FtSearchResultsNumber:r})=>e.define("ft-search-results-number",r))}};We.elementDefinitions={"ft-card":lt};We.styles=Jm;mr([(0,Ui.redux)()],We.prototype,"map",void 0);mr([(0,Ui.redux)()],We.prototype,"searchInDocumentQuery",void 0);mr([(0,Lr.query)("ft-search-results")],We.prototype,"searchResults",void 0);mr([(0,Lr.property)({type:Boolean})],We.prototype,"hideResultTitle",void 0);mr([(0,Lr.property)({type:Boolean})],We.prototype,"hideResultBreadcrumb",void 0);mr([(0,Lr.property)({type:Boolean})],We.prototype,"hideResultAbstract",void 0);mr([(0,Lr.property)({type:Boolean})],We.prototype,"hideResultsNumber",void 0);mr([(0,Lr.property)({type:Boolean})],We.prototype,"emptyResultOnClear",void 0);mr([(0,Lr.query)('[part="search-context"]')],We.prototype,"searchContext",void 0);mr([fo()],We.prototype,"placeholder",void 0);var Ax={"ft-reader-search-in-document":We};(0,Ox.customElements)(Ax);})();
3371
+ `:At.nothing}willUpdate(e){super.willUpdate(e),e.has("map")&&this.map&&this.initEventManager(),["hideResultTitle","hideResultBreadcrumb","hideResultAbstract"].some(r=>e.has(r))&&this.searchResults&&this.searchResults.requestUpdate()}initEventManager(){(0,Ui.waitFor)(()=>{var e;return(e=this.searchContext)===null||e===void 0?void 0:e.eventManager}).then(e=>{e.setDocumentSearchFromMap(this.map),e.initAppInfo()})}onLinkClick(e,r){this.dispatchEvent(new vo(e,r))}importDynamicDependencies(){super.importDynamicDependencies();let e=t.registry;Promise.resolve().then(()=>(Ag(),Eg)).then(({FtSearchContext:r})=>e.define("ft-search-context",r)),Promise.resolve().then(()=>(vb(),gb)).then(({FtSearchInput:r})=>e.define("ft-search-input",r)),Promise.resolve().then(()=>(Rb(),wb)).then(({FtSearchLoadMoreButton:r})=>e.define("ft-search-load-more-button",r)),Promise.resolve().then(()=>(Db(),Ib)).then(({FtSearchResultAbstract:r})=>e.define("ft-search-result-abstract",r)),Promise.resolve().then(()=>(zb(),jb)).then(({FtSearchResultTitle:r})=>e.define("ft-search-result-title",r)),Promise.resolve().then(()=>(px(),ux)).then(({FtSearchResults:r})=>e.define("ft-search-results",r)),Promise.resolve().then(()=>(xx(),bx)).then(({FtSearchResultsNumber:r})=>e.define("ft-search-results-number",r))}};We.elementDefinitions={"ft-card":lt};We.styles=Xm;mr([(0,Ui.redux)()],We.prototype,"map",void 0);mr([(0,Ui.redux)()],We.prototype,"searchInDocumentQuery",void 0);mr([(0,Lr.query)("ft-search-results")],We.prototype,"searchResults",void 0);mr([(0,Lr.property)({type:Boolean})],We.prototype,"hideResultTitle",void 0);mr([(0,Lr.property)({type:Boolean})],We.prototype,"hideResultBreadcrumb",void 0);mr([(0,Lr.property)({type:Boolean})],We.prototype,"hideResultAbstract",void 0);mr([(0,Lr.property)({type:Boolean})],We.prototype,"hideResultsNumber",void 0);mr([(0,Lr.property)({type:Boolean})],We.prototype,"emptyResultOnClear",void 0);mr([(0,Lr.query)('[part="search-context"]')],We.prototype,"searchContext",void 0);mr([fo()],We.prototype,"placeholder",void 0);var Sx={"ft-reader-search-in-document":We};(0,Cx.customElements)(Sx);})();
3372
3372
  /*! Bundled license information:
3373
3373
 
3374
3374
  lit-html/lit-html.js: