@fluid-topics/ft-search-bar 2.0.11 → 2.0.12

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.
@@ -624,7 +624,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
624
624
  position: relative;
625
625
  word-break: break-word;
626
626
  }
627
- `;var E1=["top","right","bottom","left"],L1=["start","end"],Ds=E1.reduce((t,e)=>t.concat(e,e+"-"+L1[0],e+"-"+L1[1]),[]),Kn=Math.min,Vr=Math.max,qn=Math.round;var tr=t=>({x:t,y:t}),Lh={left:"right",right:"left",bottom:"top",top:"bottom"};function Bs(t,e,r){return Vr(t,Kn(e,r))}function Wa(t,e){return typeof t=="function"?t(e):t}function sn(t){return t.split("-")[0]}function jr(t){return t.split("-")[1]}function Fs(t){return t==="x"?"y":"x"}function Us(t){return t==="y"?"height":"width"}function Va(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function Hs(t){return Fs(Va(t))}function A1(t,e,r){r===void 0&&(r=!1);let o=jr(t),a=Hs(t),i=Us(a),s=a==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(s=$s(s)),[s,$s(s)]}function w1(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function $s(t){let e=sn(t);return Lh[e]+t.slice(e.length)}function Eh(t){return{top:0,right:0,bottom:0,left:0,...t}}function R1(t){return typeof t!="number"?Eh(t):{top:t,right:t,bottom:t,left:t}}function Lo(t){let{x:e,y:r,width:o,height:a}=t;return{width:o,height:a,top:r,left:e,right:e+o,bottom:r+a,x:e,y:r}}function _1(t,e,r){let{reference:o,floating:a}=t,i=Va(e),s=Hs(e),l=Us(s),f=sn(e),p=i==="y",g=o.x+o.width/2-a.width/2,y=o.y+o.height/2-a.height/2,b=o[l]/2-a[l]/2,S;switch(f){case"top":S={x:g,y:o.y-a.height};break;case"bottom":S={x:g,y:o.y+o.height};break;case"right":S={x:o.x+o.width,y};break;case"left":S={x:o.x-a.width,y};break;default:S={x:o.x,y:o.y}}switch(jr(e)){case"start":S[s]-=b*(r&&p?-1:1);break;case"end":S[s]+=b*(r&&p?-1:1);break}return S}async function k1(t,e){var r;e===void 0&&(e={});let{x:o,y:a,platform:i,rects:s,elements:l,strategy:f}=t,{boundary:p="clippingAncestors",rootBoundary:g="viewport",elementContext:y="floating",altBoundary:b=!1,padding:S=0}=Wa(e,t),O=R1(S),T=l[b?y==="floating"?"reference":"floating":y],z=Lo(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(T)))==null||r?T:T.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:p,rootBoundary:g,strategy:f})),N=y==="floating"?{x:o,y:a,width:s.floating.width,height:s.floating.height}:s.reference,D=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),F=await(i.isElement==null?void 0:i.isElement(D))?await(i.getScale==null?void 0:i.getScale(D))||{x:1,y:1}:{x:1,y:1},oe=Lo(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:N,offsetParent:D,strategy:f}):N);return{top:(z.top-oe.top+O.top)/F.y,bottom:(oe.bottom-z.bottom+O.bottom)/F.y,left:(z.left-oe.left+O.left)/F.x,right:(oe.right-z.right+O.right)/F.x}}var Ah=50,T1=async(t,e,r)=>{let{placement:o="bottom",strategy:a="absolute",middleware:i=[],platform:s}=r,l=s.detectOverflow?s:{...s,detectOverflow:k1},f=await(s.isRTL==null?void 0:s.isRTL(e)),p=await s.getElementRects({reference:t,floating:e,strategy:a}),{x:g,y}=_1(p,o,f),b=o,S=0,O={};for(let A=0;A<i.length;A++){let T=i[A];if(!T)continue;let{name:z,fn:N}=T,{x:D,y:F,data:oe,reset:Ce}=await N({x:g,y,initialPlacement:o,placement:b,strategy:a,middlewareData:O,rects:p,platform:l,elements:{reference:t,floating:e}});g=D??g,y=F??y,O[z]={...O[z],...oe},Ce&&S<Ah&&(S++,typeof Ce=="object"&&(Ce.placement&&(b=Ce.placement),Ce.rects&&(p=Ce.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:a}):Ce.rects),{x:g,y}=_1(p,b,f)),A=-1)}return{x:g,y,placement:b,strategy:a,middlewareData:O}};function wh(t,e,r){return(t?[...r.filter(a=>jr(a)===t),...r.filter(a=>jr(a)!==t)]:r.filter(a=>sn(a)===a)).filter(a=>t?jr(a)===t||(e?w1(a)!==a:!1):!0)}var N1=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,o,a;let{rects:i,middlewareData:s,placement:l,platform:f,elements:p}=e,{crossAxis:g=!1,alignment:y,allowedPlacements:b=Ds,autoAlignment:S=!0,...O}=Wa(t,e),A=y!==void 0||b===Ds?wh(y||null,S,b):b,T=await f.detectOverflow(e,O),z=((r=s.autoPlacement)==null?void 0:r.index)||0,N=A[z];if(N==null)return{};let D=A1(N,i,await(f.isRTL==null?void 0:f.isRTL(p.floating)));if(l!==N)return{reset:{placement:A[0]}};let F=[T[sn(N)],T[D[0]],T[D[1]]],oe=[...((o=s.autoPlacement)==null?void 0:o.overflows)||[],{placement:N,overflows:F}],Ce=A[z+1];if(Ce)return{data:{index:z+1,overflows:oe},reset:{placement:Ce}};let St=oe.map(Ye=>{let x=jr(Ye.placement);return[Ye.placement,x&&g?Ye.overflows.slice(0,2).reduce((L,U)=>L+U,0):Ye.overflows[0],Ye.overflows]}).sort((Ye,x)=>Ye[1]-x[1]),fr=((a=St.filter(Ye=>Ye[2].slice(0,jr(Ye[0])?2:3).every(x=>x<=0))[0])==null?void 0:a[0])||St[0][0];return fr!==l?{data:{index:z+1,overflows:oe},reset:{placement:fr}}:{}}}};var M1=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:o,placement:a,platform:i}=e,{mainAxis:s=!0,crossAxis:l=!1,limiter:f={fn:z=>{let{x:N,y:D}=z;return{x:N,y:D}}},...p}=Wa(t,e),g={x:r,y:o},y=await i.detectOverflow(e,p),b=Va(sn(a)),S=Fs(b),O=g[S],A=g[b];if(s){let z=S==="y"?"top":"left",N=S==="y"?"bottom":"right",D=O+y[z],F=O-y[N];O=Bs(D,O,F)}if(l){let z=b==="y"?"top":"left",N=b==="y"?"bottom":"right",D=A+y[z],F=A-y[N];A=Bs(D,A,F)}let T=f.fn({...e,[S]:O,[b]:A});return{...T,data:{x:T.x-r,y:T.y-o,enabled:{[S]:s,[b]:l}}}}}};function Ka(){return typeof window<"u"}function Ao(t){return P1(t)?(t.nodeName||"").toLowerCase():"#document"}function Ot(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function mr(t){var e;return(e=(P1(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function P1(t){return Ka()?t instanceof Node||t instanceof Ot(t).Node:!1}function Ut(t){return Ka()?t instanceof Element||t instanceof Ot(t).Element:!1}function gr(t){return Ka()?t instanceof HTMLElement||t instanceof Ot(t).HTMLElement:!1}function z1(t){return!Ka()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Ot(t).ShadowRoot}function ln(t){let{overflow:e,overflowX:r,overflowY:o,display:a}=Ht(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+r)&&a!=="inline"&&a!=="contents"}function I1(t){return/^(table|td|th)$/.test(Ao(t))}function Zn(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var Rh=/transform|translate|scale|rotate|perspective|filter/,_h=/paint|layout|strict|content/,Eo=t=>!!t&&t!=="none",Gs;function qa(t){let e=Ut(t)?Ht(t):t;return Eo(e.transform)||Eo(e.translate)||Eo(e.scale)||Eo(e.rotate)||Eo(e.perspective)||!Za()&&(Eo(e.backdropFilter)||Eo(e.filter))||Rh.test(e.willChange||"")||_h.test(e.contain||"")}function $1(t){let e=Nr(t);for(;gr(e)&&!wo(e);){if(qa(e))return e;if(Zn(e))return null;e=Nr(e)}return null}function Za(){return Gs==null&&(Gs=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Gs}function wo(t){return/^(html|body|#document)$/.test(Ao(t))}function Ht(t){return Ot(t).getComputedStyle(t)}function Yn(t){return Ut(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Nr(t){if(Ao(t)==="html")return t;let e=t.assignedSlot||t.parentNode||z1(t)&&t.host||mr(t);return z1(e)?e.host:e}function D1(t){let e=Nr(t);return wo(e)?t.ownerDocument?t.ownerDocument.body:t.body:gr(e)&&ln(e)?e:D1(e)}function ja(t,e,r){var o;e===void 0&&(e=[]),r===void 0&&(r=!0);let a=D1(t),i=a===((o=t.ownerDocument)==null?void 0:o.body),s=Ot(a);if(i){let l=Ya(s);return e.concat(s,s.visualViewport||[],ln(a)?a:[],l&&r?ja(l):[])}else return e.concat(a,ja(a,[],r))}function Ya(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function H1(t){let e=Ht(t),r=parseFloat(e.width)||0,o=parseFloat(e.height)||0,a=gr(t),i=a?t.offsetWidth:r,s=a?t.offsetHeight:o,l=qn(r)!==i||qn(o)!==s;return l&&(r=i,o=s),{width:r,height:o,$:l}}function G1(t){return Ut(t)?t:t.contextElement}function cn(t){let e=G1(t);if(!gr(e))return tr(1);let r=e.getBoundingClientRect(),{width:o,height:a,$:i}=H1(e),s=(i?qn(r.width):r.width)/o,l=(i?qn(r.height):r.height)/a;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var kh=tr(0);function W1(t){let e=Ot(t);return!Za()||!e.visualViewport?kh:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Th(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==Ot(t)?!1:e}function Xn(t,e,r,o){e===void 0&&(e=!1),r===void 0&&(r=!1);let a=t.getBoundingClientRect(),i=G1(t),s=tr(1);e&&(o?Ut(o)&&(s=cn(o)):s=cn(t));let l=Th(i,r,o)?W1(i):tr(0),f=(a.left+l.x)/s.x,p=(a.top+l.y)/s.y,g=a.width/s.x,y=a.height/s.y;if(i){let b=Ot(i),S=o&&Ut(o)?Ot(o):o,O=b,A=Ya(O);for(;A&&o&&S!==O;){let T=cn(A),z=A.getBoundingClientRect(),N=Ht(A),D=z.left+(A.clientLeft+parseFloat(N.paddingLeft))*T.x,F=z.top+(A.clientTop+parseFloat(N.paddingTop))*T.y;f*=T.x,p*=T.y,g*=T.x,y*=T.y,f+=D,p+=F,O=Ot(A),A=Ya(O)}}return Lo({width:g,height:y,x:f,y:p})}function Xa(t,e){let r=Yn(t).scrollLeft;return e?e.left+r:Xn(mr(t)).left+r}function V1(t,e){let r=t.getBoundingClientRect(),o=r.left+e.scrollLeft-Xa(t,r),a=r.top+e.scrollTop;return{x:o,y:a}}function Nh(t){let{elements:e,rect:r,offsetParent:o,strategy:a}=t,i=a==="fixed",s=mr(o),l=e?Zn(e.floating):!1;if(o===s||l&&i)return r;let f={scrollLeft:0,scrollTop:0},p=tr(1),g=tr(0),y=gr(o);if((y||!y&&!i)&&((Ao(o)!=="body"||ln(s))&&(f=Yn(o)),y)){let S=Xn(o);p=cn(o),g.x=S.x+o.clientLeft,g.y=S.y+o.clientTop}let b=s&&!y&&!i?V1(s,f):tr(0);return{width:r.width*p.x,height:r.height*p.y,x:r.x*p.x-f.scrollLeft*p.x+g.x+b.x,y:r.y*p.y-f.scrollTop*p.y+g.y+b.y}}function Mh(t){return Array.from(t.getClientRects())}function zh(t){let e=mr(t),r=Yn(t),o=t.ownerDocument.body,a=Vr(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),i=Vr(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight),s=-r.scrollLeft+Xa(t),l=-r.scrollTop;return Ht(o).direction==="rtl"&&(s+=Vr(e.clientWidth,o.clientWidth)-a),{width:a,height:i,x:s,y:l}}var B1=25;function Ph(t,e){let r=Ot(t),o=mr(t),a=r.visualViewport,i=o.clientWidth,s=o.clientHeight,l=0,f=0;if(a){i=a.width,s=a.height;let g=Za();(!g||g&&e==="fixed")&&(l=a.offsetLeft,f=a.offsetTop)}let p=Xa(o);if(p<=0){let g=o.ownerDocument,y=g.body,b=getComputedStyle(y),S=g.compatMode==="CSS1Compat"&&parseFloat(b.marginLeft)+parseFloat(b.marginRight)||0,O=Math.abs(o.clientWidth-y.clientWidth-S);O<=B1&&(i-=O)}else p<=B1&&(i+=p);return{width:i,height:s,x:l,y:f}}function Ih(t,e){let r=Xn(t,!0,e==="fixed"),o=r.top+t.clientTop,a=r.left+t.clientLeft,i=gr(t)?cn(t):tr(1),s=t.clientWidth*i.x,l=t.clientHeight*i.y,f=a*i.x,p=o*i.y;return{width:s,height:l,x:f,y:p}}function F1(t,e,r){let o;if(e==="viewport")o=Ph(t,r);else if(e==="document")o=zh(mr(t));else if(Ut(e))o=Ih(e,r);else{let a=W1(t);o={x:e.x-a.x,y:e.y-a.y,width:e.width,height:e.height}}return Lo(o)}function j1(t,e){let r=Nr(t);return r===e||!Ut(r)||wo(r)?!1:Ht(r).position==="fixed"||j1(r,e)}function $h(t,e){let r=e.get(t);if(r)return r;let o=ja(t,[],!1).filter(l=>Ut(l)&&Ao(l)!=="body"),a=null,i=Ht(t).position==="fixed",s=i?Nr(t):t;for(;Ut(s)&&!wo(s);){let l=Ht(s),f=qa(s);!f&&l.position==="fixed"&&(a=null),(i?!f&&!a:!f&&l.position==="static"&&!!a&&(a.position==="absolute"||a.position==="fixed")||ln(s)&&!f&&j1(t,s))?o=o.filter(g=>g!==s):a=l,s=Nr(s)}return e.set(t,o),o}function Dh(t){let{element:e,boundary:r,rootBoundary:o,strategy:a}=t,s=[...r==="clippingAncestors"?Zn(e)?[]:$h(e,this._c):[].concat(r),o],l=F1(e,s[0],a),f=l.top,p=l.right,g=l.bottom,y=l.left;for(let b=1;b<s.length;b++){let S=F1(e,s[b],a);f=Vr(S.top,f),p=Kn(S.right,p),g=Kn(S.bottom,g),y=Vr(S.left,y)}return{width:p-y,height:g-f,x:y,y:f}}function Bh(t){let{width:e,height:r}=H1(t);return{width:e,height:r}}function Fh(t,e,r){let o=gr(e),a=mr(e),i=r==="fixed",s=Xn(t,!0,i,e),l={scrollLeft:0,scrollTop:0},f=tr(0);function p(){f.x=Xa(a)}if(o||!o&&!i)if((Ao(e)!=="body"||ln(a))&&(l=Yn(e)),o){let S=Xn(e,!0,i,e);f.x=S.x+e.clientLeft,f.y=S.y+e.clientTop}else a&&p();i&&!o&&a&&p();let g=a&&!o&&!i?V1(a,l):tr(0),y=s.left+l.scrollLeft-f.x-g.x,b=s.top+l.scrollTop-f.y-g.y;return{x:y,y:b,width:s.width,height:s.height}}function Ws(t){return Ht(t).position==="static"}function U1(t,e){if(!gr(t)||Ht(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return mr(t)===r&&(r=r.ownerDocument.body),r}function K1(t,e){let r=Ot(t);if(Zn(t))return r;if(!gr(t)){let a=Nr(t);for(;a&&!wo(a);){if(Ut(a)&&!Ws(a))return a;a=Nr(a)}return r}let o=U1(t,e);for(;o&&I1(o)&&Ws(o);)o=U1(o,e);return o&&wo(o)&&Ws(o)&&!qa(o)?r:o||$1(t)||r}var Uh=async function(t){let e=this.getOffsetParent||K1,r=this.getDimensions,o=await r(t.floating);return{reference:Fh(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Hh(t){return Ht(t).direction==="rtl"}var Qa={convertOffsetParentRelativeRectToViewportRelativeRect:Nh,getDocumentElement:mr,getClippingRect:Dh,getOffsetParent:K1,getElementRects:Uh,getClientRects:Mh,getDimensions:Bh,getScale:cn,isElement:Ut,isRTL:Hh};var q1=N1,Z1=M1;var Y1=(t,e,r)=>{let o=new Map,a={platform:Qa,...r},i={...a.platform,_c:o};return T1(t,e,{...a,platform:i})};function X1(t){return Gh(t)}function Vs(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Gh(t){for(let e=t;e;e=Vs(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Vs(t);e;e=Vs(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||r.filter!=="none"||e.tagName==="BODY"))return e}return null}async function Q1(t,e,r){let o;return typeof r=="object"?o=r:o={placement:r},Y1(t,e,{strategy:o.strategy,platform:{...Qa,getOffsetParent:a=>Qa.getOffsetParent(a,X1)},middleware:[Z1({crossAxis:!0}),q1({allowedPlacements:[o.placement]})]})}var xn=h(E());var gl=h(q());function Wh(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,o,a;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(o=r;o--!==0;)if(!Ja(t[o],e[o]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(o of t.entries())if(!e.has(o[0]))return!1;for(o of t.entries())if(!Ja(o[1],e.get(o[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(o of t.entries())if(!e.has(o[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let i=s=>Object.keys(s).filter(l=>s[l]!=null);if(a=i(t),r=a.length,r!==i(e).length)return!1;for(o=r;o--!==0;)if(!Object.prototype.hasOwnProperty.call(e,a[o]))return!1;for(o=r;o--!==0;){let s=a[o];if(!Ja(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function Ja(t,e){try{return Wh(t,e)}catch{return!1}}function Qn(t,e){return!Ja(t,e)}function J1(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function ei(t,e){let r=o=>o[t]===!0;return o=>{if(r(o))return o;let a=e(o);return a[t]=!0,a}}var e2=h(q(),1);var js=t=>{let e=t??{};return(r,o)=>{var a;let i={hasChanged:Qn,attribute:!1,...e};(0,e2.property)(i)(r,o);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(o,{selector:(a=e.selector)!==null&&a!==void 0?a:l=>l[o],store:e.store})}};var ti=class{constructor(){this.queue=[]}add(e,r=!1){r&&this.clear(e.type),this.queue.push(e)}consume(e){let r=this.queue.find(o=>o.type===e);return r&&(this.queue=this.queue.filter(o=>o!==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 Ro=h(q(),1);var t2=h(q(),1);function r2(t,e){let r=()=>JSON.parse(JSON.stringify(t));return(0,t2.property)({type:Object,converter:{fromAttribute:o=>{if(o==null)return r();try{return JSON.parse(o)}catch{return r()}},toAttribute:o=>JSON.stringify(o)},hasChanged:Qn,...e??{}})}var ri=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,o)=>{this.resolvePromise=r,this.rejectPromise=o})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let o=[...this.callbacks];this.callbacks=[];let a=(e=this.rejectPromise)!==null&&e!==void 0?e:()=>null,i=(r=this.resolvePromise)!==null&&r!==void 0?r:()=>null;this.clearPromise();for(let s of o)try{await s()}catch(l){a(l);return}i(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var n2=h(k(),1);var oi=globalThis,Vh=oi.ShadowRoot&&(oi.ShadyCSS===void 0||oi.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,IC=Symbol();var o2=(t,e)=>{if(Vh)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let o=document.createElement("style"),a=oi.litNonce;a!==void 0&&o.setAttribute("nonce",a),o.textContent=r.cssText,t.appendChild(o)}};var ni=class extends n2.LitElement{createRenderRoot(){let e=this.constructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,Object.entries(e.elementDefinitions).forEach(([a,i])=>e.registry.define(a,i)));let r={...e.shadowRootOptions,customElements:e.registry},o=this.renderOptions.creationScope=this.attachShadow(r);return o2(o,e.elementStyles),o}};function a2(t,e,...r){var o;let a=t.querySelector(e);for(let i of r)a=(o=a?.shadowRoot)===null||o===void 0?void 0:o.querySelector(i);return a}var fn=function(t,e,r,o){var a=arguments.length,i=a<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(i=(a<3?s(i):a>3?s(e,r,i):s(e,r))||i);return a>3&&i&&Object.defineProperty(e,r,i),i},c2,i2=Symbol("constructorPrototype"),s2=Symbol("constructorName"),d2=Symbol("exportpartsDebouncer"),l2=Symbol("dynamicDependenciesLoaded"),dn=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};dn.eventName="exportparts-updated";var yr=class extends ni{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[c2]=new ri(5),this.scheduleExportpartsUpdate=()=>{var e,r,o;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(o=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&o!==void 0&&o)&&this[d2].run(()=>{var a,i;!((a=this.exportpartsPrefix)===null||a===void 0)&&a.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((i=this.exportpartsPrefixes)===null||i===void 0?void 0:i.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[s2]=this.constructor.name,this[i2]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[s2]&&Object.setPrototypeOf(this,this[i2])}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(o){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",o)}let r=this.constructor;r[l2]||(r[l2]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(dn.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(dn.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 dn)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:o,shadowPath:a}=this.elementToFocus;if(o!=null){let i=[...a??[],o];r=a2(this.shadowRoot,...i)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var r,o,a;if(((o=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&o!==void 0?o:[]).forEach(i=>i.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((a=this.customStylesheet)!==null&&a!==void 0?a:"")}catch(i){console.error(i,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let i=document.createElement("style");i.classList.add("ft-lit-element--custom-stylesheet"),i.innerHTML=this.customStylesheet,this.shadowRoot.append(i)}}setExportpartsAttribute(e){var r,o,a,i,s,l;let f=b=>b!=null&&b.trim().length>0,p=e.filter(f).map(b=>b.trim());if(p.length===0){this.exportparts=void 0;return}let g=new Set;for(let b of(o=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&o!==void 0?o:[]){let S=(i=(a=b.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&i!==void 0?i:[],O=(l=(s=b.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(T=>T.split(":")[1]))!==null&&l!==void 0?l:[],A=[...S,...O].filter(f).map(T=>T.trim());for(let T of A)g.add(T)}if(g.size===0){this.exportparts=void 0;return}let y=[...g.values()].flatMap(b=>p.map(S=>`${b}:${S}--${b}`));this.exportparts=[...this.part,...y].join(", ")}};c2=d2;fn([(0,Ro.property)()],yr.prototype,"exportpartsPrefix",void 0);fn([r2([])],yr.prototype,"exportpartsPrefixes",void 0);fn([(0,Ro.property)({reflect:!0})],yr.prototype,"exportparts",void 0);fn([(0,Ro.property)()],yr.prototype,"customStylesheet",void 0);fn([(0,Ro.property)()],yr.prototype,"elementToFocus",void 0);fn([(0,Ro.state)()],yr.prototype,"useAdoptedStyleSheets",void 0);function ai(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Jn=Symbol("internalReduxEventsUnsubscribers"),Kr=Symbol("internalStoresUnsubscribers"),_o=Symbol("internalStores"),jh=ei(Symbol("withRedux"),function(t){var e,r,o;class a extends t{constructor(){super(...arguments),this[e]=new Map,this[r]=new Map,this[o]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(l=>s.has(l))&&this.updateFromStores()}getUnnamedStore(){if(this[_o].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[_o].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[_o].get(s)}addStore(s,l){var f;l=(f=l??s.name)!==null&&f!==void 0?f:"default-store",this.unsubscribeFromStore(l),this[_o].set(l,s),this.subscribeToStore(l,s),this.updateFromStores()}removeStore(s){let l=typeof s=="string"?s:s.name;this.unsubscribeFromStore(l),this[_o].delete(l)}setupStores(){this.unsubscribeFromStores(),this[_o].forEach((s,l)=>this.subscribeToStore(l,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,l)=>{let f=this.constructor.getPropertyOptions(l);if(!f?.attribute||!this.hasAttribute(typeof f?.attribute=="string"?f.attribute:l)){let p=this.getStore(s.store);p&&(s.store?this[Kr].has(s.store):this[Kr].size>0)&&(this[l]=s.selector(p.getState(),this))}})}subscribeToStore(s,l){var f;this[Kr].set(s,l.subscribe(()=>this.updateFromStores())),this[Jn].set(s,[]),ai(l)&&l.eventBus&&((f=this.reduxConstructor.reduxEventListeners)===null||f===void 0||f.forEach((p,g)=>{if(typeof this[g]=="function"&&(!p.store||l.name===p.store)){let y=b=>this[g](b);l.addEventListener(p.eventName,y),this[Jn].get(s).push(()=>l.removeEventListener(p.eventName,y))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[Kr].forEach((s,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(s){var l;this[Kr].has(s)&&this[Kr].get(s)(),this[Kr].delete(s),(l=this[Jn].get(s))===null||l===void 0||l.forEach(f=>f()),this[Jn].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=Kr,r=_o,o=Jn,a.reduxProperties=new Map,a.reduxReactiveProperties=new Set,a.reduxEventListeners=new Map,a}),f2=class extends jh(yr){};function Gt(t){for(var e=arguments.length,r=Array(e>1?e-1:0),o=1;o<e;o++)r[o-1]=arguments[o];if(0)var a,i;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 Mr(t){return!!t&&!!t[Ee]}function rr(t){var e;return!!t&&(function(r){if(!r||typeof r!="object")return!1;var o=Object.getPrototypeOf(r);if(o===null)return!0;var a=Object.hasOwnProperty.call(o,"constructor")&&o.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===e3}(t)||Array.isArray(t)||!!t[b2]||!!(!((e=t.constructor)===null||e===void 0)&&e[b2])||tl(t)||rl(t))}function ko(t,e,r){r===void 0&&(r=!1),hn(t)===0?(r?Object.keys:un)(t).forEach(function(o){r&&typeof o=="symbol"||e(o,t[o],t)}):t.forEach(function(o,a){return e(a,o,t)})}function hn(t){var e=t[Ee];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:tl(t)?2:rl(t)?3:0}function pn(t,e){return hn(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Kh(t,e){return hn(t)===2?t.get(e):t[e]}function v2(t,e,r){var o=hn(t);o===2?t.set(e,r):o===3?t.add(r):t[e]=r}function x2(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function tl(t){return Qh&&t instanceof Map}function rl(t){return Jh&&t instanceof Set}function qr(t){return t.o||t.t}function ol(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=O2(t);delete e[Ee];for(var r=un(e),o=0;o<r.length;o++){var a=r[o],i=e[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(e[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:t[a]})}return Object.create(Object.getPrototypeOf(t),e)}function nl(t,e){return e===void 0&&(e=!1),al(t)||Mr(t)||!rr(t)||(hn(t)>1&&(t.set=t.add=t.clear=t.delete=qh),Object.freeze(t),e&&ko(t,function(r,o){return nl(o,!0)},!0)),t}function qh(){Gt(2)}function al(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function br(t){var e=el[t];return e||Gt(18,t),e}function Zh(t,e){el[t]||(el[t]=e)}function Xs(){return ta}function Ks(t,e){e&&(br("Patches"),t.u=[],t.s=[],t.v=e)}function ii(t){Qs(t),t.p.forEach(Yh),t.p=null}function Qs(t){t===ta&&(ta=t.l)}function p2(t){return ta={p:[],l:ta,h:t,m:!0,_:0}}function Yh(t){var e=t[Ee];e.i===0||e.i===1?e.j():e.g=!0}function qs(t,e){e._=e.p.length;var r=e.p[0],o=t!==void 0&&t!==r;return e.h.O||br("ES5").S(e,t,o),o?(r[Ee].P&&(ii(e),Gt(4)),rr(t)&&(t=si(e,t),e.l||li(e,t)),e.u&&br("Patches").M(r[Ee].t,t,e.u,e.s)):t=si(e,r,[]),ii(e),e.u&&e.v(e.u,e.s),t!==C2?t:void 0}function si(t,e,r){if(al(e))return e;var o=e[Ee];if(!o)return ko(e,function(l,f){return u2(t,o,e,l,f,r)},!0),e;if(o.A!==t)return e;if(!o.P)return li(t,o.t,!0),o.t;if(!o.I){o.I=!0,o.A._--;var a=o.i===4||o.i===5?o.o=ol(o.k):o.o,i=a,s=!1;o.i===3&&(i=new Set(a),a.clear(),s=!0),ko(i,function(l,f){return u2(t,o,a,l,f,r,s)}),li(t,a,!1),r&&t.u&&br("Patches").N(o,r,t.u,t.s)}return o.o}function u2(t,e,r,o,a,i,s){if(Mr(a)){var l=si(t,a,i&&e&&e.i!==3&&!pn(e.R,o)?i.concat(o):void 0);if(v2(r,o,l),!Mr(l))return;t.m=!1}else s&&r.add(a);if(rr(a)&&!al(a)){if(!t.h.D&&t._<1)return;si(t,a),e&&e.A.l||li(t,a)}}function li(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&nl(e,r)}function Zs(t,e){var r=t[Ee];return(r?qr(r):t)[e]}function h2(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var o=Object.getOwnPropertyDescriptor(r,e);if(o)return o;r=Object.getPrototypeOf(r)}}function Zr(t){t.P||(t.P=!0,t.l&&Zr(t.l))}function Ys(t){t.o||(t.o=ol(t.t))}function Js(t,e,r){var o=tl(e)?br("MapSet").F(e,r):rl(e)?br("MapSet").T(e,r):t.O?function(a,i){var s=Array.isArray(a),l={i:s?1:0,A:i?i.A:Xs(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},f=l,p=ra;s&&(f=[l],p=ea);var g=Proxy.revocable(f,p),y=g.revoke,b=g.proxy;return l.k=b,l.j=y,b}(e,r):br("ES5").J(e,r);return(r?r.A:Xs()).p.push(o),o}function Xh(t){return Mr(t)||Gt(22,t),function e(r){if(!rr(r))return r;var o,a=r[Ee],i=hn(r);if(a){if(!a.P&&(a.i<4||!br("ES5").K(a)))return a.t;a.I=!0,o=m2(r,i),a.I=!1}else o=m2(r,i);return ko(o,function(s,l){a&&Kh(a.t,s)===l||v2(o,s,e(l))}),i===3?new Set(o):o}(t)}function m2(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return ol(t)}function S2(){function t(s,l){var f=i[s];return f?f.enumerable=l:i[s]=f={configurable:!0,enumerable:l,get:function(){var p=this[Ee];return ra.get(p,s)},set:function(p){var g=this[Ee];ra.set(g,s,p)}},f}function e(s){for(var l=s.length-1;l>=0;l--){var f=s[l][Ee];if(!f.P)switch(f.i){case 5:o(f)&&Zr(f);break;case 4:r(f)&&Zr(f)}}}function r(s){for(var l=s.t,f=s.k,p=un(f),g=p.length-1;g>=0;g--){var y=p[g];if(y!==Ee){var b=l[y];if(b===void 0&&!pn(l,y))return!0;var S=f[y],O=S&&S[Ee];if(O?O.t!==b:!x2(S,b))return!0}}var A=!!l[Ee];return p.length!==un(l).length+(A?0:1)}function o(s){var l=s.k;if(l.length!==s.t.length)return!0;var f=Object.getOwnPropertyDescriptor(l,l.length-1);if(f&&!f.get)return!0;for(var p=0;p<l.length;p++)if(!l.hasOwnProperty(p))return!0;return!1}function a(s){s.g&&Gt(3,JSON.stringify(qr(s)))}var i={};Zh("ES5",{J:function(s,l){var f=Array.isArray(s),p=function(y,b){if(y){for(var S=Array(b.length),O=0;O<b.length;O++)Object.defineProperty(S,""+O,t(O,!0));return S}var A=O2(b);delete A[Ee];for(var T=un(A),z=0;z<T.length;z++){var N=T[z];A[N]=t(N,y||!!A[N].enumerable)}return Object.create(Object.getPrototypeOf(b),A)}(f,s),g={i:f?5:4,A:l?l.A:Xs(),P:!1,I:!1,R:{},l,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,Ee,{value:g,writable:!0}),p},S:function(s,l,f){f?Mr(l)&&l[Ee].A===s&&e(s.p):(s.u&&function p(g){if(g&&typeof g=="object"){var y=g[Ee];if(y){var b=y.t,S=y.k,O=y.R,A=y.i;if(A===4)ko(S,function(F){F!==Ee&&(b[F]!==void 0||pn(b,F)?O[F]||p(S[F]):(O[F]=!0,Zr(y)))}),ko(b,function(F){S[F]!==void 0||pn(S,F)||(O[F]=!1,Zr(y))});else if(A===5){if(o(y)&&(Zr(y),O.length=!0),S.length<b.length)for(var T=S.length;T<b.length;T++)O[T]=!1;else for(var z=b.length;z<S.length;z++)O[z]=!0;for(var N=Math.min(S.length,b.length),D=0;D<N;D++)S.hasOwnProperty(D)||(O[D]=!0),O[D]===void 0&&p(S[D])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?r(s):o(s)}})}var g2,ta,il=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Qh=typeof Map<"u",Jh=typeof Set<"u",y2=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",C2=il?Symbol.for("immer-nothing"):((g2={})["immer-nothing"]=!0,g2),b2=il?Symbol.for("immer-draftable"):"__$immer_draftable",Ee=il?Symbol.for("immer-state"):"__$immer_state";var e3=""+Object.prototype.constructor,un=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,O2=Object.getOwnPropertyDescriptors||function(t){var e={};return un(t).forEach(function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)}),e},el={},ra={get:function(t,e){if(e===Ee)return t;var r=qr(t);if(!pn(r,e))return function(a,i,s){var l,f=h2(i,s);return f?"value"in f?f.value:(l=f.get)===null||l===void 0?void 0:l.call(a.k):void 0}(t,r,e);var o=r[e];return t.I||!rr(o)?o:o===Zs(t.t,e)?(Ys(t),t.o[e]=Js(t.A.h,o,t)):o},has:function(t,e){return e in qr(t)},ownKeys:function(t){return Reflect.ownKeys(qr(t))},set:function(t,e,r){var o=h2(qr(t),e);if(o?.set)return o.set.call(t.k,r),!0;if(!t.P){var a=Zs(qr(t),e),i=a?.[Ee];if(i&&i.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(x2(r,a)&&(r!==void 0||pn(t.t,e)))return!0;Ys(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 Zs(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,Ys(t),Zr(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=qr(t),o=Reflect.getOwnPropertyDescriptor(r,e);return o&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:o.enumerable,value:r[e]}},defineProperty:function(){Gt(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Gt(12)}},ea={};ko(ra,function(t,e){ea[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),ea.deleteProperty=function(t,e){return ea.set.call(this,t,e,void 0)},ea.set=function(t,e,r){return ra.set.call(this,t[0],e,r,t[0])};var t3=function(){function t(r){var o=this;this.O=y2,this.D=!0,this.produce=function(a,i,s){if(typeof a=="function"&&typeof i!="function"){var l=i;i=a;var f=o;return function(A){var T=this;A===void 0&&(A=l);for(var z=arguments.length,N=Array(z>1?z-1:0),D=1;D<z;D++)N[D-1]=arguments[D];return f.produce(A,function(F){var oe;return(oe=i).call.apply(oe,[T,F].concat(N))})}}var p;if(typeof i!="function"&&Gt(6),s!==void 0&&typeof s!="function"&&Gt(7),rr(a)){var g=p2(o),y=Js(o,a,void 0),b=!0;try{p=i(y),b=!1}finally{b?ii(g):Qs(g)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(A){return Ks(g,s),qs(A,g)},function(A){throw ii(g),A}):(Ks(g,s),qs(p,g))}if(!a||typeof a!="object"){if((p=i(a))===void 0&&(p=a),p===C2&&(p=void 0),o.D&&nl(p,!0),s){var S=[],O=[];br("Patches").M(a,p,S,O),s(S,O)}return p}Gt(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(p){for(var g=arguments.length,y=Array(g>1?g-1:0),b=1;b<g;b++)y[b-1]=arguments[b];return o.produceWithPatches(p,function(S){return a.apply(void 0,[S].concat(y))})};var s,l,f=o.produce(a,i,function(p,g){s=p,l=g});return typeof Promise<"u"&&f instanceof Promise?f.then(function(p){return[p,s,l]}):[f,s,l]},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){rr(r)||Gt(8),Mr(r)&&(r=Xh(r));var o=p2(this),a=Js(this,r,void 0);return a[Ee].C=!0,Qs(o),a},e.finishDraft=function(r,o){var a=r&&r[Ee],i=a.A;return Ks(i,o),qs(void 0,i)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!y2&&Gt(20),this.O=r},e.applyPatches=function(r,o){var a;for(a=o.length-1;a>=0;a--){var i=o[a];if(i.path.length===0&&i.op==="replace"){r=i.value;break}}a>-1&&(o=o.slice(a+1));var s=br("Patches").$;return Mr(r)?s(r,o):this.produce(r,function(l){return s(l,o)})},t}(),_t=new t3,r3=_t.produce,XC=_t.produceWithPatches.bind(_t),QC=_t.setAutoFreeze.bind(_t),JC=_t.setUseProxies.bind(_t),eO=_t.applyPatches.bind(_t),tO=_t.createDraft.bind(_t),rO=_t.finishDraft.bind(_t),ci=r3;function To(t){"@babel/helpers - typeof";return To=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},To(t)}function L2(t,e){if(To(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var o=r.call(t,e||"default");if(To(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function E2(t){var e=L2(t,"string");return To(e)=="symbol"?e:e+""}function A2(t,e,r){return(e=E2(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function w2(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,o)}return r}function sl(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?w2(Object(r),!0).forEach(function(o){A2(t,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):w2(Object(r)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(r,o))})}return t}function ft(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var R2=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),ll=function(){return Math.random().toString(36).substring(7).split("").join(".")},di={INIT:"@@redux/INIT"+ll(),REPLACE:"@@redux/REPLACE"+ll(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ll()}};function o3(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 cl(t,e,r){var o;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(ft(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(ft(1));return r(cl)(t,e)}if(typeof t!="function")throw new Error(ft(2));var a=t,i=e,s=[],l=s,f=!1;function p(){l===s&&(l=s.slice())}function g(){if(f)throw new Error(ft(3));return i}function y(A){if(typeof A!="function")throw new Error(ft(4));if(f)throw new Error(ft(5));var T=!0;return p(),l.push(A),function(){if(T){if(f)throw new Error(ft(6));T=!1,p();var N=l.indexOf(A);l.splice(N,1),s=null}}}function b(A){if(!o3(A))throw new Error(ft(7));if(typeof A.type>"u")throw new Error(ft(8));if(f)throw new Error(ft(9));try{f=!0,i=a(i,A)}finally{f=!1}for(var T=s=l,z=0;z<T.length;z++){var N=T[z];N()}return A}function S(A){if(typeof A!="function")throw new Error(ft(10));a=A,b({type:di.REPLACE})}function O(){var A,T=y;return A={subscribe:function(N){if(typeof N!="object"||N===null)throw new Error(ft(11));function D(){N.next&&N.next(g())}D();var F=T(D);return{unsubscribe:F}}},A[R2]=function(){return this},A}return b({type:di.INIT}),o={dispatch:b,subscribe:y,getState:g,replaceReducer:S},o[R2]=O,o}function n3(t){Object.keys(t).forEach(function(e){var r=t[e],o=r(void 0,{type:di.INIT});if(typeof o>"u")throw new Error(ft(12));if(typeof r(void 0,{type:di.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ft(13))})}function _2(t){for(var e=Object.keys(t),r={},o=0;o<e.length;o++){var a=e[o];typeof t[a]=="function"&&(r[a]=t[a])}var i=Object.keys(r),s,l;try{n3(r)}catch(f){l=f}return function(p,g){if(p===void 0&&(p={}),l)throw l;if(0)var y;for(var b=!1,S={},O=0;O<i.length;O++){var A=i[O],T=r[A],z=p[A],N=T(z,g);if(typeof N>"u"){var D=g&&g.type;throw new Error(ft(14))}S[A]=N,b=b||N!==z}return b=b||i.length!==Object.keys(p).length,b?S:p}}function mn(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.length===0?function(o){return o}:e.length===1?e[0]:e.reduce(function(o,a){return function(){return o(a.apply(void 0,arguments))}})}function k2(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(o){return function(){var a=o.apply(void 0,arguments),i=function(){throw new Error(ft(15))},s={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},l=e.map(function(f){return f(s)});return i=mn.apply(void 0,l)(a.dispatch),sl(sl({},a),{},{dispatch:i})}}}function T2(t){var e=function(o){var a=o.dispatch,i=o.getState;return function(s){return function(l){return typeof l=="function"?l(a,i,t):s(l)}}};return e}var N2=T2();N2.withExtraArgument=T2;var dl=N2;var $2=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,a){o.__proto__=a}||function(o,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(o[i]=a[i])},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 o(){this.constructor=e}e.prototype=r===null?Object.create(r):(o.prototype=r.prototype,new o)}}(),a3=function(t,e){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},o,a,i,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(p){return function(g){return f([p,g])}}function f(p){if(o)throw new TypeError("Generator is already executing.");for(;r;)try{if(o=1,a&&(i=p[0]&2?a.return:p[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,p[1])).done)return i;switch(a=0,i&&(p=[p[0]&2,i.value]),p[0]){case 0:case 1:i=p;break;case 4:return r.label++,{value:p[1],done:!1};case 5:r.label++,a=p[1],p=[0];continue;case 7:p=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(p[0]===6||p[0]===2)){r=0;continue}if(p[0]===3&&(!i||p[1]>i[0]&&p[1]<i[3])){r.label=p[1];break}if(p[0]===6&&r.label<i[1]){r.label=i[1],i=p;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(p);break}i[2]&&r.ops.pop(),r.trys.pop();continue}p=e.call(t,r)}catch(g){p=[6,g],a=0}finally{o=i=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},gn=function(t,e){for(var r=0,o=e.length,a=t.length;r<o;r++,a++)t[a]=e[r];return t},i3=Object.defineProperty,s3=Object.defineProperties,l3=Object.getOwnPropertyDescriptors,M2=Object.getOwnPropertySymbols,c3=Object.prototype.hasOwnProperty,d3=Object.prototype.propertyIsEnumerable,z2=function(t,e,r){return e in t?i3(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},Yr=function(t,e){for(var r in e||(e={}))c3.call(e,r)&&z2(t,r,e[r]);if(M2)for(var o=0,a=M2(e);o<a.length;o++){var r=a[o];d3.call(e,r)&&z2(t,r,e[r])}return t},fl=function(t,e){return s3(t,l3(e))},f3=function(t,e,r){return new Promise(function(o,a){var i=function(f){try{l(r.next(f))}catch(p){a(p)}},s=function(f){try{l(r.throw(f))}catch(p){a(p)}},l=function(f){return f.done?o(f.value):Promise.resolve(f.value).then(i,s)};l((r=r.apply(t,e)).next())})};var p3=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?mn:mn.apply(null,arguments)},xO=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function u3(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}var h3=function(t){$2(e,t);function e(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var a=t.apply(this,r)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,gn([void 0],r[0].concat(this)))):new(e.bind.apply(e,gn([void 0],r.concat(this))))},e}(Array),m3=function(t){$2(e,t);function e(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var a=t.apply(this,r)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,gn([void 0],r[0].concat(this)))):new(e.bind.apply(e,gn([void 0],r.concat(this))))},e}(Array);function hl(t){return rr(t)?ci(t,function(){}):t}function g3(t){return typeof t=="boolean"}function y3(){return function(e){return b3(e)}}function b3(t){t===void 0&&(t={});var e=t.thunk,r=e===void 0?!0:e,o=t.immutableCheck,a=o===void 0?!0:o,i=t.serializableCheck,s=i===void 0?!0:i,l=new h3;if(r&&(g3(r)?l.push(dl):l.push(dl.withExtraArgument(r.extraArgument))),0){if(a)var f;if(s)var p}return l}var pl=!0;function D2(t){var e=y3(),r=t||{},o=r.reducer,a=o===void 0?void 0:o,i=r.middleware,s=i===void 0?e():i,l=r.devTools,f=l===void 0?!0:l,p=r.preloadedState,g=p===void 0?void 0:p,y=r.enhancers,b=y===void 0?void 0:y,S;if(typeof a=="function")S=a;else if(u3(a))S=_2(a);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 O=s;if(typeof O=="function"&&(O=O(e),!pl&&!Array.isArray(O)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!pl&&O.some(function(F){return typeof F!="function"}))throw new Error("each middleware provided to configureStore must be a function");var A=k2.apply(void 0,O),T=mn;f&&(T=p3(Yr({trace:!pl},typeof f=="object"&&f)));var z=new m3(A),N=z;Array.isArray(b)?N=gn([A],b):typeof b=="function"&&(N=b(z));var D=T.apply(void 0,N);return cl(S,g,D)}function Xr(t,e){function r(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];if(e){var i=e.apply(void 0,o);if(!i)throw new Error("prepareAction did not return an object");return Yr(Yr({type:t,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:t,payload:o[0]}}return r.toString=function(){return""+t},r.type=t,r.match=function(o){return o.type===t},r}function B2(t){var e={},r=[],o,a={addCase:function(i,s){var l=typeof i=="string"?i:i.type;if(l in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[l]=s,a},addMatcher:function(i,s){return r.push({matcher:i,reducer:s}),a},addDefaultCase:function(i){return o=i,a}};return t(a),[e,r,o]}function v3(t){return typeof t=="function"}function x3(t,e,r,o){r===void 0&&(r=[]);var a=typeof e=="function"?B2(e):[e,r,o],i=a[0],s=a[1],l=a[2],f;if(v3(t))f=function(){return hl(t())};else{var p=hl(t);f=function(){return p}}function g(y,b){y===void 0&&(y=f());var S=gn([i[b.type]],s.filter(function(O){var A=O.matcher;return A(b)}).map(function(O){var A=O.reducer;return A}));return S.filter(function(O){return!!O}).length===0&&(S=[l]),S.reduce(function(O,A){if(A)if(Mr(O)){var T=O,z=A(T,b);return z===void 0?O:z}else{if(rr(O))return ci(O,function(N){return A(N,b)});var z=A(O,b);if(z===void 0){if(O===null)return O;throw Error("A case reducer on a non-draftable value must not return undefined")}return z}return O},y)}return g.getInitialState=f,g}function S3(t,e){return t+"/"+e}function F2(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:hl(t.initialState),o=t.reducers||{},a=Object.keys(o),i={},s={},l={};a.forEach(function(g){var y=o[g],b=S3(e,g),S,O;"reducer"in y?(S=y.reducer,O=y.prepare):S=y,i[g]=S,s[b]=S,l[g]=O?Xr(b,O):Xr(b)});function f(){var g=typeof t.extraReducers=="function"?B2(t.extraReducers):[t.extraReducers],y=g[0],b=y===void 0?{}:y,S=g[1],O=S===void 0?[]:S,A=g[2],T=A===void 0?void 0:A,z=Yr(Yr({},b),s);return x3(r,function(N){for(var D in z)N.addCase(D,z[D]);for(var F=0,oe=O;F<oe.length;F++){var Ce=oe[F];N.addMatcher(Ce.matcher,Ce.reducer)}T&&N.addDefaultCase(T)})}var p;return{name:e,reducer:function(g,y){return p||(p=f()),p(g,y)},actions:l,caseReducers:i,getInitialState:function(){return p||(p=f()),p.getInitialState()}}}var C3="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",O3=function(t){t===void 0&&(t=21);for(var e="",r=t;r--;)e+=C3[Math.random()*64|0];return e},L3=["name","message","stack","code"],ul=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),P2=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),E3=function(t){if(typeof t=="object"&&t!==null){for(var e={},r=0,o=L3;r<o.length;r++){var a=o[r];typeof t[a]=="string"&&(e[a]=t[a])}return e}return{message:String(t)}},LO=function(){function t(e,r,o){var a=Xr(e+"/fulfilled",function(g,y,b,S){return{payload:g,meta:fl(Yr({},S||{}),{arg:b,requestId:y,requestStatus:"fulfilled"})}}),i=Xr(e+"/pending",function(g,y,b){return{payload:void 0,meta:fl(Yr({},b||{}),{arg:y,requestId:g,requestStatus:"pending"})}}),s=Xr(e+"/rejected",function(g,y,b,S,O){return{payload:S,error:(o&&o.serializeError||E3)(g||"Rejected"),meta:fl(Yr({},O||{}),{arg:b,requestId:y,rejectedWithValue:!!S,requestStatus:"rejected",aborted:g?.name==="AbortError",condition:g?.name==="ConditionError"})}}),l=!1,f=typeof AbortController<"u"?AbortController:function(){function g(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return g.prototype.abort=function(){},g}();function p(g){return function(y,b,S){var O=o?.idGenerator?o.idGenerator(g):O3(),A=new f,T,z=!1;function N(F){T=F,A.abort()}var D=function(){return f3(this,null,function(){var F,oe,Ce,St,Ze,fr,Ye;return a3(this,function(x){switch(x.label){case 0:return x.trys.push([0,4,,5]),St=(F=o?.condition)==null?void 0:F.call(o,g,{getState:b,extra:S}),w3(St)?[4,St]:[3,2];case 1:St=x.sent(),x.label=2;case 2:if(St===!1||A.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return z=!0,Ze=new Promise(function(L,U){return A.signal.addEventListener("abort",function(){return U({name:"AbortError",message:T||"Aborted"})})}),y(i(O,g,(oe=o?.getPendingMeta)==null?void 0:oe.call(o,{requestId:O,arg:g},{getState:b,extra:S}))),[4,Promise.race([Ze,Promise.resolve(r(g,{dispatch:y,getState:b,extra:S,requestId:O,signal:A.signal,abort:N,rejectWithValue:function(L,U){return new ul(L,U)},fulfillWithValue:function(L,U){return new P2(L,U)}})).then(function(L){if(L instanceof ul)throw L;return L instanceof P2?a(L.payload,O,g,L.meta):a(L,O,g)})])];case 3:return Ce=x.sent(),[3,5];case 4:return fr=x.sent(),Ce=fr instanceof ul?s(null,O,g,fr.payload,fr.meta):s(fr,O,g),[3,5];case 5:return Ye=o&&!o.dispatchConditionRejection&&s.match(Ce)&&Ce.meta.condition,Ye||y(Ce),[2,Ce]}})})}();return Object.assign(D,{abort:N,requestId:O,arg:g,unwrap:function(){return D.then(A3)}})}}return Object.assign(p,{pending:i,rejected:s,fulfilled:a,typePrefix:e})}return t.withTypes=function(){return t},t}();function A3(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function w3(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var U2="listener",H2="completed",G2="cancelled",EO="task-"+G2,AO="task-"+H2,wO=U2+"-"+G2,RO=U2+"-"+H2;var ml="listenerMiddleware";var _O=Xr(ml+"/add"),kO=Xr(ml+"/removeAll"),TO=Xr(ml+"/remove");var I2,NO=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(I2||(I2=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},R3=function(t){return function(e){setTimeout(e,t)}},MO=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:R3(10);S2();var _3=ei(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(r,o,a){this.eventBus.addEventListener(r,o,a)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,o,a){this.eventBus.removeEventListener(r,o,a)}}}),fi=class extends _3(Object){};window.ftReduxStores||(window.ftReduxStores={});var W2=class t extends fi{static get(e){var r;let o=typeof e=="string"?e:e.name,a=typeof e=="string"?void 0:e,i=window.ftReduxStores[o];if(ai(i))return i;if(a==null)return;let s=F2({...a,reducers:(r=a.reducers)!==null&&r!==void 0?r:{}}),l=D2({reducer:(f,p)=>{if(p.type==="CLEAR_FT_REDUX_STORE"){let g=J1(s.getInitialState());for(let y of p.keeping)g[y]=(f??g)[y];return g}else if(typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...f,...p.overwrites};return s.reducer(f,p)}});return window.ftReduxStores[a.name]=new t(s,l,a.eventBus)}constructor(e,r,o){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new ti;let a=i=>i!=null?JSON.parse(JSON.stringify(i)):i;this.actions=new Proxy(this.reduxSlice.actions,{get:(i,s,l)=>{let f=s,p=i[f];return p?(...g)=>{let y=p(...g.map(a));return this.reduxStore.dispatch(y),y}:g=>{this.setState({[f]:a(g)})}}}),this.eventBus=o??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 pi=class{static format(e,r,o,a){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(o,a)):this.getIntlDateTime(e,r,o,a)}static getMomentDateFormat(e,r){return e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,o,a){let i=typeof e=="string"?new Date(e):e,s=new Intl.DateTimeFormat(r,{dateStyle:o?"medium":"short"}).format(i);if(!a)return s;let l=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(i);return`${s} ${l}`}static getTimezoneAsString(){let e=o=>String(Math.floor(o)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${e(Math.abs(r)/60)}:${e(Math.abs(r)%60)}`}};var ui=h(E()),k3="ft-app-info",No=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};No.eventName="authentication-change";var T3={session:(t,e)=>{(0,ui.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>I.dispatchEvent(new No(e.payload)),0))}},I=ui.FtReduxStore.get({name:k3,reducers:T3,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],availableContentLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}});var V2=h(E()),hi=function(t,e,r,o){var a=arguments.length,i=a<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(i=(a<3?s(i):a>3?s(e,r,i):s(e,r))||i);return a>3&&i&&Object.defineProperty(e,r,i),i},sL=(0,V2.applyMixinOnce)(Symbol("withDateFormat"),function(t){class e extends t{constructor(...o){super(o),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(I)}dateFormatOptionsChanged(o){return o.has("metadataDescriptors")||o.has("useLongDateFormat")||o.has("useDateTimeFormat")||o.has("uiLocale")}getDateFormatter(o){var a,i;return((i=(a=this.metadataDescriptors.find(l=>l.key===o))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1)?l=>pi.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return hi([(0,gl.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),hi([(0,gl.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),hi([js({store:I.name,selector:r=>{var o,a;return(a=(o=r.metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&a!==void 0?a:[]}})],e.prototype,"metadataDescriptors",void 0),hi([js({store:I.name})],e.prototype,"uiLocale",void 0),e});var M3=h(K2(),1);var q2;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(q2||(q2={}));var Z2;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Z2||(Z2={}));var Y2;(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"})(Y2||(Y2={}));var X2;(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"})(X2||(X2={}));var Q2;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Q2||(Q2={}));var J2;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(J2||(J2={}));var ef;(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"})(ef||(ef={}));var tf;(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"})(tf||(tf={}));var rf;(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"})(rf||(rf={}));var of;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(of||(of={}));var nf;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(nf||(nf={}));var af;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(af||(af={}));var sf;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(sf||(sf={}));var lf;(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"})(lf||(lf={}));var cf;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(cf||(cf={}));var df;(function(t){t.ASC="ASC",t.DESC="DESC"})(df||(df={}));var ff;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(ff||(ff={}));var pf;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(pf||(pf={}));var uf;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(uf||(uf={}));var hf;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(hf||(hf={}));var mf;(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"})(mf||(mf={}));var gf;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(gf||(gf={}));var yf;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(yf||(yf={}));var bf;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(bf||(bf={}));var vf;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(vf||(vf={}));var Pe;(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"})(Pe||(Pe={}));var Wt;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(Wt||(Wt={}));var xf;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(xf||(xf={}));var Sf;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Sf||(Sf={}));var Cf;(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.OTHER="OTHER"})(Cf||(Cf={}));var 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"})(Of||(Of={}));var Lf;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Lf||(Lf={}));var Ef;(function(t){t.USER="USER",t.ASSISTANT="ASSISTANT"})(Ef||(Ef={}));var Af;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Af||(Af={}));var wf;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(wf||(wf={}));var Rf;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(Rf||(Rf={}));var N3={[Pe.PERSONAL_BOOK_SHARE_USER]:[Pe.PERSONAL_BOOK_USER],[Pe.HTML_EXPORT_USER]:[Pe.PERSONAL_BOOK_USER],[Pe.PDF_EXPORT_USER]:[Pe.PERSONAL_BOOK_USER],[Pe.KHUB_ADMIN]:[Pe.CONTENT_PUBLISHER],[Pe.ADMIN]:[Pe.KHUB_ADMIN,Pe.USERS_ADMIN,Pe.PORTAL_ADMIN,Pe.BEHAVIOR_DATA_USER],[Pe.GENERATIVE_AI_EXPORT_USER]:[Pe.GENERATIVE_AI_USER]};function _f(t,e){return t===e||(N3[t]??[]).some(r=>_f(r,e))}function kf(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(o=>_f(o,e))}var Ci=h(E());var yl=h(E());var Mo=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:o}=I.getState(),a=e??o;if(r&&a&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,a,!0)}static await(e){return new Promise(r=>{let o=t.get(e);if(o)r(o);else{let a=I.subscribe(()=>{o=t.get(e),o&&(a(),r(o))})}})}};var yi=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Mo.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Mo.await()}};var kt=class extends yi{constructor(e=!0,r){var o;super(r),this.sortObjectFields=(i,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([l],[f])=>l.localeCompare(f)));let a=this.constructor;a.commonCache=(o=a.commonCache)!==null&&o!==void 0?o:new yl.CacheRegistry,this.cache=e?a.commonCache:new yl.CacheRegistry}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((r,o)=>0|31*r+o.charCodeAt(0),0))}};var bi=class extends kt{async listMySearches(){let{session:e}=I.getState();return kf(e,Pe.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var vi=class extends kt{async listMyBookmarks(){let e=I.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var xi=class extends kt{constructor(){super(...arguments),this.CACHE_DURATION=3*60*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=I.getState().session;return!!e?.sessionAuthenticated}};var Si=class extends kt{constructor(){super(...arguments),this.CACHE_DURATION=3*60*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=I.getState().session;return!!e?.sessionAuthenticated}};var z3="ft-user-assets",P3={setAssetCount:(t,e)=>{let{userAssetType:r,count:o}=e.payload.assetCount;t.assetCounts.allAsset[r]=o},clearAssetCount:t=>{Object.values(Wt).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:o,asset:a}=e.payload;vl(t,r,[...bl(t,r),a]),Tf(t,r,1,o),Nf(t,a)},editAsset:(t,e)=>{let{assetType:r,asset:o}=e.payload;vl(t,r,bl(t,r).map(a=>a.id===o.id?o:a)),Nf(t,o)},removeAsset:(t,e)=>{let{assetType:r,mapId:o,assetId:a}=e.payload;vl(t,r,bl(t,r).filter(i=>i.id!==a)),Tf(t,r,-1,o)}},Mf={[Wt.SEARCHES]:"savedSearches",[Wt.BOOKMARKS]:"bookmarks",[Wt.BOOKS]:void 0,[Wt.COLLECTIONS]:void 0},bl=(t,e)=>{var r;let o=Mf[e];return o?(r=t[o])!==null&&r!==void 0?r:[]:[]},vl=(t,e,r)=>{let o=Mf[e];o&&(t[o]=r)},Tf=(t,e,r,o)=>{let a=t.assetCounts.allAsset[e];if(a!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,a+r),e===Wt.BOOKMARKS&&o)){let i=t.assetCounts.bookmarkByMap[o];t.assetCounts.bookmarkByMap[o]=Math.max(0,i+r)}},Nf=(t,e)=>{let r=t.assetLabels.map(a=>a.title),o=e.labels.filter(a=>!r.includes(a)).map(a=>({title:a}));t.assetLabels.push(...o)},Tt=Ci.FtReduxStore.get({name:z3,reducers:P3,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Wt).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),xl=class{constructor(e=new xi,r=new Si){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=I.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new vi,this.savedSearchesService=new bi,I.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=I.getState();(0,Ci.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(),Tt.actions.clearAssetCount(),Tt.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Tt.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Tt.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Tt.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();Tt.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&Tt.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&Tt.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(Tt.getState().assetCounts.bookmarkByMap).length!==0;e===Wt.BOOKMARKS&&r&&Tt.actions.clearBookmarkCountByMap(),Tt.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;Tt.actions.bookmarks(r)}}},I3=new xl;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=I3);var Sl=class{addCommand(e,r=!1){I.commands.add(e,r)}consumeCommand(e){return I.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Sl;var Vt=h(E());var zf,bn=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},$3=Symbol("clearAfterUnitTest"),Oi=class extends(0,Vt.withEventBus)(kt){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[zf]=()=>{this.defaultMessages={},this.cache=new Vt.CacheRegistry,this.listeners={}},this.currentUiLocale=I.getState().uiLocale,I.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=I.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 o;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let a={...(o=this.defaultMessages[e])!==null&&o!==void 0?o:{},...r};(0,Vt.deepEqual)(this.defaultMessages[e],a)||(this.defaultMessages[e]=a,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,o;return this.fetchContext(e),(o=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&o!==void 0?o:{}}resolveRawMessage(e,r){let o=e.toLowerCase();return this.resolveContext(o)[r]}resolveMessage(e,r,...o){var a;let i=e.toLowerCase(),s=this.resolveContext(i);return new Vt.ParametrizedLabelResolver((a=this.defaultMessages[i])!==null&&a!==void 0?a:{},s).resolve(r,...o)}async fetchContext(e){let r=!this.cache.has(e),o;try{o=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(a){!(a instanceof Vt.CanceledPromiseError)&&r&&console.error(a)}return o}subscribe(e,r){var o;return e=e.toLowerCase(),this.listeners[e]=(o=this.listeners[e])!==null&&o!==void 0?o:new Set,this.listeners[e].add(r),()=>{var a;return(a=this.listeners[e])===null||a===void 0?void 0:a.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new bn({loadedContexts:e})),this.dispatchEvent(new bn({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new bn({loadedContexts:[e]})),this.dispatchEvent(new bn({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(o=>(0,Vt.delay)(0).then(()=>o()).catch(()=>null)))}};zf=$3;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Oi{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Oi{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var oa=window.FluidTopicsI18nService,Cl=window.FluidTopicsCustomI18nService;var Pf=h(E()),Ol=class{highlightHtml(e,r,o){(0,Pf.highlightHtml)(e,r,o)}};window.FluidTopicsHighlightHtmlService=new Ol;var If=h(E());var Ll=class{isDate(e){var r,o,a,i;return(i=(a=((o=(r=I.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&o!==void 0?o:[]).find(l=>l.key===e))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1}format(e,r){var o,a,i;if(e==null)return"";try{return If.DateFormatter.format(e,(o=r?.locale)!==null&&o!==void 0?o:I.getState().uiLocale,(a=r?.longFormat)!==null&&a!==void 0?a:!1,(i=r?.withTime)!==null&&i!==void 0?i:!1)}catch(s){throw console.error(`Date ${JSON.stringify(e)} is not valid`,s),s}}};window.FluidTopicsDateService=new Ll;var $f=h(E());var na=class{static get(e,r){var o,a;let i=I.getState(),{lang:s,region:l}=(a=(o=i.defaultLocales)===null||o===void 0?void 0:o.defaultContentLocale)!==null&&a!==void 0?a:{lang:"en",region:"US"};return new $f.SearchPlaceConverter(i.baseUrl,e??20,i.searchInAllLanguagesAllowed,r??`${s}-${l}`)}};var El=class{urlToSearchRequest(e){return na.get().parse(e)}searchRequestToUrl(e){return na.get().serialize(e)}};window.FluidTopicsUrlService=new El;var Jr=h(E());var zo=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};zo.eventName="change";var Al=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))}},Df=new Al;var Li=class t extends Jr.WithEventBus{static build(){return new t(window.history,Df,()=>window.location,!1)}constructor(e,r,o,a){var i,s;super(),this.history=e,this.historyStorage=r,this.windowLocation=o,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(i=e.state)===null||i===void 0?void 0:i.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(a)}setCurrentState(e,r=!1){let o=r&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,o&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,Jr.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new zo(this.currentItem())),0)}installProxies(){let e=r=>(o,a,[i,s,l])=>{let f=r(),p={...f===this.currentIndex?this.currentState:void 0,...i,index:f,href:typeof l=="string"?l:(l??this.windowLocation()).href};o.apply(a,[p,s,l]),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 o={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(o)}addHistoryChangeListener(e){this.addEventListener(zo.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(zo.eventName,e)}currentItem(){return(0,Jr.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,Jr.deepCopy)(this.states[this.previousDifferentMajorPosition()])}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,Jr.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 o=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!o)return e;let a=e,i=e+1;for(;this.states.length>i&&!this.isDifferentMajorState(i,o);)this.hasState(i)&&(a=i),i++;return a}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 o;if(!this.hasState(e))return!1;let a=r??this.currentState.majorStateId,i=(o=this.states[e])===null||o===void 0?void 0:o.majorStateId;return i==null||i!=a}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Li.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t)});var Bf=h(k());var Ff=Bf.css`
627
+ `;var E1=["top","right","bottom","left"],L1=["start","end"],Ds=E1.reduce((t,e)=>t.concat(e,e+"-"+L1[0],e+"-"+L1[1]),[]),Kn=Math.min,Vr=Math.max,qn=Math.round;var tr=t=>({x:t,y:t}),Lh={left:"right",right:"left",bottom:"top",top:"bottom"};function Bs(t,e,r){return Vr(t,Kn(e,r))}function Wa(t,e){return typeof t=="function"?t(e):t}function sn(t){return t.split("-")[0]}function jr(t){return t.split("-")[1]}function Fs(t){return t==="x"?"y":"x"}function Us(t){return t==="y"?"height":"width"}function Va(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function Hs(t){return Fs(Va(t))}function A1(t,e,r){r===void 0&&(r=!1);let o=jr(t),a=Hs(t),i=Us(a),s=a==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(s=$s(s)),[s,$s(s)]}function w1(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function $s(t){let e=sn(t);return Lh[e]+t.slice(e.length)}function Eh(t){return{top:0,right:0,bottom:0,left:0,...t}}function R1(t){return typeof t!="number"?Eh(t):{top:t,right:t,bottom:t,left:t}}function Lo(t){let{x:e,y:r,width:o,height:a}=t;return{width:o,height:a,top:r,left:e,right:e+o,bottom:r+a,x:e,y:r}}function _1(t,e,r){let{reference:o,floating:a}=t,i=Va(e),s=Hs(e),l=Us(s),f=sn(e),p=i==="y",g=o.x+o.width/2-a.width/2,y=o.y+o.height/2-a.height/2,b=o[l]/2-a[l]/2,S;switch(f){case"top":S={x:g,y:o.y-a.height};break;case"bottom":S={x:g,y:o.y+o.height};break;case"right":S={x:o.x+o.width,y};break;case"left":S={x:o.x-a.width,y};break;default:S={x:o.x,y:o.y}}switch(jr(e)){case"start":S[s]-=b*(r&&p?-1:1);break;case"end":S[s]+=b*(r&&p?-1:1);break}return S}async function k1(t,e){var r;e===void 0&&(e={});let{x:o,y:a,platform:i,rects:s,elements:l,strategy:f}=t,{boundary:p="clippingAncestors",rootBoundary:g="viewport",elementContext:y="floating",altBoundary:b=!1,padding:S=0}=Wa(e,t),O=R1(S),T=l[b?y==="floating"?"reference":"floating":y],z=Lo(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(T)))==null||r?T:T.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:p,rootBoundary:g,strategy:f})),N=y==="floating"?{x:o,y:a,width:s.floating.width,height:s.floating.height}:s.reference,D=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),F=await(i.isElement==null?void 0:i.isElement(D))?await(i.getScale==null?void 0:i.getScale(D))||{x:1,y:1}:{x:1,y:1},oe=Lo(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:N,offsetParent:D,strategy:f}):N);return{top:(z.top-oe.top+O.top)/F.y,bottom:(oe.bottom-z.bottom+O.bottom)/F.y,left:(z.left-oe.left+O.left)/F.x,right:(oe.right-z.right+O.right)/F.x}}var Ah=50,T1=async(t,e,r)=>{let{placement:o="bottom",strategy:a="absolute",middleware:i=[],platform:s}=r,l=s.detectOverflow?s:{...s,detectOverflow:k1},f=await(s.isRTL==null?void 0:s.isRTL(e)),p=await s.getElementRects({reference:t,floating:e,strategy:a}),{x:g,y}=_1(p,o,f),b=o,S=0,O={};for(let A=0;A<i.length;A++){let T=i[A];if(!T)continue;let{name:z,fn:N}=T,{x:D,y:F,data:oe,reset:Ce}=await N({x:g,y,initialPlacement:o,placement:b,strategy:a,middlewareData:O,rects:p,platform:l,elements:{reference:t,floating:e}});g=D??g,y=F??y,O[z]={...O[z],...oe},Ce&&S<Ah&&(S++,typeof Ce=="object"&&(Ce.placement&&(b=Ce.placement),Ce.rects&&(p=Ce.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:a}):Ce.rects),{x:g,y}=_1(p,b,f)),A=-1)}return{x:g,y,placement:b,strategy:a,middlewareData:O}};function wh(t,e,r){return(t?[...r.filter(a=>jr(a)===t),...r.filter(a=>jr(a)!==t)]:r.filter(a=>sn(a)===a)).filter(a=>t?jr(a)===t||(e?w1(a)!==a:!1):!0)}var N1=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,o,a;let{rects:i,middlewareData:s,placement:l,platform:f,elements:p}=e,{crossAxis:g=!1,alignment:y,allowedPlacements:b=Ds,autoAlignment:S=!0,...O}=Wa(t,e),A=y!==void 0||b===Ds?wh(y||null,S,b):b,T=await f.detectOverflow(e,O),z=((r=s.autoPlacement)==null?void 0:r.index)||0,N=A[z];if(N==null)return{};let D=A1(N,i,await(f.isRTL==null?void 0:f.isRTL(p.floating)));if(l!==N)return{reset:{placement:A[0]}};let F=[T[sn(N)],T[D[0]],T[D[1]]],oe=[...((o=s.autoPlacement)==null?void 0:o.overflows)||[],{placement:N,overflows:F}],Ce=A[z+1];if(Ce)return{data:{index:z+1,overflows:oe},reset:{placement:Ce}};let St=oe.map(Ye=>{let x=jr(Ye.placement);return[Ye.placement,x&&g?Ye.overflows.slice(0,2).reduce((L,U)=>L+U,0):Ye.overflows[0],Ye.overflows]}).sort((Ye,x)=>Ye[1]-x[1]),fr=((a=St.filter(Ye=>Ye[2].slice(0,jr(Ye[0])?2:3).every(x=>x<=0))[0])==null?void 0:a[0])||St[0][0];return fr!==l?{data:{index:z+1,overflows:oe},reset:{placement:fr}}:{}}}};var M1=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:o,placement:a,platform:i}=e,{mainAxis:s=!0,crossAxis:l=!1,limiter:f={fn:z=>{let{x:N,y:D}=z;return{x:N,y:D}}},...p}=Wa(t,e),g={x:r,y:o},y=await i.detectOverflow(e,p),b=Va(sn(a)),S=Fs(b),O=g[S],A=g[b];if(s){let z=S==="y"?"top":"left",N=S==="y"?"bottom":"right",D=O+y[z],F=O-y[N];O=Bs(D,O,F)}if(l){let z=b==="y"?"top":"left",N=b==="y"?"bottom":"right",D=A+y[z],F=A-y[N];A=Bs(D,A,F)}let T=f.fn({...e,[S]:O,[b]:A});return{...T,data:{x:T.x-r,y:T.y-o,enabled:{[S]:s,[b]:l}}}}}};function Ka(){return typeof window<"u"}function Ao(t){return P1(t)?(t.nodeName||"").toLowerCase():"#document"}function Ot(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function mr(t){var e;return(e=(P1(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function P1(t){return Ka()?t instanceof Node||t instanceof Ot(t).Node:!1}function Ut(t){return Ka()?t instanceof Element||t instanceof Ot(t).Element:!1}function gr(t){return Ka()?t instanceof HTMLElement||t instanceof Ot(t).HTMLElement:!1}function z1(t){return!Ka()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Ot(t).ShadowRoot}function ln(t){let{overflow:e,overflowX:r,overflowY:o,display:a}=Ht(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+r)&&a!=="inline"&&a!=="contents"}function I1(t){return/^(table|td|th)$/.test(Ao(t))}function Zn(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var Rh=/transform|translate|scale|rotate|perspective|filter/,_h=/paint|layout|strict|content/,Eo=t=>!!t&&t!=="none",Gs;function qa(t){let e=Ut(t)?Ht(t):t;return Eo(e.transform)||Eo(e.translate)||Eo(e.scale)||Eo(e.rotate)||Eo(e.perspective)||!Za()&&(Eo(e.backdropFilter)||Eo(e.filter))||Rh.test(e.willChange||"")||_h.test(e.contain||"")}function $1(t){let e=Nr(t);for(;gr(e)&&!wo(e);){if(qa(e))return e;if(Zn(e))return null;e=Nr(e)}return null}function Za(){return Gs==null&&(Gs=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Gs}function wo(t){return/^(html|body|#document)$/.test(Ao(t))}function Ht(t){return Ot(t).getComputedStyle(t)}function Yn(t){return Ut(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Nr(t){if(Ao(t)==="html")return t;let e=t.assignedSlot||t.parentNode||z1(t)&&t.host||mr(t);return z1(e)?e.host:e}function D1(t){let e=Nr(t);return wo(e)?t.ownerDocument?t.ownerDocument.body:t.body:gr(e)&&ln(e)?e:D1(e)}function ja(t,e,r){var o;e===void 0&&(e=[]),r===void 0&&(r=!0);let a=D1(t),i=a===((o=t.ownerDocument)==null?void 0:o.body),s=Ot(a);if(i){let l=Ya(s);return e.concat(s,s.visualViewport||[],ln(a)?a:[],l&&r?ja(l):[])}else return e.concat(a,ja(a,[],r))}function Ya(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function H1(t){let e=Ht(t),r=parseFloat(e.width)||0,o=parseFloat(e.height)||0,a=gr(t),i=a?t.offsetWidth:r,s=a?t.offsetHeight:o,l=qn(r)!==i||qn(o)!==s;return l&&(r=i,o=s),{width:r,height:o,$:l}}function G1(t){return Ut(t)?t:t.contextElement}function cn(t){let e=G1(t);if(!gr(e))return tr(1);let r=e.getBoundingClientRect(),{width:o,height:a,$:i}=H1(e),s=(i?qn(r.width):r.width)/o,l=(i?qn(r.height):r.height)/a;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var kh=tr(0);function W1(t){let e=Ot(t);return!Za()||!e.visualViewport?kh:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Th(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==Ot(t)?!1:e}function Xn(t,e,r,o){e===void 0&&(e=!1),r===void 0&&(r=!1);let a=t.getBoundingClientRect(),i=G1(t),s=tr(1);e&&(o?Ut(o)&&(s=cn(o)):s=cn(t));let l=Th(i,r,o)?W1(i):tr(0),f=(a.left+l.x)/s.x,p=(a.top+l.y)/s.y,g=a.width/s.x,y=a.height/s.y;if(i){let b=Ot(i),S=o&&Ut(o)?Ot(o):o,O=b,A=Ya(O);for(;A&&o&&S!==O;){let T=cn(A),z=A.getBoundingClientRect(),N=Ht(A),D=z.left+(A.clientLeft+parseFloat(N.paddingLeft))*T.x,F=z.top+(A.clientTop+parseFloat(N.paddingTop))*T.y;f*=T.x,p*=T.y,g*=T.x,y*=T.y,f+=D,p+=F,O=Ot(A),A=Ya(O)}}return Lo({width:g,height:y,x:f,y:p})}function Xa(t,e){let r=Yn(t).scrollLeft;return e?e.left+r:Xn(mr(t)).left+r}function V1(t,e){let r=t.getBoundingClientRect(),o=r.left+e.scrollLeft-Xa(t,r),a=r.top+e.scrollTop;return{x:o,y:a}}function Nh(t){let{elements:e,rect:r,offsetParent:o,strategy:a}=t,i=a==="fixed",s=mr(o),l=e?Zn(e.floating):!1;if(o===s||l&&i)return r;let f={scrollLeft:0,scrollTop:0},p=tr(1),g=tr(0),y=gr(o);if((y||!y&&!i)&&((Ao(o)!=="body"||ln(s))&&(f=Yn(o)),y)){let S=Xn(o);p=cn(o),g.x=S.x+o.clientLeft,g.y=S.y+o.clientTop}let b=s&&!y&&!i?V1(s,f):tr(0);return{width:r.width*p.x,height:r.height*p.y,x:r.x*p.x-f.scrollLeft*p.x+g.x+b.x,y:r.y*p.y-f.scrollTop*p.y+g.y+b.y}}function Mh(t){return Array.from(t.getClientRects())}function zh(t){let e=mr(t),r=Yn(t),o=t.ownerDocument.body,a=Vr(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),i=Vr(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight),s=-r.scrollLeft+Xa(t),l=-r.scrollTop;return Ht(o).direction==="rtl"&&(s+=Vr(e.clientWidth,o.clientWidth)-a),{width:a,height:i,x:s,y:l}}var B1=25;function Ph(t,e){let r=Ot(t),o=mr(t),a=r.visualViewport,i=o.clientWidth,s=o.clientHeight,l=0,f=0;if(a){i=a.width,s=a.height;let g=Za();(!g||g&&e==="fixed")&&(l=a.offsetLeft,f=a.offsetTop)}let p=Xa(o);if(p<=0){let g=o.ownerDocument,y=g.body,b=getComputedStyle(y),S=g.compatMode==="CSS1Compat"&&parseFloat(b.marginLeft)+parseFloat(b.marginRight)||0,O=Math.abs(o.clientWidth-y.clientWidth-S);O<=B1&&(i-=O)}else p<=B1&&(i+=p);return{width:i,height:s,x:l,y:f}}function Ih(t,e){let r=Xn(t,!0,e==="fixed"),o=r.top+t.clientTop,a=r.left+t.clientLeft,i=gr(t)?cn(t):tr(1),s=t.clientWidth*i.x,l=t.clientHeight*i.y,f=a*i.x,p=o*i.y;return{width:s,height:l,x:f,y:p}}function F1(t,e,r){let o;if(e==="viewport")o=Ph(t,r);else if(e==="document")o=zh(mr(t));else if(Ut(e))o=Ih(e,r);else{let a=W1(t);o={x:e.x-a.x,y:e.y-a.y,width:e.width,height:e.height}}return Lo(o)}function j1(t,e){let r=Nr(t);return r===e||!Ut(r)||wo(r)?!1:Ht(r).position==="fixed"||j1(r,e)}function $h(t,e){let r=e.get(t);if(r)return r;let o=ja(t,[],!1).filter(l=>Ut(l)&&Ao(l)!=="body"),a=null,i=Ht(t).position==="fixed",s=i?Nr(t):t;for(;Ut(s)&&!wo(s);){let l=Ht(s),f=qa(s);!f&&l.position==="fixed"&&(a=null),(i?!f&&!a:!f&&l.position==="static"&&!!a&&(a.position==="absolute"||a.position==="fixed")||ln(s)&&!f&&j1(t,s))?o=o.filter(g=>g!==s):a=l,s=Nr(s)}return e.set(t,o),o}function Dh(t){let{element:e,boundary:r,rootBoundary:o,strategy:a}=t,s=[...r==="clippingAncestors"?Zn(e)?[]:$h(e,this._c):[].concat(r),o],l=F1(e,s[0],a),f=l.top,p=l.right,g=l.bottom,y=l.left;for(let b=1;b<s.length;b++){let S=F1(e,s[b],a);f=Vr(S.top,f),p=Kn(S.right,p),g=Kn(S.bottom,g),y=Vr(S.left,y)}return{width:p-y,height:g-f,x:y,y:f}}function Bh(t){let{width:e,height:r}=H1(t);return{width:e,height:r}}function Fh(t,e,r){let o=gr(e),a=mr(e),i=r==="fixed",s=Xn(t,!0,i,e),l={scrollLeft:0,scrollTop:0},f=tr(0);function p(){f.x=Xa(a)}if(o||!o&&!i)if((Ao(e)!=="body"||ln(a))&&(l=Yn(e)),o){let S=Xn(e,!0,i,e);f.x=S.x+e.clientLeft,f.y=S.y+e.clientTop}else a&&p();i&&!o&&a&&p();let g=a&&!o&&!i?V1(a,l):tr(0),y=s.left+l.scrollLeft-f.x-g.x,b=s.top+l.scrollTop-f.y-g.y;return{x:y,y:b,width:s.width,height:s.height}}function Ws(t){return Ht(t).position==="static"}function U1(t,e){if(!gr(t)||Ht(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return mr(t)===r&&(r=r.ownerDocument.body),r}function K1(t,e){let r=Ot(t);if(Zn(t))return r;if(!gr(t)){let a=Nr(t);for(;a&&!wo(a);){if(Ut(a)&&!Ws(a))return a;a=Nr(a)}return r}let o=U1(t,e);for(;o&&I1(o)&&Ws(o);)o=U1(o,e);return o&&wo(o)&&Ws(o)&&!qa(o)?r:o||$1(t)||r}var Uh=async function(t){let e=this.getOffsetParent||K1,r=this.getDimensions,o=await r(t.floating);return{reference:Fh(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Hh(t){return Ht(t).direction==="rtl"}var Qa={convertOffsetParentRelativeRectToViewportRelativeRect:Nh,getDocumentElement:mr,getClippingRect:Dh,getOffsetParent:K1,getElementRects:Uh,getClientRects:Mh,getDimensions:Bh,getScale:cn,isElement:Ut,isRTL:Hh};var q1=N1,Z1=M1;var Y1=(t,e,r)=>{let o=new Map,a={platform:Qa,...r},i={...a.platform,_c:o};return T1(t,e,{...a,platform:i})};function X1(t){return Gh(t)}function Vs(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Gh(t){for(let e=t;e;e=Vs(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Vs(t);e;e=Vs(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||r.filter!=="none"||e.tagName==="BODY"))return e}return null}async function Q1(t,e,r){let o;return typeof r=="object"?o=r:o={placement:r},Y1(t,e,{strategy:o.strategy,platform:{...Qa,getOffsetParent:a=>Qa.getOffsetParent(a,X1)},middleware:[Z1({crossAxis:!0}),q1({allowedPlacements:[o.placement]})]})}var xn=h(E());var gl=h(q());function Wh(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,o,a;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(o=r;o--!==0;)if(!Ja(t[o],e[o]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(o of t.entries())if(!e.has(o[0]))return!1;for(o of t.entries())if(!Ja(o[1],e.get(o[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(o of t.entries())if(!e.has(o[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let i=s=>Object.keys(s).filter(l=>s[l]!=null);if(a=i(t),r=a.length,r!==i(e).length)return!1;for(o=r;o--!==0;)if(!Object.prototype.hasOwnProperty.call(e,a[o]))return!1;for(o=r;o--!==0;){let s=a[o];if(!Ja(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function Ja(t,e){try{return Wh(t,e)}catch{return!1}}function Qn(t,e){return!Ja(t,e)}function J1(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function ei(t,e){let r=o=>o[t]===!0;return o=>{if(r(o))return o;let a=e(o);return a[t]=!0,a}}var e2=h(q(),1);var js=t=>{let e=t??{};return(r,o)=>{var a;let i={hasChanged:Qn,attribute:!1,...e};(0,e2.property)(i)(r,o);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(o,{selector:(a=e.selector)!==null&&a!==void 0?a:l=>l[o],store:e.store})}};var ti=class{constructor(){this.queue=[]}add(e,r=!1){r&&this.clear(e.type),this.queue.push(e)}consume(e){let r=this.queue.find(o=>o.type===e);return r&&(this.queue=this.queue.filter(o=>o!==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 Ro=h(q(),1);var t2=h(q(),1);function r2(t,e){let r=()=>JSON.parse(JSON.stringify(t));return(0,t2.property)({type:Object,converter:{fromAttribute:o=>{if(o==null)return r();try{return JSON.parse(o)}catch{return r()}},toAttribute:o=>JSON.stringify(o)},hasChanged:Qn,...e??{}})}var ri=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,o)=>{this.resolvePromise=r,this.rejectPromise=o})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let o=[...this.callbacks];this.callbacks=[];let a=(e=this.rejectPromise)!==null&&e!==void 0?e:()=>null,i=(r=this.resolvePromise)!==null&&r!==void 0?r:()=>null;this.clearPromise();for(let s of o)try{await s()}catch(l){a(l);return}i(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var n2=h(k(),1);var oi=globalThis,Vh=oi.ShadowRoot&&(oi.ShadyCSS===void 0||oi.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,IC=Symbol();var o2=(t,e)=>{if(Vh)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let o=document.createElement("style"),a=oi.litNonce;a!==void 0&&o.setAttribute("nonce",a),o.textContent=r.cssText,t.appendChild(o)}};var ni=class extends n2.LitElement{createRenderRoot(){let e=this.constructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,Object.entries(e.elementDefinitions).forEach(([a,i])=>e.registry.define(a,i)));let r={...e.shadowRootOptions,customElements:e.registry},o=this.renderOptions.creationScope=this.attachShadow(r);return o2(o,e.elementStyles),o}};function a2(t,e,...r){var o;let a=t.querySelector(e);for(let i of r)a=(o=a?.shadowRoot)===null||o===void 0?void 0:o.querySelector(i);return a}var fn=function(t,e,r,o){var a=arguments.length,i=a<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(i=(a<3?s(i):a>3?s(e,r,i):s(e,r))||i);return a>3&&i&&Object.defineProperty(e,r,i),i},c2,i2=Symbol("constructorPrototype"),s2=Symbol("constructorName"),d2=Symbol("exportpartsDebouncer"),l2=Symbol("dynamicDependenciesLoaded"),dn=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};dn.eventName="exportparts-updated";var yr=class extends ni{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[c2]=new ri(5),this.scheduleExportpartsUpdate=()=>{var e,r,o;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(o=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&o!==void 0&&o)&&this[d2].run(()=>{var a,i;!((a=this.exportpartsPrefix)===null||a===void 0)&&a.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((i=this.exportpartsPrefixes)===null||i===void 0?void 0:i.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[s2]=this.constructor.name,this[i2]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[s2]&&Object.setPrototypeOf(this,this[i2])}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(o){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",o)}let r=this.constructor;r[l2]||(r[l2]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(dn.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(dn.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 dn)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:o,shadowPath:a}=this.elementToFocus;if(o!=null){let i=[...a??[],o];r=a2(this.shadowRoot,...i)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var r,o,a;if(((o=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&o!==void 0?o:[]).forEach(i=>i.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((a=this.customStylesheet)!==null&&a!==void 0?a:"")}catch(i){console.error(i,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let i=document.createElement("style");i.classList.add("ft-lit-element--custom-stylesheet"),i.innerHTML=this.customStylesheet,this.shadowRoot.append(i)}}setExportpartsAttribute(e){var r,o,a,i,s,l;let f=b=>b!=null&&b.trim().length>0,p=e.filter(f).map(b=>b.trim());if(p.length===0){this.exportparts=void 0;return}let g=new Set;for(let b of(o=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&o!==void 0?o:[]){let S=(i=(a=b.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&i!==void 0?i:[],O=(l=(s=b.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(T=>T.split(":")[1]))!==null&&l!==void 0?l:[],A=[...S,...O].filter(f).map(T=>T.trim());for(let T of A)g.add(T)}if(g.size===0){this.exportparts=void 0;return}let y=[...g.values()].flatMap(b=>p.map(S=>`${b}:${S}--${b}`));this.exportparts=[...this.part,...y].join(", ")}};c2=d2;fn([(0,Ro.property)()],yr.prototype,"exportpartsPrefix",void 0);fn([r2([])],yr.prototype,"exportpartsPrefixes",void 0);fn([(0,Ro.property)({reflect:!0})],yr.prototype,"exportparts",void 0);fn([(0,Ro.property)()],yr.prototype,"customStylesheet",void 0);fn([(0,Ro.property)()],yr.prototype,"elementToFocus",void 0);fn([(0,Ro.state)()],yr.prototype,"useAdoptedStyleSheets",void 0);function ai(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Jn=Symbol("internalReduxEventsUnsubscribers"),Kr=Symbol("internalStoresUnsubscribers"),_o=Symbol("internalStores"),jh=ei(Symbol("withRedux"),function(t){var e,r,o;class a extends t{constructor(){super(...arguments),this[e]=new Map,this[r]=new Map,this[o]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(l=>s.has(l))&&this.updateFromStores()}getUnnamedStore(){if(this[_o].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[_o].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[_o].get(s)}addStore(s,l){var f;l=(f=l??s.name)!==null&&f!==void 0?f:"default-store",this.unsubscribeFromStore(l),this[_o].set(l,s),this.subscribeToStore(l,s),this.updateFromStores()}removeStore(s){let l=typeof s=="string"?s:s.name;this.unsubscribeFromStore(l),this[_o].delete(l)}setupStores(){this.unsubscribeFromStores(),this[_o].forEach((s,l)=>this.subscribeToStore(l,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,l)=>{let f=this.constructor.getPropertyOptions(l);if(!f?.attribute||!this.hasAttribute(typeof f?.attribute=="string"?f.attribute:l)){let p=this.getStore(s.store);p&&(s.store?this[Kr].has(s.store):this[Kr].size>0)&&(this[l]=s.selector(p.getState(),this))}})}subscribeToStore(s,l){var f;this[Kr].set(s,l.subscribe(()=>this.updateFromStores())),this[Jn].set(s,[]),ai(l)&&l.eventBus&&((f=this.reduxConstructor.reduxEventListeners)===null||f===void 0||f.forEach((p,g)=>{if(typeof this[g]=="function"&&(!p.store||l.name===p.store)){let y=b=>this[g](b);l.addEventListener(p.eventName,y),this[Jn].get(s).push(()=>l.removeEventListener(p.eventName,y))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[Kr].forEach((s,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(s){var l;this[Kr].has(s)&&this[Kr].get(s)(),this[Kr].delete(s),(l=this[Jn].get(s))===null||l===void 0||l.forEach(f=>f()),this[Jn].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=Kr,r=_o,o=Jn,a.reduxProperties=new Map,a.reduxReactiveProperties=new Set,a.reduxEventListeners=new Map,a}),f2=class extends jh(yr){};function Gt(t){for(var e=arguments.length,r=Array(e>1?e-1:0),o=1;o<e;o++)r[o-1]=arguments[o];if(0)var a,i;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 Mr(t){return!!t&&!!t[Ee]}function rr(t){var e;return!!t&&(function(r){if(!r||typeof r!="object")return!1;var o=Object.getPrototypeOf(r);if(o===null)return!0;var a=Object.hasOwnProperty.call(o,"constructor")&&o.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===e3}(t)||Array.isArray(t)||!!t[b2]||!!(!((e=t.constructor)===null||e===void 0)&&e[b2])||tl(t)||rl(t))}function ko(t,e,r){r===void 0&&(r=!1),hn(t)===0?(r?Object.keys:un)(t).forEach(function(o){r&&typeof o=="symbol"||e(o,t[o],t)}):t.forEach(function(o,a){return e(a,o,t)})}function hn(t){var e=t[Ee];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:tl(t)?2:rl(t)?3:0}function pn(t,e){return hn(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Kh(t,e){return hn(t)===2?t.get(e):t[e]}function v2(t,e,r){var o=hn(t);o===2?t.set(e,r):o===3?t.add(r):t[e]=r}function x2(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function tl(t){return Qh&&t instanceof Map}function rl(t){return Jh&&t instanceof Set}function qr(t){return t.o||t.t}function ol(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=O2(t);delete e[Ee];for(var r=un(e),o=0;o<r.length;o++){var a=r[o],i=e[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(e[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:t[a]})}return Object.create(Object.getPrototypeOf(t),e)}function nl(t,e){return e===void 0&&(e=!1),al(t)||Mr(t)||!rr(t)||(hn(t)>1&&(t.set=t.add=t.clear=t.delete=qh),Object.freeze(t),e&&ko(t,function(r,o){return nl(o,!0)},!0)),t}function qh(){Gt(2)}function al(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function br(t){var e=el[t];return e||Gt(18,t),e}function Zh(t,e){el[t]||(el[t]=e)}function Xs(){return ta}function Ks(t,e){e&&(br("Patches"),t.u=[],t.s=[],t.v=e)}function ii(t){Qs(t),t.p.forEach(Yh),t.p=null}function Qs(t){t===ta&&(ta=t.l)}function p2(t){return ta={p:[],l:ta,h:t,m:!0,_:0}}function Yh(t){var e=t[Ee];e.i===0||e.i===1?e.j():e.g=!0}function qs(t,e){e._=e.p.length;var r=e.p[0],o=t!==void 0&&t!==r;return e.h.O||br("ES5").S(e,t,o),o?(r[Ee].P&&(ii(e),Gt(4)),rr(t)&&(t=si(e,t),e.l||li(e,t)),e.u&&br("Patches").M(r[Ee].t,t,e.u,e.s)):t=si(e,r,[]),ii(e),e.u&&e.v(e.u,e.s),t!==C2?t:void 0}function si(t,e,r){if(al(e))return e;var o=e[Ee];if(!o)return ko(e,function(l,f){return u2(t,o,e,l,f,r)},!0),e;if(o.A!==t)return e;if(!o.P)return li(t,o.t,!0),o.t;if(!o.I){o.I=!0,o.A._--;var a=o.i===4||o.i===5?o.o=ol(o.k):o.o,i=a,s=!1;o.i===3&&(i=new Set(a),a.clear(),s=!0),ko(i,function(l,f){return u2(t,o,a,l,f,r,s)}),li(t,a,!1),r&&t.u&&br("Patches").N(o,r,t.u,t.s)}return o.o}function u2(t,e,r,o,a,i,s){if(Mr(a)){var l=si(t,a,i&&e&&e.i!==3&&!pn(e.R,o)?i.concat(o):void 0);if(v2(r,o,l),!Mr(l))return;t.m=!1}else s&&r.add(a);if(rr(a)&&!al(a)){if(!t.h.D&&t._<1)return;si(t,a),e&&e.A.l||li(t,a)}}function li(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&nl(e,r)}function Zs(t,e){var r=t[Ee];return(r?qr(r):t)[e]}function h2(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var o=Object.getOwnPropertyDescriptor(r,e);if(o)return o;r=Object.getPrototypeOf(r)}}function Zr(t){t.P||(t.P=!0,t.l&&Zr(t.l))}function Ys(t){t.o||(t.o=ol(t.t))}function Js(t,e,r){var o=tl(e)?br("MapSet").F(e,r):rl(e)?br("MapSet").T(e,r):t.O?function(a,i){var s=Array.isArray(a),l={i:s?1:0,A:i?i.A:Xs(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},f=l,p=ra;s&&(f=[l],p=ea);var g=Proxy.revocable(f,p),y=g.revoke,b=g.proxy;return l.k=b,l.j=y,b}(e,r):br("ES5").J(e,r);return(r?r.A:Xs()).p.push(o),o}function Xh(t){return Mr(t)||Gt(22,t),function e(r){if(!rr(r))return r;var o,a=r[Ee],i=hn(r);if(a){if(!a.P&&(a.i<4||!br("ES5").K(a)))return a.t;a.I=!0,o=m2(r,i),a.I=!1}else o=m2(r,i);return ko(o,function(s,l){a&&Kh(a.t,s)===l||v2(o,s,e(l))}),i===3?new Set(o):o}(t)}function m2(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return ol(t)}function S2(){function t(s,l){var f=i[s];return f?f.enumerable=l:i[s]=f={configurable:!0,enumerable:l,get:function(){var p=this[Ee];return ra.get(p,s)},set:function(p){var g=this[Ee];ra.set(g,s,p)}},f}function e(s){for(var l=s.length-1;l>=0;l--){var f=s[l][Ee];if(!f.P)switch(f.i){case 5:o(f)&&Zr(f);break;case 4:r(f)&&Zr(f)}}}function r(s){for(var l=s.t,f=s.k,p=un(f),g=p.length-1;g>=0;g--){var y=p[g];if(y!==Ee){var b=l[y];if(b===void 0&&!pn(l,y))return!0;var S=f[y],O=S&&S[Ee];if(O?O.t!==b:!x2(S,b))return!0}}var A=!!l[Ee];return p.length!==un(l).length+(A?0:1)}function o(s){var l=s.k;if(l.length!==s.t.length)return!0;var f=Object.getOwnPropertyDescriptor(l,l.length-1);if(f&&!f.get)return!0;for(var p=0;p<l.length;p++)if(!l.hasOwnProperty(p))return!0;return!1}function a(s){s.g&&Gt(3,JSON.stringify(qr(s)))}var i={};Zh("ES5",{J:function(s,l){var f=Array.isArray(s),p=function(y,b){if(y){for(var S=Array(b.length),O=0;O<b.length;O++)Object.defineProperty(S,""+O,t(O,!0));return S}var A=O2(b);delete A[Ee];for(var T=un(A),z=0;z<T.length;z++){var N=T[z];A[N]=t(N,y||!!A[N].enumerable)}return Object.create(Object.getPrototypeOf(b),A)}(f,s),g={i:f?5:4,A:l?l.A:Xs(),P:!1,I:!1,R:{},l,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,Ee,{value:g,writable:!0}),p},S:function(s,l,f){f?Mr(l)&&l[Ee].A===s&&e(s.p):(s.u&&function p(g){if(g&&typeof g=="object"){var y=g[Ee];if(y){var b=y.t,S=y.k,O=y.R,A=y.i;if(A===4)ko(S,function(F){F!==Ee&&(b[F]!==void 0||pn(b,F)?O[F]||p(S[F]):(O[F]=!0,Zr(y)))}),ko(b,function(F){S[F]!==void 0||pn(S,F)||(O[F]=!1,Zr(y))});else if(A===5){if(o(y)&&(Zr(y),O.length=!0),S.length<b.length)for(var T=S.length;T<b.length;T++)O[T]=!1;else for(var z=b.length;z<S.length;z++)O[z]=!0;for(var N=Math.min(S.length,b.length),D=0;D<N;D++)S.hasOwnProperty(D)||(O[D]=!0),O[D]===void 0&&p(S[D])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?r(s):o(s)}})}var g2,ta,il=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Qh=typeof Map<"u",Jh=typeof Set<"u",y2=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",C2=il?Symbol.for("immer-nothing"):((g2={})["immer-nothing"]=!0,g2),b2=il?Symbol.for("immer-draftable"):"__$immer_draftable",Ee=il?Symbol.for("immer-state"):"__$immer_state";var e3=""+Object.prototype.constructor,un=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,O2=Object.getOwnPropertyDescriptors||function(t){var e={};return un(t).forEach(function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)}),e},el={},ra={get:function(t,e){if(e===Ee)return t;var r=qr(t);if(!pn(r,e))return function(a,i,s){var l,f=h2(i,s);return f?"value"in f?f.value:(l=f.get)===null||l===void 0?void 0:l.call(a.k):void 0}(t,r,e);var o=r[e];return t.I||!rr(o)?o:o===Zs(t.t,e)?(Ys(t),t.o[e]=Js(t.A.h,o,t)):o},has:function(t,e){return e in qr(t)},ownKeys:function(t){return Reflect.ownKeys(qr(t))},set:function(t,e,r){var o=h2(qr(t),e);if(o?.set)return o.set.call(t.k,r),!0;if(!t.P){var a=Zs(qr(t),e),i=a?.[Ee];if(i&&i.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(x2(r,a)&&(r!==void 0||pn(t.t,e)))return!0;Ys(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 Zs(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,Ys(t),Zr(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=qr(t),o=Reflect.getOwnPropertyDescriptor(r,e);return o&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:o.enumerable,value:r[e]}},defineProperty:function(){Gt(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Gt(12)}},ea={};ko(ra,function(t,e){ea[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),ea.deleteProperty=function(t,e){return ea.set.call(this,t,e,void 0)},ea.set=function(t,e,r){return ra.set.call(this,t[0],e,r,t[0])};var t3=function(){function t(r){var o=this;this.O=y2,this.D=!0,this.produce=function(a,i,s){if(typeof a=="function"&&typeof i!="function"){var l=i;i=a;var f=o;return function(A){var T=this;A===void 0&&(A=l);for(var z=arguments.length,N=Array(z>1?z-1:0),D=1;D<z;D++)N[D-1]=arguments[D];return f.produce(A,function(F){var oe;return(oe=i).call.apply(oe,[T,F].concat(N))})}}var p;if(typeof i!="function"&&Gt(6),s!==void 0&&typeof s!="function"&&Gt(7),rr(a)){var g=p2(o),y=Js(o,a,void 0),b=!0;try{p=i(y),b=!1}finally{b?ii(g):Qs(g)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(A){return Ks(g,s),qs(A,g)},function(A){throw ii(g),A}):(Ks(g,s),qs(p,g))}if(!a||typeof a!="object"){if((p=i(a))===void 0&&(p=a),p===C2&&(p=void 0),o.D&&nl(p,!0),s){var S=[],O=[];br("Patches").M(a,p,S,O),s(S,O)}return p}Gt(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(p){for(var g=arguments.length,y=Array(g>1?g-1:0),b=1;b<g;b++)y[b-1]=arguments[b];return o.produceWithPatches(p,function(S){return a.apply(void 0,[S].concat(y))})};var s,l,f=o.produce(a,i,function(p,g){s=p,l=g});return typeof Promise<"u"&&f instanceof Promise?f.then(function(p){return[p,s,l]}):[f,s,l]},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){rr(r)||Gt(8),Mr(r)&&(r=Xh(r));var o=p2(this),a=Js(this,r,void 0);return a[Ee].C=!0,Qs(o),a},e.finishDraft=function(r,o){var a=r&&r[Ee],i=a.A;return Ks(i,o),qs(void 0,i)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!y2&&Gt(20),this.O=r},e.applyPatches=function(r,o){var a;for(a=o.length-1;a>=0;a--){var i=o[a];if(i.path.length===0&&i.op==="replace"){r=i.value;break}}a>-1&&(o=o.slice(a+1));var s=br("Patches").$;return Mr(r)?s(r,o):this.produce(r,function(l){return s(l,o)})},t}(),_t=new t3,r3=_t.produce,XC=_t.produceWithPatches.bind(_t),QC=_t.setAutoFreeze.bind(_t),JC=_t.setUseProxies.bind(_t),eO=_t.applyPatches.bind(_t),tO=_t.createDraft.bind(_t),rO=_t.finishDraft.bind(_t),ci=r3;function To(t){"@babel/helpers - typeof";return To=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},To(t)}function L2(t,e){if(To(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var o=r.call(t,e||"default");if(To(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function E2(t){var e=L2(t,"string");return To(e)=="symbol"?e:e+""}function A2(t,e,r){return(e=E2(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function w2(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,o)}return r}function sl(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?w2(Object(r),!0).forEach(function(o){A2(t,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):w2(Object(r)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(r,o))})}return t}function ft(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var R2=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),ll=function(){return Math.random().toString(36).substring(7).split("").join(".")},di={INIT:"@@redux/INIT"+ll(),REPLACE:"@@redux/REPLACE"+ll(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ll()}};function o3(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 cl(t,e,r){var o;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(ft(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(ft(1));return r(cl)(t,e)}if(typeof t!="function")throw new Error(ft(2));var a=t,i=e,s=[],l=s,f=!1;function p(){l===s&&(l=s.slice())}function g(){if(f)throw new Error(ft(3));return i}function y(A){if(typeof A!="function")throw new Error(ft(4));if(f)throw new Error(ft(5));var T=!0;return p(),l.push(A),function(){if(T){if(f)throw new Error(ft(6));T=!1,p();var N=l.indexOf(A);l.splice(N,1),s=null}}}function b(A){if(!o3(A))throw new Error(ft(7));if(typeof A.type>"u")throw new Error(ft(8));if(f)throw new Error(ft(9));try{f=!0,i=a(i,A)}finally{f=!1}for(var T=s=l,z=0;z<T.length;z++){var N=T[z];N()}return A}function S(A){if(typeof A!="function")throw new Error(ft(10));a=A,b({type:di.REPLACE})}function O(){var A,T=y;return A={subscribe:function(N){if(typeof N!="object"||N===null)throw new Error(ft(11));function D(){N.next&&N.next(g())}D();var F=T(D);return{unsubscribe:F}}},A[R2]=function(){return this},A}return b({type:di.INIT}),o={dispatch:b,subscribe:y,getState:g,replaceReducer:S},o[R2]=O,o}function n3(t){Object.keys(t).forEach(function(e){var r=t[e],o=r(void 0,{type:di.INIT});if(typeof o>"u")throw new Error(ft(12));if(typeof r(void 0,{type:di.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ft(13))})}function _2(t){for(var e=Object.keys(t),r={},o=0;o<e.length;o++){var a=e[o];typeof t[a]=="function"&&(r[a]=t[a])}var i=Object.keys(r),s,l;try{n3(r)}catch(f){l=f}return function(p,g){if(p===void 0&&(p={}),l)throw l;if(0)var y;for(var b=!1,S={},O=0;O<i.length;O++){var A=i[O],T=r[A],z=p[A],N=T(z,g);if(typeof N>"u"){var D=g&&g.type;throw new Error(ft(14))}S[A]=N,b=b||N!==z}return b=b||i.length!==Object.keys(p).length,b?S:p}}function mn(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.length===0?function(o){return o}:e.length===1?e[0]:e.reduce(function(o,a){return function(){return o(a.apply(void 0,arguments))}})}function k2(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(o){return function(){var a=o.apply(void 0,arguments),i=function(){throw new Error(ft(15))},s={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},l=e.map(function(f){return f(s)});return i=mn.apply(void 0,l)(a.dispatch),sl(sl({},a),{},{dispatch:i})}}}function T2(t){var e=function(o){var a=o.dispatch,i=o.getState;return function(s){return function(l){return typeof l=="function"?l(a,i,t):s(l)}}};return e}var N2=T2();N2.withExtraArgument=T2;var dl=N2;var $2=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,a){o.__proto__=a}||function(o,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(o[i]=a[i])},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 o(){this.constructor=e}e.prototype=r===null?Object.create(r):(o.prototype=r.prototype,new o)}}(),a3=function(t,e){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},o,a,i,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(p){return function(g){return f([p,g])}}function f(p){if(o)throw new TypeError("Generator is already executing.");for(;r;)try{if(o=1,a&&(i=p[0]&2?a.return:p[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,p[1])).done)return i;switch(a=0,i&&(p=[p[0]&2,i.value]),p[0]){case 0:case 1:i=p;break;case 4:return r.label++,{value:p[1],done:!1};case 5:r.label++,a=p[1],p=[0];continue;case 7:p=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(p[0]===6||p[0]===2)){r=0;continue}if(p[0]===3&&(!i||p[1]>i[0]&&p[1]<i[3])){r.label=p[1];break}if(p[0]===6&&r.label<i[1]){r.label=i[1],i=p;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(p);break}i[2]&&r.ops.pop(),r.trys.pop();continue}p=e.call(t,r)}catch(g){p=[6,g],a=0}finally{o=i=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},gn=function(t,e){for(var r=0,o=e.length,a=t.length;r<o;r++,a++)t[a]=e[r];return t},i3=Object.defineProperty,s3=Object.defineProperties,l3=Object.getOwnPropertyDescriptors,M2=Object.getOwnPropertySymbols,c3=Object.prototype.hasOwnProperty,d3=Object.prototype.propertyIsEnumerable,z2=function(t,e,r){return e in t?i3(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},Yr=function(t,e){for(var r in e||(e={}))c3.call(e,r)&&z2(t,r,e[r]);if(M2)for(var o=0,a=M2(e);o<a.length;o++){var r=a[o];d3.call(e,r)&&z2(t,r,e[r])}return t},fl=function(t,e){return s3(t,l3(e))},f3=function(t,e,r){return new Promise(function(o,a){var i=function(f){try{l(r.next(f))}catch(p){a(p)}},s=function(f){try{l(r.throw(f))}catch(p){a(p)}},l=function(f){return f.done?o(f.value):Promise.resolve(f.value).then(i,s)};l((r=r.apply(t,e)).next())})};var p3=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?mn:mn.apply(null,arguments)},xO=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function u3(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}var h3=function(t){$2(e,t);function e(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var a=t.apply(this,r)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,gn([void 0],r[0].concat(this)))):new(e.bind.apply(e,gn([void 0],r.concat(this))))},e}(Array),m3=function(t){$2(e,t);function e(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var a=t.apply(this,r)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,gn([void 0],r[0].concat(this)))):new(e.bind.apply(e,gn([void 0],r.concat(this))))},e}(Array);function hl(t){return rr(t)?ci(t,function(){}):t}function g3(t){return typeof t=="boolean"}function y3(){return function(e){return b3(e)}}function b3(t){t===void 0&&(t={});var e=t.thunk,r=e===void 0?!0:e,o=t.immutableCheck,a=o===void 0?!0:o,i=t.serializableCheck,s=i===void 0?!0:i,l=new h3;if(r&&(g3(r)?l.push(dl):l.push(dl.withExtraArgument(r.extraArgument))),0){if(a)var f;if(s)var p}return l}var pl=!0;function D2(t){var e=y3(),r=t||{},o=r.reducer,a=o===void 0?void 0:o,i=r.middleware,s=i===void 0?e():i,l=r.devTools,f=l===void 0?!0:l,p=r.preloadedState,g=p===void 0?void 0:p,y=r.enhancers,b=y===void 0?void 0:y,S;if(typeof a=="function")S=a;else if(u3(a))S=_2(a);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 O=s;if(typeof O=="function"&&(O=O(e),!pl&&!Array.isArray(O)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!pl&&O.some(function(F){return typeof F!="function"}))throw new Error("each middleware provided to configureStore must be a function");var A=k2.apply(void 0,O),T=mn;f&&(T=p3(Yr({trace:!pl},typeof f=="object"&&f)));var z=new m3(A),N=z;Array.isArray(b)?N=gn([A],b):typeof b=="function"&&(N=b(z));var D=T.apply(void 0,N);return cl(S,g,D)}function Xr(t,e){function r(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];if(e){var i=e.apply(void 0,o);if(!i)throw new Error("prepareAction did not return an object");return Yr(Yr({type:t,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:t,payload:o[0]}}return r.toString=function(){return""+t},r.type=t,r.match=function(o){return o.type===t},r}function B2(t){var e={},r=[],o,a={addCase:function(i,s){var l=typeof i=="string"?i:i.type;if(l in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[l]=s,a},addMatcher:function(i,s){return r.push({matcher:i,reducer:s}),a},addDefaultCase:function(i){return o=i,a}};return t(a),[e,r,o]}function v3(t){return typeof t=="function"}function x3(t,e,r,o){r===void 0&&(r=[]);var a=typeof e=="function"?B2(e):[e,r,o],i=a[0],s=a[1],l=a[2],f;if(v3(t))f=function(){return hl(t())};else{var p=hl(t);f=function(){return p}}function g(y,b){y===void 0&&(y=f());var S=gn([i[b.type]],s.filter(function(O){var A=O.matcher;return A(b)}).map(function(O){var A=O.reducer;return A}));return S.filter(function(O){return!!O}).length===0&&(S=[l]),S.reduce(function(O,A){if(A)if(Mr(O)){var T=O,z=A(T,b);return z===void 0?O:z}else{if(rr(O))return ci(O,function(N){return A(N,b)});var z=A(O,b);if(z===void 0){if(O===null)return O;throw Error("A case reducer on a non-draftable value must not return undefined")}return z}return O},y)}return g.getInitialState=f,g}function S3(t,e){return t+"/"+e}function F2(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:hl(t.initialState),o=t.reducers||{},a=Object.keys(o),i={},s={},l={};a.forEach(function(g){var y=o[g],b=S3(e,g),S,O;"reducer"in y?(S=y.reducer,O=y.prepare):S=y,i[g]=S,s[b]=S,l[g]=O?Xr(b,O):Xr(b)});function f(){var g=typeof t.extraReducers=="function"?B2(t.extraReducers):[t.extraReducers],y=g[0],b=y===void 0?{}:y,S=g[1],O=S===void 0?[]:S,A=g[2],T=A===void 0?void 0:A,z=Yr(Yr({},b),s);return x3(r,function(N){for(var D in z)N.addCase(D,z[D]);for(var F=0,oe=O;F<oe.length;F++){var Ce=oe[F];N.addMatcher(Ce.matcher,Ce.reducer)}T&&N.addDefaultCase(T)})}var p;return{name:e,reducer:function(g,y){return p||(p=f()),p(g,y)},actions:l,caseReducers:i,getInitialState:function(){return p||(p=f()),p.getInitialState()}}}var C3="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",O3=function(t){t===void 0&&(t=21);for(var e="",r=t;r--;)e+=C3[Math.random()*64|0];return e},L3=["name","message","stack","code"],ul=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),P2=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),E3=function(t){if(typeof t=="object"&&t!==null){for(var e={},r=0,o=L3;r<o.length;r++){var a=o[r];typeof t[a]=="string"&&(e[a]=t[a])}return e}return{message:String(t)}},LO=function(){function t(e,r,o){var a=Xr(e+"/fulfilled",function(g,y,b,S){return{payload:g,meta:fl(Yr({},S||{}),{arg:b,requestId:y,requestStatus:"fulfilled"})}}),i=Xr(e+"/pending",function(g,y,b){return{payload:void 0,meta:fl(Yr({},b||{}),{arg:y,requestId:g,requestStatus:"pending"})}}),s=Xr(e+"/rejected",function(g,y,b,S,O){return{payload:S,error:(o&&o.serializeError||E3)(g||"Rejected"),meta:fl(Yr({},O||{}),{arg:b,requestId:y,rejectedWithValue:!!S,requestStatus:"rejected",aborted:g?.name==="AbortError",condition:g?.name==="ConditionError"})}}),l=!1,f=typeof AbortController<"u"?AbortController:function(){function g(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return g.prototype.abort=function(){},g}();function p(g){return function(y,b,S){var O=o?.idGenerator?o.idGenerator(g):O3(),A=new f,T,z=!1;function N(F){T=F,A.abort()}var D=function(){return f3(this,null,function(){var F,oe,Ce,St,Ze,fr,Ye;return a3(this,function(x){switch(x.label){case 0:return x.trys.push([0,4,,5]),St=(F=o?.condition)==null?void 0:F.call(o,g,{getState:b,extra:S}),w3(St)?[4,St]:[3,2];case 1:St=x.sent(),x.label=2;case 2:if(St===!1||A.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return z=!0,Ze=new Promise(function(L,U){return A.signal.addEventListener("abort",function(){return U({name:"AbortError",message:T||"Aborted"})})}),y(i(O,g,(oe=o?.getPendingMeta)==null?void 0:oe.call(o,{requestId:O,arg:g},{getState:b,extra:S}))),[4,Promise.race([Ze,Promise.resolve(r(g,{dispatch:y,getState:b,extra:S,requestId:O,signal:A.signal,abort:N,rejectWithValue:function(L,U){return new ul(L,U)},fulfillWithValue:function(L,U){return new P2(L,U)}})).then(function(L){if(L instanceof ul)throw L;return L instanceof P2?a(L.payload,O,g,L.meta):a(L,O,g)})])];case 3:return Ce=x.sent(),[3,5];case 4:return fr=x.sent(),Ce=fr instanceof ul?s(null,O,g,fr.payload,fr.meta):s(fr,O,g),[3,5];case 5:return Ye=o&&!o.dispatchConditionRejection&&s.match(Ce)&&Ce.meta.condition,Ye||y(Ce),[2,Ce]}})})}();return Object.assign(D,{abort:N,requestId:O,arg:g,unwrap:function(){return D.then(A3)}})}}return Object.assign(p,{pending:i,rejected:s,fulfilled:a,typePrefix:e})}return t.withTypes=function(){return t},t}();function A3(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function w3(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var U2="listener",H2="completed",G2="cancelled",EO="task-"+G2,AO="task-"+H2,wO=U2+"-"+G2,RO=U2+"-"+H2;var ml="listenerMiddleware";var _O=Xr(ml+"/add"),kO=Xr(ml+"/removeAll"),TO=Xr(ml+"/remove");var I2,NO=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(I2||(I2=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},R3=function(t){return function(e){setTimeout(e,t)}},MO=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:R3(10);S2();var _3=ei(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(r,o,a){this.eventBus.addEventListener(r,o,a)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,o,a){this.eventBus.removeEventListener(r,o,a)}}}),fi=class extends _3(Object){};window.ftReduxStores||(window.ftReduxStores={});var W2=class t extends fi{static get(e){var r;let o=typeof e=="string"?e:e.name,a=typeof e=="string"?void 0:e,i=window.ftReduxStores[o];if(ai(i))return i;if(a==null)return;let s=F2({...a,reducers:(r=a.reducers)!==null&&r!==void 0?r:{}}),l=D2({reducer:(f,p)=>{if(p.type==="CLEAR_FT_REDUX_STORE"){let g=J1(s.getInitialState());for(let y of p.keeping)g[y]=(f??g)[y];return g}else if(typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...f,...p.overwrites};return s.reducer(f,p)}});return window.ftReduxStores[a.name]=new t(s,l,a.eventBus)}constructor(e,r,o){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new ti;let a=i=>i!=null?JSON.parse(JSON.stringify(i)):i;this.actions=new Proxy(this.reduxSlice.actions,{get:(i,s,l)=>{let f=s,p=i[f];return p?(...g)=>{let y=p(...g.map(a));return this.reduxStore.dispatch(y),y}:g=>{this.setState({[f]:a(g)})}}}),this.eventBus=o??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 pi=class{static format(e,r,o,a,i){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(o,a,!!i)):this.getIntlDateTime(e,r,o,a,!!i)}static getMomentDateFormat(e,r,o){return o?"LT":e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,o,a,i){let s=typeof e=="string"?new Date(e):e,l=new Intl.DateTimeFormat(r,{dateStyle:o?"medium":"short"}).format(s),f=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(s);return i?f:a?`${l} ${f}`:l}static getTimezoneAsString(){let e=o=>String(Math.floor(o)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${e(Math.abs(r)/60)}:${e(Math.abs(r)%60)}`}};var ui=h(E()),k3="ft-app-info",No=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};No.eventName="authentication-change";var T3={session:(t,e)=>{(0,ui.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>I.dispatchEvent(new No(e.payload)),0))}},I=ui.FtReduxStore.get({name:k3,reducers:T3,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],availableContentLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}});var V2=h(E()),hi=function(t,e,r,o){var a=arguments.length,i=a<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(i=(a<3?s(i):a>3?s(e,r,i):s(e,r))||i);return a>3&&i&&Object.defineProperty(e,r,i),i},sL=(0,V2.applyMixinOnce)(Symbol("withDateFormat"),function(t){class e extends t{constructor(...o){super(o),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(I)}dateFormatOptionsChanged(o){return o.has("metadataDescriptors")||o.has("useLongDateFormat")||o.has("useDateTimeFormat")||o.has("uiLocale")}getDateFormatter(o){var a,i;return((i=(a=this.metadataDescriptors.find(l=>l.key===o))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1)?l=>pi.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return hi([(0,gl.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),hi([(0,gl.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),hi([js({store:I.name,selector:r=>{var o,a;return(a=(o=r.metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&a!==void 0?a:[]}})],e.prototype,"metadataDescriptors",void 0),hi([js({store:I.name})],e.prototype,"uiLocale",void 0),e});var M3=h(K2(),1);var q2;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(q2||(q2={}));var Z2;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Z2||(Z2={}));var Y2;(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"})(Y2||(Y2={}));var X2;(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"})(X2||(X2={}));var Q2;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Q2||(Q2={}));var J2;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(J2||(J2={}));var ef;(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"})(ef||(ef={}));var tf;(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"})(tf||(tf={}));var rf;(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"})(rf||(rf={}));var of;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(of||(of={}));var nf;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(nf||(nf={}));var af;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(af||(af={}));var sf;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(sf||(sf={}));var lf;(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"})(lf||(lf={}));var cf;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(cf||(cf={}));var df;(function(t){t.ASC="ASC",t.DESC="DESC"})(df||(df={}));var ff;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(ff||(ff={}));var pf;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(pf||(pf={}));var uf;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(uf||(uf={}));var hf;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(hf||(hf={}));var mf;(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"})(mf||(mf={}));var gf;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(gf||(gf={}));var yf;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(yf||(yf={}));var bf;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(bf||(bf={}));var vf;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(vf||(vf={}));var Pe;(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"})(Pe||(Pe={}));var Wt;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(Wt||(Wt={}));var xf;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(xf||(xf={}));var Sf;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Sf||(Sf={}));var Cf;(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.OTHER="OTHER"})(Cf||(Cf={}));var 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"})(Of||(Of={}));var Lf;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Lf||(Lf={}));var Ef;(function(t){t.USER="USER",t.ASSISTANT="ASSISTANT"})(Ef||(Ef={}));var Af;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Af||(Af={}));var wf;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(wf||(wf={}));var Rf;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(Rf||(Rf={}));var N3={[Pe.PERSONAL_BOOK_SHARE_USER]:[Pe.PERSONAL_BOOK_USER],[Pe.HTML_EXPORT_USER]:[Pe.PERSONAL_BOOK_USER],[Pe.PDF_EXPORT_USER]:[Pe.PERSONAL_BOOK_USER],[Pe.KHUB_ADMIN]:[Pe.CONTENT_PUBLISHER],[Pe.ADMIN]:[Pe.KHUB_ADMIN,Pe.USERS_ADMIN,Pe.PORTAL_ADMIN,Pe.BEHAVIOR_DATA_USER],[Pe.GENERATIVE_AI_EXPORT_USER]:[Pe.GENERATIVE_AI_USER]};function _f(t,e){return t===e||(N3[t]??[]).some(r=>_f(r,e))}function kf(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(o=>_f(o,e))}var Ci=h(E());var yl=h(E());var Mo=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:o}=I.getState(),a=e??o;if(r&&a&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,a,!0)}static await(e){return new Promise(r=>{let o=t.get(e);if(o)r(o);else{let a=I.subscribe(()=>{o=t.get(e),o&&(a(),r(o))})}})}};var yi=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Mo.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Mo.await()}};var kt=class extends yi{constructor(e=!0,r){var o;super(r),this.sortObjectFields=(i,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([l],[f])=>l.localeCompare(f)));let a=this.constructor;a.commonCache=(o=a.commonCache)!==null&&o!==void 0?o:new yl.CacheRegistry,this.cache=e?a.commonCache:new yl.CacheRegistry}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((r,o)=>0|31*r+o.charCodeAt(0),0))}};var bi=class extends kt{async listMySearches(){let{session:e}=I.getState();return kf(e,Pe.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var vi=class extends kt{async listMyBookmarks(){let e=I.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var xi=class extends kt{constructor(){super(...arguments),this.CACHE_DURATION=3*60*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=I.getState().session;return!!e?.sessionAuthenticated}};var Si=class extends kt{constructor(){super(...arguments),this.CACHE_DURATION=3*60*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=I.getState().session;return!!e?.sessionAuthenticated}};var z3="ft-user-assets",P3={setAssetCount:(t,e)=>{let{userAssetType:r,count:o}=e.payload.assetCount;t.assetCounts.allAsset[r]=o},clearAssetCount:t=>{Object.values(Wt).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:o,asset:a}=e.payload;vl(t,r,[...bl(t,r),a]),Tf(t,r,1,o),Nf(t,a)},editAsset:(t,e)=>{let{assetType:r,asset:o}=e.payload;vl(t,r,bl(t,r).map(a=>a.id===o.id?o:a)),Nf(t,o)},removeAsset:(t,e)=>{let{assetType:r,mapId:o,assetId:a}=e.payload;vl(t,r,bl(t,r).filter(i=>i.id!==a)),Tf(t,r,-1,o)}},Mf={[Wt.SEARCHES]:"savedSearches",[Wt.BOOKMARKS]:"bookmarks",[Wt.BOOKS]:void 0,[Wt.COLLECTIONS]:void 0},bl=(t,e)=>{var r;let o=Mf[e];return o?(r=t[o])!==null&&r!==void 0?r:[]:[]},vl=(t,e,r)=>{let o=Mf[e];o&&(t[o]=r)},Tf=(t,e,r,o)=>{let a=t.assetCounts.allAsset[e];if(a!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,a+r),e===Wt.BOOKMARKS&&o)){let i=t.assetCounts.bookmarkByMap[o];t.assetCounts.bookmarkByMap[o]=Math.max(0,i+r)}},Nf=(t,e)=>{let r=t.assetLabels.map(a=>a.title),o=e.labels.filter(a=>!r.includes(a)).map(a=>({title:a}));t.assetLabels.push(...o)},Tt=Ci.FtReduxStore.get({name:z3,reducers:P3,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Wt).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),xl=class{constructor(e=new xi,r=new Si){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=I.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new vi,this.savedSearchesService=new bi,I.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=I.getState();(0,Ci.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(),Tt.actions.clearAssetCount(),Tt.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Tt.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Tt.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Tt.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();Tt.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&Tt.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&Tt.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(Tt.getState().assetCounts.bookmarkByMap).length!==0;e===Wt.BOOKMARKS&&r&&Tt.actions.clearBookmarkCountByMap(),Tt.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;Tt.actions.bookmarks(r)}}},I3=new xl;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=I3);var Sl=class{addCommand(e,r=!1){I.commands.add(e,r)}consumeCommand(e){return I.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Sl;var Vt=h(E());var zf,bn=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},$3=Symbol("clearAfterUnitTest"),Oi=class extends(0,Vt.withEventBus)(kt){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[zf]=()=>{this.defaultMessages={},this.cache=new Vt.CacheRegistry,this.listeners={}},this.currentUiLocale=I.getState().uiLocale,I.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=I.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 o;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let a={...(o=this.defaultMessages[e])!==null&&o!==void 0?o:{},...r};(0,Vt.deepEqual)(this.defaultMessages[e],a)||(this.defaultMessages[e]=a,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,o;return this.fetchContext(e),(o=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&o!==void 0?o:{}}resolveRawMessage(e,r){let o=e.toLowerCase();return this.resolveContext(o)[r]}resolveMessage(e,r,...o){var a;let i=e.toLowerCase(),s=this.resolveContext(i);return new Vt.ParametrizedLabelResolver((a=this.defaultMessages[i])!==null&&a!==void 0?a:{},s).resolve(r,...o)}async fetchContext(e){let r=!this.cache.has(e),o;try{o=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(a){!(a instanceof Vt.CanceledPromiseError)&&r&&console.error(a)}return o}subscribe(e,r){var o;return e=e.toLowerCase(),this.listeners[e]=(o=this.listeners[e])!==null&&o!==void 0?o:new Set,this.listeners[e].add(r),()=>{var a;return(a=this.listeners[e])===null||a===void 0?void 0:a.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new bn({loadedContexts:e})),this.dispatchEvent(new bn({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new bn({loadedContexts:[e]})),this.dispatchEvent(new bn({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(o=>(0,Vt.delay)(0).then(()=>o()).catch(()=>null)))}};zf=$3;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Oi{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Oi{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var oa=window.FluidTopicsI18nService,Cl=window.FluidTopicsCustomI18nService;var Pf=h(E()),Ol=class{highlightHtml(e,r,o){(0,Pf.highlightHtml)(e,r,o)}};window.FluidTopicsHighlightHtmlService=new Ol;var If=h(E());var Ll=class{isDate(e){var r,o,a,i;return(i=(a=((o=(r=I.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&o!==void 0?o:[]).find(l=>l.key===e))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1}format(e,r){var o,a,i,s;if(e==null)return"";try{return If.DateFormatter.format(e,(o=r?.locale)!==null&&o!==void 0?o:I.getState().uiLocale,(a=r?.longFormat)!==null&&a!==void 0?a:!1,(i=r?.withTime)!==null&&i!==void 0?i:!1,(s=r?.onlyTime)!==null&&s!==void 0?s:!1)}catch(l){throw console.error(`Date ${JSON.stringify(e)} is not valid`,l),l}}};window.FluidTopicsDateService=new Ll;var $f=h(E());var na=class{static get(e,r){var o,a;let i=I.getState(),{lang:s,region:l}=(a=(o=i.defaultLocales)===null||o===void 0?void 0:o.defaultContentLocale)!==null&&a!==void 0?a:{lang:"en",region:"US"};return new $f.SearchPlaceConverter(i.baseUrl,e??20,i.searchInAllLanguagesAllowed,r??`${s}-${l}`)}};var El=class{urlToSearchRequest(e){return na.get().parse(e)}searchRequestToUrl(e){return na.get().serialize(e)}};window.FluidTopicsUrlService=new El;var Jr=h(E());var zo=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};zo.eventName="change";var Al=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))}},Df=new Al;var Li=class t extends Jr.WithEventBus{static build(){return new t(window.history,Df,()=>window.location,!1)}constructor(e,r,o,a){var i,s;super(),this.history=e,this.historyStorage=r,this.windowLocation=o,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(i=e.state)===null||i===void 0?void 0:i.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(a)}setCurrentState(e,r=!1){let o=r&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,o&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,Jr.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new zo(this.currentItem())),0)}installProxies(){let e=r=>(o,a,[i,s,l])=>{let f=r(),p={...f===this.currentIndex?this.currentState:void 0,...i,index:f,href:typeof l=="string"?l:(l??this.windowLocation()).href};o.apply(a,[p,s,l]),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 o={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(o)}addHistoryChangeListener(e){this.addEventListener(zo.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(zo.eventName,e)}currentItem(){return(0,Jr.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,Jr.deepCopy)(this.states[this.previousDifferentMajorPosition()])}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,Jr.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 o=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!o)return e;let a=e,i=e+1;for(;this.states.length>i&&!this.isDifferentMajorState(i,o);)this.hasState(i)&&(a=i),i++;return a}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 o;if(!this.hasState(e))return!1;let a=r??this.currentState.majorStateId,i=(o=this.states[e])===null||o===void 0?void 0:o.majorStateId;return i==null||i!=a}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Li.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t)});var Bf=h(k());var Ff=Bf.css`
628
628
  `;var Hf=h(k()),et=h(q()),or=h(E());function Uf(t,e){let{authenticationRequired:r,session:o}=I.getState();return r&&!o?.sessionAuthenticated?Promise.resolve(e):t()}var We=function(t,e,r,o){var a=arguments.length,i=a<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(i=(a<3?s(i):a>3?s(e,r,i):s(e,r))||i);return a>3&&i&&Object.defineProperty(e,r,i),i},ye=class extends or.FtLitElement{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.apiProvider=()=>Mo.get(),this.authenticationRequired=!1,this.messageContexts=[],this.cache=new or.CacheRegistry,this.cleanSessionDebouncer=new or.Debouncer,this.reloadConfiguration=()=>{this.cache.clear("availableContentLocales"),this.updateAvailableContentLocales()}}render(){return Hf.html`
629
629
  <slot></slot>
630
630
  `}connectedCallback(){super.connectedCallback(),I.addEventListener(No.eventName,this.reloadConfiguration)}disconnectedCallback(){I.addEventListener(No.eventName,this.reloadConfiguration),super.disconnectedCallback()}update(e){var r,o,a,i,s,l,f;super.update(e),e.has("baseUrl")&&(I.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&I.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&I.actions.apiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&I.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&I.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&I.actions.noCustom(this.noCustom),e.has("editorMode")&&I.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&I.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&I.actions.session(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(p=>oa.addContext(p)),e.has("openExternalDocumentInNewTab")&&I.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&I.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&I.actions.forcedOffline(this.forcedOffline),e.has("localesConfiguration")&&(I.actions.defaultLocales((r=this.localesConfiguration)===null||r===void 0?void 0:r.defaultLocales),I.actions.availableUiLocales((a=(o=this.localesConfiguration)===null||o===void 0?void 0:o.availableUiLocales)!==null&&a!==void 0?a:[]),I.actions.searchInAllLanguagesAllowed((s=(i=this.localesConfiguration)===null||i===void 0?void 0:i.allLanguagesAllowed)!==null&&s!==void 0?s:!1)),e.has("authenticationRequired")&&I.actions.authenticationRequired(this.authenticationRequired),e.has("availableContentLocales")&&I.actions.availableContentLocales((f=(l=this.availableContentLocales)===null||l===void 0?void 0:l.contentLocales)!==null&&f!==void 0?f:[]),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration(),this.availableContentLocales==null&&this.updateAvailableContentLocales())}async updateSession(){this.session=await this.cache.get("session",async()=>{let e=await this.apiProvider().getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},e.idleTimeoutInMillis),e})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}async updateAvailableContentLocales(){this.availableContentLocales=await this.cache.get("availableContentLocales",()=>Uf(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}))}};ye.elementDefinitions={};ye.styles=Ff;We([(0,et.property)()],ye.prototype,"baseUrl",void 0);We([(0,et.property)()],ye.prototype,"apiIntegrationIdentifier",void 0);We([(0,et.property)()],ye.prototype,"apiIntegrationAppVersion",void 0);We([(0,et.property)()],ye.prototype,"uiLocale",void 0);We([(0,or.jsonProperty)(null)],ye.prototype,"availableUiLocales",void 0);We([(0,or.jsonProperty)(null)],ye.prototype,"metadataConfiguration",void 0);We([(0,et.property)({type:Boolean})],ye.prototype,"editorMode",void 0);We([(0,et.property)({type:Boolean})],ye.prototype,"noCustom",void 0);We([(0,et.property)({type:Boolean})],ye.prototype,"openExternalDocumentInNewTab",void 0);We([(0,et.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],ye.prototype,"noCustomComponent",void 0);We([(0,et.property)({type:Boolean})],ye.prototype,"withManualResources",void 0);We([(0,et.property)({type:Boolean})],ye.prototype,"navigatorOnline",void 0);We([(0,et.property)({type:Boolean})],ye.prototype,"forcedOffline",void 0);We([(0,et.property)({type:Object})],ye.prototype,"apiProvider",void 0);We([(0,et.property)({type:Boolean})],ye.prototype,"authenticationRequired",void 0);We([(0,or.jsonProperty)([])],ye.prototype,"messageContexts",void 0);We([(0,or.jsonProperty)(void 0)],ye.prototype,"session",void 0);We([(0,et.state)()],ye.prototype,"localesConfiguration",void 0);We([(0,et.state)()],ye.prototype,"availableContentLocales",void 0);var Gf=h(E());(0,Gf.customElement)("ft-app-context")(ye);var Wf=h(q());var 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,o]=e.split(".");return{context:r,key:o,custom:r!=="officialContext",message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},vn=new wl;var D3=function(t,e,r,o){var a=arguments.length,i=a<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(i=(a<3?s(i):a>3?s(e,r,i):s(e,r))||i);return a>3&&i&&Object.defineProperty(e,r,i),i},ia=Symbol("i18nAttributes"),Vf=Symbol("i18nListAttributes"),jf=Symbol("i18nProperties"),Ei=Symbol("i18nContexts"),aa=Symbol("i18nUnsubs"),Ri=(0,xn.applyMixinOnce)(Symbol("withI18n"),function(t){var e,r;class o extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[r]=new Map}getI18nService(i){return i??this.useCustomMessageContexts?Cl:oa}i18n(i){let{context:s,key:l,message:f}=i,{custom:p,args:g,argsProvider:y}=i;if(s&&l){this.hasI18nContext(s)||this.addI18nContext(s,void 0,p);let b=g??(y?y(this):[]);return this.getI18nService(p).resolveMessage(s,l,...b)}return f}async awaitI18n(i){let{context:s,custom:l}=i;return s&&await this.getI18nService(l).prepareContext(s),this.i18n(i)}customI18n(i,s){if(vn.isI18nKey(i)){let[l,f]=i.split(".");return this.i18n({custom:!0,context:l,key:f,...s})||i}return i}firstUpdated(i){super.firstUpdated(i),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(i){super.update(i),this.updateI18nAttributes((s,l,f)=>i.has(l)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(i){this.updateI18nAttributes((s,l,f)=>{var p;return((p=f?.context)===null||p===void 0?void 0:p.toLowerCase())===i}),this.updateI18nProperties(s=>s.context.toLowerCase()===i),this.requestUpdate()}updateI18nAttributes(i){var s,l;let f=this,p=(g,y,b)=>b?.context&&b.key&&i(g,y,b)?{...b,message:this.i18n({context:b.context,key:b.key,custom:b.custom,...g})}:b;(s=this[ia])===null||s===void 0||s.forEach((g,y)=>f[y]=p(g,y,f[y])),(l=this[Vf])===null||l===void 0||l.forEach((g,y)=>{var b;return f[y]=(b=f[y])===null||b===void 0?void 0:b.map(S=>p(g,y,S))})}updateI18nProperties(i){var s;(s=this[jf])===null||s===void 0||s.forEach((l,f)=>{i(l,f)&&(this[f]=this.i18n(l))})}addI18nMessages(i,s,l){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(i,s,l)}addI18nContext(i,s,l){let f=(typeof i=="string"?i:i.name).toLowerCase();l=typeof i=="string"?l:i.custom,this[Ei].set(f,{isCustomContext:l}),this[aa].has(f)||this[aa].set(f,this.getI18nService(l).subscribe(f,()=>this.onI18nUpdate(f))),this.getI18nService(l).prepareContext(f,s)}hasI18nContext(i){return this[Ei].has(i.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Ei].forEach((i,s)=>this.addI18nContext(s,void 0,i.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[aa].forEach(i=>i()),this[aa].clear()}}return e=Ei,r=aa,D3([(0,Wf.property)({type:Boolean})],o.prototype,"useCustomMessageContexts",void 0),o}),Ai=class extends Ri(xn.FtLitElement){},wi=class extends Ri(xn.FtLitElementRedux){};var Kf=h(E());var Rl=class{fromAttribute(e){if(!e)return[];try{let r=JSON.parse(e);return Array.isArray(r)?r.map(o=>typeof o=="string"?vn.fromAttribute(o):o):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},B3=new Rl;var qf=(t,e)=>(r,o)=>{var a;r.constructor.createProperty(o,{type:Object,hasChanged:Kf.hasChanged,converter:vn,...e}),r[ia]=(a=r[ia])!==null&&a!==void 0?a:new Map,r[ia].set(o,t??{})};var Zf=h(k());var Yf=Zf.css`
@@ -45,7 +45,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
45
45
  input::-webkit-search-results-decoration {
46
46
  display: none;
47
47
  }
48
- `;var Mf={};var cl={};ne(cl,{ParametrizedLabelResolver:()=>Nr});var Nr=class t{constructor(e,r){this.defaultLabels=e,this.labels=r}resolve(e,...r){var o,i;e=this.resolvePluralKey(e,r);let a=(i=(o=this.labels[e])!==null&&o!==void 0?o:this.defaultLabels[e])!==null&&i!==void 0?i:"";return t.replaceParameters(a,...r)}static replaceParameters(e,...r){return r.forEach((o,i)=>e=e.replace(new RegExp(`\\{${i}([^}]*)\\}`,"g"),(a,s)=>t.formatValue(o,s))),e}resolvePluralKey(e,r){for(let o of r)if(typeof o=="number"){let i=`${String(e)}[\\=${o}]`;if(i in this.labels||i in this.defaultLabels)return i}return e}static formatValue(e,r){return e instanceof Date?t.formatDate(e,r):e??""}static formatDate(e,r){let o=i=>r?.includes("date")?e.toLocaleDateString(i):r?.includes("time")?e.toLocaleTimeString(i):e.toLocaleString(i);try{return o(document.documentElement.lang)}catch{return o()}}};var Pl={};ne(Pl,{FtCommandQueue:()=>Hn,FtLitElementRedux:()=>Wn,FtReduxStore:()=>bo,FtStateManager:()=>Nl,ReduxWatcher:()=>qi,clearAllStores:()=>c3,isFtReduxStore:()=>Vo,redux:()=>Wo,reduxEventListener:()=>Ah,reduxReactive:()=>Lh,watch:()=>d3,withRedux:()=>Nf});var Lh=()=>(t,e)=>{var r;let o=t.constructor;o.reduxReactiveProperties=new Set(o.reduxReactiveProperties),(r=o.reduxReactiveProperties)===null||r===void 0||r.add(e)},Wo=t=>{let e=t??{};return(r,o)=>{var i;let a={hasChanged:Ut,attribute:!1,...e};g(a)(r,o);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(o,{selector:(i=e.selector)!==null&&i!==void 0?i:l=>l[o],store:e.store})}},Ah=t=>(e,r)=>{let o=e.constructor;o.reduxEventListeners=new Map(o.reduxEventListeners),o.reduxEventListeners.set(r,t)};var Hn=class{constructor(){this.queue=[]}add(e,r=!1){r&&this.clear(e.type),this.queue.push(e)}consume(e){let r=this.queue.find(o=>o.type===e);return r&&(this.queue=this.queue.filter(o=>o!==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))}};function Vo(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Gn=Symbol("internalReduxEventsUnsubscribers"),Pr=Symbol("internalStoresUnsubscribers"),mo=Symbol("internalStores"),Nf=Ze(Symbol("withRedux"),function(t){var e,r,o;class i extends t{constructor(){super(...arguments),this[e]=new Map,this[r]=new Map,this[o]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(l=>s.has(l))&&this.updateFromStores()}getUnnamedStore(){if(this[mo].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[mo].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[mo].get(s)}addStore(s,l){var d;l=(d=l??s.name)!==null&&d!==void 0?d:"default-store",this.unsubscribeFromStore(l),this[mo].set(l,s),this.subscribeToStore(l,s),this.updateFromStores()}removeStore(s){let l=typeof s=="string"?s:s.name;this.unsubscribeFromStore(l),this[mo].delete(l)}setupStores(){this.unsubscribeFromStores(),this[mo].forEach((s,l)=>this.subscribeToStore(l,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,l)=>{let d=this.constructor.getPropertyOptions(l);if(!d?.attribute||!this.hasAttribute(typeof d?.attribute=="string"?d.attribute:l)){let f=this.getStore(s.store);f&&(s.store?this[Pr].has(s.store):this[Pr].size>0)&&(this[l]=s.selector(f.getState(),this))}})}subscribeToStore(s,l){var d;this[Pr].set(s,l.subscribe(()=>this.updateFromStores())),this[Gn].set(s,[]),Vo(l)&&l.eventBus&&((d=this.reduxConstructor.reduxEventListeners)===null||d===void 0||d.forEach((f,u)=>{if(typeof this[u]=="function"&&(!f.store||l.name===f.store)){let h=y=>this[u](y);l.addEventListener(f.eventName,h),this[Gn].get(s).push(()=>l.removeEventListener(f.eventName,h))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[Pr].forEach((s,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(s){var l;this[Pr].has(s)&&this[Pr].get(s)(),this[Pr].delete(s),(l=this[Gn].get(s))===null||l===void 0||l.forEach(d=>d()),this[Gn].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=Pr,r=mo,o=Gn,i.reduxProperties=new Map,i.reduxReactiveProperties=new Set,i.reduxEventListeners=new Map,i}),Wn=class extends Nf(F){};function Tt(t){for(var e=arguments.length,r=Array(e>1?e-1:0),o=1;o<e;o++)r[o-1]=arguments[o];if(0)var i,a;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 yr(t){return!!t&&!!t[Le]}function Wt(t){var e;return!!t&&(function(r){if(!r||typeof r!="object")return!1;var o=Object.getPrototypeOf(r);if(o===null)return!0;var i=Object.hasOwnProperty.call(o,"constructor")&&o.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===Ph}(t)||Array.isArray(t)||!!t[Ff]||!!(!((e=t.constructor)===null||e===void 0)&&e[Ff])||bl(t)||vl(t))}function go(t,e,r){r===void 0&&(r=!1),qo(t)===0?(r?Object.keys:Ko)(t).forEach(function(o){r&&typeof o=="symbol"||e(o,t[o],t)}):t.forEach(function(o,i){return e(i,o,t)})}function qo(t){var e=t[Le];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:bl(t)?2:vl(t)?3:0}function jo(t,e){return qo(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function wh(t,e){return qo(t)===2?t.get(e):t[e]}function Uf(t,e,r){var o=qo(t);o===2?t.set(e,r):o===3?t.add(r):t[e]=r}function Hf(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function bl(t){return Mh&&t instanceof Map}function vl(t){return Nh&&t instanceof Set}function Ir(t){return t.o||t.t}function xl(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Vf(t);delete e[Le];for(var r=Ko(e),o=0;o<r.length;o++){var i=r[o],a=e[i];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:t[i]})}return Object.create(Object.getPrototypeOf(t),e)}function Sl(t,e){return e===void 0&&(e=!1),Cl(t)||yr(t)||!Wt(t)||(qo(t)>1&&(t.set=t.add=t.clear=t.delete=Rh),Object.freeze(t),e&&go(t,function(r,o){return Sl(o,!0)},!0)),t}function Rh(){Tt(2)}function Cl(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function rr(t){var e=yl[t];return e||Tt(18,t),e}function _h(t,e){yl[t]||(yl[t]=e)}function hl(){return jn}function dl(t,e){e&&(rr("Patches"),t.u=[],t.s=[],t.v=e)}function Gi(t){ml(t),t.p.forEach(kh),t.p=null}function ml(t){t===jn&&(jn=t.l)}function Pf(t){return jn={p:[],l:jn,h:t,m:!0,_:0}}function kh(t){var e=t[Le];e.i===0||e.i===1?e.j():e.g=!0}function fl(t,e){e._=e.p.length;var r=e.p[0],o=t!==void 0&&t!==r;return e.h.O||rr("ES5").S(e,t,o),o?(r[Le].P&&(Gi(e),Tt(4)),Wt(t)&&(t=Wi(e,t),e.l||Vi(e,t)),e.u&&rr("Patches").M(r[Le].t,t,e.u,e.s)):t=Wi(e,r,[]),Gi(e),e.u&&e.v(e.u,e.s),t!==Wf?t:void 0}function Wi(t,e,r){if(Cl(e))return e;var o=e[Le];if(!o)return go(e,function(l,d){return If(t,o,e,l,d,r)},!0),e;if(o.A!==t)return e;if(!o.P)return Vi(t,o.t,!0),o.t;if(!o.I){o.I=!0,o.A._--;var i=o.i===4||o.i===5?o.o=xl(o.k):o.o,a=i,s=!1;o.i===3&&(a=new Set(i),i.clear(),s=!0),go(a,function(l,d){return If(t,o,i,l,d,r,s)}),Vi(t,i,!1),r&&t.u&&rr("Patches").N(o,r,t.u,t.s)}return o.o}function If(t,e,r,o,i,a,s){if(yr(i)){var l=Wi(t,i,a&&e&&e.i!==3&&!jo(e.R,o)?a.concat(o):void 0);if(Uf(r,o,l),!yr(l))return;t.m=!1}else s&&r.add(i);if(Wt(i)&&!Cl(i)){if(!t.h.D&&t._<1)return;Wi(t,i),e&&e.A.l||Vi(t,i)}}function Vi(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&Sl(e,r)}function pl(t,e){var r=t[Le];return(r?Ir(r):t)[e]}function zf(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var o=Object.getOwnPropertyDescriptor(r,e);if(o)return o;r=Object.getPrototypeOf(r)}}function zr(t){t.P||(t.P=!0,t.l&&zr(t.l))}function ul(t){t.o||(t.o=xl(t.t))}function gl(t,e,r){var o=bl(e)?rr("MapSet").F(e,r):vl(e)?rr("MapSet").T(e,r):t.O?function(i,a){var s=Array.isArray(i),l={i:s?1:0,A:a?a.A:hl(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},d=l,f=Kn;s&&(d=[l],f=Vn);var u=Proxy.revocable(d,f),h=u.revoke,y=u.proxy;return l.k=y,l.j=h,y}(e,r):rr("ES5").J(e,r);return(r?r.A:hl()).p.push(o),o}function Th(t){return yr(t)||Tt(22,t),function e(r){if(!Wt(r))return r;var o,i=r[Le],a=qo(r);if(i){if(!i.P&&(i.i<4||!rr("ES5").K(i)))return i.t;i.I=!0,o=$f(r,a),i.I=!1}else o=$f(r,a);return go(o,function(s,l){i&&wh(i.t,s)===l||Uf(o,s,e(l))}),a===3?new Set(o):o}(t)}function $f(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return xl(t)}function Gf(){function t(s,l){var d=a[s];return d?d.enumerable=l:a[s]=d={configurable:!0,enumerable:l,get:function(){var f=this[Le];return Kn.get(f,s)},set:function(f){var u=this[Le];Kn.set(u,s,f)}},d}function e(s){for(var l=s.length-1;l>=0;l--){var d=s[l][Le];if(!d.P)switch(d.i){case 5:o(d)&&zr(d);break;case 4:r(d)&&zr(d)}}}function r(s){for(var l=s.t,d=s.k,f=Ko(d),u=f.length-1;u>=0;u--){var h=f[u];if(h!==Le){var y=l[h];if(y===void 0&&!jo(l,h))return!0;var C=d[h],E=C&&C[Le];if(E?E.t!==y:!Hf(C,y))return!0}}var R=!!l[Le];return f.length!==Ko(l).length+(R?0:1)}function o(s){var l=s.k;if(l.length!==s.t.length)return!0;var d=Object.getOwnPropertyDescriptor(l,l.length-1);if(d&&!d.get)return!0;for(var f=0;f<l.length;f++)if(!l.hasOwnProperty(f))return!0;return!1}function i(s){s.g&&Tt(3,JSON.stringify(Ir(s)))}var a={};_h("ES5",{J:function(s,l){var d=Array.isArray(s),f=function(h,y){if(h){for(var C=Array(y.length),E=0;E<y.length;E++)Object.defineProperty(C,""+E,t(E,!0));return C}var R=Vf(y);delete R[Le];for(var N=Ko(R),I=0;I<N.length;I++){var $=N[I];R[$]=t($,h||!!R[$].enumerable)}return Object.create(Object.getPrototypeOf(y),R)}(d,s),u={i:d?5:4,A:l?l.A:hl(),P:!1,I:!1,R:{},l,t:s,k:f,o:null,g:!1,C:!1};return Object.defineProperty(f,Le,{value:u,writable:!0}),f},S:function(s,l,d){d?yr(l)&&l[Le].A===s&&e(s.p):(s.u&&function f(u){if(u&&typeof u=="object"){var h=u[Le];if(h){var y=h.t,C=h.k,E=h.R,R=h.i;if(R===4)go(C,function(L){L!==Le&&(y[L]!==void 0||jo(y,L)?E[L]||f(C[L]):(E[L]=!0,zr(h)))}),go(y,function(L){C[L]!==void 0||jo(C,L)||(E[L]=!1,zr(h))});else if(R===5){if(o(h)&&(zr(h),E.length=!0),C.length<y.length)for(var N=C.length;N<y.length;N++)E[N]=!1;else for(var I=y.length;I<C.length;I++)E[I]=!0;for(var $=Math.min(C.length,y.length),A=0;A<$;A++)C.hasOwnProperty(A)||(E[A]=!0),E[A]===void 0&&f(C[A])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?r(s):o(s)}})}var Df,jn,Ol=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Mh=typeof Map<"u",Nh=typeof Set<"u",Bf=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Wf=Ol?Symbol.for("immer-nothing"):((Df={})["immer-nothing"]=!0,Df),Ff=Ol?Symbol.for("immer-draftable"):"__$immer_draftable",Le=Ol?Symbol.for("immer-state"):"__$immer_state";var Ph=""+Object.prototype.constructor,Ko=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Vf=Object.getOwnPropertyDescriptors||function(t){var e={};return Ko(t).forEach(function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)}),e},yl={},Kn={get:function(t,e){if(e===Le)return t;var r=Ir(t);if(!jo(r,e))return function(i,a,s){var l,d=zf(a,s);return d?"value"in d?d.value:(l=d.get)===null||l===void 0?void 0:l.call(i.k):void 0}(t,r,e);var o=r[e];return t.I||!Wt(o)?o:o===pl(t.t,e)?(ul(t),t.o[e]=gl(t.A.h,o,t)):o},has:function(t,e){return e in Ir(t)},ownKeys:function(t){return Reflect.ownKeys(Ir(t))},set:function(t,e,r){var o=zf(Ir(t),e);if(o?.set)return o.set.call(t.k,r),!0;if(!t.P){var i=pl(Ir(t),e),a=i?.[Le];if(a&&a.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(Hf(r,i)&&(r!==void 0||jo(t.t,e)))return!0;ul(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 pl(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,ul(t),zr(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=Ir(t),o=Reflect.getOwnPropertyDescriptor(r,e);return o&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:o.enumerable,value:r[e]}},defineProperty:function(){Tt(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Tt(12)}},Vn={};go(Kn,function(t,e){Vn[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),Vn.deleteProperty=function(t,e){return Vn.set.call(this,t,e,void 0)},Vn.set=function(t,e,r){return Kn.set.call(this,t[0],e,r,t[0])};var Ih=function(){function t(r){var o=this;this.O=Bf,this.D=!0,this.produce=function(i,a,s){if(typeof i=="function"&&typeof a!="function"){var l=a;a=i;var d=o;return function(R){var N=this;R===void 0&&(R=l);for(var I=arguments.length,$=Array(I>1?I-1:0),A=1;A<I;A++)$[A-1]=arguments[A];return d.produce(R,function(L){var k;return(k=a).call.apply(k,[N,L].concat($))})}}var f;if(typeof a!="function"&&Tt(6),s!==void 0&&typeof s!="function"&&Tt(7),Wt(i)){var u=Pf(o),h=gl(o,i,void 0),y=!0;try{f=a(h),y=!1}finally{y?Gi(u):ml(u)}return typeof Promise<"u"&&f instanceof Promise?f.then(function(R){return dl(u,s),fl(R,u)},function(R){throw Gi(u),R}):(dl(u,s),fl(f,u))}if(!i||typeof i!="object"){if((f=a(i))===void 0&&(f=i),f===Wf&&(f=void 0),o.D&&Sl(f,!0),s){var C=[],E=[];rr("Patches").M(i,f,C,E),s(C,E)}return f}Tt(21,i)},this.produceWithPatches=function(i,a){if(typeof i=="function")return function(f){for(var u=arguments.length,h=Array(u>1?u-1:0),y=1;y<u;y++)h[y-1]=arguments[y];return o.produceWithPatches(f,function(C){return i.apply(void 0,[C].concat(h))})};var s,l,d=o.produce(i,a,function(f,u){s=f,l=u});return typeof Promise<"u"&&d instanceof Promise?d.then(function(f){return[f,s,l]}):[d,s,l]},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){Wt(r)||Tt(8),yr(r)&&(r=Th(r));var o=Pf(this),i=gl(this,r,void 0);return i[Le].C=!0,ml(o),i},e.finishDraft=function(r,o){var i=r&&r[Le],a=i.A;return dl(a,o),fl(void 0,a)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!Bf&&Tt(20),this.O=r},e.applyPatches=function(r,o){var i;for(i=o.length-1;i>=0;i--){var a=o[i];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}i>-1&&(o=o.slice(i+1));var s=rr("Patches").$;return yr(r)?s(r,o):this.produce(r,function(l){return s(l,o)})},t}(),vt=new Ih,zh=vt.produce,uC=vt.produceWithPatches.bind(vt),hC=vt.setAutoFreeze.bind(vt),mC=vt.setUseProxies.bind(vt),gC=vt.applyPatches.bind(vt),yC=vt.createDraft.bind(vt),bC=vt.finishDraft.bind(vt),ji=zh;function yo(t){"@babel/helpers - typeof";return yo=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},yo(t)}function jf(t,e){if(yo(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var o=r.call(t,e||"default");if(yo(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Kf(t){var e=jf(t,"string");return yo(e)=="symbol"?e:e+""}function qf(t,e,r){return(e=Kf(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Zf(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,o)}return r}function El(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Zf(Object(r),!0).forEach(function(o){qf(t,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Zf(Object(r)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(r,o))})}return t}function it(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var Yf=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Ll=function(){return Math.random().toString(36).substring(7).split("").join(".")},Ki={INIT:"@@redux/INIT"+Ll(),REPLACE:"@@redux/REPLACE"+Ll(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Ll()}};function $h(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 Al(t,e,r){var o;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(it(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(it(1));return r(Al)(t,e)}if(typeof t!="function")throw new Error(it(2));var i=t,a=e,s=[],l=s,d=!1;function f(){l===s&&(l=s.slice())}function u(){if(d)throw new Error(it(3));return a}function h(R){if(typeof R!="function")throw new Error(it(4));if(d)throw new Error(it(5));var N=!0;return f(),l.push(R),function(){if(N){if(d)throw new Error(it(6));N=!1,f();var $=l.indexOf(R);l.splice($,1),s=null}}}function y(R){if(!$h(R))throw new Error(it(7));if(typeof R.type>"u")throw new Error(it(8));if(d)throw new Error(it(9));try{d=!0,a=i(a,R)}finally{d=!1}for(var N=s=l,I=0;I<N.length;I++){var $=N[I];$()}return R}function C(R){if(typeof R!="function")throw new Error(it(10));i=R,y({type:Ki.REPLACE})}function E(){var R,N=h;return R={subscribe:function($){if(typeof $!="object"||$===null)throw new Error(it(11));function A(){$.next&&$.next(u())}A();var L=N(A);return{unsubscribe:L}}},R[Yf]=function(){return this},R}return y({type:Ki.INIT}),o={dispatch:y,subscribe:h,getState:u,replaceReducer:C},o[Yf]=E,o}function Dh(t){Object.keys(t).forEach(function(e){var r=t[e],o=r(void 0,{type:Ki.INIT});if(typeof o>"u")throw new Error(it(12));if(typeof r(void 0,{type:Ki.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(it(13))})}function Xf(t){for(var e=Object.keys(t),r={},o=0;o<e.length;o++){var i=e[o];typeof t[i]=="function"&&(r[i]=t[i])}var a=Object.keys(r),s,l;try{Dh(r)}catch(d){l=d}return function(f,u){if(f===void 0&&(f={}),l)throw l;if(0)var h;for(var y=!1,C={},E=0;E<a.length;E++){var R=a[E],N=r[R],I=f[R],$=N(I,u);if(typeof $>"u"){var A=u&&u.type;throw new Error(it(14))}C[R]=$,y=y||$!==I}return y=y||a.length!==Object.keys(f).length,y?C:f}}function Zo(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.length===0?function(o){return o}:e.length===1?e[0]:e.reduce(function(o,i){return function(){return o(i.apply(void 0,arguments))}})}function Qf(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(o){return function(){var i=o.apply(void 0,arguments),a=function(){throw new Error(it(15))},s={getState:i.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=e.map(function(d){return d(s)});return a=Zo.apply(void 0,l)(i.dispatch),El(El({},i),{},{dispatch:a})}}}function Jf(t){var e=function(o){var i=o.dispatch,a=o.getState;return function(s){return function(l){return typeof l=="function"?l(i,a,t):s(l)}}};return e}var ep=Jf();ep.withExtraArgument=Jf;var wl=ep;var ip=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,i){o.__proto__=i}||function(o,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(o[a]=i[a])},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 o(){this.constructor=e}e.prototype=r===null?Object.create(r):(o.prototype=r.prototype,new o)}}(),Bh=function(t,e){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,i,a,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(f){return function(u){return d([f,u])}}function d(f){if(o)throw new TypeError("Generator is already executing.");for(;r;)try{if(o=1,i&&(a=f[0]&2?i.return:f[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,f[1])).done)return a;switch(i=0,a&&(f=[f[0]&2,a.value]),f[0]){case 0:case 1:a=f;break;case 4:return r.label++,{value:f[1],done:!1};case 5:r.label++,i=f[1],f=[0];continue;case 7:f=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(f[0]===6||f[0]===2)){r=0;continue}if(f[0]===3&&(!a||f[1]>a[0]&&f[1]<a[3])){r.label=f[1];break}if(f[0]===6&&r.label<a[1]){r.label=a[1],a=f;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(f);break}a[2]&&r.ops.pop(),r.trys.pop();continue}f=e.call(t,r)}catch(u){f=[6,u],i=0}finally{o=a=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},Yo=function(t,e){for(var r=0,o=e.length,i=t.length;r<o;r++,i++)t[i]=e[r];return t},Fh=Object.defineProperty,Uh=Object.defineProperties,Hh=Object.getOwnPropertyDescriptors,tp=Object.getOwnPropertySymbols,Gh=Object.prototype.hasOwnProperty,Wh=Object.prototype.propertyIsEnumerable,rp=function(t,e,r){return e in t?Fh(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},$r=function(t,e){for(var r in e||(e={}))Gh.call(e,r)&&rp(t,r,e[r]);if(tp)for(var o=0,i=tp(e);o<i.length;o++){var r=i[o];Wh.call(e,r)&&rp(t,r,e[r])}return t},Rl=function(t,e){return Uh(t,Hh(e))},Vh=function(t,e,r){return new Promise(function(o,i){var a=function(d){try{l(r.next(d))}catch(f){i(f)}},s=function(d){try{l(r.throw(d))}catch(f){i(f)}},l=function(d){return d.done?o(d.value):Promise.resolve(d.value).then(a,s)};l((r=r.apply(t,e)).next())})};var jh=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Zo:Zo.apply(null,arguments)},zC=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function Kh(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}var qh=function(t){ip(e,t);function e(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var i=t.apply(this,r)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,Yo([void 0],r[0].concat(this)))):new(e.bind.apply(e,Yo([void 0],r.concat(this))))},e}(Array),Zh=function(t){ip(e,t);function e(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var i=t.apply(this,r)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,Yo([void 0],r[0].concat(this)))):new(e.bind.apply(e,Yo([void 0],r.concat(this))))},e}(Array);function Tl(t){return Wt(t)?ji(t,function(){}):t}function Yh(t){return typeof t=="boolean"}function Xh(){return function(e){return Qh(e)}}function Qh(t){t===void 0&&(t={});var e=t.thunk,r=e===void 0?!0:e,o=t.immutableCheck,i=o===void 0?!0:o,a=t.serializableCheck,s=a===void 0?!0:a,l=new qh;if(r&&(Yh(r)?l.push(wl):l.push(wl.withExtraArgument(r.extraArgument))),0){if(i)var d;if(s)var f}return l}var _l=!0;function ap(t){var e=Xh(),r=t||{},o=r.reducer,i=o===void 0?void 0:o,a=r.middleware,s=a===void 0?e():a,l=r.devTools,d=l===void 0?!0:l,f=r.preloadedState,u=f===void 0?void 0:f,h=r.enhancers,y=h===void 0?void 0:h,C;if(typeof i=="function")C=i;else if(Kh(i))C=Xf(i);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var E=s;if(typeof E=="function"&&(E=E(e),!_l&&!Array.isArray(E)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!_l&&E.some(function(L){return typeof L!="function"}))throw new Error("each middleware provided to configureStore must be a function");var R=Qf.apply(void 0,E),N=Zo;d&&(N=jh($r({trace:!_l},typeof d=="object"&&d)));var I=new Zh(R),$=I;Array.isArray(y)?$=Yo([R],y):typeof y=="function"&&($=y(I));var A=N.apply(void 0,$);return Al(C,u,A)}function Dr(t,e){function r(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];if(e){var a=e.apply(void 0,o);if(!a)throw new Error("prepareAction did not return an object");return $r($r({type:t,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:t,payload:o[0]}}return r.toString=function(){return""+t},r.type=t,r.match=function(o){return o.type===t},r}function sp(t){var e={},r=[],o,i={addCase:function(a,s){var l=typeof a=="string"?a:a.type;if(l in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[l]=s,i},addMatcher:function(a,s){return r.push({matcher:a,reducer:s}),i},addDefaultCase:function(a){return o=a,i}};return t(i),[e,r,o]}function Jh(t){return typeof t=="function"}function e3(t,e,r,o){r===void 0&&(r=[]);var i=typeof e=="function"?sp(e):[e,r,o],a=i[0],s=i[1],l=i[2],d;if(Jh(t))d=function(){return Tl(t())};else{var f=Tl(t);d=function(){return f}}function u(h,y){h===void 0&&(h=d());var C=Yo([a[y.type]],s.filter(function(E){var R=E.matcher;return R(y)}).map(function(E){var R=E.reducer;return R}));return C.filter(function(E){return!!E}).length===0&&(C=[l]),C.reduce(function(E,R){if(R)if(yr(E)){var N=E,I=R(N,y);return I===void 0?E:I}else{if(Wt(E))return ji(E,function($){return R($,y)});var I=R(E,y);if(I===void 0){if(E===null)return E;throw Error("A case reducer on a non-draftable value must not return undefined")}return I}return E},h)}return u.getInitialState=d,u}function t3(t,e){return t+"/"+e}function lp(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:Tl(t.initialState),o=t.reducers||{},i=Object.keys(o),a={},s={},l={};i.forEach(function(u){var h=o[u],y=t3(e,u),C,E;"reducer"in h?(C=h.reducer,E=h.prepare):C=h,a[u]=C,s[y]=C,l[u]=E?Dr(y,E):Dr(y)});function d(){var u=typeof t.extraReducers=="function"?sp(t.extraReducers):[t.extraReducers],h=u[0],y=h===void 0?{}:h,C=u[1],E=C===void 0?[]:C,R=u[2],N=R===void 0?void 0:R,I=$r($r({},y),s);return e3(r,function($){for(var A in I)$.addCase(A,I[A]);for(var L=0,k=E;L<k.length;L++){var U=k[L];$.addMatcher(U.matcher,U.reducer)}N&&$.addDefaultCase(N)})}var f;return{name:e,reducer:function(u,h){return f||(f=d()),f(u,h)},actions:l,caseReducers:a,getInitialState:function(){return f||(f=d()),f.getInitialState()}}}var r3="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",o3=function(t){t===void 0&&(t=21);for(var e="",r=t;r--;)e+=r3[Math.random()*64|0];return e},n3=["name","message","stack","code"],kl=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),op=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),i3=function(t){if(typeof t=="object"&&t!==null){for(var e={},r=0,o=n3;r<o.length;r++){var i=o[r];typeof t[i]=="string"&&(e[i]=t[i])}return e}return{message:String(t)}},FC=function(){function t(e,r,o){var i=Dr(e+"/fulfilled",function(u,h,y,C){return{payload:u,meta:Rl($r({},C||{}),{arg:y,requestId:h,requestStatus:"fulfilled"})}}),a=Dr(e+"/pending",function(u,h,y){return{payload:void 0,meta:Rl($r({},y||{}),{arg:h,requestId:u,requestStatus:"pending"})}}),s=Dr(e+"/rejected",function(u,h,y,C,E){return{payload:C,error:(o&&o.serializeError||i3)(u||"Rejected"),meta:Rl($r({},E||{}),{arg:y,requestId:h,rejectedWithValue:!!C,requestStatus:"rejected",aborted:u?.name==="AbortError",condition:u?.name==="ConditionError"})}}),l=!1,d=typeof AbortController<"u"?AbortController:function(){function u(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return u.prototype.abort=function(){},u}();function f(u){return function(h,y,C){var E=o?.idGenerator?o.idGenerator(u):o3(),R=new d,N,I=!1;function $(L){N=L,R.abort()}var A=function(){return Vh(this,null,function(){var L,k,U,Y,le,ae,q;return Bh(this,function(x){switch(x.label){case 0:return x.trys.push([0,4,,5]),Y=(L=o?.condition)==null?void 0:L.call(o,u,{getState:y,extra:C}),s3(Y)?[4,Y]:[3,2];case 1:Y=x.sent(),x.label=2;case 2:if(Y===!1||R.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return I=!0,le=new Promise(function(w,V){return R.signal.addEventListener("abort",function(){return V({name:"AbortError",message:N||"Aborted"})})}),h(a(E,u,(k=o?.getPendingMeta)==null?void 0:k.call(o,{requestId:E,arg:u},{getState:y,extra:C}))),[4,Promise.race([le,Promise.resolve(r(u,{dispatch:h,getState:y,extra:C,requestId:E,signal:R.signal,abort:$,rejectWithValue:function(w,V){return new kl(w,V)},fulfillWithValue:function(w,V){return new op(w,V)}})).then(function(w){if(w instanceof kl)throw w;return w instanceof op?i(w.payload,E,u,w.meta):i(w,E,u)})])];case 3:return U=x.sent(),[3,5];case 4:return ae=x.sent(),U=ae instanceof kl?s(null,E,u,ae.payload,ae.meta):s(ae,E,u),[3,5];case 5:return q=o&&!o.dispatchConditionRejection&&s.match(U)&&U.meta.condition,q||h(U),[2,U]}})})}();return Object.assign(A,{abort:$,requestId:E,arg:u,unwrap:function(){return A.then(a3)}})}}return Object.assign(f,{pending:a,rejected:s,fulfilled:i,typePrefix:e})}return t.withTypes=function(){return t},t}();function a3(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function s3(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var cp="listener",dp="completed",fp="cancelled",UC="task-"+fp,HC="task-"+dp,GC=cp+"-"+fp,WC=cp+"-"+dp;var Ml="listenerMiddleware";var VC=Dr(Ml+"/add"),jC=Dr(Ml+"/removeAll"),KC=Dr(Ml+"/remove");var np,qC=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(np||(np=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},l3=function(t){return function(e){setTimeout(e,t)}},ZC=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:l3(10);Gf();window.ftReduxStores||(window.ftReduxStores={});var bo=class t extends mr{static get(e){var r;let o=typeof e=="string"?e:e.name,i=typeof e=="string"?void 0:e,a=window.ftReduxStores[o];if(Vo(a))return a;if(i==null)return;let s=lp({...i,reducers:(r=i.reducers)!==null&&r!==void 0?r:{}}),l=ap({reducer:(d,f)=>{if(f.type==="CLEAR_FT_REDUX_STORE"){let u=no(s.getInitialState());for(let h of f.keeping)u[h]=(d??u)[h];return u}else if(typeof f.type=="string"&&f.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...d,...f.overwrites};return s.reducer(d,f)}});return window.ftReduxStores[i.name]=new t(s,l,i.eventBus)}constructor(e,r,o){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new Hn;let i=a=>a!=null?JSON.parse(JSON.stringify(a)):a;this.actions=new Proxy(this.reduxSlice.actions,{get:(a,s,l)=>{let d=s,f=a[d];return f?(...u)=>{let h=f(...u.map(i));return this.reduxStore.dispatch(h),h}:u=>{this.setState({[d]:i(u)})}}}),this.eventBus=o??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()}};function c3(){var t;for(let e of Object.values((t=window.ftReduxStores)!==null&&t!==void 0?t:{}))Vo(e)&&e.clear()}var qi=class{constructor(e,r,o){this.store=e,this.valueSelector=r,this.callback=o}watch(){return this.stop(),this.lastValue=this.valueSelector(this.store.getState()),this.unsubscribe=this.store.subscribe(()=>{let e=this.store.getState(),r=this.valueSelector(e);Ut(this.lastValue,r)&&(this.callback(r,e),this.lastValue=r)}),this}stop(){return this.unsubscribe!=null&&(this.unsubscribe(),this.unsubscribe=void 0),this.lastValue=void 0,this}};function d3(t,e,r){return new qi(t,e,r).watch()}var Nl=class{constructor(){this.requestConsumers=new Map}getOrCreateRequestConsumers(e){var r;return(r=this.requestConsumers.get(e))!==null&&r!==void 0?r:this.requestConsumers.set(e,new Set).get(e)}registerComponent(e,r){for(let o of r)this.getOrCreateRequestConsumers(o).add(e).size==1&&this.onNewNeededRequest(o)}unregisterComponent(e,r){for(let o of r)this.getOrCreateRequestConsumers(o).delete(e)}isRequestNeeded(e){return this.getOrCreateRequestConsumers(e).size>0}};var $l={};ne($l,{scrollHelper:()=>f3});var Il,Zi=new Map,zl=class{lock(e,r){if(r){let o=Zi.get(r);if(o==null||o===e)return Zi.set(r,e),r}}release(e,r){r&&Zi.get(r)===e&&Zi.delete(r)}findFirstScrollableParent(e){var r;let o,i;for(let a of ss(e)){let s=a,l=this.elementCanScroll(s);if(l&&s.clientHeight&&s.clientHeight<s.scrollHeight){o=s;break}else l&&i==null&&(i=s)}return(r=o??i)!==null&&r!==void 0?r:document.body}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)&&!["contents"].includes(getComputedStyle(e).display)}catch{return!1}}getAbsoluteScrollOffset(e,r){var o,i;let a=0;for(;r&&r.offsetParent!==e.offsetParent;)a+=(o=r.offsetTop)!==null&&o!==void 0?o:0,r=r.offsetParent;return a+((i=r?.offsetTop)!==null&&i!==void 0?i:0)-e.offsetTop}computeTopOffsetRatio(e,r){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return r;default:return 0}}scrollIntoViewIfPossible(e,r){let o=this.findFirstScrollableParent(e);if(e&&this.lock(this,o)){let i=this.getAbsoluteScrollOffset(o,e),a=i-o.clientHeight+e.clientHeight,s=i,l=oo(0,(s-o.scrollTop)/(s-a),1),d=this.computeTopOffsetRatio(r?.position,l)*(a-s)+s;o.scrollTo({behavior:r?.behavior,top:d})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,o);this.release(this,o)}};window.FluidTopicsScrollHelper=(Il=window.FluidTopicsScrollHelper)!==null&&Il!==void 0?Il:new zl;var f3=window.FluidTopicsScrollHelper;var Bl={};ne(Bl,{SearchPlaceConverter:()=>Fr,SearchPlaceQueryParams:()=>he,isSearchPlaceQueryParams:()=>Yp,serializeRequest:()=>m3});var u3=q0(up(),1);var hp;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(hp||(hp={}));var mp;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(mp||(mp={}));var gp;(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"})(gp||(gp={}));var yp;(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"})(yp||(yp={}));var bp;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(bp||(bp={}));var vp;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(vp||(vp={}));var xp;(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"})(xp||(xp={}));var Sp;(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"})(Sp||(Sp={}));var Cp;(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"})(Cp||(Cp={}));var Op;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Op||(Op={}));var Ep;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Ep||(Ep={}));var Lp;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Lp||(Lp={}));var Ap;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Ap||(Ap={}));var wp;(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"})(wp||(wp={}));var Qo;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(Qo||(Qo={}));var Rp;(function(t){t.ASC="ASC",t.DESC="DESC"})(Rp||(Rp={}));var _p;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(_p||(_p={}));var Dl;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(Dl||(Dl={}));var $p=t=>Object.keys(Dl).includes(t);var kp;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(kp||(kp={}));var Tp;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Tp||(Tp={}));var Mp;(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"})(Mp||(Mp={}));var Jo;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Jo||(Jo={}));var Dp=t=>Object.keys(Jo).includes(t);var Np;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Np||(Np={}));var Pp;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Pp||(Pp={}));var Ip;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Ip||(Ip={}));var De;(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"})(De||(De={}));var Mt;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(Mt||(Mt={}));var zp;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(zp||(zp={}));var Bp;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Bp||(Bp={}));var Fp;(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.OTHER="OTHER"})(Fp||(Fp={}));var Up;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(Up||(Up={}));var Hp;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Hp||(Hp={}));var Gp;(function(t){t.USER="USER",t.ASSISTANT="ASSISTANT"})(Gp||(Gp={}));var Wp;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Wp||(Wp={}));var Vp;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(Vp||(Vp={}));var jp;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(jp||(jp={}));var p3={[De.PERSONAL_BOOK_SHARE_USER]:[De.PERSONAL_BOOK_USER],[De.HTML_EXPORT_USER]:[De.PERSONAL_BOOK_USER],[De.PDF_EXPORT_USER]:[De.PERSONAL_BOOK_USER],[De.KHUB_ADMIN]:[De.CONTENT_PUBLISHER],[De.ADMIN]:[De.KHUB_ADMIN,De.USERS_ADMIN,De.PORTAL_ADMIN,De.BEHAVIOR_DATA_USER],[De.GENERATIVE_AI_EXPORT_USER]:[De.GENERATIVE_AI_USER]};function Kp(t,e){return t===e||(p3[t]??[]).some(r=>Kp(r,e))}function qp(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(o=>Kp(o,e))}function h3(t){return`"${t}"`}function Zp(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function m3(t,e){return new Fr(t).serialize(e)}var he;(function(t){t.LOCALE="content-lang",t.QUERY="query",t.SCOPE="scope",t.FILTERS="filters",t.VIRTUAL_FIELD="virtual-field",t.PERIOD="period",t.VALUE_FILTERS="value-filters",t.DATE_FILTERS="date-filters",t.RANGE_FILTERS="range-filters",t.SORT="sort",t.PER_PAGE="per-page",t.KEYWORD_MATCH="keyword-match"})(he||(he={}));var g3=new Set(Object.values(he));function Yp(t){return g3.has(t)}var Fr=class{constructor(e,r=20,o=!1,i="en-US"){this.baseUrl=e,this.defaultPerPage=r,this.allLanguagesAllowed=o,this.defaultContentLocale=i,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"},this.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]]}serialize(e,r){return this.serializeToCurrentPageIfPossible(e,r??"/search")}serializeToCurrentPageIfPossible(e,r){let o=r==null||r.trim().length===0,i=new URL(o?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${r}`);return i.search=this.toURLSearchParams(e),i.toString()}toURLSearchParams(e,r=!1){var o,i,a,s,l,d,f,u,h,y,C;let E=new URLSearchParams;e.contentLocale?(!r||e.contentLocale!==this.defaultContentLocale)&&E.append(he.LOCALE,e.contentLocale):E.append(he.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((o=e.query)===null||o===void 0?void 0:o.length)>0&&E.append(he.QUERY,e.query);let R=(a=(i=e.metadataFilters)===null||i===void 0?void 0:i.filter(L=>L.valueFilter&&!L.valueFilter.negative))!==null&&a!==void 0?a:[];if(R.length>0){let L=R.map(k=>{var U,Y;let le=((Y=(U=k.valueFilter)===null||U===void 0?void 0:U.values)!==null&&Y!==void 0?Y:[]).map(ae=>this.escapeFilters(ae)).map(ae=>h3(Zp(ae))).join("_");return`${k.key}~${le}`}).join("*");E.append(he.VALUE_FILTERS,L)}let N=(l=(s=e.metadataFilters)===null||s===void 0?void 0:s.filter(L=>L.dateFilter))!==null&&l!==void 0?l:[];if(N.length>0){let L=N.map(k=>{var U;return`${k.key}~${(U=k.dateFilter)===null||U===void 0?void 0:U.type.toLowerCase()}`}).join("*");E.append(he.DATE_FILTERS,L)}let I=(f=(d=e.metadataFilters)===null||d===void 0?void 0:d.filter(L=>L.rangeFilter))!==null&&f!==void 0?f:[];if(I.length>0){let L=I.map(k=>{var U,Y;return`${k.key}~${(U=k.rangeFilter)===null||U===void 0?void 0:U.from}_${(Y=k.rangeFilter)===null||Y===void 0?void 0:Y.to}`}).join("*");E.append(he.RANGE_FILTERS,L)}e.virtualField&&e.virtualField!=="EVERYWHERE"&&E.append(he.VIRTUAL_FIELD,e.virtualField.toLowerCase()),e.scope&&e.scope!=="DEFAULT"&&E.append(he.SCOPE,e.scope.toLowerCase()),e.sortId!=null&&E.append(he.SORT,e.sortId),!((u=e.paging)===null||u===void 0)&&u.perPage&&((y=(h=e.paging)===null||h===void 0?void 0:h.perPage)!==null&&y!==void 0?y:this.defaultPerPage)!=this.defaultPerPage&&E.append(he.PER_PAGE,String(e.paging.perPage)),e.keywordMatch!=null&&E.append(he.KEYWORD_MATCH,e.keywordMatch.toLowerCase());let $=(C=e.otherQueryParams)!==null&&C!==void 0?C:{};for(let L in $)E.append(L,$[L]);let A=new Array;return E.forEach((L,k)=>{A.push(this.encodeQueryString(k)+"="+this.encodeQueryString(L))}),encodeURI(A.join("&")).replace(/#/g,"%23")}encodeQueryString(e){return encodeURIComponent(e).replace(/%20/g,"+")}parse(e){var r;let o=e.split("?"),i=this.fromURLSearchParams(o.slice(1).join("?")),a=o[0].split("/search/")[1];return a==null?i:{...i,scope:(r=this.scopeMapping[a])!==null&&r!==void 0?r:i.scope}}fromURLSearchParams(e){var r,o,i,a,s,l;try{e=decodeURI(e).replace(/%23/g,"#")}catch(I){console.warn("Could not decode search request query params, fallback on raw value",I)}let d=new URLSearchParams(e),f=d.get(he.LOCALE)==="all"?void 0:d.get(he.LOCALE),u=((r=d.get(he.VIRTUAL_FIELD))!==null&&r!==void 0?r:"EVERYWHERE").toUpperCase(),h=(o=d.get(he.SORT))===null||o===void 0?void 0:o.toLowerCase(),y=(i=d.get(he.SCOPE))!==null&&i!==void 0?i:"default",C=+((a=d.get(he.PER_PAGE))!==null&&a!==void 0?a:this.defaultPerPage),E=d.get(he.KEYWORD_MATCH),R=E?E.toUpperCase()===Qo.MANDATORY?Qo.MANDATORY:Qo.OPTIONAL:void 0,N={};for(let I of d.keys())Yp(I)||(N[I]=d.get(I));return{contentLocale:f??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:(s=d.get(he.QUERY))!==null&&s!==void 0?s:"",scope:(l=this.scopeMapping[y])!==null&&l!==void 0?l:"DEFAULT",virtualField:$p(u)?u:"EVERYWHERE",sortId:h,metadataFilters:this.parseCompatFilters(d),facets:[],paging:{page:1,perPage:oo(1,isNaN(C)?this.defaultPerPage:C,1e3)},keywordMatch:R,otherQueryParams:N}}parseCompatFilters(e){var r,o,i,a,s,l;let d=[];return e.has(he.FILTERS)&&(d=this.parseValueFilters((r=e.get(he.FILTERS))!==null&&r!==void 0?r:"")),(o=e.has(he.PERIOD))!==null&&o!==void 0&&o&&(d=[...d,...this.parseLegacyPeriodFilter(((i=e.get(he.PERIOD))!==null&&i!==void 0?i:"").toUpperCase())]),[...d,...this.parseValueFilters((a=e.get(he.VALUE_FILTERS))!==null&&a!==void 0?a:""),...this.parseDateFilters((s=e.get(he.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=e.get(he.RANGE_FILTERS))!==null&&l!==void 0?l:"")]}splitUnknownFilter(e){return this.superEscapeFilters(e).split("*").map(r=>r.split("~"))}parseValueFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(r=>({key:r[0],valueFilter:{values:r[1].split("_").map(Zp).map(o=>this.unescapeFilterValue(o)),negative:!1}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(r=>({key:r[0],dateFilter:{type:Jo[r[1].toUpperCase()]}}))}parseRangeFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(r=>({key:r[0],rangeFilter:{from:r[1].split("_")[0],to:r[1].split("_")[1]}}))}escapeFilters(e){for(let[r,o,i]of this.filtersEscapeMapping)e=e.replaceAll(r,o);return e}superEscapeFilters(e){for(let[r,o,i]of this.filtersEscapeMapping)e=e.replaceAll(o,i);return e}unescapeFilterValue(e){for(let[r,o,i]of this.filtersEscapeMapping)e=e.replace(i,r);return e}parseLegacyPeriodFilter(e){if(Dp(e))return[{key:"ft:lastEdition",dateFilter:{type:Jo[e]}}];if(e.startsWith("CUSTOM_")){let[r,o,i]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:o,to:i}}]}return[]}};var Hl={};ne(Hl,{toFtFormComponent:()=>Ul});var Fl=Symbol("elementInternals"),Ul=Ze(Symbol("toFtFormComponent"),function(t){class e extends t{static get formAssociated(){return!0}get form(){return this[Fl].form}constructor(...o){super(o),this[Fl]=this.attachInternals()}setFormValue(o){this[Fl].setFormValue(o)}}return e});var Gl={};ne(Gl,{DateFormatter:()=>vo});var vo=class{static format(e,r,o,i){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(o,i)):this.getIntlDateTime(e,r,o,i)}static getMomentDateFormat(e,r){return e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,o,i){let a=typeof e=="string"?new Date(e):e,s=new Intl.DateTimeFormat(r,{dateStyle:o?"medium":"short"}).format(a);if(!i)return s;let l=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(a);return`${s} ${l}`}static getTimezoneAsString(){let e=o=>String(Math.floor(o)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${e(Math.abs(r)/60)}:${e(Math.abs(r)%60)}`}};var Vl={};ne(Vl,{ALL_KEYS_VALUE:()=>Wl,SameWindowStorageEvent:()=>en});var Wl="__all__",en=class extends CustomEvent{constructor(e,r,o){super("same-window-storage",{detail:{key:e,oldValue:r,newValue:o}})}keyMatch(e){return this.detail.key.includes(e)||this.detail.key==Wl}};Storage.prototype.setItem=new Proxy(Storage.prototype.setItem,{apply(t,e,r){let o=e.getItem(r[0]);Reflect.apply(t,e,r),window.dispatchEvent(new en(r[0],o,r[1]))}});Storage.prototype.removeItem=new Proxy(Storage.prototype.removeItem,{apply(t,e,r){let o=e.getItem(r[0]);Reflect.apply(t,e,r),window.dispatchEvent(new en(r[0],o))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(t,e,r){Reflect.apply(t,e,r),window.dispatchEvent(new en(Wl))}});var Kl={};ne(Kl,{FocusMainContentEvent:()=>jl});var jl=class extends Event{constructor(){super("ft-focus-main-content",{composed:!0,bubbles:!0})}};var Xp={};window.FluidTopicsA11yHints={isKeyboardNavigation:!1,lastPressedKey:""};function y3(t){(t.key==="Enter"||t.key===" "||t.key==="Tab")&&(window.FluidTopicsA11yHints.isKeyboardNavigation=!0),window.FluidTopicsA11yHints.lastPressedKey=t.key}function b3(t){window.FluidTopicsA11yHints.isKeyboardNavigation=t.detail==0}document.addEventListener("keydown",y3);document.addEventListener("click",b3);var Qi=T`
48
+ `;var Mf={};var cl={};ne(cl,{ParametrizedLabelResolver:()=>Nr});var Nr=class t{constructor(e,r){this.defaultLabels=e,this.labels=r}resolve(e,...r){var o,i;e=this.resolvePluralKey(e,r);let a=(i=(o=this.labels[e])!==null&&o!==void 0?o:this.defaultLabels[e])!==null&&i!==void 0?i:"";return t.replaceParameters(a,...r)}static replaceParameters(e,...r){return r.forEach((o,i)=>e=e.replace(new RegExp(`\\{${i}([^}]*)\\}`,"g"),(a,s)=>t.formatValue(o,s))),e}resolvePluralKey(e,r){for(let o of r)if(typeof o=="number"){let i=`${String(e)}[\\=${o}]`;if(i in this.labels||i in this.defaultLabels)return i}return e}static formatValue(e,r){return e instanceof Date?t.formatDate(e,r):e??""}static formatDate(e,r){let o=i=>r?.includes("date")?e.toLocaleDateString(i):r?.includes("time")?e.toLocaleTimeString(i):e.toLocaleString(i);try{return o(document.documentElement.lang)}catch{return o()}}};var Pl={};ne(Pl,{FtCommandQueue:()=>Hn,FtLitElementRedux:()=>Wn,FtReduxStore:()=>bo,FtStateManager:()=>Nl,ReduxWatcher:()=>qi,clearAllStores:()=>c3,isFtReduxStore:()=>Vo,redux:()=>Wo,reduxEventListener:()=>Ah,reduxReactive:()=>Lh,watch:()=>d3,withRedux:()=>Nf});var Lh=()=>(t,e)=>{var r;let o=t.constructor;o.reduxReactiveProperties=new Set(o.reduxReactiveProperties),(r=o.reduxReactiveProperties)===null||r===void 0||r.add(e)},Wo=t=>{let e=t??{};return(r,o)=>{var i;let a={hasChanged:Ut,attribute:!1,...e};g(a)(r,o);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(o,{selector:(i=e.selector)!==null&&i!==void 0?i:l=>l[o],store:e.store})}},Ah=t=>(e,r)=>{let o=e.constructor;o.reduxEventListeners=new Map(o.reduxEventListeners),o.reduxEventListeners.set(r,t)};var Hn=class{constructor(){this.queue=[]}add(e,r=!1){r&&this.clear(e.type),this.queue.push(e)}consume(e){let r=this.queue.find(o=>o.type===e);return r&&(this.queue=this.queue.filter(o=>o!==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))}};function Vo(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Gn=Symbol("internalReduxEventsUnsubscribers"),Pr=Symbol("internalStoresUnsubscribers"),mo=Symbol("internalStores"),Nf=Ze(Symbol("withRedux"),function(t){var e,r,o;class i extends t{constructor(){super(...arguments),this[e]=new Map,this[r]=new Map,this[o]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(l=>s.has(l))&&this.updateFromStores()}getUnnamedStore(){if(this[mo].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[mo].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[mo].get(s)}addStore(s,l){var d;l=(d=l??s.name)!==null&&d!==void 0?d:"default-store",this.unsubscribeFromStore(l),this[mo].set(l,s),this.subscribeToStore(l,s),this.updateFromStores()}removeStore(s){let l=typeof s=="string"?s:s.name;this.unsubscribeFromStore(l),this[mo].delete(l)}setupStores(){this.unsubscribeFromStores(),this[mo].forEach((s,l)=>this.subscribeToStore(l,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,l)=>{let d=this.constructor.getPropertyOptions(l);if(!d?.attribute||!this.hasAttribute(typeof d?.attribute=="string"?d.attribute:l)){let f=this.getStore(s.store);f&&(s.store?this[Pr].has(s.store):this[Pr].size>0)&&(this[l]=s.selector(f.getState(),this))}})}subscribeToStore(s,l){var d;this[Pr].set(s,l.subscribe(()=>this.updateFromStores())),this[Gn].set(s,[]),Vo(l)&&l.eventBus&&((d=this.reduxConstructor.reduxEventListeners)===null||d===void 0||d.forEach((f,u)=>{if(typeof this[u]=="function"&&(!f.store||l.name===f.store)){let h=y=>this[u](y);l.addEventListener(f.eventName,h),this[Gn].get(s).push(()=>l.removeEventListener(f.eventName,h))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[Pr].forEach((s,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(s){var l;this[Pr].has(s)&&this[Pr].get(s)(),this[Pr].delete(s),(l=this[Gn].get(s))===null||l===void 0||l.forEach(d=>d()),this[Gn].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=Pr,r=mo,o=Gn,i.reduxProperties=new Map,i.reduxReactiveProperties=new Set,i.reduxEventListeners=new Map,i}),Wn=class extends Nf(F){};function Tt(t){for(var e=arguments.length,r=Array(e>1?e-1:0),o=1;o<e;o++)r[o-1]=arguments[o];if(0)var i,a;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 yr(t){return!!t&&!!t[Le]}function Wt(t){var e;return!!t&&(function(r){if(!r||typeof r!="object")return!1;var o=Object.getPrototypeOf(r);if(o===null)return!0;var i=Object.hasOwnProperty.call(o,"constructor")&&o.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===Ph}(t)||Array.isArray(t)||!!t[Ff]||!!(!((e=t.constructor)===null||e===void 0)&&e[Ff])||bl(t)||vl(t))}function go(t,e,r){r===void 0&&(r=!1),qo(t)===0?(r?Object.keys:Ko)(t).forEach(function(o){r&&typeof o=="symbol"||e(o,t[o],t)}):t.forEach(function(o,i){return e(i,o,t)})}function qo(t){var e=t[Le];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:bl(t)?2:vl(t)?3:0}function jo(t,e){return qo(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function wh(t,e){return qo(t)===2?t.get(e):t[e]}function Uf(t,e,r){var o=qo(t);o===2?t.set(e,r):o===3?t.add(r):t[e]=r}function Hf(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function bl(t){return Mh&&t instanceof Map}function vl(t){return Nh&&t instanceof Set}function Ir(t){return t.o||t.t}function xl(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Vf(t);delete e[Le];for(var r=Ko(e),o=0;o<r.length;o++){var i=r[o],a=e[i];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:t[i]})}return Object.create(Object.getPrototypeOf(t),e)}function Sl(t,e){return e===void 0&&(e=!1),Cl(t)||yr(t)||!Wt(t)||(qo(t)>1&&(t.set=t.add=t.clear=t.delete=Rh),Object.freeze(t),e&&go(t,function(r,o){return Sl(o,!0)},!0)),t}function Rh(){Tt(2)}function Cl(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function rr(t){var e=yl[t];return e||Tt(18,t),e}function _h(t,e){yl[t]||(yl[t]=e)}function hl(){return jn}function dl(t,e){e&&(rr("Patches"),t.u=[],t.s=[],t.v=e)}function Gi(t){ml(t),t.p.forEach(kh),t.p=null}function ml(t){t===jn&&(jn=t.l)}function Pf(t){return jn={p:[],l:jn,h:t,m:!0,_:0}}function kh(t){var e=t[Le];e.i===0||e.i===1?e.j():e.g=!0}function fl(t,e){e._=e.p.length;var r=e.p[0],o=t!==void 0&&t!==r;return e.h.O||rr("ES5").S(e,t,o),o?(r[Le].P&&(Gi(e),Tt(4)),Wt(t)&&(t=Wi(e,t),e.l||Vi(e,t)),e.u&&rr("Patches").M(r[Le].t,t,e.u,e.s)):t=Wi(e,r,[]),Gi(e),e.u&&e.v(e.u,e.s),t!==Wf?t:void 0}function Wi(t,e,r){if(Cl(e))return e;var o=e[Le];if(!o)return go(e,function(l,d){return If(t,o,e,l,d,r)},!0),e;if(o.A!==t)return e;if(!o.P)return Vi(t,o.t,!0),o.t;if(!o.I){o.I=!0,o.A._--;var i=o.i===4||o.i===5?o.o=xl(o.k):o.o,a=i,s=!1;o.i===3&&(a=new Set(i),i.clear(),s=!0),go(a,function(l,d){return If(t,o,i,l,d,r,s)}),Vi(t,i,!1),r&&t.u&&rr("Patches").N(o,r,t.u,t.s)}return o.o}function If(t,e,r,o,i,a,s){if(yr(i)){var l=Wi(t,i,a&&e&&e.i!==3&&!jo(e.R,o)?a.concat(o):void 0);if(Uf(r,o,l),!yr(l))return;t.m=!1}else s&&r.add(i);if(Wt(i)&&!Cl(i)){if(!t.h.D&&t._<1)return;Wi(t,i),e&&e.A.l||Vi(t,i)}}function Vi(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&Sl(e,r)}function pl(t,e){var r=t[Le];return(r?Ir(r):t)[e]}function zf(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var o=Object.getOwnPropertyDescriptor(r,e);if(o)return o;r=Object.getPrototypeOf(r)}}function zr(t){t.P||(t.P=!0,t.l&&zr(t.l))}function ul(t){t.o||(t.o=xl(t.t))}function gl(t,e,r){var o=bl(e)?rr("MapSet").F(e,r):vl(e)?rr("MapSet").T(e,r):t.O?function(i,a){var s=Array.isArray(i),l={i:s?1:0,A:a?a.A:hl(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},d=l,f=Kn;s&&(d=[l],f=Vn);var u=Proxy.revocable(d,f),h=u.revoke,y=u.proxy;return l.k=y,l.j=h,y}(e,r):rr("ES5").J(e,r);return(r?r.A:hl()).p.push(o),o}function Th(t){return yr(t)||Tt(22,t),function e(r){if(!Wt(r))return r;var o,i=r[Le],a=qo(r);if(i){if(!i.P&&(i.i<4||!rr("ES5").K(i)))return i.t;i.I=!0,o=$f(r,a),i.I=!1}else o=$f(r,a);return go(o,function(s,l){i&&wh(i.t,s)===l||Uf(o,s,e(l))}),a===3?new Set(o):o}(t)}function $f(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return xl(t)}function Gf(){function t(s,l){var d=a[s];return d?d.enumerable=l:a[s]=d={configurable:!0,enumerable:l,get:function(){var f=this[Le];return Kn.get(f,s)},set:function(f){var u=this[Le];Kn.set(u,s,f)}},d}function e(s){for(var l=s.length-1;l>=0;l--){var d=s[l][Le];if(!d.P)switch(d.i){case 5:o(d)&&zr(d);break;case 4:r(d)&&zr(d)}}}function r(s){for(var l=s.t,d=s.k,f=Ko(d),u=f.length-1;u>=0;u--){var h=f[u];if(h!==Le){var y=l[h];if(y===void 0&&!jo(l,h))return!0;var C=d[h],E=C&&C[Le];if(E?E.t!==y:!Hf(C,y))return!0}}var R=!!l[Le];return f.length!==Ko(l).length+(R?0:1)}function o(s){var l=s.k;if(l.length!==s.t.length)return!0;var d=Object.getOwnPropertyDescriptor(l,l.length-1);if(d&&!d.get)return!0;for(var f=0;f<l.length;f++)if(!l.hasOwnProperty(f))return!0;return!1}function i(s){s.g&&Tt(3,JSON.stringify(Ir(s)))}var a={};_h("ES5",{J:function(s,l){var d=Array.isArray(s),f=function(h,y){if(h){for(var C=Array(y.length),E=0;E<y.length;E++)Object.defineProperty(C,""+E,t(E,!0));return C}var R=Vf(y);delete R[Le];for(var N=Ko(R),I=0;I<N.length;I++){var $=N[I];R[$]=t($,h||!!R[$].enumerable)}return Object.create(Object.getPrototypeOf(y),R)}(d,s),u={i:d?5:4,A:l?l.A:hl(),P:!1,I:!1,R:{},l,t:s,k:f,o:null,g:!1,C:!1};return Object.defineProperty(f,Le,{value:u,writable:!0}),f},S:function(s,l,d){d?yr(l)&&l[Le].A===s&&e(s.p):(s.u&&function f(u){if(u&&typeof u=="object"){var h=u[Le];if(h){var y=h.t,C=h.k,E=h.R,R=h.i;if(R===4)go(C,function(L){L!==Le&&(y[L]!==void 0||jo(y,L)?E[L]||f(C[L]):(E[L]=!0,zr(h)))}),go(y,function(L){C[L]!==void 0||jo(C,L)||(E[L]=!1,zr(h))});else if(R===5){if(o(h)&&(zr(h),E.length=!0),C.length<y.length)for(var N=C.length;N<y.length;N++)E[N]=!1;else for(var I=y.length;I<C.length;I++)E[I]=!0;for(var $=Math.min(C.length,y.length),A=0;A<$;A++)C.hasOwnProperty(A)||(E[A]=!0),E[A]===void 0&&f(C[A])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?r(s):o(s)}})}var Df,jn,Ol=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Mh=typeof Map<"u",Nh=typeof Set<"u",Bf=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Wf=Ol?Symbol.for("immer-nothing"):((Df={})["immer-nothing"]=!0,Df),Ff=Ol?Symbol.for("immer-draftable"):"__$immer_draftable",Le=Ol?Symbol.for("immer-state"):"__$immer_state";var Ph=""+Object.prototype.constructor,Ko=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Vf=Object.getOwnPropertyDescriptors||function(t){var e={};return Ko(t).forEach(function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)}),e},yl={},Kn={get:function(t,e){if(e===Le)return t;var r=Ir(t);if(!jo(r,e))return function(i,a,s){var l,d=zf(a,s);return d?"value"in d?d.value:(l=d.get)===null||l===void 0?void 0:l.call(i.k):void 0}(t,r,e);var o=r[e];return t.I||!Wt(o)?o:o===pl(t.t,e)?(ul(t),t.o[e]=gl(t.A.h,o,t)):o},has:function(t,e){return e in Ir(t)},ownKeys:function(t){return Reflect.ownKeys(Ir(t))},set:function(t,e,r){var o=zf(Ir(t),e);if(o?.set)return o.set.call(t.k,r),!0;if(!t.P){var i=pl(Ir(t),e),a=i?.[Le];if(a&&a.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(Hf(r,i)&&(r!==void 0||jo(t.t,e)))return!0;ul(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 pl(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,ul(t),zr(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=Ir(t),o=Reflect.getOwnPropertyDescriptor(r,e);return o&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:o.enumerable,value:r[e]}},defineProperty:function(){Tt(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Tt(12)}},Vn={};go(Kn,function(t,e){Vn[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),Vn.deleteProperty=function(t,e){return Vn.set.call(this,t,e,void 0)},Vn.set=function(t,e,r){return Kn.set.call(this,t[0],e,r,t[0])};var Ih=function(){function t(r){var o=this;this.O=Bf,this.D=!0,this.produce=function(i,a,s){if(typeof i=="function"&&typeof a!="function"){var l=a;a=i;var d=o;return function(R){var N=this;R===void 0&&(R=l);for(var I=arguments.length,$=Array(I>1?I-1:0),A=1;A<I;A++)$[A-1]=arguments[A];return d.produce(R,function(L){var k;return(k=a).call.apply(k,[N,L].concat($))})}}var f;if(typeof a!="function"&&Tt(6),s!==void 0&&typeof s!="function"&&Tt(7),Wt(i)){var u=Pf(o),h=gl(o,i,void 0),y=!0;try{f=a(h),y=!1}finally{y?Gi(u):ml(u)}return typeof Promise<"u"&&f instanceof Promise?f.then(function(R){return dl(u,s),fl(R,u)},function(R){throw Gi(u),R}):(dl(u,s),fl(f,u))}if(!i||typeof i!="object"){if((f=a(i))===void 0&&(f=i),f===Wf&&(f=void 0),o.D&&Sl(f,!0),s){var C=[],E=[];rr("Patches").M(i,f,C,E),s(C,E)}return f}Tt(21,i)},this.produceWithPatches=function(i,a){if(typeof i=="function")return function(f){for(var u=arguments.length,h=Array(u>1?u-1:0),y=1;y<u;y++)h[y-1]=arguments[y];return o.produceWithPatches(f,function(C){return i.apply(void 0,[C].concat(h))})};var s,l,d=o.produce(i,a,function(f,u){s=f,l=u});return typeof Promise<"u"&&d instanceof Promise?d.then(function(f){return[f,s,l]}):[d,s,l]},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){Wt(r)||Tt(8),yr(r)&&(r=Th(r));var o=Pf(this),i=gl(this,r,void 0);return i[Le].C=!0,ml(o),i},e.finishDraft=function(r,o){var i=r&&r[Le],a=i.A;return dl(a,o),fl(void 0,a)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!Bf&&Tt(20),this.O=r},e.applyPatches=function(r,o){var i;for(i=o.length-1;i>=0;i--){var a=o[i];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}i>-1&&(o=o.slice(i+1));var s=rr("Patches").$;return yr(r)?s(r,o):this.produce(r,function(l){return s(l,o)})},t}(),vt=new Ih,zh=vt.produce,uC=vt.produceWithPatches.bind(vt),hC=vt.setAutoFreeze.bind(vt),mC=vt.setUseProxies.bind(vt),gC=vt.applyPatches.bind(vt),yC=vt.createDraft.bind(vt),bC=vt.finishDraft.bind(vt),ji=zh;function yo(t){"@babel/helpers - typeof";return yo=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},yo(t)}function jf(t,e){if(yo(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var o=r.call(t,e||"default");if(yo(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Kf(t){var e=jf(t,"string");return yo(e)=="symbol"?e:e+""}function qf(t,e,r){return(e=Kf(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Zf(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,o)}return r}function El(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Zf(Object(r),!0).forEach(function(o){qf(t,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Zf(Object(r)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(r,o))})}return t}function it(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var Yf=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Ll=function(){return Math.random().toString(36).substring(7).split("").join(".")},Ki={INIT:"@@redux/INIT"+Ll(),REPLACE:"@@redux/REPLACE"+Ll(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Ll()}};function $h(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 Al(t,e,r){var o;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(it(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(it(1));return r(Al)(t,e)}if(typeof t!="function")throw new Error(it(2));var i=t,a=e,s=[],l=s,d=!1;function f(){l===s&&(l=s.slice())}function u(){if(d)throw new Error(it(3));return a}function h(R){if(typeof R!="function")throw new Error(it(4));if(d)throw new Error(it(5));var N=!0;return f(),l.push(R),function(){if(N){if(d)throw new Error(it(6));N=!1,f();var $=l.indexOf(R);l.splice($,1),s=null}}}function y(R){if(!$h(R))throw new Error(it(7));if(typeof R.type>"u")throw new Error(it(8));if(d)throw new Error(it(9));try{d=!0,a=i(a,R)}finally{d=!1}for(var N=s=l,I=0;I<N.length;I++){var $=N[I];$()}return R}function C(R){if(typeof R!="function")throw new Error(it(10));i=R,y({type:Ki.REPLACE})}function E(){var R,N=h;return R={subscribe:function($){if(typeof $!="object"||$===null)throw new Error(it(11));function A(){$.next&&$.next(u())}A();var L=N(A);return{unsubscribe:L}}},R[Yf]=function(){return this},R}return y({type:Ki.INIT}),o={dispatch:y,subscribe:h,getState:u,replaceReducer:C},o[Yf]=E,o}function Dh(t){Object.keys(t).forEach(function(e){var r=t[e],o=r(void 0,{type:Ki.INIT});if(typeof o>"u")throw new Error(it(12));if(typeof r(void 0,{type:Ki.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(it(13))})}function Xf(t){for(var e=Object.keys(t),r={},o=0;o<e.length;o++){var i=e[o];typeof t[i]=="function"&&(r[i]=t[i])}var a=Object.keys(r),s,l;try{Dh(r)}catch(d){l=d}return function(f,u){if(f===void 0&&(f={}),l)throw l;if(0)var h;for(var y=!1,C={},E=0;E<a.length;E++){var R=a[E],N=r[R],I=f[R],$=N(I,u);if(typeof $>"u"){var A=u&&u.type;throw new Error(it(14))}C[R]=$,y=y||$!==I}return y=y||a.length!==Object.keys(f).length,y?C:f}}function Zo(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.length===0?function(o){return o}:e.length===1?e[0]:e.reduce(function(o,i){return function(){return o(i.apply(void 0,arguments))}})}function Qf(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(o){return function(){var i=o.apply(void 0,arguments),a=function(){throw new Error(it(15))},s={getState:i.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=e.map(function(d){return d(s)});return a=Zo.apply(void 0,l)(i.dispatch),El(El({},i),{},{dispatch:a})}}}function Jf(t){var e=function(o){var i=o.dispatch,a=o.getState;return function(s){return function(l){return typeof l=="function"?l(i,a,t):s(l)}}};return e}var ep=Jf();ep.withExtraArgument=Jf;var wl=ep;var ip=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,i){o.__proto__=i}||function(o,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(o[a]=i[a])},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 o(){this.constructor=e}e.prototype=r===null?Object.create(r):(o.prototype=r.prototype,new o)}}(),Bh=function(t,e){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,i,a,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(f){return function(u){return d([f,u])}}function d(f){if(o)throw new TypeError("Generator is already executing.");for(;r;)try{if(o=1,i&&(a=f[0]&2?i.return:f[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,f[1])).done)return a;switch(i=0,a&&(f=[f[0]&2,a.value]),f[0]){case 0:case 1:a=f;break;case 4:return r.label++,{value:f[1],done:!1};case 5:r.label++,i=f[1],f=[0];continue;case 7:f=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(f[0]===6||f[0]===2)){r=0;continue}if(f[0]===3&&(!a||f[1]>a[0]&&f[1]<a[3])){r.label=f[1];break}if(f[0]===6&&r.label<a[1]){r.label=a[1],a=f;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(f);break}a[2]&&r.ops.pop(),r.trys.pop();continue}f=e.call(t,r)}catch(u){f=[6,u],i=0}finally{o=a=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},Yo=function(t,e){for(var r=0,o=e.length,i=t.length;r<o;r++,i++)t[i]=e[r];return t},Fh=Object.defineProperty,Uh=Object.defineProperties,Hh=Object.getOwnPropertyDescriptors,tp=Object.getOwnPropertySymbols,Gh=Object.prototype.hasOwnProperty,Wh=Object.prototype.propertyIsEnumerable,rp=function(t,e,r){return e in t?Fh(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},$r=function(t,e){for(var r in e||(e={}))Gh.call(e,r)&&rp(t,r,e[r]);if(tp)for(var o=0,i=tp(e);o<i.length;o++){var r=i[o];Wh.call(e,r)&&rp(t,r,e[r])}return t},Rl=function(t,e){return Uh(t,Hh(e))},Vh=function(t,e,r){return new Promise(function(o,i){var a=function(d){try{l(r.next(d))}catch(f){i(f)}},s=function(d){try{l(r.throw(d))}catch(f){i(f)}},l=function(d){return d.done?o(d.value):Promise.resolve(d.value).then(a,s)};l((r=r.apply(t,e)).next())})};var jh=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Zo:Zo.apply(null,arguments)},zC=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function Kh(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}var qh=function(t){ip(e,t);function e(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var i=t.apply(this,r)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,Yo([void 0],r[0].concat(this)))):new(e.bind.apply(e,Yo([void 0],r.concat(this))))},e}(Array),Zh=function(t){ip(e,t);function e(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var i=t.apply(this,r)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,Yo([void 0],r[0].concat(this)))):new(e.bind.apply(e,Yo([void 0],r.concat(this))))},e}(Array);function Tl(t){return Wt(t)?ji(t,function(){}):t}function Yh(t){return typeof t=="boolean"}function Xh(){return function(e){return Qh(e)}}function Qh(t){t===void 0&&(t={});var e=t.thunk,r=e===void 0?!0:e,o=t.immutableCheck,i=o===void 0?!0:o,a=t.serializableCheck,s=a===void 0?!0:a,l=new qh;if(r&&(Yh(r)?l.push(wl):l.push(wl.withExtraArgument(r.extraArgument))),0){if(i)var d;if(s)var f}return l}var _l=!0;function ap(t){var e=Xh(),r=t||{},o=r.reducer,i=o===void 0?void 0:o,a=r.middleware,s=a===void 0?e():a,l=r.devTools,d=l===void 0?!0:l,f=r.preloadedState,u=f===void 0?void 0:f,h=r.enhancers,y=h===void 0?void 0:h,C;if(typeof i=="function")C=i;else if(Kh(i))C=Xf(i);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var E=s;if(typeof E=="function"&&(E=E(e),!_l&&!Array.isArray(E)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!_l&&E.some(function(L){return typeof L!="function"}))throw new Error("each middleware provided to configureStore must be a function");var R=Qf.apply(void 0,E),N=Zo;d&&(N=jh($r({trace:!_l},typeof d=="object"&&d)));var I=new Zh(R),$=I;Array.isArray(y)?$=Yo([R],y):typeof y=="function"&&($=y(I));var A=N.apply(void 0,$);return Al(C,u,A)}function Dr(t,e){function r(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];if(e){var a=e.apply(void 0,o);if(!a)throw new Error("prepareAction did not return an object");return $r($r({type:t,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:t,payload:o[0]}}return r.toString=function(){return""+t},r.type=t,r.match=function(o){return o.type===t},r}function sp(t){var e={},r=[],o,i={addCase:function(a,s){var l=typeof a=="string"?a:a.type;if(l in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[l]=s,i},addMatcher:function(a,s){return r.push({matcher:a,reducer:s}),i},addDefaultCase:function(a){return o=a,i}};return t(i),[e,r,o]}function Jh(t){return typeof t=="function"}function e3(t,e,r,o){r===void 0&&(r=[]);var i=typeof e=="function"?sp(e):[e,r,o],a=i[0],s=i[1],l=i[2],d;if(Jh(t))d=function(){return Tl(t())};else{var f=Tl(t);d=function(){return f}}function u(h,y){h===void 0&&(h=d());var C=Yo([a[y.type]],s.filter(function(E){var R=E.matcher;return R(y)}).map(function(E){var R=E.reducer;return R}));return C.filter(function(E){return!!E}).length===0&&(C=[l]),C.reduce(function(E,R){if(R)if(yr(E)){var N=E,I=R(N,y);return I===void 0?E:I}else{if(Wt(E))return ji(E,function($){return R($,y)});var I=R(E,y);if(I===void 0){if(E===null)return E;throw Error("A case reducer on a non-draftable value must not return undefined")}return I}return E},h)}return u.getInitialState=d,u}function t3(t,e){return t+"/"+e}function lp(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:Tl(t.initialState),o=t.reducers||{},i=Object.keys(o),a={},s={},l={};i.forEach(function(u){var h=o[u],y=t3(e,u),C,E;"reducer"in h?(C=h.reducer,E=h.prepare):C=h,a[u]=C,s[y]=C,l[u]=E?Dr(y,E):Dr(y)});function d(){var u=typeof t.extraReducers=="function"?sp(t.extraReducers):[t.extraReducers],h=u[0],y=h===void 0?{}:h,C=u[1],E=C===void 0?[]:C,R=u[2],N=R===void 0?void 0:R,I=$r($r({},y),s);return e3(r,function($){for(var A in I)$.addCase(A,I[A]);for(var L=0,k=E;L<k.length;L++){var U=k[L];$.addMatcher(U.matcher,U.reducer)}N&&$.addDefaultCase(N)})}var f;return{name:e,reducer:function(u,h){return f||(f=d()),f(u,h)},actions:l,caseReducers:a,getInitialState:function(){return f||(f=d()),f.getInitialState()}}}var r3="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",o3=function(t){t===void 0&&(t=21);for(var e="",r=t;r--;)e+=r3[Math.random()*64|0];return e},n3=["name","message","stack","code"],kl=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),op=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),i3=function(t){if(typeof t=="object"&&t!==null){for(var e={},r=0,o=n3;r<o.length;r++){var i=o[r];typeof t[i]=="string"&&(e[i]=t[i])}return e}return{message:String(t)}},FC=function(){function t(e,r,o){var i=Dr(e+"/fulfilled",function(u,h,y,C){return{payload:u,meta:Rl($r({},C||{}),{arg:y,requestId:h,requestStatus:"fulfilled"})}}),a=Dr(e+"/pending",function(u,h,y){return{payload:void 0,meta:Rl($r({},y||{}),{arg:h,requestId:u,requestStatus:"pending"})}}),s=Dr(e+"/rejected",function(u,h,y,C,E){return{payload:C,error:(o&&o.serializeError||i3)(u||"Rejected"),meta:Rl($r({},E||{}),{arg:y,requestId:h,rejectedWithValue:!!C,requestStatus:"rejected",aborted:u?.name==="AbortError",condition:u?.name==="ConditionError"})}}),l=!1,d=typeof AbortController<"u"?AbortController:function(){function u(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return u.prototype.abort=function(){},u}();function f(u){return function(h,y,C){var E=o?.idGenerator?o.idGenerator(u):o3(),R=new d,N,I=!1;function $(L){N=L,R.abort()}var A=function(){return Vh(this,null,function(){var L,k,U,Y,le,ae,q;return Bh(this,function(x){switch(x.label){case 0:return x.trys.push([0,4,,5]),Y=(L=o?.condition)==null?void 0:L.call(o,u,{getState:y,extra:C}),s3(Y)?[4,Y]:[3,2];case 1:Y=x.sent(),x.label=2;case 2:if(Y===!1||R.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return I=!0,le=new Promise(function(w,V){return R.signal.addEventListener("abort",function(){return V({name:"AbortError",message:N||"Aborted"})})}),h(a(E,u,(k=o?.getPendingMeta)==null?void 0:k.call(o,{requestId:E,arg:u},{getState:y,extra:C}))),[4,Promise.race([le,Promise.resolve(r(u,{dispatch:h,getState:y,extra:C,requestId:E,signal:R.signal,abort:$,rejectWithValue:function(w,V){return new kl(w,V)},fulfillWithValue:function(w,V){return new op(w,V)}})).then(function(w){if(w instanceof kl)throw w;return w instanceof op?i(w.payload,E,u,w.meta):i(w,E,u)})])];case 3:return U=x.sent(),[3,5];case 4:return ae=x.sent(),U=ae instanceof kl?s(null,E,u,ae.payload,ae.meta):s(ae,E,u),[3,5];case 5:return q=o&&!o.dispatchConditionRejection&&s.match(U)&&U.meta.condition,q||h(U),[2,U]}})})}();return Object.assign(A,{abort:$,requestId:E,arg:u,unwrap:function(){return A.then(a3)}})}}return Object.assign(f,{pending:a,rejected:s,fulfilled:i,typePrefix:e})}return t.withTypes=function(){return t},t}();function a3(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function s3(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var cp="listener",dp="completed",fp="cancelled",UC="task-"+fp,HC="task-"+dp,GC=cp+"-"+fp,WC=cp+"-"+dp;var Ml="listenerMiddleware";var VC=Dr(Ml+"/add"),jC=Dr(Ml+"/removeAll"),KC=Dr(Ml+"/remove");var np,qC=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(np||(np=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},l3=function(t){return function(e){setTimeout(e,t)}},ZC=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:l3(10);Gf();window.ftReduxStores||(window.ftReduxStores={});var bo=class t extends mr{static get(e){var r;let o=typeof e=="string"?e:e.name,i=typeof e=="string"?void 0:e,a=window.ftReduxStores[o];if(Vo(a))return a;if(i==null)return;let s=lp({...i,reducers:(r=i.reducers)!==null&&r!==void 0?r:{}}),l=ap({reducer:(d,f)=>{if(f.type==="CLEAR_FT_REDUX_STORE"){let u=no(s.getInitialState());for(let h of f.keeping)u[h]=(d??u)[h];return u}else if(typeof f.type=="string"&&f.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...d,...f.overwrites};return s.reducer(d,f)}});return window.ftReduxStores[i.name]=new t(s,l,i.eventBus)}constructor(e,r,o){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new Hn;let i=a=>a!=null?JSON.parse(JSON.stringify(a)):a;this.actions=new Proxy(this.reduxSlice.actions,{get:(a,s,l)=>{let d=s,f=a[d];return f?(...u)=>{let h=f(...u.map(i));return this.reduxStore.dispatch(h),h}:u=>{this.setState({[d]:i(u)})}}}),this.eventBus=o??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()}};function c3(){var t;for(let e of Object.values((t=window.ftReduxStores)!==null&&t!==void 0?t:{}))Vo(e)&&e.clear()}var qi=class{constructor(e,r,o){this.store=e,this.valueSelector=r,this.callback=o}watch(){return this.stop(),this.lastValue=this.valueSelector(this.store.getState()),this.unsubscribe=this.store.subscribe(()=>{let e=this.store.getState(),r=this.valueSelector(e);Ut(this.lastValue,r)&&(this.callback(r,e),this.lastValue=r)}),this}stop(){return this.unsubscribe!=null&&(this.unsubscribe(),this.unsubscribe=void 0),this.lastValue=void 0,this}};function d3(t,e,r){return new qi(t,e,r).watch()}var Nl=class{constructor(){this.requestConsumers=new Map}getOrCreateRequestConsumers(e){var r;return(r=this.requestConsumers.get(e))!==null&&r!==void 0?r:this.requestConsumers.set(e,new Set).get(e)}registerComponent(e,r){for(let o of r)this.getOrCreateRequestConsumers(o).add(e).size==1&&this.onNewNeededRequest(o)}unregisterComponent(e,r){for(let o of r)this.getOrCreateRequestConsumers(o).delete(e)}isRequestNeeded(e){return this.getOrCreateRequestConsumers(e).size>0}};var $l={};ne($l,{scrollHelper:()=>f3});var Il,Zi=new Map,zl=class{lock(e,r){if(r){let o=Zi.get(r);if(o==null||o===e)return Zi.set(r,e),r}}release(e,r){r&&Zi.get(r)===e&&Zi.delete(r)}findFirstScrollableParent(e){var r;let o,i;for(let a of ss(e)){let s=a,l=this.elementCanScroll(s);if(l&&s.clientHeight&&s.clientHeight<s.scrollHeight){o=s;break}else l&&i==null&&(i=s)}return(r=o??i)!==null&&r!==void 0?r:document.body}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)&&!["contents"].includes(getComputedStyle(e).display)}catch{return!1}}getAbsoluteScrollOffset(e,r){var o,i;let a=0;for(;r&&r.offsetParent!==e.offsetParent;)a+=(o=r.offsetTop)!==null&&o!==void 0?o:0,r=r.offsetParent;return a+((i=r?.offsetTop)!==null&&i!==void 0?i:0)-e.offsetTop}computeTopOffsetRatio(e,r){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return r;default:return 0}}scrollIntoViewIfPossible(e,r){let o=this.findFirstScrollableParent(e);if(e&&this.lock(this,o)){let i=this.getAbsoluteScrollOffset(o,e),a=i-o.clientHeight+e.clientHeight,s=i,l=oo(0,(s-o.scrollTop)/(s-a),1),d=this.computeTopOffsetRatio(r?.position,l)*(a-s)+s;o.scrollTo({behavior:r?.behavior,top:d})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,o);this.release(this,o)}};window.FluidTopicsScrollHelper=(Il=window.FluidTopicsScrollHelper)!==null&&Il!==void 0?Il:new zl;var f3=window.FluidTopicsScrollHelper;var Bl={};ne(Bl,{SearchPlaceConverter:()=>Fr,SearchPlaceQueryParams:()=>he,isSearchPlaceQueryParams:()=>Yp,serializeRequest:()=>m3});var u3=q0(up(),1);var hp;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(hp||(hp={}));var mp;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(mp||(mp={}));var gp;(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"})(gp||(gp={}));var yp;(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"})(yp||(yp={}));var bp;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(bp||(bp={}));var vp;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(vp||(vp={}));var xp;(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"})(xp||(xp={}));var Sp;(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"})(Sp||(Sp={}));var Cp;(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"})(Cp||(Cp={}));var Op;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Op||(Op={}));var Ep;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Ep||(Ep={}));var Lp;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Lp||(Lp={}));var Ap;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Ap||(Ap={}));var wp;(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"})(wp||(wp={}));var Qo;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(Qo||(Qo={}));var Rp;(function(t){t.ASC="ASC",t.DESC="DESC"})(Rp||(Rp={}));var _p;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(_p||(_p={}));var Dl;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(Dl||(Dl={}));var $p=t=>Object.keys(Dl).includes(t);var kp;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(kp||(kp={}));var Tp;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Tp||(Tp={}));var Mp;(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"})(Mp||(Mp={}));var Jo;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Jo||(Jo={}));var Dp=t=>Object.keys(Jo).includes(t);var Np;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Np||(Np={}));var Pp;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Pp||(Pp={}));var Ip;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Ip||(Ip={}));var De;(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"})(De||(De={}));var Mt;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(Mt||(Mt={}));var zp;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(zp||(zp={}));var Bp;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Bp||(Bp={}));var Fp;(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.OTHER="OTHER"})(Fp||(Fp={}));var Up;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(Up||(Up={}));var Hp;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Hp||(Hp={}));var Gp;(function(t){t.USER="USER",t.ASSISTANT="ASSISTANT"})(Gp||(Gp={}));var Wp;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Wp||(Wp={}));var Vp;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(Vp||(Vp={}));var jp;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(jp||(jp={}));var p3={[De.PERSONAL_BOOK_SHARE_USER]:[De.PERSONAL_BOOK_USER],[De.HTML_EXPORT_USER]:[De.PERSONAL_BOOK_USER],[De.PDF_EXPORT_USER]:[De.PERSONAL_BOOK_USER],[De.KHUB_ADMIN]:[De.CONTENT_PUBLISHER],[De.ADMIN]:[De.KHUB_ADMIN,De.USERS_ADMIN,De.PORTAL_ADMIN,De.BEHAVIOR_DATA_USER],[De.GENERATIVE_AI_EXPORT_USER]:[De.GENERATIVE_AI_USER]};function Kp(t,e){return t===e||(p3[t]??[]).some(r=>Kp(r,e))}function qp(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(o=>Kp(o,e))}function h3(t){return`"${t}"`}function Zp(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function m3(t,e){return new Fr(t).serialize(e)}var he;(function(t){t.LOCALE="content-lang",t.QUERY="query",t.SCOPE="scope",t.FILTERS="filters",t.VIRTUAL_FIELD="virtual-field",t.PERIOD="period",t.VALUE_FILTERS="value-filters",t.DATE_FILTERS="date-filters",t.RANGE_FILTERS="range-filters",t.SORT="sort",t.PER_PAGE="per-page",t.KEYWORD_MATCH="keyword-match"})(he||(he={}));var g3=new Set(Object.values(he));function Yp(t){return g3.has(t)}var Fr=class{constructor(e,r=20,o=!1,i="en-US"){this.baseUrl=e,this.defaultPerPage=r,this.allLanguagesAllowed=o,this.defaultContentLocale=i,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"},this.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]]}serialize(e,r){return this.serializeToCurrentPageIfPossible(e,r??"/search")}serializeToCurrentPageIfPossible(e,r){let o=r==null||r.trim().length===0,i=new URL(o?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${r}`);return i.search=this.toURLSearchParams(e),i.toString()}toURLSearchParams(e,r=!1){var o,i,a,s,l,d,f,u,h,y,C;let E=new URLSearchParams;e.contentLocale?(!r||e.contentLocale!==this.defaultContentLocale)&&E.append(he.LOCALE,e.contentLocale):E.append(he.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((o=e.query)===null||o===void 0?void 0:o.length)>0&&E.append(he.QUERY,e.query);let R=(a=(i=e.metadataFilters)===null||i===void 0?void 0:i.filter(L=>L.valueFilter&&!L.valueFilter.negative))!==null&&a!==void 0?a:[];if(R.length>0){let L=R.map(k=>{var U,Y;let le=((Y=(U=k.valueFilter)===null||U===void 0?void 0:U.values)!==null&&Y!==void 0?Y:[]).map(ae=>this.escapeFilters(ae)).map(ae=>h3(Zp(ae))).join("_");return`${k.key}~${le}`}).join("*");E.append(he.VALUE_FILTERS,L)}let N=(l=(s=e.metadataFilters)===null||s===void 0?void 0:s.filter(L=>L.dateFilter))!==null&&l!==void 0?l:[];if(N.length>0){let L=N.map(k=>{var U;return`${k.key}~${(U=k.dateFilter)===null||U===void 0?void 0:U.type.toLowerCase()}`}).join("*");E.append(he.DATE_FILTERS,L)}let I=(f=(d=e.metadataFilters)===null||d===void 0?void 0:d.filter(L=>L.rangeFilter))!==null&&f!==void 0?f:[];if(I.length>0){let L=I.map(k=>{var U,Y;return`${k.key}~${(U=k.rangeFilter)===null||U===void 0?void 0:U.from}_${(Y=k.rangeFilter)===null||Y===void 0?void 0:Y.to}`}).join("*");E.append(he.RANGE_FILTERS,L)}e.virtualField&&e.virtualField!=="EVERYWHERE"&&E.append(he.VIRTUAL_FIELD,e.virtualField.toLowerCase()),e.scope&&e.scope!=="DEFAULT"&&E.append(he.SCOPE,e.scope.toLowerCase()),e.sortId!=null&&E.append(he.SORT,e.sortId),!((u=e.paging)===null||u===void 0)&&u.perPage&&((y=(h=e.paging)===null||h===void 0?void 0:h.perPage)!==null&&y!==void 0?y:this.defaultPerPage)!=this.defaultPerPage&&E.append(he.PER_PAGE,String(e.paging.perPage)),e.keywordMatch!=null&&E.append(he.KEYWORD_MATCH,e.keywordMatch.toLowerCase());let $=(C=e.otherQueryParams)!==null&&C!==void 0?C:{};for(let L in $)E.append(L,$[L]);let A=new Array;return E.forEach((L,k)=>{A.push(this.encodeQueryString(k)+"="+this.encodeQueryString(L))}),encodeURI(A.join("&")).replace(/#/g,"%23")}encodeQueryString(e){return encodeURIComponent(e).replace(/%20/g,"+")}parse(e){var r;let o=e.split("?"),i=this.fromURLSearchParams(o.slice(1).join("?")),a=o[0].split("/search/")[1];return a==null?i:{...i,scope:(r=this.scopeMapping[a])!==null&&r!==void 0?r:i.scope}}fromURLSearchParams(e){var r,o,i,a,s,l;try{e=decodeURI(e).replace(/%23/g,"#")}catch(I){console.warn("Could not decode search request query params, fallback on raw value",I)}let d=new URLSearchParams(e),f=d.get(he.LOCALE)==="all"?void 0:d.get(he.LOCALE),u=((r=d.get(he.VIRTUAL_FIELD))!==null&&r!==void 0?r:"EVERYWHERE").toUpperCase(),h=(o=d.get(he.SORT))===null||o===void 0?void 0:o.toLowerCase(),y=(i=d.get(he.SCOPE))!==null&&i!==void 0?i:"default",C=+((a=d.get(he.PER_PAGE))!==null&&a!==void 0?a:this.defaultPerPage),E=d.get(he.KEYWORD_MATCH),R=E?E.toUpperCase()===Qo.MANDATORY?Qo.MANDATORY:Qo.OPTIONAL:void 0,N={};for(let I of d.keys())Yp(I)||(N[I]=d.get(I));return{contentLocale:f??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:(s=d.get(he.QUERY))!==null&&s!==void 0?s:"",scope:(l=this.scopeMapping[y])!==null&&l!==void 0?l:"DEFAULT",virtualField:$p(u)?u:"EVERYWHERE",sortId:h,metadataFilters:this.parseCompatFilters(d),facets:[],paging:{page:1,perPage:oo(1,isNaN(C)?this.defaultPerPage:C,1e3)},keywordMatch:R,otherQueryParams:N}}parseCompatFilters(e){var r,o,i,a,s,l;let d=[];return e.has(he.FILTERS)&&(d=this.parseValueFilters((r=e.get(he.FILTERS))!==null&&r!==void 0?r:"")),(o=e.has(he.PERIOD))!==null&&o!==void 0&&o&&(d=[...d,...this.parseLegacyPeriodFilter(((i=e.get(he.PERIOD))!==null&&i!==void 0?i:"").toUpperCase())]),[...d,...this.parseValueFilters((a=e.get(he.VALUE_FILTERS))!==null&&a!==void 0?a:""),...this.parseDateFilters((s=e.get(he.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=e.get(he.RANGE_FILTERS))!==null&&l!==void 0?l:"")]}splitUnknownFilter(e){return this.superEscapeFilters(e).split("*").map(r=>r.split("~"))}parseValueFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(r=>({key:r[0],valueFilter:{values:r[1].split("_").map(Zp).map(o=>this.unescapeFilterValue(o)),negative:!1}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(r=>({key:r[0],dateFilter:{type:Jo[r[1].toUpperCase()]}}))}parseRangeFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(r=>({key:r[0],rangeFilter:{from:r[1].split("_")[0],to:r[1].split("_")[1]}}))}escapeFilters(e){for(let[r,o,i]of this.filtersEscapeMapping)e=e.replaceAll(r,o);return e}superEscapeFilters(e){for(let[r,o,i]of this.filtersEscapeMapping)e=e.replaceAll(o,i);return e}unescapeFilterValue(e){for(let[r,o,i]of this.filtersEscapeMapping)e=e.replace(i,r);return e}parseLegacyPeriodFilter(e){if(Dp(e))return[{key:"ft:lastEdition",dateFilter:{type:Jo[e]}}];if(e.startsWith("CUSTOM_")){let[r,o,i]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:o,to:i}}]}return[]}};var Hl={};ne(Hl,{toFtFormComponent:()=>Ul});var Fl=Symbol("elementInternals"),Ul=Ze(Symbol("toFtFormComponent"),function(t){class e extends t{static get formAssociated(){return!0}get form(){return this[Fl].form}constructor(...o){super(o),this[Fl]=this.attachInternals()}setFormValue(o){this[Fl].setFormValue(o)}}return e});var Gl={};ne(Gl,{DateFormatter:()=>vo});var vo=class{static format(e,r,o,i,a){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(o,i,!!a)):this.getIntlDateTime(e,r,o,i,!!a)}static getMomentDateFormat(e,r,o){return o?"LT":e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,o,i,a){let s=typeof e=="string"?new Date(e):e,l=new Intl.DateTimeFormat(r,{dateStyle:o?"medium":"short"}).format(s),d=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(s);return a?d:i?`${l} ${d}`:l}static getTimezoneAsString(){let e=o=>String(Math.floor(o)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${e(Math.abs(r)/60)}:${e(Math.abs(r)%60)}`}};var Vl={};ne(Vl,{ALL_KEYS_VALUE:()=>Wl,SameWindowStorageEvent:()=>en});var Wl="__all__",en=class extends CustomEvent{constructor(e,r,o){super("same-window-storage",{detail:{key:e,oldValue:r,newValue:o}})}keyMatch(e){return this.detail.key.includes(e)||this.detail.key==Wl}};Storage.prototype.setItem=new Proxy(Storage.prototype.setItem,{apply(t,e,r){let o=e.getItem(r[0]);Reflect.apply(t,e,r),window.dispatchEvent(new en(r[0],o,r[1]))}});Storage.prototype.removeItem=new Proxy(Storage.prototype.removeItem,{apply(t,e,r){let o=e.getItem(r[0]);Reflect.apply(t,e,r),window.dispatchEvent(new en(r[0],o))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(t,e,r){Reflect.apply(t,e,r),window.dispatchEvent(new en(Wl))}});var Kl={};ne(Kl,{FocusMainContentEvent:()=>jl});var jl=class extends Event{constructor(){super("ft-focus-main-content",{composed:!0,bubbles:!0})}};var Xp={};window.FluidTopicsA11yHints={isKeyboardNavigation:!1,lastPressedKey:""};function y3(t){(t.key==="Enter"||t.key===" "||t.key==="Tab")&&(window.FluidTopicsA11yHints.isKeyboardNavigation=!0),window.FluidTopicsA11yHints.lastPressedKey=t.key}function b3(t){window.FluidTopicsA11yHints.isKeyboardNavigation=t.detail==0}document.addEventListener("keydown",y3);document.addEventListener("click",b3);var Qi=T`
49
49
  .sr-only {
50
50
  position:absolute;
51
51
  left:-10000px;
@@ -704,7 +704,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
704
704
  position: relative;
705
705
  word-break: break-word;
706
706
  }
707
- `;var A3="ft-app-info",Oo=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Oo.eventName="authentication-change";var w3={session:(t,e)=>{Ue(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>W.dispatchEvent(new Oo(e.payload)),0))}},W=bo.get({name:A3,reducers:w3,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],availableContentLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}});var ra=function(t,e,r,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},tw=Ze(Symbol("withDateFormat"),function(t){class e extends t{constructor(...o){super(o),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(W)}dateFormatOptionsChanged(o){return o.has("metadataDescriptors")||o.has("useLongDateFormat")||o.has("useDateTimeFormat")||o.has("uiLocale")}getDateFormatter(o){var i,a;return((a=(i=this.metadataDescriptors.find(l=>l.key===o))===null||i===void 0?void 0:i.date)!==null&&a!==void 0?a:!1)?l=>vo.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return ra([g({type:Boolean})],e.prototype,"useLongDateFormat",void 0),ra([g({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),ra([Wo({store:W.name,selector:r=>{var o,i;return(i=(o=r.metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&i!==void 0?i:[]}})],e.prototype,"metadataDescriptors",void 0),ra([Wo({store:W.name})],e.prototype,"uiLocale",void 0),e});var Eo=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:o}=W.getState(),i=e??o;if(r&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,i,!0)}static await(e){return new Promise(r=>{let o=t.get(e);if(o)r(o);else{let i=W.subscribe(()=>{o=t.get(e),o&&(i(),r(o))})}})}};var oa=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Eo.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Eo.await()}};var St=class extends oa{constructor(e=!0,r){var o;super(r),this.sortObjectFields=(a,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([l],[d])=>l.localeCompare(d)));let i=this.constructor;i.commonCache=(o=i.commonCache)!==null&&o!==void 0?o:new Qt,this.cache=e?i.commonCache:new Qt}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((r,o)=>0|31*r+o.charCodeAt(0),0))}};var na=class extends St{async listMySearches(){let{session:e}=W.getState();return qp(e,De.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var ia=class extends St{async listMyBookmarks(){let e=W.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var aa=class extends St{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=W.getState().session;return!!e?.sessionAuthenticated}};var sa=class extends St{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let e=W.getState().session;return!!e?.sessionAuthenticated}};var R3="ft-user-assets",_3={setAssetCount:(t,e)=>{let{userAssetType:r,count:o}=e.payload.assetCount;t.assetCounts.allAsset[r]=o},clearAssetCount:t=>{Object.values(Mt).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:o,asset:i}=e.payload;lc(t,r,[...sc(t,r),i]),P1(t,r,1,o),I1(t,i)},editAsset:(t,e)=>{let{assetType:r,asset:o}=e.payload;lc(t,r,sc(t,r).map(i=>i.id===o.id?o:i)),I1(t,o)},removeAsset:(t,e)=>{let{assetType:r,mapId:o,assetId:i}=e.payload;lc(t,r,sc(t,r).filter(a=>a.id!==i)),P1(t,r,-1,o)}},z1={[Mt.SEARCHES]:"savedSearches",[Mt.BOOKMARKS]:"bookmarks",[Mt.BOOKS]:void 0,[Mt.COLLECTIONS]:void 0},sc=(t,e)=>{var r;let o=z1[e];return o?(r=t[o])!==null&&r!==void 0?r:[]:[]},lc=(t,e,r)=>{let o=z1[e];o&&(t[o]=r)},P1=(t,e,r,o)=>{let i=t.assetCounts.allAsset[e];if(i!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,i+r),e===Mt.BOOKMARKS&&o)){let a=t.assetCounts.bookmarkByMap[o];t.assetCounts.bookmarkByMap[o]=Math.max(0,a+r)}},I1=(t,e)=>{let r=t.assetLabels.map(i=>i.title),o=e.labels.filter(i=>!r.includes(i)).map(i=>({title:i}));t.assetLabels.push(...o)},Ct=bo.get({name:R3,reducers:_3,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Mt).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),cc=class{constructor(e=new aa,r=new sa){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=W.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new ia,this.savedSearchesService=new na,W.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=W.getState();Ue((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(),Ct.actions.clearAssetCount(),Ct.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Ct.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Ct.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Ct.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();Ct.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&Ct.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&Ct.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(Ct.getState().assetCounts.bookmarkByMap).length!==0;e===Mt.BOOKMARKS&&r&&Ct.actions.clearBookmarkCountByMap(),Ct.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;Ct.actions.bookmarks(r)}}},k3=new cc;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=k3);var dc=class{addCommand(e,r=!1){W.commands.add(e,r)}consumeCommand(e){return W.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new dc;var $1,fn=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},T3=Symbol("clearAfterUnitTest"),la=class extends Pi(St){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[$1]=()=>{this.defaultMessages={},this.cache=new Qt,this.listeners={}},this.currentUiLocale=W.getState().uiLocale,W.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=W.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let r=e.name.toLowerCase();this.cache.setFinal(r,e),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,r){var o;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let i={...(o=this.defaultMessages[e])!==null&&o!==void 0?o:{},...r};Ue(this.defaultMessages[e],i)||(this.defaultMessages[e]=i,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,o;return this.fetchContext(e),(o=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&o!==void 0?o:{}}resolveRawMessage(e,r){let o=e.toLowerCase();return this.resolveContext(o)[r]}resolveMessage(e,r,...o){var i;let a=e.toLowerCase(),s=this.resolveContext(a);return new Nr((i=this.defaultMessages[a])!==null&&i!==void 0?i:{},s).resolve(r,...o)}async fetchContext(e){let r=!this.cache.has(e),o;try{o=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(i){!(i instanceof ro)&&r&&console.error(i)}return o}subscribe(e,r){var o;return e=e.toLowerCase(),this.listeners[e]=(o=this.listeners[e])!==null&&o!==void 0?o:new Set,this.listeners[e].add(r),()=>{var i;return(i=this.listeners[e])===null||i===void 0?void 0:i.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new fn({loadedContexts:e})),this.dispatchEvent(new fn({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new fn({loadedContexts:[e]})),this.dispatchEvent(new fn({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(o=>Mi(0).then(()=>o()).catch(()=>null)))}};$1=T3;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends la{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends la{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var Qn=window.FluidTopicsI18nService,fc=window.FluidTopicsCustomI18nService;var pc=class{highlightHtml(e,r,o){il(e,r,o)}};window.FluidTopicsHighlightHtmlService=new pc;var uc=class{isDate(e){var r,o,i,a;return(a=(i=((o=(r=W.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&o!==void 0?o:[]).find(l=>l.key===e))===null||i===void 0?void 0:i.date)!==null&&a!==void 0?a:!1}format(e,r){var o,i,a;if(e==null)return"";try{return vo.format(e,(o=r?.locale)!==null&&o!==void 0?o:W.getState().uiLocale,(i=r?.longFormat)!==null&&i!==void 0?i:!1,(a=r?.withTime)!==null&&a!==void 0?a:!1)}catch(s){throw console.error(`Date ${JSON.stringify(e)} is not valid`,s),s}}};window.FluidTopicsDateService=new uc;var Jn=class{static get(e,r){var o,i;let a=W.getState(),{lang:s,region:l}=(i=(o=a.defaultLocales)===null||o===void 0?void 0:o.defaultContentLocale)!==null&&i!==void 0?i:{lang:"en",region:"US"};return new Fr(a.baseUrl,e??20,a.searchInAllLanguagesAllowed,r??`${s}-${l}`)}};var hc=class{urlToSearchRequest(e){return Jn.get().parse(e)}searchRequestToUrl(e){return Jn.get().serialize(e)}};window.FluidTopicsUrlService=new hc;var Lo=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Lo.eventName="change";var mc=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))}},D1=new mc;var ca=class t extends mr{static build(){return new t(window.history,D1,()=>window.location,!1)}constructor(e,r,o,i){var a,s;super(),this.history=e,this.historyStorage=r,this.windowLocation=o,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(a=e.state)===null||a===void 0?void 0:a.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(i)}setCurrentState(e,r=!1){let o=r&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,o&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),Ue(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new Lo(this.currentItem())),0)}installProxies(){let e=r=>(o,i,[a,s,l])=>{let d=r(),f={...d===this.currentIndex?this.currentState:void 0,...a,index:d,href:typeof l=="string"?l:(l??this.windowLocation()).href};o.apply(i,[f,s,l]),this.setCurrentState(f,!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 o={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(o)}addHistoryChangeListener(e){this.addEventListener(Lo.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Lo.eventName,e)}currentItem(){return no(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 no(this.states[this.previousDifferentMajorPosition()])}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 no(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 o=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!o)return e;let i=e,a=e+1;for(;this.states.length>a&&!this.isDifferentMajorState(a,o);)this.hasState(a)&&(i=a),a++;return i}buildCurrentState(){var e,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&r!==void 0?r:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,r){var o;if(!this.hasState(e))return!1;let i=r??this.currentState.majorStateId,a=(o=this.states[e])===null||o===void 0?void 0:o.majorStateId;return a==null||a!=i}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=ca.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t)});var B1=T`
707
+ `;var A3="ft-app-info",Oo=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Oo.eventName="authentication-change";var w3={session:(t,e)=>{Ue(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>W.dispatchEvent(new Oo(e.payload)),0))}},W=bo.get({name:A3,reducers:w3,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],availableContentLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}});var ra=function(t,e,r,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},tw=Ze(Symbol("withDateFormat"),function(t){class e extends t{constructor(...o){super(o),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(W)}dateFormatOptionsChanged(o){return o.has("metadataDescriptors")||o.has("useLongDateFormat")||o.has("useDateTimeFormat")||o.has("uiLocale")}getDateFormatter(o){var i,a;return((a=(i=this.metadataDescriptors.find(l=>l.key===o))===null||i===void 0?void 0:i.date)!==null&&a!==void 0?a:!1)?l=>vo.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return ra([g({type:Boolean})],e.prototype,"useLongDateFormat",void 0),ra([g({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),ra([Wo({store:W.name,selector:r=>{var o,i;return(i=(o=r.metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&i!==void 0?i:[]}})],e.prototype,"metadataDescriptors",void 0),ra([Wo({store:W.name})],e.prototype,"uiLocale",void 0),e});var Eo=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:o}=W.getState(),i=e??o;if(r&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,i,!0)}static await(e){return new Promise(r=>{let o=t.get(e);if(o)r(o);else{let i=W.subscribe(()=>{o=t.get(e),o&&(i(),r(o))})}})}};var oa=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Eo.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Eo.await()}};var St=class extends oa{constructor(e=!0,r){var o;super(r),this.sortObjectFields=(a,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([l],[d])=>l.localeCompare(d)));let i=this.constructor;i.commonCache=(o=i.commonCache)!==null&&o!==void 0?o:new Qt,this.cache=e?i.commonCache:new Qt}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((r,o)=>0|31*r+o.charCodeAt(0),0))}};var na=class extends St{async listMySearches(){let{session:e}=W.getState();return qp(e,De.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var ia=class extends St{async listMyBookmarks(){let e=W.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var aa=class extends St{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=W.getState().session;return!!e?.sessionAuthenticated}};var sa=class extends St{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let e=W.getState().session;return!!e?.sessionAuthenticated}};var R3="ft-user-assets",_3={setAssetCount:(t,e)=>{let{userAssetType:r,count:o}=e.payload.assetCount;t.assetCounts.allAsset[r]=o},clearAssetCount:t=>{Object.values(Mt).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:o,asset:i}=e.payload;lc(t,r,[...sc(t,r),i]),P1(t,r,1,o),I1(t,i)},editAsset:(t,e)=>{let{assetType:r,asset:o}=e.payload;lc(t,r,sc(t,r).map(i=>i.id===o.id?o:i)),I1(t,o)},removeAsset:(t,e)=>{let{assetType:r,mapId:o,assetId:i}=e.payload;lc(t,r,sc(t,r).filter(a=>a.id!==i)),P1(t,r,-1,o)}},z1={[Mt.SEARCHES]:"savedSearches",[Mt.BOOKMARKS]:"bookmarks",[Mt.BOOKS]:void 0,[Mt.COLLECTIONS]:void 0},sc=(t,e)=>{var r;let o=z1[e];return o?(r=t[o])!==null&&r!==void 0?r:[]:[]},lc=(t,e,r)=>{let o=z1[e];o&&(t[o]=r)},P1=(t,e,r,o)=>{let i=t.assetCounts.allAsset[e];if(i!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,i+r),e===Mt.BOOKMARKS&&o)){let a=t.assetCounts.bookmarkByMap[o];t.assetCounts.bookmarkByMap[o]=Math.max(0,a+r)}},I1=(t,e)=>{let r=t.assetLabels.map(i=>i.title),o=e.labels.filter(i=>!r.includes(i)).map(i=>({title:i}));t.assetLabels.push(...o)},Ct=bo.get({name:R3,reducers:_3,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Mt).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),cc=class{constructor(e=new aa,r=new sa){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=W.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new ia,this.savedSearchesService=new na,W.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=W.getState();Ue((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(),Ct.actions.clearAssetCount(),Ct.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Ct.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Ct.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Ct.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();Ct.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&Ct.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&Ct.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(Ct.getState().assetCounts.bookmarkByMap).length!==0;e===Mt.BOOKMARKS&&r&&Ct.actions.clearBookmarkCountByMap(),Ct.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;Ct.actions.bookmarks(r)}}},k3=new cc;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=k3);var dc=class{addCommand(e,r=!1){W.commands.add(e,r)}consumeCommand(e){return W.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new dc;var $1,fn=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},T3=Symbol("clearAfterUnitTest"),la=class extends Pi(St){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[$1]=()=>{this.defaultMessages={},this.cache=new Qt,this.listeners={}},this.currentUiLocale=W.getState().uiLocale,W.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=W.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let r=e.name.toLowerCase();this.cache.setFinal(r,e),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,r){var o;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let i={...(o=this.defaultMessages[e])!==null&&o!==void 0?o:{},...r};Ue(this.defaultMessages[e],i)||(this.defaultMessages[e]=i,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,o;return this.fetchContext(e),(o=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&o!==void 0?o:{}}resolveRawMessage(e,r){let o=e.toLowerCase();return this.resolveContext(o)[r]}resolveMessage(e,r,...o){var i;let a=e.toLowerCase(),s=this.resolveContext(a);return new Nr((i=this.defaultMessages[a])!==null&&i!==void 0?i:{},s).resolve(r,...o)}async fetchContext(e){let r=!this.cache.has(e),o;try{o=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(i){!(i instanceof ro)&&r&&console.error(i)}return o}subscribe(e,r){var o;return e=e.toLowerCase(),this.listeners[e]=(o=this.listeners[e])!==null&&o!==void 0?o:new Set,this.listeners[e].add(r),()=>{var i;return(i=this.listeners[e])===null||i===void 0?void 0:i.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new fn({loadedContexts:e})),this.dispatchEvent(new fn({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new fn({loadedContexts:[e]})),this.dispatchEvent(new fn({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(o=>Mi(0).then(()=>o()).catch(()=>null)))}};$1=T3;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends la{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends la{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var Qn=window.FluidTopicsI18nService,fc=window.FluidTopicsCustomI18nService;var pc=class{highlightHtml(e,r,o){il(e,r,o)}};window.FluidTopicsHighlightHtmlService=new pc;var uc=class{isDate(e){var r,o,i,a;return(a=(i=((o=(r=W.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&o!==void 0?o:[]).find(l=>l.key===e))===null||i===void 0?void 0:i.date)!==null&&a!==void 0?a:!1}format(e,r){var o,i,a,s;if(e==null)return"";try{return vo.format(e,(o=r?.locale)!==null&&o!==void 0?o:W.getState().uiLocale,(i=r?.longFormat)!==null&&i!==void 0?i:!1,(a=r?.withTime)!==null&&a!==void 0?a:!1,(s=r?.onlyTime)!==null&&s!==void 0?s:!1)}catch(l){throw console.error(`Date ${JSON.stringify(e)} is not valid`,l),l}}};window.FluidTopicsDateService=new uc;var Jn=class{static get(e,r){var o,i;let a=W.getState(),{lang:s,region:l}=(i=(o=a.defaultLocales)===null||o===void 0?void 0:o.defaultContentLocale)!==null&&i!==void 0?i:{lang:"en",region:"US"};return new Fr(a.baseUrl,e??20,a.searchInAllLanguagesAllowed,r??`${s}-${l}`)}};var hc=class{urlToSearchRequest(e){return Jn.get().parse(e)}searchRequestToUrl(e){return Jn.get().serialize(e)}};window.FluidTopicsUrlService=new hc;var Lo=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Lo.eventName="change";var mc=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))}},D1=new mc;var ca=class t extends mr{static build(){return new t(window.history,D1,()=>window.location,!1)}constructor(e,r,o,i){var a,s;super(),this.history=e,this.historyStorage=r,this.windowLocation=o,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(a=e.state)===null||a===void 0?void 0:a.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(i)}setCurrentState(e,r=!1){let o=r&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,o&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),Ue(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new Lo(this.currentItem())),0)}installProxies(){let e=r=>(o,i,[a,s,l])=>{let d=r(),f={...d===this.currentIndex?this.currentState:void 0,...a,index:d,href:typeof l=="string"?l:(l??this.windowLocation()).href};o.apply(i,[f,s,l]),this.setCurrentState(f,!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 o={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(o)}addHistoryChangeListener(e){this.addEventListener(Lo.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Lo.eventName,e)}currentItem(){return no(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 no(this.states[this.previousDifferentMajorPosition()])}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 no(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 o=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!o)return e;let i=e,a=e+1;for(;this.states.length>a&&!this.isDifferentMajorState(a,o);)this.hasState(a)&&(i=a),a++;return i}buildCurrentState(){var e,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&r!==void 0?r:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,r){var o;if(!this.hasState(e))return!1;let i=r??this.currentState.majorStateId,a=(o=this.states[e])===null||o===void 0?void 0:o.majorStateId;return a==null||a!=i}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=ca.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t)});var B1=T`
708
708
  `;function F1(t,e){let{authenticationRequired:r,session:o}=W.getState();return r&&!o?.sessionAuthenticated?Promise.resolve(e):t()}var Ve=function(t,e,r,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},Ce=class extends F{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.apiProvider=()=>Eo.get(),this.authenticationRequired=!1,this.messageContexts=[],this.cache=new Qt,this.cleanSessionDebouncer=new me,this.reloadConfiguration=()=>{this.cache.clear("availableContentLocales"),this.updateAvailableContentLocales()}}render(){return O`
709
709
  <slot></slot>
710
710
  `}connectedCallback(){super.connectedCallback(),W.addEventListener(Oo.eventName,this.reloadConfiguration)}disconnectedCallback(){W.addEventListener(Oo.eventName,this.reloadConfiguration),super.disconnectedCallback()}update(e){var r,o,i,a,s,l,d;super.update(e),e.has("baseUrl")&&(W.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&W.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&W.actions.apiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&W.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&W.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&W.actions.noCustom(this.noCustom),e.has("editorMode")&&W.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&W.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&W.actions.session(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(f=>Qn.addContext(f)),e.has("openExternalDocumentInNewTab")&&W.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&W.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&W.actions.forcedOffline(this.forcedOffline),e.has("localesConfiguration")&&(W.actions.defaultLocales((r=this.localesConfiguration)===null||r===void 0?void 0:r.defaultLocales),W.actions.availableUiLocales((i=(o=this.localesConfiguration)===null||o===void 0?void 0:o.availableUiLocales)!==null&&i!==void 0?i:[]),W.actions.searchInAllLanguagesAllowed((s=(a=this.localesConfiguration)===null||a===void 0?void 0:a.allLanguagesAllowed)!==null&&s!==void 0?s:!1)),e.has("authenticationRequired")&&W.actions.authenticationRequired(this.authenticationRequired),e.has("availableContentLocales")&&W.actions.availableContentLocales((d=(l=this.availableContentLocales)===null||l===void 0?void 0:l.contentLocales)!==null&&d!==void 0?d:[]),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration(),this.availableContentLocales==null&&this.updateAvailableContentLocales())}async updateSession(){this.session=await this.cache.get("session",async()=>{let e=await this.apiProvider().getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},e.idleTimeoutInMillis),e})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}async updateAvailableContentLocales(){this.availableContentLocales=await this.cache.get("availableContentLocales",()=>F1(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}))}};Ce.elementDefinitions={};Ce.styles=B1;Ve([g()],Ce.prototype,"baseUrl",void 0);Ve([g()],Ce.prototype,"apiIntegrationIdentifier",void 0);Ve([g()],Ce.prototype,"apiIntegrationAppVersion",void 0);Ve([g()],Ce.prototype,"uiLocale",void 0);Ve([Te(null)],Ce.prototype,"availableUiLocales",void 0);Ve([Te(null)],Ce.prototype,"metadataConfiguration",void 0);Ve([g({type:Boolean})],Ce.prototype,"editorMode",void 0);Ve([g({type:Boolean})],Ce.prototype,"noCustom",void 0);Ve([g({type:Boolean})],Ce.prototype,"openExternalDocumentInNewTab",void 0);Ve([g({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],Ce.prototype,"noCustomComponent",void 0);Ve([g({type:Boolean})],Ce.prototype,"withManualResources",void 0);Ve([g({type:Boolean})],Ce.prototype,"navigatorOnline",void 0);Ve([g({type:Boolean})],Ce.prototype,"forcedOffline",void 0);Ve([g({type:Object})],Ce.prototype,"apiProvider",void 0);Ve([g({type:Boolean})],Ce.prototype,"authenticationRequired",void 0);Ve([Te([])],Ce.prototype,"messageContexts",void 0);Ve([Te(void 0)],Ce.prototype,"session",void 0);Ve([H()],Ce.prototype,"localesConfiguration",void 0);Ve([H()],Ce.prototype,"availableContentLocales",void 0);K("ft-app-context")(Ce);var gc=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,o]=e.split(".");return{context:r,key:o,custom:r!=="officialContext",message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},pn=new gc;var M3=function(t,e,r,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},ti=Symbol("i18nAttributes"),U1=Symbol("i18nListAttributes"),H1=Symbol("i18nProperties"),da=Symbol("i18nContexts"),ei=Symbol("i18nUnsubs"),ua=Ze(Symbol("withI18n"),function(t){var e,r;class o extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[r]=new Map}getI18nService(a){return a??this.useCustomMessageContexts?fc:Qn}i18n(a){let{context:s,key:l,message:d}=a,{custom:f,args:u,argsProvider:h}=a;if(s&&l){this.hasI18nContext(s)||this.addI18nContext(s,void 0,f);let y=u??(h?h(this):[]);return this.getI18nService(f).resolveMessage(s,l,...y)}return d}async awaitI18n(a){let{context:s,custom:l}=a;return s&&await this.getI18nService(l).prepareContext(s),this.i18n(a)}customI18n(a,s){if(pn.isI18nKey(a)){let[l,d]=a.split(".");return this.i18n({custom:!0,context:l,key:d,...s})||a}return a}firstUpdated(a){super.firstUpdated(a),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(a){super.update(a),this.updateI18nAttributes((s,l,d)=>a.has(l)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(a){this.updateI18nAttributes((s,l,d)=>{var f;return((f=d?.context)===null||f===void 0?void 0:f.toLowerCase())===a}),this.updateI18nProperties(s=>s.context.toLowerCase()===a),this.requestUpdate()}updateI18nAttributes(a){var s,l;let d=this,f=(u,h,y)=>y?.context&&y.key&&a(u,h,y)?{...y,message:this.i18n({context:y.context,key:y.key,custom:y.custom,...u})}:y;(s=this[ti])===null||s===void 0||s.forEach((u,h)=>d[h]=f(u,h,d[h])),(l=this[U1])===null||l===void 0||l.forEach((u,h)=>{var y;return d[h]=(y=d[h])===null||y===void 0?void 0:y.map(C=>f(u,h,C))})}updateI18nProperties(a){var s;(s=this[H1])===null||s===void 0||s.forEach((l,d)=>{a(l,d)&&(this[d]=this.i18n(l))})}addI18nMessages(a,s,l){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(a,s,l)}addI18nContext(a,s,l){let d=(typeof a=="string"?a:a.name).toLowerCase();l=typeof a=="string"?l:a.custom,this[da].set(d,{isCustomContext:l}),this[ei].has(d)||this[ei].set(d,this.getI18nService(l).subscribe(d,()=>this.onI18nUpdate(d))),this.getI18nService(l).prepareContext(d,s)}hasI18nContext(a){return this[da].has(a.toLowerCase())}connectedCallback(){super.connectedCallback(),this[da].forEach((a,s)=>this.addI18nContext(s,void 0,a.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[ei].forEach(a=>a()),this[ei].clear()}}return e=da,r=ei,M3([g({type:Boolean})],o.prototype,"useCustomMessageContexts",void 0),o}),fa=class extends ua(F){},pa=class extends ua(Wn){};var yc=class{fromAttribute(e){if(!e)return[];try{let r=JSON.parse(e);return Array.isArray(r)?r.map(o=>typeof o=="string"?pn.fromAttribute(o):o):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},N3=new yc;var G1=(t,e)=>(r,o)=>{var i;r.constructor.createProperty(o,{type:Object,hasChanged:Ut,converter:pn,...e}),r[ti]=(i=r[ti])!==null&&i!==void 0?i:new Map,r[ti].set(o,t??{})};var W1=T`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-search-bar",
3
- "version": "2.0.11",
3
+ "version": "2.0.12",
4
4
  "description": "Search bar component using Fluid Topics public API",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,23 +19,23 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-accordion": "2.0.11",
23
- "@fluid-topics/ft-app-context": "2.0.11",
24
- "@fluid-topics/ft-button": "2.0.11",
25
- "@fluid-topics/ft-chip": "2.0.11",
26
- "@fluid-topics/ft-filter": "2.0.11",
27
- "@fluid-topics/ft-icon": "2.0.11",
28
- "@fluid-topics/ft-select": "2.0.11",
29
- "@fluid-topics/ft-size-watcher": "2.0.11",
30
- "@fluid-topics/ft-skeleton": "2.0.11",
31
- "@fluid-topics/ft-snap-scroll": "2.0.11",
32
- "@fluid-topics/ft-tooltip": "2.0.11",
33
- "@fluid-topics/ft-typography": "2.0.11",
34
- "@fluid-topics/ft-wc-utils": "2.0.11",
22
+ "@fluid-topics/ft-accordion": "2.0.12",
23
+ "@fluid-topics/ft-app-context": "2.0.12",
24
+ "@fluid-topics/ft-button": "2.0.12",
25
+ "@fluid-topics/ft-chip": "2.0.12",
26
+ "@fluid-topics/ft-filter": "2.0.12",
27
+ "@fluid-topics/ft-icon": "2.0.12",
28
+ "@fluid-topics/ft-select": "2.0.12",
29
+ "@fluid-topics/ft-size-watcher": "2.0.12",
30
+ "@fluid-topics/ft-skeleton": "2.0.12",
31
+ "@fluid-topics/ft-snap-scroll": "2.0.12",
32
+ "@fluid-topics/ft-tooltip": "2.0.12",
33
+ "@fluid-topics/ft-typography": "2.0.12",
34
+ "@fluid-topics/ft-wc-utils": "2.0.12",
35
35
  "lit": "3.1.0"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@fluid-topics/public-api": "1.0.117"
39
39
  },
40
- "gitHead": "aedc97fb65c7bafd16b7adef8218a58f59fea690"
40
+ "gitHead": "4811b3ed72672d41022c271d4a0d1db15b458aca"
41
41
  }