@fluid-topics/ft-search-facet 1.3.54 → 1.3.55
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.
|
@@ -540,7 +540,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
540
540
|
word-break: break-word;
|
|
541
541
|
}
|
|
542
542
|
`;var dl=["top","right","bottom","left"],cl=["start","end"],Za=dl.reduce((t,e)=>t.concat(e,e+"-"+cl[0],e+"-"+cl[1]),[]),pl=Math.min,ul=Math.max;var Hp={left:"right",right:"left",bottom:"top",top:"bottom"},Wp={start:"end",end:"start"};function qa(t,e,o){return ul(t,pl(e,o))}function tn(t,e){return typeof t=="function"?t(e):t}function qr(t){return t.split("-")[0]}function Kt(t){return t.split("-")[1]}function Ya(t){return t==="x"?"y":"x"}function Qa(t){return t==="y"?"height":"width"}function rn(t){return["top","bottom"].includes(qr(t))?"y":"x"}function Xa(t){return Ya(rn(t))}function fl(t,e,o){o===void 0&&(o=!1);let n=Kt(t),a=Xa(t),i=Qa(a),s=a==="x"?n===(o?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(s=Ka(s)),[s,Ka(s)]}function hl(t){return t.replace(/start|end/g,e=>Wp[e])}function Ka(t){return t.replace(/left|right|bottom|top/g,e=>Hp[e])}function Vp(t){return{top:0,right:0,bottom:0,left:0,...t}}function yl(t){return typeof t!="number"?Vp(t):{top:t,right:t,bottom:t,left:t}}function br(t){let{x:e,y:o,width:n,height:a}=t;return{width:n,height:a,top:o,left:e,right:e+n,bottom:o+a,x:e,y:o}}function ml(t,e,o){let{reference:n,floating:a}=t,i=rn(e),s=Xa(e),c=Qa(s),p=qr(e),u=i==="y",m=n.x+n.width/2-a.width/2,h=n.y+n.height/2-a.height/2,b=n[c]/2-a[c]/2,S;switch(p){case"top":S={x:m,y:n.y-a.height};break;case"bottom":S={x:m,y:n.y+n.height};break;case"right":S={x:n.x+n.width,y:h};break;case"left":S={x:n.x-a.width,y:h};break;default:S={x:n.x,y:n.y}}switch(Kt(e)){case"start":S[s]-=b*(o&&u?-1:1);break;case"end":S[s]+=b*(o&&u?-1:1);break}return S}var gl=async(t,e,o)=>{let{placement:n="bottom",strategy:a="absolute",middleware:i=[],platform:s}=o,c=i.filter(Boolean),p=await(s.isRTL==null?void 0:s.isRTL(e)),u=await s.getElementRects({reference:t,floating:e,strategy:a}),{x:m,y:h}=ml(u,n,p),b=n,S={},v=0;for(let E=0;E<c.length;E++){let{name:I,fn:N}=c[E],{x:_,y:D,data:$,reset:F}=await N({x:m,y:h,initialPlacement:n,placement:b,strategy:a,middlewareData:S,rects:u,platform:s,elements:{reference:t,floating:e}});m=_??m,h=D??h,S={...S,[I]:{...S[I],...$}},F&&v<=50&&(v++,typeof F=="object"&&(F.placement&&(b=F.placement),F.rects&&(u=F.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:a}):F.rects),{x:m,y:h}=ml(u,b,p)),E=-1)}return{x:m,y:h,placement:b,strategy:a,middlewareData:S}};async function Ja(t,e){var o;e===void 0&&(e={});let{x:n,y:a,platform:i,rects:s,elements:c,strategy:p}=t,{boundary:u="clippingAncestors",rootBoundary:m="viewport",elementContext:h="floating",altBoundary:b=!1,padding:S=0}=tn(e,t),v=yl(S),I=c[b?h==="floating"?"reference":"floating":h],N=br(await i.getClippingRect({element:(o=await(i.isElement==null?void 0:i.isElement(I)))==null||o?I:I.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(c.floating)),boundary:u,rootBoundary:m,strategy:p})),_=h==="floating"?{x:n,y:a,width:s.floating.width,height:s.floating.height}:s.reference,D=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c.floating)),$=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},F=br(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:_,offsetParent:D,strategy:p}):_);return{top:(N.top-F.top+v.top)/$.y,bottom:(F.bottom-N.bottom+v.bottom)/$.y,left:(N.left-F.left+v.left)/$.x,right:(F.right-N.right+v.right)/$.x}}function Gp(t,e,o){return(t?[...o.filter(a=>Kt(a)===t),...o.filter(a=>Kt(a)!==t)]:o.filter(a=>qr(a)===a)).filter(a=>t?Kt(a)===t||(e?hl(a)!==a:!1):!0)}var ei=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var o,n,a;let{rects:i,middlewareData:s,placement:c,platform:p,elements:u}=e,{crossAxis:m=!1,alignment:h,allowedPlacements:b=Za,autoAlignment:S=!0,...v}=tn(t,e),E=h!==void 0||b===Za?Gp(h||null,S,b):b,I=await Ja(e,v),N=((o=s.autoPlacement)==null?void 0:o.index)||0,_=E[N];if(_==null)return{};let D=fl(_,i,await(p.isRTL==null?void 0:p.isRTL(u.floating)));if(c!==_)return{reset:{placement:E[0]}};let $=[I[qr(_)],I[D[0]],I[D[1]]],F=[...((n=s.autoPlacement)==null?void 0:n.overflows)||[],{placement:_,overflows:$}],ze=E[N+1];if(ze)return{data:{index:N+1,overflows:F},reset:{placement:ze}};let gt=F.map(Se=>{let y=Kt(Se.placement);return[Se.placement,y&&m?Se.overflows.slice(0,2).reduce((x,P)=>x+P,0):Se.overflows[0],Se.overflows]}).sort((Se,y)=>Se[1]-y[1]),bt=((a=gt.filter(Se=>Se[2].slice(0,Kt(Se[0])?2:3).every(y=>y<=0))[0])==null?void 0:a[0])||gt[0][0];return bt!==c?{data:{index:N+1,overflows:F},reset:{placement:bt}}:{}}}};var ti=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:o,y:n,placement:a}=e,{mainAxis:i=!0,crossAxis:s=!1,limiter:c={fn:I=>{let{x:N,y:_}=I;return{x:N,y:_}}},...p}=tn(t,e),u={x:o,y:n},m=await Ja(e,p),h=rn(qr(a)),b=Ya(h),S=u[b],v=u[h];if(i){let I=b==="y"?"top":"left",N=b==="y"?"bottom":"right",_=S+m[I],D=S-m[N];S=qa(_,S,D)}if(s){let I=h==="y"?"top":"left",N=h==="y"?"bottom":"right",_=v+m[I],D=v-m[N];v=qa(_,v,D)}let E=c.fn({...e,[b]:S,[h]:v});return{...E,data:{x:E.x-o,y:E.y-n,enabled:{[b]:i,[h]:s}}}}}};var ri=Math.min,Yr=Math.max,wo=Math.round;var $t=t=>({x:t,y:t});function Ft(t){return xl(t)?(t.nodeName||"").toLowerCase():"#document"}function We(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Ut(t){var e;return(e=(xl(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function xl(t){return t instanceof Node||t instanceof We(t).Node}function Ct(t){return t instanceof Element||t instanceof We(t).Element}function ct(t){return t instanceof HTMLElement||t instanceof We(t).HTMLElement}function bl(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof We(t).ShadowRoot}function Qr(t){let{overflow:e,overflowX:o,overflowY:n,display:a}=qe(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+o)&&!["inline","contents"].includes(a)}function vl(t){return["table","td","th"].includes(Ft(t))}function nn(t){let e=an(),o=qe(t);return o.transform!=="none"||o.perspective!=="none"||(o.containerType?o.containerType!=="normal":!1)||!e&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!e&&(o.filter?o.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(o.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(o.contain||"").includes(n))}function Sl(t){let e=xr(t);for(;ct(e)&&!Ro(e);){if(nn(e))return e;e=xr(e)}return null}function an(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ro(t){return["html","body","#document"].includes(Ft(t))}function qe(t){return We(t).getComputedStyle(t)}function To(t){return Ct(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function xr(t){if(Ft(t)==="html")return t;let e=t.assignedSlot||t.parentNode||bl(t)&&t.host||Ut(t);return bl(e)?e.host:e}function Cl(t){let e=xr(t);return Ro(e)?t.ownerDocument?t.ownerDocument.body:t.body:ct(e)&&Qr(e)?e:Cl(e)}function on(t,e,o){var n;e===void 0&&(e=[]),o===void 0&&(o=!0);let a=Cl(t),i=a===((n=t.ownerDocument)==null?void 0:n.body),s=We(a);return i?e.concat(s,s.visualViewport||[],Qr(a)?a:[],s.frameElement&&o?on(s.frameElement):[]):e.concat(a,on(a,[],o))}function Al(t){let e=qe(t),o=parseFloat(e.width)||0,n=parseFloat(e.height)||0,a=ct(t),i=a?t.offsetWidth:o,s=a?t.offsetHeight:n,c=wo(o)!==i||wo(n)!==s;return c&&(o=i,n=s),{width:o,height:n,$:c}}function wl(t){return Ct(t)?t:t.contextElement}function Xr(t){let e=wl(t);if(!ct(e))return $t(1);let o=e.getBoundingClientRect(),{width:n,height:a,$:i}=Al(e),s=(i?wo(o.width):o.width)/n,c=(i?wo(o.height):o.height)/a;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}var Zp=$t(0);function Rl(t){let e=We(t);return!an()||!e.visualViewport?Zp:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function qp(t,e,o){return e===void 0&&(e=!1),!o||e&&o!==We(t)?!1:e}function Lo(t,e,o,n){e===void 0&&(e=!1),o===void 0&&(o=!1);let a=t.getBoundingClientRect(),i=wl(t),s=$t(1);e&&(n?Ct(n)&&(s=Xr(n)):s=Xr(t));let c=qp(i,o,n)?Rl(i):$t(0),p=(a.left+c.x)/s.x,u=(a.top+c.y)/s.y,m=a.width/s.x,h=a.height/s.y;if(i){let b=We(i),S=n&&Ct(n)?We(n):n,v=b.frameElement;for(;v&&n&&S!==b;){let E=Xr(v),I=v.getBoundingClientRect(),N=qe(v),_=I.left+(v.clientLeft+parseFloat(N.paddingLeft))*E.x,D=I.top+(v.clientTop+parseFloat(N.paddingTop))*E.y;p*=E.x,u*=E.y,m*=E.x,h*=E.y,p+=_,u+=D,v=We(v).frameElement}}return br({width:m,height:h,x:p,y:u})}function Yp(t){let{rect:e,offsetParent:o,strategy:n}=t,a=ct(o),i=Ut(o);if(o===i)return e;let s={scrollLeft:0,scrollTop:0},c=$t(1),p=$t(0);if((a||!a&&n!=="fixed")&&((Ft(o)!=="body"||Qr(i))&&(s=To(o)),ct(o))){let u=Lo(o);c=Xr(o),p.x=u.x+o.clientLeft,p.y=u.y+o.clientTop}return{width:e.width*c.x,height:e.height*c.y,x:e.x*c.x-s.scrollLeft*c.x+p.x,y:e.y*c.y-s.scrollTop*c.y+p.y}}function Qp(t){return Array.from(t.getClientRects())}function Tl(t){return Lo(Ut(t)).left+To(t).scrollLeft}function Xp(t){let e=Ut(t),o=To(t),n=t.ownerDocument.body,a=Yr(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=Yr(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),s=-o.scrollLeft+Tl(t),c=-o.scrollTop;return qe(n).direction==="rtl"&&(s+=Yr(e.clientWidth,n.clientWidth)-a),{width:a,height:i,x:s,y:c}}function Jp(t,e){let o=We(t),n=Ut(t),a=o.visualViewport,i=n.clientWidth,s=n.clientHeight,c=0,p=0;if(a){i=a.width,s=a.height;let u=an();(!u||u&&e==="fixed")&&(c=a.offsetLeft,p=a.offsetTop)}return{width:i,height:s,x:c,y:p}}function eu(t,e){let o=Lo(t,!0,e==="fixed"),n=o.top+t.clientTop,a=o.left+t.clientLeft,i=ct(t)?Xr(t):$t(1),s=t.clientWidth*i.x,c=t.clientHeight*i.y,p=a*i.x,u=n*i.y;return{width:s,height:c,x:p,y:u}}function Ol(t,e,o){let n;if(e==="viewport")n=Jp(t,o);else if(e==="document")n=Xp(Ut(t));else if(Ct(e))n=eu(e,o);else{let a=Rl(t);n={...e,x:e.x-a.x,y:e.y-a.y}}return br(n)}function Ll(t,e){let o=xr(t);return o===e||!Ct(o)||Ro(o)?!1:qe(o).position==="fixed"||Ll(o,e)}function tu(t,e){let o=e.get(t);if(o)return o;let n=on(t,[],!1).filter(c=>Ct(c)&&Ft(c)!=="body"),a=null,i=qe(t).position==="fixed",s=i?xr(t):t;for(;Ct(s)&&!Ro(s);){let c=qe(s),p=nn(s);!p&&c.position==="fixed"&&(a=null),(i?!p&&!a:!p&&c.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||Qr(s)&&!p&&Ll(t,s))?n=n.filter(m=>m!==s):a=c,s=xr(s)}return e.set(t,n),n}function ru(t){let{element:e,boundary:o,rootBoundary:n,strategy:a}=t,s=[...o==="clippingAncestors"?tu(e,this._c):[].concat(o),n],c=s[0],p=s.reduce((u,m)=>{let h=Ol(e,m,a);return u.top=Yr(h.top,u.top),u.right=ri(h.right,u.right),u.bottom=ri(h.bottom,u.bottom),u.left=Yr(h.left,u.left),u},Ol(e,c,a));return{width:p.right-p.left,height:p.bottom-p.top,x:p.left,y:p.top}}function ou(t){return Al(t)}function nu(t,e,o){let n=ct(e),a=Ut(e),i=o==="fixed",s=Lo(t,!0,i,e),c={scrollLeft:0,scrollTop:0},p=$t(0);if(n||!n&&!i)if((Ft(e)!=="body"||Qr(a))&&(c=To(e)),n){let u=Lo(e,!0,i,e);p.x=u.x+e.clientLeft,p.y=u.y+e.clientTop}else a&&(p.x=Tl(a));return{x:s.left+c.scrollLeft-p.x,y:s.top+c.scrollTop-p.y,width:s.width,height:s.height}}function El(t,e){return!ct(t)||qe(t).position==="fixed"?null:e?e(t):t.offsetParent}function Nl(t,e){let o=We(t);if(!ct(t))return o;let n=El(t,e);for(;n&&vl(n)&&qe(n).position==="static";)n=El(n,e);return n&&(Ft(n)==="html"||Ft(n)==="body"&&qe(n).position==="static"&&!nn(n))?o:n||Sl(t)||o}var au=async function(t){let{reference:e,floating:o,strategy:n}=t,a=this.getOffsetParent||Nl,i=this.getDimensions;return{reference:nu(e,await a(o),n),floating:{x:0,y:0,...await i(o)}}};function iu(t){return qe(t).direction==="rtl"}var sn={convertOffsetParentRelativeRectToViewportRelativeRect:Yp,getDocumentElement:Ut,getClippingRect:ru,getOffsetParent:Nl,getElementRects:au,getClientRects:Qp,getDimensions:ou,getScale:Xr,isElement:Ct,isRTL:iu};var Il=(t,e,o)=>{let n=new Map,a={platform:sn,...o},i={...a.platform,_c:n};return gl(t,e,{...a,platform:i})};function _l(t){return su(t)}function oi(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function su(t){for(let e=t;e;e=oi(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=oi(t);e;e=oi(e)){if(!(e instanceof Element))continue;let o=getComputedStyle(e);if(o.display!=="contents"&&(o.position!=="static"||o.filter!=="none"||e.tagName==="BODY"))return e}return null}async function Pl(t,e,o){return Il(t,e,{platform:{...sn,getOffsetParent:n=>sn.getOffsetParent(n,_l)},middleware:[ti({crossAxis:!0}),ei({allowedPlacements:[o]})]})}var fo=g(R());var fd=g(R());var gc=g(k()),Ae=g(j()),dt=g(R());var kl=g(k());var Dl=kl.css`
|
|
543
|
-
`;var ln=g(R()),lu="ft-app-info",vr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};vr.eventName="authentication-change";var cu={session:(t,e)=>{(0,ln.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>T.dispatchEvent(new vr(e.payload)),0))}},T=ln.FtReduxStore.get({name:lu,reducers:cu,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 ni=g(R());var Sr=class t{static get(e){let{baseUrl:o,apiIntegrationIdentifier:n}=T.getState(),a=e??n;if(o&&a&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,a,!0)}static await(e){return new Promise(o=>{let n=t.get(e);if(n)o(n);else{let a=T.subscribe(()=>{n=t.get(e),n&&(a(),o(n))})}})}};var cn=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Sr.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Sr.await()}};var Ie=class extends cn{constructor(e=!0,o){var n;super(o),this.sortObjectFields=(i,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([c],[p])=>c.localeCompare(p)));let a=this.constructor;a.commonCache=(n=a.commonCache)!==null&&n!==void 0?n:new ni.CacheRegistry,this.cache=e?a.commonCache:new ni.CacheRegistry}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((o,n)=>0|31*o+n.charCodeAt(0),0))}};var dn=class extends Ie{async listMyBookmarks(){let e=T.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var ai=class{addCommand(e,o=!1){T.commands.add(e,o)}consumeCommand(e){return T.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new ai;var tt=g(R());var Bl,Jr=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},du=Symbol("clearAfterUnitTest"),pn=class extends(0,tt.withEventBus)(Ie){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Bl]=()=>{this.defaultMessages={},this.cache=new tt.CacheRegistry,this.listeners={}},this.currentUiLocale=T.getState().uiLocale,T.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=T.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let o=e.name.toLowerCase();this.cache.setFinal(o,e),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,o){var n;if(e=e.toLowerCase(),o&&Object.keys(o).length>0){let a={...(n=this.defaultMessages[e])!==null&&n!==void 0?n:{},...o};(0,tt.deepEqual)(this.defaultMessages[e],a)||(this.defaultMessages[e]=a,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var o,n;return this.fetchContext(e),(n=(o=this.cache.getNow(e))===null||o===void 0?void 0:o.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(e,o){let n=e.toLowerCase();return this.resolveContext(n)[o]}resolveMessage(e,o,...n){var a;let i=e.toLowerCase(),s=this.resolveContext(i);return new tt.ParametrizedLabelResolver((a=this.defaultMessages[i])!==null&&a!==void 0?a:{},s).resolve(o,...n)}async fetchContext(e){let o=!this.cache.has(e),n;try{n=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),o&&await this.notify(e)}catch(a){!(a instanceof tt.CanceledPromiseError)&&o&&console.error(a)}return n}subscribe(e,o){var n;return e=e.toLowerCase(),this.listeners[e]=(n=this.listeners[e])!==null&&n!==void 0?n:new Set,this.listeners[e].add(o),()=>{var a;return(a=this.listeners[e])===null||a===void 0?void 0:a.delete(o)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new Jr({loadedContexts:e})),this.dispatchEvent(new Jr({loadedContexts:e})),await Promise.all(e.map(o=>this.notify(o,!1)))}async notify(e,o=!0){o&&(document.body.dispatchEvent(new Jr({loadedContexts:[e]})),this.dispatchEvent(new Jr({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(n=>(0,tt.delay)(0).then(()=>n()).catch(()=>null)))}};Bl=du;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends pn{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends pn{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var eo=window.FluidTopicsI18nService,un=window.FluidTopicsCustomI18nService;var Ml=g(R()),ii=class{highlightHtml(e,o,n){(0,Ml.highlightHtml)(e,o,n)}};window.FluidTopicsHighlightHtmlService=new ii;var uu=g(Fl(),1);var Ul;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(Ul||(Ul={}));var zl;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(zl||(zl={}));var Hl;(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"})(Hl||(Hl={}));var qt;(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"})(qt||(qt={}));var Wl;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Wl||(Wl={}));var Vl;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(Vl||(Vl={}));var Cr;(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__AI_TRANSLATE="DOCUMENT__AI_TRANSLATE",t.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",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__DISPLAY="TOPIC__DISPLAY",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"})(Cr||(Cr={}));var Gl;(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"})(Gl||(Gl={}));var jl;(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"})(jl||(jl={}));var Kl;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Kl||(Kl={}));var Zl;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Zl||(Zl={}));var ql;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(ql||(ql={}));var Yl;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Yl||(Yl={}));var Ql;(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"})(Ql||(Ql={}));var yn;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(yn||(yn={}));var Xl;(function(t){t.ASC="ASC",t.DESC="DESC"})(Xl||(Xl={}));var Jl;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Jl||(Jl={}));var ro;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(ro||(ro={}));var ec;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(ec||(ec={}));var tc;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(tc||(tc={}));var rc;(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"})(rc||(rc={}));var oc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(oc||(oc={}));var Ot;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Ot||(Ot={}));var oo;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(oo||(oo={}));var nc;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(nc||(nc={}));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.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_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.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 rt;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(rt||(rt={}));var ac;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(ac||(ac={}));var ic;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(ic||(ic={}));var sc;(function(t){t.USER="USER",t.ASSISTANT="ASSISTANT"})(sc||(sc={}));var lc;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(lc||(lc={}));var cc;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(cc||(cc={}));var pu={[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.GENERATIVE_AI_EXPORT_USER]:[de.GENERATIVE_AI_USER]};function dc(t,e){return t===e||(pu[t]??[]).some(o=>dc(o,e))}function pc(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(n=>dc(n,e))}var mn=class extends Ie{async listMySearches(){let{session:e}=T.getState();return pc(e,de.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var uc=g(R());var si=class{isDate(e){var o,n,a,i;return(i=(a=((n=(o=T.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]).find(c=>c.key===e))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1}format(e,o){var n,a,i;return uc.DateFormatter.format(e,(n=o?.locale)!==null&&n!==void 0?n:T.getState().uiLocale,(a=o?.longFormat)!==null&&a!==void 0?a:!1,(i=o?.withTime)!==null&&i!==void 0?i:!1)}};window.FluidTopicsDateService=new si;var fc=g(R());var No=class{static get(e,o){var n,a;let i=T.getState(),{lang:s,region:c}=(a=(n=i.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&a!==void 0?a:{lang:"en",region:"US"};return new fc.SearchPlaceConverter(i.baseUrl,e??20,i.searchInAllLanguagesAllowed,o??`${s}-${c}`)}};var gn=class extends Ie{async sendDocumentStartDisplayEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.start_display event")}async sendTopicStartDisplayEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send topic.start_display event")}async sendKhubSearchEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send khub.search event")}async sendDocumentSearchEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.search event")}async sendSearchPageSelectEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send search_page.select event")}async sendSearchResultOpenContextMenuEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send search_result.open_context_menu event")}sortEventArrays(e){let o=Object.entries(e).map(([n,a])=>Array.isArray(a)?[n,a.map(i=>typeof i=="object"&&i!=null&&!Array.isArray(i)?this.sortEventArrays(i):i).sort((i,s)=>typeof i=="object"&&i!==null&&"key"in i?i.key.localeCompare(s.key):typeof i=="string"&&typeof s=="string"?i.localeCompare(s):String(i).localeCompare(String(s)))]:typeof a=="object"&&a!==null?[n,this.sortEventArrays(a)]:[n,a]);return Object.fromEntries(o)}sendEvents(e,o){let n="anything not undefined";return this.cache.get("analytics-event-"+this.hash(e),async()=>(await this.awaitApi).sendEvents(e).then(()=>n).catch(a=>(console.info(o),console.debug(a),n)),1e3)}};var li=class{urlToSearchRequest(e){return No.get().parse(e)}searchRequestToUrl(e){return No.get().serialize(e)}};window.FluidTopicsUrlService=new li;var Yt=g(R());var Or=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Or.eventName="change";var ci=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let o=sessionStorage.getItem(this.itemName(e));return o?JSON.parse(o):void 0}set(e,o){sessionStorage.setItem(this.itemName(e),JSON.stringify(o))}},hc=new ci;var bn=class t extends Yt.WithEventBus{static build(){return new t(window.history,hc,()=>window.location,!1)}constructor(e,o,n,a){var i,s;super(),this.history=e,this.historyStorage=o,this.windowLocation=n,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,o=!1){let n=o&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,n&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,Yt.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new Or(this.currentItem())),0)}installProxies(){let e=o=>(n,a,[i,s,c])=>{let p=o(),u={...p===this.currentIndex?this.currentState:void 0,...i,index:p,href:typeof c=="string"?c:(c??this.windowLocation()).href};n.apply(a,[u,s,c]),this.setCurrentState(u,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let o=this.history.length-1;o>=0;o--)e?this.states[o]=this.historyStorage.get(o):setTimeout(()=>this.states[o]=this.historyStorage.get(o),this.history.length-o)}updateCurrentState(e){var o;let n={...this.buildCurrentState(),...e,index:this.currentIndex,title:(o=e?.title)!==null&&o!==void 0?o:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(e){this.addEventListener(Or.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Or.eventName,e)}currentItem(){return(0,Yt.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,Yt.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,Yt.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 o;let n=(o=this.states[e])===null||o===void 0?void 0:o.majorStateId;if(!n)return e;let a=e,i=e+1;for(;this.states.length>i&&!this.isDifferentMajorState(i,n);)this.hasState(i)&&(a=i),i++;return a}buildCurrentState(){var e,o;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(o=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&o!==void 0?o:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,o){var n;if(!this.hasState(e))return!1;let a=o??this.currentState.majorStateId,i=(n=this.states[e])===null||n===void 0?void 0:n.majorStateId;return i==null||i!=a}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=bn.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 yc=T;function mc(t,e){var o;return yc.getState().authenticationRequired&&!(!((o=yc.getState().session)===null||o===void 0)&&o.sessionAuthenticated)?Promise.resolve(e):t()}var pe=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(i=(a<3?s(i):a>3?s(e,o,i):s(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},Y=class extends dt.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=()=>Sr.get(),this.authenticationRequired=!1,this.messageContexts=[],this.cache=new dt.CacheRegistry,this.cleanSessionDebouncer=new dt.Debouncer,this.reloadConfiguration=()=>{this.cache.clear("availableContentLocales"),this.updateAvailableContentLocales()}}render(){return gc.html`
|
|
543
|
+
`;var ln=g(R()),lu="ft-app-info",vr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};vr.eventName="authentication-change";var cu={session:(t,e)=>{(0,ln.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>T.dispatchEvent(new vr(e.payload)),0))}},T=ln.FtReduxStore.get({name:lu,reducers:cu,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 ni=g(R());var Sr=class t{static get(e){let{baseUrl:o,apiIntegrationIdentifier:n}=T.getState(),a=e??n;if(o&&a&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,a,!0)}static await(e){return new Promise(o=>{let n=t.get(e);if(n)o(n);else{let a=T.subscribe(()=>{n=t.get(e),n&&(a(),o(n))})}})}};var cn=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Sr.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Sr.await()}};var Ie=class extends cn{constructor(e=!0,o){var n;super(o),this.sortObjectFields=(i,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([c],[p])=>c.localeCompare(p)));let a=this.constructor;a.commonCache=(n=a.commonCache)!==null&&n!==void 0?n:new ni.CacheRegistry,this.cache=e?a.commonCache:new ni.CacheRegistry}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((o,n)=>0|31*o+n.charCodeAt(0),0))}};var dn=class extends Ie{async listMyBookmarks(){let e=T.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var ai=class{addCommand(e,o=!1){T.commands.add(e,o)}consumeCommand(e){return T.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new ai;var tt=g(R());var Bl,Jr=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},du=Symbol("clearAfterUnitTest"),pn=class extends(0,tt.withEventBus)(Ie){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Bl]=()=>{this.defaultMessages={},this.cache=new tt.CacheRegistry,this.listeners={}},this.currentUiLocale=T.getState().uiLocale,T.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=T.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let o=e.name.toLowerCase();this.cache.setFinal(o,e),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,o){var n;if(e=e.toLowerCase(),o&&Object.keys(o).length>0){let a={...(n=this.defaultMessages[e])!==null&&n!==void 0?n:{},...o};(0,tt.deepEqual)(this.defaultMessages[e],a)||(this.defaultMessages[e]=a,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var o,n;return this.fetchContext(e),(n=(o=this.cache.getNow(e))===null||o===void 0?void 0:o.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(e,o){let n=e.toLowerCase();return this.resolveContext(n)[o]}resolveMessage(e,o,...n){var a;let i=e.toLowerCase(),s=this.resolveContext(i);return new tt.ParametrizedLabelResolver((a=this.defaultMessages[i])!==null&&a!==void 0?a:{},s).resolve(o,...n)}async fetchContext(e){let o=!this.cache.has(e),n;try{n=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),o&&await this.notify(e)}catch(a){!(a instanceof tt.CanceledPromiseError)&&o&&console.error(a)}return n}subscribe(e,o){var n;return e=e.toLowerCase(),this.listeners[e]=(n=this.listeners[e])!==null&&n!==void 0?n:new Set,this.listeners[e].add(o),()=>{var a;return(a=this.listeners[e])===null||a===void 0?void 0:a.delete(o)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new Jr({loadedContexts:e})),this.dispatchEvent(new Jr({loadedContexts:e})),await Promise.all(e.map(o=>this.notify(o,!1)))}async notify(e,o=!0){o&&(document.body.dispatchEvent(new Jr({loadedContexts:[e]})),this.dispatchEvent(new Jr({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(n=>(0,tt.delay)(0).then(()=>n()).catch(()=>null)))}};Bl=du;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends pn{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends pn{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var eo=window.FluidTopicsI18nService,un=window.FluidTopicsCustomI18nService;var Ml=g(R()),ii=class{highlightHtml(e,o,n){(0,Ml.highlightHtml)(e,o,n)}};window.FluidTopicsHighlightHtmlService=new ii;var uu=g(Fl(),1);var Ul;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(Ul||(Ul={}));var zl;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(zl||(zl={}));var Hl;(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"})(Hl||(Hl={}));var qt;(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"})(qt||(qt={}));var Wl;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Wl||(Wl={}));var Vl;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(Vl||(Vl={}));var Cr;(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__AI_TRANSLATE="DOCUMENT__AI_TRANSLATE",t.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",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__DISPLAY="TOPIC__DISPLAY",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"})(Cr||(Cr={}));var Gl;(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"})(Gl||(Gl={}));var jl;(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"})(jl||(jl={}));var Kl;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Kl||(Kl={}));var Zl;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Zl||(Zl={}));var ql;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(ql||(ql={}));var Yl;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Yl||(Yl={}));var Ql;(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"})(Ql||(Ql={}));var yn;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(yn||(yn={}));var Xl;(function(t){t.ASC="ASC",t.DESC="DESC"})(Xl||(Xl={}));var Jl;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Jl||(Jl={}));var ro;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(ro||(ro={}));var ec;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(ec||(ec={}));var tc;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(tc||(tc={}));var rc;(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"})(rc||(rc={}));var oc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(oc||(oc={}));var Ot;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Ot||(Ot={}));var oo;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(oo||(oo={}));var nc;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(nc||(nc={}));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.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_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.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 rt;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(rt||(rt={}));var ac;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(ac||(ac={}));var ic;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(ic||(ic={}));var sc;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(sc||(sc={}));var lc;(function(t){t.USER="USER",t.ASSISTANT="ASSISTANT"})(lc||(lc={}));var cc;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(cc||(cc={}));var dc;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(dc||(dc={}));var pu={[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.GENERATIVE_AI_EXPORT_USER]:[de.GENERATIVE_AI_USER]};function pc(t,e){return t===e||(pu[t]??[]).some(o=>pc(o,e))}function uc(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(n=>pc(n,e))}var mn=class extends Ie{async listMySearches(){let{session:e}=T.getState();return uc(e,de.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var fc=g(R());var si=class{isDate(e){var o,n,a,i;return(i=(a=((n=(o=T.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]).find(c=>c.key===e))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1}format(e,o){var n,a,i;return fc.DateFormatter.format(e,(n=o?.locale)!==null&&n!==void 0?n:T.getState().uiLocale,(a=o?.longFormat)!==null&&a!==void 0?a:!1,(i=o?.withTime)!==null&&i!==void 0?i:!1)}};window.FluidTopicsDateService=new si;var hc=g(R());var No=class{static get(e,o){var n,a;let i=T.getState(),{lang:s,region:c}=(a=(n=i.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&a!==void 0?a:{lang:"en",region:"US"};return new hc.SearchPlaceConverter(i.baseUrl,e??20,i.searchInAllLanguagesAllowed,o??`${s}-${c}`)}};var gn=class extends Ie{async sendDocumentStartDisplayEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.start_display event")}async sendTopicStartDisplayEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send topic.start_display event")}async sendKhubSearchEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send khub.search event")}async sendDocumentSearchEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.search event")}async sendSearchPageSelectEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send search_page.select event")}async sendSearchResultOpenContextMenuEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send search_result.open_context_menu event")}sortEventArrays(e){let o=Object.entries(e).map(([n,a])=>Array.isArray(a)?[n,a.map(i=>typeof i=="object"&&i!=null&&!Array.isArray(i)?this.sortEventArrays(i):i).sort((i,s)=>typeof i=="object"&&i!==null&&"key"in i?i.key.localeCompare(s.key):typeof i=="string"&&typeof s=="string"?i.localeCompare(s):String(i).localeCompare(String(s)))]:typeof a=="object"&&a!==null?[n,this.sortEventArrays(a)]:[n,a]);return Object.fromEntries(o)}sendEvents(e,o){let n="anything not undefined";return this.cache.get("analytics-event-"+this.hash(e),async()=>(await this.awaitApi).sendEvents(e).then(()=>n).catch(a=>(console.info(o),console.debug(a),n)),1e3)}};var li=class{urlToSearchRequest(e){return No.get().parse(e)}searchRequestToUrl(e){return No.get().serialize(e)}};window.FluidTopicsUrlService=new li;var Yt=g(R());var Or=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Or.eventName="change";var ci=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let o=sessionStorage.getItem(this.itemName(e));return o?JSON.parse(o):void 0}set(e,o){sessionStorage.setItem(this.itemName(e),JSON.stringify(o))}},yc=new ci;var bn=class t extends Yt.WithEventBus{static build(){return new t(window.history,yc,()=>window.location,!1)}constructor(e,o,n,a){var i,s;super(),this.history=e,this.historyStorage=o,this.windowLocation=n,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,o=!1){let n=o&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,n&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,Yt.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new Or(this.currentItem())),0)}installProxies(){let e=o=>(n,a,[i,s,c])=>{let p=o(),u={...p===this.currentIndex?this.currentState:void 0,...i,index:p,href:typeof c=="string"?c:(c??this.windowLocation()).href};n.apply(a,[u,s,c]),this.setCurrentState(u,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let o=this.history.length-1;o>=0;o--)e?this.states[o]=this.historyStorage.get(o):setTimeout(()=>this.states[o]=this.historyStorage.get(o),this.history.length-o)}updateCurrentState(e){var o;let n={...this.buildCurrentState(),...e,index:this.currentIndex,title:(o=e?.title)!==null&&o!==void 0?o:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(e){this.addEventListener(Or.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Or.eventName,e)}currentItem(){return(0,Yt.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,Yt.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,Yt.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 o;let n=(o=this.states[e])===null||o===void 0?void 0:o.majorStateId;if(!n)return e;let a=e,i=e+1;for(;this.states.length>i&&!this.isDifferentMajorState(i,n);)this.hasState(i)&&(a=i),i++;return a}buildCurrentState(){var e,o;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(o=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&o!==void 0?o:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,o){var n;if(!this.hasState(e))return!1;let a=o??this.currentState.majorStateId,i=(n=this.states[e])===null||n===void 0?void 0:n.majorStateId;return i==null||i!=a}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=bn.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)});function mc(t,e){let{authenticationRequired:o,session:n}=T.getState();return o&&!n?.sessionAuthenticated?Promise.resolve(e):t()}var pe=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(i=(a<3?s(i):a>3?s(e,o,i):s(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},Y=class extends dt.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=()=>Sr.get(),this.authenticationRequired=!1,this.messageContexts=[],this.cache=new dt.CacheRegistry,this.cleanSessionDebouncer=new dt.Debouncer,this.reloadConfiguration=()=>{this.cache.clear("availableContentLocales"),this.updateAvailableContentLocales()}}render(){return gc.html`
|
|
544
544
|
<slot></slot>
|
|
545
545
|
`}connectedCallback(){super.connectedCallback(),T.addEventListener(vr.eventName,this.reloadConfiguration)}disconnectedCallback(){T.addEventListener(vr.eventName,this.reloadConfiguration),super.disconnectedCallback()}update(e){var o,n,a,i,s,c,p;super.update(e),e.has("baseUrl")&&(T.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&T.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&T.actions.apiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&T.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&T.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&T.actions.noCustom(this.noCustom),e.has("editorMode")&&T.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&T.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&T.actions.session(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(u=>eo.addContext(u)),e.has("openExternalDocumentInNewTab")&&T.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&T.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&T.actions.forcedOffline(this.forcedOffline),e.has("localesConfiguration")&&(T.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),T.actions.availableUiLocales((a=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&a!==void 0?a:[]),T.actions.searchInAllLanguagesAllowed((s=(i=this.localesConfiguration)===null||i===void 0?void 0:i.allLanguagesAllowed)!==null&&s!==void 0?s:!1)),e.has("authenticationRequired")&&T.actions.authenticationRequired(this.authenticationRequired),e.has("availableContentLocales")&&T.actions.availableContentLocales((p=(c=this.availableContentLocales)===null||c===void 0?void 0:c.contentLocales)!==null&&p!==void 0?p:[]),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",()=>mc(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}))}};Y.elementDefinitions={};Y.styles=Dl;pe([(0,Ae.property)()],Y.prototype,"baseUrl",void 0);pe([(0,Ae.property)()],Y.prototype,"apiIntegrationIdentifier",void 0);pe([(0,Ae.property)()],Y.prototype,"apiIntegrationAppVersion",void 0);pe([(0,Ae.property)()],Y.prototype,"uiLocale",void 0);pe([(0,dt.jsonProperty)(null)],Y.prototype,"availableUiLocales",void 0);pe([(0,dt.jsonProperty)(null)],Y.prototype,"metadataConfiguration",void 0);pe([(0,Ae.property)({type:Boolean})],Y.prototype,"editorMode",void 0);pe([(0,Ae.property)({type:Boolean})],Y.prototype,"noCustom",void 0);pe([(0,Ae.property)({type:Boolean})],Y.prototype,"openExternalDocumentInNewTab",void 0);pe([(0,Ae.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],Y.prototype,"noCustomComponent",void 0);pe([(0,Ae.property)({type:Boolean})],Y.prototype,"withManualResources",void 0);pe([(0,Ae.property)({type:Boolean})],Y.prototype,"navigatorOnline",void 0);pe([(0,Ae.property)({type:Boolean})],Y.prototype,"forcedOffline",void 0);pe([(0,Ae.property)({type:Object})],Y.prototype,"apiProvider",void 0);pe([(0,Ae.property)({type:Boolean})],Y.prototype,"authenticationRequired",void 0);pe([(0,dt.jsonProperty)([])],Y.prototype,"messageContexts",void 0);pe([(0,dt.jsonProperty)(void 0)],Y.prototype,"session",void 0);pe([(0,Ae.state)()],Y.prototype,"localesConfiguration",void 0);pe([(0,Ae.state)()],Y.prototype,"availableContentLocales",void 0);var ki=g(j());function fu(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;let o,n,a;if(Array.isArray(t)){if(o=t.length,o!=e.length)return!1;for(n=o;n--!==0;)if(!xn(t[n],e[n]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;for(n of t.entries())if(!xn(n[1],e.get(n[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let i=s=>Object.keys(s).filter(c=>s[c]!=null);if(a=i(t),o=a.length,o!==i(e).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(e,a[n]))return!1;for(n=o;n--!==0;){let s=a[n];if(!xn(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function xn(t,e){try{return fu(t,e)}catch{return!1}}function Io(t,e){return!xn(t,e)}function vn(t,e){let o=n=>n[t]===!0;return n=>{if(o(n))return n;let a=e(n);return a[t]=!0,a}}var bc=g(j(),1);var di=t=>{let e=t??{};return(o,n)=>{var a;let i={hasChanged:Io,attribute:!1,...e};(0,bc.property)(i)(o,n);let s=o.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(n,{selector:(a=e.selector)!==null&&a!==void 0?a:c=>c[n],store:e.store})}};var Sn=class{constructor(){this.queue=[]}add(e,o=!1){o&&this.clear(e.type),this.queue.push(e)}consume(e){let o=this.queue.find(n=>n.type===e);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}clear(e){typeof e=="string"?this.queue=this.queue.filter(o=>o.type!==e):this.queue=this.queue.filter(o=>!e.test(o.type))}};var Er=g(j(),1);var xc=g(j(),1);function vc(t,e){let o=()=>JSON.parse(JSON.stringify(t));return(0,xc.property)({type:Object,converter:{fromAttribute:n=>{if(n==null)return o();try{return JSON.parse(n)}catch{return o()}},toAttribute:n=>JSON.stringify(n)},hasChanged:Io,...e??{}})}var Cn=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,o){return this.callbacks=[e],this.debounce(o)}queue(e,o){return this.callbacks.push(e),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((o,n)=>{this.resolvePromise=o,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,o;let n=[...this.callbacks];this.callbacks=[];let a=(e=this.rejectPromise)!==null&&e!==void 0?e:()=>null,i=(o=this.resolvePromise)!==null&&o!==void 0?o:()=>null;this.clearPromise();for(let s of n)try{await s()}catch(c){a(c);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 Cc=g(k(),1);var On=globalThis,hu=On.ShadowRoot&&(On.ShadyCSS===void 0||On.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Zv=Symbol();var Sc=(t,e)=>{if(hu)t.adoptedStyleSheets=e.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet);else for(let o of e){let n=document.createElement("style"),a=On.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=o.cssText,t.appendChild(n)}};var En=class extends Cc.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 o={...e.shadowRootOptions,customElements:e.registry},n=this.renderOptions.creationScope=this.attachShadow(o);return Sc(n,e.elementStyles),n}};function Oc(t,e,...o){var n;let a=t.querySelector(e);for(let i of o)a=(n=a?.shadowRoot)===null||n===void 0?void 0:n.querySelector(i);return a}var ao=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(i=(a<3?s(i):a>3?s(e,o,i):s(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},Rc,Ec=Symbol("constructorPrototype"),Ac=Symbol("constructorName"),Tc=Symbol("exportpartsDebouncer"),wc=Symbol("dynamicDependenciesLoaded"),no=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};no.eventName="exportparts-updated";var Et=class extends En{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Rc]=new Cn(5),this.scheduleExportpartsUpdate=()=>{var e,o,n;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(n=(o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)!==null&&n!==void 0&&n)&&this[Tc].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[Ac]=this.constructor.name,this[Ec]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Ac]&&Object.setPrototypeOf(this,this[Ec])}connectedCallback(){var e;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(n){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",n)}let o=this.constructor;o[wc]||(o[wc]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(no.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(no.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 no)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:o,selector:n,shadowPath:a}=this.elementToFocus;if(n!=null){let i=[...a??[],n];o=Oc(this.shadowRoot,...i)}o?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||o?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var o,n,a;if(((n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).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 o,n,a,i,s,c;let p=b=>b!=null&&b.trim().length>0,u=e.filter(p).map(b=>b.trim());if(u.length===0){this.exportparts=void 0;return}let m=new Set;for(let b of(n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let S=(i=(a=b.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&i!==void 0?i:[],v=(c=(s=b.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(I=>I.split(":")[1]))!==null&&c!==void 0?c:[],E=[...S,...v].filter(p).map(I=>I.trim());for(let I of E)m.add(I)}if(m.size===0){this.exportparts=void 0;return}let h=[...m.values()].flatMap(b=>u.map(S=>`${b}:${S}--${b}`));this.exportparts=[...this.part,...h].join(", ")}};Rc=Tc;ao([(0,Er.property)()],Et.prototype,"exportpartsPrefix",void 0);ao([vc([])],Et.prototype,"exportpartsPrefixes",void 0);ao([(0,Er.property)({reflect:!0})],Et.prototype,"exportparts",void 0);ao([(0,Er.property)()],Et.prototype,"customStylesheet",void 0);ao([(0,Er.property)()],Et.prototype,"elementToFocus",void 0);ao([(0,Er.state)()],Et.prototype,"useAdoptedStyleSheets",void 0);function An(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var _o=Symbol("internalReduxEventsUnsubscribers"),Qt=Symbol("internalStoresUnsubscribers"),Ar=Symbol("internalStores"),yu=vn(Symbol("withRedux"),function(t){var e,o,n;class a extends t{constructor(){super(...arguments),this[e]=new Map,this[o]=new Map,this[n]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(c=>s.has(c))&&this.updateFromStores()}getUnnamedStore(){if(this[Ar].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ar].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[Ar].get(s)}addStore(s,c){var p;c=(p=c??s.name)!==null&&p!==void 0?p:"default-store",this.unsubscribeFromStore(c),this[Ar].set(c,s),this.subscribeToStore(c,s),this.updateFromStores()}removeStore(s){let c=typeof s=="string"?s:s.name;this.unsubscribeFromStore(c),this[Ar].delete(c)}setupStores(){this.unsubscribeFromStores(),this[Ar].forEach((s,c)=>this.subscribeToStore(c,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,c)=>{let p=this.constructor.getPropertyOptions(c);if(!p?.attribute||!this.hasAttribute(typeof p?.attribute=="string"?p.attribute:c)){let u=this.getStore(s.store);u&&(s.store?this[Qt].has(s.store):this[Qt].size>0)&&(this[c]=s.selector(u.getState(),this))}})}subscribeToStore(s,c){var p;this[Qt].set(s,c.subscribe(()=>this.updateFromStores())),this[_o].set(s,[]),An(c)&&c.eventBus&&((p=this.reduxConstructor.reduxEventListeners)===null||p===void 0||p.forEach((u,m)=>{if(typeof this[m]=="function"&&(!u.store||c.name===u.store)){let h=b=>this[m](b);c.addEventListener(u.eventName,h),this[_o].get(s).push(()=>c.removeEventListener(u.eventName,h))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[Qt].forEach((s,c)=>this.unsubscribeFromStore(c))}unsubscribeFromStore(s){var c;this[Qt].has(s)&&this[Qt].get(s)(),this[Qt].delete(s),(c=this[_o].get(s))===null||c===void 0||c.forEach(p=>p()),this[_o].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=Qt,o=Ar,n=_o,a.reduxProperties=new Map,a.reduxReactiveProperties=new Set,a.reduxEventListeners=new Map,a}),Lc=class extends yu(Et){};function ot(t){for(var e=arguments.length,o=Array(e>1?e-1:0),n=1;n<e;n++)o[n-1]=arguments[n];if(0)var a,i;throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function zt(t){return!!t&&!!t[ee]}function pt(t){var e;return!!t&&(function(o){if(!o||typeof o!="object")return!1;var n=Object.getPrototypeOf(o);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===Ou}(t)||Array.isArray(t)||!!t[Bc]||!!(!((e=t.constructor)===null||e===void 0)&&e[Bc])||xi(t)||vi(t))}function wr(t,e,o){o===void 0&&(o=!1),lo(t)===0?(o?Object.keys:so)(t).forEach(function(n){o&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,a){return e(a,n,t)})}function lo(t){var e=t[ee];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:xi(t)?2:vi(t)?3:0}function io(t,e){return lo(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function mu(t,e){return lo(t)===2?t.get(e):t[e]}function Mc(t,e,o){var n=lo(t);n===2?t.set(e,o):n===3?t.add(o):t[e]=o}function $c(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function xi(t){return Su&&t instanceof Map}function vi(t){return Cu&&t instanceof Set}function Xt(t){return t.o||t.t}function Si(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=zc(t);delete e[ee];for(var o=so(e),n=0;n<o.length;n++){var a=o[n],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 Ci(t,e){return e===void 0&&(e=!1),Oi(t)||zt(t)||!pt(t)||(lo(t)>1&&(t.set=t.add=t.clear=t.delete=gu),Object.freeze(t),e&&wr(t,function(o,n){return Ci(n,!0)},!0)),t}function gu(){ot(2)}function Oi(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function At(t){var e=bi[t];return e||ot(18,t),e}function bu(t,e){bi[t]||(bi[t]=e)}function yi(){return ko}function pi(t,e){e&&(At("Patches"),t.u=[],t.s=[],t.v=e)}function wn(t){mi(t),t.p.forEach(xu),t.p=null}function mi(t){t===ko&&(ko=t.l)}function Nc(t){return ko={p:[],l:ko,h:t,m:!0,_:0}}function xu(t){var e=t[ee];e.i===0||e.i===1?e.j():e.g=!0}function ui(t,e){e._=e.p.length;var o=e.p[0],n=t!==void 0&&t!==o;return e.h.O||At("ES5").S(e,t,n),n?(o[ee].P&&(wn(e),ot(4)),pt(t)&&(t=Rn(e,t),e.l||Tn(e,t)),e.u&&At("Patches").M(o[ee].t,t,e.u,e.s)):t=Rn(e,o,[]),wn(e),e.u&&e.v(e.u,e.s),t!==Uc?t:void 0}function Rn(t,e,o){if(Oi(e))return e;var n=e[ee];if(!n)return wr(e,function(c,p){return Ic(t,n,e,c,p,o)},!0),e;if(n.A!==t)return e;if(!n.P)return Tn(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=Si(n.k):n.o,i=a,s=!1;n.i===3&&(i=new Set(a),a.clear(),s=!0),wr(i,function(c,p){return Ic(t,n,a,c,p,o,s)}),Tn(t,a,!1),o&&t.u&&At("Patches").N(n,o,t.u,t.s)}return n.o}function Ic(t,e,o,n,a,i,s){if(zt(a)){var c=Rn(t,a,i&&e&&e.i!==3&&!io(e.R,n)?i.concat(n):void 0);if(Mc(o,n,c),!zt(c))return;t.m=!1}else s&&o.add(a);if(pt(a)&&!Oi(a)){if(!t.h.D&&t._<1)return;Rn(t,a),e&&e.A.l||Tn(t,a)}}function Tn(t,e,o){o===void 0&&(o=!1),!t.l&&t.h.D&&t.m&&Ci(e,o)}function fi(t,e){var o=t[ee];return(o?Xt(o):t)[e]}function _c(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var n=Object.getOwnPropertyDescriptor(o,e);if(n)return n;o=Object.getPrototypeOf(o)}}function Jt(t){t.P||(t.P=!0,t.l&&Jt(t.l))}function hi(t){t.o||(t.o=Si(t.t))}function gi(t,e,o){var n=xi(e)?At("MapSet").F(e,o):vi(e)?At("MapSet").T(e,o):t.O?function(a,i){var s=Array.isArray(a),c={i:s?1:0,A:i?i.A:yi(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},p=c,u=Do;s&&(p=[c],u=Po);var m=Proxy.revocable(p,u),h=m.revoke,b=m.proxy;return c.k=b,c.j=h,b}(e,o):At("ES5").J(e,o);return(o?o.A:yi()).p.push(n),n}function vu(t){return zt(t)||ot(22,t),function e(o){if(!pt(o))return o;var n,a=o[ee],i=lo(o);if(a){if(!a.P&&(a.i<4||!At("ES5").K(a)))return a.t;a.I=!0,n=Pc(o,i),a.I=!1}else n=Pc(o,i);return wr(n,function(s,c){a&&mu(a.t,s)===c||Mc(n,s,e(c))}),i===3?new Set(n):n}(t)}function Pc(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Si(t)}function Fc(){function t(s,c){var p=i[s];return p?p.enumerable=c:i[s]=p={configurable:!0,enumerable:c,get:function(){var u=this[ee];return Do.get(u,s)},set:function(u){var m=this[ee];Do.set(m,s,u)}},p}function e(s){for(var c=s.length-1;c>=0;c--){var p=s[c][ee];if(!p.P)switch(p.i){case 5:n(p)&&Jt(p);break;case 4:o(p)&&Jt(p)}}}function o(s){for(var c=s.t,p=s.k,u=so(p),m=u.length-1;m>=0;m--){var h=u[m];if(h!==ee){var b=c[h];if(b===void 0&&!io(c,h))return!0;var S=p[h],v=S&&S[ee];if(v?v.t!==b:!$c(S,b))return!0}}var E=!!c[ee];return u.length!==so(c).length+(E?0:1)}function n(s){var c=s.k;if(c.length!==s.t.length)return!0;var p=Object.getOwnPropertyDescriptor(c,c.length-1);if(p&&!p.get)return!0;for(var u=0;u<c.length;u++)if(!c.hasOwnProperty(u))return!0;return!1}function a(s){s.g&&ot(3,JSON.stringify(Xt(s)))}var i={};bu("ES5",{J:function(s,c){var p=Array.isArray(s),u=function(h,b){if(h){for(var S=Array(b.length),v=0;v<b.length;v++)Object.defineProperty(S,""+v,t(v,!0));return S}var E=zc(b);delete E[ee];for(var I=so(E),N=0;N<I.length;N++){var _=I[N];E[_]=t(_,h||!!E[_].enumerable)}return Object.create(Object.getPrototypeOf(b),E)}(p,s),m={i:p?5:4,A:c?c.A:yi(),P:!1,I:!1,R:{},l:c,t:s,k:u,o:null,g:!1,C:!1};return Object.defineProperty(u,ee,{value:m,writable:!0}),u},S:function(s,c,p){p?zt(c)&&c[ee].A===s&&e(s.p):(s.u&&function u(m){if(m&&typeof m=="object"){var h=m[ee];if(h){var b=h.t,S=h.k,v=h.R,E=h.i;if(E===4)wr(S,function($){$!==ee&&(b[$]!==void 0||io(b,$)?v[$]||u(S[$]):(v[$]=!0,Jt(h)))}),wr(b,function($){S[$]!==void 0||io(S,$)||(v[$]=!1,Jt(h))});else if(E===5){if(n(h)&&(Jt(h),v.length=!0),S.length<b.length)for(var I=S.length;I<b.length;I++)v[I]=!1;else for(var N=b.length;N<S.length;N++)v[N]=!0;for(var _=Math.min(S.length,b.length),D=0;D<_;D++)S.hasOwnProperty(D)||(v[D]=!0),v[D]===void 0&&u(S[D])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?o(s):n(s)}})}var kc,ko,Ei=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Su=typeof Map<"u",Cu=typeof Set<"u",Dc=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Uc=Ei?Symbol.for("immer-nothing"):((kc={})["immer-nothing"]=!0,kc),Bc=Ei?Symbol.for("immer-draftable"):"__$immer_draftable",ee=Ei?Symbol.for("immer-state"):"__$immer_state";var Ou=""+Object.prototype.constructor,so=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,zc=Object.getOwnPropertyDescriptors||function(t){var e={};return so(t).forEach(function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)}),e},bi={},Do={get:function(t,e){if(e===ee)return t;var o=Xt(t);if(!io(o,e))return function(a,i,s){var c,p=_c(i,s);return p?"value"in p?p.value:(c=p.get)===null||c===void 0?void 0:c.call(a.k):void 0}(t,o,e);var n=o[e];return t.I||!pt(n)?n:n===fi(t.t,e)?(hi(t),t.o[e]=gi(t.A.h,n,t)):n},has:function(t,e){return e in Xt(t)},ownKeys:function(t){return Reflect.ownKeys(Xt(t))},set:function(t,e,o){var n=_c(Xt(t),e);if(n?.set)return n.set.call(t.k,o),!0;if(!t.P){var a=fi(Xt(t),e),i=a?.[ee];if(i&&i.t===o)return t.o[e]=o,t.R[e]=!1,!0;if($c(o,a)&&(o!==void 0||io(t.t,e)))return!0;hi(t),Jt(t)}return t.o[e]===o&&(o!==void 0||e in t.o)||Number.isNaN(o)&&Number.isNaN(t.o[e])||(t.o[e]=o,t.R[e]=!0),!0},deleteProperty:function(t,e){return fi(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,hi(t),Jt(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=Xt(t),n=Reflect.getOwnPropertyDescriptor(o,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:o[e]}},defineProperty:function(){ot(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){ot(12)}},Po={};wr(Do,function(t,e){Po[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),Po.deleteProperty=function(t,e){return Po.set.call(this,t,e,void 0)},Po.set=function(t,e,o){return Do.set.call(this,t[0],e,o,t[0])};var Eu=function(){function t(o){var n=this;this.O=Dc,this.D=!0,this.produce=function(a,i,s){if(typeof a=="function"&&typeof i!="function"){var c=i;i=a;var p=n;return function(E){var I=this;E===void 0&&(E=c);for(var N=arguments.length,_=Array(N>1?N-1:0),D=1;D<N;D++)_[D-1]=arguments[D];return p.produce(E,function($){var F;return(F=i).call.apply(F,[I,$].concat(_))})}}var u;if(typeof i!="function"&&ot(6),s!==void 0&&typeof s!="function"&&ot(7),pt(a)){var m=Nc(n),h=gi(n,a,void 0),b=!0;try{u=i(h),b=!1}finally{b?wn(m):mi(m)}return typeof Promise<"u"&&u instanceof Promise?u.then(function(E){return pi(m,s),ui(E,m)},function(E){throw wn(m),E}):(pi(m,s),ui(u,m))}if(!a||typeof a!="object"){if((u=i(a))===void 0&&(u=a),u===Uc&&(u=void 0),n.D&&Ci(u,!0),s){var S=[],v=[];At("Patches").M(a,u,S,v),s(S,v)}return u}ot(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(u){for(var m=arguments.length,h=Array(m>1?m-1:0),b=1;b<m;b++)h[b-1]=arguments[b];return n.produceWithPatches(u,function(S){return a.apply(void 0,[S].concat(h))})};var s,c,p=n.produce(a,i,function(u,m){s=u,c=m});return typeof Promise<"u"&&p instanceof Promise?p.then(function(u){return[u,s,c]}):[p,s,c]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var e=t.prototype;return e.createDraft=function(o){pt(o)||ot(8),zt(o)&&(o=vu(o));var n=Nc(this),a=gi(this,o,void 0);return a[ee].C=!0,mi(n),a},e.finishDraft=function(o,n){var a=o&&o[ee],i=a.A;return pi(i,n),ui(void 0,i)},e.setAutoFreeze=function(o){this.D=o},e.setUseProxies=function(o){o&&!Dc&&ot(20),this.O=o},e.applyPatches=function(o,n){var a;for(a=n.length-1;a>=0;a--){var i=n[a];if(i.path.length===0&&i.op==="replace"){o=i.value;break}}a>-1&&(n=n.slice(a+1));var s=At("Patches").$;return zt(o)?s(o,n):this.produce(o,function(c){return s(c,n)})},t}(),Ye=new Eu,Au=Ye.produce,c0=Ye.produceWithPatches.bind(Ye),d0=Ye.setAutoFreeze.bind(Ye),p0=Ye.setUseProxies.bind(Ye),u0=Ye.applyPatches.bind(Ye),f0=Ye.createDraft.bind(Ye),h0=Ye.finishDraft.bind(Ye),Ln=Au;function Rr(t){"@babel/helpers - typeof";return Rr=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},Rr(t)}function Hc(t,e){if(Rr(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var n=o.call(t,e||"default");if(Rr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Wc(t){var e=Hc(t,"string");return Rr(e)=="symbol"?e:e+""}function Vc(t,e,o){return(e=Wc(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function Gc(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),o.push.apply(o,n)}return o}function Ai(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?Gc(Object(o),!0).forEach(function(n){Vc(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Gc(Object(o)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))})}return t}function _e(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 jc=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),wi=function(){return Math.random().toString(36).substring(7).split("").join(".")},Nn={INIT:"@@redux/INIT"+wi(),REPLACE:"@@redux/REPLACE"+wi(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+wi()}};function wu(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 Ri(t,e,o){var n;if(typeof e=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(_e(0));if(typeof e=="function"&&typeof o>"u"&&(o=e,e=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(_e(1));return o(Ri)(t,e)}if(typeof t!="function")throw new Error(_e(2));var a=t,i=e,s=[],c=s,p=!1;function u(){c===s&&(c=s.slice())}function m(){if(p)throw new Error(_e(3));return i}function h(E){if(typeof E!="function")throw new Error(_e(4));if(p)throw new Error(_e(5));var I=!0;return u(),c.push(E),function(){if(I){if(p)throw new Error(_e(6));I=!1,u();var _=c.indexOf(E);c.splice(_,1),s=null}}}function b(E){if(!wu(E))throw new Error(_e(7));if(typeof E.type>"u")throw new Error(_e(8));if(p)throw new Error(_e(9));try{p=!0,i=a(i,E)}finally{p=!1}for(var I=s=c,N=0;N<I.length;N++){var _=I[N];_()}return E}function S(E){if(typeof E!="function")throw new Error(_e(10));a=E,b({type:Nn.REPLACE})}function v(){var E,I=h;return E={subscribe:function(_){if(typeof _!="object"||_===null)throw new Error(_e(11));function D(){_.next&&_.next(m())}D();var $=I(D);return{unsubscribe:$}}},E[jc]=function(){return this},E}return b({type:Nn.INIT}),n={dispatch:b,subscribe:h,getState:m,replaceReducer:S},n[jc]=v,n}function Ru(t){Object.keys(t).forEach(function(e){var o=t[e],n=o(void 0,{type:Nn.INIT});if(typeof n>"u")throw new Error(_e(12));if(typeof o(void 0,{type:Nn.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(_e(13))})}function Kc(t){for(var e=Object.keys(t),o={},n=0;n<e.length;n++){var a=e[n];typeof t[a]=="function"&&(o[a]=t[a])}var i=Object.keys(o),s,c;try{Ru(o)}catch(p){c=p}return function(u,m){if(u===void 0&&(u={}),c)throw c;if(0)var h;for(var b=!1,S={},v=0;v<i.length;v++){var E=i[v],I=o[E],N=u[E],_=I(N,m);if(typeof _>"u"){var D=m&&m.type;throw new Error(_e(14))}S[E]=_,b=b||_!==N}return b=b||i.length!==Object.keys(u).length,b?S:u}}function co(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function Zc(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(n){return function(){var a=n.apply(void 0,arguments),i=function(){throw new Error(_e(15))},s={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},c=e.map(function(p){return p(s)});return i=co.apply(void 0,c)(a.dispatch),Ai(Ai({},a),{},{dispatch:i})}}}function qc(t){var e=function(n){var a=n.dispatch,i=n.getState;return function(s){return function(c){return typeof c=="function"?c(a,i,t):s(c)}}};return e}var Yc=qc();Yc.withExtraArgument=qc;var Ti=Yc;var td=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},t(e,o)};return function(e,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");t(e,o);function n(){this.constructor=e}e.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),Tu=function(t,e){var o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(u){return function(m){return p([u,m])}}function p(u){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,a=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(i=o.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){o=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){o.label=u[1];break}if(u[0]===6&&o.label<i[1]){o.label=i[1],i=u;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(u);break}i[2]&&o.ops.pop(),o.trys.pop();continue}u=e.call(t,o)}catch(m){u=[6,m],a=0}finally{n=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},po=function(t,e){for(var o=0,n=e.length,a=t.length;o<n;o++,a++)t[a]=e[o];return t},Lu=Object.defineProperty,Nu=Object.defineProperties,Iu=Object.getOwnPropertyDescriptors,Qc=Object.getOwnPropertySymbols,_u=Object.prototype.hasOwnProperty,Pu=Object.prototype.propertyIsEnumerable,Xc=function(t,e,o){return e in t?Lu(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},er=function(t,e){for(var o in e||(e={}))_u.call(e,o)&&Xc(t,o,e[o]);if(Qc)for(var n=0,a=Qc(e);n<a.length;n++){var o=a[n];Pu.call(e,o)&&Xc(t,o,e[o])}return t},Li=function(t,e){return Nu(t,Iu(e))},ku=function(t,e,o){return new Promise(function(n,a){var i=function(p){try{c(o.next(p))}catch(u){a(u)}},s=function(p){try{c(o.throw(p))}catch(u){a(u)}},c=function(p){return p.done?n(p.value):Promise.resolve(p.value).then(i,s)};c((o=o.apply(t,e)).next())})};var Du=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?co:co.apply(null,arguments)},_0=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function Bu(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var o=e;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return e===o}var Mu=function(t){td(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=t.apply(this,o)||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 o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,po([void 0],o[0].concat(this)))):new(e.bind.apply(e,po([void 0],o.concat(this))))},e}(Array),$u=function(t){td(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=t.apply(this,o)||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 o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,po([void 0],o[0].concat(this)))):new(e.bind.apply(e,po([void 0],o.concat(this))))},e}(Array);function _i(t){return pt(t)?Ln(t,function(){}):t}function Fu(t){return typeof t=="boolean"}function Uu(){return function(e){return zu(e)}}function zu(t){t===void 0&&(t={});var e=t.thunk,o=e===void 0?!0:e,n=t.immutableCheck,a=n===void 0?!0:n,i=t.serializableCheck,s=i===void 0?!0:i,c=new Mu;if(o&&(Fu(o)?c.push(Ti):c.push(Ti.withExtraArgument(o.extraArgument))),0){if(a)var p;if(s)var u}return c}var Ni=!0;function rd(t){var e=Uu(),o=t||{},n=o.reducer,a=n===void 0?void 0:n,i=o.middleware,s=i===void 0?e():i,c=o.devTools,p=c===void 0?!0:c,u=o.preloadedState,m=u===void 0?void 0:u,h=o.enhancers,b=h===void 0?void 0:h,S;if(typeof a=="function")S=a;else if(Bu(a))S=Kc(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 v=s;if(typeof v=="function"&&(v=v(e),!Ni&&!Array.isArray(v)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Ni&&v.some(function($){return typeof $!="function"}))throw new Error("each middleware provided to configureStore must be a function");var E=Zc.apply(void 0,v),I=co;p&&(I=Du(er({trace:!Ni},typeof p=="object"&&p)));var N=new $u(E),_=N;Array.isArray(b)?_=po([E],b):typeof b=="function"&&(_=b(N));var D=I.apply(void 0,_);return Ri(S,m,D)}function tr(t,e){function o(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(e){var i=e.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return er(er({type:t,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:t,payload:n[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(n){return n.type===t},o}function od(t){var e={},o=[],n,a={addCase:function(i,s){var c=typeof i=="string"?i:i.type;if(c in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[c]=s,a},addMatcher:function(i,s){return o.push({matcher:i,reducer:s}),a},addDefaultCase:function(i){return n=i,a}};return t(a),[e,o,n]}function Hu(t){return typeof t=="function"}function Wu(t,e,o,n){o===void 0&&(o=[]);var a=typeof e=="function"?od(e):[e,o,n],i=a[0],s=a[1],c=a[2],p;if(Hu(t))p=function(){return _i(t())};else{var u=_i(t);p=function(){return u}}function m(h,b){h===void 0&&(h=p());var S=po([i[b.type]],s.filter(function(v){var E=v.matcher;return E(b)}).map(function(v){var E=v.reducer;return E}));return S.filter(function(v){return!!v}).length===0&&(S=[c]),S.reduce(function(v,E){if(E)if(zt(v)){var I=v,N=E(I,b);return N===void 0?v:N}else{if(pt(v))return Ln(v,function(_){return E(_,b)});var N=E(v,b);if(N===void 0){if(v===null)return v;throw Error("A case reducer on a non-draftable value must not return undefined")}return N}return v},h)}return m.getInitialState=p,m}function Vu(t,e){return t+"/"+e}function nd(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof t.initialState=="function"?t.initialState:_i(t.initialState),n=t.reducers||{},a=Object.keys(n),i={},s={},c={};a.forEach(function(m){var h=n[m],b=Vu(e,m),S,v;"reducer"in h?(S=h.reducer,v=h.prepare):S=h,i[m]=S,s[b]=S,c[m]=v?tr(b,v):tr(b)});function p(){var m=typeof t.extraReducers=="function"?od(t.extraReducers):[t.extraReducers],h=m[0],b=h===void 0?{}:h,S=m[1],v=S===void 0?[]:S,E=m[2],I=E===void 0?void 0:E,N=er(er({},b),s);return Wu(o,function(_){for(var D in N)_.addCase(D,N[D]);for(var $=0,F=v;$<F.length;$++){var ze=F[$];_.addMatcher(ze.matcher,ze.reducer)}I&&_.addDefaultCase(I)})}var u;return{name:e,reducer:function(m,h){return u||(u=p()),u(m,h)},actions:c,caseReducers:i,getInitialState:function(){return u||(u=p()),u.getInitialState()}}}var Gu="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",ju=function(t){t===void 0&&(t=21);for(var e="",o=t;o--;)e+=Gu[Math.random()*64|0];return e},Ku=["name","message","stack","code"],Ii=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),Jc=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),Zu=function(t){if(typeof t=="object"&&t!==null){for(var e={},o=0,n=Ku;o<n.length;o++){var a=n[o];typeof t[a]=="string"&&(e[a]=t[a])}return e}return{message:String(t)}},B0=function(){function t(e,o,n){var a=tr(e+"/fulfilled",function(m,h,b,S){return{payload:m,meta:Li(er({},S||{}),{arg:b,requestId:h,requestStatus:"fulfilled"})}}),i=tr(e+"/pending",function(m,h,b){return{payload:void 0,meta:Li(er({},b||{}),{arg:h,requestId:m,requestStatus:"pending"})}}),s=tr(e+"/rejected",function(m,h,b,S,v){return{payload:S,error:(n&&n.serializeError||Zu)(m||"Rejected"),meta:Li(er({},v||{}),{arg:b,requestId:h,rejectedWithValue:!!S,requestStatus:"rejected",aborted:m?.name==="AbortError",condition:m?.name==="ConditionError"})}}),c=!1,p=typeof AbortController<"u"?AbortController:function(){function m(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return m.prototype.abort=function(){},m}();function u(m){return function(h,b,S){var v=n?.idGenerator?n.idGenerator(m):ju(),E=new p,I,N=!1;function _($){I=$,E.abort()}var D=function(){return ku(this,null,function(){var $,F,ze,gt,Pe,bt,Se;return Tu(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),gt=($=n?.condition)==null?void 0:$.call(n,m,{getState:b,extra:S}),Yu(gt)?[4,gt]:[3,2];case 1:gt=y.sent(),y.label=2;case 2:if(gt===!1||E.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return N=!0,Pe=new Promise(function(x,P){return E.signal.addEventListener("abort",function(){return P({name:"AbortError",message:I||"Aborted"})})}),h(i(v,m,(F=n?.getPendingMeta)==null?void 0:F.call(n,{requestId:v,arg:m},{getState:b,extra:S}))),[4,Promise.race([Pe,Promise.resolve(o(m,{dispatch:h,getState:b,extra:S,requestId:v,signal:E.signal,abort:_,rejectWithValue:function(x,P){return new Ii(x,P)},fulfillWithValue:function(x,P){return new Jc(x,P)}})).then(function(x){if(x instanceof Ii)throw x;return x instanceof Jc?a(x.payload,v,m,x.meta):a(x,v,m)})])];case 3:return ze=y.sent(),[3,5];case 4:return bt=y.sent(),ze=bt instanceof Ii?s(null,v,m,bt.payload,bt.meta):s(bt,v,m),[3,5];case 5:return Se=n&&!n.dispatchConditionRejection&&s.match(ze)&&ze.meta.condition,Se||h(ze),[2,ze]}})})}();return Object.assign(D,{abort:_,requestId:v,arg:m,unwrap:function(){return D.then(qu)}})}}return Object.assign(u,{pending:i,rejected:s,fulfilled:a,typePrefix:e})}return t.withTypes=function(){return t},t}();function qu(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Yu(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var ad="listener",id="completed",sd="cancelled",M0="task-"+sd,$0="task-"+id,F0=ad+"-"+sd,U0=ad+"-"+id;var Pi="listenerMiddleware";var z0=tr(Pi+"/add"),H0=tr(Pi+"/removeAll"),W0=tr(Pi+"/remove");var ed,V0=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(ed||(ed=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},Qu=function(t){return function(e){setTimeout(e,t)}},G0=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Qu(10);Fc();var Xu=vn(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(o,n,a){this.eventBus.addEventListener(o,n,a)}dispatchEvent(o){return this.eventBus.dispatchEvent(o)}removeEventListener(o,n,a){this.eventBus.removeEventListener(o,n,a)}}}),In=class extends Xu(Object){};window.ftReduxStores||(window.ftReduxStores={});var ld=class t extends In{static get(e){var o;let n=typeof e=="string"?e:e.name,a=typeof e=="string"?void 0:e,i=window.ftReduxStores[n];if(An(i))return i;if(a==null)return;let s=nd({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),c=rd({reducer:(p,u)=>u.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__")?{...p,...u.overwrites}:s.reducer(p,u)});return window.ftReduxStores[a.name]=new t(s,c,a.eventBus)}constructor(e,o,n){super(),this.reduxSlice=e,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new Sn;let a=i=>i!=null?JSON.parse(JSON.stringify(i)):i;this.actions=new Proxy(this.reduxSlice.actions,{get:(i,s,c)=>{let p=s,u=i[p];return u?(...m)=>{let h=u(...m.map(a));return this.reduxStore.dispatch(h),h}:m=>{this.setState({[p]:a(m)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}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 _n=class{static format(e,o,n,a){return window.moment?window.moment(e).locale(o).format(this.getMomentDateFormat(n,a)):this.getIntlDateTime(e,o,n,a)}static getMomentDateFormat(e,o){return e?o?"lll":"ll":o?"L LT":"L"}static getIntlDateTime(e,o,n,a){let i=typeof e=="string"?new Date(e):e,s=new Intl.DateTimeFormat(o,{dateStyle:n?"medium":"short"}).format(i);if(!a)return s;let c=new Intl.DateTimeFormat(o,{timeStyle:"short"}).format(i);return`${s} ${c}`}static getTimezoneAsString(){let e=n=>String(Math.floor(n)).padStart(2,"0"),o=new Date().getTimezoneOffset();return`${o<0?"+":"-"}${e(Math.abs(o)/60)}:${e(Math.abs(o)%60)}`}};var cd=g(R()),Pn=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(i=(a<3?s(i):a>3?s(e,o,i):s(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},gS=(0,cd.applyMixinOnce)(Symbol("withDateFormat"),function(t){class e extends t{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(T)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var a,i;return((i=(a=this.metadataDescriptors.find(c=>c.key===n))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1)?c=>_n.format(c,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Pn([(0,ki.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),Pn([(0,ki.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),Pn([di({store:T.name,selector:o=>{var n,a;return(a=(n=o.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&a!==void 0?a:[]}})],e.prototype,"metadataDescriptors",void 0),Pn([di({store:T.name})],e.prototype,"uiLocale",void 0),e});var Bn=g(R());var kn=class extends Ie{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=T.getState().session;return!!e?.sessionAuthenticated}};var Dn=class extends Ie{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=T.getState().session;return!!e?.sessionAuthenticated}};var Ju="ft-user-assets",ef={setAssetCount:(t,e)=>{let{userAssetType:o,count:n}=e.payload.assetCount;t.assetCounts.allAsset[o]=n},clearAssetCount:t=>{Object.values(rt).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let o=e.payload.mapId;t.assetCounts.bookmarkByMap[o]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:o,mapId:n,asset:a}=e.payload;Bi(t,o,[...Di(t,o),a]),dd(t,o,1,n),pd(t,a)},editAsset:(t,e)=>{let{assetType:o,asset:n}=e.payload;Bi(t,o,Di(t,o).map(a=>a.id===n.id?n:a)),pd(t,n)},removeAsset:(t,e)=>{let{assetType:o,mapId:n,assetId:a}=e.payload;Bi(t,o,Di(t,o).filter(i=>i.id!==a)),dd(t,o,-1,n)}},ud={[rt.SEARCHES]:"savedSearches",[rt.BOOKMARKS]:"bookmarks",[rt.BOOKS]:void 0,[rt.COLLECTIONS]:void 0},Di=(t,e)=>{var o;let n=ud[e];return n?(o=t[n])!==null&&o!==void 0?o:[]:[]},Bi=(t,e,o)=>{let n=ud[e];n&&(t[n]=o)},dd=(t,e,o,n)=>{let a=t.assetCounts.allAsset[e];if(a!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,a+o),e===rt.BOOKMARKS&&n)){let i=t.assetCounts.bookmarkByMap[n];t.assetCounts.bookmarkByMap[n]=Math.max(0,i+o)}},pd=(t,e)=>{let o=t.assetLabels.map(a=>a.title),n=e.labels.filter(a=>!o.includes(a)).map(a=>({title:a}));t.assetLabels.push(...n)},Qe=Bn.FtReduxStore.get({name:Ju,reducers:ef,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(rt).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Mi=class{constructor(e=new kn,o=new Dn){this.assetCountsService=e,this.assetLabelsService=o,this.currentSession=T.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new dn,this.savedSearchesService=new mn,T.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:o}=T.getState();(0,Bn.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),Qe.actions.clearAssetCount(),Qe.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Qe.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Qe.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Qe.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();Qe.actions.assetLabels(e)}async loadAssetCount(e){let o=await this.assetCountsService.getUserAssetCount(e);o&&Qe.actions.setAssetCount({assetCount:o})}async loadBookmarkByMapId(e){let o=await this.assetCountsService.getUserBookmarkCountByMap(e);o&&Qe.actions.setBookmarkCountByMap({count:o.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let o=Object.keys(Qe.getState().assetCounts.bookmarkByMap).length!==0;e===rt.BOOKMARKS&&o&&Qe.actions.clearBookmarkCountByMap(),Qe.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let o=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Qe.actions.bookmarks(o)}}},$i=new Mi;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=$i);(0,fd.customElement)("ft-app-context")(Y);var hd=g(j());var Fi=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[n,a]=e.split(".");return{context:n,key:a,custom:!0,message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},uo=new Fi;var tf=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(i=(a<3?s(i):a>3?s(e,o,i):s(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},Mo=Symbol("i18nAttributes"),yd=Symbol("i18nListAttributes"),md=Symbol("i18nProperties"),Mn=Symbol("i18nContexts"),Bo=Symbol("i18nUnsubs"),ho=(0,fo.applyMixinOnce)(Symbol("withI18n"),function(t){var e,o;class n extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[o]=new Map}getI18nService(i){return i??this.useCustomMessageContexts?un:eo}i18n(i){let{context:s,key:c,message:p}=i,{custom:u,args:m,argsProvider:h}=i;if(s&&c){this.hasI18nContext(s)||this.addI18nContext(s,void 0,u);let b=m??(h?h(this):[]);return this.getI18nService(u).resolveMessage(s,c,...b)}return p}async awaitI18n(i){let{context:s,custom:c}=i;return s&&await this.getI18nService(c).prepareContext(s),this.i18n(i)}customI18n(i,s){if(uo.isI18nKey(i)){let[c,p]=i.split(".");return this.i18n({custom:!0,context:c,key:p,...s})||i}return i}firstUpdated(i){super.firstUpdated(i),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(i){super.update(i),this.updateI18nAttributes((s,c,p)=>i.has(c)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(i){this.updateI18nAttributes((s,c,p)=>{var u;return((u=p?.context)===null||u===void 0?void 0:u.toLowerCase())===i}),this.updateI18nProperties(s=>s.context.toLowerCase()===i),this.requestUpdate()}updateI18nAttributes(i){var s,c;let p=this,u=(m,h,b)=>b?.context&&b.key&&i(m,h,b)?{...b,message:this.i18n({context:b.context,key:b.key,custom:b.custom,...m})}:b;(s=this[Mo])===null||s===void 0||s.forEach((m,h)=>p[h]=u(m,h,p[h])),(c=this[yd])===null||c===void 0||c.forEach((m,h)=>{var b;return p[h]=(b=p[h])===null||b===void 0?void 0:b.map(S=>u(m,h,S))})}updateI18nProperties(i){var s;(s=this[md])===null||s===void 0||s.forEach((c,p)=>{i(c,p)&&(this[p]=this.i18n(c))})}addI18nMessages(i,s,c){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(i,s,c)}addI18nContext(i,s,c){let p=(typeof i=="string"?i:i.name).toLowerCase();c=typeof i=="string"?c:i.custom,this[Mn].set(p,{isCustomContext:c}),this[Bo].has(p)||this[Bo].set(p,this.getI18nService(c).subscribe(p,()=>this.onI18nUpdate(p))),this.getI18nService(c).prepareContext(p,s)}hasI18nContext(i){return this[Mn].has(i.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Mn].forEach((i,s)=>this.addI18nContext(s,void 0,i.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Bo].forEach(i=>i()),this[Bo].clear()}}return e=Mn,o=Bo,tf([(0,hd.property)({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}),$n=class extends ho(fo.FtLitElement){},Fn=class extends ho(fo.FtLitElementRedux){};var gd=g(R());var Ui=class{fromAttribute(e){if(!e)return[];try{let o=JSON.parse(e);return Array.isArray(o)?o.map(n=>typeof n=="string"?uo.fromAttribute(n):n):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},rf=new Ui;var bd=(t,e)=>(o,n)=>{var a;o.constructor.createProperty(n,{type:Object,hasChanged:gd.hasChanged,converter:uo,...e}),o[Mo]=(a=o[Mo])!==null&&a!==void 0?a:new Map,o[Mo].set(n,t??{})};var Sd=g(R());var Un=g(k()),zn=g(j()),Hn=g(R());var xd=g(k());var vd=xd.css`
|
|
546
546
|
`;var $o=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(i=(a<3?s(i):a>3?s(e,o,i):s(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},ut=class extends Fn{constructor(){super(),this.editorMode=!1,this.addStore(T)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":Un.nothing:Un.html`
|