@fluid-topics/ft-reader-search-in-document 2.1.24 → 2.2.1

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 Ex=Object.create;var Ea=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)Ea(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&&Ea(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?Ea(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,vr=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`
1
+ "use strict";(()=>{var $x=Object.create;var La=Object.defineProperty;var Px=Object.getOwnPropertyDescriptor;var Ix=Object.getOwnPropertyNames;var Mx=Object.getPrototypeOf,Dx=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 Di=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}},ri=(t,e)=>{for(var r in e)La(t,r,{get:e[r],enumerable:!0})},Nx=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Ix(e))!Dx.call(t,s)&&s!==r&&La(t,s,{get:()=>e[s],enumerable:!(i=Px(e,s))||i.enumerable});return t};var c=(t,e,r)=>(r=t!=null?$x(Mx(t)):{},Nx(e||!t||!t.__esModule?La(r,"default",{value:t,enumerable:!0}):r,t));var f=Di((NE,Bu)=>{Bu.exports=ftGlobals.wcUtils});var g=Di((FE,Uu)=>{Uu.exports=ftGlobals.lit});var Ku,Ee,Vu,q,zu,Hu,ju,qu,Wu,yr=l(()=>{"use strict";Ku=c(g()),Ee=c(f()),Vu=Ee.FtCssVariableFactory.extend("--ft-ripple-color","",Ee.designSystemVariables.colorContent),q={color:Vu,backgroundColor:Ee.FtCssVariableFactory.extend("--ft-ripple-background-color","",Vu),opacityContentOnSurfacePressed:Ee.FtCssVariableFactory.external(Ee.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:Ee.FtCssVariableFactory.external(Ee.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:Ee.FtCssVariableFactory.external(Ee.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:Ee.FtCssVariableFactory.external(Ee.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:Ee.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},zu=Ee.FtCssVariableFactory.extend("--ft-ripple-color","",Ee.designSystemVariables.colorPrimary),Hu={color:zu,backgroundColor:Ee.FtCssVariableFactory.extend("--ft-ripple-background-color","",zu)},ju=Ee.FtCssVariableFactory.extend("--ft-ripple-color","",Ee.designSystemVariables.colorSecondary),qu={color:ju,backgroundColor:Ee.FtCssVariableFactory.extend("--ft-ripple-background-color","",ju)},Wu=Ku.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: ${Hu.backgroundColor};
56
+ background-color: ${qu.backgroundColor};
57
57
  }
58
58
 
59
59
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
60
- background-color: ${Hu.color};
60
+ background-color: ${qu.color};
61
61
  }
62
62
 
63
63
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
64
- background-color: ${Bu.backgroundColor};
64
+ background-color: ${Hu.backgroundColor};
65
65
  }
66
66
 
67
67
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
68
- background-color: ${Bu.color};
68
+ background-color: ${Hu.color};
69
69
  }
70
70
 
71
71
  .ft-ripple .ft-ripple--background {
@@ -110,21 +110,48 @@
110
110
  opacity: ${q.opacityContentOnSurfacePressed};
111
111
  transform: translate(-50%, -50%) scale(1);
112
112
  }
113
- `});var B=Hi((C0,Ku)=>{Ku.exports=ftGlobals.litDecorators});var it=Hi((E0,Wu)=>{Wu.exports=ftGlobals.litClassMap});var Gu,Le,Qu,Io,ot,L,Aa=l(()=>{"use strict";Gu=u(b()),Le=u(B()),Qu=u(it()),Io=u(m());vr();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 Io.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 Io.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 Io.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`
113
+ `});var F=Di((zE,Yu)=>{Yu.exports=ftGlobals.litDecorators});var st=Di((HE,Xu)=>{Xu.exports=ftGlobals.litClassMap});var Zu,$e,Ju,_o,nt,k,$a=l(()=>{"use strict";Zu=c(g()),$e=c(F()),Ju=c(st()),_o=c(f());yr();nt=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},k=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:s,y:o}=this.getCoordinates(e),n=(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(s!=null?s-n.x:n.width/2),this.originY=Math.round(o!=null?o-n.y:n.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 Zu.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,Qu.classMap)(e)}">
120
+ <div class="${(0,Ju.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=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";Aa();Yu={"ft-ripple":L}});var Ju,ep=l(()=>{"use strict";Ju=u(m());Zu();(0,Ju.customElements)(Yu)});var Ge=l(()=>{"use strict";Aa();vr();Xu();ep()});function fp(t,e){if(!Pa(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===No)return e;let o=i!==void 0?r._$Co?.[i]:r._$Cl,n=Mo(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,tp,kn,rp,lp,Dr,cp,_x,ci,Ln,Mo,Pa,kx,Oa,Do,ip,op,ai,np,sp,up,$a,pp,dp,hp,No,Se,ap,li,Lx,Fo,wa,Pn,ji,Ra,Ta,_a,ka,Px,Ia=l(()=>{La=globalThis,tp=t=>t,kn=La.trustedTypes,rp=kn?kn.createPolicy("lit-html",{createHTML:t=>t}):void 0,lp="$lit$",Dr=`lit$${Math.random().toFixed(9).slice(2)}$`,cp="?"+Dr,_x=`<${cp}>`,ci=document,Ln=()=>ci.createComment(""),Mo=t=>t===null||typeof t!="object"&&typeof t!="function",Pa=Array.isArray,kx=t=>Pa(t)||typeof t?.[Symbol.iterator]=="function",Oa=`[
125
- \f\r]`,Do=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ip=/-->/g,op=/>/g,ai=RegExp(`>|${Oa}(?:([^\\s"'>=/]+)(${Oa}*=${Oa}*(?:[^
126
- \f\r"'\`<>=]|("|')|))|$)`,"g"),np=/'/g,sp=/"/g,up=/^(?:script|style|textarea|title)$/i,$a=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),pp=$a(1),dp=$a(2),hp=$a(3),No=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=Do;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===Do?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??Do,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=Do:(s=ai,o=void 0);let g=s===ai&&t[a+1].startsWith("/>")?" ":"";n+=s===Do?c+_x:h>=0?(i.push(p),c.slice(0,h)+lp+c.slice(h)+Dr+g):c+Dr+(h===-2?a:g)}return[fp(t,n+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},Fo=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(Dr),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(Dr)&&(c.push({type:6,index:n}),o.removeAttribute(h));if(up.test(o.tagName)){let h=o.textContent.split(Dr),f=h.length-1;if(f>0){o.textContent=kn?kn.emptyScript:"";for(let g=0;g<f;g++)o.append(h[g],Ln()),li.nextNode(),c.push({type:2,index:++n});o.append(h[f],Ln())}}}else if(o.nodeType===8)if(o.data===cp)c.push({type:2,index:n});else{let h=-1;for(;(h=o.data.indexOf(Dr,h+1))!==-1;)c.push({type:7,index:n}),h+=Dr.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 Pn(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++}},Pn=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),Mo(e)?e===Se||e==null||e===""?(this._$AH!==Se&&this._$AR(),this._$AH=Se):e!==this._$AH&&e!==No&&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&&Mo(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=Fo.createElement(fp(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=ap.get(e.strings);return r===void 0&&ap.set(e.strings,r=new Fo(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(Ln()),this.O(Ln()),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=!Mo(e)||e!==this._$AH&&e!==No,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===No&&(p=this._$AH[c]),s||=!Mo(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)===No)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)}},Px=La.litHtmlPolyfillSupport;Px?.(Fo,Pn),(La.litHtmlVersions??=[]).push("3.3.3")});var gp,$x,Da,mp,Ma,Na,M0,N0,vp=l(()=>{Ia();gp=Symbol.for(""),$x=t=>{if(t?.r===gp)return t?._$litStatic$},Da=t=>({_$litStatic$:t,r:gp}),mp=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=$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)},Na=Ma(pp),M0=Ma(dp),N0=Ma(hp)});var yp=l(()=>{vp()});var Q,$n=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,br,C,zi,qi,Ki,Wi,yr,we,ft,Gi,Qi,Jt,xp,Sp,Cp,Ep,Ap,Mr,Nr,Op,wp,Rp,Tp,Nt=l(()=>{"use strict";wt=u(b()),S=u(m()),bp=S.FtCssVariableFactory.extend("--ft-typography-font-family","",S.designSystemVariables.titleFont),br=S.FtCssVariableFactory.extend("--ft-typography-font-family","",S.designSystemVariables.contentFont),C={fontFamily:br,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","",br),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","",br),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")},yr={fontFamily:S.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",br),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","",br),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","",br),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","",br),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","",br),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")},Jt={fontFamily:S.FtCssVariableFactory.extend("--ft-typography-button-font-family","",br),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`
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)=>u=>{a.forEach(d=>window.addEventListener(d,this.endPress,{once:!0})),this.startPress(u)},i=r("mouseup","contextmenu"),s=r("touchend","touchcancel"),o=a=>{["Enter"," "].includes(a.key)&&r("keyup")(a)},n={passive:!0};e.addEventListener("mouseover",this.startHover,n),e.addEventListener("mousemove",this.moveRipple,n),e.addEventListener("mouseleave",this.endHover,n),e.addEventListener("mousedown",i,n),e.addEventListener("touchstart",s,n),e.addEventListener("touchmove",this.moveRipple,n),e.addEventListener("keydown",o,n),e.addEventListener("focus",this.startFocus,n),e.addEventListener("blur",this.endFocus,n),e.addEventListener("focusin",this.startFocus,n),e.addEventListener("focusout",this.endFocus,n),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,n),e.removeEventListener("mousemove",this.moveRipple,n),e.removeEventListener("mouseleave",this.endHover,n),e.removeEventListener("mousedown",i,n),e.removeEventListener("touchstart",s,n),e.removeEventListener("touchmove",this.moveRipple,n),e.removeEventListener("keydown",o,n),e.removeEventListener("focus",this.startFocus,n),e.removeEventListener("blur",this.endFocus,n),e.removeEventListener("focusin",this.startFocus,n),e.removeEventListener("focusout",this.endFocus,n),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let r=e,i=e,s,o;return r.x!=null?{x:s,y:o}=r:i.touches!=null&&(s=i.touches[0].clientX,o=i.touches[0].clientY),{x:s,y:o}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let r of e.composedPath()){if(r===this.target)break;if("hasAttribute"in r&&r.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};k.elementDefinitions={};k.styles=Wu;nt([(0,$e.property)({type:Boolean})],k.prototype,"primary",void 0);nt([(0,$e.property)({type:Boolean})],k.prototype,"secondary",void 0);nt([(0,$e.property)({type:Boolean})],k.prototype,"unbounded",void 0);nt([(0,$e.property)({type:Boolean})],k.prototype,"activated",void 0);nt([(0,$e.property)({type:Boolean})],k.prototype,"selected",void 0);nt([(0,$e.property)({type:Boolean})],k.prototype,"disabled",void 0);nt([(0,$e.state)()],k.prototype,"hovered",void 0);nt([(0,$e.state)()],k.prototype,"focused",void 0);nt([(0,$e.state)()],k.prototype,"pressed",void 0);nt([(0,$e.state)()],k.prototype,"rippling",void 0);nt([(0,$e.state)()],k.prototype,"originX",void 0);nt([(0,$e.state)()],k.prototype,"originY",void 0);nt([(0,$e.query)(".ft-ripple")],k.prototype,"ripple",void 0);nt([(0,$e.query)(".ft-ripple--effect")],k.prototype,"rippleEffect",void 0)});var ed=l(()=>{"use strict"});var td,rd=l(()=>{"use strict";$a();td={"ft-ripple":k}});var id,od=l(()=>{"use strict";id=c(f());rd();(0,id.customElements)(td)});var Ye=l(()=>{"use strict";$a();yr();ed();od()});function bd(t,e){if(!Ua(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return nd!==void 0?nd.createHTML(e):e}function Ni(t,e,r=t,i){if(e===ko)return e;let s=i!==void 0?r._$Co?.[i]:r._$Cl,o=To(e)?void 0:e._$litDirective$;return s?.constructor!==o&&(s?._$AO?.(!1),o===void 0?s=void 0:(s=new o(t),s._$AT(t,r,i)),i!==void 0?(r._$Co??=[])[i]=s:r._$Cl=s),s!==void 0&&(e=Ni(t,s._$AS(t,e.values),s,i)),e}var Ba,sd,ws,nd,pd,Ir,hd,Fx,si,Os,To,Ua,Bx,Pa,Ro,ad,ld,ii,cd,ud,fd,Va,md,gd,yd,ko,Ce,dd,oi,Ux,Lo,Ia,_s,Fi,Ma,Da,Na,Fa,Vx,za=l(()=>{Ba=globalThis,sd=t=>t,ws=Ba.trustedTypes,nd=ws?ws.createPolicy("lit-html",{createHTML:t=>t}):void 0,pd="$lit$",Ir=`lit$${Math.random().toFixed(9).slice(2)}$`,hd="?"+Ir,Fx=`<${hd}>`,si=document,Os=()=>si.createComment(""),To=t=>t===null||typeof t!="object"&&typeof t!="function",Ua=Array.isArray,Bx=t=>Ua(t)||typeof t?.[Symbol.iterator]=="function",Pa=`[
125
+ \f\r]`,Ro=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ad=/-->/g,ld=/>/g,ii=RegExp(`>|${Pa}(?:([^\\s"'>=/]+)(${Pa}*=${Pa}*(?:[^
126
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),cd=/'/g,ud=/"/g,fd=/^(?:script|style|textarea|title)$/i,Va=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),md=Va(1),gd=Va(2),yd=Va(3),ko=Symbol.for("lit-noChange"),Ce=Symbol.for("lit-nothing"),dd=new WeakMap,oi=si.createTreeWalker(si,129);Ux=(t,e)=>{let r=t.length-1,i=[],s,o=e===2?"<svg>":e===3?"<math>":"",n=Ro;for(let a=0;a<r;a++){let u=t[a],d,p,h=-1,m=0;for(;m<u.length&&(n.lastIndex=m,p=n.exec(u),p!==null);)m=n.lastIndex,n===Ro?p[1]==="!--"?n=ad:p[1]!==void 0?n=ld:p[2]!==void 0?(fd.test(p[2])&&(s=RegExp("</"+p[2],"g")),n=ii):p[3]!==void 0&&(n=ii):n===ii?p[0]===">"?(n=s??Ro,h=-1):p[1]===void 0?h=-2:(h=n.lastIndex-p[2].length,d=p[1],n=p[3]===void 0?ii:p[3]==='"'?ud:cd):n===ud||n===cd?n=ii:n===ad||n===ld?n=Ro:(n=ii,s=void 0);let v=n===ii&&t[a+1].startsWith("/>")?" ":"";o+=n===Ro?u+Fx:h>=0?(i.push(d),u.slice(0,h)+pd+u.slice(h)+Ir+v):u+Ir+(h===-2?a:v)}return[bd(t,o+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},Lo=class t{constructor({strings:e,_$litType$:r},i){let s;this.parts=[];let o=0,n=0,a=e.length-1,u=this.parts,[d,p]=Ux(e,r);if(this.el=t.createElement(d,i),oi.currentNode=this.el.content,r===2||r===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(s=oi.nextNode())!==null&&u.length<a;){if(s.nodeType===1){if(s.hasAttributes())for(let h of s.getAttributeNames())if(h.endsWith(pd)){let m=p[n++],v=s.getAttribute(h).split(Ir),C=/([.?@])?(.*)/.exec(m);u.push({type:1,index:o,name:C[2],strings:v,ctor:C[1]==="."?Ma:C[1]==="?"?Da:C[1]==="@"?Na:Fi}),s.removeAttribute(h)}else h.startsWith(Ir)&&(u.push({type:6,index:o}),s.removeAttribute(h));if(fd.test(s.tagName)){let h=s.textContent.split(Ir),m=h.length-1;if(m>0){s.textContent=ws?ws.emptyScript:"";for(let v=0;v<m;v++)s.append(h[v],Os()),oi.nextNode(),u.push({type:2,index:++o});s.append(h[m],Os())}}}else if(s.nodeType===8)if(s.data===hd)u.push({type:2,index:o});else{let h=-1;for(;(h=s.data.indexOf(Ir,h+1))!==-1;)u.push({type:7,index:o}),h+=Ir.length-1}o++}}static createElement(e,r){let i=si.createElement("template");return i.innerHTML=e,i}};Ia=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,s=(e?.creationScope??si).importNode(r,!0);oi.currentNode=s;let o=oi.nextNode(),n=0,a=0,u=i[0];for(;u!==void 0;){if(n===u.index){let d;u.type===2?d=new _s(o,o.nextSibling,this,e):u.type===1?d=new u.ctor(o,u.name,u.strings,this,e):u.type===6&&(d=new Fa(o,this,e)),this._$AV.push(d),u=i[++a]}n!==u?.index&&(o=oi.nextNode(),n++)}return oi.currentNode=si,s}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++}},_s=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,i,s){this.type=2,this._$AH=Ce,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=i,this.options=s,this._$Cv=s?.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=Ni(this,e,r),To(e)?e===Ce||e==null||e===""?(this._$AH!==Ce&&this._$AR(),this._$AH=Ce):e!==this._$AH&&e!==ko&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Bx(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==Ce&&To(this._$AH)?this._$AA.nextSibling.data=e:this.T(si.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:i}=e,s=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=Lo.createElement(bd(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===s)this._$AH.p(r);else{let o=new Ia(s,this),n=o.u(this.options);o.p(r),this.T(n),this._$AH=o}}_$AC(e){let r=dd.get(e.strings);return r===void 0&&dd.set(e.strings,r=new Lo(e)),r}k(e){Ua(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,s=0;for(let o of e)s===r.length?r.push(i=new t(this.O(Os()),this.O(Os()),this,this.options)):i=r[s],i._$AI(o),s++;s<r.length&&(this._$AR(i&&i._$AB.nextSibling,s),r.length=s)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e!==this._$AB;){let i=sd(e).nextSibling;sd(e).remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Fi=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,i,s,o){this.type=1,this._$AH=Ce,this._$AN=void 0,this.element=e,this.name=r,this._$AM=s,this.options=o,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Ce}_$AI(e,r=this,i,s){let o=this.strings,n=!1;if(o===void 0)e=Ni(this,e,r,0),n=!To(e)||e!==this._$AH&&e!==ko,n&&(this._$AH=e);else{let a=e,u,d;for(e=o[0],u=0;u<o.length-1;u++)d=Ni(this,a[i+u],r,u),d===ko&&(d=this._$AH[u]),n||=!To(d)||d!==this._$AH[u],d===Ce?e=Ce:e!==Ce&&(e+=(d??"")+o[u+1]),this._$AH[u]=d}n&&!s&&this.j(e)}j(e){e===Ce?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Ma=class extends Fi{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Ce?void 0:e}},Da=class extends Fi{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==Ce)}},Na=class extends Fi{constructor(e,r,i,s,o){super(e,r,i,s,o),this.type=5}_$AI(e,r=this){if((e=Ni(this,e,r,0)??Ce)===ko)return;let i=this._$AH,s=e===Ce&&i!==Ce||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,o=e!==Ce&&(i===Ce||s);s&&this.element.removeEventListener(this.name,this,i),o&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},Fa=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){Ni(this,e)}},Vx=Ba.litHtmlPolyfillSupport;Vx?.(Lo,_s),(Ba.litHtmlVersions??=[]).push("3.3.3")});var xd,zx,Ha,vd,ja,qa,rC,iC,Sd=l(()=>{za();xd=Symbol.for(""),zx=t=>{if(t?.r===xd)return t?._$litStatic$},Ha=t=>({_$litStatic$:t,r:xd}),vd=new Map,ja=t=>(e,...r)=>{let i=r.length,s,o,n=[],a=[],u,d=0,p=!1;for(;d<i;){for(u=e[d];d<i&&(o=r[d],(s=zx(o))!==void 0);)u+=s+e[++d],p=!0;d!==i&&a.push(o),n.push(u),d++}if(d===i&&n.push(e[i]),p){let h=n.join("$$lit$$");(e=vd.get(h))===void 0&&(n.raw=n,vd.set(h,e=n)),r=a}return t(e,...r)},qa=ja(md),rC=ja(gd),iC=ja(yd)});var Ed=l(()=>{Sd()});var Y,Rs=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"})(Y||(Y={}))});var _t,b,Cd,vr,x,Bi,Ui,Vi,zi,br,_e,ft,Hi,ji,Jt,Ad,wd,Od,_d,Rd,Mr,Dr,Td,kd,Ld,$d,Nt=l(()=>{"use strict";_t=c(g()),b=c(f()),Cd=b.FtCssVariableFactory.extend("--ft-typography-font-family","",b.designSystemVariables.titleFont),vr=b.FtCssVariableFactory.extend("--ft-typography-font-family","",b.designSystemVariables.contentFont),x={fontFamily:vr,fontSize:b.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:b.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:b.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:b.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:b.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Bi={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-title-font-family","",Cd),fontSize:b.FtCssVariableFactory.extend("--ft-typography-title-font-size","",x.fontSize,"20px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",x.fontWeight,"normal"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",x.letterSpacing,"0.15px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-title-line-height","",x.lineHeight,"1.2"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",x.textTransform,"inherit")},Ui={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",Cd),fontSize:b.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",x.fontSize,"14px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",x.fontWeight,"normal"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",x.letterSpacing,"0.105px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",x.lineHeight,"1.7"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",x.textTransform,"inherit")},Vi={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",vr),fontSize:b.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",x.fontSize,"16px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",x.fontWeight,"600"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",x.letterSpacing,"0.144px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",x.lineHeight,"1.5"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",x.textTransform,"inherit")},zi={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",vr),fontSize:b.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",x.fontSize,"14px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",x.fontWeight,"normal"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",x.letterSpacing,"0.098px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",x.lineHeight,"1.7"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",x.textTransform,"inherit")},br={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",vr),fontSize:b.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",x.fontSize,"16px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",x.fontWeight,"normal"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",x.letterSpacing,"0.496px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",x.lineHeight,"1.5"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",x.textTransform,"inherit")},_e={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",vr),fontSize:b.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",x.fontSize,"14px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",x.fontWeight,"normal"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",x.letterSpacing,"0.252px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",x.lineHeight,"1.4"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",x.textTransform,"inherit")},ft={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",vr),fontSize:b.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",x.fontSize,"12px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",x.fontWeight,"normal"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",x.letterSpacing,"0.396px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",x.lineHeight,"1.33"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",x.textTransform,"inherit")},Hi={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",vr),fontSize:b.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",x.fontSize,"10px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",x.fontWeight,"normal"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",x.letterSpacing,"0.33px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",x.lineHeight,"1.6"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",x.textTransform,"inherit")},ji={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",vr),fontSize:b.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",x.fontSize,"10px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",x.fontWeight,"normal"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",x.letterSpacing,"1.5px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",x.lineHeight,"1.6"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",x.textTransform,"uppercase")},Jt={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-button-font-family","",vr),fontSize:b.FtCssVariableFactory.extend("--ft-typography-button-font-size","",x.fontSize,"14px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",x.fontWeight,"600"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",x.letterSpacing,"1.246px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-button-line-height","",x.lineHeight,"1.15"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",x.textTransform,"uppercase")},Ad=_t.css`
127
127
  .ft-typography--title {
128
+ font-family: ${Bi.fontFamily};
129
+ font-size: ${Bi.fontSize};
130
+ font-weight: ${Bi.fontWeight};
131
+ letter-spacing: ${Bi.letterSpacing};
132
+ line-height: ${Bi.lineHeight};
133
+ text-transform: ${Bi.textTransform};
134
+ }
135
+ `,wd=_t.css`
136
+ .ft-typography--title-dense {
137
+ font-family: ${Ui.fontFamily};
138
+ font-size: ${Ui.fontSize};
139
+ font-weight: ${Ui.fontWeight};
140
+ letter-spacing: ${Ui.letterSpacing};
141
+ line-height: ${Ui.lineHeight};
142
+ text-transform: ${Ui.textTransform};
143
+ }
144
+ `,Od=_t.css`
145
+ .ft-typography--subtitle1 {
146
+ font-family: ${Vi.fontFamily};
147
+ font-size: ${Vi.fontSize};
148
+ font-weight: ${Vi.fontWeight};
149
+ letter-spacing: ${Vi.letterSpacing};
150
+ line-height: ${Vi.lineHeight};
151
+ text-transform: ${Vi.textTransform};
152
+ }
153
+ `,_d=_t.css`
154
+ .ft-typography--subtitle2 {
128
155
  font-family: ${zi.fontFamily};
129
156
  font-size: ${zi.fontSize};
130
157
  font-weight: ${zi.fontWeight};
@@ -132,53 +159,26 @@
132
159
  line-height: ${zi.lineHeight};
133
160
  text-transform: ${zi.textTransform};
134
161
  }
135
- `,Sp=wt.css`
136
- .ft-typography--title-dense {
137
- font-family: ${qi.fontFamily};
138
- font-size: ${qi.fontSize};
139
- font-weight: ${qi.fontWeight};
140
- letter-spacing: ${qi.letterSpacing};
141
- line-height: ${qi.lineHeight};
142
- text-transform: ${qi.textTransform};
143
- }
144
- `,Cp=wt.css`
145
- .ft-typography--subtitle1 {
146
- font-family: ${Ki.fontFamily};
147
- font-size: ${Ki.fontSize};
148
- font-weight: ${Ki.fontWeight};
149
- letter-spacing: ${Ki.letterSpacing};
150
- line-height: ${Ki.lineHeight};
151
- text-transform: ${Ki.textTransform};
152
- }
153
- `,Ep=wt.css`
154
- .ft-typography--subtitle2 {
155
- font-family: ${Wi.fontFamily};
156
- font-size: ${Wi.fontSize};
157
- font-weight: ${Wi.fontWeight};
158
- letter-spacing: ${Wi.letterSpacing};
159
- line-height: ${Wi.lineHeight};
160
- text-transform: ${Wi.textTransform};
161
- }
162
162
 
163
- `,Ap=wt.css`
163
+ `,Rd=_t.css`
164
164
  .ft-typography--body1 {
165
- font-family: ${yr.fontFamily};
166
- font-size: ${yr.fontSize};
167
- font-weight: ${yr.fontWeight};
168
- letter-spacing: ${yr.letterSpacing};
169
- line-height: ${yr.lineHeight};
170
- text-transform: ${yr.textTransform};
171
- }
172
- `,Mr=wt.css`
165
+ font-family: ${br.fontFamily};
166
+ font-size: ${br.fontSize};
167
+ font-weight: ${br.fontWeight};
168
+ letter-spacing: ${br.letterSpacing};
169
+ line-height: ${br.lineHeight};
170
+ text-transform: ${br.textTransform};
171
+ }
172
+ `,Mr=_t.css`
173
173
  .ft-typography--body2 {
174
- font-family: ${we.fontFamily};
175
- font-size: ${we.fontSize};
176
- font-weight: ${we.fontWeight};
177
- letter-spacing: ${we.letterSpacing};
178
- line-height: ${we.lineHeight};
179
- text-transform: ${we.textTransform};
180
- }
181
- `,Nr=wt.css`
174
+ font-family: ${_e.fontFamily};
175
+ font-size: ${_e.fontSize};
176
+ font-weight: ${_e.fontWeight};
177
+ letter-spacing: ${_e.letterSpacing};
178
+ line-height: ${_e.lineHeight};
179
+ text-transform: ${_e.textTransform};
180
+ }
181
+ `,Dr=_t.css`
182
182
  .ft-typography--caption {
183
183
  font-family: ${ft.fontFamily};
184
184
  font-size: ${ft.fontSize};
@@ -187,25 +187,25 @@
187
187
  line-height: ${ft.lineHeight};
188
188
  text-transform: ${ft.textTransform};
189
189
  }
190
- `,Op=wt.css`
190
+ `,Td=_t.css`
191
191
  .ft-typography--breadcrumb {
192
- font-family: ${Gi.fontFamily};
193
- font-size: ${Gi.fontSize};
194
- font-weight: ${Gi.fontWeight};
195
- letter-spacing: ${Gi.letterSpacing};
196
- line-height: ${Gi.lineHeight};
197
- text-transform: ${Gi.textTransform};
198
- }
199
- `,wp=wt.css`
192
+ font-family: ${Hi.fontFamily};
193
+ font-size: ${Hi.fontSize};
194
+ font-weight: ${Hi.fontWeight};
195
+ letter-spacing: ${Hi.letterSpacing};
196
+ line-height: ${Hi.lineHeight};
197
+ text-transform: ${Hi.textTransform};
198
+ }
199
+ `,kd=_t.css`
200
200
  .ft-typography--overline {
201
- font-family: ${Qi.fontFamily};
202
- font-size: ${Qi.fontSize};
203
- font-weight: ${Qi.fontWeight};
204
- letter-spacing: ${Qi.letterSpacing};
205
- line-height: ${Qi.lineHeight};
206
- text-transform: ${Qi.textTransform};
207
- }
208
- `,Rp=wt.css`
201
+ font-family: ${ji.fontFamily};
202
+ font-size: ${ji.fontSize};
203
+ font-weight: ${ji.fontWeight};
204
+ letter-spacing: ${ji.letterSpacing};
205
+ line-height: ${ji.lineHeight};
206
+ text-transform: ${ji.textTransform};
207
+ }
208
+ `,Ld=_t.css`
209
209
  .ft-typography--button {
210
210
  font-family: ${Jt.fontFamily};
211
211
  font-size: ${Jt.fontSize};
@@ -214,19 +214,19 @@
214
214
  line-height: ${Jt.lineHeight};
215
215
  text-transform: ${Jt.textTransform};
216
216
  }
217
- `,Tp=wt.css`
217
+ `,$d=_t.css`
218
218
  .ft-typography {
219
219
  vertical-align: inherit;
220
220
  }
221
- `});var Fa,kp,_p,j,Ba=l(()=>{"use strict";yp();Fa=u(B()),kp=u(m());$n();Nt();_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?Na`
222
- <${Da(this.element)}
221
+ `});var Ka,Id,Pd,z,Wa=l(()=>{"use strict";Ed();Ka=c(F()),Id=c(f());Rs();Nt();Pd=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},z=class extends Id.FtLitElement{constructor(){super(...arguments),this.variant=Y.body1}render(){return this.element?qa`
222
+ <${Ha(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
+ </${Ha(this.element)}>
227
+ `:qa`
228
228
  <slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
229
- `}};j.styles=[xp,Sp,Cp,Ep,Ap,Mr,Nr,Op,wp,Rp,Tp];_p([(0,Fa.property)()],j.prototype,"element",void 0);_p([(0,Fa.property)()],j.prototype,"variant",void 0)});var Lp,Pp=l(()=>{"use strict";Ba();Lp={"ft-typography":j}});var $p,Ip=l(()=>{"use strict";$p=u(m());Pp();(0,$p.customElements)(Lp)});var ge=l(()=>{"use strict";Ba();Nt();$n();Ip()});var Dp,Fr,Bo,Mp,Ua=l(()=>{"use strict";Dp=u(b()),Fr=u(m()),Bo={distance:Fr.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:Fr.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:Fr.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),borderRadiusS:Fr.FtCssVariableFactory.extend("--ft-tooltip-border-radius","",Fr.designSystemVariables.borderRadiusS),maxWidth:Fr.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},Mp=Dp.css`
229
+ `}};z.styles=[Ad,wd,Od,_d,Rd,Mr,Dr,Td,kd,Ld,$d];Pd([(0,Ka.property)()],z.prototype,"element",void 0);Pd([(0,Ka.property)()],z.prototype,"variant",void 0)});var Md,Dd=l(()=>{"use strict";Wa();Md={"ft-typography":z}});var Nd,Fd=l(()=>{"use strict";Nd=c(f());Dd();(0,Nd.customElements)(Md)});var ve=l(()=>{"use strict";Wa();Nt();Rs();Fd()});var Bd,Nr,$o,Ud,Ga=l(()=>{"use strict";Bd=c(g()),Nr=c(f()),$o={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")},Ud=Bd.css`
230
230
  .ft-tooltip--container {
231
231
  display: block;
232
232
  }
@@ -244,28 +244,28 @@
244
244
  box-sizing: border-box;
245
245
  overflow: hidden;
246
246
  width: max-content;
247
- max-width: ${Bo.maxWidth};
247
+ max-width: ${$o.maxWidth};
248
248
  text-align: center;
249
- padding: ${Bo.distance};
249
+ padding: ${$o.distance};
250
250
  }
251
251
 
252
252
  .ft-tooltip--content {
253
253
  padding: 4px 8px;
254
- border-radius: ${Bo.borderRadiusS};
255
- background-color: ${Bo.backgroundColor};
256
- color: ${Bo.color};
254
+ border-radius: ${$o.borderRadiusS};
255
+ background-color: ${$o.backgroundColor};
256
+ color: ${$o.color};
257
257
  position: relative;
258
258
  word-break: break-word;
259
259
  }
260
- `});function Bp(t,e,r){return Br(t,Uo(e,r))}function In(t,e){return typeof t=="function"?t(e):t}function Vo(t){return t.split("-")[0]}function Ur(t){return t.split("-")[1]}function ja(t){return t==="x"?"y":"x"}function za(t){return t==="y"?"height":"width"}function Dn(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function qa(t){return ja(Dn(t))}function Up(t,e,r){r===void 0&&(r=!1);let i=Ur(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 Hp(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function Ha(t){let e=Vo(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,Va,Uo,Br,Ho,er,Ix,Mn=l(()=>{Fp=["top","right","bottom","left"],Np=["start","end"],Va=Fp.reduce((t,e)=>t.concat(e,e+"-"+Np[0],e+"-"+Np[1]),[]),Uo=Math.min,Br=Math.max,Ho=Math.round,er=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=Dn(e),s=qa(e),a=za(s),c=Vo(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=Ur(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}=In(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=>Ur(o)===t),...r.filter(o=>Ur(o)!==t)]:r.filter(o=>Vo(o)===o)).filter(o=>t?Ur(o)===t||(e?Hp(o)!==o:!1):!0)}var Mx,qp,Kp,Wp,Gp=l(()=>{Mn();Mn();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=Va,autoAlignment:g=!0,...v}=In(t,e),y=h!==void 0||f===Va?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[Vo(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 $r=Oe.map(dt=>{let Ot=Ur(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]),Ir=((o=$r.filter(dt=>dt[2].slice(0,Ur(dt[0])?2:3).every(Ot=>Ot<=0))[0])==null?void 0:o[0])||$r[0][0];return Ir!==a?{data:{index:E+1,overflows:Oe},reset:{placement:Ir}}:{}}}},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}=In(t,e),d={x:r,y:i},h=await n.detectOverflow(e,p),f=Dn(o),g=ja(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 Fn(){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 xr(t){var e;return(e=(Xp(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Xp(t){return Fn()?t instanceof Node||t instanceof nt(t).Node:!1}function Ft(t){return Fn()?t instanceof Element||t instanceof nt(t).Element:!1}function Sr(t){return Fn()?t instanceof HTMLElement||t instanceof nt(t).HTMLElement:!1}function Qp(t){return!Fn()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof nt(t).ShadowRoot}function jo(t){let{overflow:e,overflowX:r,overflowY:i,display:o}=Bt(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 zo(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}function Xi(t){let e=Ft(t)?Bt(t):t;return pi(e.transform)||pi(e.translate)||pi(e.scale)||pi(e.rotate)||pi(e.perspective)||!Bn()&&(pi(e.backdropFilter)||pi(e.filter))||Fx.test(e.willChange||"")||Bx.test(e.contain||"")}function Zp(t){let e=Hr(t);for(;Sr(e)&&!Yi(e);){if(Xi(e))return e;if(zo(e))return null;e=Hr(e)}return null}function Bn(){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 Bt(t){return nt(t).getComputedStyle(t)}function qo(t){return Ft(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Hr(t){if(di(t)==="html")return t;let e=t.assignedSlot||t.parentNode||Qp(t)&&t.host||xr(t);return Qp(e)?e.host:e}function Jp(t){let e=Hr(t);return Yi(e)?(t.ownerDocument||t).body:Sr(e)&&jo(e)?e:Jp(e)}function Nn(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=Un(s);return e.concat(s,s.visualViewport||[],jo(o)?o:[],a&&r?Nn(a):[])}else return e.concat(o,Nn(o,[],r))}function Un(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}var Fx,Bx,pi,Ka,Wa=l(()=>{Fx=/transform|translate|scale|rotate|perspective|filter/,Bx=/paint|layout|strict|content/,pi=t=>!!t&&t!=="none"});function rd(t){let e=Bt(t),r=parseFloat(e.width)||0,i=parseFloat(e.height)||0,o=Sr(t),n=o?t.offsetWidth:r,s=o?t.offsetHeight:i,a=Ho(r)!==n||Ho(i)!==s;return a&&(r=n,i=s),{width:r,height:i,$:a}}function id(t){return Ft(t)?t:t.contextElement}function Zi(t){let e=id(t);if(!Sr(e))return er(1);let r=e.getBoundingClientRect(),{width:i,height:o,$:n}=rd(e),s=(n?Ho(r.width):r.width)/i,a=(n?Ho(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!Bn()||!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 Ko(t,e,r,i){e===void 0&&(e=!1),r===void 0&&(r=!1);let o=t.getBoundingClientRect(),n=id(t),s=er(1);e&&(i?Ft(i)&&(s=Zi(i)):s=Zi(t));let a=Hx(n,r,i)?od(n):er(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=Ft(i)?nt(i):i,v=f,y=Un(v);for(;y&&g!==v;){let E=Zi(y),A=y.getBoundingClientRect(),w=Bt(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=Un(v)}}return ui({width:d,height:h,x:c,y:p})}function Hn(t,e){let r=qo(t).scrollLeft;return e?e.left+r:Ko(xr(t)).left+r}function nd(t,e){let r=t.getBoundingClientRect(),i=r.left+e.scrollLeft-Hn(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=xr(i),a=e?zo(e.floating):!1;if(i===s||a&&n)return r;let c={scrollLeft:0,scrollTop:0},p=er(1),d=er(0),h=Sr(i);if((h||!n)&&((di(i)!=="body"||jo(s))&&(c=qo(i)),h)){let g=Ko(i);p=Zi(i),d.x=g.x+i.clientLeft,d.y=g.y+i.clientTop}let f=s&&!h&&!n?nd(s,c):er(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=qo(t),r=t.ownerDocument.body,i=Br(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=Br(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),n=-e.scrollLeft+Hn(t),s=-e.scrollTop;return Bt(r).direction==="rtl"&&(n+=Br(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=xr(t),s=o.visualViewport,a=n.clientWidth,c=n.clientHeight,p=0,d=0;if(s){let f=!Bn()||e==="fixed";i?f||(p=-s.offsetLeft,d=-s.offsetTop):(a=s.width,c=s.height,f&&(p=s.offsetLeft,d=s.offsetTop))}if(Hn(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=Ko(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(xr(t));else if(Ft(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=Nn(t,[],!1).filter(a=>Ft(a)&&di(a)!=="body"),o=null,n=Bt(t).position==="fixed",s=n?Hr(t):t;for(;Ft(s)&&!Yi(s);){let a=Bt(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=Hr(s)}return e.set(t,i),i}function Qx(t){let{element:e,boundary:r,rootBoundary:i,strategy:o}=t,s=[...r==="clippingAncestors"?zo(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=Br(g.top,c),p=Uo(g.right,p),d=Uo(g.bottom,d),h=Br(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=Sr(e),o=xr(e),n=r==="fixed",s=Ko(t,!0,n,e),a={scrollLeft:0,scrollTop:0},c=er(0);if((i||!n)&&((di(e)!=="body"||jo(o))&&(a=qo(e)),i)){let f=Ko(e,!0,n,e);c.x=f.x+e.clientLeft,c.y=f.y+e.clientTop}!i&&o&&(c.x=Hn(o));let p=o&&!i&&!n?nd(o,a):er(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 Bt(t).position==="static"}function td(t,e){if(!Sr(t)||Bt(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return xr(t)===r&&(r=r.ownerDocument.body),r}function sd(t,e){let r=nt(t);if(zo(t))return r;if(!Sr(t)){let o=Hr(t);for(;o&&!Yi(o);){if(Ft(o)&&!Ga(o))return o;o=Hr(o)}return r}let i=td(t,e);for(;i&&Yp(i)&&Ga(i);)i=td(i,e);return i&&Yi(i)&&Ga(i)&&!Xi(i)?r:i||Zp(t)||r}function Jx(t){return Bt(t).direction==="rtl"}var Ux,qx,Zx,Vn,ad,ld,cd,ud=l(()=>{Gp();Mn();Wa();Ux=er(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}}};Vn={convertOffsetParentRelativeRectToViewportRelativeRect:Vx,getDocumentElement:xr,getClippingRect:Qx,getOffsetParent:sd,getElementRects:Zx,getClientRects:jx,getDimensions:Xx,getScale:Zi,isElement:Ft,isRTL:Jx},ad=Kp,ld=Wp,cd=(t,e,r)=>{let i=new Map,o=r??{},n={...Vn,...o.platform,_c:i};return qp(t,e,{...o,platform:n})}});function pd(t){return eS(t)}function Qa(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function eS(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 dd=l(()=>{Wa()});async function hd(t,e,r){let i;return typeof r=="object"?i=r:i={placement:r},cd(t,e,{strategy:i.strategy,platform:{...Vn,getOffsetParent:o=>Vn.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 Wo(t);try{return JSON.parse(r)}catch{return Wo(t)}},toAttribute:r=>JSON.stringify(r)},hasChanged:Go,...e??{}})}var md,Xa,jn=l(()=>{"use strict";md=u(B(),1);hi();Xa=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(!Ji(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(!Ji(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(!Ji(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function Ji(t,e){try{return tS(t,e)}catch{return!1}}function Go(t,e){return!Ji(t,e)}function Wo(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";jn()});var vd,Ya,yd=l(()=>{"use strict";hi();vd=u(B(),1),Ya=t=>{let e=t??{};return(r,i)=>{var o;let n={hasChanged:Go,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,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,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();jn();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){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 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,to,_d,wd,Rd,kd,Td,eo,tr,Ld=l(()=>{"use strict";fi=u(B(),1);jn();bd();Ed();Od();to=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"),eo=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};eo.eventName="exportparts-updated";tr=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(eo.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(eo.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 eo)})}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;to([(0,fi.property)()],tr.prototype,"exportpartsPrefix",void 0);to([gd([])],tr.prototype,"exportpartsPrefixes",void 0);to([(0,fi.property)({reflect:!0})],tr.prototype,"exportparts",void 0);to([(0,fi.property)()],tr.prototype,"customStylesheet",void 0);to([(0,fi.property)()],tr.prototype,"elementToFocus",void 0);to([(0,fi.state)()],tr.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 Qo,Vr,mi,iS,Pd,$d=l(()=>{"use strict";Ld();Xn();hi();Qo=Symbol("internalReduxEventsUnsubscribers"),Vr=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[Vr].has(s.store):this[Vr].size>0)&&(this[a]=s.selector(p.getState(),this))}})}subscribeToStore(s,a){var c;this[Vr].set(s,a.subscribe(()=>this.updateFromStores())),this[Qo].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[Qo].get(s).push(()=>a.removeEventListener(p.eventName,h))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[Vr].forEach((s,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(s){var a;this[Vr].has(s)&&this[Vr].get(s)(),this[Vr].delete(s),(a=this[Qo].get(s))===null||a===void 0||a.forEach(c=>c()),this[Qo].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=Vr,r=mi,i=Qo,o.reduxProperties=new Map,o.reduxReactiveProperties=new Set,o.reduxEventListeners=new Map,o}),Pd=class extends iS(tr){}});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 Cr(t){return!!t&&!!t[ue]}function Ut(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])||al(t)||ll(t))}function gi(t,e,r){r===void 0&&(r=!1),oo(t)===0?(r?Object.keys:io)(t).forEach((function(i){r&&typeof i=="symbol"||e(i,t[i],t)})):t.forEach((function(i,o){return e(o,i,t)}))}function oo(t){var e=t[ue];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:al(t)?2:ll(t)?3:0}function ro(t,e){return oo(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function oS(t,e){return oo(t)===2?t.get(e):t[e]}function Hd(t,e,r){var i=oo(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 al(t){return cS&&t instanceof Map}function ll(t){return uS&&t instanceof Set}function jr(t){return t.o||t.t}function cl(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=qd(t);delete e[ue];for(var r=io(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)||Cr(t)||!Ut(t)||(oo(t)>1&&(t.set=t.add=t.clear=t.delete=nS),Object.freeze(t),e&&gi(t,(function(r,i){return ul(i,!0)}),!0)),t}function nS(){Rt(2)}function pl(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function rr(t){var e=sl[t];return e||Rt(18,t),e}function sS(t,e){sl[t]||(sl[t]=e)}function il(){return Yo}function Ja(t,e){e&&(rr("Patches"),t.u=[],t.s=[],t.v=e)}function Yn(t){ol(t),t.p.forEach(aS),t.p=null}function ol(t){t===Yo&&(Yo=t.l)}function Id(t){return Yo={p:[],l:Yo,h:t,m:!0,_:0}}function aS(t){var e=t[ue];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||rr("ES5").S(e,t,i),i?(r[ue].P&&(Yn(e),Rt(4)),Ut(t)&&(t=Zn(e,t),e.l||Jn(e,t)),e.u&&rr("Patches").M(r[ue].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(pl(e))return e;var i=e[ue];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=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 Dd(t,i,o,a,c,r,s)})),Jn(t,o,!1),r&&t.u&&rr("Patches").N(i,r,t.u,t.s)}return i.o}function Dd(t,e,r,i,o,n,s){if(Cr(o)){var a=Zn(t,o,n&&e&&e.i!==3&&!ro(e.R,i)?n.concat(i):void 0);if(Hd(r,i,a),!Cr(a))return;t.m=!1}else s&&r.add(o);if(Ut(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[ue];return(r?jr(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 zr(t){t.P||(t.P=!0,t.l&&zr(t.l))}function rl(t){t.o||(t.o=cl(t.t))}function nl(t,e,r){var i=al(e)?rr("MapSet").F(e,r):ll(e)?rr("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=Zo;s&&(c=[a],p=Xo);var d=Proxy.revocable(c,p),h=d.revoke,f=d.proxy;return a.k=f,a.j=h,f})(e,r):rr("ES5").J(e,r);return(r?r.A:il()).p.push(i),i}function lS(t){return Cr(t)||Rt(22,t),(function e(r){if(!Ut(r))return r;var i,o=r[ue],n=oo(r);if(o){if(!o.P&&(o.i<4||!rr("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 cl(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[ue];return Zo.get(p,s)},set:function(p){var d=this[ue];Zo.set(d,s,p)}},c}function e(s){for(var a=s.length-1;a>=0;a--){var c=s[a][ue];if(!c.P)switch(c.i){case 5:i(c)&&zr(c);break;case 4:r(c)&&zr(c)}}}function r(s){for(var a=s.t,c=s.k,p=io(c),d=p.length-1;d>=0;d--){var h=p[d];if(h!==ue){var f=a[h];if(f===void 0&&!ro(a,h))return!0;var g=c[h],v=g&&g[ue];if(v?v.t!==f:!Vd(g,f))return!0}}var y=!!a[ue];return p.length!==io(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(jr(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[ue];for(var E=io(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,ue,{value:d,writable:!0}),p},S:function(s,a,c){c?Cr(a)&&a[ue].A===s&&e(s.p):(s.u&&(function p(d){if(d&&typeof d=="object"){var h=d[ue];if(h){var f=h.t,g=h.k,v=h.R,y=h.i;if(y===4)gi(g,(function(F){F!==ue&&(f[F]!==void 0||ro(f,F)?v[F]||p(g[F]):(v[F]=!0,zr(h)))})),gi(f,(function(F){g[F]!==void 0||ro(g,F)||(v[F]=!1,zr(h))}));else if(y===5){if(i(h)&&(zr(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,Yo,dl,cS,uS,Bd,zd,Ud,ue,pS,io,qd,sl,Zo,Xo,dS,mt,hS,ZC,JC,eE,tE,rE,iE,es,ts=l(()=>{dl=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=dl?Symbol.for("immer-nothing"):((Fd={})["immer-nothing"]=!0,Fd),Ud=dl?Symbol.for("immer-draftable"):"__$immer_draftable",ue=dl?Symbol.for("immer-state"):"__$immer_state",pS=""+Object.prototype.constructor,io=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 io(t).forEach((function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)})),e},sl={},Zo={get:function(t,e){if(e===ue)return t;var r=jr(t);if(!ro(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||!Ut(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 jr(t)},ownKeys:function(t){return Reflect.ownKeys(jr(t))},set:function(t,e,r){var i=Md(jr(t),e);if(i?.set)return i.set.call(t.k,r),!0;if(!t.P){var o=tl(jr(t),e),n=o?.[ue];if(n&&n.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(Vd(r,o)&&(r!==void 0||ro(t.t,e)))return!0;rl(t),zr(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),zr(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=jr(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)}},Xo={};gi(Zo,(function(t,e){Xo[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Xo.deleteProperty=function(t,e){return Xo.set.call(this,t,e,void 0)},Xo.set=function(t,e,r){return Zo.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),Ut(o)){var d=Id(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===zd&&(p=void 0),i.D&&ul(p,!0),s){var g=[],v=[];rr("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){Ut(r)||Rt(8),Cr(r)&&(r=lS(r));var i=Id(this),o=nl(this,r,void 0);return o[ue].C=!0,ol(i),o},e.finishDraft=function(r,i){var o=r&&r[ue],n=o.A;return Ja(n,i),el(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=rr("Patches").$;return Cr(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 hl=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(()=>{hl()});function Gd(t){var e=Kd(t,"string");return vi(e)=="symbol"?e:e+""}var Qd=l(()=>{hl();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 fl(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 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(!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 no(){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=no.apply(void 0,a)(o.dispatch),fl(fl({},o),{},{dispatch:n})}}}var eh,ml,rs,is=l(()=>{Jd();eh=(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 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,vl,nh=l(()=>{oh=ih();oh.withExtraArgument=ih;vl=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 Kr(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 qr(qr({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 Ut(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(vl):p.push(vl.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),!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=rh.apply(void 0,v),E=no;c&&(E=ES(qr({trace:!bl},typeof c=="object"&&c)));var A=new wS(y),w=A;Array.isArray(f)?w=so([y],f):typeof f=="function"&&(w=f(A));var $=E.apply(void 0,w);return gl(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 Sl(t())};else{var p=Sl(t);c=function(){return p}}function d(h,f){h===void 0&&(h=c());var g=so([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(Cr(v)){var E=v,A=y(E,f);return A===void 0?v:A}else{if(Ut(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:Sl(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?Kr(f,v):Kr(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=qr(qr({},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,so,vS,yS,bS,sh,xS,SS,ah,qr,yl,CS,ES,SE,OS,wS,bl,$S,IS,DS,xl,lh,MS,OE,fh,mh,gh,wE,RE,TE,_E,Cl,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}}},so=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},qr=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},yl=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"?no:no.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,so([void 0],r[0].concat(this)))):new(e.bind.apply(e,so([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,so([void 0],r[0].concat(this)))):new(e.bind.apply(e,so([void 0],r.concat(this))))},e})(Array);bl=!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"],xl=(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=Kr(e+"/fulfilled",function(d,h,f,g){return{payload:d,meta:yl(qr({},g||{}),{arg:f,requestId:h,requestStatus:"fulfilled"})}}),n=Kr(e+"/pending",function(d,h,f){return{payload:void 0,meta:yl(qr({},f||{}),{arg:h,requestId:d,requestStatus:"pending"})}}),s=Kr(e+"/rejected",function(d,h,f,g,v){return{payload:g,error:(i&&i.serializeError||MS)(d||"Rejected"),meta:yl(qr({},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,$r,Ca,Ir,dt;return gS(this,function(Ot){switch(Ot.label){case 0:return Ot.trys.push([0,4,,5]),$r=(F=i?.condition)==null?void 0:F.call(i,d,{getState:f,extra:g}),FS($r)?[4,$r]:[3,2];case 1:$r=Ot.sent(),Ot.label=2;case 2:if($r===!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 lh(ht,ni)}})).then(function(ht){if(ht instanceof xl)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 Ir=Ot.sent(),be=Ir instanceof xl?s(null,v,d,Ir.payload,Ir.meta):s(Ir,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,Cl="listenerMiddleware",kE=Kr(Cl+"/add"),LE=Kr(Cl+"/removeAll"),PE=Kr(Cl+"/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();Za();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=Wo(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=>{let h=c,f=this.getState()[h];Ji(f,d)||this.setState({[h]: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();Za();$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,Er,Jo,VS,O,Ve=l(()=>{"use strict";ss=u(m()),HS="ft-app-info",Er=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Er.eventName="authentication-change";Jo=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Jo.eventName="ui-locale-changed";VS={session:(t,e)=>{(0,ss.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>O.dispatchEvent(new Er(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 El,Oh,as,lA,wh=l(()=>{"use strict";El=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,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 Rh,Th,_h,Wr,kh,Lh,Ph,yi,$h,Ih,Dh,Mh,Nh,Fh,Bh,Uh,ls,Hh,Vh,ao,jh,cs,zh,qh,ir,lo,Kh,me,Tt,Wh,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"})(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"})(Wr||(Wr={}));(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"})(ao||(ao={}));(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"})(ir||(ir={}));(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(lo||(lo={}));(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(()=>{Ol();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(()=>{Ol();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(()=>{Al();af();cf();uf();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 co,Rl=l(()=>{"use strict";wl();co=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,Gr=l(()=>{"use strict";Tl=u(m());Rl();je=class extends co{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();Gr();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();Gr();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();Gr();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";Gr();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,Ll,Pl,hf,ff,Qe,$l,KS,Il=l(()=>{"use strict";bi();ms=u(m());_l();kl();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;Pl(t,r,[...Ll(t,r),o]),hf(t,r,1,i),ff(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)),ff(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)),hf(t,r,-1,i)}},mf={[Tt.SEARCHES]:"savedSearches",[Tt.BOOKMARKS]:"bookmarks",[Tt.BOOKS]:void 0,[Tt.COLLECTIONS]:void 0},Ll=(t,e)=>{var r;let i=mf[e];return i?(r=t[i])!==null&&r!==void 0?r:[]:[]},Pl=(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:[]}}),$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)}}},KS=new $l;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=KS)});var gf=l(()=>{"use strict";bi();Il()});var Dl,vf=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,yf,uo,WS,gs,po,vs,bf=l(()=>{"use strict";Ve();_t=u(m());Gr();uo=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 uo({loadedContexts:e})),this.dispatchEvent(new uo({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new uo({loadedContexts:[e]})),this.dispatchEvent(new uo({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))}});po=window.FluidTopicsI18nService,vs=window.FluidTopicsCustomI18nService});var xf,Ml,Sf=l(()=>{"use strict";xf=u(m()),Ml=class{highlightHtml(e,r,i){(0,xf.highlightHtml)(e,r,i)}};window.FluidTopicsHighlightHtmlService=new Ml});var Cf,Nl,Ef=l(()=>{"use strict";Cf=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 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 Nl});var Af,Ar,Fl=l(()=>{"use strict";Af=u(m());Ve();Ar=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";Gr();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 Bl,wf=l(()=>{"use strict";Fl();Bl=class{urlToSearchRequest(e){return Ar.get().parse(e)}searchRequestToUrl(e){return Ar.get().serialize(e)}};window.FluidTopicsUrlService=new Bl});var Si,Rf=l(()=>{"use strict";Si=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Si.eventName="change"});var Ul,Tf,_f=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))}},Tf=new Ul});var Or,bs,kf=l(()=>{"use strict";Or=u(m());Rf();_f();bs=class t extends Or.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,Or.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,Or.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,Or.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(i=>!!i).filter(i=>i.index<this.currentIndex).reverse();return(0,Or.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,Or.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";kl();wl();vf();bf();Gr();Sf();_l();Ef();Fl();Of();wf();Lf();Pf()});var $f,If,Hl=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";Rl();Ss=class extends co{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}}});var Ci,Vl,en,jl=l(()=>{"use strict";Ci=u(m());Ve();Nf();xs();Ff();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 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(Er.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 Jo(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)}},en=Vl.build()});var Ei,tn=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 zl=l(()=>{tn();});var Uf=l(()=>{});var ql=l(()=>{tn();Uf();});var rn,Hf=l(()=>{tn();rn=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(()=>{ql();});var jf=l(()=>{zl();});var zf=l(()=>{tn();Bf();zl();ql();Hf();Vf();jf()});var qf,st,Ai,Pe,de,Kl=l(()=>{"use strict";qf=u(b()),st=u(B()),Ai=u(m());Hl();xs();jl();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},de=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=en,this.contextRoot=new rn}render(){return qf.html`
260
+ `});function Hd(t,e,r){return Fr(t,Po(e,r))}function Ts(t,e){return typeof t=="function"?t(e):t}function Mo(t){return t.split("-")[0]}function Br(t){return t.split("-")[1]}function Xa(t){return t==="x"?"y":"x"}function Za(t){return t==="y"?"height":"width"}function ks(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function Ja(t){return Xa(ks(t))}function jd(t,e,r){r===void 0&&(r=!1);let i=Br(t),s=Ja(t),o=Za(s),n=s==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[o]>e.floating[o]&&(n=Qa(n)),[n,Qa(n)]}function qd(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function Qa(t){let e=Mo(t);return Hx[e]+t.slice(e.length)}function jx(t){var e,r,i,s;return{top:(e=t.top)!=null?e:0,right:(r=t.right)!=null?r:0,bottom:(i=t.bottom)!=null?i:0,left:(s=t.left)!=null?s:0}}function Kd(t){return typeof t!="number"?jx(t):{top:t,right:t,bottom:t,left:t}}function ni(t){let{x:e,y:r,width:i,height:s}=t;return{width:i,height:s,top:r,left:e,right:e+i,bottom:r+s,x:e,y:r}}var zd,Vd,Ya,Po,Fr,Io,er,Hx,Ls=l(()=>{zd=["top","right","bottom","left"],Vd=["start","end"],Ya=zd.reduce((t,e)=>t.concat(e,e+"-"+Vd[0],e+"-"+Vd[1]),[]),Po=Math.min,Fr=Math.max,Io=Math.round,er=t=>({x:t,y:t}),Hx={left:"right",right:"left",bottom:"top",top:"bottom"}});function Wd(t,e,r){let{reference:i,floating:s}=t,o=ks(e),n=Ja(e),a=Za(n),u=Mo(e),d=o==="y",p=i.x+i.width/2-s.width/2,h=i.y+i.height/2-s.height/2,m=i[a]/2-s[a]/2,v;switch(u){case"top":v={x:p,y:i.y-s.height};break;case"bottom":v={x:p,y:i.y+i.height};break;case"right":v={x:i.x+i.width,y:h};break;case"left":v={x:i.x-s.width,y:h};break;default:v={x:i.x,y:i.y}}let C=Br(e);return C&&(v[n]+=m*(C==="end"?1:-1)*(r&&d?-1:1)),v}async function Gd(t,e){var r;e===void 0&&(e={});let{x:i,y:s,platform:o,rects:n,elements:a,strategy:u}=t,{boundary:d="clippingAncestors",rootBoundary:p="viewport",elementContext:h="floating",altBoundary:m=!1,padding:v=0}=Ts(e,t),C=Kd(v),E=a[m?h==="floating"?"reference":"floating":h],$=ni(await o.getClippingRect({element:(r=await(o.isElement==null?void 0:o.isElement(E)))==null||r?E:E.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:d,rootBoundary:p,strategy:u})),Q=h==="floating"?{x:i,y:s,width:n.floating.width,height:n.floating.height}:n.reference,A=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),N=await(o.isElement==null?void 0:o.isElement(A))&&await(o.getScale==null?void 0:o.getScale(A))||{x:1,y:1},j=ni(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:Q,offsetParent:A,strategy:u}):Q);return{top:($.top-j.top+C.top)/N.y,bottom:(j.bottom-$.bottom+C.bottom)/N.y,left:($.left-j.left+C.left)/N.x,right:(j.right-$.right+C.right)/N.x}}function Kx(t,e,r){return(t?[...r.filter(s=>Br(s)===t),...r.filter(s=>Br(s)!==t)]:r.filter(s=>Mo(s)===s)).filter(s=>t?Br(s)===t||(e?qd(s)!==s:!1):!0)}var qx,Qd,Yd,Xd,Zd=l(()=>{Ls();Ls();qx=50,Qd=async(t,e,r)=>{let{placement:i="bottom",strategy:s="absolute",middleware:o=[],platform:n}=r,a=n.detectOverflow?n:{...n,detectOverflow:Gd},u=await(n.isRTL==null?void 0:n.isRTL(e)),d=await n.getElementRects({reference:t,floating:e,strategy:s}),{x:p,y:h}=Wd(d,i,u),m=i,v=0,C={};for(let T=0;T<o.length;T++){let E=o[T];if(!E)continue;let{name:$,fn:Q}=E,{x:A,y:N,data:j,reset:ye}=await Q({x:p,y:h,initialPlacement:i,placement:m,strategy:s,middlewareData:C,rects:d,platform:a,elements:{reference:t,floating:e}});p=A??p,h=N??h,C[$]={...C[$],...j},ye&&v<qx&&(v++,typeof ye=="object"&&(ye.placement&&(m=ye.placement),ye.rects&&(d=ye.rects===!0?await n.getElementRects({reference:t,floating:e,strategy:s}):ye.rects),{x:p,y:h}=Wd(d,m,u)),T=-1)}return{x:p,y:h,placement:m,strategy:s,middlewareData:C}};Yd=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,i,s;let{rects:o,middlewareData:n,placement:a,platform:u,elements:d}=e,{crossAxis:p=!1,alignment:h,allowedPlacements:m=Ya,autoAlignment:v=!0,...C}=Ts(t,e),T=h!==void 0||m===Ya?Kx(h||null,v,m):m,E=((r=n.autoPlacement)==null?void 0:r.index)||0,$=T[E];if($==null)return{};if(a!==$)return{reset:{placement:T[0]}};let Q=await u.detectOverflow(e,C),A=jd($,o,await(u.isRTL==null?void 0:u.isRTL(d.floating))),N=[Q[Mo($)],Q[A[0]],Q[A[1]]],j=[...((i=n.autoPlacement)==null?void 0:i.overflows)||[],{placement:$,overflows:N}],ye=T[E+1];if(ye)return{data:{index:E+1,overflows:j},reset:{placement:ye}};let ne=j.map(Ot=>{let ti=Br(Ot.placement);return[Ot.placement,ti&&p?Ot.overflows.slice(0,2).reduce((kx,Lx)=>kx+Lx,0):Ot.overflows[0],Ot.overflows]}).sort((Ot,ti)=>Ot[1]-ti[1]),Oo=((s=ne.filter(Ot=>Ot[2].slice(0,Br(Ot[0])?2:3).every(ti=>ti<=0))[0])==null?void 0:s[0])||ne[0][0];return Oo!==a?{data:{index:E+1,overflows:j},reset:{placement:Oo}}:{}}}},Xd=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:i,placement:s,platform:o}=e,{mainAxis:n=!0,crossAxis:a=!1,limiter:u={fn:Q=>{let{x:A,y:N}=Q;return{x:A,y:N}}},...d}=Ts(t,e),p={x:r,y:i},h=await o.detectOverflow(e,d),m=ks(s),v=Xa(m),C=p[v],T=p[m],E=(Q,A)=>Hd(A+h[Q==="y"?"top":"left"],A,A-h[Q==="y"?"bottom":"right"]);n&&(C=E(v,C)),a&&(T=E(m,T));let $=u.fn({...e,[v]:C,[m]:T});return{...$,data:{x:$.x-r,y:$.y-i,enabled:{[v]:n,[m]:a}}}}}}});function Ps(){return typeof window<"u"}function li(t){return ep(t)?(t.nodeName||"").toLowerCase():"#document"}function at(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function xr(t){var e;return(e=(ep(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function ep(t){return Ps()?t instanceof Node||t instanceof at(t).Node:!1}function Ft(t){return Ps()?t instanceof Element||t instanceof at(t).Element:!1}function Sr(t){return Ps()?t instanceof HTMLElement||t instanceof at(t).HTMLElement:!1}function Jd(t){return!Ps()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof at(t).ShadowRoot}function Do(t){let{overflow:e,overflowX:r,overflowY:i,display:s}=Bt(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&s!=="inline"&&s!=="contents"}function tp(t){return/^(table|td|th)$/.test(li(t))}function No(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}function qi(t){let e=Ft(t)?Bt(t):t;return ai(e.transform)||ai(e.translate)||ai(e.scale)||ai(e.rotate)||ai(e.perspective)||!Is()&&(ai(e.backdropFilter)||ai(e.filter))||Wx.test(e.willChange||"")||Gx.test(e.contain||"")}function rp(t){let e=Ur(t);for(;Sr(e)&&!Ki(e);){if(qi(e))return e;if(No(e))return null;e=Ur(e)}return null}function Is(){return el==null&&(el=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),el}function Ki(t){return/^(html|body|#document)$/.test(li(t))}function Bt(t){return at(t).getComputedStyle(t)}function Fo(t){return Ft(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Ur(t){if(li(t)==="html")return t;let e=t.assignedSlot||t.parentNode||Jd(t)&&t.host||xr(t);return Jd(e)?e.host:e}function ip(t){let e=Ur(t);return Ki(e)?(t.ownerDocument||t).body:Sr(e)&&Do(e)?e:ip(e)}function $s(t,e,r){var i;e===void 0&&(e=[]),r===void 0&&(r=!0);let s=ip(t),o=s===((i=t.ownerDocument)==null?void 0:i.body),n=at(s);if(o){let a=Ms(n);return e.concat(n,n.visualViewport||[],Do(s)?s:[],a&&r?$s(a):[])}else return e.concat(s,$s(s,[],r))}function Ms(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}var Wx,Gx,ai,el,tl=l(()=>{Wx=/transform|translate|scale|rotate|perspective|filter/,Gx=/paint|layout|strict|content/,ai=t=>!!t&&t!=="none"});function np(t){let e=Bt(t),r=parseFloat(e.width)||0,i=parseFloat(e.height)||0,s=Sr(t),o=s?t.offsetWidth:r,n=s?t.offsetHeight:i,a=Io(r)!==o||Io(i)!==n;return a&&(r=o,i=n),{width:r,height:i,$:a}}function ap(t){return Ft(t)?t:t.contextElement}function Wi(t){let e=ap(t);if(!Sr(e))return er(1);let r=e.getBoundingClientRect(),{width:i,height:s,$:o}=np(e),n=(o?Io(r.width):r.width)/i,a=(o?Io(r.height):r.height)/s;return(!n||!Number.isFinite(n))&&(n=1),(!a||!Number.isFinite(a))&&(a=1),{x:n,y:a}}function lp(t){let e=at(t);return!Is()||!e.visualViewport?Qx:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Yx(t,e,r){return e===void 0&&(e=!1),!!r&&e&&r===at(t)}function Bo(t,e,r,i){e===void 0&&(e=!1),r===void 0&&(r=!1);let s=t.getBoundingClientRect(),o=ap(t),n=er(1);e&&(i?Ft(i)&&(n=Wi(i)):n=Wi(t));let a=Yx(o,r,i)?lp(o):er(0),u=(s.left+a.x)/n.x,d=(s.top+a.y)/n.y,p=s.width/n.x,h=s.height/n.y;if(o&&i){let m=at(o),v=Ft(i)?at(i):i,C=m,T=Ms(C);for(;T&&v!==C;){let E=Wi(T),$=T.getBoundingClientRect(),Q=Bt(T),A=$.left+(T.clientLeft+parseFloat(Q.paddingLeft))*E.x,N=$.top+(T.clientTop+parseFloat(Q.paddingTop))*E.y;u*=E.x,d*=E.y,p*=E.x,h*=E.y,u+=A,d+=N,C=at(T),T=Ms(C)}}return ni({width:p,height:h,x:u,y:d})}function Ds(t,e){let r=Fo(t).scrollLeft;return e?e.left+r:Bo(xr(t)).left+r}function cp(t,e){let r=t.getBoundingClientRect(),i=r.left+e.scrollLeft-Ds(t,r),s=r.top+e.scrollTop;return{x:i,y:s}}function Xx(t){let{elements:e,rect:r,offsetParent:i,strategy:s}=t,o=s==="fixed",n=xr(i),a=e?No(e.floating):!1;if(i===n||a&&o)return r;let u={scrollLeft:0,scrollTop:0},d=er(1),p=er(0),h=Sr(i);if((h||!o)&&((li(i)!=="body"||Do(n))&&(u=Fo(i)),h)){let v=Bo(i);d=Wi(i),p.x=v.x+i.clientLeft,p.y=v.y+i.clientTop}let m=n&&!h&&!o?cp(n,u):er(0);return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-u.scrollLeft*d.x+p.x+m.x,y:r.y*d.y-u.scrollTop*d.y+p.y+m.y}}function Zx(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function Jx(t){let e=Fo(t),r=t.ownerDocument.body,i=Fr(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=Fr(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-e.scrollLeft+Ds(t),n=-e.scrollTop;return Bt(r).direction==="rtl"&&(o+=Fr(t.clientWidth,r.clientWidth)-i),{width:i,height:s,x:o,y:n}}function tS(t,e,r){r===void 0&&(r="viewport");let i=r==="layoutViewport",s=at(t),o=xr(t),n=s.visualViewport,a=o.clientWidth,u=o.clientHeight,d=0,p=0;if(n){let m=!Is()||e==="fixed";i?m||(d=-n.offsetLeft,p=-n.offsetTop):(a=n.width,u=n.height,m&&(d=n.offsetLeft,p=n.offsetTop))}if(Ds(o)<=0){let m=o.ownerDocument,v=m.body,C=getComputedStyle(v),T=m.compatMode==="CSS1Compat"&&parseFloat(C.marginLeft)+parseFloat(C.marginRight)||0,E=Math.abs(o.clientWidth-v.clientWidth-T),$=getComputedStyle(o).scrollbarGutter==="stable both-edges"?E/2:E;$<=eS&&(a-=$)}return{width:a,height:u,x:d,y:p}}function rS(t,e){let r=Bo(t,!0,e==="fixed"),i=r.top+t.clientTop,s=r.left+t.clientLeft,o=Wi(t),n=t.clientWidth*o.x,a=t.clientHeight*o.y,u=s*o.x,d=i*o.y;return{width:n,height:a,x:u,y:d}}function op(t,e,r){let i;if(e==="viewport"||e==="layoutViewport")i=tS(t,r,e);else if(e==="document")i=Jx(xr(t));else if(Ft(e))i=rS(e,r);else{let s=lp(t);i={x:e.x-s.x,y:e.y-s.y,width:e.width,height:e.height}}return ni(i)}function iS(t,e){let r=e.get(t);if(r)return r;let i=$s(t,[],!1).filter(a=>Ft(a)&&li(a)!=="body"),s=null,o=Bt(t).position==="fixed",n=o?Ur(t):t;for(;Ft(n)&&!Ki(n);){let a=Bt(n),u=qi(n),d=s?s.position:o?"fixed":"";!u&&(d==="fixed"||d==="absolute"&&a.position==="static")?i=i.filter(h=>h!==n):s=a,n=Ur(n)}return e.set(t,i),i}function oS(t){let{element:e,boundary:r,rootBoundary:i,strategy:s}=t,n=[...r==="clippingAncestors"?No(e)?[]:iS(e,this._c):[].concat(r),i],a=op(e,n[0],s),u=a.top,d=a.right,p=a.bottom,h=a.left;for(let m=1;m<n.length;m++){let v=op(e,n[m],s);u=Fr(v.top,u),d=Po(v.right,d),p=Po(v.bottom,p),h=Fr(v.left,h)}return{width:d-h,height:p-u,x:h,y:u}}function sS(t){let{width:e,height:r}=np(t);return{width:e,height:r}}function nS(t,e,r){let i=Sr(e),s=xr(e),o=r==="fixed",n=Bo(t,!0,o,e),a={scrollLeft:0,scrollTop:0},u=er(0);if((i||!o)&&((li(e)!=="body"||Do(s))&&(a=Fo(e)),i)){let m=Bo(e,!0,o,e);u.x=m.x+e.clientLeft,u.y=m.y+e.clientTop}!i&&s&&(u.x=Ds(s));let d=s&&!i&&!o?cp(s,a):er(0),p=n.left+a.scrollLeft-u.x-d.x,h=n.top+a.scrollTop-u.y-d.y;return{x:p,y:h,width:n.width,height:n.height}}function rl(t){return Bt(t).position==="static"}function sp(t,e){if(!Sr(t)||Bt(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return xr(t)===r&&(r=r.ownerDocument.body),r}function up(t,e){let r=at(t);if(No(t))return r;if(!Sr(t)){let s=Ur(t);for(;s&&!Ki(s);){if(Ft(s)&&!rl(s))return s;s=Ur(s)}return r}let i=sp(t,e);for(;i&&tp(i)&&rl(i);)i=sp(i,e);return i&&Ki(i)&&rl(i)&&!qi(i)?r:i||rp(t)||r}function lS(t){return Bt(t).direction==="rtl"}var Qx,eS,aS,Ns,dp,pp,hp,fp=l(()=>{Zd();Ls();tl();Qx=er(0);eS=25;aS=async function(t){let e=this.getOffsetParent||up,r=this.getDimensions,i=await r(t.floating);return{reference:nS(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};Ns={convertOffsetParentRelativeRectToViewportRelativeRect:Xx,getDocumentElement:xr,getClippingRect:oS,getOffsetParent:up,getElementRects:aS,getClientRects:Zx,getDimensions:sS,getScale:Wi,isElement:Ft,isRTL:lS},dp=Yd,pp=Xd,hp=(t,e,r)=>{let i=new Map,s=r??{},o={...Ns,...s.platform,_c:i};return Qd(t,e,{...s,platform:o})}});function mp(t){return cS(t)}function il(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function cS(t){for(let e=t;e;e=il(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=il(t);e;e=il(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||qi(r)||e.tagName==="BODY"))return e}return null}var gp=l(()=>{tl()});async function yp(t,e,r){let i;return typeof r=="object"?i=r:i={placement:r},hp(t,e,{strategy:i.strategy,platform:{...Ns,getOffsetParent:s=>Ns.getOffsetParent(s,mp)},middleware:[pp({crossAxis:!0}),dp({allowedPlacements:[i.placement]})]})}var bp=l(()=>{"use strict";fp();gp()});function xp(t,e){return(0,vp.property)({type:Object,converter:{fromAttribute:r=>{if(r==null)return Uo(t);try{return JSON.parse(r)}catch{return Uo(t)}},toAttribute:r=>JSON.stringify(r)},hasChanged:Vo,...e??{}})}var vp,ol,Fs=l(()=>{"use strict";vp=c(F(),1);ci();ol=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)}});function uS(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(!Gi(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(!Gi(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 s=n=>Object.keys(n).filter(a=>n[a]!=null),o=s(t);if(r=o.length,r!==s(e).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,o[i]))return!1;for(i=r;i--!==0;){let n=o[i];if(!Gi(t[n],e[n]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function Gi(t,e){try{return uS(t,e)}catch{return!1}}function Vo(t,e){return!Gi(t,e)}function Uo(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function Bs(t,e){let r=i=>i[t]===!0;return i=>{if(r(i))return i;let s=e(i);return s[t]=!0,s}}var ci=l(()=>{"use strict";Fs()});var Sp,sl,Ep=l(()=>{"use strict";ci();Sp=c(F(),1),sl=t=>{let e=t??{};return(r,i)=>{var s;let o={hasChanged:Vo,attribute:!1,...e};(0,Sp.property)(o)(r,i);let n=r.constructor;n.reduxProperties=new Map(n.reduxProperties),n.reduxProperties.set(i,{selector:(s=e.selector)!==null&&s!==void 0?s:(a=>a[i]),store:e.store})}}});var Us,nl=l(()=>{"use strict";Us=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 Vs,Cp=l(()=>{"use strict";Vs=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 s=(e=this.rejectPromise)!==null&&e!==void 0?e:(()=>null),o=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let n of i)try{await n()}catch(a){s(a);return}o(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}});var zs,dS,Ap,wp=l(()=>{zs=globalThis,dS=zs.ShadowRoot&&(zs.ShadyCSS===void 0||zs.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ap=(t,e)=>{if(dS)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let i=document.createElement("style"),s=zs.litNonce;s!==void 0&&i.setAttribute("nonce",s),i.textContent=r.cssText,t.appendChild(i)}}});var Op,Hs,_p=l(()=>{"use strict";Op=c(g(),1);wp();Fs();Hs=class extends Op.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 Ap(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){ol(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 Rp(t,e,...r){var i;let s=t.querySelector(e);for(let o of r)s=(i=s?.shadowRoot)===null||i===void 0?void 0:i.querySelector(o);return s}var Tp=l(()=>{"use strict"});var ui,Yi,Pp,kp,Lp,Ip,$p,Qi,tr,Mp=l(()=>{"use strict";ui=c(F(),1);Fs();Cp();_p();Tp();Yi=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},kp=Symbol("constructorPrototype"),Lp=Symbol("constructorName"),Ip=Symbol("exportpartsDebouncer"),$p=Symbol("dynamicDependenciesLoaded"),Qi=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};Qi.eventName="exportparts-updated";tr=class extends Hs{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Pp]=new Vs(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[Ip].run(()=>{var s,o;!((s=this.exportpartsPrefix)===null||s===void 0)&&s.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[Lp]=this.constructor.name,this[kp]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Lp]&&Object.setPrototypeOf(this,this[kp])}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[$p]||(r[$p]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(Qi.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(Qi.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 Qi)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:i,shadowPath:s}=this.elementToFocus;if(i!=null){let o=[...s??[],i];r=Rp(this.shadowRoot,...o)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var r,i,s;if(((i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(o=>o.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((s=this.customStylesheet)!==null&&s!==void 0?s:"")}catch(o){console.error(o,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let o=document.createElement("style");o.classList.add("ft-lit-element--custom-stylesheet"),o.innerHTML=this.customStylesheet,this.shadowRoot.append(o)}}setExportpartsAttribute(e){var r,i,s,o,n,a;let u=m=>m!=null&&m.trim().length>0,d=e.filter(u).map(m=>m.trim());if(d.length===0){this.exportparts=void 0;return}let p=new Set;for(let m of(i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&i!==void 0?i:[]){let v=(o=(s=m.getAttribute("part"))===null||s===void 0?void 0:s.split(" "))!==null&&o!==void 0?o:[],C=(a=(n=m.getAttribute("exportparts"))===null||n===void 0?void 0:n.split(",").map(E=>E.split(":")[1]))!==null&&a!==void 0?a:[],T=[...v,...C].filter(u).map(E=>E.trim());for(let E of T)p.add(E)}if(p.size===0){this.exportparts=void 0;return}let h=[...p.values()].flatMap(m=>d.map(v=>`${m}:${v}--${m}`));this.exportparts=[...this.part,...h].join(", ")}};Pp=Ip;Yi([(0,ui.property)()],tr.prototype,"exportpartsPrefix",void 0);Yi([xp([])],tr.prototype,"exportpartsPrefixes",void 0);Yi([(0,ui.property)({reflect:!0})],tr.prototype,"exportparts",void 0);Yi([(0,ui.property)()],tr.prototype,"customStylesheet",void 0);Yi([(0,ui.property)()],tr.prototype,"elementToFocus",void 0);Yi([(0,ui.state)()],tr.prototype,"useAdoptedStyleSheets",void 0)});function js(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var qs=l(()=>{"use strict"});var zo,Vr,di,pS,Dp,Np=l(()=>{"use strict";Mp();qs();ci();zo=Symbol("internalReduxEventsUnsubscribers"),Vr=Symbol("internalStoresUnsubscribers"),di=Symbol("internalStores"),pS=Bs(Symbol("withRedux"),function(t){var e,r,i;class s extends t{constructor(){super(...arguments),this[e]=new Map,this[r]=new Map,this[i]=new Map}get reduxConstructor(){return this.constructor}willUpdate(n){super.willUpdate(n),[...this.reduxConstructor.reduxReactiveProperties].some(a=>n.has(a))&&this.updateFromStores()}getUnnamedStore(){if(this[di].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[di].values()][0]}getStore(n){return n==null?this.getUnnamedStore():this[di].get(n)}addStore(n,a){var u;a=(u=a??n.name)!==null&&u!==void 0?u:"default-store",this.unsubscribeFromStore(a),this[di].set(a,n),this.subscribeToStore(a,n),this.updateFromStores()}removeStore(n){let a=typeof n=="string"?n:n.name;this.unsubscribeFromStore(a),this[di].delete(a)}setupStores(){this.unsubscribeFromStores(),this[di].forEach((n,a)=>this.subscribeToStore(a,n)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((n,a)=>{let u=this.constructor.getPropertyOptions(a);if(!u?.attribute||!this.hasAttribute(typeof u?.attribute=="string"?u.attribute:a)){let d=this.getStore(n.store);d&&(n.store?this[Vr].has(n.store):this[Vr].size>0)&&(this[a]=n.selector(d.getState(),this))}})}subscribeToStore(n,a){var u;this[Vr].set(n,a.subscribe(()=>this.updateFromStores())),this[zo].set(n,[]),js(a)&&a.eventBus&&((u=this.reduxConstructor.reduxEventListeners)===null||u===void 0||u.forEach((d,p)=>{if(typeof this[p]=="function"&&(!d.store||a.name===d.store)){let h=m=>this[p](m);a.addEventListener(d.eventName,h),this[zo].get(n).push(()=>a.removeEventListener(d.eventName,h))}})),this.onStoreAvailable(n)}unsubscribeFromStores(){this[Vr].forEach((n,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(n){var a;this[Vr].has(n)&&this[Vr].get(n)(),this[Vr].delete(n),(a=this[zo].get(n))===null||a===void 0||a.forEach(u=>u()),this[zo].delete(n)}onStoreAvailable(n){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=Vr,r=di,i=zo,s.reduxProperties=new Map,s.reduxReactiveProperties=new Set,s.reduxEventListeners=new Map,s}),Dp=class extends pS(tr){}});function Pe(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 Ws(t){if(typeof t!="object"||t===null)return!1;let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e||Object.getPrototypeOf(t)===null}function ll(t,e,r){if(typeof t!="function")throw new Error(Pe(2));if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(Pe(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Pe(1));return r(ll)(t,e)}let i=t,s=e,o=new Map,n=o,a=0,u=!1;function d(){n===o&&(n=new Map,o.forEach((E,$)=>{n.set($,E)}))}function p(){if(u)throw new Error(Pe(3));return s}function h(E){if(typeof E!="function")throw new Error(Pe(4));if(u)throw new Error(Pe(5));let $=!0;d();let Q=a++;return n.set(Q,E),function(){if($){if(u)throw new Error(Pe(6));$=!1,d(),n.delete(Q),o=null}}}function m(E){if(!Ws(E))throw new Error(Pe(7));if(typeof E.type>"u")throw new Error(Pe(8));if(typeof E.type!="string")throw new Error(Pe(17));if(u)throw new Error(Pe(9));try{u=!0,s=i(s,E)}finally{u=!1}return(o=n).forEach(Q=>{Q()}),E}function v(E){if(typeof E!="function")throw new Error(Pe(10));i=E,m({type:Ks.REPLACE})}function C(){let E=h;return{subscribe($){if(typeof $!="object"||$===null)throw new Error(Pe(11));function Q(){let N=$;N.next&&N.next(p())}return Q(),{unsubscribe:E(Q)}},[Fp](){return this}}}return m({type:Ks.INIT}),{dispatch:m,subscribe:h,getState:p,replaceReducer:v,[Fp]:C}}function mS(t){Object.keys(t).forEach(e=>{let r=t[e];if(typeof r(void 0,{type:Ks.INIT})>"u")throw new Error(Pe(12));if(typeof r(void 0,{type:Ks.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Pe(13))})}function Bp(t){let e=Object.keys(t),r={};for(let n=0;n<e.length;n++){let a=e[n];typeof t[a]=="function"&&(r[a]=t[a])}let i=Object.keys(r),s,o;try{mS(r)}catch(n){o=n}return function(a={},u){if(o)throw o;let d=!1,p={};for(let h=0;h<i.length;h++){let m=i[h],v=r[m],C=a[m],T=v(C,u);if(typeof T>"u"){let E=u&&u.type;throw new Error(Pe(14))}p[m]=T,d=d||T!==C}return d=d||i.length!==Object.keys(a).length,d?p:a}}function Ho(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce((e,r)=>(...i)=>e(r(...i)))}function Up(...t){return e=>(r,i)=>{let s=e(r,i),o=()=>{throw new Error(Pe(15))},n={getState:s.getState,dispatch:(u,...d)=>o(u,...d)},a=t.map(u=>u(n));return o=Ho(...a)(s.dispatch),{...s,dispatch:o}}}function Vp(t){return Ws(t)&&"type"in t&&typeof t.type=="string"}var hS,Fp,al,fS,Ks,cl=l(()=>{hS=typeof Symbol=="function"&&Symbol.observable||"@@observable",Fp=hS,al=()=>Math.random().toString(36).substring(7).split("").join("."),fS={INIT:`@@redux/INIT${al()}`,REPLACE:`@@redux/REPLACE${al()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${al()}`},Ks=fS});function Ut(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}function gt(t){return t?Xp(t)||nn(t)||!!t[zp]||!!t[Xs]?.[zp]||an(t)||ln(t):!1}function Xp(t){if(!t||!Sl(t))return!1;let e=Zi(t);if(e===null||e===mt[on])return!0;let r=mt.hasOwnProperty.call(e,Xs)&&e[Xs];if(r===Object)return!0;if(!Xi(r))return!1;let i=Hp.get(r);return i===void 0&&(i=Function.toString.call(r),Hp.set(r,i)),i===gS}function sn(t,e,r=!0){Wo(t)===0?(r?Reflect.ownKeys(t):mt.keys(t)).forEach(s=>{e(s,t[s],t)}):t.forEach((i,s)=>e(s,i,t))}function Wo(t){let e=t[He];return e?e.type_:nn(t)?1:an(t)?2:ln(t)?3:0}function yS(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}function bS(t){let e=+t;return Number.isInteger(e)&&String(e)===t}function ml(t,e){if(an(t))return new Map(t);if(ln(t))return new Set(t);if(nn(t))return Array[on].slice.call(t);let r=Xp(t);if(e===!0||e==="class_only"&&!r){let i=mt.getOwnPropertyDescriptors(t);delete i[He];let s=Reflect.ownKeys(i);for(let o=0;o<s.length;o++){let n=s[o],a=i[n];a[Qs]===!1&&(a[Qs]=!0,a[hl]=!0),(a.get||a.set)&&(i[n]={[hl]:!0,[Qs]:!0,[Zs]:a[Zs],[jo]:t[n]})}return mt.create(Zi(t),i)}else{let i=Zi(t);if(i!==null&&r)return{...t};let s=mt.create(i);return mt.assign(s,t)}}function Cl(t,e=!1){return cn(t)||rr(t)||!gt(t)||(Wo(t)>1&&mt.defineProperties(t,{set:Gs,add:Gs,clear:Gs,delete:Gs}),mt.freeze(t),e&&sn(t,(r,i)=>{Cl(i,!0)},!1)),t}function vS(){Ut(2)}function cn(t){return t===null||!Sl(t)?!0:mt.isFrozen(t)}function pi(t){let e=Zp[t];return e||Ut(0,t),e}function Kp(t,e){e&&(t.patchPlugin_=pi(gl),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function yl(t){bl(t),t.drafts_.forEach(SS),t.drafts_=null}function bl(t){t===qo&&(qo=t.parent_)}function SS(t){let e=t[He];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function Gp(t,e){e.unfinalizedDrafts_=e.drafts_.length;let r=e.drafts_[0];if(t!==void 0&&t!==r){r[He].modified_&&(yl(e),Ut(4)),gt(t)&&(t=Qp(e,t));let{patchPlugin_:s}=e;s&&s.generateReplacementPatches_(r[He].base_,t,e)}else t=Qp(e,r);return ES(e,t,!0),yl(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==Yp?t:void 0}function Qp(t,e){if(cn(e))return e;let r=e[He];if(!r)return tn(e,t.handledSet_,t);if(!un(r,t))return e;if(!r.modified_)return r.base_;if(!r.finalized_){let{callbacks_:i}=r;if(i)for(;i.length>0;)i.pop()(t);rh(r,t)}return r.copy_}function ES(t,e,r=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&Cl(e,r)}function eh(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}function th(t,e,r,i){let s=Er(t),o=t.type_;if(i!==void 0&&fl(s,i,o)===e){Js(s,i,r,o);return}if(!t.draftLocations_){let a=t.draftLocations_=new Map;sn(s,(u,d)=>{if(rr(d)){let p=a.get(d)||[];p.push(u),a.set(d,p)}})}let n=t.draftLocations_.get(e)??CS;for(let a of n)Js(s,a,r,o)}function AS(t,e,r){t.callbacks_.push(function(s){let o=e;if(!o||!un(o,s))return;s.mapSetPlugin_?.fixSetContents(o);let n=El(o);th(t,o.draft_??o,n,r),rh(o,s)})}function rh(t,e){if(t.modified_&&!t.finalized_&&(t.type_===3||t.type_===1&&t.allIndicesReassigned_||(t.assigned_?.size??0)>0)){let{patchPlugin_:i}=e;if(i){let s=i.getPath(t);s&&i.generatePatches_(t,s,e)}eh(t)}}function wS(t,e,r){let{scope_:i}=t;if(rr(r)){let s=r[He];un(s,i)&&s.callbacks_.push(function(){Ys(t);let n=El(s);th(t,r,n,e)})}else gt(r)&&t.callbacks_.push(function(){let o=Er(t);t.type_===3?o.has(r)&&tn(r,i.handledSet_,i):fl(o,e,t.type_)===r&&i.drafts_.length>1&&(t.assigned_.get(e)??!1)===!0&&t.copy_&&tn(fl(t.copy_,e,t.type_),i.handledSet_,i)})}function tn(t,e,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||rr(t)||e.has(t)||!gt(t)||cn(t)||(e.add(t),sn(t,(i,s)=>{if(rr(s)){let o=s[He];if(un(o,r)){let n=El(o);Js(t,i,n,t.type_),eh(o)}}else gt(s)&&tn(s,e,r)})),t}function OS(t,e){let r=nn(t),i={type_:r?1:0,scope_:e?e.scope_:Jp(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},s=i,o=rn;r&&(s=[i],o=Ko);let{revoke:n,proxy:a}=Proxy.revocable(s,o);return i.draft_=a,i.revoke_=n,[a,i]}function pl(t,e){let r=t[He];return(r?Er(r):t)[e]}function _S(t,e,r){return t.type_!==1||!t.allIndicesReassigned_||t.assigned_?.get(e)||!gt(r)||r[He]?!1:t.baseRefs_.has(r)}function RS(t,e,r){let i=ih(e,r);return i?jo in i?i[jo]:i.get?.call(t.draft_):void 0}function ih(t,e){if(!(e in t))return;let r=Zi(t);for(;r;){let i=Object.getOwnPropertyDescriptor(r,e);if(i)return i;r=Zi(r)}}function vl(t){t.modified_||(t.modified_=!0,t.parent_&&vl(t.parent_))}function Ys(t){t.copy_||(t.assigned_=new Map,t.copy_=ml(t.base_,t.scope_.immer_.useStrictShallowCopy_))}function xl(t,e,r,i){let[s,o]=an(e)?pi(en).proxyMap_(e,r):ln(e)?pi(en).proxySet_(e,r):OS(e,r);return(r?.scope_??Jp()).drafts_.push(s),o.callbacks_=r?.callbacks_??[],o.key_=i,r&&i!==void 0?AS(r,o,i):o.callbacks_.push(function(u){u.mapSetPlugin_?.fixSetContents(o);let{patchPlugin_:d}=u;o.modified_&&d&&d.generatePatches_(o,[],u)}),s}function oh(t){return rr(t)||Ut(10,t),sh(t)}function sh(t){if(!gt(t)||cn(t))return t;let e=t[He],r,i=!0;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,r=ml(t,e.scope_.immer_.useStrictShallowCopy_),i=e.scope_.immer_.shouldUseStrictIteration()}else r=ml(t,!0);return sn(r,(s,o)=>{Js(r,s,sh(o))},i),e&&(e.finalized_=!1),r}var Yp,zp,He,mt,Zi,Xs,on,hl,Zs,Qs,jo,rr,gS,Hp,ul,fl,Js,nn,an,ln,Sl,Xi,dl,Er,El,Gs,en,gl,jp,Zp,qp,qo,Jp,xS,Wp,un,CS,rn,Ko,TS,kS,Al,nh=l(()=>{Yp=Symbol.for("immer-nothing"),zp=Symbol.for("immer-draftable"),He=Symbol.for("immer-state");mt=Object,Zi=mt.getPrototypeOf,Xs="constructor",on="prototype",hl="configurable",Zs="enumerable",Qs="writable",jo="value",rr=t=>!!t&&!!t[He];gS=mt[on][Xs].toString(),Hp=new WeakMap;ul=(t,e,r=Wo(t))=>r===2?t.has(e):mt[on].hasOwnProperty.call(t,e),fl=(t,e,r=Wo(t))=>r===2?t.get(e):t[e],Js=(t,e,r,i=Wo(t))=>{i===2?t.set(e,r):i===3?t.add(r):t[e]=r};nn=Array.isArray,an=t=>t instanceof Map,ln=t=>t instanceof Set,Sl=t=>typeof t=="object",Xi=t=>typeof t=="function",dl=t=>typeof t=="boolean";Er=t=>t.copy_||t.base_,El=t=>t.modified_?t.copy_:t.base_;Gs={[jo]:vS};en="MapSet",gl="Patches",jp="ArrayMethods",Zp={};qp=t=>!!Zp[t],Jp=()=>qo,xS=(t,e)=>({drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:qp(en)?pi(en):void 0,arrayMethodsPlugin_:qp(jp)?pi(jp):void 0});Wp=t=>qo=xS(qo,t);un=(t,e)=>t.scope_===e,CS=[];rn={get(t,e){if(e===He)return t;let r=t.scope_.arrayMethodsPlugin_,i=t.type_===1&&typeof e=="string";if(i&&r?.isArrayOperationMethod(e))return r.createMethodInterceptor(t,e);let s=Er(t);if(!ul(s,e,t.type_))return RS(t,s,e);let o=s[e];if(t.finalized_||!gt(o)||i&&t.operationMethod&&r?.isMutatingArrayMethod(t.operationMethod)&&bS(e))return o;if(o===pl(t.base_,e)||_S(t,e,o)){Ys(t);let n=t.type_===1?+e:e,a=xl(t.scope_,o,t,n);return t.copy_[n]=a}return o},has(t,e){return e in Er(t)},ownKeys(t){return Reflect.ownKeys(Er(t))},set(t,e,r){let i=ih(Er(t),e);if(i?.set)return i.set.call(t.draft_,r),!0;if(!t.modified_){let s=pl(Er(t),e),o=s?.[He];if(o&&o.base_===r)return t.copy_[e]=r,t.assigned_.set(e,!1),!0;if(yS(r,s)&&(r!==void 0||ul(t.base_,e,t.type_)))return!0;Ys(t),vl(t)}return t.copy_[e]===r&&(r!==void 0||ul(t.copy_,e,t.type_))||Number.isNaN(r)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=r,t.assigned_.set(e,!0),wS(t,e,r)),!0},deleteProperty(t,e){return Ys(t),pl(t.base_,e)!==void 0||e in t.base_?(t.assigned_.set(e,!1),vl(t)):t.assigned_.delete(e),t.copy_&&delete t.copy_[e],!0},getOwnPropertyDescriptor(t,e){let r=Er(t),i=Reflect.getOwnPropertyDescriptor(r,e);return i&&{[Qs]:!0,[hl]:t.type_!==1||e!=="length",[Zs]:i[Zs],[jo]:r[e]}},defineProperty(){Ut(11)},getPrototypeOf(t){return Zi(t.base_)},setPrototypeOf(){Ut(12)}},Ko={};for(let t in rn){let e=rn[t];Ko[t]=function(){let r=arguments;return r[0]=r[0][0],e.apply(this,r)}}Ko.deleteProperty=function(t,e){return Ko.set.call(this,t,e,void 0)};Ko.set=function(t,e,r){return rn.set.call(this,t[0],e,r,t[0])};TS=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,r,i)=>{if(Xi(e)&&!Xi(r)){let o=r;r=e;let n=this;return function(u=o,...d){return n.produce(u,p=>r.call(this,p,...d))}}Xi(r)||Ut(6),i!==void 0&&!Xi(i)&&Ut(7);let s;if(gt(e)){let o=Wp(this),n=xl(o,e,void 0),a=!0;try{s=r(n),a=!1}finally{a?yl(o):bl(o)}return Kp(o,i),Gp(s,o)}else if(!e||!Sl(e)){if(s=r(e),s===void 0&&(s=e),s===Yp&&(s=void 0),this.autoFreeze_&&Cl(s,!0),i){let o=[],n=[];pi(gl).generateReplacementPatches_(e,s,{patches_:o,inversePatches_:n}),i(o,n)}return s}else Ut(1,e)},this.produceWithPatches=(e,r)=>{if(Xi(e))return(n,...a)=>this.produceWithPatches(n,u=>e(u,...a));let i,s;return[this.produce(e,r,(n,a)=>{i=n,s=a}),i,s]},dl(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),dl(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),dl(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){gt(t)||Ut(8),rr(t)&&(t=oh(t));let e=Wp(this),r=xl(e,t,void 0);return r[He].isManual_=!0,bl(e),r}finishDraft(t,e){let r=t&&t[He];(!r||!r.isManual_)&&Ut(9);let{scope_:i}=r;return Kp(i,e),Gp(void 0,i)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,e){let r;for(r=e.length-1;r>=0;r--){let s=e[r];if(s.path.length===0&&s.op==="replace"){t=s.value;break}}r>-1&&(e=e.slice(r+1));let i=pi(gl).applyPatches_;return rr(t)?i(t,e):this.produce(t,s=>i(s,e))}};kS=new TS,Al=kS.produce});function ah(t){return({dispatch:r,getState:i})=>s=>o=>typeof o=="function"?o(r,i,t):s(o)}var lh,ch,uh=l(()=>{lh=ah(),ch=ah});function zr(t,e){function r(...i){if(e){let s=e(...i);if(!s)throw new Error(Cr(0));return{type:t,payload:s.payload,..."meta"in s&&{meta:s.meta},..."error"in s&&{error:s.error}}}return{type:t,payload:i[0]}}return r.toString=()=>`${t}`,r.type=t,r.match=i=>Vp(i)&&i.type===t,r}function dh(t){return gt(t)?Al(t,()=>{}):t}function dn(t,e,r){return t.has(e)?t.get(e):t.set(e,r(e)).get(e)}function PS(t){return typeof t=="boolean"}function gh(t){let e=IS(),{reducer:r=void 0,middleware:i,devTools:s=!0,duplicateMiddlewareCheck:o=!0,preloadedState:n=void 0,enhancers:a=void 0}=t||{},u;if(typeof r=="function")u=r;else if(Ws(r))u=Bp(r);else throw new Error(Cr(1));let d;typeof i=="function"?d=i(e):d=e();let p=Ho;s&&(p=LS({trace:!1,...typeof s=="object"&&s}));let h=Up(...d),m=FS(h),v=typeof a=="function"?a(m):m(),C=p(...v);return ll(u,n,C)}function yh(t){let e={},r=[],i,s={addCase(o,n){let a=typeof o=="string"?o:o.type;if(!a)throw new Error(Cr(28));if(a in e)throw new Error(Cr(29));return e[a]=n,s},addAsyncThunk(o,n){return n.pending&&(e[o.pending.type]=n.pending),n.rejected&&(e[o.rejected.type]=n.rejected),n.fulfilled&&(e[o.fulfilled.type]=n.fulfilled),n.settled&&r.push({matcher:o.settled,reducer:n.settled}),s},addMatcher(o,n){return r.push({matcher:o,reducer:n}),s},addDefaultCase(o){return i=o,s}};return t(s),[e,r,i]}function BS(t){return typeof t=="function"}function US(t,e){let[r,i,s]=yh(e),o;if(BS(t))o=()=>dh(t());else{let a=dh(t);o=()=>a}function n(a=o(),u){let d=[r[u.type],...i.filter(({matcher:p})=>p(u)).map(({reducer:p})=>p)];return d.filter(p=>!!p).length===0&&(d=[s]),d.reduce((p,h)=>{if(h)if(rr(p)){let v=h(p,u);return v===void 0?p:v}else{if(gt(p))return Al(p,m=>h(m,u));{let m=h(p,u);if(m===void 0){if(p===null)return p;throw Error("A case reducer on a non-draftable value must not return undefined")}return m}}return p},a)}return n.getInitialState=o,n}function zS(...t){return e=>t.some(r=>VS(r,e))}function GS(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function QS(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}function YS(t,e){return`${t}/${e}`}function XS({creators:t}={}){let e=t?.asyncThunk?.[bh];return function(i){let{name:s,reducerPath:o=s}=i;if(!s)throw new Error(Cr(11));typeof process<"u";let n=(typeof i.reducers=="function"?i.reducers(JS()):i.reducers)||{},a=Object.keys(n),u={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},d={addCase(A,N){let j=typeof A=="string"?A:A.type;if(!j)throw new Error(Cr(12));if(j in u.sliceCaseReducersByType)throw new Error(Cr(13));return u.sliceCaseReducersByType[j]=N,d},addMatcher(A,N){return u.sliceMatchers.push({matcher:A,reducer:N}),d},exposeAction(A,N){return u.actionCreators[A]=N,d},exposeCaseReducer(A,N){return u.sliceCaseReducersByName[A]=N,d}};a.forEach(A=>{let N=n[A],j={reducerName:A,type:YS(s,A),createNotation:typeof i.reducers=="function"};tE(N)?iE(j,N,d,e):eE(j,N,d)});function p(){let[A={},N=[],j=void 0]=typeof i.extraReducers=="function"?yh(i.extraReducers):[i.extraReducers],ye={...A,...u.sliceCaseReducersByType};return US(i.initialState,ne=>{for(let be in ye)ne.addCase(be,ye[be]);for(let be of u.sliceMatchers)ne.addMatcher(be.matcher,be.reducer);for(let be of N)ne.addMatcher(be.matcher,be.reducer);j&&ne.addDefaultCase(j)})}let h=A=>A,m=new Map,v=new WeakMap,C;function T(A,N){return C||(C=p()),C(A,N)}function E(){return C||(C=p()),C.getInitialState()}function $(A,N=!1){function j(ne){let be=ne[A];return typeof be>"u"&&N&&(be=dn(v,j,E)),be}function ye(ne=h){let be=dn(m,N,()=>new WeakMap);return dn(be,ne,()=>{let Oo={};for(let[Ot,ti]of Object.entries(i.selectors??{}))Oo[Ot]=ZS(ti,ne,()=>dn(v,ne,E),N);return Oo})}return{reducerPath:A,getSelectors:ye,get selectors(){return ye(j)},selectSlice:j}}let Q={name:s,reducer:T,actions:u.actionCreators,caseReducers:u.sliceCaseReducersByName,getInitialState:E,...$(o),injectInto(A,{reducerPath:N,...j}={}){let ye=N??o;return A.inject({reducerPath:ye,reducer:T},j),{...Q,...$(ye,!0)}}};return Q}}function ZS(t,e,r,i){function s(o,...n){let a=e(o);return typeof a>"u"&&i&&(a=r()),t(a,...n)}return s.unwrapped=t,s}function JS(){function t(e,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...r}}return t.withTypes=()=>t,{reducer(e){return Object.assign({[e.name](...r){return e(...r)}}[e.name],{_reducerDefinitionType:"reducer"})},preparedReducer(e,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:r}},asyncThunk:t}}function eE({type:t,reducerName:e,createNotation:r},i,s){let o,n;if("reducer"in i){if(r&&!rE(i))throw new Error(Cr(17));o=i.reducer,n=i.prepare}else o=i;s.addCase(t,o).exposeCaseReducer(e,o).exposeAction(e,n?zr(t,n):zr(t))}function tE(t){return t._reducerDefinitionType==="asyncThunk"}function rE(t){return t._reducerDefinitionType==="reducerWithPrepare"}function iE({type:t,reducerName:e},r,i,s){if(!s)throw new Error(Cr(18));let{payloadCreator:o,fulfilled:n,pending:a,rejected:u,settled:d,options:p}=r,h=s(t,o,p);i.exposeAction(e,h),n&&i.addCase(h.fulfilled,n),a&&i.addCase(h.pending,a),u&&i.addCase(h.rejected,u),d&&i.addMatcher(h.settled,d),i.exposeCaseReducer(e,{fulfilled:n||pn,pending:a||pn,rejected:u||pn,settled:d||pn})}function pn(){}function Cr(t){return`Minified Redux Toolkit error #${t}; visit https://redux-toolkit.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var LS,w0,$S,mh,IS,MS,ph,DS,NS,FS,VS,HS,jS,qS,wl,hh,KS,fh,WS,bh,_0,vh,xh,Sh,Eh,R0,T0,k0,L0,Ch,Ol,oE,$0,sE,Ah=l(()=>{cl();nh();cl();uh();LS=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Ho:Ho.apply(null,arguments)},w0=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}},$S=t=>t&&typeof t.match=="function";mh=class Go extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,Go.prototype)}static get[Symbol.species](){return Go}concat(...e){return super.concat.apply(this,e)}prepend(...e){return e.length===1&&Array.isArray(e[0])?new Go(...e[0].concat(this)):new Go(...e.concat(this))}};IS=()=>function(e){let{thunk:r=!0,immutableCheck:i=!0,serializableCheck:s=!0,actionCreatorCheck:o=!0}=e??{},n=new mh;return r&&(PS(r)?n.push(lh):n.push(ch(r.extraArgument))),n},MS="RTK_autoBatch",ph=t=>e=>{setTimeout(e,t)},DS=(t,e)=>r=>{let i=!1,s=()=>{i||(i=!0,cancelAnimationFrame(o),clearTimeout(n),r())},o=t(s),n=setTimeout(s,e)},NS=(t={type:"raf"})=>e=>(...r)=>{let i=e(...r),s=!0,o=!1,n=!1,a=new Set,u=t.type==="tick"?queueMicrotask:t.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?DS(window.requestAnimationFrame,100):ph(10):t.type==="callback"?t.queueNotification:ph(t.timeout),d=()=>{n=!1,o&&(o=!1,a.forEach(p=>p()))};return Object.assign({},i,{subscribe(p){let h=()=>s&&p(),m=i.subscribe(h);return a.add(p),()=>{m(),a.delete(p)}},dispatch(p){try{return s=!p?.meta?.[MS],o=!s,o&&(n||(n=!0,u(d))),i.dispatch(p)}finally{s=!0}}})},FS=t=>function(r){let{autoBatch:i=!0}=r??{},s=new mh(t);return i&&s.push(NS(typeof i=="object"?i:void 0)),s};VS=(t,e)=>$S(t)?t.match(e):t(e);HS="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",jS=(t=21)=>{let e="",r=t;for(;r--;)e+=HS[Math.random()*64|0];return e},qS=["name","message","stack","code"],wl=class{constructor(t,e){this.payload=t,this.meta=e}payload;meta;_type},hh=class{constructor(t,e){this.payload=t,this.meta=e}payload;meta;_type},KS=t=>{if(typeof t=="object"&&t!==null){let e={};for(let r of qS)typeof t[r]=="string"&&(e[r]=t[r]);return e}return{message:String(t)}},fh="External signal was aborted",WS=(()=>{function t(e,r,i){let s=zr(e+"/fulfilled",(u,d,p,h)=>({payload:u,meta:{...h||{},arg:p,requestId:d,requestStatus:"fulfilled"}})),o=zr(e+"/pending",(u,d,p)=>({payload:void 0,meta:{...p||{},arg:d,requestId:u,requestStatus:"pending"}})),n=zr(e+"/rejected",(u,d,p,h,m)=>({payload:h,error:(i&&i.serializeError||KS)(u||"Rejected"),meta:{...m||{},arg:p,requestId:d,rejectedWithValue:!!h,requestStatus:"rejected",aborted:u?.name==="AbortError",condition:u?.name==="ConditionError"}}));function a(u,{signal:d}={}){return(p,h,m)=>{let v=i?.idGenerator?i.idGenerator(u):jS(),C=new AbortController,T,E;function $(A){E=A,C.abort()}d&&(d.aborted?$(fh):d.addEventListener("abort",()=>$(fh),{once:!0}));let Q=(async function(){let A;try{let j=i?.condition?.(u,{getState:h,extra:m});if(QS(j)&&(j=await j),j===!1||C.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};let ye=new Promise((ne,be)=>{T=()=>{be({name:"AbortError",message:E||"Aborted"})},C.signal.addEventListener("abort",T,{once:!0})});p(o(v,u,i?.getPendingMeta?.({requestId:v,arg:u},{getState:h,extra:m}))),A=await Promise.race([ye,Promise.resolve(r(u,{dispatch:p,getState:h,extra:m,requestId:v,signal:C.signal,abort:$,rejectWithValue:((ne,be)=>new wl(ne,be)),fulfillWithValue:((ne,be)=>new hh(ne,be))})).then(ne=>{if(ne instanceof wl)throw ne;return ne instanceof hh?s(ne.payload,v,u,ne.meta):s(ne,v,u)})])}catch(j){A=j instanceof wl?n(null,v,u,j.payload,j.meta):n(j,v,u)}finally{T&&C.signal.removeEventListener("abort",T)}return i&&!i.dispatchConditionRejection&&n.match(A)&&A.meta.condition||p(A),A})();return Object.assign(Q,{abort:$,requestId:v,arg:u,unwrap(){return Q.then(GS)}})}}return Object.assign(a,{pending:o,rejected:n,fulfilled:s,settled:zS(n,s),typePrefix:e})}return t.withTypes=()=>t,t})();bh=Symbol.for("rtk-slice-createasyncthunk"),_0={[bh]:WS};vh=XS();xh="listener",Sh="completed",Eh="cancelled",R0=`task-${Eh}`,T0=`task-${Sh}`,k0=`${xh}-${Eh}`,L0=`${xh}-${Sh}`,{assign:Ch}=Object,Ol="listenerMiddleware",oE=Ch(zr(`${Ol}/add`),{withTypes:()=>oE}),$0=zr(`${Ol}/removeAll`),sE=Ch(zr(`${Ol}/remove`),{withTypes:()=>sE})});var nE,hn,wh=l(()=>{"use strict";ci();nE=Bs(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(r,i,s){this.eventBus.addEventListener(r,i,s)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,i,s){this.eventBus.removeEventListener(r,i,s)}}}),hn=class extends nE(Object){}});var Oh,_h=l(()=>{"use strict";Ah();qs();nl();wh();ci();window.ftReduxStores||(window.ftReduxStores={});Oh=class t extends hn{static get(e){var r;let i=typeof e=="string"?e:e.name,s=typeof e=="string"?void 0:e,o=window.ftReduxStores[i];if(js(o))return o;if(s==null)return;let n=vh({...s,reducers:(r=s.reducers)!==null&&r!==void 0?r:{}}),a=gh({reducer:(u,d)=>{if(d.type==="CLEAR_FT_REDUX_STORE"){let p=Uo(n.getInitialState());for(let h of d.keeping)p[h]=(u??p)[h];return p}else if(typeof d.type=="string"&&d.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...u,...d.overwrites};return n.reducer(u,d)}});return window.ftReduxStores[s.name]=new t(n,a,s.eventBus)}constructor(e,r,i){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new Us,this.injectInto=(o,n)=>this.reduxSlice.injectInto(o,n),this.selectSlice=o=>this.reduxSlice.selectSlice(o);let s=o=>o!=null?JSON.parse(JSON.stringify(o)):o;this.actions=new Proxy(this.reduxSlice.actions,{get:(o,n,a)=>{let u=n,d=o[u];return d?(...p)=>{let h=d(...p.map(s));return this.reduxStore.dispatch(h),h}:p=>{let h=u,m=this.getState()[h];Gi(m,p)||this.setState({[h]:s(p)})}}}),this.eventBus=i??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...e){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:e})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}get selectors(){return this.reduxSlice.selectors}get reducerPath(){return this.reduxSlice.reducerPath}getSelectors(){return this.reduxSlice.getSelectors()}}});var Rh=l(()=>{"use strict";ci()});var Th=l(()=>{"use strict"});var kh=l(()=>{"use strict";Ep();nl();Np();_h();qs();Rh();Th()});var fn,Lh=l(()=>{"use strict";fn=class{static format(e,r,i,s,o){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(i,s,!!o)):this.getIntlDateTime(e,r,i,s,!!o)}static getMomentDateFormat(e,r,i){return i?"LT":e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,i,s,o){let n=typeof e=="string"?new Date(e):e,a=new Intl.DateTimeFormat(r,{dateStyle:i?"medium":"short"}).format(n),u=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(n);return o?u:s?`${a} ${u}`: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 mn,aE,Ar,Qo,lE,S,je=l(()=>{"use strict";mn=c(f()),aE="ft-app-info",Ar=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Ar.eventName="authentication-change";Qo=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Qo.eventName="ui-locale-changed";lE={session:(t,e)=>{(0,mn.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>S.dispatchEvent(new Ar(e.payload)),0))}},S=mn.FtReduxStore.get({name:aE,reducers:lE,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 _l,$h,gn,lA,Ph=l(()=>{"use strict";_l=c(F());kh();Lh();je();$h=c(f()),gn=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},lA=(0,$h.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(S)}dateFormatOptionsChanged(i){return i.has("metadataDescriptors")||i.has("useLongDateFormat")||i.has("useDateTimeFormat")||i.has("uiLocale")}getDateFormatter(i){var s,o;return((o=(s=this.metadataDescriptors.find(a=>a.key===i))===null||s===void 0?void 0:s.date)!==null&&o!==void 0?o:!1)?a=>fn.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return gn([(0,_l.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),gn([(0,_l.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),gn([sl({store:S.name,selector:r=>{var i,s;return(s=(i=r.metadataConfiguration)===null||i===void 0?void 0:i.descriptors)!==null&&s!==void 0?s:[]}})],e.prototype,"metadataDescriptors",void 0),gn([sl({store:S.name})],e.prototype,"uiLocale",void 0),e})});var Rl=l(()=>{});var Ih,Mh,Dh,Hr,Nh,Fh,Bh,hi,Uh,Vh,zh,Hh,jh,qh,Kh,Wh,yn,Gh,Qh,Ji,Yh,bn,Xh,Zh,ir,eo,Jh,ge,Rt,ef,Tl=l(()=>{(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(Ih||(Ih={}));(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Mh||(Mh={}));(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"})(Dh||(Dh={}));(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"})(Hr||(Hr={}));(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Nh||(Nh={}));(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(Fh||(Fh={}));(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(Bh||(Bh={}));(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"})(hi||(hi={}));(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(Uh||(Uh={}));(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"})(Vh||(Vh={}));(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"})(zh||(zh={}));(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Hh||(Hh={}));(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(jh||(jh={}));(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(qh||(qh={}));(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Kh||(Kh={}));(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"})(Wh||(Wh={}));(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(yn||(yn={}));(function(t){t.ASC="ASC",t.DESC="DESC"})(Gh||(Gh={}));(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Qh||(Qh={}));(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(Ji||(Ji={}));(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Yh||(Yh={}));(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(bn||(bn={}));(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"})(Xh||(Xh={}));(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Zh||(Zh={}));(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(ir||(ir={}));(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(eo||(eo={}));(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Jh||(Jh={}));(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"})(ge||(ge={}));(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(Rt||(Rt={}));(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(ef||(ef={}))});var tf,rf,of,sf,nf,af,lf,cf,uf,df,pf,hf=l(()=>{(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(tf||(tf={}));(function(t){t.VALID="VALID",t.INVALID="INVALID"})(rf||(rf={}));(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"})(of||(of={}));(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(sf||(sf={}));(function(t){t.JSON="JSON",t.TEXT="TEXT"})(nf||(nf={}));(function(t){t.JSON="JSON",t.TEXT="TEXT"})(af||(af={}));(function(t){t.TEXT="TEXT",t.HTML="HTML"})(lf||(lf={}));(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(cf||(cf={}));(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(uf||(uf={}));(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"})(df||(df={}));(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(pf||(pf={}))});var ff=l(()=>{Tl();hf()});function mf(t,e){return t===e||(cE[t]??[]).some(r=>mf(r,e))}function vn(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=>mf(i,e))}var cE,gf=l(()=>{Tl();cE={[ge.PERSONAL_BOOK_SHARE_USER]:[ge.PERSONAL_BOOK_USER],[ge.HTML_EXPORT_USER]:[ge.PERSONAL_BOOK_USER],[ge.PDF_EXPORT_USER]:[ge.PERSONAL_BOOK_USER],[ge.KHUB_ADMIN]:[ge.CONTENT_PUBLISHER],[ge.ADMIN]:[ge.KHUB_ADMIN,ge.USERS_ADMIN,ge.PORTAL_ADMIN,ge.BEHAVIOR_DATA_USER],[ge.GENERATIVE_AI_EXPORT_USER]:[ge.GENERATIVE_AI_USER]}});var yf=l(()=>{});var fi=l(()=>{Rl();ff();gf();yf();Rl()});var mi,kl=l(()=>{"use strict";je();mi=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:i}=S.getState(),s=e??i;if(r&&s&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,s,!0)}static await(e){return new Promise(r=>{let i=t.get(e);if(i)r(i);else{let s=S.subscribe(()=>{i=t.get(e),i&&(s(),r(i))})}})}}});var to,Ll=l(()=>{"use strict";kl();to=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:mi.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):mi.await()}}});var $l,qe,jr=l(()=>{"use strict";$l=c(f());Ll();qe=class extends to{constructor(e=!0,r){var i;super(r),this.sortObjectFields=(o,n)=>typeof n!="object"||n==null||Array.isArray(n)?n:Object.fromEntries(Object.entries(n).sort(([a],[u])=>a.localeCompare(u)));let s=this.constructor;s.commonCache=(i=s.commonCache)!==null&&i!==void 0?i:new $l.CacheRegistry,this.cache=e?s.commonCache:new $l.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 xn,Pl=l(()=>{"use strict";je();fi();jr();xn=class extends qe{async listMySearches(){let{session:e}=S.getState();return vn(e,ge.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}}});var Sn,Il=l(()=>{"use strict";je();jr();Sn=class extends qe{async listMyBookmarks(){let e=S.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}}});var En,bf=l(()=>{"use strict";je();jr();En=class extends qe{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=S.getState().session;return!!e?.sessionAuthenticated}}});var Cn,vf=l(()=>{"use strict";jr();je();Cn=class extends qe{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=S.getState().session;return!!e?.sessionAuthenticated}}});var An,uE,dE,Ef,Ml,Dl,xf,Sf,Xe,Nl,pE,Fl=l(()=>{"use strict";fi();An=c(f());Pl();Il();je();bf();vf();uE="ft-user-assets",dE={setAssetCount:(t,e)=>{let{userAssetType:r,count:i}=e.payload.assetCount;t.assetCounts.allAsset[r]=i},clearAssetCount:t=>{Object.values(Rt).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:s}=e.payload;Dl(t,r,[...Ml(t,r),s]),xf(t,r,1,i),Sf(t,s)},editAsset:(t,e)=>{let{assetType:r,asset:i}=e.payload;Dl(t,r,Ml(t,r).map(s=>s.id===i.id?i:s)),Sf(t,i)},removeAsset:(t,e)=>{let{assetType:r,mapId:i,assetId:s}=e.payload;Dl(t,r,Ml(t,r).filter(o=>o.id!==s)),xf(t,r,-1,i)}},Ef={[Rt.SEARCHES]:"savedSearches",[Rt.BOOKMARKS]:"bookmarks",[Rt.BOOKS]:void 0,[Rt.COLLECTIONS]:void 0},Ml=(t,e)=>{var r;let i=Ef[e];return i?(r=t[i])!==null&&r!==void 0?r:[]:[]},Dl=(t,e,r)=>{let i=Ef[e];i&&(t[i]=r)},xf=(t,e,r,i)=>{let s=t.assetCounts.allAsset[e];if(s!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,s+r),e===Rt.BOOKMARKS&&i)){let o=t.assetCounts.bookmarkByMap[i];t.assetCounts.bookmarkByMap[i]=Math.max(0,o+r)}},Sf=(t,e)=>{let r=t.assetLabels.map(s=>s.title),i=e.labels.filter(s=>!r.includes(s)).map(s=>({title:s}));t.assetLabels.push(...i)},Xe=An.FtReduxStore.get({name:uE,reducers:dE,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Rt).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Nl=class{constructor(e=new En,r=new Cn){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=S.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Sn,this.savedSearchesService=new xn,S.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=S.getState();(0,An.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(),Xe.actions.clearAssetCount(),Xe.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Xe.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Xe.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Xe.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();Xe.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&Xe.getState().assetCounts.allAsset[e]!==r.count&&Xe.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&Xe.getState().assetCounts.bookmarkByMap[e]!==r.count&&Xe.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(Xe.getState().assetCounts.bookmarkByMap).length!==0;e===Rt.BOOKMARKS&&r&&Xe.actions.clearBookmarkCountByMap(),Xe.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;Xe.actions.bookmarks(r)}}},pE=new Nl;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=pE)});var Cf=l(()=>{"use strict";fi();Fl()});var Bl,Af=l(()=>{"use strict";je();Bl=class{addCommand(e,r=!1){S.commands.add(e,r)}consumeCommand(e){return S.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Bl});var Tt,wf,ro,hE,wn,io,On,Of=l(()=>{"use strict";je();Tt=c(f());jr();ro=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},hE=Symbol("clearAfterUnitTest"),wn=class extends(0,Tt.withEventBus)(qe){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[wf]=()=>{this.defaultMessages={},this.cache=new Tt.CacheRegistry,this.listeners={}},this.currentUiLocale=S.getState().uiLocale,S.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=S.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 s={...(i=this.defaultMessages[e])!==null&&i!==void 0?i:{},...r};(0,Tt.deepEqual)(this.defaultMessages[e],s)||(this.defaultMessages[e]=s,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 s;let o=e.toLowerCase(),n=this.resolveContext(o);return new Tt.ParametrizedLabelResolver((s=this.defaultMessages[o])!==null&&s!==void 0?s:{},n).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(s){!(s instanceof Tt.CanceledPromiseError)&&r&&console.error(s)}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 s;return(s=this.listeners[e])===null||s===void 0?void 0:s.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new ro({loadedContexts:e})),this.dispatchEvent(new ro({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new ro({loadedContexts:[e]})),this.dispatchEvent(new ro({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(i=>(0,Tt.delay)(0).then(()=>i()).catch(()=>null)))}};wf=hE;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends wn{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends wn{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});io=window.FluidTopicsI18nService,On=window.FluidTopicsCustomI18nService});var _f,Ul,Rf=l(()=>{"use strict";_f=c(f()),Ul=class{highlightHtml(e,r,i){(0,_f.highlightHtml)(e,r,i)}};window.FluidTopicsHighlightHtmlService=new Ul});var Tf,Vl,kf=l(()=>{"use strict";Tf=c(f());je();Vl=class{isDate(e){var r,i,s,o;return(o=(s=((i=(r=S.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&i!==void 0?i:[]).find(a=>a.key===e))===null||s===void 0?void 0:s.date)!==null&&o!==void 0?o:!1}format(e,r){var i,s,o,n;if(e==null)return"";try{return Tf.DateFormatter.format(e,(i=r?.locale)!==null&&i!==void 0?i:S.getState().uiLocale,(s=r?.longFormat)!==null&&s!==void 0?s:!1,(o=r?.withTime)!==null&&o!==void 0?o:!1,(n=r?.onlyTime)!==null&&n!==void 0?n:!1)}catch(a){throw console.error(`Date ${JSON.stringify(e)} is not valid`,a),a}}};window.FluidTopicsDateService=new Vl});var Lf,wr,zl=l(()=>{"use strict";Lf=c(f());je();wr=class{static get(e,r){var i,s,o,n;let a=S.getState(),{lang:u,region:d}=(o=(s=(i=a.localesConfiguration)===null||i===void 0?void 0:i.defaultLocales)===null||s===void 0?void 0:s.defaultContentLocale)!==null&&o!==void 0?o:{lang:"en",region:"US"};return new Lf.SearchPlaceConverter(a.baseUrl,e??20,(n=a.localesConfiguration)===null||n===void 0?void 0:n.allLanguagesAllowed,r??`${u}-${d}`)}}});var _n,$f=l(()=>{"use strict";jr();_n=class extends qe{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,s])=>Array.isArray(s)?[i,s.map(o=>typeof o=="object"&&o!=null&&!Array.isArray(o)?this.sortEventArrays(o):o).sort((o,n)=>typeof o=="object"&&o!==null&&"key"in o?o.key.localeCompare(n.key):typeof o=="string"&&typeof n=="string"?o.localeCompare(n):String(o).localeCompare(String(n)))]:typeof s=="object"&&s!==null?[i,this.sortEventArrays(s)]:[i,s]);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(s=>(console.info(r),console.debug(s),i)),1e3)}}});var Hl,Pf=l(()=>{"use strict";zl();Hl=class{urlToSearchRequest(e){return wr.get().parse(e)}searchRequestToUrl(e){return wr.get().serialize(e)}};window.FluidTopicsUrlService=new Hl});var gi,If=l(()=>{"use strict";gi=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};gi.eventName="change"});var jl,Mf,Df=l(()=>{"use strict";jl=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))}},Mf=new jl});var Or,Rn,Nf=l(()=>{"use strict";Or=c(f());If();Df();Rn=class t extends Or.WithEventBus{static build(){return new t(window.history,Mf,()=>window.location,!1)}constructor(e,r,i,s){var o,n;super(),this.history=e,this.historyStorage=r,this.windowLocation=i,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(n=(o=e.state)===null||o===void 0?void 0:o.index)!==null&&n!==void 0?n:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(s)}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,Or.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new gi(this.currentItem())),0)}installProxies(){let e=r=>(i,s,[o,n,a])=>{let u=r(),d={...u===this.currentIndex?this.currentState:void 0,...o,index:u,href:typeof a=="string"?a:(a??this.windowLocation()).href};i.apply(s,[d,n,a]),this.setCurrentState(d,!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(gi.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(gi.eventName,e)}currentItem(){return(0,Or.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,Or.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(i=>!!i).filter(i=>i.index<this.currentIndex).reverse();return(0,Or.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,Or.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 s=e,o=e+1;for(;this.states.length>o&&!this.isDifferentMajorState(o,i);)this.hasState(o)&&(s=o),o++;return s}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 s=r??this.currentState.majorStateId,o=(i=this.states[e])===null||i===void 0?void 0:i.majorStateId;return o==null||o!=s}}});var Ff=l(()=>{"use strict";Nf();window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Rn.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 Bf=l(()=>{"use strict";je()});var Tn=l(()=>{"use strict";Il();kl();Af();Of();jr();Rf();Pl();kf();zl();$f();Pf();Ff();Bf()});var Uf,Vf,ql=l(()=>{"use strict";Uf=c(g()),Vf=Uf.css`
261
+ `});var zf=l(()=>{"use strict"});function Hf(t,e){let{authenticationRequired:r,session:i}=S.getState();return r&&!i?.sessionAuthenticated?Promise.resolve(e):t()}var jf=l(()=>{"use strict";je()});var kn,qf=l(()=>{"use strict";Ll();kn=class extends to{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}}});var yi,Kl,Yo,Wl=l(()=>{"use strict";yi=c(f());je();jf();Tn();qf();Kl=class t extends yi.FtStateManager{static build(e){return new t(S,e)}constructor(e,r){super(),this.store=e,this.cache=new yi.CacheRegistry,this.withManualResources=!0,this.userLocaleService=new kn,this.cleanSessionDebouncer=new yi.Debouncer,this.reloadDebouncer=new yi.Debouncer(500),this.apiProvider=r??(()=>mi.get())}setWithManualResources(e){this.withManualResources=e,this.updateIfNeeded()}async initService(){this.store.addEventListener(Ar.eventName,this.reloadConfiguration)}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.store.getState().session==null&&this.updateSession(),this.store.getState().metadataConfiguration==null&&this.updateMetadataConfiguration()),this.store.getState().localesConfiguration==null&&this.updateLocalesConfiguration(),(this.store.getState().availableContentLocales==null||this.store.getState().availableContentLocales.length==0)&&this.updateAvailableContentLocales())}async updateSession(){let e=await this.cache.get("session",async()=>{let r=await this.apiProvider().getCurrentSession();return r.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.setSession(void 0)},r.idleTimeoutInMillis),r});this.setSession(e)}async updateMetadataConfiguration(){this.setMetadataConfiguration(await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration()))}async updateLocalesConfiguration(){this.setLocalesConfiguration(await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration()))}async updateAvailableContentLocales(){var e;let r=await this.cache.get("availableContentLocales",()=>Hf(()=>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 Qo(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)}},Yo=Kl.build()});var bi,Xo=l(()=>{bi=class extends Event{constructor(e,r,i,s){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=r,this.callback=i,this.subscribe=s??!1}}});var Kf=l(()=>{});var Gl=l(()=>{Xo();});var Wf=l(()=>{});var Ql=l(()=>{Xo();Wf();});var Zo,Gf=l(()=>{Xo();Zo=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:s,callbackRef:o}of i){let n=s.deref(),a=o.deref();n===void 0||a===void 0||n.dispatchEvent(new bi(e.context,n,a,!0))}},this.onContextRequest=e=>{if(e.subscribe!==!0)return;let r=e.contextTarget??e.composedPath()[0],i=e.callback,s=this.pendingContextRequests.get(e.context);s===void 0&&this.pendingContextRequests.set(e.context,s={callbacks:new WeakMap,requests:[]});let o=s.callbacks.get(r);o===void 0&&s.callbacks.set(r,o=new WeakSet),o.has(i)||(o.add(i),s.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 Yf=l(()=>{Gl();});var Xf=l(()=>{Xo();Kf();Gl();Ql();Gf();Qf();Yf()});var Zf,lt,vi,Ie,he,Yl=l(()=>{"use strict";Zf=c(g()),lt=c(F()),vi=c(f());ql();Tn();Wl();Xf();Ie=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},he=class extends vi.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=Yo,this.contextRoot=new Zo}render(){return Zf.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=>po.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())}};de.elementDefinitions={};de.styles=If;Pe([(0,st.property)()],de.prototype,"baseUrl",void 0);Pe([(0,st.property)()],de.prototype,"tenantId",void 0);Pe([(0,st.property)()],de.prototype,"apiIntegrationIdentifier",void 0);Pe([(0,st.property)()],de.prototype,"apiIntegrationAppVersion",void 0);Pe([(0,st.property)()],de.prototype,"uiLocale",void 0);Pe([(0,Ai.jsonProperty)(null)],de.prototype,"availableUiLocales",void 0);Pe([(0,Ai.jsonProperty)(null)],de.prototype,"metadataConfiguration",void 0);Pe([(0,st.property)({type:Boolean})],de.prototype,"editorMode",void 0);Pe([(0,st.property)({type:Boolean})],de.prototype,"noCustom",void 0);Pe([(0,st.property)({type:Boolean})],de.prototype,"openExternalDocumentInNewTab",void 0);Pe([(0,st.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],de.prototype,"noCustomComponent",void 0);Pe([(0,st.property)({type:Boolean})],de.prototype,"withManualResources",void 0);Pe([(0,st.property)({type:Boolean})],de.prototype,"navigatorOnline",void 0);Pe([(0,st.property)({type:Boolean})],de.prototype,"forcedOffline",void 0);Pe([(0,st.property)({type:Boolean})],de.prototype,"authenticationRequired",void 0);Pe([(0,Ai.jsonProperty)([])],de.prototype,"messageContexts",void 0);Pe([(0,Ai.jsonProperty)(void 0)],de.prototype,"session",void 0)});var Kf,Wf=l(()=>{"use strict";Kl();Kf={"ft-app-context":de}});var Gf,Qf=l(()=>{"use strict";Gf=u(m());Wf();(0,Gf.customElements)(Kf)});var Ht=l(()=>{"use strict";wh();Ve();Il();gf();xs();Hl();Df();Kl();jl();Qf()});var Wl,ho,Cs=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-]+$/)}},ho=new Wl});var fo,Xf,XS,nn,Yf,Zf,Es,on,at,As,Os,sn=l(()=>{"use strict";fo=u(m());Ht();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},nn=Symbol("i18nAttributes"),Yf=Symbol("i18nListAttributes"),Zf=Symbol("i18nProperties"),Es=Symbol("i18nContexts"),on=Symbol("i18nUnsubs"),at=(0,fo.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:po}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(ho.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[nn])===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[on].has(c)||this[on].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[on].forEach(n=>n()),this[on].clear()}}return e=Es,r=on,XS([(0,Xf.property)({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}),As=class extends at(fo.FtLitElement){},Os=class extends at(fo.FtLitElementRedux){}});var Gl,YS,Jf=l(()=>{"use strict";Cs();Gl=class{fromAttribute(e){if(!e)return[];try{let r=JSON.parse(e);return Array.isArray(r)?r.map(i=>typeof i=="string"?ho.fromAttribute(i):i):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},YS=new Gl});var em,mo,ws=l(()=>{"use strict";sn();em=u(m());Cs();Jf();mo=(t,e)=>(r,i)=>{var o;r.constructor.createProperty(i,{type:Object,hasChanged:em.hasChanged,converter:ho,...e}),r[nn]=(o=r[nn])!==null&&o!==void 0?o:new Map,r[nn].set(i,t??{})}});var or,tm=l(()=>{"use strict";Ht();or=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:po}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";sn()});var im,om,Ql=l(()=>{"use strict";im=u(b()),om=im.css`
264
- `});var nm=l(()=>{"use strict"});var Rs,Ts,_s,an,Vt,Xl=l(()=>{"use strict";Rs=u(b()),Ts=u(B()),_s=u(m());Ql();sn();Ht();an=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},Vt=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`
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=>io.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())}};he.elementDefinitions={};he.styles=Vf;Ie([(0,lt.property)()],he.prototype,"baseUrl",void 0);Ie([(0,lt.property)()],he.prototype,"tenantId",void 0);Ie([(0,lt.property)()],he.prototype,"apiIntegrationIdentifier",void 0);Ie([(0,lt.property)()],he.prototype,"apiIntegrationAppVersion",void 0);Ie([(0,lt.property)()],he.prototype,"uiLocale",void 0);Ie([(0,vi.jsonProperty)(null)],he.prototype,"availableUiLocales",void 0);Ie([(0,vi.jsonProperty)(null)],he.prototype,"metadataConfiguration",void 0);Ie([(0,lt.property)({type:Boolean})],he.prototype,"editorMode",void 0);Ie([(0,lt.property)({type:Boolean})],he.prototype,"noCustom",void 0);Ie([(0,lt.property)({type:Boolean})],he.prototype,"openExternalDocumentInNewTab",void 0);Ie([(0,lt.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],he.prototype,"noCustomComponent",void 0);Ie([(0,lt.property)({type:Boolean})],he.prototype,"withManualResources",void 0);Ie([(0,lt.property)({type:Boolean})],he.prototype,"navigatorOnline",void 0);Ie([(0,lt.property)({type:Boolean})],he.prototype,"forcedOffline",void 0);Ie([(0,lt.property)({type:Boolean})],he.prototype,"authenticationRequired",void 0);Ie([(0,vi.jsonProperty)([])],he.prototype,"messageContexts",void 0);Ie([(0,vi.jsonProperty)(void 0)],he.prototype,"session",void 0)});var Jf,em=l(()=>{"use strict";Yl();Jf={"ft-app-context":he}});var tm,rm=l(()=>{"use strict";tm=c(f());em();(0,tm.customElements)(Jf)});var Vt=l(()=>{"use strict";Ph();je();Fl();Cf();Tn();ql();zf();Yl();Wl();rm()});var Xl,oo,Ln=l(()=>{"use strict";Xl=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-]+$/)}},oo=new Xl});var so,im,gE,es,om,sm,$n,Jo,ct,Pn,In,ts=l(()=>{"use strict";so=c(f());Vt();im=c(F());Ln();gE=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},es=Symbol("i18nAttributes"),om=Symbol("i18nListAttributes"),sm=Symbol("i18nProperties"),$n=Symbol("i18nContexts"),Jo=Symbol("i18nUnsubs"),ct=(0,so.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(o){return o??this.useCustomMessageContexts?On:io}i18n(o){let{context:n,key:a,message:u}=o,{custom:d,args:p,argsProvider:h}=o;if(n&&a){this.hasI18nContext(n)||this.addI18nContext(n,void 0,d);let m=p??(h?h(this):[]);return this.getI18nService(d).resolveMessage(n,a,...m)}return u}async awaitI18n(o){let{context:n,custom:a}=o;return n&&await this.getI18nService(a).prepareContext(n),this.i18n(o)}customI18n(o,n){if(oo.isI18nKey(o)){let[a,u]=o.split(".");return this.i18n({custom:!0,context:a,key:u,...n})||o}return o}firstUpdated(o){super.firstUpdated(o),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(o){super.update(o),this.updateI18nAttributes((n,a,u)=>o.has(a)||typeof n.argsProvider=="function"),this.updateI18nProperties(n=>typeof n.argsProvider=="function")}onI18nUpdate(o){this.updateI18nAttributes((n,a,u)=>{var d;return((d=u?.context)===null||d===void 0?void 0:d.toLowerCase())===o}),this.updateI18nProperties(n=>n.context.toLowerCase()===o),this.requestUpdate()}updateI18nAttributes(o){var n,a;let u=this,d=(p,h,m)=>m?.context&&m.key&&o(p,h,m)?{...m,message:this.i18n({context:m.context,key:m.key,custom:m.custom,...p})}:m;(n=this[es])===null||n===void 0||n.forEach((p,h)=>u[h]=d(p,h,u[h])),(a=this[om])===null||a===void 0||a.forEach((p,h)=>{var m;return u[h]=(m=u[h])===null||m===void 0?void 0:m.map(v=>d(p,h,v))})}updateI18nProperties(o){var n;(n=this[sm])===null||n===void 0||n.forEach((a,u)=>{o(a,u)&&(this[u]=this.i18n(a))})}addI18nMessages(o,n,a){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(o,n,a)}addI18nContext(o,n,a){let u=(typeof o=="string"?o:o.name).toLowerCase();a=typeof o=="string"?a:o.custom,this[$n].set(u,{isCustomContext:a}),this[Jo].has(u)||this[Jo].set(u,this.getI18nService(a).subscribe(u,()=>this.onI18nUpdate(u))),this.getI18nService(a).prepareContext(u,n)}hasI18nContext(o){return this[$n].has(o.toLowerCase())}connectedCallback(){super.connectedCallback(),this[$n].forEach((o,n)=>this.addI18nContext(n,void 0,o.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Jo].forEach(o=>o()),this[Jo].clear()}}return e=$n,r=Jo,gE([(0,im.property)({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}),Pn=class extends ct(so.FtLitElement){},In=class extends ct(so.FtLitElementRedux){}});var Zl,yE,nm=l(()=>{"use strict";Ln();Zl=class{fromAttribute(e){if(!e)return[];try{let r=JSON.parse(e);return Array.isArray(r)?r.map(i=>typeof i=="string"?oo.fromAttribute(i):i):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},yE=new Zl});var am,no,Mn=l(()=>{"use strict";ts();am=c(f());Ln();nm();no=(t,e)=>(r,i)=>{var s;r.constructor.createProperty(i,{type:Object,hasChanged:am.hasChanged,converter:oo,...e}),r[es]=(s=r[es])!==null&&s!==void 0?s:new Map,r[es].set(i,t??{})}});var or,lm=l(()=>{"use strict";Vt();or=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?On:io}constructor(e,r=!1){this.name=e,this.custom=r,this.properties=new Proxy({},{get:(i,s)=>{let o=s;return n=>({context:this.name,key:o,custom:this.custom,args:typeof n=="function"?void 0:n,argsProvider:typeof n=="function"?n:void 0})}}),this.messages=new Proxy({},{get:(i,s)=>(...o)=>this.service.resolveMessage(this.name,s,...o)}),this.rawMessages=new Proxy({},{get:(i,s)=>this.service.resolveRawMessage(this.name,s)}),this.keys=new Proxy({},{get:(i,s)=>()=>s}),this.attributes=new Proxy({},{get:(i,s)=>()=>({context:this.name,key:s,message:this.service.resolveRawMessage(this.name,s)})})}}});var cm=l(()=>{"use strict";ts()});var um,dm,Jl=l(()=>{"use strict";um=c(g()),dm=um.css`
264
+ `});var pm=l(()=>{"use strict"});var Dn,Nn,Fn,rs,zt,ec=l(()=>{"use strict";Dn=c(g()),Nn=c(F()),Fn=c(f());Jl();ts();Vt();rs=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},zt=class extends In{constructor(){super(),this.editorMode=!1,this.addStore(S)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":Dn.nothing:Dn.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:""})}};Vt.elementDefinitions={};Vt.styles=om;an([(0,_s.redux)()],Vt.prototype,"editorMode",void 0);an([(0,Ts.property)()],Vt.prototype,"context",void 0);an([(0,Ts.property)()],Vt.prototype,"key",void 0);an([(0,_s.jsonProperty)([])],Vt.prototype,"args",void 0);an([(0,Ts.property)()],Vt.prototype,"defaultMessage",void 0)});var sm,am=l(()=>{"use strict";Xl();sm={"ft-i18n":Vt}});var lm,cm=l(()=>{"use strict";lm=u(m());am();(0,lm.customElements)(sm)});var kt=l(()=>{"use strict";tm();sn();rm();Ql();nm();Xl();cm()});var um,Pt,Lt,jt,ve,Yl=l(()=>{"use strict";um=u(b()),Pt=u(B()),Lt=u(m());ge();Ua();fd();ws();kt();jt=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`
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:""})}};zt.elementDefinitions={};zt.styles=dm;rs([(0,Fn.redux)()],zt.prototype,"editorMode",void 0);rs([(0,Nn.property)()],zt.prototype,"context",void 0);rs([(0,Nn.property)()],zt.prototype,"key",void 0);rs([(0,Fn.jsonProperty)([])],zt.prototype,"args",void 0);rs([(0,Nn.property)()],zt.prototype,"defaultMessage",void 0)});var hm,fm=l(()=>{"use strict";ec();hm={"ft-i18n":zt}});var mm,gm=l(()=>{"use strict";mm=c(f());fm();(0,mm.customElements)(hm)});var kt=l(()=>{"use strict";lm();ts();cm();Jl();pm();ec();gm()});var ym,$t,Lt,Ht,xe,tc=l(()=>{"use strict";ym=c(g()),$t=c(F()),Lt=c(f());ve();Ga();bp();Mn();kt();Ht=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},xe=class extends Pn{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 ym.html`
269
269
  <div part="container"
270
270
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}">
271
271
  <slot part="slot"></slot>
@@ -274,13 +274,13 @@
274
274
  popover="manual">
275
275
  <div part="tooltip-content" class="ft-tooltip--content">
276
276
  <slot name="text"></slot>
277
- <ft-typography variant="${Q.caption}" ?hidden=${!(!((e=this.text)===null||e===void 0)&&e.message)}>
277
+ <ft-typography variant="${Y.caption}" ?hidden=${!(!((e=this.text)===null||e===void 0)&&e.message)}>
278
278
  ${(r=this.text)===null||r===void 0?void 0:r.message}
279
279
  </ft-typography>
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&&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;jt([mo()],ve.prototype,"text",void 0);jt([(0,Pt.property)({type:Boolean})],ve.prototype,"manual",void 0);jt([(0,Pt.property)({type:Boolean})],ve.prototype,"inline",void 0);jt([(0,Lt.numberProperty)()],ve.prototype,"delay",void 0);jt([(0,Pt.property)()],ve.prototype,"position",void 0);jt([(0,Lt.jsonProperty)([])],ve.prototype,"ignoreMatchingElements",void 0);jt([(0,Pt.queryAssignedNodes)()],ve.prototype,"slotNodes",void 0);jt([(0,Pt.query)(".ft-tooltip--container")],ve.prototype,"container",void 0);jt([(0,Pt.query)(".ft-tooltip")],ve.prototype,"tooltip",void 0);jt([(0,Pt.query)(".ft-tooltip--content")],ve.prototype,"tooltipContent",void 0);jt([(0,Pt.state)()],ve.prototype,"visible",void 0)});var pm=l(()=>{"use strict"});var dm,hm=l(()=>{"use strict";Yl();dm={"ft-tooltip":ve}});var fm,mm=l(()=>{"use strict";fm=u(m());hm();(0,fm.customElements)(dm)});var Zl=l(()=>{"use strict";Yl();Ua();pm();mm()});var gm,zt,Xe,vm,go=l(()=>{"use strict";gm=u(b()),zt=u(m()),Xe={size:zt.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:zt.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",zt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:zt.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",zt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:zt.FtCssVariableFactory.extend("--ft-icon-material-font-family","",zt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:zt.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},vm=[gm.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 s=this.text;this.text={message:e},await this.show(r),this.text=s,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&&yp(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)}};xe.elementDefinitions={"ft-typography":z};xe.styles=Ud;Ht([no()],xe.prototype,"text",void 0);Ht([(0,$t.property)({type:Boolean})],xe.prototype,"manual",void 0);Ht([(0,$t.property)({type:Boolean})],xe.prototype,"inline",void 0);Ht([(0,Lt.numberProperty)()],xe.prototype,"delay",void 0);Ht([(0,$t.property)()],xe.prototype,"position",void 0);Ht([(0,Lt.jsonProperty)([])],xe.prototype,"ignoreMatchingElements",void 0);Ht([(0,$t.queryAssignedNodes)()],xe.prototype,"slotNodes",void 0);Ht([(0,$t.query)(".ft-tooltip--container")],xe.prototype,"container",void 0);Ht([(0,$t.query)(".ft-tooltip")],xe.prototype,"tooltip",void 0);Ht([(0,$t.query)(".ft-tooltip--content")],xe.prototype,"tooltipContent",void 0);Ht([(0,$t.state)()],xe.prototype,"visible",void 0)});var bm=l(()=>{"use strict"});var vm,xm=l(()=>{"use strict";tc();vm={"ft-tooltip":xe}});var Sm,Em=l(()=>{"use strict";Sm=c(f());xm();(0,Sm.customElements)(vm)});var rc=l(()=>{"use strict";tc();Ga();bm();Em()});var Cm,jt,Ze,Am,ao=l(()=>{"use strict";Cm=c(g()),jt=c(f()),Ze={size:jt.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:jt.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",jt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:jt.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",jt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:jt.FtCssVariableFactory.extend("--ft-icon-material-font-family","",jt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:jt.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Am=[Cm.css`
284
284
  :host, i.ft-icon {
285
285
  display: inline-flex;
286
286
  align-items: center;
@@ -289,14 +289,14 @@
289
289
  }
290
290
 
291
291
  :host {
292
- width: ${Xe.size};
293
- height: ${Xe.size};
292
+ width: ${Ze.size};
293
+ height: ${Ze.size};
294
294
  }
295
295
 
296
296
  i.ft-icon {
297
297
  width: 100%;
298
298
  height: 100%;
299
- font-size: ${Xe.size};
299
+ font-size: ${Ze.size};
300
300
  line-height: 1;
301
301
  font-weight: normal;
302
302
  text-transform: none;
@@ -307,33 +307,33 @@
307
307
  text-rendering: auto;
308
308
  -webkit-font-smoothing: antialiased;
309
309
  -moz-osx-font-smoothing: grayscale;
310
- vertical-align: ${Xe.verticalAlign};
310
+ vertical-align: ${Ze.verticalAlign};
311
311
  }
312
312
 
313
313
  i.ft-icon.ft-icon--fluid-topics {
314
- font-family: ${Xe.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
314
+ font-family: ${Ze.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
315
315
 
316
316
  /* Ugly fix because font is broken */
317
- font-size: calc(0.75 * ${Xe.size});
318
- line-height: ${Xe.size};
317
+ font-size: calc(0.75 * ${Ze.size});
318
+ line-height: ${Ze.size};
319
319
  position: relative;
320
320
  top: -4%;
321
321
  justify-content: center;
322
322
  }
323
323
 
324
324
  .ft-icon--file-format {
325
- font-family: ${Xe.fileFormatFontFamily}, ft-mime, sans-serif;
325
+ font-family: ${Ze.fileFormatFontFamily}, ft-mime, sans-serif;
326
326
  }
327
327
 
328
328
  .ft-icon--material {
329
- font-family: ${Xe.materialFontFamily}, "Material Icons", sans-serif;
329
+ font-family: ${Ze.materialFontFamily}, "Material Icons", sans-serif;
330
330
  }
331
- `,zt.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 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=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,ZS,$R,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])]),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 ln,Qr,bm,xm,cn,ne,rc=l(()=>{"use strict";ln=u(b()),Qr=u(B()),bm=u(m()),xm=u(ks());tc();go();Jl();cn=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},ne=class extends bm.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=ln.nothing}render(){let e=this.variant&&Object.values(Ye).includes(this.variant)?this.variant:Ye.fluid_topics,r=e!==Ye.material||!!this.value;return ln.html`
331
+ `,jt.noTextSelect]});var Je,ic=l(()=>{"use strict";(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(Je||(Je={}))});var Bn=Di(($_,wm)=>{wm.exports=ftGlobals.litUnsafeHTML});function Un(t,e){var r,i,s,o;t=(t??"").toLowerCase(),e=(e??"").toLowerCase();let[n,a]=(((r=bE.get(t))!==null&&r!==void 0?r:t)+"/").split("/");return(o=(s=(i=oc.get(a))!==null&&i!==void 0?i:oc.get(e))!==null&&s!==void 0?s:oc.get(n))!==null&&o!==void 0?o:y.UNKNOWN}var Ae,y,oc,bE,P_,sc=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;"})(Ae||(Ae={}));(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;"})(y||(y={}));oc=new Map([...["abw"].map(t=>[t,y.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,y.AUDIO]),...["avi"].map(t=>[t,y.AVI]),...["chm","xhs"].map(t=>[t,y.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,y.CODE]),...["csv"].map(t=>[t,y.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,y.DITA]),...["epub"].map(t=>[t,y.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,y.EXCEL]),...["flac"].map(t=>[t,y.FLAC]),...["gif"].map(t=>[t,y.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,y.GZIP]),...["html","htm","xhtml"].map(t=>[t,y.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,y.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,y.JPEG]),...["json"].map(t=>[t,y.JSON]),...["m4a","m4p"].map(t=>[t,y.M4A]),...["mov","qt"].map(t=>[t,y.MOV]),...["mp3"].map(t=>[t,y.MP3]),...["mp4","m4v"].map(t=>[t,y.MP4]),...["ogg","oga"].map(t=>[t,y.OGG]),...["pdf","ps"].map(t=>[t,y.PDF]),...["png"].map(t=>[t,y.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,y.POWERPOINT]),...["rar"].map(t=>[t,y.RAR]),...["stp"].map(t=>[t,y.STP]),...["txt","rtf","md","mdown"].map(t=>[t,y.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,y.VIDEO]),...["wav"].map(t=>[t,y.WAV]),...["wma"].map(t=>[t,y.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,y.WORD]),...["xml","xsl","rdf"].map(t=>[t,y.XML]),...["yaml","yml","x-yaml"].map(t=>[t,y.YAML]),...["zip"].map(t=>[t,y.ZIP])]),bE=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"]]);P_={[y.ABW]:"#91ABC6",[y.AUDIO]:"#1795E3",[y.AVI]:"#E63324",[y.CHM]:"#71C3EB",[y.CODE]:"#71C3EB",[y.CSV]:"#1F7345",[y.DITA]:"#71C3EB",[y.EPUB]:"#85B926",[y.EXCEL]:"#1F7345",[y.FLAC]:"#1795E3",[y.GIF]:"#59B031",[y.GZIP]:"#F8AB36",[y.HTML]:"#71C3EB",[y.IMAGE]:"#59B031",[y.JPEG]:"#59B031",[y.JSON]:"#71C3EB",[y.M4A]:"#1795E3",[y.MOV]:"#E63324",[y.MP3]:"#1795E3",[y.MP4]:"#E63324",[y.OGG]:"#1795E3",[y.PDF]:"#E44948",[y.PNG]:"#59B031",[y.POWERPOINT]:"#B54A2B",[y.RAR]:"#F8AB36",[y.STP]:"#3764B1",[y.TEXT]:"#3162AB",[y.UNKNOWN]:"#999999",[y.VIDEO]:"#E63324",[y.WAV]:"#1795E3",[y.WMA]:"#1795E3",[y.WORD]:"#3162AB",[y.XML]:"#71C3EB",[y.YAML]:"#71C3EB",[y.ZIP]:"#F8AB36"}});var is,qr,Om,_m,os,ae,nc=l(()=>{"use strict";is=c(g()),qr=c(F()),Om=c(f()),_m=c(Bn());sc();ao();ic();os=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},ae=class extends Om.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=is.nothing}render(){let e=this.variant&&Object.values(Je).includes(this.variant)?this.variant:Je.fluid_topics,r=e!==Je.material||!!this.value;return is.html`
332
332
  <i class="ft-icon ft-icon--${e} ft-no-text-select" part="icon icon-${e}">
333
- ${(0,xm.unsafeHTML)(this.resolvedIcon)}
333
+ ${(0,_m.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||ln.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())}};ne.elementDefinitions={};ne.styles=vm;cn([(0,Qr.property)()],ne.prototype,"variant",void 0);cn([(0,Qr.property)()],ne.prototype,"value",void 0);cn([(0,Qr.property)({reflect:!0,attribute:"aria-hidden"})],ne.prototype,"ariaHidden",void 0);cn([(0,Qr.state)()],ne.prototype,"resolvedIcon",void 0);cn([(0,Qr.query)("slot")],ne.prototype,"slottedContent",void 0)});var Sm,Cm=l(()=>{"use strict";rc();Sm={"ft-icon":ne}});var Em,Am=l(()=>{"use strict";Em=u(m());Cm();(0,Em.customElements)(Sm)});var wr=l(()=>{"use strict";go();Jl();rc();tc();Am()});var Om,un,Oi,wm,Ps=l(()=>{"use strict";Om=u(b()),un=u(m()),Oi={color:un.FtCssVariableFactory.extend("--ft-loader-color","",un.designSystemVariables.colorPrimary),size:un.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},wm=Om.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 Je.file_format:this.resolvedIcon=(e=y[i.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:i;break;case Je.material:this.resolvedIcon=this.value||is.nothing;break;default:this.resolvedIcon=(r=Ae[i.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:i;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};ae.elementDefinitions={};ae.styles=Am;os([(0,qr.property)()],ae.prototype,"variant",void 0);os([(0,qr.property)()],ae.prototype,"value",void 0);os([(0,qr.property)({reflect:!0,attribute:"aria-hidden"})],ae.prototype,"ariaHidden",void 0);os([(0,qr.state)()],ae.prototype,"resolvedIcon",void 0);os([(0,qr.query)("slot")],ae.prototype,"slottedContent",void 0)});var Rm,Tm=l(()=>{"use strict";nc();Rm={"ft-icon":ae}});var km,Lm=l(()=>{"use strict";km=c(f());Tm();(0,km.customElements)(Rm)});var _r=l(()=>{"use strict";ao();ic();nc();sc();Lm()});var $m,ss,xi,Pm,Vn=l(()=>{"use strict";$m=c(g()),ss=c(f()),xi={color:ss.FtCssVariableFactory.extend("--ft-loader-color","",ss.designSystemVariables.colorPrimary),size:ss.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},Pm=$m.css`
337
337
  :host {
338
338
  line-height: 0;
339
339
  }
@@ -342,8 +342,8 @@
342
342
  display: inline-block;
343
343
  position: relative;
344
344
 
345
- width: ${Oi.size};
346
- height: ${Oi.size};
345
+ width: ${xi.size};
346
+ height: ${xi.size};
347
347
  }
348
348
 
349
349
  .ft-loader div {
@@ -352,7 +352,7 @@
352
352
  width: 25%;
353
353
  height: 25%;
354
354
  border-radius: 50%;
355
- background: ${Oi.color};
355
+ background: ${xi.color};
356
356
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
357
357
  }
358
358
 
@@ -399,17 +399,17 @@
399
399
  transform: translate(0, 0);
400
400
  }
401
401
  100% {
402
- transform: translate(calc(0.35 * ${Oi.size}), 0);
402
+ transform: translate(calc(0.35 * ${xi.size}), 0);
403
403
  }
404
404
  }
405
- `});var Rm=l(()=>{"use strict"});var Tm,_m,wi,ic=l(()=>{"use strict";Tm=u(b()),_m=u(m());Ps();wi=class extends _m.FtLitElement{render(){return Tm.html`
405
+ `});var Im=l(()=>{"use strict"});var Mm,Dm,Si,ac=l(()=>{"use strict";Mm=c(g()),Dm=c(f());Vn();Si=class extends Dm.FtLitElement{render(){return Mm.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=wm});var km,Lm=l(()=>{"use strict";ic();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();ic();$m()});var nr,Dm=l(()=>{Ia();nr=t=>t??Se});var $s=l(()=>{Dm()});var Fm,D,Mm,I,Nm,oc,sr,Bm,Ri=l(()=>{"use strict";Fm=u(b()),D=u(m());vr();Nt();Ps();go();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","",Jt.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)),oc={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)},sr={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`
412
+ `}};Si.styles=Pm});var Nm,Fm=l(()=>{"use strict";ac();Nm={"ft-loader":Si}});var Bm,Um=l(()=>{"use strict";Bm=c(f());Fm();(0,Bm.customElements)(Nm)});var Vm=l(()=>{"use strict";Vn();Im();ac();Um()});var sr,zm=l(()=>{za();sr=t=>t??Ce});var zn=l(()=>{zm()});var qm,I,Hm,P,jm,lc,nr,Km,Ei=l(()=>{"use strict";qm=c(g()),I=c(f());yr();Nt();Vn();ao();Hm=I.FtCssVariableFactory.extend("--ft-button-color","",I.designSystemVariables.colorPrimary),P={backgroundColor:I.FtCssVariableFactory.extend("--ft-button-background-color","",I.designSystemVariables.colorSurface),borderRadius:I.FtCssVariableFactory.extend("--ft-button-border-radius","",I.designSystemVariables.borderRadiusL),color:Hm,fontSize:I.FtCssVariableFactory.extend("--ft-button-font-size","",Jt.fontSize),iconSize:I.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:I.FtCssVariableFactory.extend("--ft-button-ripple-color","",Hm),verticalPadding:I.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:I.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:I.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:I.FtCssVariableFactory.external(I.designSystemVariables.colorOpacityDisabled,"Design system")},jm=I.FtCssVariableFactory.extend("--ft-button-primary-color","",I.FtCssVariableFactory.extend("--ft-button-color","",I.designSystemVariables.colorOnPrimary)),lc={backgroundColor:I.FtCssVariableFactory.extend("--ft-button-primary-background-color","",I.FtCssVariableFactory.extend("--ft-button-background-color","",I.designSystemVariables.colorPrimary)),color:jm,rippleColor:I.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",jm)},nr={borderRadius:I.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",I.FtCssVariableFactory.extend("--ft-button-border-radius","",I.designSystemVariables.borderRadiusM)),verticalPadding:I.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:I.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:I.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},Km=qm.css`
413
413
  :host {
414
414
  display: inline-block;
415
415
  max-width: 100%;
@@ -420,7 +420,7 @@
420
420
  box-shadow: 0px 0px 0px transparent;
421
421
  border: 0px solid transparent;
422
422
  text-shadow: 0px 0px 0px transparent;
423
- font-size: ${I.fontSize};
423
+ font-size: ${P.fontSize};
424
424
  text-decoration: none;
425
425
  }
426
426
 
@@ -440,7 +440,7 @@
440
440
  }
441
441
 
442
442
  .ft-button:focus-visible {
443
- outline: 2px solid ${D.designSystemVariables.colorPrimary};
443
+ outline: 2px solid ${I.designSystemVariables.colorPrimary};
444
444
  outline-offset: 2px;
445
445
  }
446
446
 
@@ -454,31 +454,31 @@
454
454
  border: none;
455
455
  pointer-events: auto;
456
456
 
457
- --button-internal-line-height: max(calc(${I.fontSize} + 2px), ${I.iconSize});
458
- --button-internal-color: ${I.color};
459
- ${(0,D.setVariable)(Xe.size,I.iconSize)};
460
- ${(0,D.setVariable)(q.color,I.rippleColor)};
461
- ${(0,D.setVariable)(q.borderRadius,I.borderRadius)};
457
+ --button-internal-line-height: max(calc(${P.fontSize} + 2px), ${P.iconSize});
458
+ --button-internal-color: ${P.color};
459
+ ${(0,I.setVariable)(Ze.size,P.iconSize)};
460
+ ${(0,I.setVariable)(q.color,P.rippleColor)};
461
+ ${(0,I.setVariable)(q.borderRadius,P.borderRadius)};
462
462
 
463
- border-radius: ${I.borderRadius};
464
- padding: ${I.verticalPadding} ${I.horizontalPadding};
465
- background-color: ${I.backgroundColor};
463
+ border-radius: ${P.borderRadius};
464
+ padding: ${P.verticalPadding} ${P.horizontalPadding};
465
+ background-color: ${P.backgroundColor};
466
466
  color: var(--button-internal-color);
467
467
  }
468
468
 
469
469
  .ft-button.ft-button--outlined {
470
470
  border: 1px solid var(--button-internal-color);
471
- padding: calc(${I.verticalPadding} - 1px) calc(${I.horizontalPadding} - 1px);
471
+ padding: calc(${P.verticalPadding} - 1px) calc(${P.horizontalPadding} - 1px);
472
472
  }
473
473
 
474
474
  .ft-button.ft-button--dense {
475
- padding: ${sr.verticalPadding} ${sr.horizontalPadding};
476
- border-radius: ${sr.borderRadius};
477
- ${(0,D.setVariable)(q.borderRadius,sr.borderRadius)};
475
+ padding: ${nr.verticalPadding} ${nr.horizontalPadding};
476
+ border-radius: ${nr.borderRadius};
477
+ ${(0,I.setVariable)(q.borderRadius,nr.borderRadius)};
478
478
  }
479
479
 
480
480
  .ft-button.ft-button--dense.ft-button--outlined {
481
- padding: calc(${sr.verticalPadding} - 1px) calc(${sr.horizontalPadding} - 1px);
481
+ padding: calc(${nr.verticalPadding} - 1px) calc(${nr.horizontalPadding} - 1px);
482
482
  }
483
483
 
484
484
  .ft-button:not([disabled]):hover {
@@ -486,22 +486,22 @@
486
486
  }
487
487
 
488
488
  .ft-button--round {
489
- border-radius: calc(var(--button-internal-line-height) / 2 + ${I.verticalPadding});
489
+ border-radius: calc(var(--button-internal-line-height) / 2 + ${P.verticalPadding});
490
490
  }
491
491
 
492
492
  .ft-button--round.ft-button--dense {
493
- border-radius: calc(var(--button-internal-line-height) / 2 + ${sr.verticalPadding});
493
+ border-radius: calc(var(--button-internal-line-height) / 2 + ${nr.verticalPadding});
494
494
  }
495
495
 
496
496
  .ft-button[disabled] {
497
497
  filter: grayscale(1);
498
- opacity: ${I.opacityDisabled};
498
+ opacity: ${P.opacityDisabled};
499
499
  }
500
500
 
501
501
  .ft-button.ft-button--primary {
502
- background-color: ${oc.backgroundColor};
503
- --button-internal-color: ${oc.color};
504
- ${(0,D.setVariable)(q.color,oc.rippleColor)};
502
+ background-color: ${lc.backgroundColor};
503
+ --button-internal-color: ${lc.color};
504
+ ${(0,I.setVariable)(q.color,lc.rippleColor)};
505
505
  }
506
506
 
507
507
  .ft-button--label {
@@ -510,13 +510,13 @@
510
510
  white-space: nowrap;
511
511
  text-overflow: ellipsis;
512
512
  display: block;
513
- margin: 0 ${I.iconPadding};
514
- ${(0,D.setVariable)(Jt.fontSize,"1em")};
515
- ${(0,D.setVariable)(Jt.lineHeight,"var(--button-internal-line-height)")};
513
+ margin: 0 ${P.iconPadding};
514
+ ${(0,I.setVariable)(Jt.fontSize,"1em")};
515
+ ${(0,I.setVariable)(Jt.lineHeight,"var(--button-internal-line-height)")};
516
516
  }
517
517
 
518
518
  .ft-button--dense .ft-button--label {
519
- margin: 0 ${sr.iconPadding};
519
+ margin: 0 ${nr.iconPadding};
520
520
  }
521
521
 
522
522
  .ft-button--label.ft-button--label-no-text {
@@ -529,13 +529,13 @@
529
529
  }
530
530
 
531
531
  .ft-button--label[hidden] + [part="icon"] {
532
- margin: 0 calc(${I.horizontalPadding} * -1);
533
- padding: 0 ${I.verticalPadding};
532
+ margin: 0 calc(${P.horizontalPadding} * -1);
533
+ padding: 0 ${P.verticalPadding};
534
534
  }
535
535
 
536
536
  .ft-button--dense .ft-button--label[hidden] + [part="icon"] {
537
- margin: 0 calc(${sr.horizontalPadding} * -1);
538
- padding: 0 ${sr.verticalPadding};
537
+ margin: 0 calc(${nr.horizontalPadding} * -1);
538
+ padding: 0 ${nr.verticalPadding};
539
539
  }
540
540
 
541
541
  .ft-button:not(.ft-button--trailing-icon) [part="label"] {
@@ -543,55 +543,55 @@
543
543
  }
544
544
 
545
545
  ft-loader {
546
- ${(0,D.setVariable)(Oi.size,I.iconSize)};
547
- ${(0,D.setVariable)(Oi.color,"var(--button-internal-color)")};
546
+ ${(0,I.setVariable)(xi.size,P.iconSize)};
547
+ ${(0,I.setVariable)(xi.color,"var(--button-internal-color)")};
548
548
  }
549
- `});var ar,Xr,Is,Y,se,R,nc=l(()=>{"use strict";ar=u(m());Ge();Zl();wr();Im();Xr=u(b()),Is=u(it()),Y=u(B());$s();ge();Ri();se=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 t extends(0,ar.toFtFormComponent)(ar.FtLitElement){get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}constructor(){super(),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1,this.disabled=!1,this.icon=void 0,this.trailingIcon=!1,this.type="button",this.href=void 0,this.target=void 0,this.loading=!1,this.ariaLabel=null,this.ariaHasPopup=null,this.ariaPressed=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.activated=!1,this.hasTextContent=!1,this.addEventListener("click",e=>{var r;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((r=this.form)===null||r===void 0||r.requestSubmit())})}render(){var e,r,i;let o={"ft-button--label":!0,"ft-safari-ellipsis-fix":ar.isSafari,"ft-button--label-no-text":!this.hasTextContent},n=Xr.html`
549
+ `});var ar,Kr,Hn,Z,le,w,cc=l(()=>{"use strict";ar=c(f());Ye();rc();_r();Vm();Kr=c(g()),Hn=c(st()),Z=c(F());zn();ve();Ei();le=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},w=class t extends(0,ar.toFtFormComponent)(ar.FtLitElement){get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}constructor(){super(),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1,this.disabled=!1,this.icon=void 0,this.trailingIcon=!1,this.type="button",this.href=void 0,this.target=void 0,this.loading=!1,this.ariaLabel=null,this.ariaHasPopup=null,this.ariaPressed=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.activated=!1,this.hasTextContent=!1,this.addEventListener("click",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 s={"ft-button--label":!0,"ft-safari-ellipsis-fix":ar.isSafari,"ft-button--label-no-text":!this.hasTextContent},o=Kr.html`
550
550
  <ft-ripple part="ripple"
551
551
  ?disabled=${this.isDisabled()}
552
552
  ?activated=${this.activated}
553
553
  ></ft-ripple>
554
554
  <ft-typography part="label"
555
- variant="${Q.button}"
555
+ variant="${Y.button}"
556
556
  element="span"
557
- class="${(0,Is.classMap)(o)}">
557
+ class="${(0,Hn.classMap)(s)}">
558
558
  <slot></slot>
559
559
  </ft-typography>
560
560
  ${this.resolveIcon()}
561
- `,s=this.href!=null&&this.href.trim().length>0?this.href:void 0;return this.addTooltipIfNeeded(s?Xr.html`
562
- <a href="${s}"
561
+ `,n=this.href!=null&&this.href.trim().length>0?this.href:void 0;return this.addTooltipIfNeeded(n?Kr.html`
562
+ <a href="${n}"
563
563
  target="${(e=this.target)!==null&&e!==void 0?e:"_self"}"
564
564
  part="button"
565
- class="${(0,Is.classMap)(this.buttonClasses)}"
566
- aria-label="${nr((r=this.ariaLabel)!==null&&r!==void 0?r:this.label)}"
565
+ class="${(0,Hn.classMap)(this.buttonClasses)}"
566
+ aria-label="${sr((r=this.ariaLabel)!==null&&r!==void 0?r:this.label)}"
567
567
  ?disabled=${this.isDisabled()}>
568
- ${n}
568
+ ${o}
569
569
  </a>
570
- `:Xr.html`
570
+ `:Kr.html`
571
571
  <button part="button"
572
- class="${(0,Is.classMap)(this.buttonClasses)}"
573
- aria-label="${nr((i=this.ariaLabel)!==null&&i!==void 0?i:this.label)}"
574
- aria-haspopup="${nr(this.ariaHasPopup)}"
575
- aria-pressed="${nr(this.ariaPressed)}"
572
+ class="${(0,Hn.classMap)(this.buttonClasses)}"
573
+ aria-label="${sr((i=this.ariaLabel)!==null&&i!==void 0?i:this.label)}"
574
+ aria-haspopup="${sr(this.ariaHasPopup)}"
575
+ aria-pressed="${sr(this.ariaPressed)}"
576
576
  ?disabled=${this.isDisabled()}>
577
- ${n}
577
+ ${o}
578
578
  </button>
579
- `)}addTooltipIfNeeded(e){return this.label&&this.label.trim().length>0&&(this.forceTooltip||!this.hasTextContent&&!this.hideTooltip)?Xr.html`
579
+ `)}addTooltipIfNeeded(e){return this.label&&this.label.trim().length>0&&(this.forceTooltip||!this.hasTextContent&&!this.hideTooltip)?Kr.html`
580
580
  <ft-tooltip part="tooltip"
581
581
  text="${this.label}"
582
582
  position="${this.tooltipPosition}">
583
583
  ${e}
584
584
  </ft-tooltip>
585
- `:e}resolveIcon(){return this.loading?Xr.html`
586
- <ft-loader part="loader icon"></ft-loader> `:this.icon?Xr.html`
585
+ `:e}resolveIcon(){return this.loading?Kr.html`
586
+ <ft-loader part="loader icon"></ft-loader> `:this.icon?Kr.html`
587
587
  <ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
588
- `:Xr.html`
588
+ `:Kr.html`
589
589
  <slot part="icon" name="icon"></slot>
590
- `}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}showTooltip(){var e;(e=this.tooltip)===null||e===void 0||e.show()}showTemporaryTooltip(e,r){var i;return(i=this.tooltip)===null||i===void 0?void 0:i.showTemporaryText(e,r)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}isDisabled(){return this.disabled||this.loading}contentAvailableCallback(e){super.contentAvailableCallback(e),this.labelContainer&&t.labelsObserver.observe(this.labelContainer)}disconnectedCallback(){super.disconnectedCallback(),this.labelContainer&&t.labelsObserver.unobserve(this.labelContainer)}};R.elementDefinitions={"ft-ripple":L,"ft-tooltip":ve,"ft-icon":ne,"ft-loader":wi,"ft-typography":j};R.styles=[ar.safariEllipsisFix,Bm,ar.noTextSelect];R.labelsObserver=new IntersectionObserver(t=>{for(let e of t){let r=e.target.getRootNode();r.host?r.host.hasTextContent=e.boundingClientRect.width>0:R.labelsObserver.unobserve(e.target)}});se([(0,Y.property)({type:Boolean})],R.prototype,"primary",void 0);se([(0,Y.property)({type:Boolean})],R.prototype,"outlined",void 0);se([(0,Y.property)({type:Boolean})],R.prototype,"dense",void 0);se([(0,Y.property)({type:Boolean})],R.prototype,"round",void 0);se([(0,Y.property)({type:Boolean})],R.prototype,"disabled",void 0);se([(0,Y.property)()],R.prototype,"icon",void 0);se([(0,Y.property)()],R.prototype,"iconVariant",void 0);se([(0,Y.property)({type:Boolean})],R.prototype,"trailingIcon",void 0);se([(0,Y.property)()],R.prototype,"label",void 0);se([(0,Y.property)()],R.prototype,"type",void 0);se([(0,Y.property)()],R.prototype,"href",void 0);se([(0,Y.property)()],R.prototype,"target",void 0);se([(0,Y.property)({type:Boolean})],R.prototype,"loading",void 0);se([(0,Y.property)({attribute:"aria-label"})],R.prototype,"ariaLabel",void 0);se([(0,Y.property)()],R.prototype,"ariaHasPopup",void 0);se([(0,Y.property)({attribute:"aria-pressed"})],R.prototype,"ariaPressed",void 0);se([(0,Y.property)()],R.prototype,"tooltipPosition",void 0);se([(0,Y.property)({type:Boolean})],R.prototype,"hideTooltip",void 0);se([(0,Y.property)({type:Boolean})],R.prototype,"forceTooltip",void 0);se([(0,Y.property)({type:Boolean})],R.prototype,"activated",void 0);se([(0,Y.query)(".ft-button")],R.prototype,"button",void 0);se([(0,Y.query)(".ft-button--label")],R.prototype,"labelContainer",void 0);se([(0,Y.state)()],R.prototype,"hasTextContent",void 0);se([(0,Y.query)(".ft-button--label slot")],R.prototype,"slottedContent",void 0);se([(0,Y.query)("[part=tooltip]")],R.prototype,"tooltip",void 0)});var Um=l(()=>{"use strict"});var Hm,Vm=l(()=>{"use strict";nc();Hm={"ft-button":R}});var jm,zm=l(()=>{"use strict";jm=u(m());Vm();(0,jm.customElements)(Hm)});var qt=l(()=>{"use strict";nc();Ri();Um();zm()});var qm,Z,te,sc,pn=l(()=>{"use strict";qm=u(b()),Z=u(m());qt();te={height:Z.FtCssVariableFactory.create("--ft-search-input-height","","SIZE","38px"),borderRadius:Z.FtCssVariableFactory.extend("--ft-search-input-border-radius","",Z.designSystemVariables.borderRadiusS),desktopFiltersHeight:Z.FtCssVariableFactory.create("--ft-search-input-desktop-filters-height","","SIZE","350px"),floatingZIndex:Z.FtCssVariableFactory.create("--ft-search-input-floating-components-z-index","","NUMBER","3"),colorSurface:Z.FtCssVariableFactory.extend("--ft-search-input-background-color","",Z.designSystemVariables.colorSurface),colorOnSurface:Z.FtCssVariableFactory.extend("--ft-search-input-color","",Z.designSystemVariables.colorOnSurface),colorOnSurfaceMedium:Z.FtCssVariableFactory.extend("--ft-search-input-placeholder-color","",Z.designSystemVariables.colorOnSurfaceMedium),colorOutline:Z.FtCssVariableFactory.extend("--ft-search-input-outline-color","",Z.designSystemVariables.colorOutline),elevation02:Z.FtCssVariableFactory.extend("--ft-search-input-elevation","",Z.designSystemVariables.elevation02),focusOutlineColor:Z.FtCssVariableFactory.extend("--ft-search-input-focused-outline-color","",Z.designSystemVariables.colorPrimary),buttonColor:Z.FtCssVariableFactory.extend("--ft-search-input-button-color","",Z.designSystemVariables.colorPrimary),buttonRippleColor:Z.FtCssVariableFactory.extend("--ft-search-input-button-ripple-color","",Z.designSystemVariables.colorPrimary)},sc=qm.css`
590
+ `}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}showTooltip(){var e;(e=this.tooltip)===null||e===void 0||e.show()}showTemporaryTooltip(e,r){var i;return(i=this.tooltip)===null||i===void 0?void 0:i.showTemporaryText(e,r)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}isDisabled(){return this.disabled||this.loading}contentAvailableCallback(e){super.contentAvailableCallback(e),this.labelContainer&&t.labelsObserver.observe(this.labelContainer)}disconnectedCallback(){super.disconnectedCallback(),this.labelContainer&&t.labelsObserver.unobserve(this.labelContainer)}};w.elementDefinitions={"ft-ripple":k,"ft-tooltip":xe,"ft-icon":ae,"ft-loader":Si,"ft-typography":z};w.styles=[ar.safariEllipsisFix,Km,ar.noTextSelect];w.labelsObserver=new IntersectionObserver(t=>{for(let e of t){let r=e.target.getRootNode();r.host?r.host.hasTextContent=e.boundingClientRect.width>0:w.labelsObserver.unobserve(e.target)}});le([(0,Z.property)({type:Boolean})],w.prototype,"primary",void 0);le([(0,Z.property)({type:Boolean})],w.prototype,"outlined",void 0);le([(0,Z.property)({type:Boolean})],w.prototype,"dense",void 0);le([(0,Z.property)({type:Boolean})],w.prototype,"round",void 0);le([(0,Z.property)({type:Boolean})],w.prototype,"disabled",void 0);le([(0,Z.property)()],w.prototype,"icon",void 0);le([(0,Z.property)()],w.prototype,"iconVariant",void 0);le([(0,Z.property)({type:Boolean})],w.prototype,"trailingIcon",void 0);le([(0,Z.property)()],w.prototype,"label",void 0);le([(0,Z.property)()],w.prototype,"type",void 0);le([(0,Z.property)()],w.prototype,"href",void 0);le([(0,Z.property)()],w.prototype,"target",void 0);le([(0,Z.property)({type:Boolean})],w.prototype,"loading",void 0);le([(0,Z.property)({attribute:"aria-label"})],w.prototype,"ariaLabel",void 0);le([(0,Z.property)()],w.prototype,"ariaHasPopup",void 0);le([(0,Z.property)({attribute:"aria-pressed"})],w.prototype,"ariaPressed",void 0);le([(0,Z.property)()],w.prototype,"tooltipPosition",void 0);le([(0,Z.property)({type:Boolean})],w.prototype,"hideTooltip",void 0);le([(0,Z.property)({type:Boolean})],w.prototype,"forceTooltip",void 0);le([(0,Z.property)({type:Boolean})],w.prototype,"activated",void 0);le([(0,Z.query)(".ft-button")],w.prototype,"button",void 0);le([(0,Z.query)(".ft-button--label")],w.prototype,"labelContainer",void 0);le([(0,Z.state)()],w.prototype,"hasTextContent",void 0);le([(0,Z.query)(".ft-button--label slot")],w.prototype,"slottedContent",void 0);le([(0,Z.query)("[part=tooltip]")],w.prototype,"tooltip",void 0)});var Wm=l(()=>{"use strict"});var Gm,Qm=l(()=>{"use strict";cc();Gm={"ft-button":w}});var Ym,Xm=l(()=>{"use strict";Ym=c(f());Qm();(0,Ym.customElements)(Gm)});var qt=l(()=>{"use strict";cc();Ei();Wm();Xm()});var Zm,J,re,uc,ns=l(()=>{"use strict";Zm=c(g()),J=c(f());qt();re={height:J.FtCssVariableFactory.create("--ft-search-input-height","","SIZE","38px"),borderRadius:J.FtCssVariableFactory.extend("--ft-search-input-border-radius","",J.designSystemVariables.borderRadiusS),desktopFiltersHeight:J.FtCssVariableFactory.create("--ft-search-input-desktop-filters-height","","SIZE","350px"),floatingZIndex:J.FtCssVariableFactory.create("--ft-search-input-floating-components-z-index","","NUMBER","3"),colorSurface:J.FtCssVariableFactory.extend("--ft-search-input-background-color","",J.designSystemVariables.colorSurface),colorOnSurface:J.FtCssVariableFactory.extend("--ft-search-input-color","",J.designSystemVariables.colorOnSurface),colorOnSurfaceMedium:J.FtCssVariableFactory.extend("--ft-search-input-placeholder-color","",J.designSystemVariables.colorOnSurfaceMedium),colorOutline:J.FtCssVariableFactory.extend("--ft-search-input-outline-color","",J.designSystemVariables.colorOutline),elevation02:J.FtCssVariableFactory.extend("--ft-search-input-elevation","",J.designSystemVariables.elevation02),focusOutlineColor:J.FtCssVariableFactory.extend("--ft-search-input-focused-outline-color","",J.designSystemVariables.colorPrimary),buttonColor:J.FtCssVariableFactory.extend("--ft-search-input-button-color","",J.designSystemVariables.colorPrimary),buttonRippleColor:J.FtCssVariableFactory.extend("--ft-search-input-button-ripple-color","",J.designSystemVariables.colorPrimary)},uc=Zm.css`
591
591
  * {
592
592
  box-sizing: border-box;
593
- ${(0,Z.setVariable)(I.color,te.buttonColor)};
594
- ${(0,Z.setVariable)(I.rippleColor,te.buttonRippleColor)};
593
+ ${(0,J.setVariable)(P.color,re.buttonColor)};
594
+ ${(0,J.setVariable)(P.rippleColor,re.buttonRippleColor)};
595
595
  }
596
596
 
597
597
  .ft-search-input {
@@ -599,11 +599,11 @@
599
599
  display: flex;
600
600
  flex-direction: row;
601
601
  align-items: center;
602
- height: ${te.height};
602
+ height: ${re.height};
603
603
 
604
- background: ${te.colorSurface};
605
- border: 1px solid ${te.colorOutline};
606
- border-radius: ${te.borderRadius};
604
+ background: ${re.colorSurface};
605
+ border: 1px solid ${re.colorOutline};
606
+ border-radius: ${re.borderRadius};
607
607
  }
608
608
 
609
609
  .ft-search-input--input-container {
@@ -618,11 +618,11 @@
618
618
  width: 100%;
619
619
  display: grid;
620
620
  padding: 0 8px;
621
- border-radius: ${te.borderRadius};
621
+ border-radius: ${re.borderRadius};
622
622
  }
623
623
 
624
624
  .ft-search-input--input-container:focus-within .ft-search-input--input-outline {
625
- outline: 2px solid ${te.focusOutlineColor};
625
+ outline: 2px solid ${re.focusOutlineColor};
626
626
  }
627
627
 
628
628
  .ft-search-input--input {
@@ -630,12 +630,12 @@
630
630
  width: 100%;
631
631
  border: none;
632
632
  background-color: transparent;
633
- color: ${te.colorOnSurface};
633
+ color: ${re.colorOnSurface};
634
634
  outline: none;
635
635
  }
636
636
 
637
637
  .ft-search-input--input::placeholder {
638
- color: ${te.colorOnSurfaceMedium};
638
+ color: ${re.colorOnSurfaceMedium};
639
639
  }
640
640
 
641
641
  .ft-search-input--actions {
@@ -649,7 +649,7 @@
649
649
  .ft-search-input > ft-button,
650
650
  .ft-search-input--actions ft-button {
651
651
  flex-shrink: 0;
652
- ${(0,Z.setVariable)(I.backgroundColor,"transparent")};
652
+ ${(0,J.setVariable)(P.backgroundColor,"transparent")};
653
653
  }
654
654
 
655
655
  .ft-search-input .ft-search-input--launch-search,
@@ -659,17 +659,17 @@
659
659
 
660
660
  .ft-search-input--separator {
661
661
  height: 20px;
662
- border-right: 1px solid ${te.colorOutline};
662
+ border-right: 1px solid ${re.colorOutline};
663
663
  }
664
- `});var Km,Wm,Ds,ac,Ms=l(()=>{"use strict";Km=u(b()),Wm=u(m()),Ds={highlightBackgroundColor:Wm.FtCssVariableFactory.create("--ft-sra-highlight-background-color","","COLOR","transparent")},ac=Km.css`
664
+ `});var Jm,eg,jn,dc,qn=l(()=>{"use strict";Jm=c(g()),eg=c(f()),jn={highlightBackgroundColor:eg.FtCssVariableFactory.create("--ft-sra-highlight-background-color","","COLOR","transparent")},dc=Jm.css`
665
665
  .kwicmatch {
666
666
  font-weight: 700;
667
- background-color: ${Ds.highlightBackgroundColor};
667
+ background-color: ${jn.highlightBackgroundColor};
668
668
  }
669
- `});var Gm,Qm,Ns,lc,Fs=l(()=>{"use strict";Gm=u(b()),Qm=u(m()),Ns={highlightBackgroundColor:Qm.FtCssVariableFactory.create("--ft-srt-highlight-background-color","","COLOR","transparent")},lc=Gm.css`
669
+ `});var tg,rg,Kn,pc,Wn=l(()=>{"use strict";tg=c(g()),rg=c(f()),Kn={highlightBackgroundColor:rg.FtCssVariableFactory.create("--ft-srt-highlight-background-color","","COLOR","transparent")},pc=tg.css`
670
670
  .kwicmatch {
671
671
  font-weight: 700;
672
- background-color: ${Ns.highlightBackgroundColor};
672
+ background-color: ${Kn.highlightBackgroundColor};
673
673
  }
674
674
 
675
675
  a {
@@ -680,11 +680,11 @@
680
680
  a:focus {
681
681
  outline: revert;
682
682
  }
683
- `});function tg(t){var e;return((e=(0,dn.accessResult)(t))===null||e===void 0?void 0:e.openMode)===cs.EXTERNAL}function Hs(t){return tg(t)?(0,dn.accessResult)(t).originUrl:(0,dn.accessResultUrl)(t)}function rg(t,e){return nr(e&&tg(t)?"_blank":void 0)}var dn,dc=l(()=>{"use strict";bi();$s();dn=u(m())});var yo,bo,Vs,js,zs,fn,mn=l(()=>{"use strict";yo=class extends CustomEvent{constructor(e,r){super("ft-search-result-click",{detail:{result:e,rank:r},bubbles:!0,composed:!0})}},bo=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,composed:!0,bubbles:!0})}},js=class extends CustomEvent{constructor(e){super("ft-search-request-change",{detail:e,composed:!0,bubbles:!0})}},zs=class extends CustomEvent{constructor(e,r,i){super("ft-search-results-change",{detail:{request:e,paging:r,spellcheck:i},composed:!0,bubbles:!0})}},fn=class t extends Event{constructor(){super(t.eventName)}};fn.eventName="search-context-clear-all-filters"});var ag,t0,fc,mc=l(()=>{"use strict";ag=u(b()),t0={},fc=ag.css`
684
- `});var lg=l(()=>{"use strict"});var Kt,xo=l(()=>{"use strict";(function(t){t.CLUSTERED_SEARCH="CLUSTERED_SEARCH"})(Kt||(Kt={}))});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 qs,dg=l(()=>{"use strict";Ht();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,hg,fg,i0,So,gc=l(()=>{"use strict";xo();Re=u(m());pg();bi();dg();mn();Ht();hg=t=>t.request.virtualField===ao.TITLE_ONLY&&t.request.scope===lo.DOCUMENTS,fg=t=>t.request.keywordMatch==ls.MANDATORY,i0=20,So=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==Kt.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(Er.eventName,this.loadTaruqaTemplate)}removeListeners(){window.removeEventListener("storage",this.onStorageEvent),O.removeEventListener(Er.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=en.store.getState().localesConfiguration)===null||i===void 0)&&i.searchLanguageSetsUiLanguage)&&e&&en.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:ao.TITLE_ONLY,scope:lo.DOCUMENTS},!0):this.updateSearchRequest({virtualField:ao.EVERYWHERE,scope:lo.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 fn)}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(Kt.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 Co,yc,mg,bc,gg,vc,o0,n0,$t,_i=l(()=>{"use strict";Co=u(m()),yc=u(B());xo();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,Co.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:Co.hasChanged})],e.prototype,"neededSearchRequests",void 0),e}),$t=class extends n0(Co.FtLitElementRedux){}});function gn(t){return t.filter(e=>e.key==="ft:lastEdition").filter(e=>!e.valueFilter).map(e=>e.dateFilter?e.dateFilter.type:"CUSTOM").shift()}function vn(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 Ws,Ks,vg=l(()=>{"use strict";Ws=u(m());bi();Ht();xc();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 ys,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:gn(e.metadataFilters),facets:e.metadataFilters.map(n=>vn(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==ir.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:gn(i.metadataFilters),facets:i.metadataFilters.map(s=>vn(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==ir.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:gn(i.metadataFilters),facets:i.metadataFilters.map(s=>vn(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 ir.MAP:return{id:e.map.mapId,title:e.map.title,type:Wr.STRUCTURED_DOCUMENT,metadata:e.map.metadata};case ir.TOPIC:return{id:e.topic.mapId,title:e.topic.mapTitle,type:Wr.STRUCTURED_DOCUMENT,metadata:e.topic.metadata};case ir.DOCUMENT:return{id:e.document.documentId,title:e.document.title,type:Wr.UNSTRUCTURED_DOCUMENT,metadata:e.document.metadata,mimeType:e.document.mimeType};case ir.HTML_PACKAGE:return{id:e.htmlPackage.packageId,title:e.htmlPackage.title,type:Wr.HTML_PACKAGE,metadata:e.htmlPackage.metadata};case ir.HTML_PACKAGE_PAGE:return{id:e.htmlPackagePage.packageId,title:e.htmlPackagePage.title,type:Wr.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 yg,lr,Ze,Te,re,Sc=l(()=>{"use strict";yg=u(b()),lr=u(B()),Ze=u(m());mc();_i();Ht();vg();mn();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},re=class extends Ze.FtLitElementRedux{get stateManager(){if(this._stateManager==null){let e=this.searchServiceProvider?this.searchServiceProvider():void 0;this._stateManager=So.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 yg.html`
683
+ `});function lg(t){var e;return((e=(0,as.accessResult)(t))===null||e===void 0?void 0:e.openMode)===bn.EXTERNAL}function Yn(t){return lg(t)?(0,as.accessResult)(t).originUrl:(0,as.accessResultUrl)(t)}function cg(t,e){return sr(e&&lg(t)?"_blank":void 0)}var as,gc=l(()=>{"use strict";fi();zn();as=c(f())});var co,uo,Xn,Zn,Jn,cs,us=l(()=>{"use strict";co=class extends CustomEvent{constructor(e,r){super("ft-search-result-click",{detail:{result:e,rank:r},bubbles:!0,composed:!0})}},uo=class extends CustomEvent{constructor(e,r){super("ft-search-result-open-context-menu",{detail:{result:e,rank:r},bubbles:!0,composed:!0})}},Xn=class extends CustomEvent{constructor(e){super("ft-search-load-error",{detail:e,composed:!0,bubbles:!0})}},Zn=class extends CustomEvent{constructor(e){super("ft-search-request-change",{detail:e,composed:!0,bubbles:!0})}},Jn=class extends CustomEvent{constructor(e,r,i){super("ft-search-results-change",{detail:{request:e,paging:r,spellcheck:i},composed:!0,bubbles:!0})}},cs=class t extends Event{constructor(){super(t.eventName)}};cs.eventName="search-context-clear-all-filters"});var fg,SE,bc,vc=l(()=>{"use strict";fg=c(g()),SE={},bc=fg.css`
684
+ `});var mg=l(()=>{"use strict"});var Kt,po=l(()=>{"use strict";(function(t){t.CLUSTERED_SEARCH="CLUSTERED_SEARCH"})(Kt||(Kt={}))});var gg,EE,yg,bg=l(()=>{"use strict";gg=c(f()),EE={setRequest:(t,e)=>{t.request=e.payload}},yg=t=>gg.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:EE})});var ea,vg=l(()=>{"use strict";Vt();ea=class extends qe{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,s)=>i.id.localeCompare(s.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,s)=>i.localeCompare(s))}}).sort((r,i)=>r.key.localeCompare(i.key))}}});var Re,xg,Sg,CE,ho,xc=l(()=>{"use strict";po();Re=c(f());bg();fi();vg();us();Vt();xg=t=>t.request.virtualField===Ji.TITLE_ONLY&&t.request.scope===eo.DOCUMENTS,Sg=t=>t.request.keywordMatch==yn.MANDATORY,CE=20,ho=class t extends Re.FtStateManager{static build(e,r){return new t(yg(e.trim()||"context"),r)}constructor(e,r){super(),this.store=e,this.ignoreEmptyQuery=!1,this.canUpdateUiLocale=!1,this.openExternalDocumentInNewTab=!1,this.onNewNeededRequest=i=>{i==Kt.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 s;if(vn(S.getState().session,ge.DEBUG_USER)){let o=JSON.parse((i=window.localStorage.getItem(this.taruqaConfigStorageKey))!==null&&i!==void 0?i:"{}");s=o.overrideEnabled?o.template:void 0}this.updateSearchRequest({taruqaTemplateOverride:s,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(s=>({id:s}))}),this.suggestDebouncer=new Re.Debouncer(1e3),this.launchSuggest=i=>this.suggestDebouncer.run(()=>this.fetchSuggestData(i??this.buildSuggestRequest(this.store.getState()))),this.buildSuggestRequest=i=>{var s;return{input:i.liveQuery,metadataFilters:i.request.metadataFilters,sort:(s=i.request.sort)!==null&&s!==void 0?s:[],sortId:i.request.sortId,contentLocale:i.request.contentLocale,scope:i.request.scope,keywordMatch:i.request.keywordMatch}},this.service=r??new ea,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),S.addEventListener(Ar.eventName,this.loadTaruqaTemplate)}removeListeners(){window.removeEventListener("storage",this.onStorageEvent),S.removeEventListener(Ar.eventName,this.loadTaruqaTemplate)}get recentQueriesStorageKey(){return S.getState().tenantId+"-ft-recent-queries"}get taruqaConfigStorageKey(){return S.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 s=(r=this.store.getState().locales)!==null&&r!==void 0?r:[],o=this.store.getState().request.contentLocale;if(e!=o){if(s.length>0){let n=a=>s.some(u=>u.lang==a);n(e)||(e=n(o)?o:s[0].lang)}this.updateSearchRequest({contentLocale:e,metadataFilters:[]},!0),this.canUpdateUiLocale&&(!((i=Yo.store.getState().localesConfiguration)===null||i===void 0)&&i.searchLanguageSetsUiLanguage)&&e&&Yo.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 s=r?{changedByConfiguration:!0}:{};if(e==null||this.sortOptions.length==0)return this.updateSearchRequest({sortId:e,...s},!0),e;let o=(i=this.sortOptions.find(n=>n.id==e))!==null&&i!==void 0?i:this.sortOptions[0];return this.updateSearchRequest({sortId:o.id,...s},!0),o.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:Ji.TITLE_ONLY,scope:eo.DOCUMENTS},!0):this.updateSearchRequest({virtualField:Ji.EVERYWHERE,scope:eo.DEFAULT},!0)}setKeywordMatch(e){this.updateSearchRequest({keywordMatch:e},!0)}setVirtualField(e){this.updateSearchRequest({virtualField:e},!0)}get searchInDocumentTitlesOnly(){return xg(this.store.getState())}get keywordMatch(){return Sg(this.store.getState())}clearAllFilters(){this.setFilters([]),this.store.dispatchEvent(new cs)}addFacet(e){this.facetIds=[...this.facetIds,e]}replaceFacet(e,r){let i=this.facetIds.filter(s=>s!=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(s=>({id:s}));this.updateSearchRequest({facets:i})}setFilter(e,r){this.setValueFilter(e,r)}setValueFilter(e,r){let i=this.store.getState().request.metadataFilters,s={key:e,valueFilter:{values:r,negative:!1}},o=[...i.filter(n=>!n.valueFilter),...i.filter(n=>n.valueFilter&&n.key!==s.key),s];this.setFilters(o)}setDateFilter(e,r){let i=this.store.getState().request.metadataFilters,s={key:e,dateFilter:{type:r}},o=[...i.filter(n=>!n.dateFilter),...i.filter(n=>n.dateFilter&&n.key!==s.key),s];this.setFilters(o)}removeDateFilter(e){let r=this.store.getState().request.metadataFilters,i=[...r.filter(s=>!s.dateFilter),...r.filter(s=>s.dateFilter&&s.key!==e)];this.setFilters(i)}setRangeFilter(e,r,i){let s=this.store.getState().request.metadataFilters,o={key:e,rangeFilter:{from:r,to:i}},n=[...s.filter(a=>!a.rangeFilter),...s.filter(a=>a.rangeFilter&&a.key!==o.key),o];this.setFilters(n)}removeRangeFilter(e){let r=this.store.getState().request.metadataFilters,i=[...r.filter(s=>!s.rangeFilter),...r.filter(s=>s.rangeFilter&&s.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(s=>s.toLowerCase()!==r).slice(0,CE-1);i.unshift(e),this.setRecentQueries(i)}removeRecentQuery(e){let r=e.trim().toLowerCase(),i=this.store.getState().recentQueries,s=i.filter(o=>o.toLowerCase()!==r);i.length!==s.length&&this.setRecentQueries(s)}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,s,o,n;if((r=this.cancelableSearch)===null||r===void 0||r.cancel(),!!this.isRequestNeeded(Kt.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 u=((s=this.store.getState().results)!==null&&s!==void 0?s:[]).concat(a.results);this.store.actions.results(u),this.store.commands.clear(/^focus-result-/),this.store.commands.add({type:`focus-result-${(a.paging.currentPage-1)*((o=e.paging.perPage)!==null&&o!==void 0?o:20)+1}`})}this.store.actions.paging(a.paging)}}catch(a){a instanceof Re.CanceledPromiseError||(console.error(a),(n=this.errorHandler)===null||n===void 0||n.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 fo,Ec,Eg,Cc,Cg,Sc,AE,wE,Pt,Ai=l(()=>{"use strict";fo=c(f()),Ec=c(F());po();xc();Eg=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},Cc=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},Cg=Symbol("registerInterval"),Sc=Symbol("registerAttempts"),AE=40,wE=(0,fo.applyMixinOnce)(Symbol("toFtSearchComponent"),function(t){class e extends t{constructor(){super(...arguments),this.neededSearchRequests=[]}willUpdate(i){var s,o,n;super.willUpdate(i),i.has("neededSearchRequests")&&((s=this.stateManager)===null||s===void 0||s.unregisterComponent(this,(o=i.get("neededSearchRequests"))!==null&&o!==void 0?o:[]),(n=this.stateManager)===null||n===void 0||n.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[Sc]=0,this.tryToRegisterToContext(),this[Cg]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[Sc]>AE?window.clearInterval(this[Cg]):(this[Sc]++,this.dispatchEvent(new Cc))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return Eg([(0,Ec.state)()],e.prototype,"stateManager",void 0),Eg([(0,Ec.state)({hasChanged:fo.hasChanged})],e.prototype,"neededSearchRequests",void 0),e}),Pt=class extends wE(fo.FtLitElementRedux){}});function ds(t){return t.filter(e=>e.key==="ft:lastEdition").filter(e=>!e.valueFilter).map(e=>e.dateFilter?e.dateFilter.type:"CUSTOM").shift()}function ps(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 Ac=l(()=>{"use strict"});var ra,ta,Ag=l(()=>{"use strict";ra=c(f());fi();Vt();Ac();ta=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,s])=>{if(!this.canSendEvent()||!i||!s)return;let o=this.store.getState().request;this.document==null?this.sendKhubSearchEvent(o,i,s):this.sendDocumentSearchEvent(o,i,s)},this.eventsService=r??new _n,this.resultsWatcher=(0,ra.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}=S.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}=S.getState();return this.enableAnalyticsEvents&&!e}sendKhubSearchEvent(e,r,i){let s={offline:!1,appVersion:this.appVersion,appName:this.appName,name:hi.KHUB__SEARCH,searchResponse:{autocorrect:this.store.getState().spellcheck!=null,nbResults:i.totalClustersCount},searchQuery:{terms:e.query,searchType:e.virtualField,lastUpdate:ds(e.metadataFilters),facets:e.metadataFilters.map(o=>ps(o))}};this.eventsService.sendKhubSearchEvent(s)}sendDocumentSearchEvent(e,r,i){if(e.metadataFilters.find(o=>{var n;return o.key==="ft:publicationId"&&((n=o.valueFilter)===null||n===void 0?void 0:n.values[0])===this.document.id})!==void 0){let o={offline:!1,appVersion:this.appVersion,appName:this.appName,name:hi.DOCUMENT__SEARCH,searchResponse:{autocorrect:this.store.getState().spellcheck!=null,nbResults:i.totalClustersCount},searchQuery:{terms:e.query},document:this.document};this.eventsService.sendDocumentSearchEvent(o)}}sendResultClickedEvent(e,r){if(!this.canSendEvent())return;let i=this.store.getState().request,s;e.type==ir.TOPIC&&(s={tocId:e.topic.tocId,title:e.topic.title});let o={offline:!1,appVersion:this.appVersion,appName:this.appName,name:hi.SEARCH_PAGE__SELECT,searchQuery:{terms:i.query,searchType:i.virtualField,lastUpdate:ds(i.metadataFilters),facets:i.metadataFilters.map(n=>ps(n))},searchResult:{rank:r,type:e.type,document:this.convertDocument(e),topic:s},externalLink:this.convertExternalLink(e)};this.eventsService.sendSearchPageSelectEvent(o)}sendResultContextMenuOpenedEvent(e,r){if(!this.canSendEvent())return;let i=this.store.getState().request,s;e.type==ir.TOPIC&&(s={tocId:e.topic.tocId,title:e.topic.title});let o={offline:!1,appVersion:this.appVersion,appName:this.appName,name:hi.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU,searchQuery:{terms:i.query,searchType:i.virtualField,lastUpdate:ds(i.metadataFilters),facets:i.metadataFilters.map(n=>ps(n))},searchResult:{rank:r,type:e.type,document:this.convertDocument(e),topic:s},externalLink:this.convertExternalLink(e)};this.eventsService.sendSearchResultOpenContextMenuEvent(o)}convertDocument(e){switch(e.type){case ir.MAP:return{id:e.map.mapId,title:e.map.title,type:Hr.STRUCTURED_DOCUMENT,metadata:e.map.metadata};case ir.TOPIC:return{id:e.topic.mapId,title:e.topic.mapTitle,type:Hr.STRUCTURED_DOCUMENT,metadata:e.topic.metadata};case ir.DOCUMENT:return{id:e.document.documentId,title:e.document.title,type:Hr.UNSTRUCTURED_DOCUMENT,metadata:e.document.metadata,mimeType:e.document.mimeType};case ir.HTML_PACKAGE:return{id:e.htmlPackage.packageId,title:e.htmlPackage.title,type:Hr.HTML_PACKAGE,metadata:e.htmlPackage.metadata};case ir.HTML_PACKAGE_PAGE:return{id:e.htmlPackagePage.packageId,title:e.htmlPackagePage.title,type:Hr.HTML_PACKAGE,metadata:e.htmlPackagePage.metadata};default:throw new TypeError("Unknown type "+e.type)}}convertExternalLink(e){var r;return(r=(0,ra.accessResult)(e))===null||r===void 0?void 0:r.originUrl}}});var wg,lr,et,Te,ie,wc=l(()=>{"use strict";wg=c(g()),lr=c(F()),et=c(f());vc();Ai();Vt();Ag();us();Te=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},ie=class extends et.FtLitElementRedux{get stateManager(){if(this._stateManager==null){let e=this.searchServiceProvider?this.searchServiceProvider():void 0;this._stateManager=ho.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 ta(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(S)}render(){return wg.html`
685
685
  <slot @register-ft-search-component=${this.registerComponent} @ft-search-result-click=${this.onResultClicked}
686
686
  @ft-search-result-open-context-menu=${this.onResultContextMenuOpened}></slot>
687
- `}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))}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)}};re.elementDefinitions={};re.styles=fc;Te([(0,Ze.redux)({store:O.name})],re.prototype,"session",void 0);Te([(0,lr.property)()],re.prototype,"query",void 0);Te([(0,lr.property)()],re.prototype,"contentLocale",void 0);Te([(0,Ze.numberProperty)()],re.prototype,"pageSize",void 0);Te([(0,lr.property)({type:Boolean})],re.prototype,"searchInDocumentTitlesOnly",void 0);Te([(0,lr.property)()],re.prototype,"keywordMatch",void 0);Te([(0,lr.property)()],re.prototype,"scope",void 0);Te([(0,lr.property)()],re.prototype,"virtualField",void 0);Te([(0,lr.property)({type:Boolean})],re.prototype,"ignoreEmptyQuery",void 0);Te([(0,Ze.redux)({store:O.name})],re.prototype,"openExternalDocumentInNewTab",void 0);Te([(0,Ze.jsonProperty)([])],re.prototype,"filters",void 0);Te([(0,lr.property)()],re.prototype,"sortId",void 0);Te([(0,Ze.jsonProperty)([])],re.prototype,"sort",void 0);Te([(0,Ze.jsonProperty)({})],re.prototype,"otherQueryParams",void 0);Te([(0,Ze.redux)({store:"search"})],re.prototype,"request",void 0);Te([(0,Ze.redux)({store:"search"})],re.prototype,"paging",void 0);Te([(0,Ze.redux)({store:"search",selector:t=>t.spellcheck})],re.prototype,"spellcheckAutocorrect",void 0);Te([(0,Ze.redux)({store:O.name,selector:t=>t.apiIntegrationIdentifier!==void 0&&t.apiIntegrationAppVersion!==void 0})],re.prototype,"_appIntegrationInfoReady",void 0);Te([(0,lr.property)({attribute:!1})],re.prototype,"searchServiceProvider",void 0)});var bg,xg=l(()=>{"use strict";Sc();bg={"ft-search-context":re}});var Sg,Cg=l(()=>{"use strict";Sg=u(m());xg();(0,Sg.customElements)(bg)});var Eg={};si(Eg,{FtSearchContext:()=>re,FtSearchContextCssVariables:()=>t0,FtSearchStateManager:()=>So,convertMetadataFilterToAnalyticsFacet:()=>vn,getAnalyticsLastUpdate:()=>gn,keywordMatchSelector:()=>fg,searchInDocumentTitlesOnlySelector:()=>hg,styles:()=>fc});var Ag=l(()=>{"use strict";mc();lg();Sc();gc();xc();Cg()});var Og=l(()=>{"use strict"});var Rr,Cc=l(()=>{"use strict";kt();Rr=or.build("designedSearchInput")});var Tr=Hi((z_,wg)=>{wg.exports=ftGlobals.litRepeat});var It,Ec=l(()=>{"use strict";(function(t){t.S="S",t.M="M",t.L="L",t.XL="XL",t.XXL="XXL"})(It||(It={}))});var Rg,Tg,Ac=l(()=>{"use strict";Rg=u(b()),Tg=Rg.css`
687
+ `}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 Zn(this.request)),e.has("paging")&&this.paging!==void 0&&this.dispatchEvent(new Jn(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 Xn(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)}};ie.elementDefinitions={};ie.styles=bc;Te([(0,et.redux)({store:S.name})],ie.prototype,"session",void 0);Te([(0,lr.property)()],ie.prototype,"query",void 0);Te([(0,lr.property)()],ie.prototype,"contentLocale",void 0);Te([(0,et.numberProperty)()],ie.prototype,"pageSize",void 0);Te([(0,lr.property)({type:Boolean})],ie.prototype,"searchInDocumentTitlesOnly",void 0);Te([(0,lr.property)()],ie.prototype,"keywordMatch",void 0);Te([(0,lr.property)()],ie.prototype,"scope",void 0);Te([(0,lr.property)()],ie.prototype,"virtualField",void 0);Te([(0,lr.property)({type:Boolean})],ie.prototype,"ignoreEmptyQuery",void 0);Te([(0,et.redux)({store:S.name})],ie.prototype,"openExternalDocumentInNewTab",void 0);Te([(0,et.jsonProperty)([])],ie.prototype,"filters",void 0);Te([(0,lr.property)()],ie.prototype,"sortId",void 0);Te([(0,et.jsonProperty)([])],ie.prototype,"sort",void 0);Te([(0,et.jsonProperty)({})],ie.prototype,"otherQueryParams",void 0);Te([(0,et.redux)({store:"search"})],ie.prototype,"request",void 0);Te([(0,et.redux)({store:"search"})],ie.prototype,"paging",void 0);Te([(0,et.redux)({store:"search",selector:t=>t.spellcheck})],ie.prototype,"spellcheckAutocorrect",void 0);Te([(0,et.redux)({store:S.name,selector:t=>t.apiIntegrationIdentifier!==void 0&&t.apiIntegrationAppVersion!==void 0})],ie.prototype,"_appIntegrationInfoReady",void 0);Te([(0,lr.property)({attribute:!1})],ie.prototype,"searchServiceProvider",void 0)});var Og,_g=l(()=>{"use strict";wc();Og={"ft-search-context":ie}});var Rg,Tg=l(()=>{"use strict";Rg=c(f());_g();(0,Rg.customElements)(Og)});var kg={};ri(kg,{FtSearchContext:()=>ie,FtSearchContextCssVariables:()=>SE,FtSearchStateManager:()=>ho,convertMetadataFilterToAnalyticsFacet:()=>ps,getAnalyticsLastUpdate:()=>ds,keywordMatchSelector:()=>Sg,searchInDocumentTitlesOnlySelector:()=>xg,styles:()=>bc});var Lg=l(()=>{"use strict";vc();mg();wc();xc();Ac();Tg()});var $g=l(()=>{"use strict"});var Rr,Oc=l(()=>{"use strict";kt();Rr=or.build("designedSearchInput")});var Tr=Di((jT,Pg)=>{Pg.exports=ftGlobals.litRepeat});var It,_c=l(()=>{"use strict";(function(t){t.S="S",t.M="M",t.L="L",t.XL="XL",t.XXL="XXL"})(It||(It={}))});var Ig,Mg,Rc=l(()=>{"use strict";Ig=c(g()),Mg=Ig.css`
688
688
  .ft-size-watcher--pixel {
689
689
  width: 0;
690
690
  height: 0;
@@ -703,11 +703,11 @@
703
703
  .ft-size-watcher--local .ft-size-watcher--watcher {
704
704
  width: 100%;
705
705
  }
706
- `});var _g,ki,Gs,yn,Oc,gt,wc=l(()=>{"use strict";_g=u(b()),ki=u(B()),Gs=u(m());Ec();Ac();yn=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 Gs.FtLitElement{constructor(){super(...arguments),this.debounceTimeout=100,this.local=!1,this.size=0,this.category=It.S,this.resizeObserver=new ResizeObserver(()=>this.updateSize()),this.debouncer=new Gs.Debouncer}render(){return _g.html`
706
+ `});var Dg,wi,ia,hs,Tc,yt,kc=l(()=>{"use strict";Dg=c(g()),wi=c(F()),ia=c(f());_c();Rc();hs=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},Tc=class extends CustomEvent{constructor(e,r){super("change",{detail:{size:e,category:r}})}},yt=class extends ia.FtLitElement{constructor(){super(...arguments),this.debounceTimeout=100,this.local=!1,this.size=0,this.category=It.S,this.resizeObserver=new ResizeObserver(()=>this.updateSize()),this.debouncer=new ia.Debouncer}render(){return Dg.html`
707
707
  <div class="ft-size-watcher--pixel ${this.local?"ft-size-watcher--local":""}">
708
708
  <div class="ft-size-watcher--watcher"></div>
709
709
  </div>
710
- `}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=It.S:this.size<976?this.category=It.M:this.size<1024?this.category=It.L:this.size<1440?this.category=It.XL:this.category=It.XXL,this.dispatchEvent(new Oc(this.size,this.category)))},this.debounceTimeout)}};gt.elementDefinitions={};gt.styles=Tg;yn([(0,ki.property)({type:Number})],gt.prototype,"debounceTimeout",void 0);yn([(0,ki.property)({type:Boolean})],gt.prototype,"local",void 0);yn([(0,ki.property)({type:Number,reflect:!0})],gt.prototype,"size",void 0);yn([(0,ki.property)({type:String,reflect:!0})],gt.prototype,"category",void 0);yn([(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 Qs(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function Dg(t){return Qs(t).split("|").pop()}function Mg(t){return Qs(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,J,bn,Hg,kc=l(()=>{"use strict";Ug=u(b()),J=u(m());Ri();Nt();bn={buttonMoreColor:J.FtCssVariableFactory.extend("--ft-filter-level-button-more-color","",J.designSystemVariables.colorOnSurface),borderRadiusM:J.FtCssVariableFactory.external(J.designSystemVariables.borderRadiusM,"Design system"),colorOutline:J.FtCssVariableFactory.external(J.designSystemVariables.colorOutline,"Design system"),colorOnSurface:J.FtCssVariableFactory.external(J.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:J.FtCssVariableFactory.external(J.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:J.FtCssVariableFactory.external(J.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:J.FtCssVariableFactory.external(J.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:J.FtCssVariableFactory.external(J.designSystemVariables.colorOnPrimary,"Design system"),fontFamily:J.FtCssVariableFactory.external(we.fontFamily,"Body2 typography"),fontSize:J.FtCssVariableFactory.external(we.fontSize,"Body2 typography"),fontWeight:J.FtCssVariableFactory.external(we.fontWeight,"Body2 typography"),letterSpacing:J.FtCssVariableFactory.external(we.letterSpacing,"Body2 typography"),lineHeight:J.FtCssVariableFactory.external(we.lineHeight,"Body2 typography"),textTransform:J.FtCssVariableFactory.external(we.textTransform,"Body2 typography")},Hg=Ug.css`
710
+ `}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=It.S:this.size<976?this.category=It.M:this.size<1024?this.category=It.L:this.size<1440?this.category=It.XL:this.category=It.XXL,this.dispatchEvent(new Tc(this.size,this.category)))},this.debounceTimeout)}};yt.elementDefinitions={};yt.styles=Mg;hs([(0,wi.property)({type:Number})],yt.prototype,"debounceTimeout",void 0);hs([(0,wi.property)({type:Boolean})],yt.prototype,"local",void 0);hs([(0,wi.property)({type:Number,reflect:!0})],yt.prototype,"size",void 0);hs([(0,wi.property)({type:String,reflect:!0})],yt.prototype,"category",void 0);hs([(0,wi.query)(".ft-size-watcher--watcher")],yt.prototype,"watcher",void 0)});var Ng,Fg=l(()=>{"use strict";kc();Ng={"ft-size-watcher":yt}});var Bg,Ug=l(()=>{"use strict";Bg=c(f());Fg();(0,Bg.customElements)(Ng)});var Vg=l(()=>{"use strict";kc();Rc();_c();Ug()});function oa(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function zg(t){return oa(t).split("|").pop()}function Hg(t){return oa(t).split("|").join(" > ")}function jg(t,e){return{label:t.label,selected:!e&&t.selected,subOptions:t.childNodes.map(r=>jg(r,t.selected)),value:t.value}}function qg(t){return(0,Lc.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=>jg(e,!1))}}function Kg(t){return(0,Lc.flatDeep)(t.rootNodes,e=>e.selected?[]:e.childNodes).filter(e=>e.selected).map(e=>e.value)}var Lc,Pc=l(()=>{"use strict";Lc=c(f())});var Wg,ee,fs,Gg,Ic=l(()=>{"use strict";Wg=c(g()),ee=c(f());Ei();Nt();fs={buttonMoreColor:ee.FtCssVariableFactory.extend("--ft-filter-level-button-more-color","",ee.designSystemVariables.colorOnSurface),borderRadiusM:ee.FtCssVariableFactory.external(ee.designSystemVariables.borderRadiusM,"Design system"),colorOutline:ee.FtCssVariableFactory.external(ee.designSystemVariables.colorOutline,"Design system"),colorOnSurface:ee.FtCssVariableFactory.external(ee.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:ee.FtCssVariableFactory.external(ee.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:ee.FtCssVariableFactory.external(ee.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:ee.FtCssVariableFactory.external(ee.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:ee.FtCssVariableFactory.external(ee.designSystemVariables.colorOnPrimary,"Design system"),fontFamily:ee.FtCssVariableFactory.external(_e.fontFamily,"Body2 typography"),fontSize:ee.FtCssVariableFactory.external(_e.fontSize,"Body2 typography"),fontWeight:ee.FtCssVariableFactory.external(_e.fontWeight,"Body2 typography"),letterSpacing:ee.FtCssVariableFactory.external(_e.letterSpacing,"Body2 typography"),lineHeight:ee.FtCssVariableFactory.external(_e.lineHeight,"Body2 typography"),textTransform:ee.FtCssVariableFactory.external(_e.textTransform,"Body2 typography")},Gg=Wg.css`
711
711
  .ft-filter-level--container {
712
712
  display: flex;
713
713
  flex-direction: column;
@@ -722,14 +722,14 @@
722
722
  flex-shrink: 0;
723
723
  text-decoration: none;
724
724
  position: relative;
725
- border-radius: ${bn.borderRadiusM};
725
+ border-radius: ${fs.borderRadiusM};
726
726
  overflow: hidden;
727
727
  display: flex;
728
728
  align-items: center;
729
729
  padding: 4px 4px;
730
730
  gap: 4px;
731
731
  cursor: pointer;
732
- color: ${bn.colorOnSurface};
732
+ color: ${fs.colorOnSurface};
733
733
  }
734
734
 
735
735
  .ft-filter-level--go-back:focus {
@@ -758,11 +758,11 @@
758
758
  }
759
759
 
760
760
  ft-button {
761
- ${(0,J.setVariable)(I.color,bn.colorOnSurface)};
761
+ ${(0,ee.setVariable)(P.color,fs.colorOnSurface)};
762
762
  }
763
763
 
764
764
  ft-button.ft-filter-level--display-more {
765
- ${(0,J.setVariable)(I.color,bn.buttonMoreColor)};
765
+ ${(0,ee.setVariable)(P.color,fs.buttonMoreColor)};
766
766
  }
767
767
 
768
768
  ft-radio, ft-checkbox {
@@ -776,17 +776,17 @@
776
776
 
777
777
  .ft-filter-level--no-values {
778
778
  margin: 10px 0;
779
- color: ${bn.colorOnSurfaceMedium};
779
+ color: ${fs.colorOnSurfaceMedium};
780
780
  }
781
- `});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`
781
+ `});var Me,Qg,bt,Yg,Mc=l(()=>{"use strict";Me=c(f()),Qg=c(g());ve();Ye();bt={textColor:Me.FtCssVariableFactory.extend("--ft-checkbox-text-color","",Me.designSystemVariables.colorOnSurfaceHigh),fontSize:Me.FtCssVariableFactory.extend("--ft-checkbox-font-size","",x.fontSize),activeColor:Me.FtCssVariableFactory.extend("--ft-checkbox-active-color","",Me.designSystemVariables.colorPrimary),checkColor:Me.FtCssVariableFactory.extend("--ft-checkbox-check-color","",Me.designSystemVariables.colorOnPrimary),borderColor:Me.FtCssVariableFactory.extend("--ft-checkbox-border-color","",Me.designSystemVariables.colorOnSurfaceMedium),disabledColor:Me.FtCssVariableFactory.extend("--ft-checkbox-disabled-color","",Me.designSystemVariables.colorOnSurfaceDisabled),errorColor:Me.FtCssVariableFactory.extend("--ft-checkbox-error-color","",Me.designSystemVariables.colorError)},Yg=Qg.css`
782
782
  * {
783
783
  box-sizing: border-box;
784
784
  }
785
785
 
786
786
  .ft-checkbox {
787
787
  box-sizing: border-box;
788
- color: ${vt.textColor};
789
- font-size: ${vt.fontSize};
788
+ color: ${bt.textColor};
789
+ font-size: ${bt.fontSize};
790
790
 
791
791
  display: inline-flex;
792
792
  align-items: center;
@@ -794,7 +794,7 @@
794
794
  }
795
795
 
796
796
  .ft-checkbox--disabled {
797
- color: ${vt.disabledColor};
797
+ color: ${bt.disabledColor};
798
798
  }
799
799
 
800
800
  input {
@@ -818,26 +818,26 @@
818
818
 
819
819
  .ft-checkbox--box {
820
820
  display: flex;
821
- border: 2px solid ${vt.borderColor};
821
+ border: 2px solid ${bt.borderColor};
822
822
  border-radius: 2px;
823
823
 
824
824
  width: 18px;
825
825
  height: 18px;
826
826
 
827
- color: ${vt.checkColor};
827
+ color: ${bt.checkColor};
828
828
  }
829
829
 
830
830
 
831
831
  .ft-checkbox--checked .ft-checkbox--box,
832
832
  .ft-checkbox--indeterminate .ft-checkbox--box {
833
- border-color: ${vt.activeColor};
834
- background-color: ${vt.activeColor};
833
+ border-color: ${bt.activeColor};
834
+ background-color: ${bt.activeColor};
835
835
  }
836
836
 
837
837
  .ft-checkbox--disabled .ft-checkbox--box {
838
- border-color: ${vt.disabledColor};
838
+ border-color: ${bt.disabledColor};
839
839
  background-color: transparent;
840
- color: ${vt.disabledColor};
840
+ color: ${bt.disabledColor};
841
841
  }
842
842
 
843
843
  .ft-checkbox--checkmark {
@@ -858,20 +858,20 @@
858
858
  }
859
859
 
860
860
  .ft-checkbox.ft-checkbox--error {
861
- color: ${vt.errorColor};
862
- ${(0,$e.setVariable)(q.color,vt.errorColor)};
861
+ color: ${bt.errorColor};
862
+ ${(0,Me.setVariable)(q.color,bt.errorColor)};
863
863
 
864
864
  .ft-checkbox--box {
865
- border-color: ${vt.errorColor};
865
+ border-color: ${bt.errorColor};
866
866
  }
867
867
 
868
868
  &.ft-checkbox--checked, &.ft-checkbox--indeterminate {
869
869
  .ft-checkbox--box {
870
- background-color: ${vt.errorColor};
870
+ background-color: ${bt.errorColor};
871
871
  }
872
872
  }
873
873
  }
874
- `});var Xs,Wt,zg,qg,_r,Pc,Ie,$c=l(()=>{"use strict";Xs=u(b()),Wt=u(B()),zg=u(m()),qg=u(it());Ge();ge();Lc();_r=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 Xs.html`
874
+ `});var sa,Wt,Xg,Zg,kr,Dc,De,Nc=l(()=>{"use strict";sa=c(g()),Wt=c(F()),Xg=c(f()),Zg=c(st());Ye();ve();Mc();kr=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},Dc=class extends CustomEvent{constructor(e){super("change",{detail:e})}},De=class extends Xg.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 sa.html`
875
875
  <div class="ft-checkbox--box-container" part="checkbox-box-container">
876
876
  <ft-ripple part="checkbox-ripple"
877
877
  ?disabled=${this.disabled}
@@ -893,27 +893,27 @@
893
893
  @change=${this.onChange}
894
894
  >
895
895
  </div>
896
- `}render(){return Xs.html`
897
- <label class="${(0,qg.classMap)(this.checkboxClasses)}" for="checkbox-input" part="checkbox-label">
896
+ `}render(){return sa.html`
897
+ <label class="${(0,Zg.classMap)(this.checkboxClasses)}" for="checkbox-input" part="checkbox-label">
898
898
  ${this.renderBoxContainer()}
899
- <ft-typography variant="${Q.body2}" part="checkbox-body">
899
+ <ft-typography variant="${Y.body2}" part="checkbox-body">
900
900
  <slot @slotchange=${this.onSlotchange}></slot>
901
901
  </ft-typography>
902
902
  </label>
903
- `}renderBoxIcon(){return Xs.html`
903
+ `}renderBoxIcon(){return sa.html`
904
904
  <svg class="ft-checkbox--checkmark" viewBox="0 0 24 24" part="checkbox-check" aria-hidden="true">
905
905
  <path class="ft-checkbox--checkmark-path" fill="none"
906
906
  d="${this.indeterminate&&!this.checked?"M2,12 22,12":"M1.73,12.91 8.1,19.28 22.79,4.59"}"></path>
907
907
  </svg>
908
- `}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;_r([(0,Wt.property)()],Ie.prototype,"name",void 0);_r([(0,Wt.property)()],Ie.prototype,"value",void 0);_r([(0,Wt.property)({type:Boolean,reflect:!0})],Ie.prototype,"checked",void 0);_r([(0,Wt.property)({type:Boolean})],Ie.prototype,"indeterminate",void 0);_r([(0,Wt.property)({type:Boolean})],Ie.prototype,"disabled",void 0);_r([(0,Wt.property)({type:Boolean})],Ie.prototype,"error",void 0);_r([(0,Wt.query)(".ft-checkbox")],Ie.prototype,"container",void 0);_r([(0,Wt.query)("ft-ripple")],Ie.prototype,"ripple",void 0);_r([(0,Wt.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`
908
+ `}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 Dc(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)}};De.elementDefinitions={"ft-ripple":k,"ft-typography":z};De.styles=Yg;kr([(0,Wt.property)()],De.prototype,"name",void 0);kr([(0,Wt.property)()],De.prototype,"value",void 0);kr([(0,Wt.property)({type:Boolean,reflect:!0})],De.prototype,"checked",void 0);kr([(0,Wt.property)({type:Boolean})],De.prototype,"indeterminate",void 0);kr([(0,Wt.property)({type:Boolean})],De.prototype,"disabled",void 0);kr([(0,Wt.property)({type:Boolean})],De.prototype,"error",void 0);kr([(0,Wt.query)(".ft-checkbox")],De.prototype,"container",void 0);kr([(0,Wt.query)("ft-ripple")],De.prototype,"ripple",void 0);kr([(0,Wt.query)("input")],De.prototype,"input",void 0)});var Jg=l(()=>{"use strict"});var ey,ty=l(()=>{"use strict";Nc();ey={"ft-checkbox":De}});var ry,iy=l(()=>{"use strict";ry=c(f());ty();(0,ry.customElements)(ey)});var oy=l(()=>{"use strict";Nc();Mc();Jg();iy()});var sy,dt,Wr,ny,Fc=l(()=>{"use strict";sy=c(g()),dt=c(f());ve();Wr={textColor:dt.FtCssVariableFactory.extend("--ft-radio-text-color","",dt.designSystemVariables.colorOnSurfaceHigh),fontSize:dt.FtCssVariableFactory.extend("--ft-radio-font-size","",x.fontSize),colorPrimary:dt.FtCssVariableFactory.external(dt.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:dt.FtCssVariableFactory.external(dt.designSystemVariables.colorOnPrimary,"Design system"),borderColor:dt.FtCssVariableFactory.extend("--ft-radio-border-color","",dt.designSystemVariables.colorOnSurfaceMedium),colorOnSurfaceDisabled:dt.FtCssVariableFactory.external(dt.designSystemVariables.colorOnSurfaceDisabled,"Design system")},ny=sy.css`
909
909
  * {
910
910
  box-sizing: border-box;
911
911
  }
912
912
 
913
913
  .ft-radio {
914
914
  box-sizing: border-box;
915
- color: ${Yr.textColor};
916
- font-size: ${Yr.fontSize};
915
+ color: ${Wr.textColor};
916
+ font-size: ${Wr.fontSize};
917
917
 
918
918
  display: inline-flex;
919
919
  align-items: center;
@@ -921,7 +921,7 @@
921
921
  }
922
922
 
923
923
  .ft-radio--disabled {
924
- color: ${Yr.colorOnSurfaceDisabled};
924
+ color: ${Wr.colorOnSurfaceDisabled};
925
925
  }
926
926
 
927
927
  input {
@@ -944,7 +944,7 @@
944
944
  }
945
945
 
946
946
  .ft-radio--box {
947
- border: 2px solid ${Yr.borderColor};
947
+ border: 2px solid ${Wr.borderColor};
948
948
  border-radius: 50%;
949
949
 
950
950
  display: flex;
@@ -957,7 +957,7 @@
957
957
 
958
958
  .ft-radio--box:after {
959
959
  content: " ";
960
- background-color: ${Yr.colorPrimary};
960
+ background-color: ${Wr.colorPrimary};
961
961
 
962
962
  border-radius: 50%;
963
963
 
@@ -969,7 +969,7 @@
969
969
  }
970
970
 
971
971
  .ft-radio--checked .ft-radio--box {
972
- border-color: ${Yr.colorPrimary};
972
+ border-color: ${Wr.colorPrimary};
973
973
  }
974
974
 
975
975
 
@@ -978,24 +978,24 @@
978
978
  }
979
979
 
980
980
  .ft-radio--disabled .ft-radio--box {
981
- border-color: ${Yr.colorOnSurfaceDisabled};
981
+ border-color: ${Wr.colorOnSurfaceDisabled};
982
982
  background-color: transparent;
983
983
  }
984
984
 
985
985
  .ft-radio--disabled .ft-radio--box:after {
986
- background-color: ${Yr.colorOnSurfaceDisabled};
986
+ background-color: ${Wr.colorOnSurfaceDisabled};
987
987
  }
988
988
 
989
989
  .ft-radio:has(:focus-visible) {
990
- outline: 2px solid ${ct.designSystemVariables.colorPrimary};
990
+ outline: 2px solid ${dt.designSystemVariables.colorPrimary};
991
991
  outline-offset: -2px;
992
992
  }
993
993
 
994
994
  .ft-radio ft-typography {
995
995
  padding-right: 2px;
996
996
  }
997
- `});var ev,cr,tv,rv,Zr,Ys,ke,Dc=l(()=>{"use strict";ev=u(b()),cr=u(B()),tv=u(m()),rv=u(it());Ge();ge();$n();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},Ys=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`
998
- <div class="${(0,rv.classMap)(this.radioClasses)}"
997
+ `});var ay,cr,ly,cy,Gr,na,Le,Bc=l(()=>{"use strict";ay=c(g()),cr=c(F()),ly=c(f()),cy=c(st());Ye();ve();Rs();Fc();Gr=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},na=class extends CustomEvent{constructor(e,r){super("change",{detail:{value:e,checked:r},bubbles:!0,composed:!0})}},Le=class extends ly.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 ay.html`
998
+ <div class="${(0,cy.classMap)(this.radioClasses)}"
999
999
  @click=${this.onClick}>
1000
1000
  <div class="ft-radio--box-container">
1001
1001
  <ft-ripple
@@ -1015,12 +1015,12 @@
1015
1015
  >
1016
1016
  </div>
1017
1017
  <label for="radio-button" inert>
1018
- <ft-typography variant="${Q.body2}">
1018
+ <ft-typography variant="${Y.body2}">
1019
1019
  <slot></slot>
1020
1020
  </ft-typography>
1021
1021
  </label>
1022
1022
  </div>
1023
- `}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=Jg;Zr([(0,cr.property)()],ke.prototype,"name",void 0);Zr([(0,cr.property)()],ke.prototype,"value",void 0);Zr([(0,cr.property)({type:Boolean,reflect:!0})],ke.prototype,"checked",void 0);Zr([(0,cr.property)({attribute:"aria-checked",reflect:!0})],ke.prototype,"ariaChecked",void 0);Zr([(0,cr.property)({type:Boolean})],ke.prototype,"disabled",void 0);Zr([(0,cr.query)(".ft-radio")],ke.prototype,"container",void 0);Zr([(0,cr.query)("ft-ripple")],ke.prototype,"ripple",void 0);Zr([(0,cr.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`
1023
+ `}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 na(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 na(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())}};Le.elementDefinitions={"ft-ripple":k,"ft-typography":z};Le.styles=ny;Gr([(0,cr.property)()],Le.prototype,"name",void 0);Gr([(0,cr.property)()],Le.prototype,"value",void 0);Gr([(0,cr.property)({type:Boolean,reflect:!0})],Le.prototype,"checked",void 0);Gr([(0,cr.property)({attribute:"aria-checked",reflect:!0})],Le.prototype,"ariaChecked",void 0);Gr([(0,cr.property)({type:Boolean})],Le.prototype,"disabled",void 0);Gr([(0,cr.query)(".ft-radio")],Le.prototype,"container",void 0);Gr([(0,cr.query)("ft-ripple")],Le.prototype,"ripple",void 0);Gr([(0,cr.query)("input")],Le.prototype,"input",void 0)});var uy=l(()=>{"use strict"});var dy,py,Uc=l(()=>{"use strict";dy=c(g()),py=dy.css`
1024
1024
  :host {
1025
1025
  display: block;
1026
1026
  }
@@ -1028,14 +1028,14 @@
1028
1028
  :host(:focus-visible) {
1029
1029
  outline: none;
1030
1030
  }
1031
- `});var sv,Jr,av,xn,yt,Nc=l(()=>{"use strict";sv=u(m()),Jr=u(B()),av=u(b());Mc();xn=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`
1031
+ `});var hy,Qr,fy,ms,vt,Vc=l(()=>{"use strict";hy=c(f()),Qr=c(F()),fy=c(g());Uc();ms=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},vt=class extends hy.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 fy.html`
1032
1032
  <slot @slotchange=${this.onSlotChange}
1033
1033
  @change=${this.onChange}
1034
1034
  @keydown=${this.onKeyDown}
1035
1035
  ></slot>
1036
- `}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;xn([(0,Jr.property)()],yt.prototype,"name",void 0);xn([(0,Jr.property)({reflect:!0,attribute:"role"})],yt.prototype,"role",void 0);xn([(0,Jr.property)({reflect:!0,attribute:"aria-labelledby"})],yt.prototype,"ariaLabelledBy",void 0);xn([(0,Jr.queryAssignedElements)()],yt.prototype,"assignedElements",void 0);xn([(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(Tr()),ut=u(m());qt();ge();Ge();wr();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`
1036
+ `}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()}};vt.elementDefinitions={};vt.styles=py;ms([(0,Qr.property)()],vt.prototype,"name",void 0);ms([(0,Qr.property)({reflect:!0,attribute:"role"})],vt.prototype,"role",void 0);ms([(0,Qr.property)({reflect:!0,attribute:"aria-labelledby"})],vt.prototype,"ariaLabelledBy",void 0);ms([(0,Qr.queryAssignedElements)()],vt.prototype,"assignedElements",void 0);ms([(0,Qr.state)()],vt.prototype,"currentSelectedIndex",void 0)});var my=l(()=>{"use strict"});var gy,yy=l(()=>{"use strict";Bc();Vc();gy={"ft-radio":Le,"ft-radio-group":vt}});var by,vy=l(()=>{"use strict";by=c(f());yy();(0,by.customElements)(gy)});var zc=l(()=>{"use strict";Bc();uy();Fc();Vc();my();Uc();vy()});var xt,ke,xy,pt,Ne,Hc,fe,Sy=l(()=>{"use strict";xt=c(g()),ke=c(F()),xy=c(Tr()),pt=c(f());qt();ve();Ye();_r();oy();zc();Ic();kt();Ne=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},Hc={"more-filters-button-pressed":{label:"Revealing more filters",defaultEventName:"filters-click_see_more",defaultComponentId:"ft-filter-level"}},fe=class extends(0,pt.withAnalytics)(ct((0,pt.withAriaNotification)(pt.FtLitElement)),Hc){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 pt.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 xt.html`
1037
1037
  <div class="ft-filter-level--container ${this.disabled?"ft-filter--disabled":""}">
1038
- ${this.parent==null?null:bt.html`
1038
+ ${this.parent==null?null:xt.html`
1039
1039
  <div tabindex="0"
1040
1040
  part="controls go-back"
1041
1041
  class="ft-filter-level--go-back"
@@ -1046,18 +1046,18 @@
1046
1046
  @click=${this.goBackOnClick}>
1047
1047
  <ft-ripple></ft-ripple>
1048
1048
  <ft-icon>thin_arrow_left</ft-icon>
1049
- <ft-typography variant="${Q.body2}">${this.parent.label}</ft-typography>
1049
+ <ft-typography variant="${Y.body2}">${this.parent.label}</ft-typography>
1050
1050
  </div>
1051
1051
  `}
1052
- ${this.filteredOptions.length===0&&this.noValuesLabel?bt.html`
1053
- <ft-typography class="ft-filter-level--no-values" element="span" variant="${Q.body2}">
1052
+ ${this.filteredOptions.length===0&&this.noValuesLabel?xt.html`
1053
+ <ft-typography class="ft-filter-level--no-values" element="span" variant="${Y.body2}">
1054
1054
  ${this.noValuesLabel}
1055
1055
  </ft-typography>
1056
- `:bt.nothing}
1057
- ${(0,hv.repeat)(e,r=>r.value,r=>{var i;return bt.html`
1056
+ `:xt.nothing}
1057
+ ${(0,xy.repeat)(e,r=>r.value,r=>{var i;return xt.html`
1058
1058
  <div class="ft-filter-level--option" part="options" tabindex="-1">
1059
1059
  ${this.multivalued?this.buildMultiValuedOption(r):this.buildMonoValuedOption(r)}
1060
- ${this.preventNavigation||r.selected||((i=r.subOptions)!==null&&i!==void 0?i:[]).length===0?bt.nothing:bt.html`
1060
+ ${this.preventNavigation||r.selected||((i=r.subOptions)!==null&&i!==void 0?i:[]).length===0?xt.nothing:xt.html`
1061
1061
  <ft-button icon="thin_arrow_right"
1062
1062
  part="controls navigate-hierarchy"
1063
1063
  aria-label="Expand node"
@@ -1068,7 +1068,7 @@
1068
1068
  `}
1069
1069
  </div>
1070
1070
  `})}
1071
- ${e.length<this.filteredOptions.length?bt.html`
1071
+ ${e.length<this.filteredOptions.length?xt.html`
1072
1072
  <ft-button
1073
1073
  class="ft-filter-level--display-more"
1074
1074
  icon="thin_arrow"
@@ -1077,20 +1077,20 @@
1077
1077
  @click=${()=>{this.emitAnalyticsAction("more-filters-button-pressed",{}),this.displayMore()}}>
1078
1078
  ${this.moreValuesButtonLabel}
1079
1079
  </ft-button>
1080
- `:bt.nothing}
1080
+ `:xt.nothing}
1081
1081
  </div>
1082
- `}goBackOnKeyPress(e){(e.key==="Enter"||e.key===" ")&&this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}goBackOnClick(e){e.stopPropagation(),e.preventDefault(),this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}displayMore(){var e;let r=(e=this.limit)!==null&&e!==void 0?e:0,i=this.parent!=null;this.displayedPages++,this.elementToFocus={selector:`.ft-filter-level--option:nth-child(${r+(i?2:1)}) [part~="option"]`}}buildMultiValuedOption(e){var r;return bt.html`
1082
+ `}goBackOnKeyPress(e){(e.key==="Enter"||e.key===" ")&&this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}goBackOnClick(e){e.stopPropagation(),e.preventDefault(),this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}displayMore(){var e;let r=(e=this.limit)!==null&&e!==void 0?e:0,i=this.parent!=null;this.displayedPages++,this.elementToFocus={selector:`.ft-filter-level--option:nth-child(${r+(i?2:1)}) [part~="option"]`}}buildMultiValuedOption(e){var r;return xt.html`
1083
1083
  <ft-checkbox name="${this.filterId}"
1084
1084
  part="multivalued-option option"
1085
1085
  .exportpartsPrefixes=${["multivalued-option","option"]}
1086
1086
  data-value="${e.value}"
1087
1087
  .checked=${e.selected}
1088
1088
  .disabled=${this.disabled}
1089
- .indeterminate=${(0,ut.flatDeep)((r=e.subOptions)!==null&&r!==void 0?r:[],i=>{var o;return(o=i.subOptions)!==null&&o!==void 0?o:[]}).some(i=>i.selected)}
1089
+ .indeterminate=${(0,pt.flatDeep)((r=e.subOptions)!==null&&r!==void 0?r:[],i=>{var s;return(s=i.subOptions)!==null&&s!==void 0?s:[]}).some(i=>i.selected)}
1090
1090
  @change=${i=>this.optionsChanged(i,e)}>
1091
1091
  ${e.renderOption?e.renderOption:e.label}${this.displayCount?` (${e.count})`:""}
1092
1092
  </ft-checkbox>
1093
- `}buildMonoValuedOption(e){return bt.html`
1093
+ `}buildMonoValuedOption(e){return xt.html`
1094
1094
  <ft-radio name="${this.filterId+Math.round(Math.random()*1e6)}"
1095
1095
  part="monovalued-option option"
1096
1096
  data-value="${e.value}"
@@ -1101,7 +1101,7 @@
1101
1101
  @change=${r=>this.optionsChanged(r,e)}>
1102
1102
  ${e.renderOption?e.renderOption:e.label}${this.displayCount?` (${e.count})`:""}
1103
1103
  </ft-radio>
1104
- `}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":R,"ft-ripple":L,"ft-typography":j,"ft-checkbox":Ie,"ft-icon":ne,"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,Gt,Je,gv,Zs=l(()=>{"use strict";mv=u(b()),Gt=u(m());Ri();Je={buttonsColor:Gt.FtCssVariableFactory.extend("--ft-snap-scroll-buttons-color","",Gt.designSystemVariables.colorPrimary),buttonsZIndex:Gt.FtCssVariableFactory.create("--ft-snap-scroll-buttons-z-index","","NUMBER","1"),gap:Gt.FtCssVariableFactory.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:Gt.FtCssVariableFactory.external(Gt.designSystemVariables.colorSurface,"Design system")},gv=mv.css`
1104
+ `}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)})}};fe.elementDefinitions={"ft-button":w,"ft-ripple":k,"ft-typography":z,"ft-checkbox":De,"ft-icon":ae,"ft-radio":Le};fe.styles=Gg;Ne([(0,ke.property)({type:String})],fe.prototype,"filterId",void 0);Ne([(0,ke.property)({type:Object})],fe.prototype,"parent",void 0);Ne([(0,ke.property)({type:Array,hasChanged:pt.hasChanged})],fe.prototype,"options",void 0);Ne([(0,ke.property)({type:Boolean})],fe.prototype,"multivalued",void 0);Ne([(0,ke.property)({type:Boolean})],fe.prototype,"disabled",void 0);Ne([(0,ke.property)({type:Boolean})],fe.prototype,"hideSelectedOptions",void 0);Ne([(0,ke.property)({type:Boolean})],fe.prototype,"displayCount",void 0);Ne([(0,ke.property)({type:Boolean})],fe.prototype,"preventNavigation",void 0);Ne([(0,ke.property)({type:String})],fe.prototype,"filter",void 0);Ne([(0,ke.property)({type:String})],fe.prototype,"moreValuesButtonLabel",void 0);Ne([(0,ke.property)({type:String})],fe.prototype,"noValuesLabel",void 0);Ne([(0,ke.property)()],fe.prototype,"filteredOptionsNumberAriaNotification",void 0);Ne([(0,pt.numberProperty)()],fe.prototype,"displayedValuesLimit",void 0);Ne([(0,ke.query)(".ft-filter-level--container")],fe.prototype,"container",void 0);Ne([(0,ke.state)()],fe.prototype,"radios",void 0);Ne([(0,ke.state)()],fe.prototype,"displayedPages",void 0);Ne([(0,ke.state)()],fe.prototype,"filteredOptions",void 0)});var Ey,Gt,tt,Cy,aa=l(()=>{"use strict";Ey=c(g()),Gt=c(f());Ei();tt={buttonsColor:Gt.FtCssVariableFactory.extend("--ft-snap-scroll-buttons-color","",Gt.designSystemVariables.colorPrimary),buttonsZIndex:Gt.FtCssVariableFactory.create("--ft-snap-scroll-buttons-z-index","","NUMBER","1"),gap:Gt.FtCssVariableFactory.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:Gt.FtCssVariableFactory.external(Gt.designSystemVariables.colorSurface,"Design system")},Cy=Ey.css`
1105
1105
  .ft-snap-scroll {
1106
1106
  box-sizing: border-box;
1107
1107
  position: relative;
@@ -1136,7 +1136,7 @@
1136
1136
  flex-wrap: nowrap;
1137
1137
  align-items: flex-start;
1138
1138
  justify-content: flex-start;
1139
- gap: ${Je.gap};
1139
+ gap: ${tt.gap};
1140
1140
  }
1141
1141
 
1142
1142
  .ft-snap-scroll--hide-scrollbar .ft-snap-scroll--content::-webkit-scrollbar {
@@ -1179,11 +1179,11 @@
1179
1179
  .ft-snap-scroll--next {
1180
1180
  position: absolute;
1181
1181
  display: flex;
1182
- z-index: ${Je.buttonsZIndex};
1182
+ z-index: ${tt.buttonsZIndex};
1183
1183
  opacity: 1;
1184
1184
  transition: background-color .5s ease-in-out, opacity .5s ease-in-out, z-index .5s ease-in-out;
1185
- ${(0,Gt.setVariable)(I.backgroundColor,"transparent")};
1186
- ${(0,Gt.setVariable)(I.color,Je.buttonsColor)};
1185
+ ${(0,Gt.setVariable)(P.backgroundColor,"transparent")};
1186
+ ${(0,Gt.setVariable)(P.color,tt.buttonsColor)};
1187
1187
  }
1188
1188
 
1189
1189
  .ft-snap-scroll--previous[hidden],
@@ -1196,37 +1196,37 @@
1196
1196
  top: 0;
1197
1197
  left: -1px;
1198
1198
  bottom: 0;
1199
- background: linear-gradient(to right, ${Je.colorSurface} 50%, var(--snap-scroll-transparent-color));
1199
+ background: linear-gradient(to right, ${tt.colorSurface} 50%, var(--snap-scroll-transparent-color));
1200
1200
  }
1201
1201
 
1202
1202
  .ft-snap-scroll--vertical .ft-snap-scroll--previous {
1203
1203
  top: -1px;
1204
1204
  left: 0;
1205
1205
  right: 0;
1206
- background: linear-gradient(to bottom, ${Je.colorSurface} 50%, var(--snap-scroll-transparent-color));
1206
+ background: linear-gradient(to bottom, ${tt.colorSurface} 50%, var(--snap-scroll-transparent-color));
1207
1207
  }
1208
1208
 
1209
1209
  .ft-snap-scroll--horizontal .ft-snap-scroll--next {
1210
1210
  top: 0;
1211
1211
  right: -1px;
1212
1212
  bottom: 0;
1213
- background: linear-gradient(to left, ${Je.colorSurface} 50%, var(--snap-scroll-transparent-color));
1213
+ background: linear-gradient(to left, ${tt.colorSurface} 50%, var(--snap-scroll-transparent-color));
1214
1214
  }
1215
1215
 
1216
1216
  .ft-snap-scroll--vertical .ft-snap-scroll--next {
1217
1217
  left: 0;
1218
1218
  right: 0;
1219
1219
  bottom: -1px;
1220
- background: linear-gradient(to top, ${Je.colorSurface} 50%, var(--snap-scroll-transparent-color));
1220
+ background: linear-gradient(to top, ${tt.colorSurface} 50%, var(--snap-scroll-transparent-color));
1221
1221
  }
1222
1222
 
1223
1223
  .ft-snap-scroll--horizontal .ft-snap-scroll--previous:hover,
1224
1224
  .ft-snap-scroll--horizontal .ft-snap-scroll--next:hover,
1225
1225
  .ft-snap-scroll--vertical .ft-snap-scroll--previous:hover,
1226
1226
  .ft-snap-scroll--vertical .ft-snap-scroll--next:hover {
1227
- background-color: ${Je.colorSurface};
1227
+ background-color: ${tt.colorSurface};
1228
1228
  }
1229
- `});var vv,xt,Li,yv,ur,Uc,Ee,Hc=l(()=>{"use strict";vv=u(b()),xt=u(B()),Li=u(m());qt();yv=u(it());Zs();ur=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`
1229
+ `});var Ay,St,Oi,wy,ur,jc,we,qc=l(()=>{"use strict";Ay=c(g()),St=c(F()),Oi=c(f());qt();wy=c(st());aa();ur=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},jc=class extends CustomEvent{constructor(e,r){super("current-element-change",{detail:{index:e,element:r}})}},we=class extends Oi.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 Oi.Debouncer(200),this.updateScrollDebouncer=new Oi.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,s=this.contentSlot[this.scrollAttribute]+this.prevSize;(r[this.offsetAttribute]<s||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,wy.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":Oi.isSafari}),r=this.controls&&this.withScroll;return Ay.html`
1230
1230
  <div part="container" class="${e}">
1231
1231
  <ft-button
1232
1232
  class="ft-snap-scroll--previous"
@@ -1250,7 +1250,7 @@
1250
1250
  @click=${this.next}
1251
1251
  ></ft-button>
1252
1252
  </div>
1253
- `}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":R};Ee.styles=gv;ur([(0,xt.property)({type:Boolean})],Ee.prototype,"horizontal",void 0);ur([(0,xt.property)({type:Boolean})],Ee.prototype,"hideScrollbar",void 0);ur([(0,xt.property)({type:Boolean})],Ee.prototype,"controls",void 0);ur([(0,xt.property)({type:Boolean})],Ee.prototype,"limitSize",void 0);ur([(0,xt.state)()],Ee.prototype,"elements",void 0);ur([(0,xt.state)()],Ee.prototype,"currentElement",void 0);ur([(0,xt.state)()],Ee.prototype,"withScroll",void 0);ur([(0,xt.state)()],Ee.prototype,"startReached",void 0);ur([(0,xt.state)()],Ee.prototype,"endReached",void 0);ur([(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 Js=l(()=>{"use strict";Hc();Zs();bv();Ev()});var Av,ae,pt,Ov,ea=l(()=>{"use strict";Av=u(b()),ae=u(m());Nt();Ri();pt={colorOutline:ae.FtCssVariableFactory.external(ae.designSystemVariables.colorOutline,"Design system"),colorOnSurface:ae.FtCssVariableFactory.external(ae.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:ae.FtCssVariableFactory.external(ae.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorPrimary:ae.FtCssVariableFactory.external(ae.designSystemVariables.colorPrimary,"Design system"),colorSurface:ae.FtCssVariableFactory.external(ae.designSystemVariables.colorSurface,"Design system"),transitionDuration:ae.FtCssVariableFactory.external(ae.designSystemVariables.transitionDuration,"Design system"),transitionTimingFunction:ae.FtCssVariableFactory.external(ae.designSystemVariables.transitionTimingFunction,"Design system"),labelColor:ae.FtCssVariableFactory.extend("--ft-filter-label-color","",ae.designSystemVariables.colorOnSurface),labelFontSize:ae.FtCssVariableFactory.extend("--ft-filter-label-font-size","",C.fontSize,"16px")},Ov=[Nr,ae.noTextInputDefaultClearButton,Av.css`
1253
+ `}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 jc(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)}};we.elementDefinitions={"ft-button":w};we.styles=Cy;ur([(0,St.property)({type:Boolean})],we.prototype,"horizontal",void 0);ur([(0,St.property)({type:Boolean})],we.prototype,"hideScrollbar",void 0);ur([(0,St.property)({type:Boolean})],we.prototype,"controls",void 0);ur([(0,St.property)({type:Boolean})],we.prototype,"limitSize",void 0);ur([(0,St.state)()],we.prototype,"elements",void 0);ur([(0,St.state)()],we.prototype,"currentElement",void 0);ur([(0,St.state)()],we.prototype,"withScroll",void 0);ur([(0,St.state)()],we.prototype,"startReached",void 0);ur([(0,St.state)()],we.prototype,"endReached",void 0);ur([(0,St.query)(".ft-snap-scroll--content")],we.prototype,"contentSlot",void 0)});var Oy=l(()=>{"use strict"});var _y,Ry=l(()=>{"use strict";qc();_y={"ft-snap-scroll":we}});var Ty,ky=l(()=>{"use strict";Ty=c(f());Ry();(0,Ty.customElements)(_y)});var la=l(()=>{"use strict";qc();aa();Oy();ky()});var Ly,ce,ht,$y,ca=l(()=>{"use strict";Ly=c(g()),ce=c(f());Nt();Ei();ht={colorOutline:ce.FtCssVariableFactory.external(ce.designSystemVariables.colorOutline,"Design system"),colorOnSurface:ce.FtCssVariableFactory.external(ce.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:ce.FtCssVariableFactory.external(ce.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorPrimary:ce.FtCssVariableFactory.external(ce.designSystemVariables.colorPrimary,"Design system"),colorSurface:ce.FtCssVariableFactory.external(ce.designSystemVariables.colorSurface,"Design system"),transitionDuration:ce.FtCssVariableFactory.external(ce.designSystemVariables.transitionDuration,"Design system"),transitionTimingFunction:ce.FtCssVariableFactory.external(ce.designSystemVariables.transitionTimingFunction,"Design system"),labelColor:ce.FtCssVariableFactory.extend("--ft-filter-label-color","",ce.designSystemVariables.colorOnSurface),labelFontSize:ce.FtCssVariableFactory.extend("--ft-filter-label-font-size","",x.fontSize,"16px")},$y=[Dr,ce.noTextInputDefaultClearButton,Ly.css`
1254
1254
  :host {
1255
1255
  display: flex;
1256
1256
  max-height: 100%;
@@ -1278,7 +1278,7 @@
1278
1278
  .ft-filter--header ft-button {
1279
1279
  flex-shrink: 0;
1280
1280
  margin-left: auto;
1281
- ${(0,ae.setVariable)(I.iconSize,"18px")};
1281
+ ${(0,ce.setVariable)(P.iconSize,"18px")};
1282
1282
  }
1283
1283
 
1284
1284
  .filter-label {
@@ -1290,10 +1290,10 @@
1290
1290
  flex-shrink: 1;
1291
1291
  flex-grow: 1;
1292
1292
  word-break: break-word;
1293
- color: ${pt.labelColor};
1294
- font-size: ${pt.labelFontSize};
1295
- ${(0,ae.setVariable)(C.lineHeight,"22px")};
1296
- ${(0,ae.setVariable)(C.fontWeight,"bold")};
1293
+ color: ${ht.labelColor};
1294
+ font-size: ${ht.labelFontSize};
1295
+ ${(0,ce.setVariable)(x.lineHeight,"22px")};
1296
+ ${(0,ce.setVariable)(x.fontWeight,"bold")};
1297
1297
  }
1298
1298
 
1299
1299
  .ft-filter--filter {
@@ -1304,8 +1304,8 @@
1304
1304
  padding: 0 10px;
1305
1305
  overflow: hidden;
1306
1306
  height: 32px;
1307
- transition: height ${pt.transitionDuration} ${pt.transitionTimingFunction},
1308
- margin ${pt.transitionDuration} ${pt.transitionTimingFunction};
1307
+ transition: height ${ht.transitionDuration} ${ht.transitionTimingFunction},
1308
+ margin ${ht.transitionDuration} ${ht.transitionTimingFunction};
1309
1309
  transition-delay: 500ms;
1310
1310
  }
1311
1311
 
@@ -1318,15 +1318,15 @@
1318
1318
  display: block;
1319
1319
  width: 100%;
1320
1320
  border-radius: 4px;
1321
- border: 1px solid ${pt.colorOutline};
1321
+ border: 1px solid ${ht.colorOutline};
1322
1322
  padding: 4px;
1323
- background-color: ${pt.colorSurface};
1324
- color: ${pt.colorOnSurface};
1325
- outline-color: ${pt.colorPrimary};
1323
+ background-color: ${ht.colorSurface};
1324
+ color: ${ht.colorOnSurface};
1325
+ outline-color: ${ht.colorPrimary};
1326
1326
  }
1327
1327
 
1328
1328
  input::placeholder {
1329
- color: ${pt.colorOnSurfaceMedium};
1329
+ color: ${ht.colorOnSurfaceMedium};
1330
1330
  }
1331
1331
 
1332
1332
  input:placeholder-shown {
@@ -1342,7 +1342,7 @@
1342
1342
  }
1343
1343
 
1344
1344
  .ft-filter--separator {
1345
- border-top: 1px solid ${pt.colorOutline};
1345
+ border-top: 1px solid ${ht.colorOutline};
1346
1346
  margin: 4px 10px;
1347
1347
  }
1348
1348
 
@@ -1367,19 +1367,19 @@
1367
1367
  slot:not([name]) {
1368
1368
  display: none;
1369
1369
  }
1370
- `]});var Pi,ie,ye,le,Vc,W,jc=l(()=>{"use strict";Pi=u(b()),ie=u(B()),ye=u(m());ge();fv();qt();Js();ea();le=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`
1370
+ `]});var _i,oe,Se,ue,Kc,W,Wc=l(()=>{"use strict";_i=c(g()),oe=c(F()),Se=c(f());ve();Sy();qt();la();ca();ue=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},Kc=class extends CustomEvent{constructor(e){super("change",{detail:e})}},W=class extends(0,Se.withAnalytics)(Se.FtLitElement,Hc){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 Se.Debouncer(300),this.changeDebouncer=new Se.Debouncer(10),this.lastDispatchedValues=[]}get flatOptions(){return(0,Se.flatDeep)(this.options,e=>{var r;return(r=e.subOptions)!==null&&r!==void 0?r:[]})}get childrenFilteredFlatOptions(){return(0,Se.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(s=>s.selected),r=this.withScroll||this.filter||this.lastLevelHasHiddenvalues,i=this.filterPlaceHolder.replace("{0}",this.label);return _i.html`
1371
1371
  <div class="ft-filter--container ${this.disabled?"ft-filter--disabled":""}"
1372
1372
  part="container">
1373
- ${!this.label&&!e?null:Pi.html`
1373
+ ${!this.label&&!e?null:_i.html`
1374
1374
 
1375
1375
  <div class="ft-filter--header" part="header">
1376
1376
  <div class="filter-label" id="id-group-${this.id}">
1377
- <ft-typography class="ft-filter--label" variant="${Q.overline}" part="label">
1377
+ <ft-typography class="ft-filter--label" variant="${Y.overline}" part="label">
1378
1378
  ${this.label}
1379
1379
  </ft-typography>
1380
1380
  <slot name="label"></slot>
1381
1381
  </div>
1382
- ${e&&!this.hideClearButton?Pi.html`
1382
+ ${e&&!this.hideClearButton?_i.html`
1383
1383
  <ft-button icon="close"
1384
1384
  aria-label="${this.clearButtonLabel+" "+this.label}"
1385
1385
  dense
@@ -1407,8 +1407,8 @@
1407
1407
  @slotchange=${this.updateOptionsFromSlot}
1408
1408
  @option-change=${this.optionsChanged}></slot>
1409
1409
  </div>
1410
- `}update(e){if(super.update(e),e.has("options")){let r=new Set(this.flatOptions.map(i=>i.value));this.displayedLevels=this.displayedLevels.filter(i=>r.has(i)),this.lastDispatchedValues=this.selectedValues}}contentAvailableCallback(e){var r,i,o,n,s,a;super.contentAvailableCallback(e),this.valuesContainer&&this.scrollResizeObserver.observe(this.valuesContainer),this.container&&this.scrollResizeObserver.observe(this.container),e.has("options")&&(this.updateScroll(),(r=this.levelsContainer)===null||r===void 0||r.scrollToIndex(this.displayedLevels.length)),e.has("slideIn")&&this.slideIn&&((i=this.levelsContainer)===null||i===void 0||i.next(),setTimeout(()=>{this.slideIn=void 0},300)),e.has("slideOut")&&this.slideOut&&((o=this.levelsContainer)===null||o===void 0||o.previous(),setTimeout(()=>{this.displayedLevels.pop(),this.slideOut=void 0},300)),this.lastLevelHasHiddenvalues=(a=(s=(n=this.shadowRoot)===null||n===void 0?void 0:n.querySelector(".ft-filter--levels ft-filter-level:last-child"))===null||s===void 0?void 0:s.hasHiddenValues)!==null&&a!==void 0?a:!1}renderLevels(){let e=this.flatOptions,r=e.filter(n=>n.selected),i=this.slideIn||this.slideOut?this.displayedLevels.length-2:this.displayedLevels.length-1,o=i<0?"ft-filter--level-center":"ft-filter--level-left";return Pi.html`
1411
- ${this.raiseSelectedOptions&&r.length>0?Pi.html`
1410
+ `}update(e){if(super.update(e),e.has("options")){let r=new Set(this.flatOptions.map(i=>i.value));this.displayedLevels=this.displayedLevels.filter(i=>r.has(i)),this.lastDispatchedValues=this.selectedValues}}contentAvailableCallback(e){var r,i,s,o,n,a;super.contentAvailableCallback(e),this.valuesContainer&&this.scrollResizeObserver.observe(this.valuesContainer),this.container&&this.scrollResizeObserver.observe(this.container),e.has("options")&&(this.updateScroll(),(r=this.levelsContainer)===null||r===void 0||r.scrollToIndex(this.displayedLevels.length)),e.has("slideIn")&&this.slideIn&&((i=this.levelsContainer)===null||i===void 0||i.next(),setTimeout(()=>{this.slideIn=void 0},300)),e.has("slideOut")&&this.slideOut&&((s=this.levelsContainer)===null||s===void 0||s.previous(),setTimeout(()=>{this.displayedLevels.pop(),this.slideOut=void 0},300)),this.lastLevelHasHiddenvalues=(a=(n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelector(".ft-filter--levels ft-filter-level:last-child"))===null||n===void 0?void 0:n.hasHiddenValues)!==null&&a!==void 0?a:!1}renderLevels(){let e=this.flatOptions,r=e.filter(o=>o.selected),i=this.slideIn||this.slideOut?this.displayedLevels.length-2:this.displayedLevels.length-1,s=i<0?"ft-filter--level-center":"ft-filter--level-left";return _i.html`
1411
+ ${this.raiseSelectedOptions&&r.length>0?_i.html`
1412
1412
  <ft-filter-level
1413
1413
  filterId="${this.id}"
1414
1414
  ?multivalued=${this.multivalued}
@@ -1425,11 +1425,11 @@
1425
1425
  `:null}
1426
1426
  <ft-snap-scroll horizontal hideScrollbar
1427
1427
  class="ft-filter--levels"
1428
- @current-element-change=${n=>this.levelsScrollDebouncer.run(()=>{for(;n.detail.index<this.displayedLevels.length;)this.displayedLevels.pop();this.requestUpdate()})}>
1429
- ${this.renderLevel(o,this.options)}
1430
- ${this.displayedLevels.map(n=>e.find(s=>s.value===n)).map((n,s)=>{var a;let c=n?.value===this.slideIn||n?.value===this.slideOut?"ft-filter--level-right":s===i?"ft-filter--level-center":"ft-filter--level-left";return this.renderLevel(c,(a=n?.subOptions)!==null&&a!==void 0?a:[],n)})}
1428
+ @current-element-change=${o=>this.levelsScrollDebouncer.run(()=>{for(;o.detail.index<this.displayedLevels.length;)this.displayedLevels.pop();this.requestUpdate()})}>
1429
+ ${this.renderLevel(s,this.options)}
1430
+ ${this.displayedLevels.map(o=>e.find(n=>n.value===o)).map((o,n)=>{var a;let u=o?.value===this.slideIn||o?.value===this.slideOut?"ft-filter--level-right":n===i?"ft-filter--level-center":"ft-filter--level-left";return this.renderLevel(u,(a=o?.subOptions)!==null&&a!==void 0?a:[],o)})}
1431
1431
  </ft-snap-scroll>
1432
- `}renderLevel(e,r,i){return Pi.html`
1432
+ `}renderLevel(e,r,i){return _i.html`
1433
1433
  <ft-filter-level
1434
1434
  class="${e}"
1435
1435
  filterId="${this.id}"
@@ -1451,21 +1451,21 @@
1451
1451
  noValuesLabel="${this.noValuesLabel}"
1452
1452
  .filteredOptionsNumberAriaNotification=${this.filteredOptionsNumberAriaNotification}
1453
1453
  ></ft-filter-level>
1454
- `}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":R,"ft-filter-level":he,"ft-snap-scroll":Ee,"ft-typography":j};W.styles=Ov;le([(0,ie.property)({type:String})],W.prototype,"id",void 0);le([(0,ie.property)({type:String})],W.prototype,"label",void 0);le([(0,ie.property)({type:String})],W.prototype,"filterPlaceHolder",void 0);le([(0,ie.property)({type:String})],W.prototype,"clearButtonLabel",void 0);le([(0,ie.property)({type:String})],W.prototype,"moreValuesButtonLabel",void 0);le([(0,ie.property)({type:String})],W.prototype,"noValuesLabel",void 0);le([(0,ye.jsonProperty)([])],W.prototype,"options",void 0);le([(0,ie.property)({type:Boolean})],W.prototype,"multivalued",void 0);le([(0,ie.property)({type:Boolean})],W.prototype,"disabled",void 0);le([(0,ie.property)({type:Boolean})],W.prototype,"raiseSelectedOptions",void 0);le([(0,ie.property)({type:Boolean})],W.prototype,"displayCount",void 0);le([(0,ye.numberProperty)()],W.prototype,"displayedValuesLimit",void 0);le([(0,ye.jsonProperty)(void 0)],W.prototype,"filteredOptionsNumberAriaNotification",void 0);le([(0,ie.property)({type:Boolean})],W.prototype,"hideClearButton",void 0);le([(0,ie.query)(".ft-filter--slot")],W.prototype,"slotElement",void 0);le([(0,ie.query)(".ft-filter--container")],W.prototype,"container",void 0);le([(0,ie.query)(".ft-filter--values")],W.prototype,"valuesContainer",void 0);le([(0,ie.query)(".ft-filter--levels")],W.prototype,"levelsContainer",void 0);le([(0,ie.state)()],W.prototype,"lastLevelHasHiddenvalues",void 0);le([(0,ie.query)(".ft-filter--filter input")],W.prototype,"filterInput",void 0);le([(0,ie.queryAll)(".ft-filter--levels ft-filter-level")],W.prototype,"levels",void 0);le([(0,ie.state)()],W.prototype,"withScroll",void 0);le([(0,ie.state)()],W.prototype,"filter",void 0);le([(0,ie.state)()],W.prototype,"slideIn",void 0);le([(0,ie.state)()],W.prototype,"slideOut",void 0)});var wv=l(()=>{"use strict"});var ta,$i,Rv,Eo,St,zc=l(()=>{"use strict";ta=u(m()),$i=u(B()),Rv=u(b()),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},St=class extends ta.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return Rv.html`
1454
+ `}goBack(e){this.slideOut=e.detail.value,(0,Se.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,Se.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,Se.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(o=>o.value===e.detail.value);i.selected=!i.selected;let s=o=>{var n;o!==i&&(o.selected=!1),(n=o.subOptions)===null||n===void 0||n.forEach(s)};this.multivalued?(r=i.subOptions)===null||r===void 0||r.forEach(s):this.options.forEach(s),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,Se.deepEqual)(this.lastDispatchedValues,e)||(this.dispatchEvent(new Kc(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":w,"ft-filter-level":fe,"ft-snap-scroll":we,"ft-typography":z};W.styles=$y;ue([(0,oe.property)({type:String})],W.prototype,"id",void 0);ue([(0,oe.property)({type:String})],W.prototype,"label",void 0);ue([(0,oe.property)({type:String})],W.prototype,"filterPlaceHolder",void 0);ue([(0,oe.property)({type:String})],W.prototype,"clearButtonLabel",void 0);ue([(0,oe.property)({type:String})],W.prototype,"moreValuesButtonLabel",void 0);ue([(0,oe.property)({type:String})],W.prototype,"noValuesLabel",void 0);ue([(0,Se.jsonProperty)([])],W.prototype,"options",void 0);ue([(0,oe.property)({type:Boolean})],W.prototype,"multivalued",void 0);ue([(0,oe.property)({type:Boolean})],W.prototype,"disabled",void 0);ue([(0,oe.property)({type:Boolean})],W.prototype,"raiseSelectedOptions",void 0);ue([(0,oe.property)({type:Boolean})],W.prototype,"displayCount",void 0);ue([(0,Se.numberProperty)()],W.prototype,"displayedValuesLimit",void 0);ue([(0,Se.jsonProperty)(void 0)],W.prototype,"filteredOptionsNumberAriaNotification",void 0);ue([(0,oe.property)({type:Boolean})],W.prototype,"hideClearButton",void 0);ue([(0,oe.query)(".ft-filter--slot")],W.prototype,"slotElement",void 0);ue([(0,oe.query)(".ft-filter--container")],W.prototype,"container",void 0);ue([(0,oe.query)(".ft-filter--values")],W.prototype,"valuesContainer",void 0);ue([(0,oe.query)(".ft-filter--levels")],W.prototype,"levelsContainer",void 0);ue([(0,oe.state)()],W.prototype,"lastLevelHasHiddenvalues",void 0);ue([(0,oe.query)(".ft-filter--filter input")],W.prototype,"filterInput",void 0);ue([(0,oe.queryAll)(".ft-filter--levels ft-filter-level")],W.prototype,"levels",void 0);ue([(0,oe.state)()],W.prototype,"withScroll",void 0);ue([(0,oe.state)()],W.prototype,"filter",void 0);ue([(0,oe.state)()],W.prototype,"slideIn",void 0);ue([(0,oe.state)()],W.prototype,"slideOut",void 0)});var Py=l(()=>{"use strict"});var ua,Ri,Iy,mo,Et,Gc=l(()=>{"use strict";ua=c(f()),Ri=c(F()),Iy=c(g()),mo=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},Et=class extends ua.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return Iy.html`
1455
1455
  <slot class="ft-filter-option--slot" @slotchange=${this.updateSubOptionsFromSlot}></slot>
1456
- `}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={};Eo([(0,$i.property)({type:String})],St.prototype,"label",void 0);Eo([(0,$i.property)({type:Object,converter:t=>t})],St.prototype,"value",void 0);Eo([(0,$i.property)({type:Boolean,reflect:!0})],St.prototype,"selected",void 0);Eo([(0,$i.property)({type:Object})],St.prototype,"subOptions",void 0);Eo([(0,ta.jsonProperty)({})],St.prototype,"renderOption",void 0);Eo([(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();ea();wv();zc();Tv();Pv()});var Iv,Dv,qc=l(()=>{"use strict";Iv=u(b()),Dv=Iv.css`
1456
+ `}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}))}};Et.elementDefinitions={};mo([(0,Ri.property)({type:String})],Et.prototype,"label",void 0);mo([(0,Ri.property)({type:Object,converter:t=>t})],Et.prototype,"value",void 0);mo([(0,Ri.property)({type:Boolean,reflect:!0})],Et.prototype,"selected",void 0);mo([(0,Ri.property)({type:Object})],Et.prototype,"subOptions",void 0);mo([(0,ua.jsonProperty)({})],Et.prototype,"renderOption",void 0);mo([(0,Ri.query)(".ft-filter-option--slot")],Et.prototype,"slotElement",void 0)});var My=l(()=>{"use strict"});var Dy,Ny=l(()=>{"use strict";Wc();Gc();Dy={"ft-filter":W,"ft-filter-option":Et}});var Fy,By=l(()=>{"use strict";Fy=c(f());Ny();(0,Fy.customElements)(Dy)});var Uy=l(()=>{"use strict";Ic();Wc();ca();Py();Gc();My();By()});var Vy,zy,Qc=l(()=>{"use strict";Vy=c(g()),zy=Vy.css`
1457
1457
  .ft-accordion {
1458
1458
  box-sizing: border-box;
1459
1459
  }
1460
- `});var Nv,ra,Fv,Mv,pr,Kc=l(()=>{"use strict";Nv=u(b()),ra=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},pr=class extends Fv.FtLitElement{constructor(){super(...arguments),this.multi=!1}render(){return Nv.html`
1460
+ `});var jy,da,qy,Hy,dr,Yc=l(()=>{"use strict";jy=c(g()),da=c(F()),qy=c(f());Qc();Hy=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},dr=class extends qy.FtLitElement{constructor(){super(...arguments),this.multi=!1}render(){return jy.html`
1461
1461
  <div class="ft-accordion">
1462
1462
  <slot @activated=${this.onChange}></slot>
1463
1463
  </div>
1464
- `}onChange(e){e.stopPropagation(),this.multi||this.content.assignedElements().forEach(r=>r.active=r===e.target)}};pr.elementDefinitions={};pr.styles=Dv;Mv([(0,ra.property)({type:Boolean})],pr.prototype,"multi",void 0);Mv([(0,ra.query)("slot")],pr.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`
1464
+ `}onChange(e){e.stopPropagation(),this.multi||this.content.assignedElements().forEach(r=>r.active=r===e.target)}};dr.elementDefinitions={};dr.styles=zy;Hy([(0,da.property)({type:Boolean})],dr.prototype,"multi",void 0);Hy([(0,da.query)("slot")],dr.prototype,"content",void 0)});var Ky=l(()=>{"use strict"});var Wy,ki,Ti,Gy,Xc=l(()=>{"use strict";Wy=c(g()),ki=c(f()),Ti={horizontalSpacing:ki.FtCssVariableFactory.create("--ft-accordion-toggle-horizontal-spacing","","SIZE","16px"),verticalSpacing:ki.FtCssVariableFactory.create("--ft-accordion-toggle-vertical-spacing","","SIZE","16px"),colorOutline:ki.FtCssVariableFactory.external(ki.designSystemVariables.colorOutline,"Design system"),backgroundColor:ki.FtCssVariableFactory.create("--ft-accordion-item-background-color","","COLOR","#FFFFFF")},Gy=Wy.css`
1465
1465
  .ft-accordion-item {
1466
1466
  display: flex;
1467
1467
  flex-direction: column;
1468
- background-color: ${Ii.backgroundColor};
1468
+ background-color: ${Ti.backgroundColor};
1469
1469
  }
1470
1470
 
1471
1471
  .ft-accordion-item--toggle {
@@ -1475,8 +1475,8 @@
1475
1475
  display: flex;
1476
1476
  align-items: center;
1477
1477
  cursor: pointer;
1478
- padding: ${Ii.verticalSpacing} ${Ii.horizontalSpacing};
1479
- gap: calc(${Ii.horizontalSpacing} / 2);
1478
+ padding: ${Ti.verticalSpacing} ${Ti.horizontalSpacing};
1479
+ gap: calc(${Ti.horizontalSpacing} / 2);
1480
1480
  outline: none;
1481
1481
  }
1482
1482
 
@@ -1501,13 +1501,13 @@
1501
1501
  .ft-accordion-item--active .ft-accordion-item--content {
1502
1502
  height: initial;
1503
1503
  overflow: visible;
1504
- padding: ${Ii.verticalSpacing} ${Ii.horizontalSpacing};
1504
+ padding: ${Ti.verticalSpacing} ${Ti.horizontalSpacing};
1505
1505
  }
1506
1506
 
1507
1507
  .ft-accordion-item--separator {
1508
- border-bottom: 1px solid ${Ii.colorOutline};
1508
+ border-bottom: 1px solid ${Ti.colorOutline};
1509
1509
  }
1510
- `});var Sn,Cn,Vv,ia,Dt,Gc=l(()=>{"use strict";Sn=u(b()),Cn=u(B()),Vv=u(m());Ge();ge();wr();Wc();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},Dt=class extends Vv.FtLitElement{constructor(){super(...arguments),this.icon="",this.label="",this.active=!1}render(){return Sn.html`
1510
+ `});var gs,ys,Qy,pa,Mt,Zc=l(()=>{"use strict";gs=c(g()),ys=c(F()),Qy=c(f());Ye();ve();_r();Xc();pa=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},Mt=class extends Qy.FtLitElement{constructor(){super(...arguments),this.icon="",this.label="",this.active=!1}render(){return gs.html`
1511
1511
  <div class="ft-accordion-item ${this.active?"ft-accordion-item--active":""}">
1512
1512
  <div class="ft-accordion-item--toggle"
1513
1513
  part="toggle"
@@ -1518,13 +1518,13 @@
1518
1518
  aria-controls="ft-accordion-item-content"
1519
1519
  aria-expanded="${this.active}">
1520
1520
  <ft-ripple part="toggle-ripple"></ft-ripple>
1521
- ${this.icon?Sn.html`
1521
+ ${this.icon?gs.html`
1522
1522
  <ft-icon .variant=${this.iconVariant} value="${this.icon}"></ft-icon>
1523
1523
  `:null}
1524
- ${this.label?Sn.html`
1524
+ ${this.label?gs.html`
1525
1525
  <ft-typography class="ft-accordion-item--label" variant="body1" part="label">${this.label}
1526
1526
  </ft-typography>
1527
- `:Sn.html`
1527
+ `:gs.html`
1528
1528
  <slot class="ft-accordion-item--label" name="toggle" part="label"></slot>
1529
1529
  `}
1530
1530
  <ft-icon variant="material">${this.active?"expand_less":"expand_more"}</ft-icon>
@@ -1537,7 +1537,7 @@
1537
1537
  </div>
1538
1538
  <div class="ft-accordion-item--separator" part="separator"></div>
1539
1539
  </div>
1540
- `}update(e){super.update(e),e.has("active")&&this.active&&this.dispatchEvent(new Event("activated",{composed:!0,bubbles:!0}))}onToggleKeyDown(e){(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),this.active=!this.active)}};Dt.elementDefinitions={"ft-ripple":L,"ft-typography":j,"ft-icon":ne};Dt.styles=Hv;ia([(0,Cn.property)()],Dt.prototype,"icon",void 0);ia([(0,Cn.property)()],Dt.prototype,"iconVariant",void 0);ia([(0,Cn.property)()],Dt.prototype,"label",void 0);ia([(0,Cn.property)({type:Boolean,reflect:!0})],Dt.prototype,"active",void 0)});var jv=l(()=>{"use strict"});var zv,qv=l(()=>{"use strict";Kc();Gc();zv={"ft-accordion":pr,"ft-accordion-item":Dt}});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 En,U,Qv,Me,Xv,Qc,Yv,Zv,Xc=l(()=>{"use strict";En=u(b()),U=u(m());vr();Nt();go();qt();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,En.css`
1540
+ `}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":k,"ft-typography":z,"ft-icon":ae};Mt.styles=Gy;pa([(0,ys.property)()],Mt.prototype,"icon",void 0);pa([(0,ys.property)()],Mt.prototype,"iconVariant",void 0);pa([(0,ys.property)()],Mt.prototype,"label",void 0);pa([(0,ys.property)({type:Boolean,reflect:!0})],Mt.prototype,"active",void 0)});var Yy=l(()=>{"use strict"});var Xy,Zy=l(()=>{"use strict";Yc();Zc();Xy={"ft-accordion":dr,"ft-accordion-item":Mt}});var Jy,eb=l(()=>{"use strict";Jy=c(f());Zy();(0,Jy.customElements)(Xy)});var tb=l(()=>{"use strict";Yc();Qc();Ky();Zc();Xc();Yy();eb()});var bs,B,rb,Fe,ib,Jc,ob,sb,eu=l(()=>{"use strict";bs=c(g()),B=c(f());yr();Nt();ao();qt();rb=B.FtCssVariableFactory.extend("--ft-chip-color","",B.designSystemVariables.colorOnSurface),Fe={backgroundColor:B.FtCssVariableFactory.extend("--ft-chip-background-color","",B.designSystemVariables.colorSurface),color:rb,fontSize:B.FtCssVariableFactory.extend("--ft-chip-font-size","",_e.fontSize),fontWeight:B.FtCssVariableFactory.extend("--ft-chip-font-weight","",_e.fontWeight),iconSize:B.FtCssVariableFactory.create("--ft-chip-icon-size","","SIZE","18px"),borderRadius:B.FtCssVariableFactory.create("--ft-chip-border-radius","","SIZE",""),rippleColor:B.FtCssVariableFactory.extend("--ft-chip-ripple-color","",rb),horizontalPadding:B.FtCssVariableFactory.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:B.FtCssVariableFactory.create("--ft-chip-vertical-padding","","SIZE","6px"),borderColor:B.FtCssVariableFactory.extend("--ft-chip-border-color","",B.designSystemVariables.colorOutline),opacityDisabled:B.FtCssVariableFactory.external(B.designSystemVariables.colorOpacityDisabled,"Design system")},ib=B.FtCssVariableFactory.extend("--ft-chip-highlighted-color","",B.FtCssVariableFactory.extend("--ft-chip-color","",B.designSystemVariables.colorOnPrimary)),Jc={backgroundColor:B.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color","",B.FtCssVariableFactory.extend("--ft-chip-background-color","",B.designSystemVariables.colorPrimary)),color:ib,rippleColor:B.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color","",ib)},ob={horizontalPadding:B.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:B.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},sb=[B.noTextSelect,bs.css`
1541
1541
  :host {
1542
1542
  display: inline-block;
1543
1543
  max-width: 100%;
@@ -1553,21 +1553,21 @@
1553
1553
  box-sizing: border-box;
1554
1554
  pointer-events: auto;
1555
1555
 
1556
- --chip-internal-font-size: ${Me.fontSize};
1557
- --chip-internal-font-weight: ${Me.fontWeight};
1556
+ --chip-internal-font-size: ${Fe.fontSize};
1557
+ --chip-internal-font-weight: ${Fe.fontWeight};
1558
1558
  --chip-internal-line-height: max(20px, calc(var(--chip-internal-font-size) + 2px));
1559
- ${(0,U.setVariable)(Xe.size,Me.iconSize)};
1560
- --chip-internal-vertical-padding: ${Me.verticalPadding};
1561
- --chip-internal-horizontal-padding: ${Me.horizontalPadding};
1559
+ ${(0,B.setVariable)(Ze.size,Fe.iconSize)};
1560
+ --chip-internal-vertical-padding: ${Fe.verticalPadding};
1561
+ --chip-internal-horizontal-padding: ${Fe.horizontalPadding};
1562
1562
  --chip-internal-icon-padding: 3px;
1563
- --chip-internal-content-height: max(var(--chip-internal-line-height), ${Me.iconSize});
1563
+ --chip-internal-content-height: max(var(--chip-internal-line-height), ${Fe.iconSize});
1564
1564
 
1565
- border: 1px solid ${Me.borderColor};
1566
- color: ${Me.color};
1567
- ${(0,U.setVariable)(q.color,Me.rippleColor)};
1568
- border-radius: var(${(0,En.unsafeCSS)(Me.borderRadius.name)}, calc(var(--chip-internal-content-height) / 2 + var(--chip-internal-vertical-padding)));
1565
+ border: 1px solid ${Fe.borderColor};
1566
+ color: ${Fe.color};
1567
+ ${(0,B.setVariable)(q.color,Fe.rippleColor)};
1568
+ border-radius: var(${(0,bs.unsafeCSS)(Fe.borderRadius.name)}, calc(var(--chip-internal-content-height) / 2 + var(--chip-internal-vertical-padding)));
1569
1569
  padding: calc(var(--chip-internal-vertical-padding) - 1px) calc(var(--chip-internal-horizontal-padding) - 1px);
1570
- background-color: ${Me.backgroundColor};
1570
+ background-color: ${Fe.backgroundColor};
1571
1571
  line-height: var(--chip-internal-content-height);
1572
1572
  }
1573
1573
 
@@ -1577,28 +1577,28 @@
1577
1577
 
1578
1578
  .ft-chip--dense {
1579
1579
  --chip-internal-icon-padding: 3px;
1580
- --chip-internal-vertical-padding: ${Yv.verticalPadding};
1581
- --chip-internal-horizontal-padding: ${Yv.horizontalPadding};
1580
+ --chip-internal-vertical-padding: ${ob.verticalPadding};
1581
+ --chip-internal-horizontal-padding: ${ob.horizontalPadding};
1582
1582
  --chip-internal-line-height: max(16px, calc(var(--chip-internal-font-size) + 2px));
1583
1583
  }
1584
1584
 
1585
1585
  .ft-chip--no-content {
1586
- --chip-internal-horizontal-padding: ${Me.horizontalPadding.get(En.css`var(--chip-internal-vertical-padding)`)};
1586
+ --chip-internal-horizontal-padding: ${Fe.horizontalPadding.get(bs.css`var(--chip-internal-vertical-padding)`)};
1587
1587
  }
1588
1588
 
1589
1589
  .ft-chip--disabled {
1590
1590
  cursor: default;
1591
1591
  pointer-events: none;
1592
1592
  filter: grayscale(1);
1593
- opacity: ${Me.opacityDisabled};
1593
+ opacity: ${Fe.opacityDisabled};
1594
1594
  }
1595
1595
 
1596
1596
  .ft-chip--highlighted {
1597
1597
  border: none;
1598
1598
  padding: var(--chip-internal-vertical-padding) var(--chip-internal-horizontal-padding);
1599
- background-color: ${Qc.backgroundColor};
1600
- ${(0,U.setVariable)(q.color,Qc.rippleColor)};
1601
- color: ${Qc.color};
1599
+ background-color: ${Jc.backgroundColor};
1600
+ ${(0,B.setVariable)(q.color,Jc.rippleColor)};
1601
+ color: ${Jc.color};
1602
1602
  }
1603
1603
 
1604
1604
  .ft-chip--clickable {
@@ -1607,7 +1607,7 @@
1607
1607
  }
1608
1608
 
1609
1609
  .ft-chip:focus {
1610
- outline: 2px solid ${U.designSystemVariables.colorPrimary};
1610
+ outline: 2px solid ${B.designSystemVariables.colorPrimary};
1611
1611
  outline-offset: 2px;
1612
1612
  }
1613
1613
 
@@ -1629,9 +1629,9 @@
1629
1629
  }
1630
1630
 
1631
1631
  .ft-chip--icon-button {
1632
- ${(0,U.setVariable)(I.iconSize,Me.iconSize)};
1633
- ${(0,U.setVariable)(I.horizontalPadding,"var(--chip-internal-icon-padding)")};
1634
- ${(0,U.setVariable)(I.verticalPadding,"var(--chip-internal-icon-padding)")};
1632
+ ${(0,B.setVariable)(P.iconSize,Fe.iconSize)};
1633
+ ${(0,B.setVariable)(P.horizontalPadding,"var(--chip-internal-icon-padding)")};
1634
+ ${(0,B.setVariable)(P.verticalPadding,"var(--chip-internal-icon-padding)")};
1635
1635
  margin: calc((-1) * var(--chip-internal-icon-padding));
1636
1636
  }
1637
1637
 
@@ -1639,9 +1639,9 @@
1639
1639
  vertical-align: bottom;
1640
1640
  display: block;
1641
1641
  margin: 0 var(--chip-internal-horizontal-padding);
1642
- ${(0,U.setVariable)(we.fontSize,"var(--chip-internal-font-size)")};
1643
- ${(0,U.setVariable)(we.fontWeight,"var(--chip-internal-font-weight)")};
1644
- ${(0,U.setVariable)(we.lineHeight,"var(--chip-internal-content-height)")};
1642
+ ${(0,B.setVariable)(_e.fontSize,"var(--chip-internal-font-size)")};
1643
+ ${(0,B.setVariable)(_e.fontWeight,"var(--chip-internal-font-weight)")};
1644
+ ${(0,B.setVariable)(_e.lineHeight,"var(--chip-internal-content-height)")};
1645
1645
  }
1646
1646
 
1647
1647
  .ft-chip--safari-fix .ft-chip--label {
@@ -1677,8 +1677,8 @@
1677
1677
  .ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-button {
1678
1678
  order: -1;
1679
1679
  }
1680
- `]});var oa,Ne,Jv,Ao,et,na,fe,Yc=l(()=>{"use strict";oa=u(b()),Ne=u(B()),Jv=u(it()),Ao=u(m());Ge();ge();wr();Xc();qt();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 Ao.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":Ao.isSafari};return oa.html`
1681
- <div class="${(0,Jv.classMap)(r)}"
1680
+ `]});var ha,Be,nb,go,rt,fa,me,tu=l(()=>{"use strict";ha=c(g()),Be=c(F()),nb=c(st()),go=c(f());Ye();ve();_r();eu();qt();rt=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},fa=class extends CustomEvent{constructor(){super("icon-click")}},me=class extends go.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":go.isSafari};return ha.html`
1681
+ <div class="${(0,nb.classMap)(r)}"
1682
1682
  aria-label="${this.getLabel()}"
1683
1683
  tabindex="${this.interactionsOnChip?0:-1}"
1684
1684
  @keyup=${this.onKeyUp}
@@ -1689,7 +1689,7 @@
1689
1689
  </ft-typography>
1690
1690
  ${this.internalIcon?this.renderIcon():null}
1691
1691
  </div>
1692
- `}get interactionsOnChip(){return this.clickable&&!this.disabled}get interactionsOnIcon(){return(this.iconClickable||this.removable)&&!this.disabled}renderIcon(){return this.interactionsOnIcon?oa.html`
1692
+ `}get interactionsOnChip(){return this.clickable&&!this.disabled}get interactionsOnIcon(){return(this.iconClickable||this.removable)&&!this.disabled}renderIcon(){return this.interactionsOnIcon?ha.html`
1693
1693
  <ft-button round
1694
1694
  class="ft-chip--icon-button"
1695
1695
  @click=${this.onIconClick}
@@ -1700,29 +1700,29 @@
1700
1700
  part="icon-button"
1701
1701
  ?hideTooltip=${this.hideIconTooltip}
1702
1702
  ></ft-button>
1703
- `:oa.html`
1703
+ `:ha.html`
1704
1704
  <div class="ft-chip--icon-container ft-no-text-select" part="icon-container">
1705
1705
  <ft-icon .variant=${this.iconVariant} .value=${this.internalIcon} part="icon"></ft-icon>
1706
1706
  </div>
1707
- `}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,Ao.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":ne,"ft-button":R};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 An(t,e,r){return t?e(t):r?.(t)}var ny=l(()=>{});var Jc=l(()=>{ny()});var sy,ce,H,ay,On=l(()=>{"use strict";sy=u(b()),ce=u(m());Nt();H={fontSize:ce.FtCssVariableFactory.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:ce.FtCssVariableFactory.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:ce.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:ce.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:ce.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:ce.FtCssVariableFactory.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:ce.FtCssVariableFactory.extend("--ft-input-label-border-color","",ce.designSystemVariables.colorOutline),textColor:ce.FtCssVariableFactory.extend("--ft-input-label-text-color","",ce.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:ce.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color","",ce.designSystemVariables.colorOnSurfaceDisabled),backgroundColor:ce.FtCssVariableFactory.extend("--ft-input-label-background-color","",ce.designSystemVariables.colorSurface),borderRadius:ce.FtCssVariableFactory.extend("--ft-input-label-border-radius","",ce.designSystemVariables.borderRadiusS),colorError:ce.FtCssVariableFactory.external(ce.designSystemVariables.colorError,"Design system")},ay=sy.css`
1707
+ `}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new fa))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new fa))}getLabel(){return this.label||this.getTextContent()}getTextContent(){return(0,go.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};me.elementDefinitions={"ft-ripple":k,"ft-typography":z,"ft-icon":ae,"ft-button":w};me.styles=sb;rt([(0,Be.property)({type:Boolean})],me.prototype,"highlighted",void 0);rt([(0,Be.property)({type:Boolean})],me.prototype,"removable",void 0);rt([(0,Be.property)({type:Boolean})],me.prototype,"disabled",void 0);rt([(0,Be.property)({type:Boolean})],me.prototype,"clickable",void 0);rt([(0,Be.property)({type:Boolean})],me.prototype,"iconClickable",void 0);rt([(0,Be.property)({type:Boolean})],me.prototype,"dense",void 0);rt([(0,Be.property)({type:Boolean})],me.prototype,"multiLine",void 0);rt([(0,Be.property)()],me.prototype,"label",void 0);rt([(0,Be.property)()],me.prototype,"iconLabel",void 0);rt([(0,Be.property)({type:Boolean})],me.prototype,"hideIconTooltip",void 0);rt([(0,Be.property)()],me.prototype,"icon",void 0);rt([(0,Be.property)()],me.prototype,"iconVariant",void 0);rt([(0,Be.property)({type:Boolean})],me.prototype,"trailingIcon",void 0);rt([(0,Be.property)()],me.prototype,"typographyVariant",void 0);rt([(0,Be.query)("ft-typography slot")],me.prototype,"slottedContent",void 0)});var ab=l(()=>{"use strict"});var lb,cb=l(()=>{"use strict";tu();lb={"ft-chip":me}});var ub,db=l(()=>{"use strict";ub=c(f());cb();(0,ub.customElements)(lb)});var ru=l(()=>{"use strict";tu();eu();ab();db()});function vs(t,e,r){return t?e(t):r?.(t)}var pb=l(()=>{});var iu=l(()=>{pb()});var hb,de,U,fb,xs=l(()=>{"use strict";hb=c(g()),de=c(f());Nt();U={fontSize:de.FtCssVariableFactory.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:de.FtCssVariableFactory.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:de.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:de.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:de.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:de.FtCssVariableFactory.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:de.FtCssVariableFactory.extend("--ft-input-label-border-color","",de.designSystemVariables.colorOutline),textColor:de.FtCssVariableFactory.extend("--ft-input-label-text-color","",de.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:de.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color","",de.designSystemVariables.colorOnSurfaceDisabled),backgroundColor:de.FtCssVariableFactory.extend("--ft-input-label-background-color","",de.designSystemVariables.colorSurface),borderRadius:de.FtCssVariableFactory.extend("--ft-input-label-border-radius","",de.designSystemVariables.borderRadiusS),colorError:de.FtCssVariableFactory.external(de.designSystemVariables.colorError,"Design system")},fb=hb.css`
1708
1708
  .ft-input-label {
1709
1709
  position: absolute;
1710
1710
  inset: 0;
1711
1711
  display: flex;
1712
- background-color: ${H.backgroundColor};
1713
- border-radius: ${H.borderRadius} ${H.borderRadius} 0 0;
1712
+ background-color: ${U.backgroundColor};
1713
+ border-radius: ${U.borderRadius} ${U.borderRadius} 0 0;
1714
1714
  }
1715
1715
 
1716
1716
  .ft-input-label--outlined {
1717
- border-radius: ${H.borderRadius};
1717
+ border-radius: ${U.borderRadius};
1718
1718
  }
1719
1719
 
1720
1720
  .ft-input-label {
1721
- border-color: ${H.borderColor};
1721
+ border-color: ${U.borderColor};
1722
1722
  }
1723
1723
 
1724
1724
  .ft-input-label.ft-input-label--in-error {
1725
- border-color: ${H.colorError}
1725
+ border-color: ${U.colorError}
1726
1726
  }
1727
1727
 
1728
1728
  .ft-input-label:before,
@@ -1735,7 +1735,7 @@
1735
1735
  }
1736
1736
 
1737
1737
  .ft-input-label:before {
1738
- width: calc(${H.horizontalSpacing} - 4px);
1738
+ width: calc(${U.horizontalSpacing} - 4px);
1739
1739
  flex-shrink: 0;
1740
1740
  }
1741
1741
 
@@ -1751,20 +1751,20 @@
1751
1751
  border-bottom-width: 1px;
1752
1752
  border-bottom-style: solid;
1753
1753
  border-color: inherit;
1754
- color: ${H.textColor};
1754
+ color: ${U.textColor};
1755
1755
  transition: font-size 250ms, line-height 250ms, color 250ms;
1756
- max-width: calc(${H.labelMaxWidth} - 2 * (${H.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
1756
+ max-width: calc(${U.labelMaxWidth} - 2 * (${U.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
1757
1757
  text-overflow: ellipsis;
1758
- ${(0,ce.setVariable)(ft.fontSize,H.fontSize)};
1759
- ${(0,ce.setVariable)(ft.lineHeight,H.fontSize)};
1758
+ ${(0,de.setVariable)(ft.fontSize,U.fontSize)};
1759
+ ${(0,de.setVariable)(ft.lineHeight,U.fontSize)};
1760
1760
  }
1761
1761
 
1762
1762
  .ft-input-label--in-error .ft-input-label--text {
1763
- color: ${H.colorError}
1763
+ color: ${U.colorError}
1764
1764
  }
1765
1765
 
1766
1766
  .ft-input-label--disabled .ft-input-label--text {
1767
- color: ${H.disabledTextColor};
1767
+ color: ${U.disabledTextColor};
1768
1768
  }
1769
1769
 
1770
1770
  .ft-input-label--hidden-text {
@@ -1781,19 +1781,19 @@
1781
1781
  overflow: hidden;
1782
1782
  white-space: nowrap;
1783
1783
  text-overflow: ellipsis;
1784
- padding: ${H.verticalSpacing} 4px;
1785
- margin: calc(${H.verticalSpacing} * -1) 0;
1784
+ padding: ${U.verticalSpacing} 4px;
1785
+ margin: calc(${U.verticalSpacing} * -1) 0;
1786
1786
  max-width: 100%;
1787
1787
  box-sizing: border-box;
1788
1788
  }
1789
1789
 
1790
1790
  .ft-input-label--raised .ft-input-label--text {
1791
- ${(0,ce.setVariable)(ft.fontSize,H.raisedFontSize)};
1792
- ${(0,ce.setVariable)(ft.lineHeight,H.raisedFontSize)};
1791
+ ${(0,de.setVariable)(ft.fontSize,U.raisedFontSize)};
1792
+ ${(0,de.setVariable)(ft.lineHeight,U.raisedFontSize)};
1793
1793
  }
1794
1794
 
1795
1795
  .ft-input-label--raised .ft-input-label--floating-text {
1796
- top: ${H.verticalSpacing};
1796
+ top: ${U.verticalSpacing};
1797
1797
  }
1798
1798
 
1799
1799
  .ft-input-label--outlined .ft-input-label--text,
@@ -1806,36 +1806,36 @@
1806
1806
  .ft-input-label--outlined:before {
1807
1807
  border-left-width: 1px;
1808
1808
  border-left-style: solid;
1809
- border-radius: ${H.borderRadius} 0 0 ${H.borderRadius};
1809
+ border-radius: ${U.borderRadius} 0 0 ${U.borderRadius};
1810
1810
  }
1811
1811
 
1812
1812
  .ft-input-label--outlined:after {
1813
1813
  border-right-width: 1px;
1814
1814
  border-right-style: solid;
1815
- border-radius: 0 ${H.borderRadius} ${H.borderRadius} 0;
1815
+ border-radius: 0 ${U.borderRadius} ${U.borderRadius} 0;
1816
1816
  }
1817
1817
 
1818
1818
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
1819
1819
  padding: 2px 4px;
1820
- z-index: ${H.raisedZIndex};
1821
- background-color: ${H.backgroundColor};
1822
- border-radius: ${H.borderRadius};
1820
+ z-index: ${U.raisedZIndex};
1821
+ background-color: ${U.backgroundColor};
1822
+ border-radius: ${U.borderRadius};
1823
1823
  top: calc((${ft.lineHeight} / -2) + 2px);
1824
1824
  }
1825
1825
 
1826
1826
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
1827
1827
  border-top: none;
1828
1828
  }
1829
- `});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`
1830
- <div class="${(0,cy.classMap)(this.inputLabelClasses)}">
1831
- ${An(this.text,()=>eu.html`
1829
+ `});var ou,su,gb,yb,mb,Li,bb=l(()=>{"use strict";ou=c(g()),su=c(F());iu();gb=c(st()),yb=c(f()),mb=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},Li=class extends yb.FtLitElement{constructor(){super(...arguments),this.text="",this.raised=!1}get inputLabelClasses(){return{}}render(){return ou.html`
1830
+ <div class="${(0,gb.classMap)(this.inputLabelClasses)}">
1831
+ ${vs(this.text,()=>ou.html`
1832
1832
  <div class="ft-input-label--text ft-typography--caption">
1833
1833
  <label class="ft-input-label--floating-text">${this.text}</label>
1834
1834
  <span class="ft-input-label--hidden-text" aria-hidden="true">${this.text}</span>
1835
1835
  </div>
1836
1836
  `)}
1837
1837
  </div>
1838
- `}};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 sa,ru,Qt,iu=l(()=>{"use strict";sa=u(B());Nt();On();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},Qt=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}}};Qt.elementDefinitions={};Qt.styles=[Nr,ay];ru([(0,sa.property)({type:Boolean})],Qt.prototype,"outlined",void 0);ru([(0,sa.property)({type:Boolean})],Qt.prototype,"error",void 0);ru([(0,sa.property)({type:Boolean})],Qt.prototype,"disabled",void 0)});var dy=l(()=>{"use strict"});var hy,fy=l(()=>{"use strict";iu();hy={"ft-input-label":Qt}});var my,gy=l(()=>{"use strict";my=u(m());fy();(0,my.customElements)(hy)});var vy=l(()=>{"use strict";iu();On();dy();gy()});var yy,N,M,by,wn=l(()=>{"use strict";yy=u(b()),N=u(m());On();Nt();vr();go();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`
1838
+ `}};Li.elementDefinitions={};mb([(0,su.property)({type:String})],Li.prototype,"text",void 0);mb([(0,su.property)({type:Boolean})],Li.prototype,"raised",void 0)});var ma,nu,Qt,au=l(()=>{"use strict";ma=c(F());Nt();xs();bb();nu=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},Qt=class extends Li{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}}};Qt.elementDefinitions={};Qt.styles=[Dr,fb];nu([(0,ma.property)({type:Boolean})],Qt.prototype,"outlined",void 0);nu([(0,ma.property)({type:Boolean})],Qt.prototype,"error",void 0);nu([(0,ma.property)({type:Boolean})],Qt.prototype,"disabled",void 0)});var vb=l(()=>{"use strict"});var xb,Sb=l(()=>{"use strict";au();xb={"ft-input-label":Qt}});var Eb,Cb=l(()=>{"use strict";Eb=c(f());Sb();(0,Eb.customElements)(xb)});var Ab=l(()=>{"use strict";au();xs();vb();Cb()});var wb,D,M,Ob,Ss=l(()=>{"use strict";wb=c(g()),D=c(f());xs();Nt();yr();ao();M={labelSize:D.FtCssVariableFactory.create("--ft-select-label-size","","SIZE","11px"),selectedOptionSize:D.FtCssVariableFactory.create("--ft-select-selected-option-size","","SIZE","14px"),verticalSpacing:D.FtCssVariableFactory.create("--ft-select-vertical-spacing","","SIZE","4px"),horizontalSpacing:D.FtCssVariableFactory.create("--ft-select-horizontal-spacing","","SIZE","16px"),optionsHeight:D.FtCssVariableFactory.create("--ft-select-options-height","","SIZE","70vh"),selectedOptionColor:D.FtCssVariableFactory.extend("--ft-select-selected-option-color","",D.designSystemVariables.colorOnSurface),helperColor:D.FtCssVariableFactory.extend("--ft-select-helper-color","",D.designSystemVariables.colorOnSurfaceMedium),optionsColor:D.FtCssVariableFactory.extend("--ft-select-options-color","",D.designSystemVariables.colorOnSurface),optionsZIndex:D.FtCssVariableFactory.create("--ft-select-options-z-index","","NUMBER","3"),backgroundColor:D.FtCssVariableFactory.extend("--ft-select-background-color","",D.designSystemVariables.colorSurface),colorOnSurfaceDisabled:D.FtCssVariableFactory.external(D.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:D.FtCssVariableFactory.external(D.designSystemVariables.colorPrimary,"Design system"),borderRadiusS:D.FtCssVariableFactory.external(D.designSystemVariables.borderRadiusS,"Design system"),elevation02:D.FtCssVariableFactory.external(D.designSystemVariables.elevation02,"Design system"),colorError:D.FtCssVariableFactory.external(D.designSystemVariables.colorError,"Design system")},Ob=wb.css`
1839
1839
  *:focus {
1840
1840
  outline: none;
1841
1841
  }
@@ -1863,13 +1863,13 @@
1863
1863
  padding-right: ${M.horizontalSpacing};
1864
1864
  gap: 8px;
1865
1865
  color: ${M.selectedOptionColor};
1866
- ${(0,N.setVariable)(q.color,M.selectedOptionColor)};
1866
+ ${(0,D.setVariable)(q.color,M.selectedOptionColor)};
1867
1867
  }
1868
1868
 
1869
1869
  .ft-select--input-panel,
1870
1870
  .ft-select--options {
1871
- ${(0,N.setVariable)(q.opacityContentOnSurfaceHover,"0.08")};
1872
- ${(0,N.setVariable)(q.opacityContentOnSurfacePressed,"0.04")};
1871
+ ${(0,D.setVariable)(q.opacityContentOnSurfaceHover,"0.08")};
1872
+ ${(0,D.setVariable)(q.opacityContentOnSurfacePressed,"0.04")};
1873
1873
  }
1874
1874
 
1875
1875
  .ft-select--input-panel > *:not(ft-ripple) {
@@ -1887,12 +1887,12 @@
1887
1887
  }
1888
1888
 
1889
1889
  ft-input-label {
1890
- ${(0,N.setVariable)(H.fontSize,M.selectedOptionSize)};
1891
- ${(0,N.setVariable)(H.raisedFontSize,M.labelSize)};
1892
- ${(0,N.setVariable)(H.verticalSpacing,M.verticalSpacing)};
1893
- ${(0,N.setVariable)(H.horizontalSpacing,M.horizontalSpacing)};
1894
- ${(0,N.setVariable)(H.backgroundColor,M.backgroundColor)};
1895
- ${(0,N.setVariable)(H.labelMaxWidth,`calc(100% - ${Xe.size} - 8px)`)};
1890
+ ${(0,D.setVariable)(U.fontSize,M.selectedOptionSize)};
1891
+ ${(0,D.setVariable)(U.raisedFontSize,M.labelSize)};
1892
+ ${(0,D.setVariable)(U.verticalSpacing,M.verticalSpacing)};
1893
+ ${(0,D.setVariable)(U.horizontalSpacing,M.horizontalSpacing)};
1894
+ ${(0,D.setVariable)(U.backgroundColor,M.backgroundColor)};
1895
+ ${(0,D.setVariable)(U.labelMaxWidth,`calc(100% - ${Ze.size} - 8px)`)};
1896
1896
  }
1897
1897
 
1898
1898
  .ft-select:not(.ft-select--disabled):focus-within ft-icon {
@@ -1900,8 +1900,8 @@
1900
1900
  }
1901
1901
 
1902
1902
  .ft-select:not(.ft-select--disabled):focus-within ft-input-label {
1903
- ${(0,N.setVariable)(H.borderColor,M.colorPrimary)};
1904
- ${(0,N.setVariable)(H.textColor,M.colorPrimary)};
1903
+ ${(0,D.setVariable)(U.borderColor,M.colorPrimary)};
1904
+ ${(0,D.setVariable)(U.textColor,M.colorPrimary)};
1905
1905
  }
1906
1906
 
1907
1907
  .ft-select--selected-option {
@@ -1911,8 +1911,8 @@
1911
1911
  overflow: hidden;
1912
1912
  white-space: nowrap;
1913
1913
  text-overflow: ellipsis;
1914
- ${(0,N.setVariable)(yr.fontSize,M.selectedOptionSize)};
1915
- ${(0,N.setVariable)(yr.lineHeight,M.selectedOptionSize)};
1914
+ ${(0,D.setVariable)(br.fontSize,M.selectedOptionSize)};
1915
+ ${(0,D.setVariable)(br.lineHeight,M.selectedOptionSize)};
1916
1916
  }
1917
1917
 
1918
1918
  .ft-select--in-error .ft-select--selected-option {
@@ -1971,10 +1971,10 @@
1971
1971
  .ft-select:not(.ft-select--has-option-selected) .ft-select--selected-option {
1972
1972
  opacity: 0;
1973
1973
  }
1974
- `});var ou,xy,Sy,Cy=l(()=>{"use strict";vr();ou=u(m());wn();xy=u(b()),Sy=xy.css`
1974
+ `});var lu,_b,Rb,Tb=l(()=>{"use strict";yr();lu=c(f());Ss();_b=c(g()),Rb=_b.css`
1975
1975
  .ft-select--option {
1976
- ${(0,ou.setVariable)(q.opacityContentOnSurfaceHover,"0.08")};
1977
- ${(0,ou.setVariable)(q.opacityContentOnSurfacePressed,"0.04")};
1976
+ ${(0,lu.setVariable)(q.opacityContentOnSurfaceHover,"0.08")};
1977
+ ${(0,lu.setVariable)(q.opacityContentOnSurfacePressed,"0.04")};
1978
1978
  }
1979
1979
 
1980
1980
  .ft-select--option > *:not(ft-ripple) {
@@ -1998,8 +1998,8 @@
1998
1998
  overflow: hidden;
1999
1999
  }
2000
2000
 
2001
- `});var aa,Oo,Ey,ei,Rn,qe,Ay=l(()=>{"use strict";aa=u(m());Ge();ge();Oo=u(b()),Ey=u(it()),ei=u(B());Cy();Rn=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 Oo.html`
2002
- <div class="${(0,Ey.classMap)(i)}"
2001
+ `});var ga,yo,kb,Yr,Es,We,Lb=l(()=>{"use strict";ga=c(f());Ye();ve();yo=c(g()),kb=c(st()),Yr=c(F());Tb();Es=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},We=class extends ga.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 yo.html`
2002
+ <div class="${(0,kb.classMap)(i)}"
2003
2003
  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,"")}"
2004
2004
  tabindex="0"
2005
2005
  aria-label="${this.label}"
@@ -2008,17 +2008,17 @@
2008
2008
  <ft-ripple ?primary=${this.selected} ?activated=${this.selected}></ft-ripple>
2009
2009
  <slot @slotchange=${this.onSlotChange}>
2010
2010
  </slot>
2011
- ${this.isSlotEmpty?Oo.html`<span>${this.label}</span>`:Oo.html``}
2011
+ ${this.isSlotEmpty?yo.html`<span>${this.label}</span>`:yo.html``}
2012
2012
  </div>
2013
- `}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={...Oo.LitElement.shadowRootOptions,delegatesFocus:!0};qe.styles=[Sy,Mr];Rn([(0,ei.property)({type:String})],qe.prototype,"label",void 0);Rn([(0,ei.property)({type:Object,converter:t=>t})],qe.prototype,"value",void 0);Rn([(0,ei.property)({type:Boolean,reflect:!0})],qe.prototype,"selected",void 0);Rn([(0,ei.query)("slot")],qe.prototype,"slotElement",void 0);Rn([(0,ei.state)()],qe.prototype,"isSlotEmpty",void 0)});var wo,Ae,Oy,wy,Mt,Fe,oe,nu=l(()=>{"use strict";wo=u(b()),Ae=u(B()),Oy=u(it()),wy=u(Tr());Jc();$s();Mt=u(m());ge();vy();Ge();wr();wn();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},oe=class t extends Mt.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,Mt.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 wo.html`
2014
- <div class="${(0,Oy.classMap)(p)}" part="container">
2013
+ `}onSlotChange(){this.isSlotEmpty=(0,ga.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}))}};We.elementDefinitions={"ft-ripple":k};We.shadowRootOptions={...yo.LitElement.shadowRootOptions,delegatesFocus:!0};We.styles=[Rb,Mr];Es([(0,Yr.property)({type:String})],We.prototype,"label",void 0);Es([(0,Yr.property)({type:Object,converter:t=>t})],We.prototype,"value",void 0);Es([(0,Yr.property)({type:Boolean,reflect:!0})],We.prototype,"selected",void 0);Es([(0,Yr.query)("slot")],We.prototype,"slotElement",void 0);Es([(0,Yr.state)()],We.prototype,"isSlotEmpty",void 0)});var bo,Oe,$b,Pb,Dt,Ue,se,cu=l(()=>{"use strict";bo=c(g()),Oe=c(F()),$b=c(st()),Pb=c(Tr());iu();zn();Dt=c(f());ve();Ab();Ye();_r();Ss();Lb();Ue=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},se=class t extends Dt.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,Dt.last)(this.optionsList)}render(){var e,r,i,s,o;let n=this.hasOptionsMenuOpen,a=this.disabled||!this.hasOptions,u=((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,d={"ft-select":!0,"ft-select--filled":!this.outlined,"ft-select--outlined":this.outlined,"ft-select--disabled":a,"ft-select--options-displayed":n,"ft-select--has-option-selected":u,"ft-select--no-label":!this.label,"ft-select--fixed":this.fixedMenuPosition,"ft-select--in-error":this.error};return bo.html`
2014
+ <div class="${(0,$b.classMap)(d)}" part="container">
2015
2015
  <div class="ft-select--main-panel" part="main-panel">
2016
2016
  <ft-input-label text="${this.label}"
2017
2017
  part="label"
2018
2018
  id="label"
2019
2019
  ?disabled=${a}
2020
2020
  ?outlined=${this.outlined}
2021
- ?raised=${c||s}
2021
+ ?raised=${u||n}
2022
2022
  ?error=${this.error}
2023
2023
  ></ft-input-label>
2024
2024
  <div class="ft-select--input-panel"
@@ -2026,21 +2026,21 @@
2026
2026
  tabindex="${a?"-1":"0"}"
2027
2027
  @click=${()=>{this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=this.optionsDisplayed}}
2028
2028
  @keydown=${this.onMainPanelKeyDown}
2029
- aria-label="${nr(this.ariaLabel)}"
2030
- aria-labelledby="${An(!this.ariaLabel,()=>"label")}"
2029
+ aria-label="${sr(this.ariaLabel)}"
2030
+ aria-labelledby="${vs(!this.ariaLabel,()=>"label")}"
2031
2031
  aria-haspopup="listbox"
2032
- aria-expanded="${s}"
2033
- aria-activedescendant="${nr(this.getOptionId(this.selectedOption))}"
2032
+ aria-expanded="${n}"
2033
+ aria-activedescendant="${sr(this.getOptionId(this.selectedOption))}"
2034
2034
  role="combobox">
2035
2035
  <ft-ripple ?disabled=${a} ?activated=${!this.outlined}></ft-ripple>
2036
2036
  <slot name="input-value">
2037
- <ft-typography variant="${Q.body1}"
2038
- aria-hidden="${c?"false":"true"}"
2037
+ <ft-typography variant="${Y.body1}"
2038
+ aria-hidden="${u?"false":"true"}"
2039
2039
  class="ft-select--selected-option">
2040
- ${(n=(o=this.selectedOption)===null||o===void 0?void 0:o.label)!==null&&n!==void 0?n:this.label}
2040
+ ${(o=(s=this.selectedOption)===null||s===void 0?void 0:s.label)!==null&&o!==void 0?o:this.label}
2041
2041
  </ft-typography>
2042
2042
  </slot>
2043
- <ft-icon aria-hidden="true" .value=${s?Ce.THIN_ARROW_UP:Ce.THIN_ARROW}></ft-icon>
2043
+ <ft-icon aria-hidden="true" .value=${n?Ae.THIN_ARROW_UP:Ae.THIN_ARROW}></ft-icon>
2044
2044
  </div>
2045
2045
  <div class="ft-select--options"
2046
2046
  part="options"
@@ -2051,49 +2051,49 @@
2051
2051
  @option-change=${this.updateOptionsFromSlot}
2052
2052
  >
2053
2053
  </slot>
2054
- ${An(this.isSlotEmpty,()=>(0,wy.repeat)(this.options,d=>d.value,d=>this.renderOption(d)))}
2054
+ ${vs(this.isSlotEmpty,()=>(0,Pb.repeat)(this.options,p=>p.value,p=>this.renderOption(p)))}
2055
2055
  </div>
2056
2056
  </div>
2057
2057
  <slot name="helper" part="helper">
2058
- ${this.helper?wo.html`
2059
- <ft-typography class="ft-select--helper-text" variant="${Q.caption}">${this.helper}
2060
- </ft-typography>`:wo.nothing}
2058
+ ${this.helper?bo.html`
2059
+ <ft-typography class="ft-select--helper-text" variant="${Y.caption}">${this.helper}
2060
+ </ft-typography>`:bo.nothing}
2061
2061
  </slot>
2062
2062
  </div>
2063
- `}renderOption(e){let r=this.selectedOption===e;return wo.html`
2063
+ `}renderOption(e){let r=this.selectedOption===e;return bo.html`
2064
2064
  <ft-select-option
2065
2065
  ?selected=${r}
2066
2066
  label="${e.label}"
2067
2067
  .value=${e.value}
2068
2068
  ></ft-select-option>
2069
- `}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.optionsDisplayed?document.addEventListener("click",this.hideOptions):document.removeEventListener("click",this.hideOptions)),e.has("optionsDisplayed")&&this.hasOptionsMenuOpen){this.optionsMenu.style.minWidth=this.mainPanel.getBoundingClientRect().width+"px";let o=["bottom","top"];(0,Mt.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,Mt.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,Mt.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,Mt.deepEqual)(o.value,e));i&&this.selectOption(i,r)}selectOption(e,r=!0){var i,o;if(!(0,Mt.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}};oe.elementDefinitions={"ft-input-label":Qt,"ft-typography":j,"ft-ripple":L,"ft-icon":ne,"ft-select-option":qe};oe.searchTimeoutMilliseconds=2e3;oe.styles=[Nr,by];Fe([(0,Ae.property)({type:String})],oe.prototype,"label",void 0);Fe([(0,Ae.property)({type:String})],oe.prototype,"ariaLabel",void 0);Fe([(0,Ae.property)({type:String})],oe.prototype,"helper",void 0);Fe([(0,Ae.property)({type:Boolean})],oe.prototype,"outlined",void 0);Fe([(0,Ae.property)({type:Boolean})],oe.prototype,"disabled",void 0);Fe([(0,Ae.property)({type:Boolean})],oe.prototype,"error",void 0);Fe([(0,Ae.property)({type:Boolean})],oe.prototype,"fixedMenuPosition",void 0);Fe([(0,Ae.property)({type:Array})],oe.prototype,"options",void 0);Fe([(0,Ae.state)()],oe.prototype,"selectedOption",void 0);Fe([(0,Ae.state)()],oe.prototype,"optionsDisplayed",void 0);Fe([(0,Ae.state)()],oe.prototype,"focusOptions",void 0);Fe([(0,Ae.state)()],oe.prototype,"currentSearch",void 0);Fe([(0,Ae.state)()],oe.prototype,"lastSearchInputDate",void 0);Fe([(0,Ae.query)(".ft-select")],oe.prototype,"container",void 0);Fe([(0,Ae.query)(".ft-select--options")],oe.prototype,"optionsMenu",void 0);Fe([(0,Ae.query)(".ft-select--input-panel")],oe.prototype,"mainPanel",void 0);Fe([(0,Ae.query)("slot:not([name])")],oe.prototype,"optionsSlot",void 0)});var Ry=l(()=>{"use strict"});var Ty,_y=l(()=>{"use strict";nu();Ty={"ft-select":oe,"ft-select-option":qe}});var ky,Ly=l(()=>{"use strict";ky=u(m());_y();(0,ky.customElements)(Ty)});var Py=l(()=>{"use strict";nu();wn();Ry();Ly()});var $y,Xt,Be,Iy,la=l(()=>{"use strict";$y=u(b()),Xt=u(m()),Be={display:Xt.FtCssVariableFactory.create("--ft-skeleton--display","","DISPLAY","block"),width:Xt.FtCssVariableFactory.create("--ft-skeleton--width","","SIZE","100%"),height:Xt.FtCssVariableFactory.create("--ft-skeleton--height","","SIZE","20px"),backgroundColor:Xt.FtCssVariableFactory.create("--ft-skeleton--background-color","","COLOR","#f1f1f1"),glareWidth:Xt.FtCssVariableFactory.create("--ft-skeleton--glare-width","","SIZE","200px"),glareColor:Xt.FtCssVariableFactory.create("--ft-skeleton--glare-color","","COLOR","rgba(255, 255, 255, .6)"),animationDuration:Xt.FtCssVariableFactory.create("--ft-skeleton--animation-duration","","UNKNOWN","2s"),borderRadiusM:Xt.FtCssVariableFactory.external(Xt.designSystemVariables.borderRadiusM,"Design system")},Iy=$y.css`
2069
+ `}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.optionsDisplayed?document.addEventListener("click",this.hideOptions):document.removeEventListener("click",this.hideOptions)),e.has("optionsDisplayed")&&this.hasOptionsMenuOpen){this.optionsMenu.style.minWidth=this.mainPanel.getBoundingClientRect().width+"px";let s=["bottom","top"];(0,Dt.computeOffsetAutoPosition)(this.mainPanel,this.optionsMenu,"bottom",s,"fixed",M.optionsHeight,0).then(({x:o,y:n})=>{this.optionsMenu.style.left=`${o}px`,this.optionsMenu.style.top=`${n}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,Dt.isSlotEmptyOrWithoutContent)(this.optionsSlot);let i=(r=this.optionsSlot)===null||r===void 0?void 0:r.assignedElements().map(s=>s);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 s,o=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(),s=this.optionsList[(o-1+this.optionsList.length)%this.optionsList.length];break;case"ArrowDown":e.preventDefault(),e.stopPropagation(),s=this.optionsList[(o+1)%this.optionsList.length];break;default:if(e.key.length!=1)break;this.isKeyAlphanumeric(e.key)&&(s=this.handleAlphanumericPress(e.key));break}s?.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(s=>{var o;return((o=s.label)===null||o===void 0?void 0:o.toLowerCase().substring(0,this.currentSearch.length))===this.currentSearch});return this.lastSearchInputDate=r,i&&this.optionsList.find(s=>s.value===i.value)}getOptionId(e){if(!e)return;let r=this.options.findIndex(i=>(0,Dt.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(s=>(0,Dt.deepEqual)(s.value,e));i&&this.selectOption(i,r)}selectOption(e,r=!0){var i,s;if(!(0,Dt.deepEqual)((i=this.selectedOption)===null||i===void 0?void 0:i.value,e?.value)){this.selectedOption=e;for(let o of this.options)o.selected=o===e;r&&this.dispatchEvent(new CustomEvent("change",{detail:(s=this.selectedOption)===null||s===void 0?void 0:s.value}))}this.optionsDisplayed=!1}};se.elementDefinitions={"ft-input-label":Qt,"ft-typography":z,"ft-ripple":k,"ft-icon":ae,"ft-select-option":We};se.searchTimeoutMilliseconds=2e3;se.styles=[Dr,Ob];Ue([(0,Oe.property)({type:String})],se.prototype,"label",void 0);Ue([(0,Oe.property)({type:String})],se.prototype,"ariaLabel",void 0);Ue([(0,Oe.property)({type:String})],se.prototype,"helper",void 0);Ue([(0,Oe.property)({type:Boolean})],se.prototype,"outlined",void 0);Ue([(0,Oe.property)({type:Boolean})],se.prototype,"disabled",void 0);Ue([(0,Oe.property)({type:Boolean})],se.prototype,"error",void 0);Ue([(0,Oe.property)({type:Boolean})],se.prototype,"fixedMenuPosition",void 0);Ue([(0,Oe.property)({type:Array})],se.prototype,"options",void 0);Ue([(0,Oe.state)()],se.prototype,"selectedOption",void 0);Ue([(0,Oe.state)()],se.prototype,"optionsDisplayed",void 0);Ue([(0,Oe.state)()],se.prototype,"focusOptions",void 0);Ue([(0,Oe.state)()],se.prototype,"currentSearch",void 0);Ue([(0,Oe.state)()],se.prototype,"lastSearchInputDate",void 0);Ue([(0,Oe.query)(".ft-select")],se.prototype,"container",void 0);Ue([(0,Oe.query)(".ft-select--options")],se.prototype,"optionsMenu",void 0);Ue([(0,Oe.query)(".ft-select--input-panel")],se.prototype,"mainPanel",void 0);Ue([(0,Oe.query)("slot:not([name])")],se.prototype,"optionsSlot",void 0)});var Ib=l(()=>{"use strict"});var Mb,Db=l(()=>{"use strict";cu();Mb={"ft-select":se,"ft-select-option":We}});var Nb,Fb=l(()=>{"use strict";Nb=c(f());Db();(0,Nb.customElements)(Mb)});var Bb=l(()=>{"use strict";cu();Ss();Ib();Fb()});var Ub,Yt,Ve,Vb,ya=l(()=>{"use strict";Ub=c(g()),Yt=c(f()),Ve={display:Yt.FtCssVariableFactory.create("--ft-skeleton--display","","DISPLAY","block"),width:Yt.FtCssVariableFactory.create("--ft-skeleton--width","","SIZE","100%"),height:Yt.FtCssVariableFactory.create("--ft-skeleton--height","","SIZE","20px"),backgroundColor:Yt.FtCssVariableFactory.create("--ft-skeleton--background-color","","COLOR","#f1f1f1"),glareWidth:Yt.FtCssVariableFactory.create("--ft-skeleton--glare-width","","SIZE","200px"),glareColor:Yt.FtCssVariableFactory.create("--ft-skeleton--glare-color","","COLOR","rgba(255, 255, 255, .6)"),animationDuration:Yt.FtCssVariableFactory.create("--ft-skeleton--animation-duration","","UNKNOWN","2s"),borderRadiusM:Yt.FtCssVariableFactory.external(Yt.designSystemVariables.borderRadiusM,"Design system")},Vb=Ub.css`
2070
2070
  :host {
2071
- width: ${Be.width};
2072
- height: ${Be.height};
2073
- display: ${Be.display};
2071
+ width: ${Ve.width};
2072
+ height: ${Ve.height};
2073
+ display: ${Ve.display};
2074
2074
  overflow: hidden;
2075
- border-radius: ${Be.borderRadiusM};
2075
+ border-radius: ${Ve.borderRadiusM};
2076
2076
  background: linear-gradient(
2077
2077
  90deg,
2078
2078
  transparent,
2079
- ${Be.glareColor} calc(0.45 * ${Be.glareWidth}),
2080
- ${Be.glareColor} calc(0.55 * ${Be.glareWidth}),
2081
- transparent ${Be.glareWidth}
2082
- ), ${Be.backgroundColor};
2079
+ ${Ve.glareColor} calc(0.45 * ${Ve.glareWidth}),
2080
+ ${Ve.glareColor} calc(0.55 * ${Ve.glareWidth}),
2081
+ transparent ${Ve.glareWidth}
2082
+ ), ${Ve.backgroundColor};
2083
2083
  background-repeat: repeat-y;
2084
2084
  background-size: 100vw 100vh;
2085
2085
  background-attachment: fixed;
2086
- background-position: calc(${Be.glareWidth} * -1) 0;
2087
- animation: shine ${Be.animationDuration} infinite;
2086
+ background-position: calc(${Ve.glareWidth} * -1) 0;
2087
+ animation: shine ${Ve.animationDuration} infinite;
2088
2088
  animation-timing-function: linear;
2089
2089
  }
2090
2090
 
2091
2091
  @keyframes shine {
2092
2092
  to {
2093
- background-position: calc(100vw + ${Be.glareWidth}) 0, calc(${Be.glareWidth} * -1) 0;
2093
+ background-position: calc(100vw + ${Ve.glareWidth}) 0, calc(${Ve.glareWidth} * -1) 0;
2094
2094
  }
2095
2095
  }
2096
- `});var P,su,_,Dy,My,ca=l(()=>{"use strict";P=u(m()),su=u(b());Ri();On();wn();la();Zs();ea();Nt();_={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`
2096
+ `});var L,uu,_,zb,Hb,ba=l(()=>{"use strict";L=c(f()),uu=c(g());Ei();xs();Ss();ya();aa();ca();Nt();_={height:L.FtCssVariableFactory.create("--ft-search-bar-height","","SIZE","38px"),borderRadius:L.FtCssVariableFactory.extend("--ft-search-bar-border-radius","",L.designSystemVariables.borderRadiusS),mobileOpenPosition:L.FtCssVariableFactory.create("--ft-search-bar-mobile-open-position","","POSITION","fixed"),mobileOpenTop:L.FtCssVariableFactory.create("--ft-search-bar-mobile-open-top","","SIZE","0"),mobileOpenBottom:L.FtCssVariableFactory.create("--ft-search-bar-mobile-open-bottom","","SIZE","0"),mobileOpenLeft:L.FtCssVariableFactory.create("--ft-search-bar-mobile-open-left","","SIZE","0"),mobileOpenRight:L.FtCssVariableFactory.create("--ft-search-bar-mobile-open-right","","SIZE","0"),desktopFiltersHeight:L.FtCssVariableFactory.create("--ft-search-bar-desktop-filters-height","","SIZE","350px"),floatingZIndex:L.FtCssVariableFactory.create("--ft-search-bar-floating-components-z-index","","NUMBER","3"),colorSurface:L.FtCssVariableFactory.external(L.designSystemVariables.colorSurface,"Design system"),colorOnSurface:L.FtCssVariableFactory.external(L.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:L.FtCssVariableFactory.external(L.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOutline:L.FtCssVariableFactory.external(L.designSystemVariables.colorOutline,"Design system"),colorPrimary:L.FtCssVariableFactory.external(L.designSystemVariables.colorPrimary,"Design system"),elevation02:L.FtCssVariableFactory.external(L.designSystemVariables.elevation02,"Design system"),buttonColor:L.FtCssVariableFactory.external(P.color,"Button"),buttonRippleColor:L.FtCssVariableFactory.external(P.rippleColor,"Button"),activeItemBorderColor:L.FtCssVariableFactory.extend("--ft-search-bar-active-border-color","",L.designSystemVariables.colorPrimary)},zb=uu.css`
2097
2097
  * {
2098
2098
  box-sizing: border-box;
2099
2099
  }
@@ -2141,8 +2141,8 @@
2141
2141
  }
2142
2142
 
2143
2143
  .ft-search-bar--skeleton {
2144
- ${(0,P.setVariable)(Be.height,_.height)};
2145
- ${(0,P.setVariable)(Be.borderRadiusM,_.borderRadius)};
2144
+ ${(0,L.setVariable)(Ve.height,_.height)};
2145
+ ${(0,L.setVariable)(Ve.borderRadiusM,_.borderRadius)};
2146
2146
  }
2147
2147
 
2148
2148
  .ft-search-bar--floating-panel-open .ft-search-bar {
@@ -2200,11 +2200,11 @@
2200
2200
  .ft-search-bar > ft-button,
2201
2201
  .ft-search-bar--actions ft-button {
2202
2202
  flex-shrink: 0;
2203
- ${(0,P.setVariable)(I.backgroundColor,"transparent")};
2203
+ ${(0,L.setVariable)(P.backgroundColor,"transparent")};
2204
2204
  }
2205
2205
 
2206
2206
  .ft-search-bar--left-action {
2207
- ${(0,P.setVariable)(I.borderRadius,`calc(${_.borderRadius} - 1px) 0 0 calc(${_.borderRadius} - 1px)`)};
2207
+ ${(0,L.setVariable)(P.borderRadius,`calc(${_.borderRadius} - 1px) 0 0 calc(${_.borderRadius} - 1px)`)};
2208
2208
  border-right: 1px solid ${_.colorOutline};
2209
2209
  height: 100%;
2210
2210
  }
@@ -2214,7 +2214,7 @@
2214
2214
  }
2215
2215
 
2216
2216
  .ft-search-bar--floating-panel-open .ft-search-bar--left-action {
2217
- ${(0,P.setVariable)(I.borderRadius,`calc(${_.borderRadius} - 1px) 0 0 0`)};
2217
+ ${(0,L.setVariable)(P.borderRadius,`calc(${_.borderRadius} - 1px) 0 0 0`)};
2218
2218
  }
2219
2219
 
2220
2220
  .ft-search-bar .ft-search-bar--launch-search,
@@ -2228,9 +2228,9 @@
2228
2228
  }
2229
2229
 
2230
2230
  .ft-search-bar--left-action.ft-search-bar--content-locale {
2231
- ${(0,P.setVariable)(H.borderColor,"transparent")};
2232
- ${(0,P.setVariable)(H.borderRadius,`calc(${_.borderRadius} - 1px)`)};
2233
- ${(0,P.setVariable)(M.selectedOptionColor,_.buttonColor)};
2231
+ ${(0,L.setVariable)(U.borderColor,"transparent")};
2232
+ ${(0,L.setVariable)(U.borderRadius,`calc(${_.borderRadius} - 1px)`)};
2233
+ ${(0,L.setVariable)(M.selectedOptionColor,_.buttonColor)};
2234
2234
  }
2235
2235
 
2236
2236
  .ft-search-bar--left-action.ft-search-bar--content-locale,
@@ -2256,7 +2256,7 @@
2256
2256
  flex-direction: column;
2257
2257
  max-height: 100%;
2258
2258
  max-width: 100%;
2259
- color: ${pt.colorOnSurface};
2259
+ color: ${ht.colorOnSurface};
2260
2260
  }
2261
2261
 
2262
2262
  [part="content-locale-selector"] > ft-radio-group {
@@ -2274,7 +2274,7 @@
2274
2274
  flex-shrink: 0;
2275
2275
  padding: 0 10px;
2276
2276
  margin-bottom: 8px;
2277
- ${(0,P.setVariable)(C.fontSize,"14px")};
2277
+ ${(0,L.setVariable)(x.fontSize,"14px")};
2278
2278
  }
2279
2279
 
2280
2280
  [part="content-locale-selector-label"] {
@@ -2282,18 +2282,18 @@
2282
2282
  flex-shrink: 1;
2283
2283
  flex-grow: 1;
2284
2284
  word-break: break-word;
2285
- ${(0,P.setVariable)(C.lineHeight,"22px")};
2286
- ${(0,P.setVariable)(C.fontWeight,"bold")};
2285
+ ${(0,L.setVariable)(x.lineHeight,"22px")};
2286
+ ${(0,L.setVariable)(x.fontWeight,"bold")};
2287
2287
  }
2288
2288
 
2289
- `,My=su.css`
2289
+ `,Hb=uu.css`
2290
2290
  .ft-search-bar--presets {
2291
2291
  min-width: 200px;
2292
2292
  }
2293
2293
 
2294
2294
  .ft-search-bar--desktop-menu .ft-search-bar--presets {
2295
2295
  margin-right: auto;
2296
- ${(0,P.setVariable)(M.optionsZIndex,"2")};
2296
+ ${(0,L.setVariable)(M.optionsZIndex,"2")};
2297
2297
  }
2298
2298
 
2299
2299
  .ft-search-bar--desktop-menu {
@@ -2347,7 +2347,7 @@
2347
2347
  .ft-search-bar--desktop-menu .ft-search-bar--filters-container {
2348
2348
  display: block;
2349
2349
  height: ${_.desktopFiltersHeight};
2350
- ${(0,P.setVariable)(Je.gap,"16px")};
2350
+ ${(0,L.setVariable)(tt.gap,"16px")};
2351
2351
  }
2352
2352
 
2353
2353
  .ft-search-bar--desktop-menu ft-filter {
@@ -2362,15 +2362,15 @@
2362
2362
  }
2363
2363
 
2364
2364
  .ft-search-bar--desktop-menu [data-filters-count="2"] ft-filter {
2365
- max-width: calc(50% - ${Je.gap} / 2);
2365
+ max-width: calc(50% - ${tt.gap} / 2);
2366
2366
  }
2367
2367
 
2368
2368
  .ft-search-bar--desktop-menu [data-filters-count="3"] ft-filter {
2369
- max-width: max(250px, calc(33% - 2 * ${Je.gap} / 3));
2369
+ max-width: max(250px, calc(33% - 2 * ${tt.gap} / 3));
2370
2370
  }
2371
2371
 
2372
2372
  .ft-search-bar--desktop-menu [data-filters-count="4"] ft-filter {
2373
- max-width: max(250px, calc(25% - 3 * ${Je.gap} / 4));
2373
+ max-width: max(250px, calc(25% - 3 * ${tt.gap} / 4));
2374
2374
  }
2375
2375
 
2376
2376
  .ft-search-bar--hierarchical-filter {
@@ -2447,16 +2447,16 @@
2447
2447
  .ft-search-bar--desktop-menu .ft-search-bar--launch-search {
2448
2448
  margin: 0;
2449
2449
  }
2450
- `});var Ny,Fy,ti,au=l(()=>{"use strict";Ny=u(b()),Fy=u(m());la();ti=class extends Fy.FtLitElement{render(){return Ny.html`
2451
- `}};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();la();By();jy()});var dr,lu,Ro,hr,ua=l(()=>{"use strict";dr=u(b()),lu=u(Tr());wr();Ro=u(m());ca();Ge();hr=class{constructor(e,r=300){this.listboxId="suggestManager",this.searchBar=e,this.updateDebouncer=new Ro.Debouncer(r)}render(){let e=this.recentSearchesMatchingQuery;return dr.html`
2450
+ `});var jb,qb,Xr,du=l(()=>{"use strict";jb=c(g()),qb=c(f());ya();Xr=class extends qb.FtLitElement{render(){return jb.html`
2451
+ `}};Xr.elementDefinitions={};Xr.styles=Vb});var Kb=l(()=>{"use strict"});var Wb,Gb=l(()=>{"use strict";du();Wb={"ft-skeleton":Xr}});var Qb,Yb=l(()=>{"use strict";Qb=c(f());Gb();(0,Qb.customElements)(Wb)});var Xb=l(()=>{"use strict";du();ya();Kb();Yb()});var pr,pu,vo,hr,va=l(()=>{"use strict";pr=c(g()),pu=c(Tr());_r();vo=c(f());ba();Ye();hr=class{constructor(e,r=300){this.listboxId="suggestManager",this.searchBar=e,this.updateDebouncer=new vo.Debouncer(r)}render(){let e=this.recentSearchesMatchingQuery;return pr.html`
2452
2452
  <div class="ft-search-bar--suggestions ft-word-wrap ${this.shouldDisplaySuggestions?"ft-search-bar--suggestions-not-empty":""}"
2453
2453
  id="${this.listboxId}"
2454
2454
  role="listbox"
2455
2455
  aria-label="${this.searchBar.labelResolver.resolve("suggestionsAriaLabel")}"
2456
2456
  part="suggestions-container">
2457
- ${(0,lu.repeat)(e.slice(0,5),r=>r,(r,i)=>dr.html`
2457
+ ${(0,pu.repeat)(e.slice(0,5),r=>r,(r,i)=>pr.html`
2458
2458
  <div part="suggestion-container"
2459
- class="${this.searchBar.selectedSuggestOptionId===this.recentSearchId(i)?"ft-search-bar--suggestions-selected":dr.nothing}">
2459
+ class="${this.searchBar.selectedSuggestOptionId===this.recentSearchId(i)?"ft-search-bar--suggestions-selected":pr.nothing}">
2460
2460
  <a href="${this.getRequestWithQuery(r)}"
2461
2461
  part="suggestions"
2462
2462
  class="ft-search-bar--suggestion ft-search-bar--recent-search"
@@ -2465,7 +2465,7 @@
2465
2465
  aria-selected="${this.searchBar.selectedSuggestOptionId===this.recentSearchId(i)}"
2466
2466
  tabindex="-1"
2467
2467
  aria-label="${r}"
2468
- @click=${o=>this.onSuggestClick(o,r)}>
2468
+ @click=${s=>this.onSuggestClick(s,r)}>
2469
2469
  <ft-ripple ?activated=${this.searchBar.selectedSuggestOptionId===this.recentSearchId(i)&&!this.searchBar.selectedSuggestRemoveRecent}></ft-ripple>
2470
2470
  <ft-icon variant="material" value="history" part="suggestion-icon"></ft-icon>
2471
2471
  <ft-typography variant="body1">${r}</ft-typography>
@@ -2479,13 +2479,13 @@
2479
2479
  tooltipPosition="left"
2480
2480
  tabindex="-1"
2481
2481
  ?activated=${this.searchBar.selectedSuggestOptionId===this.recentSearchId(i)&&this.searchBar.selectedSuggestRemoveRecent}
2482
- @click=${o=>this.removeRecentSearch(o,r)}>
2482
+ @click=${s=>this.removeRecentSearch(s,r)}>
2483
2483
  </ft-button>
2484
2484
  </div>
2485
2485
  `)}
2486
- ${(0,lu.repeat)(this.searchBar.suggestions,r=>r.value,(r,i)=>dr.html`
2486
+ ${(0,pu.repeat)(this.searchBar.suggestions,r=>r.value,(r,i)=>pr.html`
2487
2487
  <div part="suggestion-container"
2488
- class="${this.searchBar.selectedSuggestOptionId===this.suggestionId(i)?"ft-search-bar--suggestions-selected":dr.nothing}">
2488
+ class="${this.searchBar.selectedSuggestOptionId===this.suggestionId(i)?"ft-search-bar--suggestions-selected":pr.nothing}">
2489
2489
  <a href="${this.getRequestWithQuery(r.value)}"
2490
2490
  part="suggestions"
2491
2491
  class="ft-search-bar--suggestion"
@@ -2493,7 +2493,7 @@
2493
2493
  aria-selected="${this.searchBar.selectedSuggestOptionId===this.suggestionId(i)}"
2494
2494
  role="option"
2495
2495
  tabindex="-1"
2496
- @click=${o=>this.onSuggestClick(o,r.value)}>
2496
+ @click=${s=>this.onSuggestClick(s,r.value)}>
2497
2497
  <ft-ripple ?activated=${this.searchBar.selectedSuggestOptionId===this.suggestionId(i)}></ft-ripple>
2498
2498
  ${this.getIcon(r)}
2499
2499
  <ft-typography variant="body1">${r.value}</ft-typography>
@@ -2501,9 +2501,9 @@
2501
2501
  </div>
2502
2502
  `)}
2503
2503
  </div>
2504
- `}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 dr.html`
2504
+ `}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"?Je.file_format:Je.fluid_topics,i;switch(e.type){case"MAP":i=e.editorialType==="BOOK"?Ae.BOOK:Ae.ARTICLE;break;case"DOCUMENT":i=Un(e.mimeType,e.filenameExtension);break;case"TOPIC":i=Ae.TOPICS;break;case"HTML_PACKAGE":i=Ae.BOX_CODE;break;case"HTML_PACKAGE_PAGE":i=Ae.FILE_CODE;break}return pr.html`
2505
2505
  <ft-icon .variant=${r} .value=${i} part="suggestion-icon"></ft-icon>
2506
- `}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()))}};hr.styles=[Ro.wordWrap,dr.css`
2506
+ `}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()))}};hr.styles=[vo.wordWrap,pr.css`
2507
2507
  .ft-search-bar--mobile .ft-search-bar--suggestions {
2508
2508
  flex-grow: 1;
2509
2509
  flex-shrink: 1;
@@ -2591,10 +2591,10 @@
2591
2591
  }
2592
2592
 
2593
2593
  ft-ripple {
2594
- ${(0,Ro.setVariable)(q.opacityContentOnSurfaceHover,q.opacityContentOnSurfaceSelected)}
2594
+ ${(0,vo.setVariable)(q.opacityContentOnSurfaceHover,q.opacityContentOnSurfaceSelected)}
2595
2595
  }
2596
- `]});var tt,cu,pa,fr,da=l(()=>{"use strict";tt=u(b()),cu=u(Tr());_c();pa=u(m());Js();Zc();fr=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`
2597
- ${this.searchBar.hasLocaleSelector()&&(this.searchBar.hasFacets()||e)?tt.html`
2596
+ `]});var it,hu,xa,fr,Sa=l(()=>{"use strict";it=c(g()),hu=c(Tr());Pc();xa=c(f());la();ru();fr=class{constructor(e){this.searchBar=e}render(){if(!this.searchBar.hasLocaleSelector()&&!this.searchBar.hasFacets())return it.html``;let e=this.searchBar.isMobile(),r=!e&&this.searchBar.dense||e&&this.searchBar.isMobileMenuOpen(),i=it.html`
2597
+ ${this.searchBar.hasLocaleSelector()&&(this.searchBar.hasFacets()||e)?it.html`
2598
2598
  <ft-chip part="selected-filters selected-filter-ft-locale"
2599
2599
  ?dense=${this.searchBar.dense&&!e}
2600
2600
  ?clickable=${e}
@@ -2604,46 +2604,46 @@
2604
2604
  ${this.getLocaleLabel(this.searchBar.contentLocale)}
2605
2605
  </ft-chip>
2606
2606
  `:null}
2607
- ${(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`
2607
+ ${(0,hu.repeat)(this.searchBar.facets,s=>s.key,s=>{let o=Kg(s);return(0,hu.repeat)(o,n=>{let a=s.label+": "+Hg(n),u=s.key.replace(":","-"),d=it.html`
2608
2608
  <ft-chip
2609
- part="selected-filters selected-filter-${c}"
2609
+ part="selected-filters selected-filter-${u}"
2610
2610
  ?dense=${this.searchBar.dense&&!e}
2611
2611
  ?clickable=${e}
2612
2612
  ?removable=${!e}
2613
- icon="${e?tt.nothing:"close"}"
2613
+ icon="${e?it.nothing:"close"}"
2614
2614
  label="${a}"
2615
- title="${r?a:tt.nothing}"
2616
- @click=${()=>this.openMobileFilters(o.key)}
2617
- @icon-click=${()=>this.searchBar.setFilter(o.key,n.filter(d=>d!==s))}
2618
- data-key="${o.key}"
2619
- data-value="${s}">
2620
- ${Dg(s)}
2615
+ title="${r?a:it.nothing}"
2616
+ @click=${()=>this.openMobileFilters(s.key)}
2617
+ @icon-click=${()=>this.searchBar.setFilter(s.key,o.filter(p=>p!==n))}
2618
+ data-key="${s.key}"
2619
+ data-value="${n}">
2620
+ ${zg(n)}
2621
2621
  </ft-chip>
2622
- `;return r?p:tt.html`
2622
+ `;return r?d:it.html`
2623
2623
  <ft-tooltip inline text="${a}">
2624
- ${p}
2624
+ ${d}
2625
2625
  </ft-tooltip>
2626
2626
  `})})}
2627
- ${e?tt.html`
2627
+ ${e?it.html`
2628
2628
  <ft-chip part="selected-filters mobile-filters-opener"
2629
2629
  icon="plus"
2630
2630
  clickable
2631
2631
  @click=${()=>{this.searchBar.mobileMenuOpen=!0,this.searchBar.displayFacets=!0}}>
2632
2632
  ${this.searchBar.labelResolver.resolve("filtersButton")}
2633
2633
  </ft-chip>
2634
- `:tt.nothing}
2635
- `;return r?tt.html`
2634
+ `:it.nothing}
2635
+ `;return r?it.html`
2636
2636
  <ft-snap-scroll horizontal controls hideScrollbar limitSize
2637
2637
  class="ft-search-bar--selected-filters"
2638
2638
  part="selected-filters-container"
2639
2639
  exportpartsPrefix="selected-filters-container">
2640
2640
  ${i}
2641
2641
  </ft-snap-scroll>
2642
- `:tt.html`
2642
+ `:it.html`
2643
2643
  <div class="ft-search-bar--selected-filters" part="selected-filters-container">
2644
2644
  ${i}
2645
2645
  </div>
2646
- `}openMobileFilters(e){this.searchBar.isMobile()&&(this.searchBar.mobileMenuOpen=!0,this.searchBar.displayFacets=!0,this.searchBar.scrollToFacet=e)}getLocaleLabel(e){var r;return(r=this.searchBar.availableContentLocales.filter(i=>{var o;return((o=i.lang)!==null&&o!==void 0?o:"").toLowerCase()===(e??"").toLowerCase()}).map(i=>i.label).pop())!==null&&r!==void 0?r:e}};fr.styles=tt.css`
2646
+ `}openMobileFilters(e){this.searchBar.isMobile()&&(this.searchBar.mobileMenuOpen=!0,this.searchBar.displayFacets=!0,this.searchBar.scrollToFacet=e)}getLocaleLabel(e){var r;return(r=this.searchBar.availableContentLocales.filter(i=>{var s;return((s=i.lang)!==null&&s!==void 0?s:"").toLowerCase()===(e??"").toLowerCase()}).map(i=>i.label).pop())!==null&&r!==void 0?r:e}};fr.styles=it.css`
2647
2647
  .ft-search-bar--selected-filters:not(ft-snap-scroll) {
2648
2648
  flex-shrink: 0;
2649
2649
  display: flex;
@@ -2654,7 +2654,7 @@
2654
2654
 
2655
2655
  ft-snap-scroll.ft-search-bar--selected-filters {
2656
2656
  overflow: hidden;
2657
- ${(0,pa.setVariable)(Je.gap,"4px")};
2657
+ ${(0,xa.setVariable)(tt.gap,"4px")};
2658
2658
  }
2659
2659
 
2660
2660
  ft-snap-scroll.ft-search-bar--selected-filters::part(content) {
@@ -2662,8 +2662,8 @@
2662
2662
  }
2663
2663
 
2664
2664
  .ft-search-bar--desktop ft-snap-scroll.ft-search-bar--selected-filters {
2665
- ${(0,pa.setVariable)(Me.iconSize,"17px")};
2666
- ${(0,pa.setVariable)(Me.fontSize,"12px")};
2665
+ ${(0,xa.setVariable)(Fe.iconSize,"17px")};
2666
+ ${(0,xa.setVariable)(Fe.fontSize,"12px")};
2667
2667
  }
2668
2668
 
2669
2669
  .ft-search-bar--selected-filters * {
@@ -2673,8 +2673,8 @@
2673
2673
  .ft-search-bar--selected-filters ft-chip {
2674
2674
  flex-grow: 0;
2675
2675
  }
2676
- `});var Yt,qy,Ky,s0,To,Wy=l(()=>{"use strict";Yt=u(b());da();ua();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},To=class{constructor(e,r,i){this.searchBar=e,this.selectedFacetsManager=r??new fr(e),this.suggestManager=i??new hr(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 Yt.html`
2677
- <div class="${(0,qy.classMap)(r)}" part="container" tabindex="-1">
2676
+ `});var Xt,Zb,Jb,OE,xo,ev=l(()=>{"use strict";Xt=c(g());Sa();va();Zb=c(st()),Jb=c(f()),OE=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},xo=class{constructor(e,r,i){this.searchBar=e,this.selectedFacetsManager=r??new fr(e),this.suggestManager=i??new hr(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 Xt.html`
2677
+ <div class="${(0,Zb.classMap)(r)}" part="container" tabindex="-1">
2678
2678
  <div class="ft-search-bar" role="search">
2679
2679
  <div class="ft-search-bar--input-container" part="input-container">
2680
2680
  <div class="ft-search-bar--input-outline" part="input-outline">
@@ -2683,7 +2683,7 @@
2683
2683
  aria-autocomplete="list"
2684
2684
  aria-controls="${this.suggestManager.listboxId}"
2685
2685
  aria-expanded="${this.searchBar.displaySuggestListbox}"
2686
- aria-activedescendant="${(e=this.searchBar.ariaActiveDescendent)!==null&&e!==void 0?e:Yt.nothing}"
2686
+ aria-activedescendant="${(e=this.searchBar.ariaActiveDescendent)!==null&&e!==void 0?e:Xt.nothing}"
2687
2687
  part="input"
2688
2688
  type="search"
2689
2689
  placeholder="${this.searchBar.labelResolver.resolve("inputPlaceHolder")}"
@@ -2697,7 +2697,7 @@
2697
2697
  </div>
2698
2698
  ${this.searchBar.displayFacets?this.searchBar.renderFacetsActions():this.selectedFacetsManager.render()}
2699
2699
  ${this.searchBar.displayFacets?this.searchBar.renderMobileFacets():this.suggestManager.render()}
2700
- ${this.searchBar.isMobileMenuOpen()||this.searchBar.displayFacets?Yt.html`
2700
+ ${this.searchBar.isMobileMenuOpen()||this.searchBar.displayFacets?Xt.html`
2701
2701
  <ft-button class="ft-search-bar--launch-search"
2702
2702
  href="${this.searchBar.searchRequestSerializer(this.searchBar.request)}"
2703
2703
  part="launch-search-in-panel"
@@ -2705,11 +2705,11 @@
2705
2705
  @click=${()=>this.searchBar.onLaunchSearch()}>
2706
2706
  ${this.searchBar.labelResolver.resolve("searchButton")}
2707
2707
  </ft-button>
2708
- `:Yt.nothing}
2708
+ `:Xt.nothing}
2709
2709
  </div>
2710
- `}renderMobileSearchBarButtons(){let e=this.searchBar.query||this.searchBar.isMobileMenuOpen()&&!this.searchBar.forceMobileMenuOpen;return Yt.html`
2710
+ `}renderMobileSearchBarButtons(){let e=this.searchBar.query||this.searchBar.isMobileMenuOpen()&&!this.searchBar.forceMobileMenuOpen;return Xt.html`
2711
2711
  <div class="ft-search-bar--actions" part="search-bar-actions">
2712
- ${e?Yt.html`
2712
+ ${e?Xt.html`
2713
2713
  <ft-button class="ft-search-bar--clear-query"
2714
2714
  part="clear-query"
2715
2715
  icon="close"
@@ -2719,7 +2719,7 @@
2719
2719
  @click=${async()=>{this.searchBar.setQuery(""),this.searchBar.mobileMenuOpen=!1,this.searchBar.displayFacets=!1}}
2720
2720
  ></ft-button>
2721
2721
  <div class="ft-search-bar--separator"></div>
2722
- `:Yt.nothing}
2722
+ `:Xt.nothing}
2723
2723
  <ft-button class="ft-search-bar--launch-search"
2724
2724
  href="${this.searchBar.isMobileMenuOpen()?this.searchBar.searchRequestSerializer(this.searchBar.request):""}"
2725
2725
  part="launch-search-in-bar"
@@ -2730,21 +2730,21 @@
2730
2730
  @click=${()=>{var r;return this.searchBar.isMobileMenuOpen()?this.searchBar.onLaunchSearch():(r=this.searchBar.input)===null||r===void 0?void 0:r.focus()}}
2731
2731
  ></ft-button>
2732
2732
  </div>
2733
- `}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}};To.styles=Yt.css`
2733
+ `}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}};xo.styles=Xt.css`
2734
2734
 
2735
- `;s0([(0,Ky.ignoreComposingEvents)()],To.prototype,"onSearchBarKeyDown",null)});var rt,Gy,Qy,Xy,a0,_o,Yy=l(()=>{"use strict";rt=u(b()),Gy=u(Tr());da();ua();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},_o=class{constructor(e,r,i){this.searchBar=e,this.selectedFacetsManager=r??new fr(e),this.suggestManager=i??new hr(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`
2736
- <div class="${(0,Qy.classMap)(r)}" part="container" tabindex="-1">
2735
+ `;OE([(0,Jb.ignoreComposingEvents)()],xo.prototype,"onSearchBarKeyDown",null)});var ot,tv,rv,iv,_E,So,ov=l(()=>{"use strict";ot=c(g()),tv=c(Tr());Sa();va();rv=c(st()),iv=c(f()),_E=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},So=class{constructor(e,r,i){this.searchBar=e,this.selectedFacetsManager=r??new fr(e),this.suggestManager=i??new hr(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 ot.html`
2736
+ <div class="${(0,rv.classMap)(r)}" part="container" tabindex="-1">
2737
2737
  <div class="ft-search-bar" part="search-bar" role="search">
2738
2738
  ${this.renderSearchBarLeftAction()}
2739
2739
  <div class="ft-search-bar--input-container" part="input-container" tabindex="-1">
2740
2740
  <div class="ft-search-bar--input-outline" part="input-outline">
2741
- ${this.searchBar.dense?this.selectedFacetsManager.render():rt.nothing}
2741
+ ${this.searchBar.dense?this.selectedFacetsManager.render():ot.nothing}
2742
2742
  <input class="ft-search-bar--input ft-typography--body2"
2743
2743
  role="combobox"
2744
2744
  aria-autocomplete="list"
2745
2745
  aria-controls="${this.suggestManager.listboxId}"
2746
2746
  aria-expanded="${this.searchBar.displaySuggestListbox}"
2747
- aria-activedescendant="${(e=this.searchBar.ariaActiveDescendent)!==null&&e!==void 0?e:rt.nothing}"
2747
+ aria-activedescendant="${(e=this.searchBar.ariaActiveDescendent)!==null&&e!==void 0?e:ot.nothing}"
2748
2748
  part="input"
2749
2749
  type="search"
2750
2750
  placeholder="${this.searchBar.labelResolver.resolve("inputPlaceHolder")}"
@@ -2759,9 +2759,9 @@
2759
2759
  ${this.renderDesktopSearchBarButtons()}
2760
2760
  ${this.searchBar.renderDesktopFloatingMenu()}
2761
2761
  </div>
2762
- ${this.searchBar.dense?rt.nothing:this.searchBar.forceMenuOpen?this.searchBar.renderDesktopMenu():this.selectedFacetsManager.render()}
2762
+ ${this.searchBar.dense?ot.nothing:this.searchBar.forceMenuOpen?this.searchBar.renderDesktopMenu():this.selectedFacetsManager.render()}
2763
2763
  </div>
2764
- `}renderSearchBarLeftAction(){return this.searchBar.hasFacets()?this.searchBar.forceMenuOpen?rt.nothing:rt.html`
2764
+ `}renderSearchBarLeftAction(){return this.searchBar.hasFacets()?this.searchBar.forceMenuOpen?ot.nothing:ot.html`
2765
2765
  <ft-button class="ft-search-bar--filters-opener ft-search-bar--left-action"
2766
2766
  part="filters-opener"
2767
2767
  trailingIcon
@@ -2773,24 +2773,24 @@
2773
2773
  >
2774
2774
  ${this.searchBar.labelResolver.resolve("filtersButton")}
2775
2775
  </ft-button>
2776
- `:this.searchBar.hasLocaleSelector()?rt.html`
2776
+ `:this.searchBar.hasLocaleSelector()?ot.html`
2777
2777
  <ft-select outlined
2778
2778
  class="ft-search-bar--content-locale ft-search-bar--left-action"
2779
2779
  part="content-locale select-ft-locale"
2780
2780
  ariaLabel="${this.searchBar.labelResolver.resolve("selectLocale")}"
2781
2781
  .exportpartsPrefixes=${["content-locale","select-ft-locale"]}
2782
2782
  @change=${e=>this.searchBar.contentLocale=e.detail==null?void 0:e.detail}>
2783
- ${(0,Gy.repeat)(this.searchBar.availableContentLocales,e=>e.lang,e=>rt.html`
2783
+ ${(0,tv.repeat)(this.searchBar.availableContentLocales,e=>e.lang,e=>ot.html`
2784
2784
  <ft-select-option .value=${e.lang}
2785
2785
  label="${e.label}"
2786
2786
  ?selected=${e.lang==this.searchBar.contentLocale}>
2787
2787
  </ft-select-option>
2788
2788
  `)}
2789
2789
  </ft-select>
2790
- `:rt.nothing}renderDesktopSearchBarButtons(){return rt.html`
2790
+ `:ot.nothing}renderDesktopSearchBarButtons(){return ot.html`
2791
2791
  <div class="ft-search-bar--actions"
2792
2792
  part="search-bar-actions">
2793
- ${this.searchBar.query?rt.html`
2793
+ ${this.searchBar.query?ot.html`
2794
2794
  <ft-button class="ft-search-bar--clear-query"
2795
2795
  part="clear-query"
2796
2796
  icon="close"
@@ -2809,9 +2809,9 @@
2809
2809
  @click=${()=>this.searchBar.onLaunchSearch()}
2810
2810
  ></ft-button>
2811
2811
  </div>
2812
- `}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)}};_o.styles=rt.css`
2812
+ `}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)}};So.styles=ot.css`
2813
2813
 
2814
- `;a0([(0,Xy.ignoreComposingEvents)()],_o.prototype,"onSearchBarKeyDown",null)});var G,z,Tn,ee,V,Zy,uu,l0,k,pu=l(()=>{"use strict";G=u(b()),z=u(B()),Tn=u(Tr()),ee=u(m());Ig();ge();_c();$v();wr();Gv();qt();Zc();Py();Js();Zl();Ge();ca();zy();ua();da();Wy();Yy();Fc();Ht();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 ee.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 ee.ParametrizedLabelResolver(Zy,{}),this.displayedFilters=[],this.presets=[],this.priors=[],this.searchRequestSerializer=e=>new ee.SearchPlaceConverter(this.baseUrl).serialize(e),this.focusOnDisplay=!1,this.metadataFilters=[],this.sizeCategory=It.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 hr(this),this.selectedFacetsManager=new fr(this),this.desktopSearchBarManager=new _o(this),this.mobileSearchBarManager=new To(this,this.selectedFacetsManager,this.suggestManager),this.stateChangeEventDebouncer=new ee.Debouncer(10),this.updateLocalesDebouncer=new ee.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 ee.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===It.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,ee.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`
2814
+ `;_E([(0,iv.ignoreComposingEvents)()],So.prototype,"onSearchBarKeyDown",null)});var G,H,Cs,te,V,sv,fu,RE,R,mu=l(()=>{"use strict";G=c(g()),H=c(F()),Cs=c(Tr()),te=c(f());Vg();ve();Pc();Uy();_r();tb();qt();ru();Bb();la();rc();Ye();ba();Xb();va();Sa();ev();ov();zc();Vt();V=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};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");sv={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"},fu=class extends CustomEvent{constructor(e){super("change",{detail:e})}},RE=()=>{},R=class extends te.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 te.ParametrizedLabelResolver(sv,{}),this.displayedFilters=[],this.presets=[],this.priors=[],this.searchRequestSerializer=e=>new te.SearchPlaceConverter(this.baseUrl).serialize(e),this.focusOnDisplay=!1,this.metadataFilters=[],this.sizeCategory=It.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 hr(this),this.selectedFacetsManager=new fr(this),this.desktopSearchBarManager=new So(this),this.mobileSearchBarManager=new xo(this,this.selectedFacetsManager,this.suggestManager),this.stateChangeEventDebouncer=new te.Debouncer(10),this.updateLocalesDebouncer=new te.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 te.Debouncer(500),this.closeFloatingContainer=e=>{this.isMobile()||(this.displayFacets=this.displayFacets&&e.composedPath().some(r=>r===this.floatingContainer))},this.closeSuggestListbox=e=>{e.composedPath().some(s=>s===this||s===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(s=>this.compareFilters(i,s)))}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,s;return((s=(i=r.valueFilter)===null||i===void 0?void 0:i.values.length)!==null&&s!==void 0?s: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===It.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,te.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`
2815
2815
  <ft-size-watcher @change=${this.updateSize}></ft-size-watcher>
2816
2816
  <div class="sr-only" aria-live="polite" aria-atomic="true">
2817
2817
  ${this.renderLiveText()}
@@ -2839,19 +2839,19 @@
2839
2839
  </div>
2840
2840
  </ft-accordion-item>
2841
2841
  `:null}
2842
- ${(0,Tn.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`
2842
+ ${(0,Cs.repeat)(this.facets,r=>r.key,r=>{let i=$c(r),s=r.key.replace(":","-"),o=qg(i);return r.rootNodes.length>0?G.html`
2843
2843
  <ft-accordion-item data-facet-key="${r.key}">
2844
2844
  <div class="ft-search-bar--filter-label" slot="toggle">
2845
2845
  <ft-typography variant="button">${r.label}</ft-typography>
2846
- ${n.length>0?G.html`
2846
+ ${o.length>0?G.html`
2847
2847
  <ft-typography class="ft-search-bar--filter-label-values" variant="body2">
2848
- ${n.join(", ")}
2848
+ ${o.join(", ")}
2849
2849
  </ft-typography>
2850
2850
  `:G.nothing}
2851
2851
  </div>
2852
2852
  <ft-filter
2853
- part="filters filter filter-${o}"
2854
- .exportpartsPrefixes=${["filter","filter-"+o]}
2853
+ part="filters filter filter-${s}"
2854
+ .exportpartsPrefixes=${["filter","filter-"+s]}
2855
2855
  id="${i.id}"
2856
2856
  filterPlaceHolder="${this.labelResolver.resolve("filterInputPlaceHolder",i.label)}"
2857
2857
  clearButtonLabel="${this.labelResolver.resolve("clearFilterButton")}"
@@ -2861,7 +2861,7 @@
2861
2861
  raiseSelectedOptions
2862
2862
  .options=${i.options}
2863
2863
  .displayedValuesLimit=${10}
2864
- @change=${s=>this.setFilter(i.id,s.detail)}
2864
+ @change=${n=>this.setFilter(i.id,n.detail)}
2865
2865
  ></ft-filter>
2866
2866
  </ft-accordion-item>
2867
2867
  `:G.nothing})}
@@ -2869,7 +2869,7 @@
2869
2869
  `}getContentLocaleRadioGroup(){var e;return G.html`
2870
2870
  <ft-radio-group aria-labelledby="content_locale_radio_group_label"
2871
2871
  @change=${r=>{this.contentLocale=r.detail==="all"?void 0:r.detail,this.clearFilters()}}>
2872
- ${(0,Tn.repeat)((e=this.availableContentLocales)!==null&&e!==void 0?e:[],r=>r.lang,r=>{var i;return G.html`
2872
+ ${(0,Cs.repeat)((e=this.availableContentLocales)!==null&&e!==void 0?e:[],r=>r.lang,r=>{var i;return G.html`
2873
2873
  <ft-radio value="${(i=r.lang)!==null&&i!==void 0?i:"all"}"
2874
2874
  ?checked=${r.lang==this.contentLocale}>
2875
2875
  ${r.label}
@@ -2900,7 +2900,7 @@
2900
2900
  label="${this.labelResolver.resolve("presetsSelector")}"
2901
2901
  outlined
2902
2902
  @change=${r=>this.selectedPreset=r.detail}>
2903
- ${(0,Tn.repeat)((e=this.presets)!==null&&e!==void 0?e:[],r=>r.name,r=>G.html`
2903
+ ${(0,Cs.repeat)((e=this.presets)!==null&&e!==void 0?e:[],r=>r.name,r=>G.html`
2904
2904
  <ft-select-option value="${r.name}"
2905
2905
  label="${r.name}"
2906
2906
  ?selected=${r.name===this.selectedPreset}>
@@ -2932,11 +2932,11 @@
2932
2932
  ${this.getContentLocaleRadioGroup()}
2933
2933
  </div>
2934
2934
  `:G.nothing}
2935
- ${(0,Tn.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`
2935
+ ${(0,Cs.repeat)(this.facets,e=>e.key,e=>{let r=$c(e),i=r.options.some(o=>{var n,a;return((a=(n=o.subOptions)===null||n===void 0?void 0:n.length)!==null&&a!==void 0?a:0)>0}),s=e.key.replace(":","-");return G.html`
2936
2936
  <ft-filter
2937
2937
  class="${i?"ft-search-bar--hierarchical-filter":""}"
2938
- part="filters filter filter-${o}"
2939
- .exportpartsPrefixes=${["filter","filter-"+o]}
2938
+ part="filters filter filter-${s}"
2939
+ .exportpartsPrefixes=${["filter","filter-"+s]}
2940
2940
  id="${r.id}"
2941
2941
  label="${r.label}"
2942
2942
  filterPlaceHolder="${this.labelResolver.resolve("filterInputPlaceHolder",r.label)}"
@@ -2947,32 +2947,32 @@
2947
2947
  raiseSelectedOptions
2948
2948
  .options=${r.options}
2949
2949
  .displayedValuesLimit=${10}
2950
- @change=${n=>this.setFilter(r.id,n.detail)}
2950
+ @change=${o=>this.setFilter(r.id,o.detail)}
2951
2951
  ></ft-filter>
2952
2952
  `})}
2953
2953
  </ft-snap-scroll>
2954
- `: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 ee.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=>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 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&&!ee.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,ee.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,ee.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`
2954
+ `:G.nothing}firstUpdated(e){super.firstUpdated(e),this.initApi(),window.addEventListener("storage",r=>{r.key===this.recentSearchesStorageKey&&this.initRecentSearches()})}update(e){var r,i,s,o,n;if(e.has("labels")&&(this.labelResolver=new te.ParametrizedLabelResolver(sv,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=u=>this.availableContentLocales.some(d=>d.lang==u);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(u=>{u.valueFilter&&(u.valueFilter.values=u.valueFilter.values.map(d=>oa(d)))})),e.has("presets")||e.has("selectedPreset")){let a=((s=this.presets)!==null&&s!==void 0?s:[]).find(u=>u.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=(n=((o=this.presets)!==null&&o!==void 0?o:[]).find(a=>this.compareRequests(a,this.request)))===null||n===void 0?void 0:n.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 fu(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,s;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(n=>n.key===this.scrollToFacet));let o=(s=this.shadowRoot)===null||s===void 0?void 0:s.querySelector(`ft-accordion-item[data-facet-key="${this.scrollToFacet}"]`);o&&(o.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(s=>{this.knownFacetLabels.set(s.key,s.label),r.set(s.key,s)})).catch(RE)),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&&!te.isTouchScreen&&this.focusInput(),S.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),S.removeEventListener("authentication-change",this.initSearchData)}updateSize(e){this.sizeCategory=e.detail.category}setFilter(e,r){let i=this.metadataFilters.filter(s=>!s.valueFilter||s.key!==e);this.facets.forEach(s=>{s.key===e&&(0,te.flatDeep)(s.rootNodes,o=>o.childNodes).forEach(o=>o.selected=r.includes(o.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,te.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`
2955
2955
  <div class="ft-search-bar--floating-panel"
2956
2956
  id="ft-search-bar-floating-panel"
2957
2957
  @keyup=${this.onFloatingContainerKeyUp}
2958
2958
  part="floating-panel"
2959
2959
  tabindex="-1">
2960
2960
  ${this.renderDesktopMenu()}
2961
- </div>`}get ariaActiveDescendent(){if(this.selectedSuggestOptionId)return this.selectedSuggestRemoveRecent?"remove-"+this.selectedSuggestOptionId:this.selectedSuggestOptionId}};k.elementDefinitions={"ft-accordion":pr,"ft-accordion-item":Dt,"ft-button":R,"ft-chip":fe,"ft-filter":W,"ft-filter-option":St,"ft-icon":ne,"ft-ripple":L,"ft-select":oe,"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=[Mr,ee.noTextInputDefaultClearButton,Dy,My,fr.styles,hr.styles,ee.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,ee.jsonProperty)({})],k.prototype,"labels",void 0);V([(0,ee.jsonProperty)([])],k.prototype,"displayedFilters",void 0);V([(0,ee.jsonProperty)([])],k.prototype,"presets",void 0);V([(0,z.property)({type:String,reflect:!0})],k.prototype,"selectedPreset",void 0);V([(0,ee.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();ca();Jy();ib()});var nb,sb,ab,lb=l(()=>{"use strict";nb=u(b());pn();sb=u(m());Ge();ob();ab=nb.css`
2961
+ </div>`}get ariaActiveDescendent(){if(this.selectedSuggestOptionId)return this.selectedSuggestRemoveRecent?"remove-"+this.selectedSuggestOptionId:this.selectedSuggestOptionId}};R.elementDefinitions={"ft-accordion":dr,"ft-accordion-item":Mt,"ft-button":w,"ft-chip":me,"ft-filter":W,"ft-filter-option":Et,"ft-icon":ae,"ft-ripple":k,"ft-select":se,"ft-select-option":We,"ft-size-watcher":yt,"ft-skeleton":Xr,"ft-snap-scroll":we,"ft-tooltip":xe,"ft-typography":z,"ft-radio-group":vt,"ft-radio":Le};R.styles=[Mr,te.noTextInputDefaultClearButton,zb,Hb,fr.styles,hr.styles,te.screenReaderStyles];V([(0,H.property)({type:Boolean})],R.prototype,"dense",void 0);V([(0,H.property)()],R.prototype,"mode",void 0);V([(0,H.property)({type:Boolean})],R.prototype,"forceMobileMenuOpen",void 0);V([(0,H.property)({type:Boolean})],R.prototype,"forceMenuOpen",void 0);V([(0,H.property)()],R.prototype,"baseUrl",void 0);V([(0,H.property)()],R.prototype,"apiIntegrationIdentifier",void 0);V([(0,H.property)()],R.prototype,"contentLocale",void 0);V([(0,H.state)()],R.prototype,"availableContentLocales",void 0);V([(0,H.state)()],R.prototype,"availableContentLocalesInitialized",void 0);V([(0,H.property)()],R.prototype,"uiLocale",void 0);V([(0,te.jsonProperty)({})],R.prototype,"labels",void 0);V([(0,te.jsonProperty)([])],R.prototype,"displayedFilters",void 0);V([(0,te.jsonProperty)([])],R.prototype,"presets",void 0);V([(0,H.property)({type:String,reflect:!0})],R.prototype,"selectedPreset",void 0);V([(0,te.jsonProperty)([])],R.prototype,"priors",void 0);V([(0,H.property)()],R.prototype,"searchRequestSerializer",void 0);V([(0,H.property)({type:Boolean})],R.prototype,"focusOnDisplay",void 0);V([(0,H.state)()],R.prototype,"metadataFilters",void 0);V([(0,H.state)()],R.prototype,"sizeCategory",void 0);V([(0,H.state)()],R.prototype,"displayFacets",void 0);V([(0,H.state)()],R.prototype,"mobileMenuOpen",void 0);V([(0,H.state)()],R.prototype,"facets",void 0);V([(0,H.state)()],R.prototype,"facetsInitialized",void 0);V([(0,H.query)(".ft-search-bar--container")],R.prototype,"container",void 0);V([(0,H.query)(".ft-search-bar--filters-opener")],R.prototype,"filtersOpener",void 0);V([(0,H.query)(".ft-search-bar--floating-panel")],R.prototype,"floatingContainer",void 0);V([(0,H.query)("ft-snap-scroll.ft-search-bar--filters-container")],R.prototype,"scrollingFiltersContainer",void 0);V([(0,H.query)(".ft-search-bar--input")],R.prototype,"input",void 0);V([(0,H.query)(".ft-search-bar--launch-search")],R.prototype,"launchSearchButton",void 0);V([(0,H.state)()],R.prototype,"query",void 0);V([(0,H.state)()],R.prototype,"suggestions",void 0);V([(0,H.state)()],R.prototype,"recentSearches",void 0);V([(0,H.state)()],R.prototype,"scrollToFacet",void 0);V([(0,H.state)()],R.prototype,"api",void 0);V([(0,H.state)()],R.prototype,"displaySuggestListbox",void 0);V([(0,H.state)()],R.prototype,"selectedSuggestOptionId",void 0);V([(0,H.state)()],R.prototype,"selectedSuggestRemoveRecent",void 0);V([(0,H.state)()],R.prototype,"facetsLoaded",void 0)});var nv=l(()=>{"use strict"});var av,lv=l(()=>{"use strict";mu();av={"ft-search-bar":R}});var cv,uv=l(()=>{"use strict";cv=c(f());lv();(0,cv.customElements)(av)});var dv=l(()=>{"use strict";mu();ba();nv();uv()});var pv,hv,fv,mv=l(()=>{"use strict";pv=c(g());ns();hv=c(f());Ye();dv();fv=pv.css`
2962
2962
  * {
2963
2963
  box-sizing: border-box;
2964
2964
  }
2965
2965
 
2966
2966
  .ft-search-input-suggestion {
2967
2967
  position: absolute;
2968
- z-index: ${te.floatingZIndex};
2968
+ z-index: ${re.floatingZIndex};
2969
2969
  top: calc(100% + 2px);
2970
2970
  left: -1px;
2971
2971
  right: -1px;
2972
- background: ${te.colorSurface};
2973
- border: 1px solid ${te.colorOutline};
2974
- border-radius: 0 0 ${te.borderRadius} ${te.borderRadius};
2975
- box-shadow: ${te.elevation02};
2972
+ background: ${re.colorSurface};
2973
+ border: 1px solid ${re.colorOutline};
2974
+ border-radius: 0 0 ${re.borderRadius} ${re.borderRadius};
2975
+ box-shadow: ${re.elevation02};
2976
2976
  }
2977
2977
 
2978
2978
  .ft-search-input-suggestion--container {
@@ -2994,7 +2994,7 @@
2994
2994
  padding: 8px;
2995
2995
  gap: 8px;
2996
2996
  cursor: pointer;
2997
- color: ${te.colorOnSurface};
2997
+ color: ${re.colorOnSurface};
2998
2998
  min-height: 44px;
2999
2999
  flex-grow: 1;
3000
3000
  }
@@ -3010,21 +3010,21 @@
3010
3010
  }
3011
3011
 
3012
3012
  ft-ripple {
3013
- ${(0,sb.setVariable)(q.opacityContentOnSurfaceHover,q.opacityContentOnSurfaceSelected)}
3013
+ ${(0,hv.setVariable)(q.opacityContentOnSurfaceHover,q.opacityContentOnSurfaceSelected)}
3014
3014
  }
3015
- `});var cb,Ni,du,ri,ub=l(()=>{"use strict";cb=u(m()),Ni=u(b());lb();du=u(Tr());wr();Ge();ge();Ht();Cc();qt();ri=class{constructor(e){this.ftSearchInput=e,this.listboxId="ft-search-input-suggestion"}render(){var e;let r=Ar.get(),{recentQuerySuggestions:i}=this.ftSearchInput;return Ni.html`
3015
+ `});var gv,$i,gu,Zr,yv=l(()=>{"use strict";gv=c(f()),$i=c(g());mv();gu=c(Tr());_r();Ye();ve();Vt();Oc();qt();Zr=class{constructor(e){this.ftSearchInput=e,this.listboxId="ft-search-input-suggestion"}render(){var e;let r=wr.get(),{recentQuerySuggestions:i}=this.ftSearchInput;return $i.html`
3016
3016
  <div class="ft-search-input-suggestion ft-word-wrap"
3017
3017
  id="${this.listboxId}"
3018
3018
  role="listbox"
3019
3019
  aria-label="${Rr.messages.suggestionsLabel()}"
3020
3020
  part="container">
3021
- ${(0,du.repeat)(i,o=>o,(o,n)=>this.renderRecentQuery(n,o,r))}
3022
- ${(0,du.repeat)((e=this.ftSearchInput.suggestResults)!==null&&e!==void 0?e:[],o=>o.value,(o,n)=>this.renderSuggestion(i.length+n,o,r))}
3021
+ ${(0,gu.repeat)(i,s=>s,(s,o)=>this.renderRecentQuery(o,s,r))}
3022
+ ${(0,gu.repeat)((e=this.ftSearchInput.suggestResults)!==null&&e!==void 0?e:[],s=>s.value,(s,o)=>this.renderSuggestion(i.length+o,s,r))}
3023
3023
  </div>
3024
- `}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`
3024
+ `}renderRecentQuery(e,r,i){return this.renderOption(e,r,"history",Je.material,!0,i)}renderSuggestion(e,r,i){let s=r.type==="DOCUMENT"?Je.file_format:Je.fluid_topics,o;switch(r.type){case"MAP":o=r.editorialType==="BOOK"?Ae.BOOK:Ae.ARTICLE;break;case"DOCUMENT":o=Un(r.mimeType,r.filenameExtension);break;case"TOPIC":o=Ae.TOPICS;break;case"HTML_PACKAGE":o=Ae.BOX_CODE;break;case"HTML_PACKAGE_PAGE":o=Ae.FILE_CODE;break}return this.renderOption(e,r.value,o,s,!1,i)}renderOption(e,r,i,s,o,n){let a=this.ftSearchInput.selectedSuggestOptionIndex===e,u=this.ftSearchInput.selectedSuggestOptionRemove,d=this.ftSearchInput.launchSearchPath?n.serializeToCurrentPageIfPossible({...this.ftSearchInput.request,query:r},this.ftSearchInput.launchSearchPath):$i.nothing;return $i.html`
3025
3025
  <div part="suggestion-container"
3026
3026
  class="ft-search-input-suggestion--container">
3027
- <a href="${p}"
3027
+ <a href="${d}"
3028
3028
  part="suggestion"
3029
3029
  class="ft-search-input-suggestion--suggestion"
3030
3030
  role="option"
@@ -3033,12 +3033,12 @@
3033
3033
  tabindex="-1"
3034
3034
  @click=${()=>this.onSelectOption(r)}
3035
3035
  >
3036
- <ft-ripple ?activated=${a&&!c}></ft-ripple>
3037
- <ft-icon variant="${o}" value="${i}" part="suggestion-icon"></ft-icon>
3038
- <ft-typography variant="${Q.body1}">${r}</ft-typography>
3036
+ <ft-ripple ?activated=${a&&!u}></ft-ripple>
3037
+ <ft-icon variant="${s}" value="${i}" part="suggestion-icon"></ft-icon>
3038
+ <ft-typography variant="${Y.body1}">${r}</ft-typography>
3039
3039
  </a>
3040
- ${n?Ni.html`
3041
- <ft-button icon="${Ce.CLOSE}"
3040
+ ${o?$i.html`
3041
+ <ft-button icon="${Ae.CLOSE}"
3042
3042
  round
3043
3043
  part="remove-suggestion"
3044
3044
  class="ft-search-input-suggestion--remove"
@@ -3046,13 +3046,13 @@
3046
3046
  label="${Rr.messages.removeRecentQuery(r)}"
3047
3047
  tooltipPosition="left"
3048
3048
  tabindex="-1"
3049
- ?activated=${a&&c}
3049
+ ?activated=${a&&u}
3050
3050
  @click=${()=>this.onRemoveRecentQuery(r)}>
3051
3051
  </ft-button>
3052
- `:Ni.nothing}
3052
+ `:$i.nothing}
3053
3053
  </div>
3054
- `}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":ne,"ft-button":R};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 ko,Ke,Ct,pb,Ue,c0,pe,hu=l(()=>{"use strict";ko=u(b()),Ke=u(m());pn();_i();kt();Cc();Ct=u(B()),pb=u(it());ub();qt();ge();Ht();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;pe=class extends at($t){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(Rr)}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=Ar.get().serializeToCurrentPageIfPossible(o,n),a=!this.forceCloseSuggestion&&this.displaySuggestListbox&&r;return ko.html`
3055
- <div class="${(0,pb.classMap)(i)}" @focusout=${()=>this.forceCloseSuggestion=!1} role="search">
3054
+ `}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()}};Zr.elementDefinitions={"ft-ripple":k,"ft-typography":z,"ft-icon":ae,"ft-button":w};Zr.styles=[gv.wordWrap,fv]});function kE(t){let e=t.liveQuery.trim().toLowerCase();return t.recentQueries.filter(r=>r.toLowerCase().includes(e)).slice(0,TE)}var Eo,Ge,Ct,bv,ze,TE,pe,yu=l(()=>{"use strict";Eo=c(g()),Ge=c(f());ns();Ai();kt();Oc();Ct=c(F()),bv=c(st());yv();qt();ve();Vt();Mn();ze=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},TE=5;pe=class extends ct(Pt){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 Zr(this),this.showSuggestionsOnFocus=!0,this.onPointerDown=e=>{e.composedPath().some(s=>s===this||s===this.shadowRoot)||this.suggestions.closeBox()},this.addI18nContext(Rr)}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},s={...this.request,query:this.liveQuery},o=this.useCustomSearchPath?this.launchSearchPath:void 0,n=wr.get().serializeToCurrentPageIfPossible(s,o),a=!this.forceCloseSuggestion&&this.displaySuggestListbox&&r;return Eo.html`
3055
+ <div class="${(0,bv.classMap)(i)}" @focusout=${()=>this.forceCloseSuggestion=!1} role="search">
3056
3056
  <div class="ft-search-input--input-container" part="input-container" tabindex="-1">
3057
3057
  <div class="ft-search-input--input-outline" part="input-outline">
3058
3058
  <input class="ft-search-input--input ft-typography--body2"
@@ -3064,7 +3064,7 @@
3064
3064
  aria-autocomplete="list"
3065
3065
  aria-controls="${this.suggestions.listboxId}"
3066
3066
  aria-expanded="${this.displaySuggestListbox}"
3067
- aria-activedescendant="${(e=this.suggestions.activeElementId)!==null&&e!==void 0?e:ko.nothing}"
3067
+ aria-activedescendant="${(e=this.suggestions.activeElementId)!==null&&e!==void 0?e:Eo.nothing}"
3068
3068
  @input=${this.onInput}
3069
3069
  @click=${this.onClick}
3070
3070
  @focus=${this.onFocus}
@@ -3074,10 +3074,10 @@
3074
3074
  <div class="sr-only" aria-live="polite" aria-atomic="true">
3075
3075
  ${a?Rr.messages.ariaLiveSuggestions(this.suggestions.recentQueriesCount(),this.suggestions.suggestionsCount()):""}
3076
3076
  </div>
3077
- ${a?this.suggestions.render():ko.nothing}
3077
+ ${a?this.suggestions.render():Eo.nothing}
3078
3078
  </div>
3079
3079
  <div class="ft-search-input--actions" part="actions">
3080
- ${this.liveQuery?ko.html`
3080
+ ${this.liveQuery?Eo.html`
3081
3081
  <ft-button id="clear-button"
3082
3082
  class="ft-search-input--clear-query"
3083
3083
  part="clear-query"
@@ -3093,64 +3093,64 @@
3093
3093
  icon="search"
3094
3094
  round dense
3095
3095
  label="${Rr.messages.searchButton()}"
3096
- href="${this.useCustomSearchPath?s:""}"
3096
+ href="${this.useCustomSearchPath?n:""}"
3097
3097
  @click=${()=>this.launchSearch(this.liveQuery)}
3098
3098
  ></ft-button>
3099
3099
  </div>
3100
3100
  </div>
3101
- `}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(),this.focusOnDisplay&&!Ke.isTouchScreen&&this.focusInput(!1)}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("displaySuggestListbox")&&(this.displaySuggestListbox?document.addEventListener("pointerdown",this.onPointerDown):document.removeEventListener("pointerdown",this.onPointerDown))}};pe.elementDefinitions={"ft-button":R,...ri.elementDefinitions};pe.styles=[Mr,Ke.noTextInputDefaultClearButton,sc,...ri.styles,Ke.screenReaderStyles];Ue([(0,Ke.redux)()],pe.prototype,"request",void 0);Ue([(0,Ke.redux)()],pe.prototype,"liveQuery",void 0);Ue([(0,Ke.redux)()],pe.prototype,"suggestResults",void 0);Ue([(0,Ke.redux)({selector:u0})],pe.prototype,"recentQuerySuggestions",void 0);Ue([(0,Ct.state)()],pe.prototype,"forceCloseSuggestion",void 0);Ue([(0,Ct.state)()],pe.prototype,"displaySuggestListbox",void 0);Ue([(0,Ct.state)()],pe.prototype,"selectedSuggestOptionIndex",void 0);Ue([(0,Ct.state)()],pe.prototype,"selectedSuggestOptionRemove",void 0);Ue([(0,Ct.property)()],pe.prototype,"launchSearchPath",void 0);Ue([mo()],pe.prototype,"placeholder",void 0);Ue([(0,Ct.property)({type:Boolean})],pe.prototype,"useCustomSearchPath",void 0);Ue([(0,Ct.property)({type:Boolean})],pe.prototype,"triggerSearchOnClear",void 0);Ue([(0,Ct.property)({type:Boolean})],pe.prototype,"focusOnDisplay",void 0);Ue([(0,Ct.query)(".ft-search-input--input")],pe.prototype,"input",void 0);Ue([(0,Ct.query)('[part="launch-search-in-input"]')],pe.prototype,"launchSearchButton",void 0);Ue([(0,Ke.ignoreComposingEvents)()],pe.prototype,"onSearchBarKeyDown",null);Ue([(0,Ke.ignoreComposingEvents)()],pe.prototype,"onSearchBarKeyUp",null)});var db,hb=l(()=>{"use strict";hu();db={"ft-search-input":pe}});var fb,mb=l(()=>{"use strict";fb=u(m());hb();(0,fb.customElements)(db)});var gb={};si(gb,{FtSearchInput:()=>pe,FtSearchInputCssVariables:()=>te,styles:()=>sc});var vb=l(()=>{"use strict";pn();Og();hu();mb()});var yb,p0,fu,mu=l(()=>{"use strict";yb=u(b()),p0={},fu=yb.css`
3102
- `});var bb=l(()=>{"use strict"});var gu,xb=l(()=>{"use strict";kt();gu=or.fromGwt("designedActionBlockAriaLabels")});var ha,vu,Sb,kr,yu=l(()=>{"use strict";ha=u(b()),vu=u(m());mu();qt();_i();kt();xb();xo();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},kr=class extends at($t){constructor(){super(),this.currentPage=1,this.isLastPage=!0,this.neededSearchRequests=[Kt.CLUSTERED_SEARCH],this.addI18nContext(gu)}render(){return this.isLastPage?ha.nothing:ha.html`
3101
+ `}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,Ge.waitFor)(()=>this.input,50),this.input.focus(),this.showSuggestionsOnFocus=!0}async connectedCallback(){super.connectedCallback(),this.focusOnDisplay&&!Ge.isTouchScreen&&this.focusInput(!1)}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("displaySuggestListbox")&&(this.displaySuggestListbox?document.addEventListener("pointerdown",this.onPointerDown):document.removeEventListener("pointerdown",this.onPointerDown))}};pe.elementDefinitions={"ft-button":w,...Zr.elementDefinitions};pe.styles=[Mr,Ge.noTextInputDefaultClearButton,uc,...Zr.styles,Ge.screenReaderStyles];ze([(0,Ge.redux)()],pe.prototype,"request",void 0);ze([(0,Ge.redux)()],pe.prototype,"liveQuery",void 0);ze([(0,Ge.redux)()],pe.prototype,"suggestResults",void 0);ze([(0,Ge.redux)({selector:kE})],pe.prototype,"recentQuerySuggestions",void 0);ze([(0,Ct.state)()],pe.prototype,"forceCloseSuggestion",void 0);ze([(0,Ct.state)()],pe.prototype,"displaySuggestListbox",void 0);ze([(0,Ct.state)()],pe.prototype,"selectedSuggestOptionIndex",void 0);ze([(0,Ct.state)()],pe.prototype,"selectedSuggestOptionRemove",void 0);ze([(0,Ct.property)()],pe.prototype,"launchSearchPath",void 0);ze([no()],pe.prototype,"placeholder",void 0);ze([(0,Ct.property)({type:Boolean})],pe.prototype,"useCustomSearchPath",void 0);ze([(0,Ct.property)({type:Boolean})],pe.prototype,"triggerSearchOnClear",void 0);ze([(0,Ct.property)({type:Boolean})],pe.prototype,"focusOnDisplay",void 0);ze([(0,Ct.query)(".ft-search-input--input")],pe.prototype,"input",void 0);ze([(0,Ct.query)('[part="launch-search-in-input"]')],pe.prototype,"launchSearchButton",void 0);ze([(0,Ge.ignoreComposingEvents)()],pe.prototype,"onSearchBarKeyDown",null);ze([(0,Ge.ignoreComposingEvents)()],pe.prototype,"onSearchBarKeyUp",null)});var vv,xv=l(()=>{"use strict";yu();vv={"ft-search-input":pe}});var Sv,Ev=l(()=>{"use strict";Sv=c(f());xv();(0,Sv.customElements)(vv)});var Cv={};ri(Cv,{FtSearchInput:()=>pe,FtSearchInputCssVariables:()=>re,styles:()=>uc});var Av=l(()=>{"use strict";ns();$g();yu();Ev()});var wv,LE,bu,vu=l(()=>{"use strict";wv=c(g()),LE={},bu=wv.css`
3102
+ `});var Ov=l(()=>{"use strict"});var xu,_v=l(()=>{"use strict";kt();xu=or.fromGwt("designedActionBlockAriaLabels")});var Ea,Su,Rv,Lr,Eu=l(()=>{"use strict";Ea=c(g()),Su=c(f());vu();qt();Ai();kt();_v();po();Rv=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},Lr=class extends ct(Pt){constructor(){super(),this.currentPage=1,this.isLastPage=!0,this.neededSearchRequests=[Kt.CLUSTERED_SEARCH],this.addI18nContext(xu)}render(){return this.isLastPage?Ea.nothing:Ea.html`
3103
3103
  <ft-button @click=${this.loadMore}>
3104
- ${gu.messages.searchPageLoadMore()}
3104
+ ${xu.messages.searchPageLoadMore()}
3105
3105
  </ft-button>
3106
- `}loadMore(){var e;(e=this.stateManager)===null||e===void 0||e.setPageNumber(this.currentPage+1)}};kr.elementDefinitions={"ft-button":R};kr.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}})],kr.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}})],kr.prototype,"isLastPage",void 0)});var Cb,Eb=l(()=>{"use strict";yu();Cb={"ft-search-load-more-button":kr}});var Ab,Ob=l(()=>{"use strict";Ab=u(m());Eb();(0,Ab.customElements)(Cb)});var wb={};si(wb,{FtSearchLoadMoreButton:()=>kr,FtSearchLoadMoreButtonCssVariables:()=>p0,styles:()=>fu});var Rb=l(()=>{"use strict";mu();bb();yu();Ob()});var Tb=l(()=>{"use strict"});var ga,ma,fa,xu,bu,d0,Lo,Su=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},xu=class extends Event{constructor(){super("register-ft-search-result-component",{bubbles:!0,composed:!0})}},bu=Symbol("registerInterval"),d0=(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[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,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}),Lo=class extends d0($t){}});var Cu,_b,kb,Fi,Eu=l(()=>{"use strict";Cu=u(b()),_b=u(m());Su();Ms();kb=u(ks());ge();Fi=class extends Lo{render(){var e;let r=(e=(0,_b.accessResult)(this.result))===null||e===void 0?void 0:e.htmlExcerpt;return r?Cu.html`
3107
- <ft-typography variant="${Q.body1}" part="text">${(0,kb.unsafeHTML)(r)}</ft-typography>
3108
- `:Cu.html`
3106
+ `}loadMore(){var e;(e=this.stateManager)===null||e===void 0||e.setPageNumber(this.currentPage+1)}};Lr.elementDefinitions={"ft-button":w};Lr.styles=bu;Rv([(0,Su.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}})],Lr.prototype,"currentPage",void 0);Rv([(0,Su.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}})],Lr.prototype,"isLastPage",void 0)});var Tv,kv=l(()=>{"use strict";Eu();Tv={"ft-search-load-more-button":Lr}});var Lv,$v=l(()=>{"use strict";Lv=c(f());kv();(0,Lv.customElements)(Tv)});var Pv={};ri(Pv,{FtSearchLoadMoreButton:()=>Lr,FtSearchLoadMoreButtonCssVariables:()=>LE,styles:()=>bu});var Iv=l(()=>{"use strict";vu();Ov();Eu();$v()});var Mv=l(()=>{"use strict"});var wa,Aa,Ca,Au,Cu,$E,Co,wu=l(()=>{"use strict";wa=c(f());Ai();Aa=c(F()),Ca=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},Au=class extends Event{constructor(){super("register-ft-search-result-component",{bubbles:!0,composed:!0})}},Cu=Symbol("registerInterval"),$E=(0,wa.applyMixinOnce)(Symbol("toFtSearchResultComponent"),function(t){var e;class r extends t{constructor(){super(...arguments),this[e]=0}setResultStateManager(s){this.resultStateManager=s}unregisterResultStateManager(){this.resultStateManager&&(this.resultStateManager.unregisterComponent(this),this.resultStateManager=void 0)}connectedCallback(){super.connectedCallback(),this[Cu]=window.setInterval(()=>this.tryToRegisterToResultContext(),50)}tryToRegisterToResultContext(){this.result!=null?window.clearInterval(this[Cu]):this.dispatchEvent(new Au)}disconnectedCallback(){super.disconnectedCallback(),this.unregisterResultStateManager()}}return e=Cu,Ca([(0,Aa.property)({attribute:!1})],r.prototype,"cluster",void 0),Ca([(0,Aa.property)({attribute:!1})],r.prototype,"result",void 0),Ca([(0,wa.numberProperty)()],r.prototype,"rank",void 0),Ca([(0,Aa.property)({attribute:!1,type:Boolean})],r.prototype,"openResultInNewTab",void 0),r}),Co=class extends $E(Pt){}});var Ou,Dv,Nv,Pi,_u=l(()=>{"use strict";Ou=c(g()),Dv=c(f());wu();qn();Nv=c(Bn());ve();Pi=class extends Co{render(){var e;let r=(e=(0,Dv.accessResult)(this.result))===null||e===void 0?void 0:e.htmlExcerpt;return r?Ou.html`
3107
+ <ft-typography variant="${Y.body1}" part="text">${(0,Nv.unsafeHTML)(r)}</ft-typography>
3108
+ `:Ou.html`
3109
3109
  <style>
3110
3110
  :host {
3111
3111
  display: none !important;
3112
3112
  }
3113
3113
  </style>
3114
- `}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:()=>Ds,styles:()=>ac});var Db=l(()=>{"use strict";Ms();Tb();Eu();Au()});var Mb=l(()=>{"use strict"});var _n,Nb,Fb,Bb,h0,ii,Ou=l(()=>{"use strict";_n=u(b()),Nb=u(B()),Fb=u(m());Su();Fs();ge();Bb=u(ks());dc();mn();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 Lo{constructor(){super(...arguments),this.withoutLink=!1}render(){var e;return this.result?this.withoutLink?this.renderTitle():_n.html`
3115
- <a href="${Hs(this.result)}"
3114
+ `}contentAvailableCallback(e){super.contentAvailableCallback(e),this.shadowRoot.querySelectorAll(".kwicmatch").forEach(r=>r.setAttribute("part","kwicmatch"))}};Pi.elementDefinitions={"ft-typography":z};Pi.styles=dc});var Fv,Bv=l(()=>{"use strict";_u();Fv={"ft-search-result-abstract":Pi}});var Uv,Ru=l(()=>{"use strict";Uv=c(f());Bv();(0,Uv.customElements)(Fv)});var Vv={};ri(Vv,{FtSearchResultAbstract:()=>Pi,FtSearchResultAbstractCssVariables:()=>jn,styles:()=>dc});var zv=l(()=>{"use strict";qn();Mv();_u();Ru()});var Hv=l(()=>{"use strict"});var As,jv,qv,Kv,PE,Jr,Tu=l(()=>{"use strict";As=c(g()),jv=c(F()),qv=c(f());wu();Wn();ve();Kv=c(Bn());gc();us();PE=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},Jr=class extends Co{constructor(){super(...arguments),this.withoutLink=!1}render(){var e;return this.result?this.withoutLink?this.renderTitle():As.html`
3115
+ <a href="${Yn(this.result)}"
3116
3116
  @click=${this.onResultClick}
3117
3117
  @auxclick=${r=>this.onAuxClick(r)}
3118
3118
  @contextmenu=${this.onContextMenu}
3119
- target="${rg(this.result,(e=this.stateManager)===null||e===void 0?void 0:e.openExternalDocumentInNewTab)}"
3119
+ target="${cg(this.result,(e=this.stateManager)===null||e===void 0?void 0:e.openExternalDocumentInNewTab)}"
3120
3120
  part="link">
3121
3121
  ${this.renderTitle()}
3122
3122
  </a>
3123
- `:_n.nothing}onAuxClick(e){e.button==1&&this.onResultClick()}renderTitle(){var e;return _n.html`
3124
- <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>
3125
- `}onResultClick(){this.dispatchEvent(new yo(this.result,this.rank))}onContextMenu(){this.result.type!="HTML_PACKAGE"&&this.result.type!="HTML_PACKAGE_PAGE"&&this.dispatchEvent(new bo(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:()=>Ns,styles:()=>lc});var zb=l(()=>{"use strict";Fs();Mb();Ou();wu()});var qb,f0,Ru,Tu=l(()=>{"use strict";qb=u(b()),f0={},Ru=qb.css`
3123
+ `:As.nothing}onAuxClick(e){e.button==1&&this.onResultClick()}renderTitle(){var e;return As.html`
3124
+ <ft-typography variant="${Y.title}" part="text">${(0,Kv.unsafeHTML)((e=(0,qv.accessResult)(this.result))===null||e===void 0?void 0:e.htmlTitle)}</ft-typography>
3125
+ `}onResultClick(){this.dispatchEvent(new co(this.result,this.rank))}onContextMenu(){this.result.type!="HTML_PACKAGE"&&this.result.type!="HTML_PACKAGE_PAGE"&&this.dispatchEvent(new uo(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"})}};Jr.elementDefinitions={"ft-typography":z};Jr.styles=pc;PE([(0,jv.property)({type:Boolean})],Jr.prototype,"withoutLink",void 0)});var Wv,Gv=l(()=>{"use strict";Tu();Wv={"ft-search-result-title":Jr}});var Qv,ku=l(()=>{"use strict";Qv=c(f());Gv();(0,Qv.customElements)(Wv)});var Yv={};ri(Yv,{FtSearchResultTitle:()=>Jr,FtSearchResultTitleCssVariables:()=>Kn,styles:()=>pc});var Xv=l(()=>{"use strict";Wn();Hv();Tu();ku()});var Zv,IE,Lu,$u=l(()=>{"use strict";Zv=c(g()),IE={},Lu=Zv.css`
3126
3126
  [part="no-results-message"] {
3127
3127
  text-align: center;
3128
3128
  padding: 12px;
3129
3129
  }
3130
- `});var Kb=l(()=>{"use strict"});var Wb,Gb,Qb=l(()=>{"use strict";Wb=u(b()),Gb=Wb.css`
3130
+ `});var Jv=l(()=>{"use strict"});var ex,tx,rx=l(()=>{"use strict";ex=c(g()),tx=ex.css`
3131
3131
  a {
3132
3132
  color: inherit;
3133
3133
  text-decoration: inherit;
3134
3134
  }
3135
- `});var va,Xb=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 Yb,Po,Zb,ya,_u,mr,Jb=l(()=>{"use strict";Yb=u(b()),Po=u(B()),Zb=u(m());Qb();Xb();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},_u=class extends CustomEvent{constructor(e){super("ft-search-result-cluster-change",{detail:e,bubbles:!0,composed:!0})}},mr=class extends Zb.FtLitElement{constructor(){super(...arguments),this.openResultInNewTab=!1,this.index=0,this.stateManager=new va(e=>this.onResultSelected(e))}render(){return Yb.html`
3135
+ `});var Oa,ix=l(()=>{"use strict";Oa=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 ox,Ao,sx,_a,Pu,mr,nx=l(()=>{"use strict";ox=c(g()),Ao=c(F()),sx=c(f());rx();ix();_a=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},Pu=class extends CustomEvent{constructor(e){super("ft-search-result-cluster-change",{detail:e,bubbles:!0,composed:!0})}},mr=class extends sx.FtLitElement{constructor(){super(...arguments),this.openResultInNewTab=!1,this.index=0,this.stateManager=new Oa(e=>this.onResultSelected(e))}render(){return ox.html`
3136
3136
  <slot @register-ft-search-result-component=${this.registerComponent}></slot>
3137
- `}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()}};mr.elementDefinitions={};mr.styles=Gb;ya([(0,Po.property)({attribute:!1})],mr.prototype,"cluster",void 0);ya([(0,Po.property)({attribute:!1,type:Boolean})],mr.prototype,"openResultInNewTab",void 0);ya([(0,Po.state)()],mr.prototype,"result",void 0);ya([(0,Po.property)()],mr.prototype,"index",void 0)});var ex,tx=l(()=>{"use strict";Jb();ex={"ft-search-result-context":mr}});var rx,ix=l(()=>{"use strict";rx=u(m());tx();(0,rx.customElements)(ex)});var $o,ox,ku=l(()=>{"use strict";kt();$o=or.build("searchResultsNumber"),ox={results:"{0} results","results[\\=1]":"1 result"}});var ba,nx,xa,Zt,Bi,Et,Lu=l(()=>{"use strict";ba=u(b()),nx=u(Tr()),xa=u(B()),Zt=u(m());Tu();_i();ix();wu();Au();kt();ku();xo();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($t){constructor(){super(),this.clusterPolicy="display-first-result",this.displayNoResultsMessage=!1,this.renderResult=()=>ba.html`
3137
+ `}onResultSelected(e){this.result=e,this.dispatchEvent(new Pu(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()}};mr.elementDefinitions={};mr.styles=tx;_a([(0,Ao.property)({attribute:!1})],mr.prototype,"cluster",void 0);_a([(0,Ao.property)({attribute:!1,type:Boolean})],mr.prototype,"openResultInNewTab",void 0);_a([(0,Ao.state)()],mr.prototype,"result",void 0);_a([(0,Ao.property)()],mr.prototype,"index",void 0)});var ax,lx=l(()=>{"use strict";nx();ax={"ft-search-result-context":mr}});var cx,ux=l(()=>{"use strict";cx=c(f());lx();(0,cx.customElements)(ax)});var wo,dx,Iu=l(()=>{"use strict";kt();wo=or.build("searchResultsNumber"),dx={results:"{0} results","results[\\=1]":"1 result"}});var Ra,px,Ta,Zt,Ii,At,Mu=l(()=>{"use strict";Ra=c(g()),px=c(Tr()),Ta=c(F()),Zt=c(f());$u();Ai();ux();ku();Ru();kt();Iu();po();Ii=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},At=class extends ct(Pt){constructor(){super(),this.clusterPolicy="display-first-result",this.displayNoResultsMessage=!1,this.renderResult=()=>Ra.html`
3138
3138
  <ft-search-result-title></ft-search-result-title>
3139
3139
  <ft-search-result-abstract></ft-search-result-abstract>
3140
- `,this.clusterSortCriterion=[],this.selectedResultByCluster={},this.neededSearchRequests=[Kt.CLUSTERED_SEARCH],this.addI18nContext($o)}render(){if(this.displayNoResultsMessage&&this.results!=null&&this.results.length==0)return ba.html`
3141
- <ft-typography part="no-results-message" variant="body1">${$o.messages.results(0)}</ft-typography>
3142
- `;let e=this.buildClusters();return(0,nx.repeat)(e,r=>r.id,(r,i)=>{var o;return ba.html`
3140
+ `,this.clusterSortCriterion=[],this.selectedResultByCluster={},this.neededSearchRequests=[Kt.CLUSTERED_SEARCH],this.addI18nContext(wo)}render(){if(this.displayNoResultsMessage&&this.results!=null&&this.results.length==0)return Ra.html`
3141
+ <ft-typography part="no-results-message" variant="body1">${wo.messages.results(0)}</ft-typography>
3142
+ `;let e=this.buildClusters();return(0,px.repeat)(e,r=>r.id,(r,i)=>{var s;return Ra.html`
3143
3143
  <ft-search-result-context .cluster=${r} index="${i}"
3144
- @ft-search-result-cluster-change=${n=>this.onClusterChange(r.id,n.detail)}>
3145
- ${this.renderResult((o=this.selectedResultByCluster[r.id])!==null&&o!==void 0?o:r.entries[0],i)}
3144
+ @ft-search-result-cluster-change=${o=>this.onClusterChange(r.id,o.detail)}>
3145
+ ${this.renderResult((s=this.selectedResultByCluster[r.id])!==null&&s!==void 0?s:r.entries[0],i)}
3146
3146
  </ft-search-result-context>
3147
- `})}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&&Zt.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,Zt.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,Zt.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,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,Zt.jsonProperty)([])],Et.prototype,"clusterSortCriterion",void 0);Bi([(0,Zt.redux)({selector:t=>({...t.request,paging:void 0})})],Et.prototype,"requestWithoutPaging",void 0);Bi([(0,Zt.redux)({selector:t=>t.request.paging})],Et.prototype,"paging",void 0);Bi([(0,Zt.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`
3147
+ `})}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&&Zt.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,Zt.accessResultId)(i.entries[0]),entries:i.entries})))!==null&&r!==void 0?r:[]}buildAllResultsClusters(){var e,r,i;let s=(r=(e=this.results)===null||e===void 0?void 0:e.flatMap(o=>o.entries.map(n=>({id:(0,Zt.accessResultId)(n),entries:[n]}))))!==null&&r!==void 0?r:[];return this.paging&&this.paging.page===1?s.slice(0,(i=this.paging.perPage)!==null&&i!==void 0?i:20):s}};At.styles=Lu;Ii([(0,Ta.property)({type:String,attribute:"cluster-policy"})],At.prototype,"clusterPolicy",void 0);Ii([(0,Ta.property)({type:Boolean})],At.prototype,"displayNoResultsMessage",void 0);Ii([(0,Ta.property)({attribute:!1})],At.prototype,"renderResult",void 0);Ii([(0,Zt.jsonProperty)([])],At.prototype,"clusterSortCriterion",void 0);Ii([(0,Zt.redux)({selector:t=>({...t.request,paging:void 0})})],At.prototype,"requestWithoutPaging",void 0);Ii([(0,Zt.redux)({selector:t=>t.request.paging})],At.prototype,"paging",void 0);Ii([(0,Zt.redux)()],At.prototype,"results",void 0)});var hx,fx=l(()=>{"use strict";Mu();hx={"ft-search-results":At}});var mx,gx=l(()=>{"use strict";mx=c(f());fx();(0,mx.customElements)(hx)});var yx={};ri(yx,{FtSearchResults:()=>At,FtSearchResultsCssVariables:()=>IE,styles:()=>Lu});var bx=l(()=>{"use strict";$u();Jv();Mu();gx()});var vx,ME,Du,Nu=l(()=>{"use strict";vx=c(g()),ME={},Du=vx.css`
3148
3148
 
3149
- `});var hx=l(()=>{"use strict"});var Sa,oi,fx,Lr,Iu=l(()=>{"use strict";Sa=u(b()),oi=u(m());$u();_i();kt();ku();ge();xo();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},Lr=class extends(0,oi.withAriaNotification)(at($t)){constructor(){super(),this.ariaNotificationDebouncer=new oi.Debouncer(100),this.searchNumberOfResults={context:"officialContext",key:"searchNumberOfResults",message:""},this.neededSearchRequests=[Kt.CLUSTERED_SEARCH],this.addI18nContext($o,ox)}render(){return this.paging==null?Sa.nothing:Sa.html`
3150
- <ft-typography variant="${Q.body1}">
3151
- ${$o.messages.results(this.paging.totalClustersCount)}
3149
+ `});var xx=l(()=>{"use strict"});var ka,ei,Sx,$r,Fu=l(()=>{"use strict";ka=c(g()),ei=c(f());Nu();Ai();kt();Iu();ve();po();Sx=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},$r=class extends(0,ei.withAriaNotification)(ct(Pt)){constructor(){super(),this.ariaNotificationDebouncer=new ei.Debouncer(100),this.searchNumberOfResults={context:"officialContext",key:"searchNumberOfResults",message:""},this.neededSearchRequests=[Kt.CLUSTERED_SEARCH],this.addI18nContext(wo,dx)}render(){return this.paging==null?ka.nothing:ka.html`
3150
+ <ft-typography variant="${Y.body1}">
3151
+ ${wo.messages.results(this.paging.totalClustersCount)}
3152
3152
  </ft-typography>
3153
- `}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)}})}};Lr.elementDefinitions={"ft-typography":j};Lr.styles=Pu;fx([(0,oi.jsonProperty)({context:"officialContext",key:"searchNumberOfResults"})],Lr.prototype,"searchNumberOfResults",void 0);fx([(0,oi.redux)()],Lr.prototype,"paging",void 0)});var mx,gx=l(()=>{"use strict";Iu();mx={"ft-search-results-number":Lr}});var vx,yx=l(()=>{"use strict";vx=u(m());gx();(0,vx.customElements)(mx)});var bx={};si(bx,{FtSearchResultsNumber:()=>Lr,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()),T=u(m());var zu=u(b()),K=u(m());vr();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`
3153
+ `}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)}})}};$r.elementDefinitions={"ft-typography":z};$r.styles=Du;Sx([(0,ei.jsonProperty)({context:"officialContext",key:"searchNumberOfResults"})],$r.prototype,"searchNumberOfResults",void 0);Sx([(0,ei.redux)()],$r.prototype,"paging",void 0)});var Ex,Cx=l(()=>{"use strict";Fu();Ex={"ft-search-results-number":$r}});var Ax,wx=l(()=>{"use strict";Ax=c(f());Cx();(0,Ax.customElements)(Ex)});var Ox={};ri(Ox,{FtSearchResultsNumber:()=>$r,FtSearchResultsNumberCssVariables:()=>ME,styles:()=>Du});var _x=l(()=>{"use strict";Nu();xx();Fu();wx()});var Tx=c(f());var wt=c(g()),Mi=c(f());var hc=c(g()),O=c(f());var Gu=c(g()),K=c(f());yr();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=Gu.css`
3154
3154
  :host {
3155
3155
  display: block;
3156
3156
  }
@@ -3239,7 +3239,7 @@
3239
3239
  #action {
3240
3240
  grid-area: actions;
3241
3241
  }
3242
- `;pn();Ms();vr();Fs();var ze={searchFieldBackgroundColor:T.FtCssVariableFactory.extend("--ft-rsid-search-field-background-color","",T.designSystemVariables.colorSurface),searchFieldBorderColor:T.FtCssVariableFactory.extend("--ft-rsid-search-field-border-color","",T.designSystemVariables.colorOutline),searchFieldTextColor:T.FtCssVariableFactory.extend("--ft-rsid-search-field-text-color","",T.designSystemVariables.colorOnSurface),searchFieldBorderRadius:T.FtCssVariableFactory.extend("--ft-rsid-search-field-border-radius","",T.designSystemVariables.borderRadiusS),searchButtonColor:T.FtCssVariableFactory.extend("--ft-rsid-search-field-button-color","",T.designSystemVariables.colorPrimary),resultsNumberColor:T.FtCssVariableFactory.extend("--ft-rsid-results-number-color","",T.designSystemVariables.colorOnSurfaceMedium),resultBackgroundColor:T.FtCssVariableFactory.extend("--ft-rsid-result-background-color","",T.designSystemVariables.colorSurface),resultBorderColor:T.FtCssVariableFactory.extend("--ft-rsid-result-border-color","",T.designSystemVariables.colorOutline),resultBorderRadius:T.FtCssVariableFactory.extend("--ft-rsid-result-border-radius","",T.designSystemVariables.borderRadiusS),resultTitleTextColor:T.FtCssVariableFactory.extend("--ft-rsid-result-title-text-color","",T.designSystemVariables.colorOnSurface),resultBreadcrumbTextColor:T.FtCssVariableFactory.extend("--ft-rsid-result-breadcrumb-text-color","",T.designSystemVariables.colorOnSurfaceMedium),resultContentTextColor:T.FtCssVariableFactory.extend("--ft-rsid-result-content-text-color","",T.designSystemVariables.colorOnSurface),resultHighlightBackgroundColor:T.FtCssVariableFactory.create("--ft-rsid-result-highlight-background-color","","COLOR","#FFF26E"),resultHoverBackgroundColor:T.FtCssVariableFactory.extend("--ft-rsid-result-hover-background-color","",T.designSystemVariables.colorPrimary),resultHoverBorderColor:T.FtCssVariableFactory.extend("--ft-rsid-result-hover-border-color","",T.designSystemVariables.colorPrimary)},Xm=cc.css`
3242
+ `;ns();qn();yr();Wn();var Ke={searchFieldBackgroundColor:O.FtCssVariableFactory.extend("--ft-rsid-search-field-background-color","",O.designSystemVariables.colorSurface),searchFieldBorderColor:O.FtCssVariableFactory.extend("--ft-rsid-search-field-border-color","",O.designSystemVariables.colorOutline),searchFieldTextColor:O.FtCssVariableFactory.extend("--ft-rsid-search-field-text-color","",O.designSystemVariables.colorOnSurface),searchFieldBorderRadius:O.FtCssVariableFactory.extend("--ft-rsid-search-field-border-radius","",O.designSystemVariables.borderRadiusS),searchButtonColor:O.FtCssVariableFactory.extend("--ft-rsid-search-field-button-color","",O.designSystemVariables.colorPrimary),resultsNumberColor:O.FtCssVariableFactory.extend("--ft-rsid-results-number-color","",O.designSystemVariables.colorOnSurfaceMedium),resultBackgroundColor:O.FtCssVariableFactory.extend("--ft-rsid-result-background-color","",O.designSystemVariables.colorSurface),resultBorderColor:O.FtCssVariableFactory.extend("--ft-rsid-result-border-color","",O.designSystemVariables.colorOutline),resultBorderRadius:O.FtCssVariableFactory.extend("--ft-rsid-result-border-radius","",O.designSystemVariables.borderRadiusS),resultTitleTextColor:O.FtCssVariableFactory.extend("--ft-rsid-result-title-text-color","",O.designSystemVariables.colorOnSurface),resultBreadcrumbTextColor:O.FtCssVariableFactory.extend("--ft-rsid-result-breadcrumb-text-color","",O.designSystemVariables.colorOnSurfaceMedium),resultContentTextColor:O.FtCssVariableFactory.extend("--ft-rsid-result-content-text-color","",O.designSystemVariables.colorOnSurface),resultHighlightBackgroundColor:O.FtCssVariableFactory.create("--ft-rsid-result-highlight-background-color","","COLOR","#FFF26E"),resultHoverBackgroundColor:O.FtCssVariableFactory.extend("--ft-rsid-result-hover-background-color","",O.designSystemVariables.colorPrimary),resultHoverBorderColor:O.FtCssVariableFactory.extend("--ft-rsid-result-hover-border-color","",O.designSystemVariables.colorPrimary)},ig=hc.css`
3243
3243
  .ft-search-in-doc--container {
3244
3244
  display: flex;
3245
3245
  flex-direction: column;
@@ -3247,11 +3247,11 @@
3247
3247
  }
3248
3248
 
3249
3249
  ft-search-input {
3250
- ${(0,T.setVariable)(te.colorSurface,ze.searchFieldBackgroundColor)};
3251
- ${(0,T.setVariable)(te.colorOutline,ze.searchFieldBorderColor)};
3252
- ${(0,T.setVariable)(te.colorOnSurface,ze.searchFieldTextColor)};
3253
- ${(0,T.setVariable)(te.borderRadius,ze.searchFieldBorderRadius)};
3254
- ${(0,T.setVariable)(te.buttonColor,ze.searchButtonColor)};
3250
+ ${(0,O.setVariable)(re.colorSurface,Ke.searchFieldBackgroundColor)};
3251
+ ${(0,O.setVariable)(re.colorOutline,Ke.searchFieldBorderColor)};
3252
+ ${(0,O.setVariable)(re.colorOnSurface,Ke.searchFieldTextColor)};
3253
+ ${(0,O.setVariable)(re.borderRadius,Ke.searchFieldBorderRadius)};
3254
+ ${(0,O.setVariable)(re.buttonColor,Ke.searchButtonColor)};
3255
3255
  }
3256
3256
 
3257
3257
  ft-search-results-number {
@@ -3259,41 +3259,41 @@
3259
3259
  }
3260
3260
 
3261
3261
  ft-search-results-number, ft-search-results::part(no-results-message) {
3262
- color: ${ze.resultsNumberColor};
3262
+ color: ${Ke.resultsNumberColor};
3263
3263
  }
3264
3264
 
3265
3265
  ft-search-load-more-button {
3266
3266
  margin: auto;
3267
3267
  }
3268
- `,Ym=cc.css`
3268
+ `,og=hc.css`
3269
3269
  ft-card {
3270
3270
  margin-bottom: 8px;
3271
- ${(0,T.setVariable)(X.elevation04,"none")};
3272
- ${(0,T.setVariable)(X.elevation02,"none")};
3273
- ${(0,T.setVariable)(X.borderStyle,"solid")};
3274
- ${(0,T.setVariable)(X.borderRadius,T.designSystemVariables.borderRadiusS)};
3275
- ${(0,T.setVariable)(X.colorSurface,ze.resultBackgroundColor)};
3276
- ${(0,T.setVariable)(X.borderColor,ze.resultBorderColor)};
3277
- ${(0,T.setVariable)(X.borderRadius,ze.resultBorderRadius)};
3271
+ ${(0,O.setVariable)(X.elevation04,"none")};
3272
+ ${(0,O.setVariable)(X.elevation02,"none")};
3273
+ ${(0,O.setVariable)(X.borderStyle,"solid")};
3274
+ ${(0,O.setVariable)(X.borderRadius,O.designSystemVariables.borderRadiusS)};
3275
+ ${(0,O.setVariable)(X.colorSurface,Ke.resultBackgroundColor)};
3276
+ ${(0,O.setVariable)(X.borderColor,Ke.resultBorderColor)};
3277
+ ${(0,O.setVariable)(X.borderRadius,Ke.resultBorderRadius)};
3278
3278
  }
3279
3279
 
3280
3280
  ft-search-result-title {
3281
- color: ${ze.resultTitleTextColor};
3282
- ${(0,T.setVariable)(Ns.highlightBackgroundColor,ze.resultHighlightBackgroundColor)};
3281
+ color: ${Ke.resultTitleTextColor};
3282
+ ${(0,O.setVariable)(Kn.highlightBackgroundColor,Ke.resultHighlightBackgroundColor)};
3283
3283
  }
3284
3284
 
3285
3285
  .breadcrumb {
3286
- color: ${ze.resultBreadcrumbTextColor};
3286
+ color: ${Ke.resultBreadcrumbTextColor};
3287
3287
  }
3288
3288
 
3289
3289
  ft-search-result-abstract {
3290
- color: ${ze.resultContentTextColor};
3291
- ${(0,T.setVariable)(Ds.highlightBackgroundColor,ze.resultHighlightBackgroundColor)};
3290
+ color: ${Ke.resultContentTextColor};
3291
+ ${(0,O.setVariable)(jn.highlightBackgroundColor,Ke.resultHighlightBackgroundColor)};
3292
3292
  }
3293
3293
 
3294
3294
  ft-card:hover {
3295
- ${(0,T.setVariable)(X.hoverBorderColor,ze.resultHoverBorderColor)};
3296
- ${(0,T.setVariable)(q.color,ze.resultHoverBackgroundColor)};
3295
+ ${(0,O.setVariable)(X.hoverBorderColor,Ke.resultHoverBorderColor)};
3296
+ ${(0,O.setVariable)(q.color,Ke.resultHoverBackgroundColor)};
3297
3297
  }
3298
3298
 
3299
3299
  .result-container {
@@ -3306,11 +3306,11 @@
3306
3306
  text-decoration: none;
3307
3307
  color: inherit;
3308
3308
  }
3309
- `;kt();var Us=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,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[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}),Bs=class extends e0(Us.FtLitElementRedux){};var Pr=u(B());dc();kt();var hc=or.build("designedReaderSearchInDocument");var hn=u(b()),Ti=u(B()),ig=u(m());Ge();ge();var og=u(it()),vo=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 hn.html`
3310
- <div id="container" part="container" class="${(0,og.classMap)(e)}">
3311
- ${this.clickable?hn.html`
3309
+ `;kt();var Qn=c(f()),ag=c(F());var sg;(function(t){t.clusteringHelperCreated="clustering-helper-created",t.mapAttachmentsUpdate="map-attachments-update",t.visibleTopicChange="visible-topic-change",t.requestedTopicNotFound="requested-topic-not-found"})(sg||(sg={}));var ng;(function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"})(ng||(ng={}));var vE=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},mc=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},fc=Symbol("registerInterval"),xE=(0,Qn.applyMixinOnce)(Symbol("toFtReaderComponent"),function(t){var e;class r extends t{constructor(){super(...arguments),this[e]=0}setReaderStateManager(s){this.clearStateManager(),this.stateManager=s,this.addStore(s.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var s;return(s=this.stateManager)===null||s===void 0?void 0:s.service}connectedCallback(){super.connectedCallback(),this[fc]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[fc]):this.dispatchEvent(new mc)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=fc,vE([(0,ag.state)()],r.prototype,"stateManager",void 0),r}),Gn=class extends xE(Qn.FtLitElementRedux){};var Pr=c(F());gc();kt();var yc=or.build("designedReaderSearchInDocument");var ls=c(g()),Ci=c(F()),ug=c(f());Ye();ve();var dg=c(st()),lo=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},ut=class extends ug.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 ls.html`
3310
+ <div id="container" part="container" class="${(0,dg.classMap)(e)}">
3311
+ ${this.clickable?ls.html`
3312
3312
  <ft-ripple primary ?selected=${this.selected}></ft-ripple>
3313
- `:hn.nothing}
3313
+ `:ls.nothing}
3314
3314
  <div id="header" part="header">
3315
3315
  <ft-typography class="title" element="span" variant="title">${this.title}</ft-typography>
3316
3316
  <slot name="header"></slot>
@@ -3324,25 +3324,25 @@
3324
3324
  </ft-typography>
3325
3325
  </div>
3326
3326
  </div>
3327
- `}};lt.elementDefinitions={"ft-ripple":L,"ft-typography":j};lt.styles=qu;vo([(0,Ti.property)()],lt.prototype,"title",void 0);vo([(0,Ti.property)({type:Boolean})],lt.prototype,"clickable",void 0);vo([(0,Ti.property)({type:Boolean})],lt.prototype,"selected",void 0);vo([(0,Ti.property)({type:Boolean})],lt.prototype,"noHeader",void 0);vo([(0,Ti.property)({type:Boolean})],lt.prototype,"noContent",void 0);vo([(0,Ti.property)({type:Boolean})],lt.prototype,"oneLineHeader",void 0);var sg=u(m());var ng={"ft-card":lt};(0,sg.customElements)(ng);mn();ge();ws();var gr=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(hc)}get filters(){return[{key:"ft:publicationId",valueFilter:{negative:!1,values:[this.map.id]}}]}renderResult(e,r){var i;return At.html`
3328
- <style> ${Ym}</style>
3329
- <a href="${Hs(e)}" @click=${()=>this.onLinkClick(e,r)}
3330
- @auxclick=${o=>this.onAuxClick(o,e,r)}
3327
+ `}};ut.elementDefinitions={"ft-ripple":k,"ft-typography":z};ut.styles=Qu;lo([(0,Ci.property)()],ut.prototype,"title",void 0);lo([(0,Ci.property)({type:Boolean})],ut.prototype,"clickable",void 0);lo([(0,Ci.property)({type:Boolean})],ut.prototype,"selected",void 0);lo([(0,Ci.property)({type:Boolean})],ut.prototype,"noHeader",void 0);lo([(0,Ci.property)({type:Boolean})],ut.prototype,"noContent",void 0);lo([(0,Ci.property)({type:Boolean})],ut.prototype,"oneLineHeader",void 0);var hg=c(f());var pg={"ft-card":ut};(0,hg.customElements)(pg);us();ve();Mn();var gr=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},Qe=class t extends ct(Gn){constructor(){super(),this.searchInDocumentQuery="",this.hideResultTitle=!1,this.hideResultBreadcrumb=!1,this.hideResultAbstract=!1,this.hideResultsNumber=!1,this.emptyResultOnClear=!1,this.uniqueId=(0,Mi.randomId)(6,"search-in-document-"),this.addI18nContext(yc)}get filters(){return[{key:"ft:publicationId",valueFilter:{negative:!1,values:[this.map.id]}}]}renderResult(e,r){var i;return wt.html`
3328
+ <style> ${og}</style>
3329
+ <a href="${Yn(e)}" @click=${()=>this.onLinkClick(e,r)}
3330
+ @auxclick=${s=>this.onAuxClick(s,e,r)}
3331
3331
  @contextmenu=${()=>this.onContextMenu(e,r)}>
3332
3332
  <ft-card clickable noheader>
3333
3333
  <div class="result-container">
3334
- ${this.hideResultTitle?At.nothing:At.html`
3334
+ ${this.hideResultTitle?wt.nothing:wt.html`
3335
3335
  <ft-search-result-title withoutLink="true"></ft-search-result-title>`}
3336
- ${this.hideResultBreadcrumb?At.nothing:At.html`
3337
- <ft-typography class="breadcrumb" variant="${Q.caption}">${(i=e.topic)===null||i===void 0?void 0:i.breadcrumb.join(" > ")}</ft-typography>
3336
+ ${this.hideResultBreadcrumb?wt.nothing:wt.html`
3337
+ <ft-typography class="breadcrumb" variant="${Y.caption}">${(i=e.topic)===null||i===void 0?void 0:i.breadcrumb.join(" > ")}</ft-typography>
3338
3338
  `}
3339
- ${this.hideResultAbstract?At.nothing:At.html`
3339
+ ${this.hideResultAbstract?wt.nothing:wt.html`
3340
3340
  <ft-search-result-abstract></ft-search-result-abstract>
3341
3341
  `}
3342
3342
  </div>
3343
3343
  </ft-card>
3344
3344
  </a>
3345
- `}onAuxClick(e,r,i){e.button==1&&this.onLinkClick(r,i)}onContextMenu(e,r){this.dispatchEvent(new bo(e,r))}render(){return this.map?At.html`
3345
+ `}onAuxClick(e,r,i){e.button==1&&this.onLinkClick(r,i)}onContextMenu(e,r){this.dispatchEvent(new uo(e,r))}render(){return this.map?wt.html`
3346
3346
  <ft-search-context id="${this.uniqueId}"
3347
3347
  part="search-context"
3348
3348
  contentLocale="${this.map.lang}"
@@ -3351,10 +3351,10 @@
3351
3351
  scope="ALL_TOPICS"
3352
3352
  ignoreEmptyQuery>
3353
3353
  <div class="ft-search-in-doc--container">
3354
- <ft-search-input placeholder="${this.placeholder?this.placeholder.message:hc.messages.placeholder()}"
3354
+ <ft-search-input placeholder="${this.placeholder?this.placeholder.message:yc.messages.placeholder()}"
3355
3355
  ?triggerSearchOnClear=${this.emptyResultOnClear}
3356
3356
  @change=${e=>{var r;(r=this.stateManager)===null||r===void 0||r.setSearchInDocumentQuery(e.detail)}}></ft-search-input>
3357
- ${this.hideResultsNumber?At.nothing:At.html`
3357
+ ${this.hideResultsNumber?wt.nothing:wt.html`
3358
3358
  <ft-search-results-number></ft-search-results-number>
3359
3359
  `}
3360
3360
  <ft-search-results ?displayNoResultsMessage=${this.hideResultsNumber}
@@ -3366,7 +3366,7 @@
3366
3366
  </slot>
3367
3367
  </div>
3368
3368
  </ft-search-context>
3369
- `: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 yo(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;gr([(0,Ui.redux)()],We.prototype,"map",void 0);gr([(0,Ui.redux)()],We.prototype,"searchInDocumentQuery",void 0);gr([(0,Pr.query)("ft-search-results")],We.prototype,"searchResults",void 0);gr([(0,Pr.property)({type:Boolean})],We.prototype,"hideResultTitle",void 0);gr([(0,Pr.property)({type:Boolean})],We.prototype,"hideResultBreadcrumb",void 0);gr([(0,Pr.property)({type:Boolean})],We.prototype,"hideResultAbstract",void 0);gr([(0,Pr.property)({type:Boolean})],We.prototype,"hideResultsNumber",void 0);gr([(0,Pr.property)({type:Boolean})],We.prototype,"emptyResultOnClear",void 0);gr([(0,Pr.query)('[part="search-context"]')],We.prototype,"searchContext",void 0);gr([mo()],We.prototype,"placeholder",void 0);var Sx={"ft-reader-search-in-document":We};(0,Cx.customElements)(Sx);})();
3369
+ `:wt.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,Mi.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 co(e,r))}importDynamicDependencies(){super.importDynamicDependencies();let e=t.registry;Promise.resolve().then(()=>(Lg(),kg)).then(({FtSearchContext:r})=>e.define("ft-search-context",r)),Promise.resolve().then(()=>(Av(),Cv)).then(({FtSearchInput:r})=>e.define("ft-search-input",r)),Promise.resolve().then(()=>(Iv(),Pv)).then(({FtSearchLoadMoreButton:r})=>e.define("ft-search-load-more-button",r)),Promise.resolve().then(()=>(zv(),Vv)).then(({FtSearchResultAbstract:r})=>e.define("ft-search-result-abstract",r)),Promise.resolve().then(()=>(Xv(),Yv)).then(({FtSearchResultTitle:r})=>e.define("ft-search-result-title",r)),Promise.resolve().then(()=>(bx(),yx)).then(({FtSearchResults:r})=>e.define("ft-search-results",r)),Promise.resolve().then(()=>(_x(),Ox)).then(({FtSearchResultsNumber:r})=>e.define("ft-search-results-number",r))}};Qe.elementDefinitions={"ft-card":ut};Qe.styles=ig;gr([(0,Mi.redux)()],Qe.prototype,"map",void 0);gr([(0,Mi.redux)()],Qe.prototype,"searchInDocumentQuery",void 0);gr([(0,Pr.query)("ft-search-results")],Qe.prototype,"searchResults",void 0);gr([(0,Pr.property)({type:Boolean})],Qe.prototype,"hideResultTitle",void 0);gr([(0,Pr.property)({type:Boolean})],Qe.prototype,"hideResultBreadcrumb",void 0);gr([(0,Pr.property)({type:Boolean})],Qe.prototype,"hideResultAbstract",void 0);gr([(0,Pr.property)({type:Boolean})],Qe.prototype,"hideResultsNumber",void 0);gr([(0,Pr.property)({type:Boolean})],Qe.prototype,"emptyResultOnClear",void 0);gr([(0,Pr.query)('[part="search-context"]')],Qe.prototype,"searchContext",void 0);gr([no()],Qe.prototype,"placeholder",void 0);var Rx={"ft-reader-search-in-document":Qe};(0,Tx.customElements)(Rx);})();
3370
3370
  /*! Bundled license information:
3371
3371
 
3372
3372
  lit-html/lit-html.js: