@fluid-topics/ft-search-facet 2.0.9 → 2.0.11
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.
|
@@ -601,7 +601,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
601
601
|
position: relative;
|
|
602
602
|
word-break: break-word;
|
|
603
603
|
}
|
|
604
|
-
`;var u1=["top","right","bottom","left"],f1=["start","end"],$i=u1.reduce((e,t)=>e.concat(t,t+"-"+f1[0],t+"-"+f1[1]),[]),cn=Math.min,yr=Math.max,ln=Math.round;var Tt=e=>({x:e,y:e}),Tu={left:"right",right:"left",bottom:"top",top:"bottom"};function Ui(e,t,r){return yr(e,cn(t,r))}function ea(e,t){return typeof e=="function"?e(t):e}function Eo(e){return e.split("-")[0]}function br(e){return e.split("-")[1]}function Fi(e){return e==="x"?"y":"x"}function Hi(e){return e==="y"?"height":"width"}function ta(e){let t=e[0];return t==="t"||t==="b"?"y":"x"}function Gi(e){return Fi(ta(e))}function p1(e,t,r){r===void 0&&(r=!1);let n=br(e),a=Gi(e),i=Hi(a),s=a==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Bi(s)),[s,Bi(s)]}function h1(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}function Bi(e){let t=Eo(e);return Tu[t]+e.slice(t.length)}function ku(e){return{top:0,right:0,bottom:0,left:0,...e}}function m1(e){return typeof e!="number"?ku(e):{top:e,right:e,bottom:e,left:e}}function Wr(e){let{x:t,y:r,width:n,height:a}=e;return{width:n,height:a,top:r,left:t,right:t+n,bottom:r+a,x:t,y:r}}function g1(e,t,r){let{reference:n,floating:a}=e,i=ta(t),s=Gi(t),c=Hi(s),f=Eo(t),u=i==="y",m=n.x+n.width/2-a.width/2,g=n.y+n.height/2-a.height/2,y=n[c]/2-a[c]/2,S;switch(f){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:g};break;case"left":S={x:n.x-a.width,y:g};break;default:S={x:n.x,y:n.y}}switch(br(t)){case"start":S[s]-=y*(r&&u?-1:1);break;case"end":S[s]+=y*(r&&u?-1:1);break}return S}async function y1(e,t){var r;t===void 0&&(t={});let{x:n,y:a,platform:i,rects:s,elements:c,strategy:f}=e,{boundary:u="clippingAncestors",rootBoundary:m="viewport",elementContext:g="floating",altBoundary:y=!1,padding:S=0}=ea(t,e),C=m1(S),N=c[y?g==="floating"?"reference":"floating":g],M=Wr(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(N)))==null||r?N:N.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(c.floating)),boundary:u,rootBoundary:m,strategy:f})),T=g==="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)),U=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},W=Wr(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:T,offsetParent:D,strategy:f}):T);return{top:(M.top-W.top+C.top)/U.y,bottom:(W.bottom-M.bottom+C.bottom)/U.y,left:(M.left-W.left+C.left)/U.x,right:(W.right-M.right+C.right)/U.x}}var Mu=50,b1=async(e,t,r)=>{let{placement:n="bottom",strategy:a="absolute",middleware:i=[],platform:s}=r,c=s.detectOverflow?s:{...s,detectOverflow:y1},f=await(s.isRTL==null?void 0:s.isRTL(t)),u=await s.getElementRects({reference:e,floating:t,strategy:a}),{x:m,y:g}=g1(u,n,f),y=n,S=0,C={};for(let L=0;L<i.length;L++){let N=i[L];if(!N)continue;let{name:M,fn:T}=N,{x:D,y:U,data:W,reset:ae}=await T({x:m,y:g,initialPlacement:n,placement:y,strategy:a,middlewareData:C,rects:u,platform:c,elements:{reference:e,floating:t}});m=D??m,g=U??g,C[M]={...C[M],...W},ae&&S<Mu&&(S++,typeof ae=="object"&&(ae.placement&&(y=ae.placement),ae.rects&&(u=ae.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:a}):ae.rects),{x:m,y:g}=g1(u,y,f)),L=-1)}return{x:m,y:g,placement:y,strategy:a,middlewareData:C}};function Pu(e,t,r){return(e?[...r.filter(a=>br(a)===e),...r.filter(a=>br(a)!==e)]:r.filter(a=>Eo(a)===a)).filter(a=>e?br(a)===e||(t?h1(a)!==a:!1):!0)}var v1=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,n,a;let{rects:i,middlewareData:s,placement:c,platform:f,elements:u}=t,{crossAxis:m=!1,alignment:g,allowedPlacements:y=$i,autoAlignment:S=!0,...C}=ea(e,t),L=g!==void 0||y===$i?Pu(g||null,S,y):y,N=await f.detectOverflow(t,C),M=((r=s.autoPlacement)==null?void 0:r.index)||0,T=L[M];if(T==null)return{};let D=p1(T,i,await(f.isRTL==null?void 0:f.isRTL(u.floating)));if(c!==T)return{reset:{placement:L[0]}};let U=[N[Eo(T)],N[D[0]],N[D[1]]],W=[...((n=s.autoPlacement)==null?void 0:n.overflows)||[],{placement:T,overflows:U}],ae=L[M+1];if(ae)return{data:{index:M+1,overflows:W},reset:{placement:ae}};let Je=W.map(Me=>{let x=br(Me.placement);return[Me.placement,x&&m?Me.overflows.slice(0,2).reduce((E,F)=>E+F,0):Me.overflows[0],Me.overflows]}).sort((Me,x)=>Me[1]-x[1]),Ut=((a=Je.filter(Me=>Me[2].slice(0,br(Me[0])?2:3).every(x=>x<=0))[0])==null?void 0:a[0])||Je[0][0];return Ut!==c?{data:{index:M+1,overflows:W},reset:{placement:Ut}}:{}}}};var x1=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:n,placement:a,platform:i}=t,{mainAxis:s=!0,crossAxis:c=!1,limiter:f={fn:M=>{let{x:T,y:D}=M;return{x:T,y:D}}},...u}=ea(e,t),m={x:r,y:n},g=await i.detectOverflow(t,u),y=ta(Eo(a)),S=Fi(y),C=m[S],L=m[y];if(s){let M=S==="y"?"top":"left",T=S==="y"?"bottom":"right",D=C+g[M],U=C-g[T];C=Ui(D,C,U)}if(c){let M=y==="y"?"top":"left",T=y==="y"?"bottom":"right",D=L+g[M],U=L-g[T];L=Ui(D,L,U)}let N=f.fn({...t,[S]:C,[y]:L});return{...N,data:{x:N.x-r,y:N.y-n,enabled:{[S]:s,[y]:c}}}}}};function oa(){return typeof window<"u"}function jr(e){return C1(e)?(e.nodeName||"").toLowerCase():"#document"}function tt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Gt(e){var t;return(t=(C1(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function C1(e){return oa()?e instanceof Node||e instanceof tt(e).Node:!1}function gt(e){return oa()?e instanceof Element||e instanceof tt(e).Element:!1}function Wt(e){return oa()?e instanceof HTMLElement||e instanceof tt(e).HTMLElement:!1}function S1(e){return!oa()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof tt(e).ShadowRoot}function Lo(e){let{overflow:t,overflowX:r,overflowY:n,display:a}=yt(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&a!=="inline"&&a!=="contents"}function O1(e){return/^(table|td|th)$/.test(jr(e))}function dn(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var zu=/transform|translate|scale|rotate|perspective|filter/,Iu=/paint|layout|strict|content/,Vr=e=>!!e&&e!=="none",Wi;function na(e){let t=gt(e)?yt(e):e;return Vr(t.transform)||Vr(t.translate)||Vr(t.scale)||Vr(t.rotate)||Vr(t.perspective)||!aa()&&(Vr(t.backdropFilter)||Vr(t.filter))||zu.test(t.willChange||"")||Iu.test(t.contain||"")}function E1(e){let t=rr(e);for(;Wt(t)&&!Kr(t);){if(na(t))return t;if(dn(t))return null;t=rr(t)}return null}function aa(){return Wi==null&&(Wi=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Wi}function Kr(e){return/^(html|body|#document)$/.test(jr(e))}function yt(e){return tt(e).getComputedStyle(e)}function fn(e){return gt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function rr(e){if(jr(e)==="html")return e;let t=e.assignedSlot||e.parentNode||S1(e)&&e.host||Gt(e);return S1(t)?t.host:t}function L1(e){let t=rr(e);return Kr(t)?e.ownerDocument?e.ownerDocument.body:e.body:Wt(t)&&Lo(t)?t:L1(t)}function ra(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);let a=L1(e),i=a===((n=e.ownerDocument)==null?void 0:n.body),s=tt(a);if(i){let c=ia(s);return t.concat(s,s.visualViewport||[],Lo(a)?a:[],c&&r?ra(c):[])}else return t.concat(a,ra(a,[],r))}function ia(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function _1(e){let t=yt(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,a=Wt(e),i=a?e.offsetWidth:r,s=a?e.offsetHeight:n,c=ln(r)!==i||ln(n)!==s;return c&&(r=i,n=s),{width:r,height:n,$:c}}function N1(e){return gt(e)?e:e.contextElement}function Ao(e){let t=N1(e);if(!Wt(t))return Tt(1);let r=t.getBoundingClientRect(),{width:n,height:a,$:i}=_1(t),s=(i?ln(r.width):r.width)/n,c=(i?ln(r.height):r.height)/a;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}var Du=Tt(0);function T1(e){let t=tt(e);return!aa()||!t.visualViewport?Du:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Bu(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==tt(e)?!1:t}function un(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);let a=e.getBoundingClientRect(),i=N1(e),s=Tt(1);t&&(n?gt(n)&&(s=Ao(n)):s=Ao(e));let c=Bu(i,r,n)?T1(i):Tt(0),f=(a.left+c.x)/s.x,u=(a.top+c.y)/s.y,m=a.width/s.x,g=a.height/s.y;if(i){let y=tt(i),S=n&>(n)?tt(n):n,C=y,L=ia(C);for(;L&&n&&S!==C;){let N=Ao(L),M=L.getBoundingClientRect(),T=yt(L),D=M.left+(L.clientLeft+parseFloat(T.paddingLeft))*N.x,U=M.top+(L.clientTop+parseFloat(T.paddingTop))*N.y;f*=N.x,u*=N.y,m*=N.x,g*=N.y,f+=D,u+=U,C=tt(L),L=ia(C)}}return Wr({width:m,height:g,x:f,y:u})}function sa(e,t){let r=fn(e).scrollLeft;return t?t.left+r:un(Gt(e)).left+r}function k1(e,t){let r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-sa(e,r),a=r.top+t.scrollTop;return{x:n,y:a}}function $u(e){let{elements:t,rect:r,offsetParent:n,strategy:a}=e,i=a==="fixed",s=Gt(n),c=t?dn(t.floating):!1;if(n===s||c&&i)return r;let f={scrollLeft:0,scrollTop:0},u=Tt(1),m=Tt(0),g=Wt(n);if((g||!g&&!i)&&((jr(n)!=="body"||Lo(s))&&(f=fn(n)),g)){let S=un(n);u=Ao(n),m.x=S.x+n.clientLeft,m.y=S.y+n.clientTop}let y=s&&!g&&!i?k1(s,f):Tt(0);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-f.scrollLeft*u.x+m.x+y.x,y:r.y*u.y-f.scrollTop*u.y+m.y+y.y}}function Uu(e){return Array.from(e.getClientRects())}function Fu(e){let t=Gt(e),r=fn(e),n=e.ownerDocument.body,a=yr(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=yr(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight),s=-r.scrollLeft+sa(e),c=-r.scrollTop;return yt(n).direction==="rtl"&&(s+=yr(t.clientWidth,n.clientWidth)-a),{width:a,height:i,x:s,y:c}}var A1=25;function Hu(e,t){let r=tt(e),n=Gt(e),a=r.visualViewport,i=n.clientWidth,s=n.clientHeight,c=0,f=0;if(a){i=a.width,s=a.height;let m=aa();(!m||m&&t==="fixed")&&(c=a.offsetLeft,f=a.offsetTop)}let u=sa(n);if(u<=0){let m=n.ownerDocument,g=m.body,y=getComputedStyle(g),S=m.compatMode==="CSS1Compat"&&parseFloat(y.marginLeft)+parseFloat(y.marginRight)||0,C=Math.abs(n.clientWidth-g.clientWidth-S);C<=A1&&(i-=C)}else u<=A1&&(i+=u);return{width:i,height:s,x:c,y:f}}function Gu(e,t){let r=un(e,!0,t==="fixed"),n=r.top+e.clientTop,a=r.left+e.clientLeft,i=Wt(e)?Ao(e):Tt(1),s=e.clientWidth*i.x,c=e.clientHeight*i.y,f=a*i.x,u=n*i.y;return{width:s,height:c,x:f,y:u}}function R1(e,t,r){let n;if(t==="viewport")n=Hu(e,r);else if(t==="document")n=Fu(Gt(e));else if(gt(t))n=Gu(t,r);else{let a=T1(e);n={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return Wr(n)}function M1(e,t){let r=rr(e);return r===t||!gt(r)||Kr(r)?!1:yt(r).position==="fixed"||M1(r,t)}function Wu(e,t){let r=t.get(e);if(r)return r;let n=ra(e,[],!1).filter(c=>gt(c)&&jr(c)!=="body"),a=null,i=yt(e).position==="fixed",s=i?rr(e):e;for(;gt(s)&&!Kr(s);){let c=yt(s),f=na(s);!f&&c.position==="fixed"&&(a=null),(i?!f&&!a:!f&&c.position==="static"&&!!a&&(a.position==="absolute"||a.position==="fixed")||Lo(s)&&!f&&M1(e,s))?n=n.filter(m=>m!==s):a=c,s=rr(s)}return t.set(e,n),n}function Vu(e){let{element:t,boundary:r,rootBoundary:n,strategy:a}=e,s=[...r==="clippingAncestors"?dn(t)?[]:Wu(t,this._c):[].concat(r),n],c=R1(t,s[0],a),f=c.top,u=c.right,m=c.bottom,g=c.left;for(let y=1;y<s.length;y++){let S=R1(t,s[y],a);f=yr(S.top,f),u=cn(S.right,u),m=cn(S.bottom,m),g=yr(S.left,g)}return{width:u-g,height:m-f,x:g,y:f}}function ju(e){let{width:t,height:r}=_1(e);return{width:t,height:r}}function Ku(e,t,r){let n=Wt(t),a=Gt(t),i=r==="fixed",s=un(e,!0,i,t),c={scrollLeft:0,scrollTop:0},f=Tt(0);function u(){f.x=sa(a)}if(n||!n&&!i)if((jr(t)!=="body"||Lo(a))&&(c=fn(t)),n){let S=un(t,!0,i,t);f.x=S.x+t.clientLeft,f.y=S.y+t.clientTop}else a&&u();i&&!n&&a&&u();let m=a&&!n&&!i?k1(a,c):Tt(0),g=s.left+c.scrollLeft-f.x-m.x,y=s.top+c.scrollTop-f.y-m.y;return{x:g,y,width:s.width,height:s.height}}function Vi(e){return yt(e).position==="static"}function w1(e,t){if(!Wt(e)||yt(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Gt(e)===r&&(r=r.ownerDocument.body),r}function P1(e,t){let r=tt(e);if(dn(e))return r;if(!Wt(e)){let a=rr(e);for(;a&&!Kr(a);){if(gt(a)&&!Vi(a))return a;a=rr(a)}return r}let n=w1(e,t);for(;n&&O1(n)&&Vi(n);)n=w1(n,t);return n&&Kr(n)&&Vi(n)&&!na(n)?r:n||E1(e)||r}var qu=async function(e){let t=this.getOffsetParent||P1,r=this.getDimensions,n=await r(e.floating);return{reference:Ku(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Zu(e){return yt(e).direction==="rtl"}var ca={convertOffsetParentRelativeRectToViewportRelativeRect:$u,getDocumentElement:Gt,getClippingRect:Vu,getOffsetParent:P1,getElementRects:qu,getClientRects:Uu,getDimensions:ju,getScale:Ao,isElement:gt,isRTL:Zu};var z1=v1,I1=x1;var D1=(e,t,r)=>{let n=new Map,a={platform:ca,...r},i={...a.platform,_c:n};return b1(e,t,{...a,platform:i})};function B1(e){return Yu(e)}function ji(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function Yu(e){for(let t=e;t;t=ji(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=ji(e);t;t=ji(t)){if(!(t instanceof Element))continue;let r=getComputedStyle(t);if(r.display!=="contents"&&(r.position!=="static"||r.filter!=="none"||t.tagName==="BODY"))return t}return null}async function $1(e,t,r){let n;return typeof r=="object"?n=r:n={placement:r},D1(e,t,{strategy:n.strategy,platform:{...ca,getOffsetParent:a=>ca.getOffsetParent(a,B1)},middleware:[I1({crossAxis:!0}),z1({allowedPlacements:[n.placement]})]})}var Bo=b(w());var ys=b(j());function Xu(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;let r,n,a;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!la(e[n],t[n]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;for(n of e.entries())if(!la(n[1],t.get(n[0])))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();let i=s=>Object.keys(s).filter(c=>s[c]!=null);if(a=i(e),r=a.length,r!==i(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,a[n]))return!1;for(n=r;n--!==0;){let s=a[n];if(!la(e[s],t[s]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function la(e,t){try{return Xu(e,t)}catch{return!1}}function pn(e,t){return!la(e,t)}function U1(e){return typeof window.structuredClone=="function"?structuredClone(e):e!=null?JSON.parse(JSON.stringify(e)):e}function da(e,t){let r=n=>n[e]===!0;return n=>{if(r(n))return n;let a=t(n);return a[e]=!0,a}}var F1=b(j(),1);var Ki=e=>{let t=e??{};return(r,n)=>{var a;let i={hasChanged:pn,attribute:!1,...t};(0,F1.property)(i)(r,n);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(n,{selector:(a=t.selector)!==null&&a!==void 0?a:c=>c[n],store:t.store})}};var fa=class{constructor(){this.queue=[]}add(t,r=!1){r&&this.clear(t.type),this.queue.push(t)}consume(t){let r=this.queue.find(n=>n.type===t);return r&&(this.queue=this.queue.filter(n=>n!==r)),r}clear(t){typeof t=="string"?this.queue=this.queue.filter(r=>r.type!==t):this.queue=this.queue.filter(r=>!t.test(r.type))}};var qr=b(j(),1);var H1=b(j(),1);function G1(e,t){let r=()=>JSON.parse(JSON.stringify(e));return(0,H1.property)({type:Object,converter:{fromAttribute:n=>{if(n==null)return r();try{return JSON.parse(n)}catch{return r()}},toAttribute:n=>JSON.stringify(n)},hasChanged:pn,...t??{}})}var ua=class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,r){return this.callbacks=[t],this.debounce(r)}queue(t,r){return this.callbacks.push(t),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return this.promise==null&&(this.promise=new Promise((r,n)=>{this.resolvePromise=r,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,r;let n=[...this.callbacks];this.callbacks=[];let a=(t=this.rejectPromise)!==null&&t!==void 0?t:()=>null,i=(r=this.resolvePromise)!==null&&r!==void 0?r:()=>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 V1=b($(),1);var pa=globalThis,Qu=pa.ShadowRoot&&(pa.ShadyCSS===void 0||pa.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Mx=Symbol();var W1=(e,t)=>{if(Qu)e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of t){let n=document.createElement("style"),a=pa.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=r.cssText,e.appendChild(n)}};var ha=class extends V1.LitElement{createRenderRoot(){let t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach(([a,i])=>t.registry.define(a,i)));let r={...t.shadowRootOptions,customElements:t.registry},n=this.renderOptions.creationScope=this.attachShadow(r);return W1(n,t.elementStyles),n}};function j1(e,t,...r){var n;let a=e.querySelector(t);for(let i of r)a=(n=a?.shadowRoot)===null||n===void 0?void 0:n.querySelector(i);return a}var wo=function(e,t,r,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var c=e.length-1;c>=0;c--)(s=e[c])&&(i=(a<3?s(i):a>3?s(t,r,i):s(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},Y1,K1=Symbol("constructorPrototype"),q1=Symbol("constructorName"),X1=Symbol("exportpartsDebouncer"),Z1=Symbol("dynamicDependenciesLoaded"),Ro=class e extends CustomEvent{constructor(){super(e.eventName,{bubbles:!0})}};Ro.eventName="exportparts-updated";var Vt=class extends ha{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Y1]=new ua(5),this.scheduleExportpartsUpdate=()=>{var t,r,n;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(n=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&n!==void 0&&n)&&this[X1].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[q1]=this.constructor.name,this[K1]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[q1]&&Object.setPrototypeOf(this,this[K1])}connectedCallback(){var t;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(n){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",n)}let r=this.constructor;r[Z1]||(r[Z1]=!0,this.importDynamicDependencies()),(t=this.shadowRoot)===null||t===void 0||t.addEventListener(Ro.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.shadowRoot)===null||t===void 0||t.removeEventListener(Ro.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(t){super.updated(t),this.updateComplete.then(()=>{this.contentAvailableCallback(t),this.focusElementToFocus(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate(),t.has("exportparts")&&this.dispatchEvent(new Ro)})}contentAvailableCallback(t){}focusElementToFocus(t){if(t.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:n,shadowPath:a}=this.elementToFocus;if(n!=null){let i=[...a??[],n];r=j1(this.shadowRoot,...i)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(t){var r,n,a;if(((n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(i=>i.remove()),this.useAdoptedStyleSheets){if(t.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(t){var r,n,a,i,s,c;let f=y=>y!=null&&y.trim().length>0,u=t.filter(f).map(y=>y.trim());if(u.length===0){this.exportparts=void 0;return}let m=new Set;for(let y of(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let S=(i=(a=y.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&i!==void 0?i:[],C=(c=(s=y.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(N=>N.split(":")[1]))!==null&&c!==void 0?c:[],L=[...S,...C].filter(f).map(N=>N.trim());for(let N of L)m.add(N)}if(m.size===0){this.exportparts=void 0;return}let g=[...m.values()].flatMap(y=>u.map(S=>`${y}:${S}--${y}`));this.exportparts=[...this.part,...g].join(", ")}};Y1=X1;wo([(0,qr.property)()],Vt.prototype,"exportpartsPrefix",void 0);wo([G1([])],Vt.prototype,"exportpartsPrefixes",void 0);wo([(0,qr.property)({reflect:!0})],Vt.prototype,"exportparts",void 0);wo([(0,qr.property)()],Vt.prototype,"customStylesheet",void 0);wo([(0,qr.property)()],Vt.prototype,"elementToFocus",void 0);wo([(0,qr.state)()],Vt.prototype,"useAdoptedStyleSheets",void 0);function ma(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var hn=Symbol("internalReduxEventsUnsubscribers"),vr=Symbol("internalStoresUnsubscribers"),Zr=Symbol("internalStores"),Ju=da(Symbol("withRedux"),function(e){var t,r,n;class a extends e{constructor(){super(...arguments),this[t]=new Map,this[r]=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[Zr].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Zr].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[Zr].get(s)}addStore(s,c){var f;c=(f=c??s.name)!==null&&f!==void 0?f:"default-store",this.unsubscribeFromStore(c),this[Zr].set(c,s),this.subscribeToStore(c,s),this.updateFromStores()}removeStore(s){let c=typeof s=="string"?s:s.name;this.unsubscribeFromStore(c),this[Zr].delete(c)}setupStores(){this.unsubscribeFromStores(),this[Zr].forEach((s,c)=>this.subscribeToStore(c,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,c)=>{let f=this.constructor.getPropertyOptions(c);if(!f?.attribute||!this.hasAttribute(typeof f?.attribute=="string"?f.attribute:c)){let u=this.getStore(s.store);u&&(s.store?this[vr].has(s.store):this[vr].size>0)&&(this[c]=s.selector(u.getState(),this))}})}subscribeToStore(s,c){var f;this[vr].set(s,c.subscribe(()=>this.updateFromStores())),this[hn].set(s,[]),ma(c)&&c.eventBus&&((f=this.reduxConstructor.reduxEventListeners)===null||f===void 0||f.forEach((u,m)=>{if(typeof this[m]=="function"&&(!u.store||c.name===u.store)){let g=y=>this[m](y);c.addEventListener(u.eventName,g),this[hn].get(s).push(()=>c.removeEventListener(u.eventName,g))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[vr].forEach((s,c)=>this.unsubscribeFromStore(c))}unsubscribeFromStore(s){var c;this[vr].has(s)&&this[vr].get(s)(),this[vr].delete(s),(c=this[hn].get(s))===null||c===void 0||c.forEach(f=>f()),this[hn].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return t=vr,r=Zr,n=hn,a.reduxProperties=new Map,a.reduxReactiveProperties=new Set,a.reduxEventListeners=new Map,a}),Q1=class extends Ju(Vt){};function bt(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if(0)var a,i;throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function or(e){return!!e&&!!e[se]}function kt(e){var t;return!!e&&(function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===sp}(e)||Array.isArray(e)||!!e[a2]||!!(!((t=e.constructor)===null||t===void 0)&&t[a2])||rs(e)||os(e))}function Yr(e,t,r){r===void 0&&(r=!1),To(e)===0?(r?Object.keys:No)(e).forEach(function(n){r&&typeof n=="symbol"||t(n,e[n],e)}):e.forEach(function(n,a){return t(a,n,e)})}function To(e){var t=e[se];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:rs(e)?2:os(e)?3:0}function _o(e,t){return To(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function ep(e,t){return To(e)===2?e.get(t):e[t]}function i2(e,t,r){var n=To(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function s2(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function rs(e){return ap&&e instanceof Map}function os(e){return ip&&e instanceof Set}function xr(e){return e.o||e.t}function ns(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=d2(e);delete t[se];for(var r=No(t),n=0;n<r.length;n++){var a=r[n],i=t[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[a]})}return Object.create(Object.getPrototypeOf(e),t)}function as(e,t){return t===void 0&&(t=!1),is(e)||or(e)||!kt(e)||(To(e)>1&&(e.set=e.add=e.clear=e.delete=tp),Object.freeze(e),t&&Yr(e,function(r,n){return as(n,!0)},!0)),e}function tp(){bt(2)}function is(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function jt(e){var t=ts[e];return t||bt(18,e),t}function rp(e,t){ts[e]||(ts[e]=t)}function Qi(){return gn}function qi(e,t){t&&(jt("Patches"),e.u=[],e.s=[],e.v=t)}function ga(e){Ji(e),e.p.forEach(op),e.p=null}function Ji(e){e===gn&&(gn=e.l)}function J1(e){return gn={p:[],l:gn,h:e,m:!0,_:0}}function op(e){var t=e[se];t.i===0||t.i===1?t.j():t.g=!0}function Zi(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.O||jt("ES5").S(t,e,n),n?(r[se].P&&(ga(t),bt(4)),kt(e)&&(e=ya(t,e),t.l||ba(t,e)),t.u&&jt("Patches").M(r[se].t,e,t.u,t.s)):e=ya(t,r,[]),ga(t),t.u&&t.v(t.u,t.s),e!==l2?e:void 0}function ya(e,t,r){if(is(t))return t;var n=t[se];if(!n)return Yr(t,function(c,f){return e2(e,n,t,c,f,r)},!0),t;if(n.A!==e)return t;if(!n.P)return ba(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=ns(n.k):n.o,i=a,s=!1;n.i===3&&(i=new Set(a),a.clear(),s=!0),Yr(i,function(c,f){return e2(e,n,a,c,f,r,s)}),ba(e,a,!1),r&&e.u&&jt("Patches").N(n,r,e.u,e.s)}return n.o}function e2(e,t,r,n,a,i,s){if(or(a)){var c=ya(e,a,i&&t&&t.i!==3&&!_o(t.R,n)?i.concat(n):void 0);if(i2(r,n,c),!or(c))return;e.m=!1}else s&&r.add(a);if(kt(a)&&!is(a)){if(!e.h.D&&e._<1)return;ya(e,a),t&&t.A.l||ba(e,a)}}function ba(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&as(t,r)}function Yi(e,t){var r=e[se];return(r?xr(r):e)[t]}function t2(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function Sr(e){e.P||(e.P=!0,e.l&&Sr(e.l))}function Xi(e){e.o||(e.o=ns(e.t))}function es(e,t,r){var n=rs(t)?jt("MapSet").F(t,r):os(t)?jt("MapSet").T(t,r):e.O?function(a,i){var s=Array.isArray(a),c={i:s?1:0,A:i?i.A:Qi(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},f=c,u=yn;s&&(f=[c],u=mn);var m=Proxy.revocable(f,u),g=m.revoke,y=m.proxy;return c.k=y,c.j=g,y}(t,r):jt("ES5").J(t,r);return(r?r.A:Qi()).p.push(n),n}function np(e){return or(e)||bt(22,e),function t(r){if(!kt(r))return r;var n,a=r[se],i=To(r);if(a){if(!a.P&&(a.i<4||!jt("ES5").K(a)))return a.t;a.I=!0,n=r2(r,i),a.I=!1}else n=r2(r,i);return Yr(n,function(s,c){a&&ep(a.t,s)===c||i2(n,s,t(c))}),i===3?new Set(n):n}(e)}function r2(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return ns(e)}function c2(){function e(s,c){var f=i[s];return f?f.enumerable=c:i[s]=f={configurable:!0,enumerable:c,get:function(){var u=this[se];return yn.get(u,s)},set:function(u){var m=this[se];yn.set(m,s,u)}},f}function t(s){for(var c=s.length-1;c>=0;c--){var f=s[c][se];if(!f.P)switch(f.i){case 5:n(f)&&Sr(f);break;case 4:r(f)&&Sr(f)}}}function r(s){for(var c=s.t,f=s.k,u=No(f),m=u.length-1;m>=0;m--){var g=u[m];if(g!==se){var y=c[g];if(y===void 0&&!_o(c,g))return!0;var S=f[g],C=S&&S[se];if(C?C.t!==y:!s2(S,y))return!0}}var L=!!c[se];return u.length!==No(c).length+(L?0:1)}function n(s){var c=s.k;if(c.length!==s.t.length)return!0;var f=Object.getOwnPropertyDescriptor(c,c.length-1);if(f&&!f.get)return!0;for(var u=0;u<c.length;u++)if(!c.hasOwnProperty(u))return!0;return!1}function a(s){s.g&&bt(3,JSON.stringify(xr(s)))}var i={};rp("ES5",{J:function(s,c){var f=Array.isArray(s),u=function(g,y){if(g){for(var S=Array(y.length),C=0;C<y.length;C++)Object.defineProperty(S,""+C,e(C,!0));return S}var L=d2(y);delete L[se];for(var N=No(L),M=0;M<N.length;M++){var T=N[M];L[T]=e(T,g||!!L[T].enumerable)}return Object.create(Object.getPrototypeOf(y),L)}(f,s),m={i:f?5:4,A:c?c.A:Qi(),P:!1,I:!1,R:{},l:c,t:s,k:u,o:null,g:!1,C:!1};return Object.defineProperty(u,se,{value:m,writable:!0}),u},S:function(s,c,f){f?or(c)&&c[se].A===s&&t(s.p):(s.u&&function u(m){if(m&&typeof m=="object"){var g=m[se];if(g){var y=g.t,S=g.k,C=g.R,L=g.i;if(L===4)Yr(S,function(U){U!==se&&(y[U]!==void 0||_o(y,U)?C[U]||u(S[U]):(C[U]=!0,Sr(g)))}),Yr(y,function(U){S[U]!==void 0||_o(S,U)||(C[U]=!1,Sr(g))});else if(L===5){if(n(g)&&(Sr(g),C.length=!0),S.length<y.length)for(var N=S.length;N<y.length;N++)C[N]=!1;else for(var M=y.length;M<S.length;M++)C[M]=!0;for(var T=Math.min(S.length,y.length),D=0;D<T;D++)S.hasOwnProperty(D)||(C[D]=!0),C[D]===void 0&&u(S[D])}}}}(s.p[0]),t(s.p))},K:function(s){return s.i===4?r(s):n(s)}})}var o2,gn,ss=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",ap=typeof Map<"u",ip=typeof Set<"u",n2=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",l2=ss?Symbol.for("immer-nothing"):((o2={})["immer-nothing"]=!0,o2),a2=ss?Symbol.for("immer-draftable"):"__$immer_draftable",se=ss?Symbol.for("immer-state"):"__$immer_state";var sp=""+Object.prototype.constructor,No=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,d2=Object.getOwnPropertyDescriptors||function(e){var t={};return No(e).forEach(function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)}),t},ts={},yn={get:function(e,t){if(t===se)return e;var r=xr(e);if(!_o(r,t))return function(a,i,s){var c,f=t2(i,s);return f?"value"in f?f.value:(c=f.get)===null||c===void 0?void 0:c.call(a.k):void 0}(e,r,t);var n=r[t];return e.I||!kt(n)?n:n===Yi(e.t,t)?(Xi(e),e.o[t]=es(e.A.h,n,e)):n},has:function(e,t){return t in xr(e)},ownKeys:function(e){return Reflect.ownKeys(xr(e))},set:function(e,t,r){var n=t2(xr(e),t);if(n?.set)return n.set.call(e.k,r),!0;if(!e.P){var a=Yi(xr(e),t),i=a?.[se];if(i&&i.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(s2(r,a)&&(r!==void 0||_o(e.t,t)))return!0;Xi(e),Sr(e)}return e.o[t]===r&&(r!==void 0||t in e.o)||Number.isNaN(r)&&Number.isNaN(e.o[t])||(e.o[t]=r,e.R[t]=!0),!0},deleteProperty:function(e,t){return Yi(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,Xi(e),Sr(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=xr(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty:function(){bt(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){bt(12)}},mn={};Yr(yn,function(e,t){mn[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),mn.deleteProperty=function(e,t){return mn.set.call(this,e,t,void 0)},mn.set=function(e,t,r){return yn.set.call(this,e[0],t,r,e[0])};var cp=function(){function e(r){var n=this;this.O=n2,this.D=!0,this.produce=function(a,i,s){if(typeof a=="function"&&typeof i!="function"){var c=i;i=a;var f=n;return function(L){var N=this;L===void 0&&(L=c);for(var M=arguments.length,T=Array(M>1?M-1:0),D=1;D<M;D++)T[D-1]=arguments[D];return f.produce(L,function(U){var W;return(W=i).call.apply(W,[N,U].concat(T))})}}var u;if(typeof i!="function"&&bt(6),s!==void 0&&typeof s!="function"&&bt(7),kt(a)){var m=J1(n),g=es(n,a,void 0),y=!0;try{u=i(g),y=!1}finally{y?ga(m):Ji(m)}return typeof Promise<"u"&&u instanceof Promise?u.then(function(L){return qi(m,s),Zi(L,m)},function(L){throw ga(m),L}):(qi(m,s),Zi(u,m))}if(!a||typeof a!="object"){if((u=i(a))===void 0&&(u=a),u===l2&&(u=void 0),n.D&&as(u,!0),s){var S=[],C=[];jt("Patches").M(a,u,S,C),s(S,C)}return u}bt(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(u){for(var m=arguments.length,g=Array(m>1?m-1:0),y=1;y<m;y++)g[y-1]=arguments[y];return n.produceWithPatches(u,function(S){return a.apply(void 0,[S].concat(g))})};var s,c,f=n.produce(a,i,function(u,m){s=u,c=m});return typeof Promise<"u"&&f instanceof Promise?f.then(function(u){return[u,s,c]}):[f,s,c]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var t=e.prototype;return t.createDraft=function(r){kt(r)||bt(8),or(r)&&(r=np(r));var n=J1(this),a=es(this,r,void 0);return a[se].C=!0,Ji(n),a},t.finishDraft=function(r,n){var a=r&&r[se],i=a.A;return qi(i,n),Zi(void 0,i)},t.setAutoFreeze=function(r){this.D=r},t.setUseProxies=function(r){r&&!n2&&bt(20),this.O=r},t.applyPatches=function(r,n){var a;for(a=n.length-1;a>=0;a--){var i=n[a];if(i.path.length===0&&i.op==="replace"){r=i.value;break}}a>-1&&(n=n.slice(a+1));var s=jt("Patches").$;return or(r)?s(r,n):this.produce(r,function(c){return s(c,n)})},e}(),st=new cp,lp=st.produce,qx=st.produceWithPatches.bind(st),Zx=st.setAutoFreeze.bind(st),Yx=st.setUseProxies.bind(st),Xx=st.applyPatches.bind(st),Qx=st.createDraft.bind(st),Jx=st.finishDraft.bind(st),va=lp;function Xr(e){"@babel/helpers - typeof";return Xr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xr(e)}function f2(e,t){if(Xr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Xr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function u2(e){var t=f2(e,"string");return Xr(t)=="symbol"?t:t+""}function p2(e,t,r){return(t=u2(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function cs(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?h2(Object(r),!0).forEach(function(n){p2(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h2(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function We(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var m2=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),ls=function(){return Math.random().toString(36).substring(7).split("").join(".")},xa={INIT:"@@redux/INIT"+ls(),REPLACE:"@@redux/REPLACE"+ls(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ls()}};function dp(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function ds(e,t,r){var n;if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(We(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(We(1));return r(ds)(e,t)}if(typeof e!="function")throw new Error(We(2));var a=e,i=t,s=[],c=s,f=!1;function u(){c===s&&(c=s.slice())}function m(){if(f)throw new Error(We(3));return i}function g(L){if(typeof L!="function")throw new Error(We(4));if(f)throw new Error(We(5));var N=!0;return u(),c.push(L),function(){if(N){if(f)throw new Error(We(6));N=!1,u();var T=c.indexOf(L);c.splice(T,1),s=null}}}function y(L){if(!dp(L))throw new Error(We(7));if(typeof L.type>"u")throw new Error(We(8));if(f)throw new Error(We(9));try{f=!0,i=a(i,L)}finally{f=!1}for(var N=s=c,M=0;M<N.length;M++){var T=N[M];T()}return L}function S(L){if(typeof L!="function")throw new Error(We(10));a=L,y({type:xa.REPLACE})}function C(){var L,N=g;return L={subscribe:function(T){if(typeof T!="object"||T===null)throw new Error(We(11));function D(){T.next&&T.next(m())}D();var U=N(D);return{unsubscribe:U}}},L[m2]=function(){return this},L}return y({type:xa.INIT}),n={dispatch:y,subscribe:g,getState:m,replaceReducer:S},n[m2]=C,n}function fp(e){Object.keys(e).forEach(function(t){var r=e[t],n=r(void 0,{type:xa.INIT});if(typeof n>"u")throw new Error(We(12));if(typeof r(void 0,{type:xa.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(We(13))})}function g2(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++){var a=t[n];typeof e[a]=="function"&&(r[a]=e[a])}var i=Object.keys(r),s,c;try{fp(r)}catch(f){c=f}return function(u,m){if(u===void 0&&(u={}),c)throw c;if(0)var g;for(var y=!1,S={},C=0;C<i.length;C++){var L=i[C],N=r[L],M=u[L],T=N(M,m);if(typeof T>"u"){var D=m&&m.type;throw new Error(We(14))}S[L]=T,y=y||T!==M}return y=y||i.length!==Object.keys(u).length,y?S:u}}function ko(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.length===0?function(n){return n}:t.length===1?t[0]:t.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function y2(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){return function(){var a=n.apply(void 0,arguments),i=function(){throw new Error(We(15))},s={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},c=t.map(function(f){return f(s)});return i=ko.apply(void 0,c)(a.dispatch),cs(cs({},a),{},{dispatch:i})}}}function b2(e){var t=function(n){var a=n.dispatch,i=n.getState;return function(s){return function(c){return typeof c=="function"?c(a,i,e):s(c)}}};return t}var v2=b2();v2.withExtraArgument=b2;var fs=v2;var E2=function(){var e=function(t,r){return e=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])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),up=function(e,t){var r={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 f([u,m])}}function f(u){if(n)throw new TypeError("Generator is already executing.");for(;r;)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 r.label++,{value:u[1],done:!1};case 5:r.label++,a=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){r.label=u[1];break}if(u[0]===6&&r.label<i[1]){r.label=i[1],i=u;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(u);break}i[2]&&r.ops.pop(),r.trys.pop();continue}u=t.call(e,r)}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}}},Mo=function(e,t){for(var r=0,n=t.length,a=e.length;r<n;r++,a++)e[a]=t[r];return e},pp=Object.defineProperty,hp=Object.defineProperties,mp=Object.getOwnPropertyDescriptors,x2=Object.getOwnPropertySymbols,gp=Object.prototype.hasOwnProperty,yp=Object.prototype.propertyIsEnumerable,S2=function(e,t,r){return t in e?pp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},Cr=function(e,t){for(var r in t||(t={}))gp.call(t,r)&&S2(e,r,t[r]);if(x2)for(var n=0,a=x2(t);n<a.length;n++){var r=a[n];yp.call(t,r)&&S2(e,r,t[r])}return e},us=function(e,t){return hp(e,mp(t))},bp=function(e,t,r){return new Promise(function(n,a){var i=function(f){try{c(r.next(f))}catch(u){a(u)}},s=function(f){try{c(r.throw(f))}catch(u){a(u)}},c=function(f){return f.done?n(f.value):Promise.resolve(f.value).then(i,s)};c((r=r.apply(e,t)).next())})};var vp=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?ko:ko.apply(null,arguments)},yS=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function xp(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var r=t;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return t===r}var Sp=function(e){E2(t,e);function t(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var a=e.apply(this,r)||this;return Object.setPrototypeOf(a,t.prototype),a}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e.prototype.concat.apply(this,r)},t.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(t.bind.apply(t,Mo([void 0],r[0].concat(this)))):new(t.bind.apply(t,Mo([void 0],r.concat(this))))},t}(Array),Cp=function(e){E2(t,e);function t(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var a=e.apply(this,r)||this;return Object.setPrototypeOf(a,t.prototype),a}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e.prototype.concat.apply(this,r)},t.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(t.bind.apply(t,Mo([void 0],r[0].concat(this)))):new(t.bind.apply(t,Mo([void 0],r.concat(this))))},t}(Array);function ms(e){return kt(e)?va(e,function(){}):e}function Op(e){return typeof e=="boolean"}function Ep(){return function(t){return Lp(t)}}function Lp(e){e===void 0&&(e={});var t=e.thunk,r=t===void 0?!0:t,n=e.immutableCheck,a=n===void 0?!0:n,i=e.serializableCheck,s=i===void 0?!0:i,c=new Sp;if(r&&(Op(r)?c.push(fs):c.push(fs.withExtraArgument(r.extraArgument))),0){if(a)var f;if(s)var u}return c}var ps=!0;function L2(e){var t=Ep(),r=e||{},n=r.reducer,a=n===void 0?void 0:n,i=r.middleware,s=i===void 0?t():i,c=r.devTools,f=c===void 0?!0:c,u=r.preloadedState,m=u===void 0?void 0:u,g=r.enhancers,y=g===void 0?void 0:g,S;if(typeof a=="function")S=a;else if(xp(a))S=g2(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 C=s;if(typeof C=="function"&&(C=C(t),!ps&&!Array.isArray(C)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!ps&&C.some(function(U){return typeof U!="function"}))throw new Error("each middleware provided to configureStore must be a function");var L=y2.apply(void 0,C),N=ko;f&&(N=vp(Cr({trace:!ps},typeof f=="object"&&f)));var M=new Cp(L),T=M;Array.isArray(y)?T=Mo([L],y):typeof y=="function"&&(T=y(M));var D=N.apply(void 0,T);return ds(S,m,D)}function Or(e,t){function r(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(t){var i=t.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return Cr(Cr({type:e,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:e,payload:n[0]}}return r.toString=function(){return""+e},r.type=e,r.match=function(n){return n.type===e},r}function A2(e){var t={},r=[],n,a={addCase:function(i,s){var c=typeof i=="string"?i:i.type;if(c in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[c]=s,a},addMatcher:function(i,s){return r.push({matcher:i,reducer:s}),a},addDefaultCase:function(i){return n=i,a}};return e(a),[t,r,n]}function Ap(e){return typeof e=="function"}function Rp(e,t,r,n){r===void 0&&(r=[]);var a=typeof t=="function"?A2(t):[t,r,n],i=a[0],s=a[1],c=a[2],f;if(Ap(e))f=function(){return ms(e())};else{var u=ms(e);f=function(){return u}}function m(g,y){g===void 0&&(g=f());var S=Mo([i[y.type]],s.filter(function(C){var L=C.matcher;return L(y)}).map(function(C){var L=C.reducer;return L}));return S.filter(function(C){return!!C}).length===0&&(S=[c]),S.reduce(function(C,L){if(L)if(or(C)){var N=C,M=L(N,y);return M===void 0?C:M}else{if(kt(C))return va(C,function(T){return L(T,y)});var M=L(C,y);if(M===void 0){if(C===null)return C;throw Error("A case reducer on a non-draftable value must not return undefined")}return M}return C},g)}return m.getInitialState=f,m}function wp(e,t){return e+"/"+t}function R2(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof e.initialState=="function"?e.initialState:ms(e.initialState),n=e.reducers||{},a=Object.keys(n),i={},s={},c={};a.forEach(function(m){var g=n[m],y=wp(t,m),S,C;"reducer"in g?(S=g.reducer,C=g.prepare):S=g,i[m]=S,s[y]=S,c[m]=C?Or(y,C):Or(y)});function f(){var m=typeof e.extraReducers=="function"?A2(e.extraReducers):[e.extraReducers],g=m[0],y=g===void 0?{}:g,S=m[1],C=S===void 0?[]:S,L=m[2],N=L===void 0?void 0:L,M=Cr(Cr({},y),s);return Rp(r,function(T){for(var D in M)T.addCase(D,M[D]);for(var U=0,W=C;U<W.length;U++){var ae=W[U];T.addMatcher(ae.matcher,ae.reducer)}N&&T.addDefaultCase(N)})}var u;return{name:t,reducer:function(m,g){return u||(u=f()),u(m,g)},actions:c,caseReducers:i,getInitialState:function(){return u||(u=f()),u.getInitialState()}}}var _p="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Np=function(e){e===void 0&&(e=21);for(var t="",r=e;r--;)t+=_p[Math.random()*64|0];return t},Tp=["name","message","stack","code"],hs=function(){function e(t,r){this.payload=t,this.meta=r}return e}(),C2=function(){function e(t,r){this.payload=t,this.meta=r}return e}(),kp=function(e){if(typeof e=="object"&&e!==null){for(var t={},r=0,n=Tp;r<n.length;r++){var a=n[r];typeof e[a]=="string"&&(t[a]=e[a])}return t}return{message:String(e)}},SS=function(){function e(t,r,n){var a=Or(t+"/fulfilled",function(m,g,y,S){return{payload:m,meta:us(Cr({},S||{}),{arg:y,requestId:g,requestStatus:"fulfilled"})}}),i=Or(t+"/pending",function(m,g,y){return{payload:void 0,meta:us(Cr({},y||{}),{arg:g,requestId:m,requestStatus:"pending"})}}),s=Or(t+"/rejected",function(m,g,y,S,C){return{payload:S,error:(n&&n.serializeError||kp)(m||"Rejected"),meta:us(Cr({},C||{}),{arg:y,requestId:g,rejectedWithValue:!!S,requestStatus:"rejected",aborted:m?.name==="AbortError",condition:m?.name==="ConditionError"})}}),c=!1,f=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(g,y,S){var C=n?.idGenerator?n.idGenerator(m):Np(),L=new f,N,M=!1;function T(U){N=U,L.abort()}var D=function(){return bp(this,null,function(){var U,W,ae,Je,ke,Ut,Me;return up(this,function(x){switch(x.label){case 0:return x.trys.push([0,4,,5]),Je=(U=n?.condition)==null?void 0:U.call(n,m,{getState:y,extra:S}),Pp(Je)?[4,Je]:[3,2];case 1:Je=x.sent(),x.label=2;case 2:if(Je===!1||L.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return M=!0,ke=new Promise(function(E,F){return L.signal.addEventListener("abort",function(){return F({name:"AbortError",message:N||"Aborted"})})}),g(i(C,m,(W=n?.getPendingMeta)==null?void 0:W.call(n,{requestId:C,arg:m},{getState:y,extra:S}))),[4,Promise.race([ke,Promise.resolve(r(m,{dispatch:g,getState:y,extra:S,requestId:C,signal:L.signal,abort:T,rejectWithValue:function(E,F){return new hs(E,F)},fulfillWithValue:function(E,F){return new C2(E,F)}})).then(function(E){if(E instanceof hs)throw E;return E instanceof C2?a(E.payload,C,m,E.meta):a(E,C,m)})])];case 3:return ae=x.sent(),[3,5];case 4:return Ut=x.sent(),ae=Ut instanceof hs?s(null,C,m,Ut.payload,Ut.meta):s(Ut,C,m),[3,5];case 5:return Me=n&&!n.dispatchConditionRejection&&s.match(ae)&&ae.meta.condition,Me||g(ae),[2,ae]}})})}();return Object.assign(D,{abort:T,requestId:C,arg:m,unwrap:function(){return D.then(Mp)}})}}return Object.assign(u,{pending:i,rejected:s,fulfilled:a,typePrefix:t})}return e.withTypes=function(){return e},e}();function Mp(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Pp(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var w2="listener",_2="completed",N2="cancelled",CS="task-"+N2,OS="task-"+_2,ES=w2+"-"+N2,LS=w2+"-"+_2;var gs="listenerMiddleware";var AS=Or(gs+"/add"),RS=Or(gs+"/removeAll"),wS=Or(gs+"/remove");var O2,_S=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(O2||(O2=Promise.resolve())).then(e).catch(function(t){return setTimeout(function(){throw t},0)})},zp=function(e){return function(t){setTimeout(t,e)}},NS=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:zp(10);c2();var Ip=da(Symbol("withEventBus"),function(e,t){return class extends e{constructor(){super(...arguments),this.eventBus=t??document.createElement("span")}addEventListener(r,n,a){this.eventBus.addEventListener(r,n,a)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,n,a){this.eventBus.removeEventListener(r,n,a)}}}),Sa=class extends Ip(Object){};window.ftReduxStores||(window.ftReduxStores={});var T2=class e extends Sa{static get(t){var r;let n=typeof t=="string"?t:t.name,a=typeof t=="string"?void 0:t,i=window.ftReduxStores[n];if(ma(i))return i;if(a==null)return;let s=R2({...a,reducers:(r=a.reducers)!==null&&r!==void 0?r:{}}),c=L2({reducer:(f,u)=>{if(u.type==="CLEAR_FT_REDUX_STORE"){let m=U1(s.getInitialState());for(let g of u.keeping)m[g]=(f??m)[g];return m}else if(typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...f,...u.overwrites};return s.reducer(f,u)}});return window.ftReduxStores[a.name]=new e(s,c,a.eventBus)}constructor(t,r,n){super(),this.reduxSlice=t,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new fa;let a=i=>i!=null?JSON.parse(JSON.stringify(i)):i;this.actions=new Proxy(this.reduxSlice.actions,{get:(i,s,c)=>{let f=s,u=i[f];return u?(...m)=>{let g=u(...m.map(a));return this.reduxStore.dispatch(g),g}:m=>{this.setState({[f]:a(m)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...t){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:t})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}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(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var Ca=class{static format(t,r,n,a){return window.moment?window.moment(t).locale(r).format(this.getMomentDateFormat(n,a)):this.getIntlDateTime(t,r,n,a)}static getMomentDateFormat(t,r){return t?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(t,r,n,a){let i=typeof t=="string"?new Date(t):t,s=new Intl.DateTimeFormat(r,{dateStyle:n?"medium":"short"}).format(i);if(!a)return s;let c=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(i);return`${s} ${c}`}static getTimezoneAsString(){let t=n=>String(Math.floor(n)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${t(Math.abs(r)/60)}:${t(Math.abs(r)%60)}`}};var Oa=b(w()),Dp="ft-app-info",Qr=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};Qr.eventName="authentication-change";var Bp={session:(e,t)=>{(0,Oa.deepEqual)(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>z.dispatchEvent(new Qr(t.payload)),0))}},z=Oa.FtReduxStore.get({name:Dp,reducers:Bp,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 k2=b(w()),Ea=function(e,t,r,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var c=e.length-1;c>=0;c--)(s=e[c])&&(i=(a<3?s(i):a>3?s(t,r,i):s(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},nC=(0,k2.applyMixinOnce)(Symbol("withDateFormat"),function(e){class t extends e{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(z)}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=>Ca.format(c,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Ea([(0,ys.property)({type:Boolean})],t.prototype,"useLongDateFormat",void 0),Ea([(0,ys.property)({type:Boolean})],t.prototype,"useDateTimeFormat",void 0),Ea([Ki({store:z.name,selector:r=>{var n,a;return(a=(n=r.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&a!==void 0?a:[]}})],t.prototype,"metadataDescriptors",void 0),Ea([Ki({store:z.name})],t.prototype,"uiLocale",void 0),t});var Up=b(P2(),1);var z2;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(z2||(z2={}));var I2;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(I2||(I2={}));var D2;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(D2||(D2={}));var B2;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(B2||(B2={}));var $2;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})($2||($2={}));var U2;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})(U2||(U2={}));var F2;(function(e){e.BOOKMARK__CREATE="BOOKMARK__CREATE",e.BOOKMARK__DELETE="BOOKMARK__DELETE",e.CASE_DEFLECTION__START="CASE_DEFLECTION__START",e.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",e.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",e.CHATBOT__RATE="CHATBOT__RATE",e.COLLECTION__CREATE="COLLECTION__CREATE",e.COLLECTION__UPDATE="COLLECTION__UPDATE",e.COLLECTION__DELETE="COLLECTION__DELETE",e.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",e.DOCUMENT__AI_TRANSLATE="DOCUMENT__AI_TRANSLATE",e.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",e.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",e.DOCUMENT__PRINT="DOCUMENT__PRINT",e.DOCUMENT__PROCESS="DOCUMENT__PROCESS",e.DOCUMENT__RATE="DOCUMENT__RATE",e.DOCUMENT__SEARCH="DOCUMENT__SEARCH",e.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",e.DOCUMENT__UNRATE="DOCUMENT__UNRATE",e.FEEDBACK__SEND="FEEDBACK__SEND",e.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",e.AI__RATE="AI__RATE",e.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",e.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",e.KHUB__PROCESS="KHUB__PROCESS",e.KHUB__SEARCH="KHUB__SEARCH",e.LABELS__DOWNLOAD="LABELS__DOWNLOAD",e.LINK__SHARE="LINK__SHARE",e.PAGE__DISPLAY="PAGE__DISPLAY",e.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",e.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",e.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",e.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",e.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",e.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",e.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",e.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",e.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",e.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",e.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",e.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",e.TOPIC__DISPLAY="TOPIC__DISPLAY",e.TOPIC__RATE="TOPIC__RATE",e.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",e.TOPIC__UNRATE="TOPIC__UNRATE",e.USER__LOGIN="USER__LOGIN",e.USER__LOGOUT="USER__LOGOUT",e.HEARTBEAT="HEARTBEAT"})(F2||(F2={}));var H2;(function(e){e.THIRD_PARTY="THIRD_PARTY",e.OFF_THE_GRID="OFF_THE_GRID",e.CONTENT_PACKAGER="CONTENT_PACKAGER",e.PAGES="PAGES",e.DESIGNED_READER="DESIGNED_READER"})(H2||(H2={}));var G2;(function(e){e.HOMEPAGE="HOMEPAGE",e.CUSTOM="CUSTOM",e.HEADER="HEADER",e.READER="READER",e.TOPIC_TEMPLATE="TOPIC_TEMPLATE",e.SEARCH="SEARCH",e.SEARCH_RESULT="SEARCH_RESULT",e.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",e.LINK_PREVIEW="LINK_PREVIEW",e.UD_VIEWER="UD_VIEWER",e.ASSET_VIEWER="ASSET_VIEWER"})(G2||(G2={}));var W2;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(W2||(W2={}));var V2;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(V2||(V2={}));var j2;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(j2||(j2={}));var K2;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(K2||(K2={}));var q2;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR",e.CUSTOM="CUSTOM"})(q2||(q2={}));var bs;(function(e){e.OPTIONAL="OPTIONAL",e.MANDATORY="MANDATORY"})(bs||(bs={}));var Z2;(function(e){e.ASC="ASC",e.DESC="DESC"})(Z2||(Z2={}));var Y2;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(Y2||(Y2={}));var vs;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(vs||(vs={}));var X2;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(X2||(X2={}));var Q2;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(Q2||(Q2={}));var J2;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.PERSONAL_BOOK="PERSONAL_BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(J2||(J2={}));var ed;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(ed||(ed={}));var td;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.HTML_PACKAGE="HTML_PACKAGE",e.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(td||(td={}));var xs;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(xs||(xs={}));var rd;(function(e){e.PLAIN_TEXT="PLAIN_TEXT",e.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",e.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(rd||(rd={}));var ve;(function(e){e.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",e.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",e.HTML_EXPORT_USER="HTML_EXPORT_USER",e.PDF_EXPORT_USER="PDF_EXPORT_USER",e.SAVED_SEARCH_USER="SAVED_SEARCH_USER",e.COLLECTION_USER="COLLECTION_USER",e.OFFLINE_USER="OFFLINE_USER",e.ANALYTICS_USER="ANALYTICS_USER",e.BETA_USER="BETA_USER",e.DEBUG_USER="DEBUG_USER",e.PRINT_USER="PRINT_USER",e.RATING_USER="RATING_USER",e.FEEDBACK_USER="FEEDBACK_USER",e.GENERATIVE_AI_USER="GENERATIVE_AI_USER",e.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",e.CONTENT_PUBLISHER="CONTENT_PUBLISHER",e.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",e.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",e.KHUB_ADMIN="KHUB_ADMIN",e.USERS_ADMIN="USERS_ADMIN",e.PORTAL_ADMIN="PORTAL_ADMIN",e.ADMIN="ADMIN"})(ve||(ve={}));var vt;(function(e){e.SEARCHES="SEARCHES",e.BOOKMARKS="BOOKMARKS",e.BOOKS="BOOKS",e.COLLECTIONS="COLLECTIONS"})(vt||(vt={}));var od;(function(e){e.UNAUTHENTICATED="UNAUTHENTICATED",e.USER_INCOMPLETE="USER_INCOMPLETE",e.MFA_REQUIRED="MFA_REQUIRED",e.AUTHENTICATED="AUTHENTICATED"})(od||(od={}));var nd;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(nd||(nd={}));var ad;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SUMMARY="SUMMARY",e.SEMANTIC_SEARCH="SEMANTIC_SEARCH",e.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",e.OTHER="OTHER"})(ad||(ad={}));var id;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SLOW="SLOW",e.OTHER="OTHER"})(id||(id={}));var sd;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(sd||(sd={}));var cd;(function(e){e.USER="USER",e.ASSISTANT="ASSISTANT"})(cd||(cd={}));var ld;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(ld||(ld={}));var dd;(function(e){e.HTML="HTML",e.MARKDOWN="MARKDOWN"})(dd||(dd={}));var fd;(function(e){e.MAP="MAP",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(fd||(fd={}));var $p={[ve.PERSONAL_BOOK_SHARE_USER]:[ve.PERSONAL_BOOK_USER],[ve.HTML_EXPORT_USER]:[ve.PERSONAL_BOOK_USER],[ve.PDF_EXPORT_USER]:[ve.PERSONAL_BOOK_USER],[ve.KHUB_ADMIN]:[ve.CONTENT_PUBLISHER],[ve.ADMIN]:[ve.KHUB_ADMIN,ve.USERS_ADMIN,ve.PORTAL_ADMIN,ve.BEHAVIOR_DATA_USER],[ve.GENERATIVE_AI_EXPORT_USER]:[ve.GENERATIVE_AI_USER]};function ud(e,t){return e===t||($p[e]??[]).some(r=>ud(r,t))}function pd(e,t){return e==null?!1:(Array.isArray(e)?e:Array.isArray(e.roles)?e.roles:Array.isArray(e.profile?.roles)?e.profile.roles:[]).some(n=>ud(n,t))}var ka=b(w());var Ss=b(w());var Jr=class e{static get(t){let{baseUrl:r,apiIntegrationIdentifier:n}=z.getState(),a=t??n;if(r&&a&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,a,!0)}static await(t){return new Promise(r=>{let n=e.get(t);if(n)r(n);else{let a=z.subscribe(()=>{n=e.get(t),n&&(a(),r(n))})}})}};var Ra=class{constructor(t){this.overrideApi=t}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:Jr.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Jr.await()}};var rt=class extends Ra{constructor(t=!0,r){var n;super(r),this.sortObjectFields=(i,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([c],[f])=>c.localeCompare(f)));let a=this.constructor;a.commonCache=(n=a.commonCache)!==null&&n!==void 0?n:new Ss.CacheRegistry,this.cache=t?a.commonCache:new Ss.CacheRegistry}clearCache(){this.cache.clearAll()}hash(t){return String(Array.from(JSON.stringify(t,this.sortObjectFields)).reduce((r,n)=>0|31*r+n.charCodeAt(0),0))}};var wa=class extends rt{async listMySearches(){let{session:t}=z.getState();return pd(t,ve.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),5*60*1e3):[]}};var _a=class extends rt{async listMyBookmarks(){let t=z.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),5*60*1e3):[]}};var Na=class extends rt{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetCount(t){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${t}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(t){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${t}`),this.CACHE_DURATION)}isAuthenticated(){let t=z.getState().session;return!!t?.sessionAuthenticated}};var Ta=class extends rt{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 t=z.getState().session;return!!t?.sessionAuthenticated}};var Fp="ft-user-assets",Hp={setAssetCount:(e,t)=>{let{userAssetType:r,count:n}=t.payload.assetCount;e.assetCounts.allAsset[r]=n},clearAssetCount:e=>{Object.values(vt).forEach(t=>{e.assetCounts.allAsset[t]=void 0})},setBookmarkCountByMap:(e,t)=>{let r=t.payload.mapId;e.assetCounts.bookmarkByMap[r]=t.payload.count},clearBookmarkCountByMap:e=>{e.assetCounts.bookmarkByMap={}},addAsset:(e,t)=>{let{assetType:r,mapId:n,asset:a}=t.payload;Os(e,r,[...Cs(e,r),a]),hd(e,r,1,n),md(e,a)},editAsset:(e,t)=>{let{assetType:r,asset:n}=t.payload;Os(e,r,Cs(e,r).map(a=>a.id===n.id?n:a)),md(e,n)},removeAsset:(e,t)=>{let{assetType:r,mapId:n,assetId:a}=t.payload;Os(e,r,Cs(e,r).filter(i=>i.id!==a)),hd(e,r,-1,n)}},gd={[vt.SEARCHES]:"savedSearches",[vt.BOOKMARKS]:"bookmarks",[vt.BOOKS]:void 0,[vt.COLLECTIONS]:void 0},Cs=(e,t)=>{var r;let n=gd[t];return n?(r=e[n])!==null&&r!==void 0?r:[]:[]},Os=(e,t,r)=>{let n=gd[t];n&&(e[n]=r)},hd=(e,t,r,n)=>{let a=e.assetCounts.allAsset[t];if(a!==void 0&&(e.assetCounts.allAsset[t]=Math.max(0,a+r),t===vt.BOOKMARKS&&n)){let i=e.assetCounts.bookmarkByMap[n];e.assetCounts.bookmarkByMap[n]=Math.max(0,i+r)}},md=(e,t)=>{let r=e.assetLabels.map(a=>a.title),n=t.labels.filter(a=>!r.includes(a)).map(a=>({title:a}));e.assetLabels.push(...n)},ct=ka.FtReduxStore.get({name:Fp,reducers:Hp,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(vt).map(e=>[e,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Es=class{constructor(t=new Na,r=new Ta){this.assetCountsService=t,this.assetLabelsService=r,this.currentSession=z.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new _a,this.savedSearchesService=new wa,z.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:r}=z.getState();(0,ka.deepEqual)((t=this.currentSession)===null||t===void 0?void 0:t.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),ct.actions.clearAssetCount(),ct.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),ct.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),ct.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();ct.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let t=await this.assetLabelsService.getUserAssetLabels();ct.actions.assetLabels(t)}async loadAssetCount(t){let r=await this.assetCountsService.getUserAssetCount(t);r&&ct.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(t){let r=await this.assetCountsService.getUserBookmarkCountByMap(t);r&&ct.actions.setBookmarkCountByMap({count:r.count,mapId:t})}async reloadAssetCount(t){this.assetCountsService.clearCache();let r=Object.keys(ct.getState().assetCounts.bookmarkByMap).length!==0;t===vt.BOOKMARKS&&r&&ct.actions.clearBookmarkCountByMap(),ct.getState().assetCounts.allAsset[t]!==void 0&&await this.loadAssetCount(t)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){let r=!((t=this.currentSession)===null||t===void 0)&&t.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;ct.actions.bookmarks(r)}}},Gp=new Es;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Gp);var Ls=class{addCommand(t,r=!1){z.commands.add(t,r)}consumeCommand(t){return z.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new Ls;var xt=b(w());var yd,zo=class extends CustomEvent{constructor(t){super("ft-i18n-context-loaded",{detail:t})}},Wp=Symbol("clearAfterUnitTest"),Ma=class extends(0,xt.withEventBus)(rt){constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[yd]=()=>{this.defaultMessages={},this.cache=new xt.CacheRegistry,this.listeners={}},this.currentUiLocale=z.getState().uiLocale,z.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=z.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){let r=t.name.toLowerCase();this.cache.setFinal(r,t),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,r){var n;if(t=t.toLowerCase(),r&&Object.keys(r).length>0){let a={...(n=this.defaultMessages[t])!==null&&n!==void 0?n:{},...r};(0,xt.deepEqual)(this.defaultMessages[t],a)||(this.defaultMessages[t]=a,await this.notify(t))}return this.fetchContext(t)}resolveContext(t){var r,n;return this.fetchContext(t),(n=(r=this.cache.getNow(t))===null||r===void 0?void 0:r.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(t,r){let n=t.toLowerCase();return this.resolveContext(n)[r]}resolveMessage(t,r,...n){var a;let i=t.toLowerCase(),s=this.resolveContext(i);return new xt.ParametrizedLabelResolver((a=this.defaultMessages[i])!==null&&a!==void 0?a:{},s).resolve(r,...n)}async fetchContext(t){let r=!this.cache.has(t),n;try{n=await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t)),r&&await this.notify(t)}catch(a){!(a instanceof xt.CanceledPromiseError)&&r&&console.error(a)}return n}subscribe(t,r){var n;return t=t.toLowerCase(),this.listeners[t]=(n=this.listeners[t])!==null&&n!==void 0?n:new Set,this.listeners[t].add(r),()=>{var a;return(a=this.listeners[t])===null||a===void 0?void 0:a.delete(r)}}async notifyAll(){let t=Object.keys(this.listeners);document.body.dispatchEvent(new zo({loadedContexts:t})),this.dispatchEvent(new zo({loadedContexts:t})),await Promise.all(t.map(r=>this.notify(r,!1)))}async notify(t,r=!0){r&&(document.body.dispatchEvent(new zo({loadedContexts:[t]})),this.dispatchEvent(new zo({loadedContexts:[t]}))),this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(n=>(0,xt.delay)(0).then(()=>n()).catch(()=>null)))}};yd=Wp;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Ma{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Ma{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var Io=window.FluidTopicsI18nService,Pa=window.FluidTopicsCustomI18nService;var bd=b(w()),As=class{highlightHtml(t,r,n){(0,bd.highlightHtml)(t,r,n)}};window.FluidTopicsHighlightHtmlService=new As;var vd=b(w());var Rs=class{isDate(t){var r,n,a,i;return(i=(a=((n=(r=z.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(c=>c.key===t))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1}format(t,r){var n,a,i;if(t==null)return"";try{return vd.DateFormatter.format(t,(n=r?.locale)!==null&&n!==void 0?n:z.getState().uiLocale,(a=r?.longFormat)!==null&&a!==void 0?a:!1,(i=r?.withTime)!==null&&i!==void 0?i:!1)}catch(s){throw console.error(`Date ${JSON.stringify(t)} is not valid`,s),s}}};window.FluidTopicsDateService=new Rs;var xd=b(w());var bn=class{static get(t,r){var n,a;let i=z.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 xd.SearchPlaceConverter(i.baseUrl,t??20,i.searchInAllLanguagesAllowed,r??`${s}-${c}`)}};var ws=class{urlToSearchRequest(t){return bn.get().parse(t)}searchRequestToUrl(t){return bn.get().serialize(t)}};window.FluidTopicsUrlService=new ws;var Lr=b(w());var eo=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{currentItem:t}})}};eo.eventName="change";var _s=class{itemName(t){return`fluid-topics-history-item-${t}`}get(t){let r=sessionStorage.getItem(this.itemName(t));return r?JSON.parse(r):void 0}set(t,r){sessionStorage.setItem(this.itemName(t),JSON.stringify(r))}},Sd=new _s;var za=class e extends Lr.WithEventBus{static build(){return new e(window.history,Sd,()=>window.location,!1)}constructor(t,r,n,a){var i,s;super(),this.history=t,this.historyStorage=r,this.windowLocation=n,this.states=[],this.realPushState=t.pushState,this.realReplaceState=t.replaceState,this.initialIndex=(s=(i=t.state)===null||i===void 0?void 0:i.index)!==null&&s!==void 0?s:t.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(a)}setCurrentState(t,r=!1){let n=r&&this.currentIndex===t.index-1;this.currentState={...this.buildCurrentState(),...t},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,Lr.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new eo(this.currentItem())),0)}installProxies(){let t=r=>(n,a,[i,s,c])=>{let f=r(),u={...f===this.currentIndex?this.currentState:void 0,...i,index:f,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:t(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:t(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",t=>this.setCurrentState(t.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(t){for(let r=this.history.length-1;r>=0;r--)t?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(t){var r;let n={...this.buildCurrentState(),...t,index:this.currentIndex,title:(r=t?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(t){this.addEventListener(eo.eventName,t)}removeHistoryChangeListener(t){this.removeEventListener(eo.eventName,t)}currentItem(){return(0,Lr.deepCopy)(this.currentState)}back(){let t=this.previousDifferentMajorPosition();t>=0?this.history.go(t-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,Lr.deepCopy)(this.states[this.previousDifferentMajorPosition()])}previousDifferentMajorPosition(){let t=this.currentIndex>0?this.currentIndex-1:0;for(;t>0&&!this.isDifferentMajorState(t);)t--;return t}forward(){let t=this.nextMajorPosition();t&&t<this.states.length?this.history.go(t-this.currentIndex):this.history.forward()}forwardItem(){let t=this.nextMajorPosition();if(t)return(0,Lr.deepCopy)(this.states[t])}nextMajorPosition(){let t=this.currentIndex;if(!(t>=this.states.length)){do t++;while(t<this.states.length&&!this.isDifferentMajorState(t));return this.getHigherPositionInTheSameState(t)}}getHigherPositionInTheSameState(t){var r;let n=(r=this.states[t])===null||r===void 0?void 0:r.majorStateId;if(!n)return t;let a=t,i=t+1;for(;this.states.length>i&&!this.isDifferentMajorState(i,n);)this.hasState(i)&&(a=i),i++;return a}buildCurrentState(){var t,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(t=this.history.state)===null||t===void 0?void 0:t.title)!==null&&r!==void 0?r:document.title}}hasState(t){return this.states[t]!=null}isDifferentMajorState(t,r){var n;if(!this.hasState(t))return!1;let a=r??this.currentState.majorStateId,i=(n=this.states[t])===null||n===void 0?void 0:n.majorStateId;return i==null||i!=a}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=za.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),addHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(e),removeHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(e)});var Cd=b($());var Od=Cd.css`
|
|
604
|
+
`;var u1=["top","right","bottom","left"],f1=["start","end"],$i=u1.reduce((e,t)=>e.concat(t,t+"-"+f1[0],t+"-"+f1[1]),[]),cn=Math.min,yr=Math.max,ln=Math.round;var Tt=e=>({x:e,y:e}),Tu={left:"right",right:"left",bottom:"top",top:"bottom"};function Ui(e,t,r){return yr(e,cn(t,r))}function ea(e,t){return typeof e=="function"?e(t):e}function Eo(e){return e.split("-")[0]}function br(e){return e.split("-")[1]}function Fi(e){return e==="x"?"y":"x"}function Hi(e){return e==="y"?"height":"width"}function ta(e){let t=e[0];return t==="t"||t==="b"?"y":"x"}function Gi(e){return Fi(ta(e))}function p1(e,t,r){r===void 0&&(r=!1);let n=br(e),a=Gi(e),i=Hi(a),s=a==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Bi(s)),[s,Bi(s)]}function h1(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}function Bi(e){let t=Eo(e);return Tu[t]+e.slice(t.length)}function ku(e){return{top:0,right:0,bottom:0,left:0,...e}}function m1(e){return typeof e!="number"?ku(e):{top:e,right:e,bottom:e,left:e}}function Wr(e){let{x:t,y:r,width:n,height:a}=e;return{width:n,height:a,top:r,left:t,right:t+n,bottom:r+a,x:t,y:r}}function g1(e,t,r){let{reference:n,floating:a}=e,i=ta(t),s=Gi(t),c=Hi(s),f=Eo(t),u=i==="y",m=n.x+n.width/2-a.width/2,g=n.y+n.height/2-a.height/2,y=n[c]/2-a[c]/2,S;switch(f){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:g};break;case"left":S={x:n.x-a.width,y:g};break;default:S={x:n.x,y:n.y}}switch(br(t)){case"start":S[s]-=y*(r&&u?-1:1);break;case"end":S[s]+=y*(r&&u?-1:1);break}return S}async function y1(e,t){var r;t===void 0&&(t={});let{x:n,y:a,platform:i,rects:s,elements:c,strategy:f}=e,{boundary:u="clippingAncestors",rootBoundary:m="viewport",elementContext:g="floating",altBoundary:y=!1,padding:S=0}=ea(t,e),C=m1(S),N=c[y?g==="floating"?"reference":"floating":g],M=Wr(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(N)))==null||r?N:N.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(c.floating)),boundary:u,rootBoundary:m,strategy:f})),T=g==="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)),U=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},W=Wr(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:T,offsetParent:D,strategy:f}):T);return{top:(M.top-W.top+C.top)/U.y,bottom:(W.bottom-M.bottom+C.bottom)/U.y,left:(M.left-W.left+C.left)/U.x,right:(W.right-M.right+C.right)/U.x}}var Mu=50,b1=async(e,t,r)=>{let{placement:n="bottom",strategy:a="absolute",middleware:i=[],platform:s}=r,c=s.detectOverflow?s:{...s,detectOverflow:y1},f=await(s.isRTL==null?void 0:s.isRTL(t)),u=await s.getElementRects({reference:e,floating:t,strategy:a}),{x:m,y:g}=g1(u,n,f),y=n,S=0,C={};for(let L=0;L<i.length;L++){let N=i[L];if(!N)continue;let{name:M,fn:T}=N,{x:D,y:U,data:W,reset:ae}=await T({x:m,y:g,initialPlacement:n,placement:y,strategy:a,middlewareData:C,rects:u,platform:c,elements:{reference:e,floating:t}});m=D??m,g=U??g,C[M]={...C[M],...W},ae&&S<Mu&&(S++,typeof ae=="object"&&(ae.placement&&(y=ae.placement),ae.rects&&(u=ae.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:a}):ae.rects),{x:m,y:g}=g1(u,y,f)),L=-1)}return{x:m,y:g,placement:y,strategy:a,middlewareData:C}};function Pu(e,t,r){return(e?[...r.filter(a=>br(a)===e),...r.filter(a=>br(a)!==e)]:r.filter(a=>Eo(a)===a)).filter(a=>e?br(a)===e||(t?h1(a)!==a:!1):!0)}var v1=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,n,a;let{rects:i,middlewareData:s,placement:c,platform:f,elements:u}=t,{crossAxis:m=!1,alignment:g,allowedPlacements:y=$i,autoAlignment:S=!0,...C}=ea(e,t),L=g!==void 0||y===$i?Pu(g||null,S,y):y,N=await f.detectOverflow(t,C),M=((r=s.autoPlacement)==null?void 0:r.index)||0,T=L[M];if(T==null)return{};let D=p1(T,i,await(f.isRTL==null?void 0:f.isRTL(u.floating)));if(c!==T)return{reset:{placement:L[0]}};let U=[N[Eo(T)],N[D[0]],N[D[1]]],W=[...((n=s.autoPlacement)==null?void 0:n.overflows)||[],{placement:T,overflows:U}],ae=L[M+1];if(ae)return{data:{index:M+1,overflows:W},reset:{placement:ae}};let Je=W.map(Me=>{let x=br(Me.placement);return[Me.placement,x&&m?Me.overflows.slice(0,2).reduce((E,F)=>E+F,0):Me.overflows[0],Me.overflows]}).sort((Me,x)=>Me[1]-x[1]),Ut=((a=Je.filter(Me=>Me[2].slice(0,br(Me[0])?2:3).every(x=>x<=0))[0])==null?void 0:a[0])||Je[0][0];return Ut!==c?{data:{index:M+1,overflows:W},reset:{placement:Ut}}:{}}}};var x1=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:n,placement:a,platform:i}=t,{mainAxis:s=!0,crossAxis:c=!1,limiter:f={fn:M=>{let{x:T,y:D}=M;return{x:T,y:D}}},...u}=ea(e,t),m={x:r,y:n},g=await i.detectOverflow(t,u),y=ta(Eo(a)),S=Fi(y),C=m[S],L=m[y];if(s){let M=S==="y"?"top":"left",T=S==="y"?"bottom":"right",D=C+g[M],U=C-g[T];C=Ui(D,C,U)}if(c){let M=y==="y"?"top":"left",T=y==="y"?"bottom":"right",D=L+g[M],U=L-g[T];L=Ui(D,L,U)}let N=f.fn({...t,[S]:C,[y]:L});return{...N,data:{x:N.x-r,y:N.y-n,enabled:{[S]:s,[y]:c}}}}}};function oa(){return typeof window<"u"}function jr(e){return C1(e)?(e.nodeName||"").toLowerCase():"#document"}function tt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Gt(e){var t;return(t=(C1(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function C1(e){return oa()?e instanceof Node||e instanceof tt(e).Node:!1}function gt(e){return oa()?e instanceof Element||e instanceof tt(e).Element:!1}function Wt(e){return oa()?e instanceof HTMLElement||e instanceof tt(e).HTMLElement:!1}function S1(e){return!oa()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof tt(e).ShadowRoot}function Lo(e){let{overflow:t,overflowX:r,overflowY:n,display:a}=yt(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&a!=="inline"&&a!=="contents"}function O1(e){return/^(table|td|th)$/.test(jr(e))}function dn(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var zu=/transform|translate|scale|rotate|perspective|filter/,Iu=/paint|layout|strict|content/,Vr=e=>!!e&&e!=="none",Wi;function na(e){let t=gt(e)?yt(e):e;return Vr(t.transform)||Vr(t.translate)||Vr(t.scale)||Vr(t.rotate)||Vr(t.perspective)||!aa()&&(Vr(t.backdropFilter)||Vr(t.filter))||zu.test(t.willChange||"")||Iu.test(t.contain||"")}function E1(e){let t=rr(e);for(;Wt(t)&&!Kr(t);){if(na(t))return t;if(dn(t))return null;t=rr(t)}return null}function aa(){return Wi==null&&(Wi=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Wi}function Kr(e){return/^(html|body|#document)$/.test(jr(e))}function yt(e){return tt(e).getComputedStyle(e)}function fn(e){return gt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function rr(e){if(jr(e)==="html")return e;let t=e.assignedSlot||e.parentNode||S1(e)&&e.host||Gt(e);return S1(t)?t.host:t}function L1(e){let t=rr(e);return Kr(t)?e.ownerDocument?e.ownerDocument.body:e.body:Wt(t)&&Lo(t)?t:L1(t)}function ra(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);let a=L1(e),i=a===((n=e.ownerDocument)==null?void 0:n.body),s=tt(a);if(i){let c=ia(s);return t.concat(s,s.visualViewport||[],Lo(a)?a:[],c&&r?ra(c):[])}else return t.concat(a,ra(a,[],r))}function ia(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function _1(e){let t=yt(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,a=Wt(e),i=a?e.offsetWidth:r,s=a?e.offsetHeight:n,c=ln(r)!==i||ln(n)!==s;return c&&(r=i,n=s),{width:r,height:n,$:c}}function N1(e){return gt(e)?e:e.contextElement}function Ao(e){let t=N1(e);if(!Wt(t))return Tt(1);let r=t.getBoundingClientRect(),{width:n,height:a,$:i}=_1(t),s=(i?ln(r.width):r.width)/n,c=(i?ln(r.height):r.height)/a;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}var Du=Tt(0);function T1(e){let t=tt(e);return!aa()||!t.visualViewport?Du:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Bu(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==tt(e)?!1:t}function un(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);let a=e.getBoundingClientRect(),i=N1(e),s=Tt(1);t&&(n?gt(n)&&(s=Ao(n)):s=Ao(e));let c=Bu(i,r,n)?T1(i):Tt(0),f=(a.left+c.x)/s.x,u=(a.top+c.y)/s.y,m=a.width/s.x,g=a.height/s.y;if(i){let y=tt(i),S=n&>(n)?tt(n):n,C=y,L=ia(C);for(;L&&n&&S!==C;){let N=Ao(L),M=L.getBoundingClientRect(),T=yt(L),D=M.left+(L.clientLeft+parseFloat(T.paddingLeft))*N.x,U=M.top+(L.clientTop+parseFloat(T.paddingTop))*N.y;f*=N.x,u*=N.y,m*=N.x,g*=N.y,f+=D,u+=U,C=tt(L),L=ia(C)}}return Wr({width:m,height:g,x:f,y:u})}function sa(e,t){let r=fn(e).scrollLeft;return t?t.left+r:un(Gt(e)).left+r}function k1(e,t){let r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-sa(e,r),a=r.top+t.scrollTop;return{x:n,y:a}}function $u(e){let{elements:t,rect:r,offsetParent:n,strategy:a}=e,i=a==="fixed",s=Gt(n),c=t?dn(t.floating):!1;if(n===s||c&&i)return r;let f={scrollLeft:0,scrollTop:0},u=Tt(1),m=Tt(0),g=Wt(n);if((g||!g&&!i)&&((jr(n)!=="body"||Lo(s))&&(f=fn(n)),g)){let S=un(n);u=Ao(n),m.x=S.x+n.clientLeft,m.y=S.y+n.clientTop}let y=s&&!g&&!i?k1(s,f):Tt(0);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-f.scrollLeft*u.x+m.x+y.x,y:r.y*u.y-f.scrollTop*u.y+m.y+y.y}}function Uu(e){return Array.from(e.getClientRects())}function Fu(e){let t=Gt(e),r=fn(e),n=e.ownerDocument.body,a=yr(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=yr(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight),s=-r.scrollLeft+sa(e),c=-r.scrollTop;return yt(n).direction==="rtl"&&(s+=yr(t.clientWidth,n.clientWidth)-a),{width:a,height:i,x:s,y:c}}var A1=25;function Hu(e,t){let r=tt(e),n=Gt(e),a=r.visualViewport,i=n.clientWidth,s=n.clientHeight,c=0,f=0;if(a){i=a.width,s=a.height;let m=aa();(!m||m&&t==="fixed")&&(c=a.offsetLeft,f=a.offsetTop)}let u=sa(n);if(u<=0){let m=n.ownerDocument,g=m.body,y=getComputedStyle(g),S=m.compatMode==="CSS1Compat"&&parseFloat(y.marginLeft)+parseFloat(y.marginRight)||0,C=Math.abs(n.clientWidth-g.clientWidth-S);C<=A1&&(i-=C)}else u<=A1&&(i+=u);return{width:i,height:s,x:c,y:f}}function Gu(e,t){let r=un(e,!0,t==="fixed"),n=r.top+e.clientTop,a=r.left+e.clientLeft,i=Wt(e)?Ao(e):Tt(1),s=e.clientWidth*i.x,c=e.clientHeight*i.y,f=a*i.x,u=n*i.y;return{width:s,height:c,x:f,y:u}}function R1(e,t,r){let n;if(t==="viewport")n=Hu(e,r);else if(t==="document")n=Fu(Gt(e));else if(gt(t))n=Gu(t,r);else{let a=T1(e);n={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return Wr(n)}function M1(e,t){let r=rr(e);return r===t||!gt(r)||Kr(r)?!1:yt(r).position==="fixed"||M1(r,t)}function Wu(e,t){let r=t.get(e);if(r)return r;let n=ra(e,[],!1).filter(c=>gt(c)&&jr(c)!=="body"),a=null,i=yt(e).position==="fixed",s=i?rr(e):e;for(;gt(s)&&!Kr(s);){let c=yt(s),f=na(s);!f&&c.position==="fixed"&&(a=null),(i?!f&&!a:!f&&c.position==="static"&&!!a&&(a.position==="absolute"||a.position==="fixed")||Lo(s)&&!f&&M1(e,s))?n=n.filter(m=>m!==s):a=c,s=rr(s)}return t.set(e,n),n}function Vu(e){let{element:t,boundary:r,rootBoundary:n,strategy:a}=e,s=[...r==="clippingAncestors"?dn(t)?[]:Wu(t,this._c):[].concat(r),n],c=R1(t,s[0],a),f=c.top,u=c.right,m=c.bottom,g=c.left;for(let y=1;y<s.length;y++){let S=R1(t,s[y],a);f=yr(S.top,f),u=cn(S.right,u),m=cn(S.bottom,m),g=yr(S.left,g)}return{width:u-g,height:m-f,x:g,y:f}}function ju(e){let{width:t,height:r}=_1(e);return{width:t,height:r}}function Ku(e,t,r){let n=Wt(t),a=Gt(t),i=r==="fixed",s=un(e,!0,i,t),c={scrollLeft:0,scrollTop:0},f=Tt(0);function u(){f.x=sa(a)}if(n||!n&&!i)if((jr(t)!=="body"||Lo(a))&&(c=fn(t)),n){let S=un(t,!0,i,t);f.x=S.x+t.clientLeft,f.y=S.y+t.clientTop}else a&&u();i&&!n&&a&&u();let m=a&&!n&&!i?k1(a,c):Tt(0),g=s.left+c.scrollLeft-f.x-m.x,y=s.top+c.scrollTop-f.y-m.y;return{x:g,y,width:s.width,height:s.height}}function Vi(e){return yt(e).position==="static"}function w1(e,t){if(!Wt(e)||yt(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Gt(e)===r&&(r=r.ownerDocument.body),r}function P1(e,t){let r=tt(e);if(dn(e))return r;if(!Wt(e)){let a=rr(e);for(;a&&!Kr(a);){if(gt(a)&&!Vi(a))return a;a=rr(a)}return r}let n=w1(e,t);for(;n&&O1(n)&&Vi(n);)n=w1(n,t);return n&&Kr(n)&&Vi(n)&&!na(n)?r:n||E1(e)||r}var qu=async function(e){let t=this.getOffsetParent||P1,r=this.getDimensions,n=await r(e.floating);return{reference:Ku(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Zu(e){return yt(e).direction==="rtl"}var ca={convertOffsetParentRelativeRectToViewportRelativeRect:$u,getDocumentElement:Gt,getClippingRect:Vu,getOffsetParent:P1,getElementRects:qu,getClientRects:Uu,getDimensions:ju,getScale:Ao,isElement:gt,isRTL:Zu};var z1=v1,I1=x1;var D1=(e,t,r)=>{let n=new Map,a={platform:ca,...r},i={...a.platform,_c:n};return b1(e,t,{...a,platform:i})};function B1(e){return Yu(e)}function ji(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function Yu(e){for(let t=e;t;t=ji(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=ji(e);t;t=ji(t)){if(!(t instanceof Element))continue;let r=getComputedStyle(t);if(r.display!=="contents"&&(r.position!=="static"||r.filter!=="none"||t.tagName==="BODY"))return t}return null}async function $1(e,t,r){let n;return typeof r=="object"?n=r:n={placement:r},D1(e,t,{strategy:n.strategy,platform:{...ca,getOffsetParent:a=>ca.getOffsetParent(a,B1)},middleware:[I1({crossAxis:!0}),z1({allowedPlacements:[n.placement]})]})}var Bo=b(w());var ys=b(j());function Xu(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;let r,n,a;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!la(e[n],t[n]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;for(n of e.entries())if(!la(n[1],t.get(n[0])))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();let i=s=>Object.keys(s).filter(c=>s[c]!=null);if(a=i(e),r=a.length,r!==i(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,a[n]))return!1;for(n=r;n--!==0;){let s=a[n];if(!la(e[s],t[s]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function la(e,t){try{return Xu(e,t)}catch{return!1}}function pn(e,t){return!la(e,t)}function U1(e){return typeof window.structuredClone=="function"?structuredClone(e):e!=null?JSON.parse(JSON.stringify(e)):e}function da(e,t){let r=n=>n[e]===!0;return n=>{if(r(n))return n;let a=t(n);return a[e]=!0,a}}var F1=b(j(),1);var Ki=e=>{let t=e??{};return(r,n)=>{var a;let i={hasChanged:pn,attribute:!1,...t};(0,F1.property)(i)(r,n);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(n,{selector:(a=t.selector)!==null&&a!==void 0?a:c=>c[n],store:t.store})}};var fa=class{constructor(){this.queue=[]}add(t,r=!1){r&&this.clear(t.type),this.queue.push(t)}consume(t){let r=this.queue.find(n=>n.type===t);return r&&(this.queue=this.queue.filter(n=>n!==r)),r}clear(t){typeof t=="string"?this.queue=this.queue.filter(r=>r.type!==t):this.queue=this.queue.filter(r=>!t.test(r.type))}};var qr=b(j(),1);var H1=b(j(),1);function G1(e,t){let r=()=>JSON.parse(JSON.stringify(e));return(0,H1.property)({type:Object,converter:{fromAttribute:n=>{if(n==null)return r();try{return JSON.parse(n)}catch{return r()}},toAttribute:n=>JSON.stringify(n)},hasChanged:pn,...t??{}})}var ua=class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,r){return this.callbacks=[t],this.debounce(r)}queue(t,r){return this.callbacks.push(t),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return this.promise==null&&(this.promise=new Promise((r,n)=>{this.resolvePromise=r,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,r;let n=[...this.callbacks];this.callbacks=[];let a=(t=this.rejectPromise)!==null&&t!==void 0?t:()=>null,i=(r=this.resolvePromise)!==null&&r!==void 0?r:()=>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 V1=b($(),1);var pa=globalThis,Qu=pa.ShadowRoot&&(pa.ShadyCSS===void 0||pa.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Mx=Symbol();var W1=(e,t)=>{if(Qu)e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of t){let n=document.createElement("style"),a=pa.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=r.cssText,e.appendChild(n)}};var ha=class extends V1.LitElement{createRenderRoot(){let t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach(([a,i])=>t.registry.define(a,i)));let r={...t.shadowRootOptions,customElements:t.registry},n=this.renderOptions.creationScope=this.attachShadow(r);return W1(n,t.elementStyles),n}};function j1(e,t,...r){var n;let a=e.querySelector(t);for(let i of r)a=(n=a?.shadowRoot)===null||n===void 0?void 0:n.querySelector(i);return a}var wo=function(e,t,r,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var c=e.length-1;c>=0;c--)(s=e[c])&&(i=(a<3?s(i):a>3?s(t,r,i):s(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},Y1,K1=Symbol("constructorPrototype"),q1=Symbol("constructorName"),X1=Symbol("exportpartsDebouncer"),Z1=Symbol("dynamicDependenciesLoaded"),Ro=class e extends CustomEvent{constructor(){super(e.eventName,{bubbles:!0})}};Ro.eventName="exportparts-updated";var Vt=class extends ha{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Y1]=new ua(5),this.scheduleExportpartsUpdate=()=>{var t,r,n;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(n=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&n!==void 0&&n)&&this[X1].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[q1]=this.constructor.name,this[K1]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[q1]&&Object.setPrototypeOf(this,this[K1])}connectedCallback(){var t;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(n){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",n)}let r=this.constructor;r[Z1]||(r[Z1]=!0,this.importDynamicDependencies()),(t=this.shadowRoot)===null||t===void 0||t.addEventListener(Ro.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.shadowRoot)===null||t===void 0||t.removeEventListener(Ro.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(t){super.updated(t),this.updateComplete.then(()=>{this.contentAvailableCallback(t),this.focusElementToFocus(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate(),t.has("exportparts")&&this.dispatchEvent(new Ro)})}contentAvailableCallback(t){}focusElementToFocus(t){if(t.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:n,shadowPath:a}=this.elementToFocus;if(n!=null){let i=[...a??[],n];r=j1(this.shadowRoot,...i)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(t){var r,n,a;if(((n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(i=>i.remove()),this.useAdoptedStyleSheets){if(t.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(t){var r,n,a,i,s,c;let f=y=>y!=null&&y.trim().length>0,u=t.filter(f).map(y=>y.trim());if(u.length===0){this.exportparts=void 0;return}let m=new Set;for(let y of(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let S=(i=(a=y.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&i!==void 0?i:[],C=(c=(s=y.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(N=>N.split(":")[1]))!==null&&c!==void 0?c:[],L=[...S,...C].filter(f).map(N=>N.trim());for(let N of L)m.add(N)}if(m.size===0){this.exportparts=void 0;return}let g=[...m.values()].flatMap(y=>u.map(S=>`${y}:${S}--${y}`));this.exportparts=[...this.part,...g].join(", ")}};Y1=X1;wo([(0,qr.property)()],Vt.prototype,"exportpartsPrefix",void 0);wo([G1([])],Vt.prototype,"exportpartsPrefixes",void 0);wo([(0,qr.property)({reflect:!0})],Vt.prototype,"exportparts",void 0);wo([(0,qr.property)()],Vt.prototype,"customStylesheet",void 0);wo([(0,qr.property)()],Vt.prototype,"elementToFocus",void 0);wo([(0,qr.state)()],Vt.prototype,"useAdoptedStyleSheets",void 0);function ma(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var hn=Symbol("internalReduxEventsUnsubscribers"),vr=Symbol("internalStoresUnsubscribers"),Zr=Symbol("internalStores"),Ju=da(Symbol("withRedux"),function(e){var t,r,n;class a extends e{constructor(){super(...arguments),this[t]=new Map,this[r]=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[Zr].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Zr].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[Zr].get(s)}addStore(s,c){var f;c=(f=c??s.name)!==null&&f!==void 0?f:"default-store",this.unsubscribeFromStore(c),this[Zr].set(c,s),this.subscribeToStore(c,s),this.updateFromStores()}removeStore(s){let c=typeof s=="string"?s:s.name;this.unsubscribeFromStore(c),this[Zr].delete(c)}setupStores(){this.unsubscribeFromStores(),this[Zr].forEach((s,c)=>this.subscribeToStore(c,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,c)=>{let f=this.constructor.getPropertyOptions(c);if(!f?.attribute||!this.hasAttribute(typeof f?.attribute=="string"?f.attribute:c)){let u=this.getStore(s.store);u&&(s.store?this[vr].has(s.store):this[vr].size>0)&&(this[c]=s.selector(u.getState(),this))}})}subscribeToStore(s,c){var f;this[vr].set(s,c.subscribe(()=>this.updateFromStores())),this[hn].set(s,[]),ma(c)&&c.eventBus&&((f=this.reduxConstructor.reduxEventListeners)===null||f===void 0||f.forEach((u,m)=>{if(typeof this[m]=="function"&&(!u.store||c.name===u.store)){let g=y=>this[m](y);c.addEventListener(u.eventName,g),this[hn].get(s).push(()=>c.removeEventListener(u.eventName,g))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[vr].forEach((s,c)=>this.unsubscribeFromStore(c))}unsubscribeFromStore(s){var c;this[vr].has(s)&&this[vr].get(s)(),this[vr].delete(s),(c=this[hn].get(s))===null||c===void 0||c.forEach(f=>f()),this[hn].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return t=vr,r=Zr,n=hn,a.reduxProperties=new Map,a.reduxReactiveProperties=new Set,a.reduxEventListeners=new Map,a}),Q1=class extends Ju(Vt){};function bt(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if(0)var a,i;throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function or(e){return!!e&&!!e[se]}function kt(e){var t;return!!e&&(function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===sp}(e)||Array.isArray(e)||!!e[a2]||!!(!((t=e.constructor)===null||t===void 0)&&t[a2])||rs(e)||os(e))}function Yr(e,t,r){r===void 0&&(r=!1),To(e)===0?(r?Object.keys:No)(e).forEach(function(n){r&&typeof n=="symbol"||t(n,e[n],e)}):e.forEach(function(n,a){return t(a,n,e)})}function To(e){var t=e[se];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:rs(e)?2:os(e)?3:0}function _o(e,t){return To(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function ep(e,t){return To(e)===2?e.get(t):e[t]}function i2(e,t,r){var n=To(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function s2(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function rs(e){return ap&&e instanceof Map}function os(e){return ip&&e instanceof Set}function xr(e){return e.o||e.t}function ns(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=d2(e);delete t[se];for(var r=No(t),n=0;n<r.length;n++){var a=r[n],i=t[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[a]})}return Object.create(Object.getPrototypeOf(e),t)}function as(e,t){return t===void 0&&(t=!1),is(e)||or(e)||!kt(e)||(To(e)>1&&(e.set=e.add=e.clear=e.delete=tp),Object.freeze(e),t&&Yr(e,function(r,n){return as(n,!0)},!0)),e}function tp(){bt(2)}function is(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function jt(e){var t=ts[e];return t||bt(18,e),t}function rp(e,t){ts[e]||(ts[e]=t)}function Qi(){return gn}function qi(e,t){t&&(jt("Patches"),e.u=[],e.s=[],e.v=t)}function ga(e){Ji(e),e.p.forEach(op),e.p=null}function Ji(e){e===gn&&(gn=e.l)}function J1(e){return gn={p:[],l:gn,h:e,m:!0,_:0}}function op(e){var t=e[se];t.i===0||t.i===1?t.j():t.g=!0}function Zi(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.O||jt("ES5").S(t,e,n),n?(r[se].P&&(ga(t),bt(4)),kt(e)&&(e=ya(t,e),t.l||ba(t,e)),t.u&&jt("Patches").M(r[se].t,e,t.u,t.s)):e=ya(t,r,[]),ga(t),t.u&&t.v(t.u,t.s),e!==l2?e:void 0}function ya(e,t,r){if(is(t))return t;var n=t[se];if(!n)return Yr(t,function(c,f){return e2(e,n,t,c,f,r)},!0),t;if(n.A!==e)return t;if(!n.P)return ba(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=ns(n.k):n.o,i=a,s=!1;n.i===3&&(i=new Set(a),a.clear(),s=!0),Yr(i,function(c,f){return e2(e,n,a,c,f,r,s)}),ba(e,a,!1),r&&e.u&&jt("Patches").N(n,r,e.u,e.s)}return n.o}function e2(e,t,r,n,a,i,s){if(or(a)){var c=ya(e,a,i&&t&&t.i!==3&&!_o(t.R,n)?i.concat(n):void 0);if(i2(r,n,c),!or(c))return;e.m=!1}else s&&r.add(a);if(kt(a)&&!is(a)){if(!e.h.D&&e._<1)return;ya(e,a),t&&t.A.l||ba(e,a)}}function ba(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&as(t,r)}function Yi(e,t){var r=e[se];return(r?xr(r):e)[t]}function t2(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function Sr(e){e.P||(e.P=!0,e.l&&Sr(e.l))}function Xi(e){e.o||(e.o=ns(e.t))}function es(e,t,r){var n=rs(t)?jt("MapSet").F(t,r):os(t)?jt("MapSet").T(t,r):e.O?function(a,i){var s=Array.isArray(a),c={i:s?1:0,A:i?i.A:Qi(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},f=c,u=yn;s&&(f=[c],u=mn);var m=Proxy.revocable(f,u),g=m.revoke,y=m.proxy;return c.k=y,c.j=g,y}(t,r):jt("ES5").J(t,r);return(r?r.A:Qi()).p.push(n),n}function np(e){return or(e)||bt(22,e),function t(r){if(!kt(r))return r;var n,a=r[se],i=To(r);if(a){if(!a.P&&(a.i<4||!jt("ES5").K(a)))return a.t;a.I=!0,n=r2(r,i),a.I=!1}else n=r2(r,i);return Yr(n,function(s,c){a&&ep(a.t,s)===c||i2(n,s,t(c))}),i===3?new Set(n):n}(e)}function r2(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return ns(e)}function c2(){function e(s,c){var f=i[s];return f?f.enumerable=c:i[s]=f={configurable:!0,enumerable:c,get:function(){var u=this[se];return yn.get(u,s)},set:function(u){var m=this[se];yn.set(m,s,u)}},f}function t(s){for(var c=s.length-1;c>=0;c--){var f=s[c][se];if(!f.P)switch(f.i){case 5:n(f)&&Sr(f);break;case 4:r(f)&&Sr(f)}}}function r(s){for(var c=s.t,f=s.k,u=No(f),m=u.length-1;m>=0;m--){var g=u[m];if(g!==se){var y=c[g];if(y===void 0&&!_o(c,g))return!0;var S=f[g],C=S&&S[se];if(C?C.t!==y:!s2(S,y))return!0}}var L=!!c[se];return u.length!==No(c).length+(L?0:1)}function n(s){var c=s.k;if(c.length!==s.t.length)return!0;var f=Object.getOwnPropertyDescriptor(c,c.length-1);if(f&&!f.get)return!0;for(var u=0;u<c.length;u++)if(!c.hasOwnProperty(u))return!0;return!1}function a(s){s.g&&bt(3,JSON.stringify(xr(s)))}var i={};rp("ES5",{J:function(s,c){var f=Array.isArray(s),u=function(g,y){if(g){for(var S=Array(y.length),C=0;C<y.length;C++)Object.defineProperty(S,""+C,e(C,!0));return S}var L=d2(y);delete L[se];for(var N=No(L),M=0;M<N.length;M++){var T=N[M];L[T]=e(T,g||!!L[T].enumerable)}return Object.create(Object.getPrototypeOf(y),L)}(f,s),m={i:f?5:4,A:c?c.A:Qi(),P:!1,I:!1,R:{},l:c,t:s,k:u,o:null,g:!1,C:!1};return Object.defineProperty(u,se,{value:m,writable:!0}),u},S:function(s,c,f){f?or(c)&&c[se].A===s&&t(s.p):(s.u&&function u(m){if(m&&typeof m=="object"){var g=m[se];if(g){var y=g.t,S=g.k,C=g.R,L=g.i;if(L===4)Yr(S,function(U){U!==se&&(y[U]!==void 0||_o(y,U)?C[U]||u(S[U]):(C[U]=!0,Sr(g)))}),Yr(y,function(U){S[U]!==void 0||_o(S,U)||(C[U]=!1,Sr(g))});else if(L===5){if(n(g)&&(Sr(g),C.length=!0),S.length<y.length)for(var N=S.length;N<y.length;N++)C[N]=!1;else for(var M=y.length;M<S.length;M++)C[M]=!0;for(var T=Math.min(S.length,y.length),D=0;D<T;D++)S.hasOwnProperty(D)||(C[D]=!0),C[D]===void 0&&u(S[D])}}}}(s.p[0]),t(s.p))},K:function(s){return s.i===4?r(s):n(s)}})}var o2,gn,ss=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",ap=typeof Map<"u",ip=typeof Set<"u",n2=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",l2=ss?Symbol.for("immer-nothing"):((o2={})["immer-nothing"]=!0,o2),a2=ss?Symbol.for("immer-draftable"):"__$immer_draftable",se=ss?Symbol.for("immer-state"):"__$immer_state";var sp=""+Object.prototype.constructor,No=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,d2=Object.getOwnPropertyDescriptors||function(e){var t={};return No(e).forEach(function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)}),t},ts={},yn={get:function(e,t){if(t===se)return e;var r=xr(e);if(!_o(r,t))return function(a,i,s){var c,f=t2(i,s);return f?"value"in f?f.value:(c=f.get)===null||c===void 0?void 0:c.call(a.k):void 0}(e,r,t);var n=r[t];return e.I||!kt(n)?n:n===Yi(e.t,t)?(Xi(e),e.o[t]=es(e.A.h,n,e)):n},has:function(e,t){return t in xr(e)},ownKeys:function(e){return Reflect.ownKeys(xr(e))},set:function(e,t,r){var n=t2(xr(e),t);if(n?.set)return n.set.call(e.k,r),!0;if(!e.P){var a=Yi(xr(e),t),i=a?.[se];if(i&&i.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(s2(r,a)&&(r!==void 0||_o(e.t,t)))return!0;Xi(e),Sr(e)}return e.o[t]===r&&(r!==void 0||t in e.o)||Number.isNaN(r)&&Number.isNaN(e.o[t])||(e.o[t]=r,e.R[t]=!0),!0},deleteProperty:function(e,t){return Yi(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,Xi(e),Sr(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=xr(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty:function(){bt(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){bt(12)}},mn={};Yr(yn,function(e,t){mn[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),mn.deleteProperty=function(e,t){return mn.set.call(this,e,t,void 0)},mn.set=function(e,t,r){return yn.set.call(this,e[0],t,r,e[0])};var cp=function(){function e(r){var n=this;this.O=n2,this.D=!0,this.produce=function(a,i,s){if(typeof a=="function"&&typeof i!="function"){var c=i;i=a;var f=n;return function(L){var N=this;L===void 0&&(L=c);for(var M=arguments.length,T=Array(M>1?M-1:0),D=1;D<M;D++)T[D-1]=arguments[D];return f.produce(L,function(U){var W;return(W=i).call.apply(W,[N,U].concat(T))})}}var u;if(typeof i!="function"&&bt(6),s!==void 0&&typeof s!="function"&&bt(7),kt(a)){var m=J1(n),g=es(n,a,void 0),y=!0;try{u=i(g),y=!1}finally{y?ga(m):Ji(m)}return typeof Promise<"u"&&u instanceof Promise?u.then(function(L){return qi(m,s),Zi(L,m)},function(L){throw ga(m),L}):(qi(m,s),Zi(u,m))}if(!a||typeof a!="object"){if((u=i(a))===void 0&&(u=a),u===l2&&(u=void 0),n.D&&as(u,!0),s){var S=[],C=[];jt("Patches").M(a,u,S,C),s(S,C)}return u}bt(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(u){for(var m=arguments.length,g=Array(m>1?m-1:0),y=1;y<m;y++)g[y-1]=arguments[y];return n.produceWithPatches(u,function(S){return a.apply(void 0,[S].concat(g))})};var s,c,f=n.produce(a,i,function(u,m){s=u,c=m});return typeof Promise<"u"&&f instanceof Promise?f.then(function(u){return[u,s,c]}):[f,s,c]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var t=e.prototype;return t.createDraft=function(r){kt(r)||bt(8),or(r)&&(r=np(r));var n=J1(this),a=es(this,r,void 0);return a[se].C=!0,Ji(n),a},t.finishDraft=function(r,n){var a=r&&r[se],i=a.A;return qi(i,n),Zi(void 0,i)},t.setAutoFreeze=function(r){this.D=r},t.setUseProxies=function(r){r&&!n2&&bt(20),this.O=r},t.applyPatches=function(r,n){var a;for(a=n.length-1;a>=0;a--){var i=n[a];if(i.path.length===0&&i.op==="replace"){r=i.value;break}}a>-1&&(n=n.slice(a+1));var s=jt("Patches").$;return or(r)?s(r,n):this.produce(r,function(c){return s(c,n)})},e}(),st=new cp,lp=st.produce,qx=st.produceWithPatches.bind(st),Zx=st.setAutoFreeze.bind(st),Yx=st.setUseProxies.bind(st),Xx=st.applyPatches.bind(st),Qx=st.createDraft.bind(st),Jx=st.finishDraft.bind(st),va=lp;function Xr(e){"@babel/helpers - typeof";return Xr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xr(e)}function f2(e,t){if(Xr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Xr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function u2(e){var t=f2(e,"string");return Xr(t)=="symbol"?t:t+""}function p2(e,t,r){return(t=u2(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function cs(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?h2(Object(r),!0).forEach(function(n){p2(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h2(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function We(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var m2=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),ls=function(){return Math.random().toString(36).substring(7).split("").join(".")},xa={INIT:"@@redux/INIT"+ls(),REPLACE:"@@redux/REPLACE"+ls(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ls()}};function dp(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function ds(e,t,r){var n;if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(We(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(We(1));return r(ds)(e,t)}if(typeof e!="function")throw new Error(We(2));var a=e,i=t,s=[],c=s,f=!1;function u(){c===s&&(c=s.slice())}function m(){if(f)throw new Error(We(3));return i}function g(L){if(typeof L!="function")throw new Error(We(4));if(f)throw new Error(We(5));var N=!0;return u(),c.push(L),function(){if(N){if(f)throw new Error(We(6));N=!1,u();var T=c.indexOf(L);c.splice(T,1),s=null}}}function y(L){if(!dp(L))throw new Error(We(7));if(typeof L.type>"u")throw new Error(We(8));if(f)throw new Error(We(9));try{f=!0,i=a(i,L)}finally{f=!1}for(var N=s=c,M=0;M<N.length;M++){var T=N[M];T()}return L}function S(L){if(typeof L!="function")throw new Error(We(10));a=L,y({type:xa.REPLACE})}function C(){var L,N=g;return L={subscribe:function(T){if(typeof T!="object"||T===null)throw new Error(We(11));function D(){T.next&&T.next(m())}D();var U=N(D);return{unsubscribe:U}}},L[m2]=function(){return this},L}return y({type:xa.INIT}),n={dispatch:y,subscribe:g,getState:m,replaceReducer:S},n[m2]=C,n}function fp(e){Object.keys(e).forEach(function(t){var r=e[t],n=r(void 0,{type:xa.INIT});if(typeof n>"u")throw new Error(We(12));if(typeof r(void 0,{type:xa.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(We(13))})}function g2(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++){var a=t[n];typeof e[a]=="function"&&(r[a]=e[a])}var i=Object.keys(r),s,c;try{fp(r)}catch(f){c=f}return function(u,m){if(u===void 0&&(u={}),c)throw c;if(0)var g;for(var y=!1,S={},C=0;C<i.length;C++){var L=i[C],N=r[L],M=u[L],T=N(M,m);if(typeof T>"u"){var D=m&&m.type;throw new Error(We(14))}S[L]=T,y=y||T!==M}return y=y||i.length!==Object.keys(u).length,y?S:u}}function ko(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.length===0?function(n){return n}:t.length===1?t[0]:t.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function y2(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){return function(){var a=n.apply(void 0,arguments),i=function(){throw new Error(We(15))},s={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},c=t.map(function(f){return f(s)});return i=ko.apply(void 0,c)(a.dispatch),cs(cs({},a),{},{dispatch:i})}}}function b2(e){var t=function(n){var a=n.dispatch,i=n.getState;return function(s){return function(c){return typeof c=="function"?c(a,i,e):s(c)}}};return t}var v2=b2();v2.withExtraArgument=b2;var fs=v2;var E2=function(){var e=function(t,r){return e=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])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),up=function(e,t){var r={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 f([u,m])}}function f(u){if(n)throw new TypeError("Generator is already executing.");for(;r;)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 r.label++,{value:u[1],done:!1};case 5:r.label++,a=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){r.label=u[1];break}if(u[0]===6&&r.label<i[1]){r.label=i[1],i=u;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(u);break}i[2]&&r.ops.pop(),r.trys.pop();continue}u=t.call(e,r)}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}}},Mo=function(e,t){for(var r=0,n=t.length,a=e.length;r<n;r++,a++)e[a]=t[r];return e},pp=Object.defineProperty,hp=Object.defineProperties,mp=Object.getOwnPropertyDescriptors,x2=Object.getOwnPropertySymbols,gp=Object.prototype.hasOwnProperty,yp=Object.prototype.propertyIsEnumerable,S2=function(e,t,r){return t in e?pp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},Cr=function(e,t){for(var r in t||(t={}))gp.call(t,r)&&S2(e,r,t[r]);if(x2)for(var n=0,a=x2(t);n<a.length;n++){var r=a[n];yp.call(t,r)&&S2(e,r,t[r])}return e},us=function(e,t){return hp(e,mp(t))},bp=function(e,t,r){return new Promise(function(n,a){var i=function(f){try{c(r.next(f))}catch(u){a(u)}},s=function(f){try{c(r.throw(f))}catch(u){a(u)}},c=function(f){return f.done?n(f.value):Promise.resolve(f.value).then(i,s)};c((r=r.apply(e,t)).next())})};var vp=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?ko:ko.apply(null,arguments)},yS=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function xp(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var r=t;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return t===r}var Sp=function(e){E2(t,e);function t(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var a=e.apply(this,r)||this;return Object.setPrototypeOf(a,t.prototype),a}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e.prototype.concat.apply(this,r)},t.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(t.bind.apply(t,Mo([void 0],r[0].concat(this)))):new(t.bind.apply(t,Mo([void 0],r.concat(this))))},t}(Array),Cp=function(e){E2(t,e);function t(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var a=e.apply(this,r)||this;return Object.setPrototypeOf(a,t.prototype),a}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e.prototype.concat.apply(this,r)},t.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(t.bind.apply(t,Mo([void 0],r[0].concat(this)))):new(t.bind.apply(t,Mo([void 0],r.concat(this))))},t}(Array);function ms(e){return kt(e)?va(e,function(){}):e}function Op(e){return typeof e=="boolean"}function Ep(){return function(t){return Lp(t)}}function Lp(e){e===void 0&&(e={});var t=e.thunk,r=t===void 0?!0:t,n=e.immutableCheck,a=n===void 0?!0:n,i=e.serializableCheck,s=i===void 0?!0:i,c=new Sp;if(r&&(Op(r)?c.push(fs):c.push(fs.withExtraArgument(r.extraArgument))),0){if(a)var f;if(s)var u}return c}var ps=!0;function L2(e){var t=Ep(),r=e||{},n=r.reducer,a=n===void 0?void 0:n,i=r.middleware,s=i===void 0?t():i,c=r.devTools,f=c===void 0?!0:c,u=r.preloadedState,m=u===void 0?void 0:u,g=r.enhancers,y=g===void 0?void 0:g,S;if(typeof a=="function")S=a;else if(xp(a))S=g2(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 C=s;if(typeof C=="function"&&(C=C(t),!ps&&!Array.isArray(C)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!ps&&C.some(function(U){return typeof U!="function"}))throw new Error("each middleware provided to configureStore must be a function");var L=y2.apply(void 0,C),N=ko;f&&(N=vp(Cr({trace:!ps},typeof f=="object"&&f)));var M=new Cp(L),T=M;Array.isArray(y)?T=Mo([L],y):typeof y=="function"&&(T=y(M));var D=N.apply(void 0,T);return ds(S,m,D)}function Or(e,t){function r(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(t){var i=t.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return Cr(Cr({type:e,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:e,payload:n[0]}}return r.toString=function(){return""+e},r.type=e,r.match=function(n){return n.type===e},r}function A2(e){var t={},r=[],n,a={addCase:function(i,s){var c=typeof i=="string"?i:i.type;if(c in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[c]=s,a},addMatcher:function(i,s){return r.push({matcher:i,reducer:s}),a},addDefaultCase:function(i){return n=i,a}};return e(a),[t,r,n]}function Ap(e){return typeof e=="function"}function Rp(e,t,r,n){r===void 0&&(r=[]);var a=typeof t=="function"?A2(t):[t,r,n],i=a[0],s=a[1],c=a[2],f;if(Ap(e))f=function(){return ms(e())};else{var u=ms(e);f=function(){return u}}function m(g,y){g===void 0&&(g=f());var S=Mo([i[y.type]],s.filter(function(C){var L=C.matcher;return L(y)}).map(function(C){var L=C.reducer;return L}));return S.filter(function(C){return!!C}).length===0&&(S=[c]),S.reduce(function(C,L){if(L)if(or(C)){var N=C,M=L(N,y);return M===void 0?C:M}else{if(kt(C))return va(C,function(T){return L(T,y)});var M=L(C,y);if(M===void 0){if(C===null)return C;throw Error("A case reducer on a non-draftable value must not return undefined")}return M}return C},g)}return m.getInitialState=f,m}function wp(e,t){return e+"/"+t}function R2(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof e.initialState=="function"?e.initialState:ms(e.initialState),n=e.reducers||{},a=Object.keys(n),i={},s={},c={};a.forEach(function(m){var g=n[m],y=wp(t,m),S,C;"reducer"in g?(S=g.reducer,C=g.prepare):S=g,i[m]=S,s[y]=S,c[m]=C?Or(y,C):Or(y)});function f(){var m=typeof e.extraReducers=="function"?A2(e.extraReducers):[e.extraReducers],g=m[0],y=g===void 0?{}:g,S=m[1],C=S===void 0?[]:S,L=m[2],N=L===void 0?void 0:L,M=Cr(Cr({},y),s);return Rp(r,function(T){for(var D in M)T.addCase(D,M[D]);for(var U=0,W=C;U<W.length;U++){var ae=W[U];T.addMatcher(ae.matcher,ae.reducer)}N&&T.addDefaultCase(N)})}var u;return{name:t,reducer:function(m,g){return u||(u=f()),u(m,g)},actions:c,caseReducers:i,getInitialState:function(){return u||(u=f()),u.getInitialState()}}}var _p="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Np=function(e){e===void 0&&(e=21);for(var t="",r=e;r--;)t+=_p[Math.random()*64|0];return t},Tp=["name","message","stack","code"],hs=function(){function e(t,r){this.payload=t,this.meta=r}return e}(),C2=function(){function e(t,r){this.payload=t,this.meta=r}return e}(),kp=function(e){if(typeof e=="object"&&e!==null){for(var t={},r=0,n=Tp;r<n.length;r++){var a=n[r];typeof e[a]=="string"&&(t[a]=e[a])}return t}return{message:String(e)}},SS=function(){function e(t,r,n){var a=Or(t+"/fulfilled",function(m,g,y,S){return{payload:m,meta:us(Cr({},S||{}),{arg:y,requestId:g,requestStatus:"fulfilled"})}}),i=Or(t+"/pending",function(m,g,y){return{payload:void 0,meta:us(Cr({},y||{}),{arg:g,requestId:m,requestStatus:"pending"})}}),s=Or(t+"/rejected",function(m,g,y,S,C){return{payload:S,error:(n&&n.serializeError||kp)(m||"Rejected"),meta:us(Cr({},C||{}),{arg:y,requestId:g,rejectedWithValue:!!S,requestStatus:"rejected",aborted:m?.name==="AbortError",condition:m?.name==="ConditionError"})}}),c=!1,f=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(g,y,S){var C=n?.idGenerator?n.idGenerator(m):Np(),L=new f,N,M=!1;function T(U){N=U,L.abort()}var D=function(){return bp(this,null,function(){var U,W,ae,Je,ke,Ut,Me;return up(this,function(x){switch(x.label){case 0:return x.trys.push([0,4,,5]),Je=(U=n?.condition)==null?void 0:U.call(n,m,{getState:y,extra:S}),Pp(Je)?[4,Je]:[3,2];case 1:Je=x.sent(),x.label=2;case 2:if(Je===!1||L.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return M=!0,ke=new Promise(function(E,F){return L.signal.addEventListener("abort",function(){return F({name:"AbortError",message:N||"Aborted"})})}),g(i(C,m,(W=n?.getPendingMeta)==null?void 0:W.call(n,{requestId:C,arg:m},{getState:y,extra:S}))),[4,Promise.race([ke,Promise.resolve(r(m,{dispatch:g,getState:y,extra:S,requestId:C,signal:L.signal,abort:T,rejectWithValue:function(E,F){return new hs(E,F)},fulfillWithValue:function(E,F){return new C2(E,F)}})).then(function(E){if(E instanceof hs)throw E;return E instanceof C2?a(E.payload,C,m,E.meta):a(E,C,m)})])];case 3:return ae=x.sent(),[3,5];case 4:return Ut=x.sent(),ae=Ut instanceof hs?s(null,C,m,Ut.payload,Ut.meta):s(Ut,C,m),[3,5];case 5:return Me=n&&!n.dispatchConditionRejection&&s.match(ae)&&ae.meta.condition,Me||g(ae),[2,ae]}})})}();return Object.assign(D,{abort:T,requestId:C,arg:m,unwrap:function(){return D.then(Mp)}})}}return Object.assign(u,{pending:i,rejected:s,fulfilled:a,typePrefix:t})}return e.withTypes=function(){return e},e}();function Mp(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Pp(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var w2="listener",_2="completed",N2="cancelled",CS="task-"+N2,OS="task-"+_2,ES=w2+"-"+N2,LS=w2+"-"+_2;var gs="listenerMiddleware";var AS=Or(gs+"/add"),RS=Or(gs+"/removeAll"),wS=Or(gs+"/remove");var O2,_S=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(O2||(O2=Promise.resolve())).then(e).catch(function(t){return setTimeout(function(){throw t},0)})},zp=function(e){return function(t){setTimeout(t,e)}},NS=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:zp(10);c2();var Ip=da(Symbol("withEventBus"),function(e,t){return class extends e{constructor(){super(...arguments),this.eventBus=t??document.createElement("span")}addEventListener(r,n,a){this.eventBus.addEventListener(r,n,a)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,n,a){this.eventBus.removeEventListener(r,n,a)}}}),Sa=class extends Ip(Object){};window.ftReduxStores||(window.ftReduxStores={});var T2=class e extends Sa{static get(t){var r;let n=typeof t=="string"?t:t.name,a=typeof t=="string"?void 0:t,i=window.ftReduxStores[n];if(ma(i))return i;if(a==null)return;let s=R2({...a,reducers:(r=a.reducers)!==null&&r!==void 0?r:{}}),c=L2({reducer:(f,u)=>{if(u.type==="CLEAR_FT_REDUX_STORE"){let m=U1(s.getInitialState());for(let g of u.keeping)m[g]=(f??m)[g];return m}else if(typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...f,...u.overwrites};return s.reducer(f,u)}});return window.ftReduxStores[a.name]=new e(s,c,a.eventBus)}constructor(t,r,n){super(),this.reduxSlice=t,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new fa;let a=i=>i!=null?JSON.parse(JSON.stringify(i)):i;this.actions=new Proxy(this.reduxSlice.actions,{get:(i,s,c)=>{let f=s,u=i[f];return u?(...m)=>{let g=u(...m.map(a));return this.reduxStore.dispatch(g),g}:m=>{this.setState({[f]:a(m)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...t){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:t})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}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(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var Ca=class{static format(t,r,n,a){return window.moment?window.moment(t).locale(r).format(this.getMomentDateFormat(n,a)):this.getIntlDateTime(t,r,n,a)}static getMomentDateFormat(t,r){return t?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(t,r,n,a){let i=typeof t=="string"?new Date(t):t,s=new Intl.DateTimeFormat(r,{dateStyle:n?"medium":"short"}).format(i);if(!a)return s;let c=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(i);return`${s} ${c}`}static getTimezoneAsString(){let t=n=>String(Math.floor(n)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${t(Math.abs(r)/60)}:${t(Math.abs(r)%60)}`}};var Oa=b(w()),Dp="ft-app-info",Qr=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};Qr.eventName="authentication-change";var Bp={session:(e,t)=>{(0,Oa.deepEqual)(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>z.dispatchEvent(new Qr(t.payload)),0))}},z=Oa.FtReduxStore.get({name:Dp,reducers:Bp,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 k2=b(w()),Ea=function(e,t,r,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var c=e.length-1;c>=0;c--)(s=e[c])&&(i=(a<3?s(i):a>3?s(t,r,i):s(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},nC=(0,k2.applyMixinOnce)(Symbol("withDateFormat"),function(e){class t extends e{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(z)}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=>Ca.format(c,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Ea([(0,ys.property)({type:Boolean})],t.prototype,"useLongDateFormat",void 0),Ea([(0,ys.property)({type:Boolean})],t.prototype,"useDateTimeFormat",void 0),Ea([Ki({store:z.name,selector:r=>{var n,a;return(a=(n=r.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&a!==void 0?a:[]}})],t.prototype,"metadataDescriptors",void 0),Ea([Ki({store:z.name})],t.prototype,"uiLocale",void 0),t});var Up=b(P2(),1);var z2;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(z2||(z2={}));var I2;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(I2||(I2={}));var D2;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(D2||(D2={}));var B2;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(B2||(B2={}));var $2;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})($2||($2={}));var U2;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})(U2||(U2={}));var F2;(function(e){e.BOOKMARK__CREATE="BOOKMARK__CREATE",e.BOOKMARK__DELETE="BOOKMARK__DELETE",e.CASE_DEFLECTION__START="CASE_DEFLECTION__START",e.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",e.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",e.CHATBOT__RATE="CHATBOT__RATE",e.COLLECTION__CREATE="COLLECTION__CREATE",e.COLLECTION__UPDATE="COLLECTION__UPDATE",e.COLLECTION__DELETE="COLLECTION__DELETE",e.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",e.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",e.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",e.DOCUMENT__PRINT="DOCUMENT__PRINT",e.DOCUMENT__PROCESS="DOCUMENT__PROCESS",e.DOCUMENT__RATE="DOCUMENT__RATE",e.DOCUMENT__SEARCH="DOCUMENT__SEARCH",e.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",e.DOCUMENT__UNRATE="DOCUMENT__UNRATE",e.FEEDBACK__SEND="FEEDBACK__SEND",e.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",e.AI__RATE="AI__RATE",e.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",e.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",e.KHUB__PROCESS="KHUB__PROCESS",e.KHUB__SEARCH="KHUB__SEARCH",e.LABELS__DOWNLOAD="LABELS__DOWNLOAD",e.LINK__SHARE="LINK__SHARE",e.PAGE__DISPLAY="PAGE__DISPLAY",e.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",e.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",e.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",e.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",e.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",e.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",e.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",e.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",e.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",e.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",e.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",e.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",e.TOPIC__RATE="TOPIC__RATE",e.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",e.TOPIC__UNRATE="TOPIC__UNRATE",e.USER__LOGIN="USER__LOGIN",e.USER__LOGOUT="USER__LOGOUT",e.HEARTBEAT="HEARTBEAT"})(F2||(F2={}));var H2;(function(e){e.THIRD_PARTY="THIRD_PARTY",e.OFF_THE_GRID="OFF_THE_GRID",e.CONTENT_PACKAGER="CONTENT_PACKAGER",e.PAGES="PAGES",e.DESIGNED_READER="DESIGNED_READER"})(H2||(H2={}));var G2;(function(e){e.HOMEPAGE="HOMEPAGE",e.CUSTOM="CUSTOM",e.HEADER="HEADER",e.READER="READER",e.TOPIC_TEMPLATE="TOPIC_TEMPLATE",e.SEARCH="SEARCH",e.SEARCH_RESULT="SEARCH_RESULT",e.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",e.LINK_PREVIEW="LINK_PREVIEW",e.UD_VIEWER="UD_VIEWER",e.ASSET_VIEWER="ASSET_VIEWER"})(G2||(G2={}));var W2;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(W2||(W2={}));var V2;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(V2||(V2={}));var j2;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(j2||(j2={}));var K2;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(K2||(K2={}));var q2;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR",e.CUSTOM="CUSTOM"})(q2||(q2={}));var bs;(function(e){e.OPTIONAL="OPTIONAL",e.MANDATORY="MANDATORY"})(bs||(bs={}));var Z2;(function(e){e.ASC="ASC",e.DESC="DESC"})(Z2||(Z2={}));var Y2;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(Y2||(Y2={}));var vs;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(vs||(vs={}));var X2;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(X2||(X2={}));var Q2;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(Q2||(Q2={}));var J2;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.PERSONAL_BOOK="PERSONAL_BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(J2||(J2={}));var ed;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(ed||(ed={}));var td;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.HTML_PACKAGE="HTML_PACKAGE",e.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(td||(td={}));var xs;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(xs||(xs={}));var rd;(function(e){e.PLAIN_TEXT="PLAIN_TEXT",e.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",e.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(rd||(rd={}));var ve;(function(e){e.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",e.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",e.HTML_EXPORT_USER="HTML_EXPORT_USER",e.PDF_EXPORT_USER="PDF_EXPORT_USER",e.SAVED_SEARCH_USER="SAVED_SEARCH_USER",e.COLLECTION_USER="COLLECTION_USER",e.OFFLINE_USER="OFFLINE_USER",e.ANALYTICS_USER="ANALYTICS_USER",e.BETA_USER="BETA_USER",e.DEBUG_USER="DEBUG_USER",e.PRINT_USER="PRINT_USER",e.RATING_USER="RATING_USER",e.FEEDBACK_USER="FEEDBACK_USER",e.GENERATIVE_AI_USER="GENERATIVE_AI_USER",e.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",e.CONTENT_PUBLISHER="CONTENT_PUBLISHER",e.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",e.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",e.KHUB_ADMIN="KHUB_ADMIN",e.USERS_ADMIN="USERS_ADMIN",e.PORTAL_ADMIN="PORTAL_ADMIN",e.ADMIN="ADMIN"})(ve||(ve={}));var vt;(function(e){e.SEARCHES="SEARCHES",e.BOOKMARKS="BOOKMARKS",e.BOOKS="BOOKS",e.COLLECTIONS="COLLECTIONS"})(vt||(vt={}));var od;(function(e){e.UNAUTHENTICATED="UNAUTHENTICATED",e.USER_INCOMPLETE="USER_INCOMPLETE",e.MFA_REQUIRED="MFA_REQUIRED",e.AUTHENTICATED="AUTHENTICATED"})(od||(od={}));var nd;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(nd||(nd={}));var ad;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SUMMARY="SUMMARY",e.SEMANTIC_SEARCH="SEMANTIC_SEARCH",e.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",e.OTHER="OTHER"})(ad||(ad={}));var id;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SLOW="SLOW",e.OTHER="OTHER"})(id||(id={}));var sd;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(sd||(sd={}));var cd;(function(e){e.USER="USER",e.ASSISTANT="ASSISTANT"})(cd||(cd={}));var ld;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(ld||(ld={}));var dd;(function(e){e.HTML="HTML",e.MARKDOWN="MARKDOWN"})(dd||(dd={}));var fd;(function(e){e.MAP="MAP",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(fd||(fd={}));var $p={[ve.PERSONAL_BOOK_SHARE_USER]:[ve.PERSONAL_BOOK_USER],[ve.HTML_EXPORT_USER]:[ve.PERSONAL_BOOK_USER],[ve.PDF_EXPORT_USER]:[ve.PERSONAL_BOOK_USER],[ve.KHUB_ADMIN]:[ve.CONTENT_PUBLISHER],[ve.ADMIN]:[ve.KHUB_ADMIN,ve.USERS_ADMIN,ve.PORTAL_ADMIN,ve.BEHAVIOR_DATA_USER],[ve.GENERATIVE_AI_EXPORT_USER]:[ve.GENERATIVE_AI_USER]};function ud(e,t){return e===t||($p[e]??[]).some(r=>ud(r,t))}function pd(e,t){return e==null?!1:(Array.isArray(e)?e:Array.isArray(e.roles)?e.roles:Array.isArray(e.profile?.roles)?e.profile.roles:[]).some(n=>ud(n,t))}var ka=b(w());var Ss=b(w());var Jr=class e{static get(t){let{baseUrl:r,apiIntegrationIdentifier:n}=z.getState(),a=t??n;if(r&&a&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,a,!0)}static await(t){return new Promise(r=>{let n=e.get(t);if(n)r(n);else{let a=z.subscribe(()=>{n=e.get(t),n&&(a(),r(n))})}})}};var Ra=class{constructor(t){this.overrideApi=t}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:Jr.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Jr.await()}};var rt=class extends Ra{constructor(t=!0,r){var n;super(r),this.sortObjectFields=(i,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([c],[f])=>c.localeCompare(f)));let a=this.constructor;a.commonCache=(n=a.commonCache)!==null&&n!==void 0?n:new Ss.CacheRegistry,this.cache=t?a.commonCache:new Ss.CacheRegistry}clearCache(){this.cache.clearAll()}hash(t){return String(Array.from(JSON.stringify(t,this.sortObjectFields)).reduce((r,n)=>0|31*r+n.charCodeAt(0),0))}};var wa=class extends rt{async listMySearches(){let{session:t}=z.getState();return pd(t,ve.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),5*60*1e3):[]}};var _a=class extends rt{async listMyBookmarks(){let t=z.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),5*60*1e3):[]}};var Na=class extends rt{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetCount(t){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${t}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(t){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${t}`),this.CACHE_DURATION)}isAuthenticated(){let t=z.getState().session;return!!t?.sessionAuthenticated}};var Ta=class extends rt{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 t=z.getState().session;return!!t?.sessionAuthenticated}};var Fp="ft-user-assets",Hp={setAssetCount:(e,t)=>{let{userAssetType:r,count:n}=t.payload.assetCount;e.assetCounts.allAsset[r]=n},clearAssetCount:e=>{Object.values(vt).forEach(t=>{e.assetCounts.allAsset[t]=void 0})},setBookmarkCountByMap:(e,t)=>{let r=t.payload.mapId;e.assetCounts.bookmarkByMap[r]=t.payload.count},clearBookmarkCountByMap:e=>{e.assetCounts.bookmarkByMap={}},addAsset:(e,t)=>{let{assetType:r,mapId:n,asset:a}=t.payload;Os(e,r,[...Cs(e,r),a]),hd(e,r,1,n),md(e,a)},editAsset:(e,t)=>{let{assetType:r,asset:n}=t.payload;Os(e,r,Cs(e,r).map(a=>a.id===n.id?n:a)),md(e,n)},removeAsset:(e,t)=>{let{assetType:r,mapId:n,assetId:a}=t.payload;Os(e,r,Cs(e,r).filter(i=>i.id!==a)),hd(e,r,-1,n)}},gd={[vt.SEARCHES]:"savedSearches",[vt.BOOKMARKS]:"bookmarks",[vt.BOOKS]:void 0,[vt.COLLECTIONS]:void 0},Cs=(e,t)=>{var r;let n=gd[t];return n?(r=e[n])!==null&&r!==void 0?r:[]:[]},Os=(e,t,r)=>{let n=gd[t];n&&(e[n]=r)},hd=(e,t,r,n)=>{let a=e.assetCounts.allAsset[t];if(a!==void 0&&(e.assetCounts.allAsset[t]=Math.max(0,a+r),t===vt.BOOKMARKS&&n)){let i=e.assetCounts.bookmarkByMap[n];e.assetCounts.bookmarkByMap[n]=Math.max(0,i+r)}},md=(e,t)=>{let r=e.assetLabels.map(a=>a.title),n=t.labels.filter(a=>!r.includes(a)).map(a=>({title:a}));e.assetLabels.push(...n)},ct=ka.FtReduxStore.get({name:Fp,reducers:Hp,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(vt).map(e=>[e,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Es=class{constructor(t=new Na,r=new Ta){this.assetCountsService=t,this.assetLabelsService=r,this.currentSession=z.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new _a,this.savedSearchesService=new wa,z.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:r}=z.getState();(0,ka.deepEqual)((t=this.currentSession)===null||t===void 0?void 0:t.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),ct.actions.clearAssetCount(),ct.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),ct.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),ct.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();ct.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let t=await this.assetLabelsService.getUserAssetLabels();ct.actions.assetLabels(t)}async loadAssetCount(t){let r=await this.assetCountsService.getUserAssetCount(t);r&&ct.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(t){let r=await this.assetCountsService.getUserBookmarkCountByMap(t);r&&ct.actions.setBookmarkCountByMap({count:r.count,mapId:t})}async reloadAssetCount(t){this.assetCountsService.clearCache();let r=Object.keys(ct.getState().assetCounts.bookmarkByMap).length!==0;t===vt.BOOKMARKS&&r&&ct.actions.clearBookmarkCountByMap(),ct.getState().assetCounts.allAsset[t]!==void 0&&await this.loadAssetCount(t)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){let r=!((t=this.currentSession)===null||t===void 0)&&t.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;ct.actions.bookmarks(r)}}},Gp=new Es;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Gp);var Ls=class{addCommand(t,r=!1){z.commands.add(t,r)}consumeCommand(t){return z.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new Ls;var xt=b(w());var yd,zo=class extends CustomEvent{constructor(t){super("ft-i18n-context-loaded",{detail:t})}},Wp=Symbol("clearAfterUnitTest"),Ma=class extends(0,xt.withEventBus)(rt){constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[yd]=()=>{this.defaultMessages={},this.cache=new xt.CacheRegistry,this.listeners={}},this.currentUiLocale=z.getState().uiLocale,z.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=z.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){let r=t.name.toLowerCase();this.cache.setFinal(r,t),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,r){var n;if(t=t.toLowerCase(),r&&Object.keys(r).length>0){let a={...(n=this.defaultMessages[t])!==null&&n!==void 0?n:{},...r};(0,xt.deepEqual)(this.defaultMessages[t],a)||(this.defaultMessages[t]=a,await this.notify(t))}return this.fetchContext(t)}resolveContext(t){var r,n;return this.fetchContext(t),(n=(r=this.cache.getNow(t))===null||r===void 0?void 0:r.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(t,r){let n=t.toLowerCase();return this.resolveContext(n)[r]}resolveMessage(t,r,...n){var a;let i=t.toLowerCase(),s=this.resolveContext(i);return new xt.ParametrizedLabelResolver((a=this.defaultMessages[i])!==null&&a!==void 0?a:{},s).resolve(r,...n)}async fetchContext(t){let r=!this.cache.has(t),n;try{n=await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t)),r&&await this.notify(t)}catch(a){!(a instanceof xt.CanceledPromiseError)&&r&&console.error(a)}return n}subscribe(t,r){var n;return t=t.toLowerCase(),this.listeners[t]=(n=this.listeners[t])!==null&&n!==void 0?n:new Set,this.listeners[t].add(r),()=>{var a;return(a=this.listeners[t])===null||a===void 0?void 0:a.delete(r)}}async notifyAll(){let t=Object.keys(this.listeners);document.body.dispatchEvent(new zo({loadedContexts:t})),this.dispatchEvent(new zo({loadedContexts:t})),await Promise.all(t.map(r=>this.notify(r,!1)))}async notify(t,r=!0){r&&(document.body.dispatchEvent(new zo({loadedContexts:[t]})),this.dispatchEvent(new zo({loadedContexts:[t]}))),this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(n=>(0,xt.delay)(0).then(()=>n()).catch(()=>null)))}};yd=Wp;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Ma{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Ma{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var Io=window.FluidTopicsI18nService,Pa=window.FluidTopicsCustomI18nService;var bd=b(w()),As=class{highlightHtml(t,r,n){(0,bd.highlightHtml)(t,r,n)}};window.FluidTopicsHighlightHtmlService=new As;var vd=b(w());var Rs=class{isDate(t){var r,n,a,i;return(i=(a=((n=(r=z.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(c=>c.key===t))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1}format(t,r){var n,a,i;if(t==null)return"";try{return vd.DateFormatter.format(t,(n=r?.locale)!==null&&n!==void 0?n:z.getState().uiLocale,(a=r?.longFormat)!==null&&a!==void 0?a:!1,(i=r?.withTime)!==null&&i!==void 0?i:!1)}catch(s){throw console.error(`Date ${JSON.stringify(t)} is not valid`,s),s}}};window.FluidTopicsDateService=new Rs;var xd=b(w());var bn=class{static get(t,r){var n,a;let i=z.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 xd.SearchPlaceConverter(i.baseUrl,t??20,i.searchInAllLanguagesAllowed,r??`${s}-${c}`)}};var ws=class{urlToSearchRequest(t){return bn.get().parse(t)}searchRequestToUrl(t){return bn.get().serialize(t)}};window.FluidTopicsUrlService=new ws;var Lr=b(w());var eo=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{currentItem:t}})}};eo.eventName="change";var _s=class{itemName(t){return`fluid-topics-history-item-${t}`}get(t){let r=sessionStorage.getItem(this.itemName(t));return r?JSON.parse(r):void 0}set(t,r){sessionStorage.setItem(this.itemName(t),JSON.stringify(r))}},Sd=new _s;var za=class e extends Lr.WithEventBus{static build(){return new e(window.history,Sd,()=>window.location,!1)}constructor(t,r,n,a){var i,s;super(),this.history=t,this.historyStorage=r,this.windowLocation=n,this.states=[],this.realPushState=t.pushState,this.realReplaceState=t.replaceState,this.initialIndex=(s=(i=t.state)===null||i===void 0?void 0:i.index)!==null&&s!==void 0?s:t.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(a)}setCurrentState(t,r=!1){let n=r&&this.currentIndex===t.index-1;this.currentState={...this.buildCurrentState(),...t},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,Lr.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new eo(this.currentItem())),0)}installProxies(){let t=r=>(n,a,[i,s,c])=>{let f=r(),u={...f===this.currentIndex?this.currentState:void 0,...i,index:f,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:t(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:t(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",t=>this.setCurrentState(t.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(t){for(let r=this.history.length-1;r>=0;r--)t?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(t){var r;let n={...this.buildCurrentState(),...t,index:this.currentIndex,title:(r=t?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(t){this.addEventListener(eo.eventName,t)}removeHistoryChangeListener(t){this.removeEventListener(eo.eventName,t)}currentItem(){return(0,Lr.deepCopy)(this.currentState)}back(){let t=this.previousDifferentMajorPosition();t>=0?this.history.go(t-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,Lr.deepCopy)(this.states[this.previousDifferentMajorPosition()])}previousDifferentMajorPosition(){let t=this.currentIndex>0?this.currentIndex-1:0;for(;t>0&&!this.isDifferentMajorState(t);)t--;return t}forward(){let t=this.nextMajorPosition();t&&t<this.states.length?this.history.go(t-this.currentIndex):this.history.forward()}forwardItem(){let t=this.nextMajorPosition();if(t)return(0,Lr.deepCopy)(this.states[t])}nextMajorPosition(){let t=this.currentIndex;if(!(t>=this.states.length)){do t++;while(t<this.states.length&&!this.isDifferentMajorState(t));return this.getHigherPositionInTheSameState(t)}}getHigherPositionInTheSameState(t){var r;let n=(r=this.states[t])===null||r===void 0?void 0:r.majorStateId;if(!n)return t;let a=t,i=t+1;for(;this.states.length>i&&!this.isDifferentMajorState(i,n);)this.hasState(i)&&(a=i),i++;return a}buildCurrentState(){var t,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(t=this.history.state)===null||t===void 0?void 0:t.title)!==null&&r!==void 0?r:document.title}}hasState(t){return this.states[t]!=null}isDifferentMajorState(t,r){var n;if(!this.hasState(t))return!1;let a=r??this.currentState.majorStateId,i=(n=this.states[t])===null||n===void 0?void 0:n.majorStateId;return i==null||i!=a}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=za.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),addHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(e),removeHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(e)});var Cd=b($());var Od=Cd.css`
|
|
605
605
|
`;var Ld=b($()),De=b(j()),Mt=b(w());function Ed(e,t){let{authenticationRequired:r,session:n}=z.getState();return r&&!n?.sessionAuthenticated?Promise.resolve(t):e()}var Oe=function(e,t,r,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var c=e.length-1;c>=0;c--)(s=e[c])&&(i=(a<3?s(i):a>3?s(t,r,i):s(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},te=class extends Mt.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=()=>Jr.get(),this.authenticationRequired=!1,this.messageContexts=[],this.cache=new Mt.CacheRegistry,this.cleanSessionDebouncer=new Mt.Debouncer,this.reloadConfiguration=()=>{this.cache.clear("availableContentLocales"),this.updateAvailableContentLocales()}}render(){return Ld.html`
|
|
606
606
|
<slot></slot>
|
|
607
607
|
`}connectedCallback(){super.connectedCallback(),z.addEventListener(Qr.eventName,this.reloadConfiguration)}disconnectedCallback(){z.addEventListener(Qr.eventName,this.reloadConfiguration),super.disconnectedCallback()}update(t){var r,n,a,i,s,c,f;super.update(t),t.has("baseUrl")&&(z.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&z.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("apiIntegrationAppVersion")&&z.actions.apiIntegrationAppVersion(this.apiIntegrationAppVersion),t.has("uiLocale")&&z.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&z.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&z.actions.noCustom(this.noCustom),t.has("editorMode")&&z.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&z.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&z.actions.session(this.session),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(u=>Io.addContext(u)),t.has("openExternalDocumentInNewTab")&&z.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&z.actions.navigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&z.actions.forcedOffline(this.forcedOffline),t.has("localesConfiguration")&&(z.actions.defaultLocales((r=this.localesConfiguration)===null||r===void 0?void 0:r.defaultLocales),z.actions.availableUiLocales((a=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&a!==void 0?a:[]),z.actions.searchInAllLanguagesAllowed((s=(i=this.localesConfiguration)===null||i===void 0?void 0:i.allLanguagesAllowed)!==null&&s!==void 0?s:!1)),t.has("authenticationRequired")&&z.actions.authenticationRequired(this.authenticationRequired),t.has("availableContentLocales")&&z.actions.availableContentLocales((f=(c=this.availableContentLocales)===null||c===void 0?void 0:c.contentLocales)!==null&&f!==void 0?f:[]),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration(),this.availableContentLocales==null&&this.updateAvailableContentLocales())}async updateSession(){this.session=await this.cache.get("session",async()=>{let t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},t.idleTimeoutInMillis),t})}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",()=>Ed(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}))}};te.elementDefinitions={};te.styles=Od;Oe([(0,De.property)()],te.prototype,"baseUrl",void 0);Oe([(0,De.property)()],te.prototype,"apiIntegrationIdentifier",void 0);Oe([(0,De.property)()],te.prototype,"apiIntegrationAppVersion",void 0);Oe([(0,De.property)()],te.prototype,"uiLocale",void 0);Oe([(0,Mt.jsonProperty)(null)],te.prototype,"availableUiLocales",void 0);Oe([(0,Mt.jsonProperty)(null)],te.prototype,"metadataConfiguration",void 0);Oe([(0,De.property)({type:Boolean})],te.prototype,"editorMode",void 0);Oe([(0,De.property)({type:Boolean})],te.prototype,"noCustom",void 0);Oe([(0,De.property)({type:Boolean})],te.prototype,"openExternalDocumentInNewTab",void 0);Oe([(0,De.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],te.prototype,"noCustomComponent",void 0);Oe([(0,De.property)({type:Boolean})],te.prototype,"withManualResources",void 0);Oe([(0,De.property)({type:Boolean})],te.prototype,"navigatorOnline",void 0);Oe([(0,De.property)({type:Boolean})],te.prototype,"forcedOffline",void 0);Oe([(0,De.property)({type:Object})],te.prototype,"apiProvider",void 0);Oe([(0,De.property)({type:Boolean})],te.prototype,"authenticationRequired",void 0);Oe([(0,Mt.jsonProperty)([])],te.prototype,"messageContexts",void 0);Oe([(0,Mt.jsonProperty)(void 0)],te.prototype,"session",void 0);Oe([(0,De.state)()],te.prototype,"localesConfiguration",void 0);Oe([(0,De.state)()],te.prototype,"availableContentLocales",void 0);var Ad=b(w());(0,Ad.customElement)("ft-app-context")(te);var Rd=b(j());var Ns=class{fromLocalizableLabel(t){return t.type=="PLAIN_TEXT"?{message:t.text}:{key:t.key,custom:t.type=="LOCALIZED_CUSTOM",context:t.context,message:t.key}}fromAttribute(t){if(t!=null)try{return JSON.parse(t)}catch{if(this.isI18nKey(t)){let[r,n]=t.split(".");return{context:r,key:n,custom:r!=="officialContext",message:""}}return{message:t}}}toAttribute(t){if(t!=null)return JSON.stringify(t)}isI18nKey(t){return t.match(/^[\w-]+\.[\w-]+$/)}},Do=new Ns;var Vp=function(e,t,r,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var c=e.length-1;c>=0;c--)(s=e[c])&&(i=(a<3?s(i):a>3?s(t,r,i):s(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},xn=Symbol("i18nAttributes"),wd=Symbol("i18nListAttributes"),_d=Symbol("i18nProperties"),Ia=Symbol("i18nContexts"),vn=Symbol("i18nUnsubs"),$o=(0,Bo.applyMixinOnce)(Symbol("withI18n"),function(e){var t,r;class n extends e{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[t]=new Map,this[r]=new Map}getI18nService(i){return i??this.useCustomMessageContexts?Pa:Io}i18n(i){let{context:s,key:c,message:f}=i,{custom:u,args:m,argsProvider:g}=i;if(s&&c){this.hasI18nContext(s)||this.addI18nContext(s,void 0,u);let y=m??(g?g(this):[]);return this.getI18nService(u).resolveMessage(s,c,...y)}return f}async awaitI18n(i){let{context:s,custom:c}=i;return s&&await this.getI18nService(c).prepareContext(s),this.i18n(i)}customI18n(i,s){if(Do.isI18nKey(i)){let[c,f]=i.split(".");return this.i18n({custom:!0,context:c,key:f,...s})||i}return i}firstUpdated(i){super.firstUpdated(i),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(i){super.update(i),this.updateI18nAttributes((s,c,f)=>i.has(c)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(i){this.updateI18nAttributes((s,c,f)=>{var u;return((u=f?.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 f=this,u=(m,g,y)=>y?.context&&y.key&&i(m,g,y)?{...y,message:this.i18n({context:y.context,key:y.key,custom:y.custom,...m})}:y;(s=this[xn])===null||s===void 0||s.forEach((m,g)=>f[g]=u(m,g,f[g])),(c=this[wd])===null||c===void 0||c.forEach((m,g)=>{var y;return f[g]=(y=f[g])===null||y===void 0?void 0:y.map(S=>u(m,g,S))})}updateI18nProperties(i){var s;(s=this[_d])===null||s===void 0||s.forEach((c,f)=>{i(c,f)&&(this[f]=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 f=(typeof i=="string"?i:i.name).toLowerCase();c=typeof i=="string"?c:i.custom,this[Ia].set(f,{isCustomContext:c}),this[vn].has(f)||this[vn].set(f,this.getI18nService(c).subscribe(f,()=>this.onI18nUpdate(f))),this.getI18nService(c).prepareContext(f,s)}hasI18nContext(i){return this[Ia].has(i.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Ia].forEach((i,s)=>this.addI18nContext(s,void 0,i.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[vn].forEach(i=>i()),this[vn].clear()}}return t=Ia,r=vn,Vp([(0,Rd.property)({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}),Da=class extends $o(Bo.FtLitElement){},Ba=class extends $o(Bo.FtLitElementRedux){};var Nd=b(w());var Ts=class{fromAttribute(t){if(!t)return[];try{let r=JSON.parse(t);return Array.isArray(r)?r.map(n=>typeof n=="string"?Do.fromAttribute(n):n):[]}catch{return[]}}toAttribute(t){if(t!=null)return JSON.stringify(t)}},jp=new Ts;var Td=(e,t)=>(r,n)=>{var a;r.constructor.createProperty(n,{type:Object,hasChanged:Nd.hasChanged,converter:Do,...t}),r[xn]=(a=r[xn])!==null&&a!==void 0?a:new Map,r[xn].set(n,e??{})};var $a=class e{static build(t){return new e(t)}static buildCustom(t){return new e(t,!0)}static fromGwt(t){return new e(t)}get service(){return this.custom?Pa:Io}constructor(t,r=!1){this.name=t,this.custom=r,this.properties=new Proxy({},{get:(n,a)=>{let i=a;return s=>({context:this.name,key:i,custom:this.custom,args:typeof s=="function"?void 0:s,argsProvider:typeof s=="function"?s:void 0})}}),this.messages=new Proxy({},{get:(n,a)=>(...i)=>this.service.resolveMessage(this.name,a,...i)}),this.rawMessages=new Proxy({},{get:(n,a)=>this.service.resolveRawMessage(this.name,a)}),this.keys=new Proxy({},{get:(n,a)=>()=>a}),this.attributes=new Proxy({},{get:(n,a)=>()=>({context:this.name,key:a,message:this.service.resolveRawMessage(this.name,a)})})}};var kd=b($());var Md=kd.css`
|
|
@@ -624,7 +624,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
624
624
|
</div>
|
|
625
625
|
</div>
|
|
626
626
|
</div>
|
|
627
|
-
`}setupFor(t){this.eventsTarget!==t&&(this.removeHandlers(),this.eventsTarget=t,this.eventsTarget.addEventListener("mouseover",this.onHover,{passive:!0}),this.eventsTarget.addEventListener("mouseleave",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("focusin",this.onFocusIn,{passive:!0}),this.eventsTarget.addEventListener("focusout",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("touchstart",this.onTouch,{passive:!0}),this.eventsTarget.addEventListener("click",this.onClick,{passive:!0}))}removeHandlers(){this.eventsTarget&&(this.eventsTarget.removeEventListener("mouseover",this.onHover),this.eventsTarget.removeEventListener("mouseleave",this.onOut),this.eventsTarget.removeEventListener("focusin",this.onFocusIn),this.eventsTarget.removeEventListener("focusout",this.onOut),this.eventsTarget.removeEventListener("touchstart",this.onTouch),this.eventsTarget.removeEventListener("click",this.onClick),this.eventsTarget=void 0)}defaultSetup(){this.container&&this.setupFor(this.container)}updated(t){var r,n;t.has("visible")&&(this.visible?(this.resetTooltipContent(),(r=this.tooltip)===null||r===void 0||r.showPopover()):(n=this.tooltip)===null||n===void 0||n.hidePopover()),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some(r=>t.has(r))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(t){this.visible=!0,t!=null&&await this.hideDebounce.run(()=>{this.hide()},t)}async showTemporaryText(t,r){let n=this.manual;this.manual=!0;let a=this.text;this.text={message:t},await this.show(r),this.text=a,this.manual=n}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var t;return((t=this.slotNodes)!==null&&t!==void 0?t:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&$1(this.slottedElement,this.tooltip,{placement:this.position,strategy:"fixed"}).then(({x:t,y:r})=>{this.tooltip&&(this.tooltip.style.transform=`translate(${t}px,${r}px)`)}),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${St.designSystemVariables.transitionDuration}, left ${St.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}isIgnored(t){return this.manual||(0,St.eventPathContainsMatchingElement)(t,this.ignoreMatchingElements,this.eventsTarget)}};Ee.elementDefinitions={"ft-typography":Q};Ee.styles=d1;zt([Td()],Ee.prototype,"text",void 0);zt([(0,Ct.property)({type:Boolean})],Ee.prototype,"manual",void 0);zt([(0,Ct.property)({type:Boolean})],Ee.prototype,"inline",void 0);zt([(0,St.numberProperty)()],Ee.prototype,"delay",void 0);zt([(0,Ct.property)()],Ee.prototype,"position",void 0);zt([(0,St.jsonProperty)([])],Ee.prototype,"ignoreMatchingElements",void 0);zt([(0,Ct.queryAssignedNodes)()],Ee.prototype,"slotNodes",void 0);zt([(0,Ct.query)(".ft-tooltip--container")],Ee.prototype,"container",void 0);zt([(0,Ct.query)(".ft-tooltip")],Ee.prototype,"tooltip",void 0);zt([(0,Ct.query)(".ft-tooltip--content")],Ee.prototype,"tooltipContent",void 0);zt([(0,Ct.state)()],Ee.prototype,"visible",void 0);var Id=b(w());(0,Id.customElement)("ft-tooltip")(Ee);var Ot;(function(e){e.fluid_topics="fluid-topics",e.file_format="file-format",e.material="material"})(Ot||(Ot={}));var Cn=b($()),Ar=b(j()),Bd=b(w()),$d=b(ks());var lt;(function(e){e.ADD_TO_PBK="",e.ALERT="",e.ADD_ALERT="",e.BACK_TO_SEARCH="",e.ADD_BOOKMARK="",e.BOOKMARK="",e.BOOKS="",e.MENU="",e.DOWNLOAD="",e.EDIT="",e.FEEDBACK="",e.HOME="",e.MODIFY_PBK="",e.SCHEDULED="",e.SEARCH="",e.EXPORT="",e.TOC="",e.WRITE_UGC="",e.TRASH="",e.USER="",e.EXTLINK="",e.CALENDAR="",e.CLOUD_SLASH="",e.BOOK="",e.DOWNLOAD_PLAIN="",e.CHECK="",e.STAR_PLAIN="",e.TOPICS="",e.DISC="",e.CIRCLE="",e.SHARED="",e.SORT_UNSORTED="",e.SORT_UP="",e.SORT_DOWN="",e.WORKING="",e.CLOSE="",e.ZOOM_OUT="",e.ZOOM_IN="",e.ZOOM_REALSIZE="",e.ZOOM_FULLSCREEN="",e.ADMIN_RESTRICTED="",e.ADMIN="",e.ADMIN_KHUB="",e.ADMIN_THEME="",e.ADMIN_USERS="",e.WARNING="",e.CONTEXT="",e.SEARCH_HOME="",e.STEPS="",e.ICON_EXPAND="",e.ICON_COLLAPSE="",e.INFO="",e.MINUS_PLAIN="",e.PLUS_PLAIN="",e.FACET_HAS_DESCENDANT="",e.TRIANGLE_BOTTOM="",e.TRIANGLE_LEFT="",e.TRIANGLE_RIGHT="",e.TRIANGLE_TOP="",e.THIN_ARROW="",e.SIGN_IN="",e.LOGOUT="",e.TRANSLATE="",e.CLOSE_PLAIN="",e.CHECK_PLAIN="",e.ARTICLE="",e.COLUMNS="",e.ANALYTICS="",e.COLLECTIONS="",e.ARROW_DOWN="",e.ARROW_LEFT="",e.ARROW_RIGHT="",e.ARROW_UP="",e.SEARCH_IN_PUBLICATION="",e.COPY_TO_CLIPBOARD="",e.SHARED_PBK="",e.ATTACHMENTS="",e.STRIPE_ARROW_LEFT="",e.STRIPE_ARROW_RIGHT="",e.FILTERS="",e.DOT="",e.MINUS="",e.PLUS="",e.MAILS_AND_NOTIFICATIONS="",e.SAVE="",e.LOCKER="",e.ADMIN_INTEGRATION="",e.SYNC="",e.TAG="",e.BOOK_PLAIN="",e.UPLOAD="",e.CLOUD="",e.TAG_PLAIN="",e.ACCOUNT_SETTINGS="",e.PRINT="",e.DEFAULT_ROLES="",e.SHORTCUT_MENU="",e.RELATIVES_PLAIN="",e.RELATIVES="",e.PAUSE="",e.PLAY="",e.ADMIN_PORTAL="",e.STAR="",e.THUMBS_DOWN="",e.THUMBS_DOWN_PLAIN="",e.THUMBS_UP="",e.THUMBS_UP_PLAIN="",e.FEEDBACK_PLAIN="",e.RATE_PLAIN="",e.RATE="",e.OFFLINE_SETTINGS="",e.MY_COLLECTIONS="",e.THIN_ARROW_LEFT="",e.THIN_ARROW_RIGHT="",e.RESET="",e.MY_LIBRARY="",e.UNSTRUCTURED_DOC="",e.CONTEXTUAL="",e.THIN_ARROW_UP="",e.ARROW_RIGHT_TO_LINE="",e.DESKTOP="",e.TABLET_LANDSCAPE="",e.TABLET_PORTRAIT="",e.MOBILE_LANDSCAPE="",e.MOBILE_PORTRAIT="",e.DIAGRAM_SUNBURST="",e.DIAGRAM_SANKEY="",e.COMMENT_QUESTION="",e.COMMENT_QUESTION_PLAIN="",e.MESSAGE_BOT="",e.CHART_SIMPLE="",e.BARS_PROGRESS="",e.BOOK_OPEN_GEAR="",e.BOOK_OPEN_GEAR_SLASH="",e.LINE_CHART="",e.STACKED_CHART="",e.CHART_BAR_STACKED="",e.CHART_BAR_GROUPED="",e.EYE_SLASH="",e.X_MARK="",e.EXPAND_WIDE="",e.PIP="",e.PIP_WIDE="",e.LIFE_RING="",e.GLOBE="",e.PIGGY_BANK="",e.EXTLINK_LIGHT="",e.CLONE="",e.CLONE_LINK_SIMPLE="",e.CHART_BAR_NORMALIZED="",e.CONSUMER="",e.OCTAGON_XMARK="",e.HOURGLASS_HALF="",e.CLOCK="",e.CLOCK_THREE="",e.CALENDAR_DAY="",e.COMPUTER_MOUSE_MAGNIFYING_GLASS="",e.WAND_MAGIC_SPARKLES="",e.PAPER_PLANE="",e.ARROW_ROTATE_RIGHT="",e.ARROWS_ROTATE="",e.ALIGN_RIGHT="",e.FORMAT_CLEAR="",e.ALIGN_CENTER="",e.ALIGN_LEFT="",e.PALETTE="",e.BOLD="",e.ITALIC="",e.UNDERLINE="",e.STRIKETHROUGH="",e.LINK_SIMPLE_SLASH="",e.LINK_SIMPLE="",e.ROUTE="",e.CIRCLE_USER_SLASH="",e.CIRCLE_USER_CHECK="",e.LIST_MAGNIFYING_GLASS="",e.MEDAL="",e.THUMBS_UP_THUMBS_DOWN_SOLID="",e.ARROW_TURN_DOWN_RIGHT="",e.FLASK="",e.LOCK_KEYHOLE_OPEN_SOLID="",e.HOURGLASS_END="",e.CIRCLE_QUESTION="",e.GRIP_LINES_SOLID="",e.TRANSLATE_SPARKLE_SOLID="",e.CODE="",e.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="",e.PAPER_PLANE_SLASH="",e.COMPRESS="",e.EXPAND="",e.ARROW_ROTATE_LEFT="",e.EYE="",e.SHARE="󨃱",e.MOBILE_SMALL="",e.SPARKLES="",e.HAND_SOLID="",e.CLOCK_SOLID="",e.CONTEXT_MENU_CURSOR="",e.LANGUAGE_SLASH="",e.MAGNIFYING_GLASS_FLOPPY_DISK="",e.CABINET_FILING_FLOPPY_DISK="",e.BOOKMARK_SLASH="",e.CIRCLE_PAUSE="",e.CIRCLE_PLAY="",e.CIRCLE_STOP_PLAIN="",e.CIRCLE_ARROW_DOWN="",e.CIRCLE_ARROW_DOWN_SLASH="",e.SHARE_NODES="",e.BELL="",e.BELL_SLASH="",e.FILE="",e.HAND="",e.SQUARE_INFO_SOLID="",e.FILE_CODE="",e.BOX_CODE="",e.TOPICS_SOLID="",e.PHOTO_FILM_REGULAR="",e.HYPHEN_SOLID="",e.CROSSHAIRS_REGULAR="",e.PERSON_CHALKBOARD_REGULAR=""})(lt||(lt={}));var _;(function(e){e.UNKNOWN="",e.ABW="",e.AUDIO="",e.AVI="",e.CHM="",e.CODE="",e.CSV="",e.DITA="",e.EPUB="",e.EXCEL="",e.FLAC="",e.GIF="",e.GZIP="",e.HTML="",e.IMAGE="",e.JPEG="",e.JSON="",e.M4A="",e.MOV="",e.MP3="",e.MP4="",e.OGG="",e.PDF="",e.PNG="",e.POWERPOINT="",e.RAR="",e.STP="",e.TEXT="",e.VIDEO="",e.WAV="",e.WMA="",e.WORD="",e.XML="",e.YAML="",e.ZIP=""})(_||(_={}));var HE=new Map([...["abw"].map(e=>[e,_.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(e=>[e,_.AUDIO]),...["avi"].map(e=>[e,_.AVI]),...["chm","xhs"].map(e=>[e,_.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(e=>[e,_.CODE]),...["csv"].map(e=>[e,_.CSV]),...["dita","ditamap","ditaval"].map(e=>[e,_.DITA]),...["epub"].map(e=>[e,_.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(e=>[e,_.EXCEL]),...["flac"].map(e=>[e,_.FLAC]),...["gif"].map(e=>[e,_.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(e=>[e,_.GZIP]),...["html","htm","xhtml"].map(e=>[e,_.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(e=>[e,_.IMAGE]),...["jpeg","jpg","jpe"].map(e=>[e,_.JPEG]),...["json"].map(e=>[e,_.JSON]),...["m4a","m4p"].map(e=>[e,_.M4A]),...["mov","qt"].map(e=>[e,_.MOV]),...["mp3"].map(e=>[e,_.MP3]),...["mp4","m4v"].map(e=>[e,_.MP4]),...["ogg","oga"].map(e=>[e,_.OGG]),...["pdf","ps"].map(e=>[e,_.PDF]),...["png"].map(e=>[e,_.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(e=>[e,_.POWERPOINT]),...["rar"].map(e=>[e,_.RAR]),...["stp"].map(e=>[e,_.STP]),...["txt","rtf","md","mdown"].map(e=>[e,_.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(e=>[e,_.VIDEO]),...["wav"].map(e=>[e,_.WAV]),...["wma"].map(e=>[e,_.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(e=>[e,_.WORD]),...["xml","xsl","rdf"].map(e=>[e,_.XML]),...["yaml","yml","x-yaml"].map(e=>[e,_.YAML]),...["zip"].map(e=>[e,_.ZIP])]);var GE={[_.ABW]:"#91ABC6",[_.AUDIO]:"#1795E3",[_.AVI]:"#E63324",[_.CHM]:"#71C3EB",[_.CODE]:"#71C3EB",[_.CSV]:"#1F7345",[_.DITA]:"#71C3EB",[_.EPUB]:"#85B926",[_.EXCEL]:"#1F7345",[_.FLAC]:"#1795E3",[_.GIF]:"#59B031",[_.GZIP]:"#F8AB36",[_.HTML]:"#71C3EB",[_.IMAGE]:"#59B031",[_.JPEG]:"#59B031",[_.JSON]:"#71C3EB",[_.M4A]:"#1795E3",[_.MOV]:"#E63324",[_.MP3]:"#1795E3",[_.MP4]:"#E63324",[_.OGG]:"#1795E3",[_.PDF]:"#E44948",[_.PNG]:"#59B031",[_.POWERPOINT]:"#B54A2B",[_.RAR]:"#F8AB36",[_.STP]:"#3764B1",[_.TEXT]:"#3162AB",[_.UNKNOWN]:"#999999",[_.VIDEO]:"#E63324",[_.WAV]:"#1795E3",[_.WMA]:"#1795E3",[_.WORD]:"#3162AB",[_.XML]:"#71C3EB",[_.YAML]:"#71C3EB",[_.ZIP]:"#F8AB36"};var On=function(e,t,r,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var c=e.length-1;c>=0;c--)(s=e[c])&&(i=(a<3?s(i):a>3?s(t,r,i):s(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},Le=class extends Bd.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=Cn.nothing}render(){let t=this.variant&&Object.values(Ot).includes(this.variant)?this.variant:Ot.fluid_topics,r=t!==Ot.material||!!this.value;return Cn.html`
|
|
627
|
+
`}setupFor(t){this.eventsTarget!==t&&(this.removeHandlers(),this.eventsTarget=t,this.eventsTarget.addEventListener("mouseover",this.onHover,{passive:!0}),this.eventsTarget.addEventListener("mouseleave",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("focusin",this.onFocusIn,{passive:!0}),this.eventsTarget.addEventListener("focusout",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("touchstart",this.onTouch,{passive:!0}),this.eventsTarget.addEventListener("click",this.onClick,{passive:!0}))}removeHandlers(){this.eventsTarget&&(this.eventsTarget.removeEventListener("mouseover",this.onHover),this.eventsTarget.removeEventListener("mouseleave",this.onOut),this.eventsTarget.removeEventListener("focusin",this.onFocusIn),this.eventsTarget.removeEventListener("focusout",this.onOut),this.eventsTarget.removeEventListener("touchstart",this.onTouch),this.eventsTarget.removeEventListener("click",this.onClick),this.eventsTarget=void 0)}defaultSetup(){this.container&&this.setupFor(this.container)}updated(t){var r,n;t.has("visible")&&(this.visible?(this.resetTooltipContent(),(r=this.tooltip)===null||r===void 0||r.showPopover()):(n=this.tooltip)===null||n===void 0||n.hidePopover()),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some(r=>t.has(r))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(t){this.visible=!0,t!=null&&await this.hideDebounce.run(()=>{this.hide()},t)}async showTemporaryText(t,r){let n=this.manual;this.manual=!0;let a=this.text;this.text={message:t},await this.show(r),this.text=a,this.manual=n}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var t;return((t=this.slotNodes)!==null&&t!==void 0?t:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&$1(this.slottedElement,this.tooltip,{placement:this.position,strategy:"fixed"}).then(({x:t,y:r})=>{this.tooltip&&(this.tooltip.style.transform=`translate(${t}px,${r}px)`)}),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${St.designSystemVariables.transitionDuration}, left ${St.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}isIgnored(t){return this.manual||(0,St.eventPathContainsMatchingElement)(t,this.ignoreMatchingElements,this.eventsTarget)}};Ee.elementDefinitions={"ft-typography":Q};Ee.styles=d1;zt([Td()],Ee.prototype,"text",void 0);zt([(0,Ct.property)({type:Boolean})],Ee.prototype,"manual",void 0);zt([(0,Ct.property)({type:Boolean})],Ee.prototype,"inline",void 0);zt([(0,St.numberProperty)()],Ee.prototype,"delay",void 0);zt([(0,Ct.property)()],Ee.prototype,"position",void 0);zt([(0,St.jsonProperty)([])],Ee.prototype,"ignoreMatchingElements",void 0);zt([(0,Ct.queryAssignedNodes)()],Ee.prototype,"slotNodes",void 0);zt([(0,Ct.query)(".ft-tooltip--container")],Ee.prototype,"container",void 0);zt([(0,Ct.query)(".ft-tooltip")],Ee.prototype,"tooltip",void 0);zt([(0,Ct.query)(".ft-tooltip--content")],Ee.prototype,"tooltipContent",void 0);zt([(0,Ct.state)()],Ee.prototype,"visible",void 0);var Id=b(w());(0,Id.customElement)("ft-tooltip")(Ee);var Ot;(function(e){e.fluid_topics="fluid-topics",e.file_format="file-format",e.material="material"})(Ot||(Ot={}));var Cn=b($()),Ar=b(j()),Bd=b(w()),$d=b(ks());var lt;(function(e){e.ADD_TO_PBK="",e.ALERT="",e.ADD_ALERT="",e.BACK_TO_SEARCH="",e.ADD_BOOKMARK="",e.BOOKMARK="",e.BOOKS="",e.MENU="",e.DOWNLOAD="",e.EDIT="",e.FEEDBACK="",e.HOME="",e.MODIFY_PBK="",e.SCHEDULED="",e.SEARCH="",e.EXPORT="",e.TOC="",e.WRITE_UGC="",e.TRASH="",e.USER="",e.EXTLINK="",e.CALENDAR="",e.OFFLINE="",e.BOOK="",e.DOWNLOAD_PLAIN="",e.CHECK="",e.STAR_PLAIN="",e.TOPICS="",e.DISC="",e.CIRCLE="",e.SHARED="",e.SORT_UNSORTED="",e.SORT_UP="",e.SORT_DOWN="",e.WORKING="",e.CLOSE="",e.ZOOM_OUT="",e.ZOOM_IN="",e.ZOOM_REALSIZE="",e.ZOOM_FULLSCREEN="",e.ADMIN_RESTRICTED="",e.ADMIN="",e.ADMIN_KHUB="",e.ADMIN_THEME="",e.ADMIN_USERS="",e.WARNING="",e.CONTEXT="",e.SEARCH_HOME="",e.STEPS="",e.ICON_EXPAND="",e.ICON_COLLAPSE="",e.INFO="",e.MINUS_PLAIN="",e.PLUS_PLAIN="",e.FACET_HAS_DESCENDANT="",e.TRIANGLE_BOTTOM="",e.TRIANGLE_LEFT="",e.TRIANGLE_RIGHT="",e.TRIANGLE_TOP="",e.THIN_ARROW="",e.SIGN_IN="",e.LOGOUT="",e.TRANSLATE="",e.CLOSE_PLAIN="",e.CHECK_PLAIN="",e.ARTICLE="",e.COLUMNS="",e.ANALYTICS="",e.COLLECTIONS="",e.ARROW_DOWN="",e.ARROW_LEFT="",e.ARROW_RIGHT="",e.ARROW_UP="",e.SEARCH_IN_PUBLICATION="",e.COPY_TO_CLIPBOARD="",e.SHARED_PBK="",e.ATTACHMENTS="",e.STRIPE_ARROW_LEFT="",e.STRIPE_ARROW_RIGHT="",e.FILTERS="",e.DOT="",e.MINUS="",e.PLUS="",e.MAILS_AND_NOTIFICATIONS="",e.SAVE="",e.LOCKER="",e.ADMIN_INTEGRATION="",e.SYNC="",e.TAG="",e.BOOK_PLAIN="",e.UPLOAD="",e.ONLINE="",e.TAG_PLAIN="",e.ACCOUNT_SETTINGS="",e.PRINT="",e.DEFAULT_ROLES="",e.SHORTCUT_MENU="",e.RELATIVES_PLAIN="",e.RELATIVES="",e.PAUSE="",e.PLAY="",e.ADMIN_PORTAL="",e.STAR="",e.THUMBS_DOWN="",e.THUMBS_DOWN_PLAIN="",e.THUMBS_UP="",e.THUMBS_UP_PLAIN="",e.FEEDBACK_PLAIN="",e.RATE_PLAIN="",e.RATE="",e.OFFLINE_SETTINGS="",e.MY_COLLECTIONS="",e.THIN_ARROW_LEFT="",e.THIN_ARROW_RIGHT="",e.RESET="",e.MY_LIBRARY="",e.UNSTRUCTURED_DOC="",e.CONTEXTUAL="",e.THIN_ARROW_UP="",e.ARROW_RIGHT_TO_LINE="",e.DESKTOP="",e.TABLET_LANDSCAPE="",e.TABLET_PORTRAIT="",e.MOBILE_LANDSCAPE="",e.MOBILE_PORTRAIT="",e.DIAGRAM_SUNBURST="",e.DIAGRAM_SANKEY="",e.COMMENT_QUESTION="",e.COMMENT_QUESTION_PLAIN="",e.MESSAGE_BOT="",e.CHART_SIMPLE="",e.BARS_PROGRESS="",e.BOOK_OPEN_GEAR="",e.BOOK_OPEN_GEAR_SLASH="",e.LINE_CHART="",e.STACKED_CHART="",e.CHART_BAR_STACKED="",e.CHART_BAR_GROUPED="",e.EYE_SLASH="",e.X_MARK="",e.EXPAND_WIDE="",e.PIP="",e.PIP_WIDE="",e.LIFE_RING="",e.GLOBE="",e.PIGGY_BANK="",e.EXTLINK_LIGHT="",e.CLONE="",e.CLONE_LINK_SIMPLE="",e.CHART_BAR_NORMALIZED="",e.CONSUMER="",e.OCTAGON_XMARK="",e.HOURGLASS_HALF="",e.CLOCK="",e.CLOCK_THREE="",e.CALENDAR_DAY="",e.COMPUTER_MOUSE_MAGNIFYING_GLASS="",e.WAND_MAGIC_SPARKLES="",e.PAPER_PLANE="",e.CIRCLE_STOP="",e.ARROW_ROTATE_RIGHT="",e.ARROWS_ROTATE="",e.ALIGN_RIGHT="",e.FORMAT_CLEAR="",e.ALIGN_CENTER="",e.ALIGN_LEFT="",e.PALETTE="",e.BOLD="",e.ITALIC="",e.UNDERLINE="",e.STRIKETHROUGH="",e.LINK_SIMPLE_SLASH="",e.LINK_SIMPLE="",e.ROUTE="",e.CIRCLE_USER_SLASH="",e.CIRCLE_USER_CHECK="",e.LIST_MAGNIFYING_GLASS="",e.MEDAL="",e.THUMBS_UP_THUMBS_DOWN_SOLID="",e.ARROW_TURN_DOWN_RIGHT="",e.FLASK="",e.LOCK_KEYHOLE_OPEN_SOLID="",e.HOURGLASS_END="",e.CIRCLE_QUESTION="",e.GRIP_LINES_SOLID="",e.TRANSLATE_SPARKLE_SOLID="",e.CODE="",e.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="",e.PAPER_PLANE_SLASH="",e.COMPRESS="",e.EXPAND="",e.ARROW_ROTATE_LEFT="",e.EYE="",e.SHARE="󨃱",e.MOBILE_SMALL="",e.SPARKLES="",e.HAND_SOLID="",e.CLOCK_SOLID="",e.CONTEXT_MENU_CURSOR="",e.LANGUAGE_SLASH="",e.MAGNIFYING_GLASS_FLOPPY_DISK="",e.CABINET_FILING_FLOPPY_DISK="",e.BOOKMARK_SLASH="",e.CIRCLE_PAUSE="",e.CIRCLE_PLAY="",e.CIRCLE_STOP_PLAIN="",e.CLOUD_ARROW_DOWN="",e.SHARE_NODES="",e.BELL="",e.BELL_SLASH="",e.FILE="",e.HAND="",e.SQUARE_INFO_SOLID="",e.FILE_CODE="",e.BOX_CODE="",e.TOPICS_SOLID="",e.PHOTO_FILM_REGULAR="",e.HYPHEN_SOLID="",e.CROSSHAIRS_REGULAR="",e.PERSON_CHALKBOARD_REGULAR=""})(lt||(lt={}));var _;(function(e){e.UNKNOWN="",e.ABW="",e.AUDIO="",e.AVI="",e.CHM="",e.CODE="",e.CSV="",e.DITA="",e.EPUB="",e.EXCEL="",e.FLAC="",e.GIF="",e.GZIP="",e.HTML="",e.IMAGE="",e.JPEG="",e.JSON="",e.M4A="",e.MOV="",e.MP3="",e.MP4="",e.OGG="",e.PDF="",e.PNG="",e.POWERPOINT="",e.RAR="",e.STP="",e.TEXT="",e.VIDEO="",e.WAV="",e.WMA="",e.WORD="",e.XML="",e.YAML="",e.ZIP=""})(_||(_={}));var HE=new Map([...["abw"].map(e=>[e,_.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(e=>[e,_.AUDIO]),...["avi"].map(e=>[e,_.AVI]),...["chm","xhs"].map(e=>[e,_.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(e=>[e,_.CODE]),...["csv"].map(e=>[e,_.CSV]),...["dita","ditamap","ditaval"].map(e=>[e,_.DITA]),...["epub"].map(e=>[e,_.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(e=>[e,_.EXCEL]),...["flac"].map(e=>[e,_.FLAC]),...["gif"].map(e=>[e,_.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(e=>[e,_.GZIP]),...["html","htm","xhtml"].map(e=>[e,_.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(e=>[e,_.IMAGE]),...["jpeg","jpg","jpe"].map(e=>[e,_.JPEG]),...["json"].map(e=>[e,_.JSON]),...["m4a","m4p"].map(e=>[e,_.M4A]),...["mov","qt"].map(e=>[e,_.MOV]),...["mp3"].map(e=>[e,_.MP3]),...["mp4","m4v"].map(e=>[e,_.MP4]),...["ogg","oga"].map(e=>[e,_.OGG]),...["pdf","ps"].map(e=>[e,_.PDF]),...["png"].map(e=>[e,_.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(e=>[e,_.POWERPOINT]),...["rar"].map(e=>[e,_.RAR]),...["stp"].map(e=>[e,_.STP]),...["txt","rtf","md","mdown"].map(e=>[e,_.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(e=>[e,_.VIDEO]),...["wav"].map(e=>[e,_.WAV]),...["wma"].map(e=>[e,_.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(e=>[e,_.WORD]),...["xml","xsl","rdf"].map(e=>[e,_.XML]),...["yaml","yml","x-yaml"].map(e=>[e,_.YAML]),...["zip"].map(e=>[e,_.ZIP])]);var GE={[_.ABW]:"#91ABC6",[_.AUDIO]:"#1795E3",[_.AVI]:"#E63324",[_.CHM]:"#71C3EB",[_.CODE]:"#71C3EB",[_.CSV]:"#1F7345",[_.DITA]:"#71C3EB",[_.EPUB]:"#85B926",[_.EXCEL]:"#1F7345",[_.FLAC]:"#1795E3",[_.GIF]:"#59B031",[_.GZIP]:"#F8AB36",[_.HTML]:"#71C3EB",[_.IMAGE]:"#59B031",[_.JPEG]:"#59B031",[_.JSON]:"#71C3EB",[_.M4A]:"#1795E3",[_.MOV]:"#E63324",[_.MP3]:"#1795E3",[_.MP4]:"#E63324",[_.OGG]:"#1795E3",[_.PDF]:"#E44948",[_.PNG]:"#59B031",[_.POWERPOINT]:"#B54A2B",[_.RAR]:"#F8AB36",[_.STP]:"#3764B1",[_.TEXT]:"#3162AB",[_.UNKNOWN]:"#999999",[_.VIDEO]:"#E63324",[_.WAV]:"#1795E3",[_.WMA]:"#1795E3",[_.WORD]:"#3162AB",[_.XML]:"#71C3EB",[_.YAML]:"#71C3EB",[_.ZIP]:"#F8AB36"};var On=function(e,t,r,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var c=e.length-1;c>=0;c--)(s=e[c])&&(i=(a<3?s(i):a>3?s(t,r,i):s(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},Le=class extends Bd.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=Cn.nothing}render(){let t=this.variant&&Object.values(Ot).includes(this.variant)?this.variant:Ot.fluid_topics,r=t!==Ot.material||!!this.value;return Cn.html`
|
|
628
628
|
<i class="ft-icon ft-icon--${t} ft-no-text-select" part="icon icon-${t}">
|
|
629
629
|
${(0,$d.unsafeHTML)(this.resolvedIcon)}
|
|
630
630
|
<slot ?hidden=${r}></slot>
|
|
@@ -45,7 +45,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
45
45
|
input::-webkit-search-results-decoration {
|
|
46
46
|
display: none;
|
|
47
47
|
}
|
|
48
|
-
`;var o1={};var Fs={};X(Fs,{ParametrizedLabelResolver:()=>Vr});var Vr=class t{constructor(e,r){this.defaultLabels=e,this.labels=r}resolve(e,...r){var o,a;e=this.resolvePluralKey(e,r);let i=(a=(o=this.labels[e])!==null&&o!==void 0?o:this.defaultLabels[e])!==null&&a!==void 0?a:"";return t.replaceParameters(i,...r)}static replaceParameters(e,...r){return r.forEach((o,a)=>e=e.replace(new RegExp(`\\{${a}([^}]*)\\}`,"g"),(i,s)=>t.formatValue(o,s))),e}resolvePluralKey(e,r){for(let o of r)if(typeof o=="number"){let a=`${String(e)}[\\=${o}]`;if(a in this.labels||a in this.defaultLabels)return a}return e}static formatValue(e,r){return e instanceof Date?t.formatDate(e,r):e??""}static formatDate(e,r){let o=a=>r?.includes("date")?e.toLocaleDateString(a):r?.includes("time")?e.toLocaleTimeString(a):e.toLocaleString(a);try{return o(document.documentElement.lang)}catch{return o()}}};var uc={};X(uc,{FtCommandQueue:()=>xn,FtLitElementRedux:()=>Kr,FtReduxStore:()=>Sr,FtStateManager:()=>La,ReduxWatcher:()=>Oa,clearAllStores:()=>Ch,isFtReduxStore:()=>xo,redux:()=>Jt,reduxEventListener:()=>Hs,reduxReactive:()=>B4,watch:()=>D1,withRedux:()=>n1});var B4=()=>(t,e)=>{var r;let o=t.constructor;o.reduxReactiveProperties=new Set(o.reduxReactiveProperties),(r=o.reduxReactiveProperties)===null||r===void 0||r.add(e)},Jt=t=>{let e=t??{};return(r,o)=>{var a;let i={hasChanged:We,attribute:!1,...e};b(i)(r,o);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(o,{selector:(a=e.selector)!==null&&a!==void 0?a:c=>c[o],store:e.store})}},Hs=t=>(e,r)=>{let o=e.constructor;o.reduxEventListeners=new Map(o.reduxEventListeners),o.reduxEventListeners.set(r,t)};var xn=class{constructor(){this.queue=[]}add(e,r=!1){r&&this.clear(e.type),this.queue.push(e)}consume(e){let r=this.queue.find(o=>o.type===e);return r&&(this.queue=this.queue.filter(o=>o!==r)),r}clear(e){typeof e=="string"?this.queue=this.queue.filter(r=>r.type!==e):this.queue=this.queue.filter(r=>!e.test(r.type))}};function xo(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Sn=Symbol("internalReduxEventsUnsubscribers"),gr=Symbol("internalStoresUnsubscribers"),jr=Symbol("internalStores"),n1=Re(Symbol("withRedux"),function(t){var e,r,o;class a extends t{constructor(){super(...arguments),this[e]=new Map,this[r]=new Map,this[o]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(c=>s.has(c))&&this.updateFromStores()}getUnnamedStore(){if(this[jr].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[jr].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[jr].get(s)}addStore(s,c){var d;c=(d=c??s.name)!==null&&d!==void 0?d:"default-store",this.unsubscribeFromStore(c),this[jr].set(c,s),this.subscribeToStore(c,s),this.updateFromStores()}removeStore(s){let c=typeof s=="string"?s:s.name;this.unsubscribeFromStore(c),this[jr].delete(c)}setupStores(){this.unsubscribeFromStores(),this[jr].forEach((s,c)=>this.subscribeToStore(c,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,c)=>{let d=this.constructor.getPropertyOptions(c);if(!d?.attribute||!this.hasAttribute(typeof d?.attribute=="string"?d.attribute:c)){let f=this.getStore(s.store);f&&(s.store?this[gr].has(s.store):this[gr].size>0)&&(this[c]=s.selector(f.getState(),this))}})}subscribeToStore(s,c){var d;this[gr].set(s,c.subscribe(()=>this.updateFromStores())),this[Sn].set(s,[]),xo(c)&&c.eventBus&&((d=this.reduxConstructor.reduxEventListeners)===null||d===void 0||d.forEach((f,h)=>{if(typeof this[h]=="function"&&(!f.store||c.name===f.store)){let p=g=>this[h](g);c.addEventListener(f.eventName,p),this[Sn].get(s).push(()=>c.removeEventListener(f.eventName,p))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[gr].forEach((s,c)=>this.unsubscribeFromStore(c))}unsubscribeFromStore(s){var c;this[gr].has(s)&&this[gr].get(s)(),this[gr].delete(s),(c=this[Sn].get(s))===null||c===void 0||c.forEach(d=>d()),this[Sn].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=gr,r=jr,o=Sn,a.reduxProperties=new Map,a.reduxReactiveProperties=new Set,a.reduxEventListeners=new Map,a}),Kr=class extends n1(q){};function ht(t){for(var e=arguments.length,r=Array(e>1?e-1:0),o=1;o<e;o++)r[o-1]=arguments[o];if(0)var a,i;throw Error("[Immer] minified error nr: "+t+(r.length?" "+r.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function er(t){return!!t&&!!t[pe]}function Et(t){var e;return!!t&&(function(r){if(!r||typeof r!="object")return!1;var o=Object.getPrototypeOf(r);if(o===null)return!0;var a=Object.hasOwnProperty.call(o,"constructor")&&o.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===K4}(t)||Array.isArray(t)||!!t[f1]||!!(!((e=t.constructor)===null||e===void 0)&&e[f1])||Xs(t)||Qs(t))}function qr(t,e,r){r===void 0&&(r=!1),Eo(t)===0?(r?Object.keys:Co)(t).forEach(function(o){r&&typeof o=="symbol"||e(o,t[o],t)}):t.forEach(function(o,a){return e(a,o,t)})}function Eo(t){var e=t[pe];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Xs(t)?2:Qs(t)?3:0}function So(t,e){return Eo(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function U4(t,e){return Eo(t)===2?t.get(e):t[e]}function u1(t,e,r){var o=Eo(t);o===2?t.set(e,r):o===3?t.add(r):t[e]=r}function p1(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function Xs(t){return V4&&t instanceof Map}function Qs(t){return j4&&t instanceof Set}function yr(t){return t.o||t.t}function Js(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=g1(t);delete e[pe];for(var r=Co(e),o=0;o<r.length;o++){var a=r[o],i=e[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(e[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:t[a]})}return Object.create(Object.getPrototypeOf(t),e)}function ec(t,e){return e===void 0&&(e=!1),tc(t)||er(t)||!Et(t)||(Eo(t)>1&&(t.set=t.add=t.clear=t.delete=F4),Object.freeze(t),e&&qr(t,function(r,o){return ec(o,!0)},!0)),t}function F4(){ht(2)}function tc(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function Dt(t){var e=Ys[t];return e||ht(18,t),e}function H4(t,e){Ys[t]||(Ys[t]=e)}function Ks(){return En}function Gs(t,e){e&&(Dt("Patches"),t.u=[],t.s=[],t.v=e)}function va(t){qs(t),t.p.forEach(G4),t.p=null}function qs(t){t===En&&(En=t.l)}function a1(t){return En={p:[],l:En,h:t,m:!0,_:0}}function G4(t){var e=t[pe];e.i===0||e.i===1?e.j():e.g=!0}function Ws(t,e){e._=e.p.length;var r=e.p[0],o=t!==void 0&&t!==r;return e.h.O||Dt("ES5").S(e,t,o),o?(r[pe].P&&(va(e),ht(4)),Et(t)&&(t=xa(e,t),e.l||Sa(e,t)),e.u&&Dt("Patches").M(r[pe].t,t,e.u,e.s)):t=xa(e,r,[]),va(e),e.u&&e.v(e.u,e.s),t!==m1?t:void 0}function xa(t,e,r){if(tc(e))return e;var o=e[pe];if(!o)return qr(e,function(c,d){return i1(t,o,e,c,d,r)},!0),e;if(o.A!==t)return e;if(!o.P)return Sa(t,o.t,!0),o.t;if(!o.I){o.I=!0,o.A._--;var a=o.i===4||o.i===5?o.o=Js(o.k):o.o,i=a,s=!1;o.i===3&&(i=new Set(a),a.clear(),s=!0),qr(i,function(c,d){return i1(t,o,a,c,d,r,s)}),Sa(t,a,!1),r&&t.u&&Dt("Patches").N(o,r,t.u,t.s)}return o.o}function i1(t,e,r,o,a,i,s){if(er(a)){var c=xa(t,a,i&&e&&e.i!==3&&!So(e.R,o)?i.concat(o):void 0);if(u1(r,o,c),!er(c))return;t.m=!1}else s&&r.add(a);if(Et(a)&&!tc(a)){if(!t.h.D&&t._<1)return;xa(t,a),e&&e.A.l||Sa(t,a)}}function Sa(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&ec(e,r)}function Vs(t,e){var r=t[pe];return(r?yr(r):t)[e]}function s1(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var o=Object.getOwnPropertyDescriptor(r,e);if(o)return o;r=Object.getPrototypeOf(r)}}function br(t){t.P||(t.P=!0,t.l&&br(t.l))}function js(t){t.o||(t.o=Js(t.t))}function Zs(t,e,r){var o=Xs(e)?Dt("MapSet").F(e,r):Qs(e)?Dt("MapSet").T(e,r):t.O?function(a,i){var s=Array.isArray(a),c={i:s?1:0,A:i?i.A:Ks(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},d=c,f=On;s&&(d=[c],f=Cn);var h=Proxy.revocable(d,f),p=h.revoke,g=h.proxy;return c.k=g,c.j=p,g}(e,r):Dt("ES5").J(e,r);return(r?r.A:Ks()).p.push(o),o}function W4(t){return er(t)||ht(22,t),function e(r){if(!Et(r))return r;var o,a=r[pe],i=Eo(r);if(a){if(!a.P&&(a.i<4||!Dt("ES5").K(a)))return a.t;a.I=!0,o=c1(r,i),a.I=!1}else o=c1(r,i);return qr(o,function(s,c){a&&U4(a.t,s)===c||u1(o,s,e(c))}),i===3?new Set(o):o}(t)}function c1(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Js(t)}function h1(){function t(s,c){var d=i[s];return d?d.enumerable=c:i[s]=d={configurable:!0,enumerable:c,get:function(){var f=this[pe];return On.get(f,s)},set:function(f){var h=this[pe];On.set(h,s,f)}},d}function e(s){for(var c=s.length-1;c>=0;c--){var d=s[c][pe];if(!d.P)switch(d.i){case 5:o(d)&&br(d);break;case 4:r(d)&&br(d)}}}function r(s){for(var c=s.t,d=s.k,f=Co(d),h=f.length-1;h>=0;h--){var p=f[h];if(p!==pe){var g=c[p];if(g===void 0&&!So(c,p))return!0;var S=d[p],C=S&&S[pe];if(C?C.t!==g:!p1(S,g))return!0}}var R=!!c[pe];return f.length!==Co(c).length+(R?0:1)}function o(s){var c=s.k;if(c.length!==s.t.length)return!0;var d=Object.getOwnPropertyDescriptor(c,c.length-1);if(d&&!d.get)return!0;for(var f=0;f<c.length;f++)if(!c.hasOwnProperty(f))return!0;return!1}function a(s){s.g&&ht(3,JSON.stringify(yr(s)))}var i={};H4("ES5",{J:function(s,c){var d=Array.isArray(s),f=function(p,g){if(p){for(var S=Array(g.length),C=0;C<g.length;C++)Object.defineProperty(S,""+C,t(C,!0));return S}var R=g1(g);delete R[pe];for(var T=Co(R),M=0;M<T.length;M++){var I=T[M];R[I]=t(I,p||!!R[I].enumerable)}return Object.create(Object.getPrototypeOf(g),R)}(d,s),h={i:d?5:4,A:c?c.A:Ks(),P:!1,I:!1,R:{},l:c,t:s,k:f,o:null,g:!1,C:!1};return Object.defineProperty(f,pe,{value:h,writable:!0}),f},S:function(s,c,d){d?er(c)&&c[pe].A===s&&e(s.p):(s.u&&function f(h){if(h&&typeof h=="object"){var p=h[pe];if(p){var g=p.t,S=p.k,C=p.R,R=p.i;if(R===4)qr(S,function(O){O!==pe&&(g[O]!==void 0||So(g,O)?C[O]||f(S[O]):(C[O]=!0,br(p)))}),qr(g,function(O){S[O]!==void 0||So(S,O)||(C[O]=!1,br(p))});else if(R===5){if(o(p)&&(br(p),C.length=!0),S.length<g.length)for(var T=S.length;T<g.length;T++)C[T]=!1;else for(var M=g.length;M<S.length;M++)C[M]=!0;for(var I=Math.min(S.length,g.length),L=0;L<I;L++)S.hasOwnProperty(L)||(C[L]=!0),C[L]===void 0&&f(S[L])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?r(s):o(s)}})}var l1,En,rc=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",V4=typeof Map<"u",j4=typeof Set<"u",d1=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",m1=rc?Symbol.for("immer-nothing"):((l1={})["immer-nothing"]=!0,l1),f1=rc?Symbol.for("immer-draftable"):"__$immer_draftable",pe=rc?Symbol.for("immer-state"):"__$immer_state";var K4=""+Object.prototype.constructor,Co=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,g1=Object.getOwnPropertyDescriptors||function(t){var e={};return Co(t).forEach(function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)}),e},Ys={},On={get:function(t,e){if(e===pe)return t;var r=yr(t);if(!So(r,e))return function(a,i,s){var c,d=s1(i,s);return d?"value"in d?d.value:(c=d.get)===null||c===void 0?void 0:c.call(a.k):void 0}(t,r,e);var o=r[e];return t.I||!Et(o)?o:o===Vs(t.t,e)?(js(t),t.o[e]=Zs(t.A.h,o,t)):o},has:function(t,e){return e in yr(t)},ownKeys:function(t){return Reflect.ownKeys(yr(t))},set:function(t,e,r){var o=s1(yr(t),e);if(o?.set)return o.set.call(t.k,r),!0;if(!t.P){var a=Vs(yr(t),e),i=a?.[pe];if(i&&i.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(p1(r,a)&&(r!==void 0||So(t.t,e)))return!0;js(t),br(t)}return t.o[e]===r&&(r!==void 0||e in t.o)||Number.isNaN(r)&&Number.isNaN(t.o[e])||(t.o[e]=r,t.R[e]=!0),!0},deleteProperty:function(t,e){return Vs(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,js(t),br(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=yr(t),o=Reflect.getOwnPropertyDescriptor(r,e);return o&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:o.enumerable,value:r[e]}},defineProperty:function(){ht(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){ht(12)}},Cn={};qr(On,function(t,e){Cn[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),Cn.deleteProperty=function(t,e){return Cn.set.call(this,t,e,void 0)},Cn.set=function(t,e,r){return On.set.call(this,t[0],e,r,t[0])};var q4=function(){function t(r){var o=this;this.O=d1,this.D=!0,this.produce=function(a,i,s){if(typeof a=="function"&&typeof i!="function"){var c=i;i=a;var d=o;return function(R){var T=this;R===void 0&&(R=c);for(var M=arguments.length,I=Array(M>1?M-1:0),L=1;L<M;L++)I[L-1]=arguments[L];return d.produce(R,function(O){var w;return(w=i).call.apply(w,[T,O].concat(I))})}}var f;if(typeof i!="function"&&ht(6),s!==void 0&&typeof s!="function"&&ht(7),Et(a)){var h=a1(o),p=Zs(o,a,void 0),g=!0;try{f=i(p),g=!1}finally{g?va(h):qs(h)}return typeof Promise<"u"&&f instanceof Promise?f.then(function(R){return Gs(h,s),Ws(R,h)},function(R){throw va(h),R}):(Gs(h,s),Ws(f,h))}if(!a||typeof a!="object"){if((f=i(a))===void 0&&(f=a),f===m1&&(f=void 0),o.D&&ec(f,!0),s){var S=[],C=[];Dt("Patches").M(a,f,S,C),s(S,C)}return f}ht(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(f){for(var h=arguments.length,p=Array(h>1?h-1:0),g=1;g<h;g++)p[g-1]=arguments[g];return o.produceWithPatches(f,function(S){return a.apply(void 0,[S].concat(p))})};var s,c,d=o.produce(a,i,function(f,h){s=f,c=h});return typeof Promise<"u"&&d instanceof Promise?d.then(function(f){return[f,s,c]}):[d,s,c]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var e=t.prototype;return e.createDraft=function(r){Et(r)||ht(8),er(r)&&(r=W4(r));var o=a1(this),a=Zs(this,r,void 0);return a[pe].C=!0,qs(o),a},e.finishDraft=function(r,o){var a=r&&r[pe],i=a.A;return Gs(i,o),Ws(void 0,i)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!d1&&ht(20),this.O=r},e.applyPatches=function(r,o){var a;for(a=o.length-1;a>=0;a--){var i=o[a];if(i.path.length===0&&i.op==="replace"){r=i.value;break}}a>-1&&(o=o.slice(a+1));var s=Dt("Patches").$;return er(r)?s(r,o):this.produce(r,function(c){return s(c,o)})},t}(),at=new q4,Z4=at.produce,RS=at.produceWithPatches.bind(at),wS=at.setAutoFreeze.bind(at),_S=at.setUseProxies.bind(at),NS=at.applyPatches.bind(at),TS=at.createDraft.bind(at),kS=at.finishDraft.bind(at),Ca=Z4;function Zr(t){"@babel/helpers - typeof";return Zr=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},Zr(t)}function y1(t,e){if(Zr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var o=r.call(t,e||"default");if(Zr(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function b1(t){var e=y1(t,"string");return Zr(e)=="symbol"?e:e+""}function v1(t,e,r){return(e=b1(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function x1(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,o)}return r}function oc(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?x1(Object(r),!0).forEach(function(o){v1(t,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):x1(Object(r)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(r,o))})}return t}function Ve(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 S1=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),nc=function(){return Math.random().toString(36).substring(7).split("").join(".")},Ea={INIT:"@@redux/INIT"+nc(),REPLACE:"@@redux/REPLACE"+nc(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+nc()}};function Y4(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 ac(t,e,r){var o;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(Ve(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Ve(1));return r(ac)(t,e)}if(typeof t!="function")throw new Error(Ve(2));var a=t,i=e,s=[],c=s,d=!1;function f(){c===s&&(c=s.slice())}function h(){if(d)throw new Error(Ve(3));return i}function p(R){if(typeof R!="function")throw new Error(Ve(4));if(d)throw new Error(Ve(5));var T=!0;return f(),c.push(R),function(){if(T){if(d)throw new Error(Ve(6));T=!1,f();var I=c.indexOf(R);c.splice(I,1),s=null}}}function g(R){if(!Y4(R))throw new Error(Ve(7));if(typeof R.type>"u")throw new Error(Ve(8));if(d)throw new Error(Ve(9));try{d=!0,i=a(i,R)}finally{d=!1}for(var T=s=c,M=0;M<T.length;M++){var I=T[M];I()}return R}function S(R){if(typeof R!="function")throw new Error(Ve(10));a=R,g({type:Ea.REPLACE})}function C(){var R,T=p;return R={subscribe:function(I){if(typeof I!="object"||I===null)throw new Error(Ve(11));function L(){I.next&&I.next(h())}L();var O=T(L);return{unsubscribe:O}}},R[S1]=function(){return this},R}return g({type:Ea.INIT}),o={dispatch:g,subscribe:p,getState:h,replaceReducer:S},o[S1]=C,o}function X4(t){Object.keys(t).forEach(function(e){var r=t[e],o=r(void 0,{type:Ea.INIT});if(typeof o>"u")throw new Error(Ve(12));if(typeof r(void 0,{type:Ea.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Ve(13))})}function C1(t){for(var e=Object.keys(t),r={},o=0;o<e.length;o++){var a=e[o];typeof t[a]=="function"&&(r[a]=t[a])}var i=Object.keys(r),s,c;try{X4(r)}catch(d){c=d}return function(f,h){if(f===void 0&&(f={}),c)throw c;if(0)var p;for(var g=!1,S={},C=0;C<i.length;C++){var R=i[C],T=r[R],M=f[R],I=T(M,h);if(typeof I>"u"){var L=h&&h.type;throw new Error(Ve(14))}S[R]=I,g=g||I!==M}return g=g||i.length!==Object.keys(f).length,g?S:f}}function Oo(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.length===0?function(o){return o}:e.length===1?e[0]:e.reduce(function(o,a){return function(){return o(a.apply(void 0,arguments))}})}function E1(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(o){return function(){var a=o.apply(void 0,arguments),i=function(){throw new Error(Ve(15))},s={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},c=e.map(function(d){return d(s)});return i=Oo.apply(void 0,c)(a.dispatch),oc(oc({},a),{},{dispatch:i})}}}function O1(t){var e=function(o){var a=o.dispatch,i=o.getState;return function(s){return function(c){return typeof c=="function"?c(a,i,t):s(c)}}};return e}var L1=O1();L1.withExtraArgument=O1;var ic=L1;var N1=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,a){o.__proto__=a}||function(o,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(o[i]=a[i])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function o(){this.constructor=e}e.prototype=r===null?Object.create(r):(o.prototype=r.prototype,new o)}}(),Q4=function(t,e){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},o,a,i,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(f){return function(h){return d([f,h])}}function d(f){if(o)throw new TypeError("Generator is already executing.");for(;r;)try{if(o=1,a&&(i=f[0]&2?a.return:f[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,f[1])).done)return i;switch(a=0,i&&(f=[f[0]&2,i.value]),f[0]){case 0:case 1:i=f;break;case 4:return r.label++,{value:f[1],done:!1};case 5:r.label++,a=f[1],f=[0];continue;case 7:f=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(f[0]===6||f[0]===2)){r=0;continue}if(f[0]===3&&(!i||f[1]>i[0]&&f[1]<i[3])){r.label=f[1];break}if(f[0]===6&&r.label<i[1]){r.label=i[1],i=f;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(f);break}i[2]&&r.ops.pop(),r.trys.pop();continue}f=e.call(t,r)}catch(h){f=[6,h],a=0}finally{o=i=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},Lo=function(t,e){for(var r=0,o=e.length,a=t.length;r<o;r++,a++)t[a]=e[r];return t},J4=Object.defineProperty,eh=Object.defineProperties,th=Object.getOwnPropertyDescriptors,A1=Object.getOwnPropertySymbols,rh=Object.prototype.hasOwnProperty,oh=Object.prototype.propertyIsEnumerable,R1=function(t,e,r){return e in t?J4(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},vr=function(t,e){for(var r in e||(e={}))rh.call(e,r)&&R1(t,r,e[r]);if(A1)for(var o=0,a=A1(e);o<a.length;o++){var r=a[o];oh.call(e,r)&&R1(t,r,e[r])}return t},sc=function(t,e){return eh(t,th(e))},nh=function(t,e,r){return new Promise(function(o,a){var i=function(d){try{c(r.next(d))}catch(f){a(f)}},s=function(d){try{c(r.throw(d))}catch(f){a(f)}},c=function(d){return d.done?o(d.value):Promise.resolve(d.value).then(i,s)};c((r=r.apply(t,e)).next())})};var ah=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Oo:Oo.apply(null,arguments)},YS=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function ih(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return e===r}var sh=function(t){N1(e,t);function e(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var a=t.apply(this,r)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,Lo([void 0],r[0].concat(this)))):new(e.bind.apply(e,Lo([void 0],r.concat(this))))},e}(Array),ch=function(t){N1(e,t);function e(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var a=t.apply(this,r)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,Lo([void 0],r[0].concat(this)))):new(e.bind.apply(e,Lo([void 0],r.concat(this))))},e}(Array);function dc(t){return Et(t)?Ca(t,function(){}):t}function lh(t){return typeof t=="boolean"}function dh(){return function(e){return fh(e)}}function fh(t){t===void 0&&(t={});var e=t.thunk,r=e===void 0?!0:e,o=t.immutableCheck,a=o===void 0?!0:o,i=t.serializableCheck,s=i===void 0?!0:i,c=new sh;if(r&&(lh(r)?c.push(ic):c.push(ic.withExtraArgument(r.extraArgument))),0){if(a)var d;if(s)var f}return c}var cc=!0;function T1(t){var e=dh(),r=t||{},o=r.reducer,a=o===void 0?void 0:o,i=r.middleware,s=i===void 0?e():i,c=r.devTools,d=c===void 0?!0:c,f=r.preloadedState,h=f===void 0?void 0:f,p=r.enhancers,g=p===void 0?void 0:p,S;if(typeof a=="function")S=a;else if(ih(a))S=C1(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 C=s;if(typeof C=="function"&&(C=C(e),!cc&&!Array.isArray(C)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!cc&&C.some(function(O){return typeof O!="function"}))throw new Error("each middleware provided to configureStore must be a function");var R=E1.apply(void 0,C),T=Oo;d&&(T=ah(vr({trace:!cc},typeof d=="object"&&d)));var M=new ch(R),I=M;Array.isArray(g)?I=Lo([R],g):typeof g=="function"&&(I=g(M));var L=T.apply(void 0,I);return ac(S,h,L)}function xr(t,e){function r(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];if(e){var i=e.apply(void 0,o);if(!i)throw new Error("prepareAction did not return an object");return vr(vr({type:t,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:t,payload:o[0]}}return r.toString=function(){return""+t},r.type=t,r.match=function(o){return o.type===t},r}function k1(t){var e={},r=[],o,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 r.push({matcher:i,reducer:s}),a},addDefaultCase:function(i){return o=i,a}};return t(a),[e,r,o]}function uh(t){return typeof t=="function"}function ph(t,e,r,o){r===void 0&&(r=[]);var a=typeof e=="function"?k1(e):[e,r,o],i=a[0],s=a[1],c=a[2],d;if(uh(t))d=function(){return dc(t())};else{var f=dc(t);d=function(){return f}}function h(p,g){p===void 0&&(p=d());var S=Lo([i[g.type]],s.filter(function(C){var R=C.matcher;return R(g)}).map(function(C){var R=C.reducer;return R}));return S.filter(function(C){return!!C}).length===0&&(S=[c]),S.reduce(function(C,R){if(R)if(er(C)){var T=C,M=R(T,g);return M===void 0?C:M}else{if(Et(C))return Ca(C,function(I){return R(I,g)});var M=R(C,g);if(M===void 0){if(C===null)return C;throw Error("A case reducer on a non-draftable value must not return undefined")}return M}return C},p)}return h.getInitialState=d,h}function hh(t,e){return t+"/"+e}function M1(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof t.initialState=="function"?t.initialState:dc(t.initialState),o=t.reducers||{},a=Object.keys(o),i={},s={},c={};a.forEach(function(h){var p=o[h],g=hh(e,h),S,C;"reducer"in p?(S=p.reducer,C=p.prepare):S=p,i[h]=S,s[g]=S,c[h]=C?xr(g,C):xr(g)});function d(){var h=typeof t.extraReducers=="function"?k1(t.extraReducers):[t.extraReducers],p=h[0],g=p===void 0?{}:p,S=h[1],C=S===void 0?[]:S,R=h[2],T=R===void 0?void 0:R,M=vr(vr({},g),s);return ph(r,function(I){for(var L in M)I.addCase(L,M[L]);for(var O=0,w=C;O<w.length;O++){var $=w[O];I.addMatcher($.matcher,$.reducer)}T&&I.addDefaultCase(T)})}var f;return{name:e,reducer:function(h,p){return f||(f=d()),f(h,p)},actions:c,caseReducers:i,getInitialState:function(){return f||(f=d()),f.getInitialState()}}}var mh="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",gh=function(t){t===void 0&&(t=21);for(var e="",r=t;r--;)e+=mh[Math.random()*64|0];return e},yh=["name","message","stack","code"],lc=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),w1=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),bh=function(t){if(typeof t=="object"&&t!==null){for(var e={},r=0,o=yh;r<o.length;r++){var a=o[r];typeof t[a]=="string"&&(e[a]=t[a])}return e}return{message:String(t)}},eC=function(){function t(e,r,o){var a=xr(e+"/fulfilled",function(h,p,g,S){return{payload:h,meta:sc(vr({},S||{}),{arg:g,requestId:p,requestStatus:"fulfilled"})}}),i=xr(e+"/pending",function(h,p,g){return{payload:void 0,meta:sc(vr({},g||{}),{arg:p,requestId:h,requestStatus:"pending"})}}),s=xr(e+"/rejected",function(h,p,g,S,C){return{payload:S,error:(o&&o.serializeError||bh)(h||"Rejected"),meta:sc(vr({},C||{}),{arg:g,requestId:p,rejectedWithValue:!!S,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),c=!1,d=typeof AbortController<"u"?AbortController:function(){function h(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return h.prototype.abort=function(){},h}();function f(h){return function(p,g,S){var C=o?.idGenerator?o.idGenerator(h):gh(),R=new d,T,M=!1;function I(O){T=O,R.abort()}var L=function(){return nh(this,null,function(){var O,w,$,Z,J,Q,G;return Q4(this,function(v){switch(v.label){case 0:return v.trys.push([0,4,,5]),Z=(O=o?.condition)==null?void 0:O.call(o,h,{getState:g,extra:S}),xh(Z)?[4,Z]:[3,2];case 1:Z=v.sent(),v.label=2;case 2:if(Z===!1||R.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return M=!0,J=new Promise(function(A,F){return R.signal.addEventListener("abort",function(){return F({name:"AbortError",message:T||"Aborted"})})}),p(i(C,h,(w=o?.getPendingMeta)==null?void 0:w.call(o,{requestId:C,arg:h},{getState:g,extra:S}))),[4,Promise.race([J,Promise.resolve(r(h,{dispatch:p,getState:g,extra:S,requestId:C,signal:R.signal,abort:I,rejectWithValue:function(A,F){return new lc(A,F)},fulfillWithValue:function(A,F){return new w1(A,F)}})).then(function(A){if(A instanceof lc)throw A;return A instanceof w1?a(A.payload,C,h,A.meta):a(A,C,h)})])];case 3:return $=v.sent(),[3,5];case 4:return Q=v.sent(),$=Q instanceof lc?s(null,C,h,Q.payload,Q.meta):s(Q,C,h),[3,5];case 5:return G=o&&!o.dispatchConditionRejection&&s.match($)&&$.meta.condition,G||p($),[2,$]}})})}();return Object.assign(L,{abort:I,requestId:C,arg:h,unwrap:function(){return L.then(vh)}})}}return Object.assign(f,{pending:i,rejected:s,fulfilled:a,typePrefix:e})}return t.withTypes=function(){return t},t}();function vh(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function xh(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var P1="listener",I1="completed",z1="cancelled",tC="task-"+z1,rC="task-"+I1,oC=P1+"-"+z1,nC=P1+"-"+I1;var fc="listenerMiddleware";var aC=xr(fc+"/add"),iC=xr(fc+"/removeAll"),sC=xr(fc+"/remove");var _1,cC=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(_1||(_1=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},Sh=function(t){return function(e){setTimeout(e,t)}},lC=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Sh(10);h1();window.ftReduxStores||(window.ftReduxStores={});var Sr=class t extends Yt{static get(e){var r;let o=typeof e=="string"?e:e.name,a=typeof e=="string"?void 0:e,i=window.ftReduxStores[o];if(xo(i))return i;if(a==null)return;let s=M1({...a,reducers:(r=a.reducers)!==null&&r!==void 0?r:{}}),c=T1({reducer:(d,f)=>{if(f.type==="CLEAR_FT_REDUX_STORE"){let h=Zt(s.getInitialState());for(let p of f.keeping)h[p]=(d??h)[p];return h}else if(typeof f.type=="string"&&f.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...d,...f.overwrites};return s.reducer(d,f)}});return window.ftReduxStores[a.name]=new t(s,c,a.eventBus)}constructor(e,r,o){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new xn;let a=i=>i!=null?JSON.parse(JSON.stringify(i)):i;this.actions=new Proxy(this.reduxSlice.actions,{get:(i,s,c)=>{let d=s,f=i[d];return f?(...h)=>{let p=f(...h.map(a));return this.reduxStore.dispatch(p),p}:h=>{this.setState({[d]:a(h)})}}}),this.eventBus=o??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...e){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:e})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};function Ch(){var t;for(let e of Object.values((t=window.ftReduxStores)!==null&&t!==void 0?t:{}))xo(e)&&e.clear()}var Oa=class{constructor(e,r,o){this.store=e,this.valueSelector=r,this.callback=o}watch(){return this.stop(),this.lastValue=this.valueSelector(this.store.getState()),this.unsubscribe=this.store.subscribe(()=>{let e=this.store.getState(),r=this.valueSelector(e);We(this.lastValue,r)&&(this.callback(r,e),this.lastValue=r)}),this}stop(){return this.unsubscribe!=null&&(this.unsubscribe(),this.unsubscribe=void 0),this.lastValue=void 0,this}};function D1(t,e,r){return new Oa(t,e,r).watch()}var La=class{constructor(){this.requestConsumers=new Map}getOrCreateRequestConsumers(e){var r;return(r=this.requestConsumers.get(e))!==null&&r!==void 0?r:this.requestConsumers.set(e,new Set).get(e)}registerComponent(e,r){for(let o of r)this.getOrCreateRequestConsumers(o).add(e).size==1&&this.onNewNeededRequest(o)}unregisterComponent(e,r){for(let o of r)this.getOrCreateRequestConsumers(o).delete(e)}isRequestNeeded(e){return this.getOrCreateRequestConsumers(e).size>0}};var mc={};X(mc,{scrollHelper:()=>Eh});var pc,Aa=new Map,hc=class{lock(e,r){if(r){let o=Aa.get(r);if(o==null||o===e)return Aa.set(r,e),r}}release(e,r){r&&Aa.get(r)===e&&Aa.delete(r)}findFirstScrollableParent(e){var r;let o,a;for(let i of zi(e)){let s=i,c=this.elementCanScroll(s);if(c&&s.clientHeight&&s.clientHeight<s.scrollHeight){o=s;break}else c&&a==null&&(a=s)}return(r=o??a)!==null&&r!==void 0?r:document.body}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)&&!["contents"].includes(getComputedStyle(e).display)}catch{return!1}}getAbsoluteScrollOffset(e,r){var o,a;let i=0;for(;r&&r.offsetParent!==e.offsetParent;)i+=(o=r.offsetTop)!==null&&o!==void 0?o:0,r=r.offsetParent;return i+((a=r?.offsetTop)!==null&&a!==void 0?a:0)-e.offsetTop}computeTopOffsetRatio(e,r){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return r;default:return 0}}scrollIntoViewIfPossible(e,r){let o=this.findFirstScrollableParent(e);if(e&&this.lock(this,o)){let a=this.getAbsoluteScrollOffset(o,e),i=a-o.clientHeight+e.clientHeight,s=a,c=ur(0,(s-o.scrollTop)/(s-i),1),d=this.computeTopOffsetRatio(r?.position,c)*(i-s)+s;o.scrollTo({behavior:r?.behavior,top:d})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,o);this.release(this,o)}};window.FluidTopicsScrollHelper=(pc=window.FluidTopicsScrollHelper)!==null&&pc!==void 0?pc:new hc;var Eh=window.FluidTopicsScrollHelper;var yc={};X(yc,{SearchPlaceConverter:()=>wo,SearchPlaceQueryParams:()=>ae,isSearchPlaceQueryParams:()=>S2,serializeRequest:()=>Rh});var Lh=np(B1(),1);var U1;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(U1||(U1={}));var F1;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(F1||(F1={}));var H1;(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"})(H1||(H1={}));var G1;(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"})(G1||(G1={}));var W1;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(W1||(W1={}));var V1;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(V1||(V1={}));var j1;(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"})(j1||(j1={}));var K1;(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"})(K1||(K1={}));var q1;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT",t.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",t.LINK_PREVIEW="LINK_PREVIEW",t.UD_VIEWER="UD_VIEWER",t.ASSET_VIEWER="ASSET_VIEWER"})(q1||(q1={}));var Z1;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Z1||(Z1={}));var Y1;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Y1||(Y1={}));var X1;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(X1||(X1={}));var Q1;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Q1||(Q1={}));var J1;(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"})(J1||(J1={}));var Yr;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(Yr||(Yr={}));var e2;(function(t){t.ASC="ASC",t.DESC="DESC"})(e2||(e2={}));var t2;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(t2||(t2={}));var _a;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(_a||(_a={}));var c2=t=>Object.keys(_a).includes(t);var r2;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(r2||(r2={}));var o2;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(o2||(o2={}));var n2;(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"})(n2||(n2={}));var Ro;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Ro||(Ro={}));var l2=t=>Object.keys(Ro).includes(t);var a2;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(a2||(a2={}));var gc;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(gc||(gc={}));var i2;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(i2||(i2={}));var Le;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",t.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(Le||(Le={}));var mt;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(mt||(mt={}));var s2;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(s2||(s2={}));var d2;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(d2||(d2={}));var f2;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SUMMARY="SUMMARY",t.SEMANTIC_SEARCH="SEMANTIC_SEARCH",t.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",t.OTHER="OTHER"})(f2||(f2={}));var u2;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(u2||(u2={}));var p2;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(p2||(p2={}));var h2;(function(t){t.USER="USER",t.ASSISTANT="ASSISTANT"})(h2||(h2={}));var m2;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(m2||(m2={}));var g2;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(g2||(g2={}));var y2;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(y2||(y2={}));var Oh={[Le.PERSONAL_BOOK_SHARE_USER]:[Le.PERSONAL_BOOK_USER],[Le.HTML_EXPORT_USER]:[Le.PERSONAL_BOOK_USER],[Le.PDF_EXPORT_USER]:[Le.PERSONAL_BOOK_USER],[Le.KHUB_ADMIN]:[Le.CONTENT_PUBLISHER],[Le.ADMIN]:[Le.KHUB_ADMIN,Le.USERS_ADMIN,Le.PORTAL_ADMIN,Le.BEHAVIOR_DATA_USER],[Le.GENERATIVE_AI_EXPORT_USER]:[Le.GENERATIVE_AI_USER]};function b2(t,e){return t===e||(Oh[t]??[]).some(r=>b2(r,e))}function v2(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(o=>b2(o,e))}function Ah(t){return`"${t}"`}function x2(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function Rh(t,e){return new wo(t).serialize(e)}var ae;(function(t){t.LOCALE="content-lang",t.QUERY="query",t.SCOPE="scope",t.FILTERS="filters",t.VIRTUAL_FIELD="virtual-field",t.PERIOD="period",t.VALUE_FILTERS="value-filters",t.DATE_FILTERS="date-filters",t.RANGE_FILTERS="range-filters",t.SORT="sort",t.PER_PAGE="per-page",t.KEYWORD_MATCH="keyword-match"})(ae||(ae={}));var wh=new Set(Object.values(ae));function S2(t){return wh.has(t)}var wo=class{constructor(e,r=20,o=!1,a="en-US"){this.baseUrl=e,this.defaultPerPage=r,this.allLanguagesAllowed=o,this.defaultContentLocale=a,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"},this.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]]}serialize(e,r){return this.serializeToCurrentPageIfPossible(e,r??"/search")}serializeToCurrentPageIfPossible(e,r){let o=r==null||r.trim().length===0,a=new URL(o?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${r}`);return a.search=this.toURLSearchParams(e),a.toString()}toURLSearchParams(e,r=!1){var o,a,i,s,c,d,f,h,p,g,S;let C=new URLSearchParams;e.contentLocale?(!r||e.contentLocale!==this.defaultContentLocale)&&C.append(ae.LOCALE,e.contentLocale):C.append(ae.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((o=e.query)===null||o===void 0?void 0:o.length)>0&&C.append(ae.QUERY,e.query);let R=(i=(a=e.metadataFilters)===null||a===void 0?void 0:a.filter(O=>O.valueFilter&&!O.valueFilter.negative))!==null&&i!==void 0?i:[];if(R.length>0){let O=R.map(w=>{var $,Z;let J=((Z=($=w.valueFilter)===null||$===void 0?void 0:$.values)!==null&&Z!==void 0?Z:[]).map(Q=>this.escapeFilters(Q)).map(Q=>Ah(x2(Q))).join("_");return`${w.key}~${J}`}).join("*");C.append(ae.VALUE_FILTERS,O)}let T=(c=(s=e.metadataFilters)===null||s===void 0?void 0:s.filter(O=>O.dateFilter))!==null&&c!==void 0?c:[];if(T.length>0){let O=T.map(w=>{var $;return`${w.key}~${($=w.dateFilter)===null||$===void 0?void 0:$.type.toLowerCase()}`}).join("*");C.append(ae.DATE_FILTERS,O)}let M=(f=(d=e.metadataFilters)===null||d===void 0?void 0:d.filter(O=>O.rangeFilter))!==null&&f!==void 0?f:[];if(M.length>0){let O=M.map(w=>{var $,Z;return`${w.key}~${($=w.rangeFilter)===null||$===void 0?void 0:$.from}_${(Z=w.rangeFilter)===null||Z===void 0?void 0:Z.to}`}).join("*");C.append(ae.RANGE_FILTERS,O)}e.virtualField&&e.virtualField!=="EVERYWHERE"&&C.append(ae.VIRTUAL_FIELD,e.virtualField.toLowerCase()),e.scope&&e.scope!=="DEFAULT"&&C.append(ae.SCOPE,e.scope.toLowerCase()),e.sortId!=null&&C.append(ae.SORT,e.sortId),!((h=e.paging)===null||h===void 0)&&h.perPage&&((g=(p=e.paging)===null||p===void 0?void 0:p.perPage)!==null&&g!==void 0?g:this.defaultPerPage)!=this.defaultPerPage&&C.append(ae.PER_PAGE,String(e.paging.perPage)),e.keywordMatch!=null&&C.append(ae.KEYWORD_MATCH,e.keywordMatch.toLowerCase());let I=(S=e.otherQueryParams)!==null&&S!==void 0?S:{};for(let O in I)C.append(O,I[O]);let L=new Array;return C.forEach((O,w)=>{L.push(this.encodeQueryString(w)+"="+this.encodeQueryString(O))}),encodeURI(L.join("&")).replace(/#/g,"%23")}encodeQueryString(e){return encodeURIComponent(e).replace(/%20/g,"+")}parse(e){var r;let o=e.split("?"),a=this.fromURLSearchParams(o.slice(1).join("?")),i=o[0].split("/search/")[1];return i==null?a:{...a,scope:(r=this.scopeMapping[i])!==null&&r!==void 0?r:a.scope}}fromURLSearchParams(e){var r,o,a,i,s,c;try{e=decodeURI(e).replace(/%23/g,"#")}catch(M){console.warn("Could not decode search request query params, fallback on raw value",M)}let d=new URLSearchParams(e),f=d.get(ae.LOCALE)==="all"?void 0:d.get(ae.LOCALE),h=((r=d.get(ae.VIRTUAL_FIELD))!==null&&r!==void 0?r:"EVERYWHERE").toUpperCase(),p=(o=d.get(ae.SORT))===null||o===void 0?void 0:o.toLowerCase(),g=(a=d.get(ae.SCOPE))!==null&&a!==void 0?a:"default",S=+((i=d.get(ae.PER_PAGE))!==null&&i!==void 0?i:this.defaultPerPage),C=d.get(ae.KEYWORD_MATCH),R=C?C.toUpperCase()===Yr.MANDATORY?Yr.MANDATORY:Yr.OPTIONAL:void 0,T={};for(let M of d.keys())S2(M)||(T[M]=d.get(M));return{contentLocale:f??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:(s=d.get(ae.QUERY))!==null&&s!==void 0?s:"",scope:(c=this.scopeMapping[g])!==null&&c!==void 0?c:"DEFAULT",virtualField:c2(h)?h:"EVERYWHERE",sortId:p,metadataFilters:this.parseCompatFilters(d),facets:[],paging:{page:1,perPage:ur(1,isNaN(S)?this.defaultPerPage:S,1e3)},keywordMatch:R,otherQueryParams:T}}parseCompatFilters(e){var r,o,a,i,s,c;let d=[];return e.has(ae.FILTERS)&&(d=this.parseValueFilters((r=e.get(ae.FILTERS))!==null&&r!==void 0?r:"")),(o=e.has(ae.PERIOD))!==null&&o!==void 0&&o&&(d=[...d,...this.parseLegacyPeriodFilter(((a=e.get(ae.PERIOD))!==null&&a!==void 0?a:"").toUpperCase())]),[...d,...this.parseValueFilters((i=e.get(ae.VALUE_FILTERS))!==null&&i!==void 0?i:""),...this.parseDateFilters((s=e.get(ae.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((c=e.get(ae.RANGE_FILTERS))!==null&&c!==void 0?c:"")]}splitUnknownFilter(e){return this.superEscapeFilters(e).split("*").map(r=>r.split("~"))}parseValueFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(r=>({key:r[0],valueFilter:{values:r[1].split("_").map(x2).map(o=>this.unescapeFilterValue(o)),negative:!1}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(r=>({key:r[0],dateFilter:{type:Ro[r[1].toUpperCase()]}}))}parseRangeFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(r=>({key:r[0],rangeFilter:{from:r[1].split("_")[0],to:r[1].split("_")[1]}}))}escapeFilters(e){for(let[r,o,a]of this.filtersEscapeMapping)e=e.replaceAll(r,o);return e}superEscapeFilters(e){for(let[r,o,a]of this.filtersEscapeMapping)e=e.replaceAll(o,a);return e}unescapeFilterValue(e){for(let[r,o,a]of this.filtersEscapeMapping)e=e.replace(a,r);return e}parseLegacyPeriodFilter(e){if(l2(e))return[{key:"ft:lastEdition",dateFilter:{type:Ro[e]}}];if(e.startsWith("CUSTOM_")){let[r,o,a]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:o,to:a}}]}return[]}};var xc={};X(xc,{toFtFormComponent:()=>vc});var bc=Symbol("elementInternals"),vc=Re(Symbol("toFtFormComponent"),function(t){class e extends t{static get formAssociated(){return!0}get form(){return this[bc].form}constructor(...o){super(o),this[bc]=this.attachInternals()}setFormValue(o){this[bc].setFormValue(o)}}return e});var Sc={};X(Sc,{DateFormatter:()=>Xr});var Xr=class{static format(e,r,o,a){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(o,a)):this.getIntlDateTime(e,r,o,a)}static getMomentDateFormat(e,r){return e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,o,a){let i=typeof e=="string"?new Date(e):e,s=new Intl.DateTimeFormat(r,{dateStyle:o?"medium":"short"}).format(i);if(!a)return s;let c=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(i);return`${s} ${c}`}static getTimezoneAsString(){let e=o=>String(Math.floor(o)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${e(Math.abs(r)/60)}:${e(Math.abs(r)%60)}`}};var Ec={};X(Ec,{ALL_KEYS_VALUE:()=>Cc,SameWindowStorageEvent:()=>_o});var Cc="__all__",_o=class extends CustomEvent{constructor(e,r,o){super("same-window-storage",{detail:{key:e,oldValue:r,newValue:o}})}keyMatch(e){return this.detail.key.includes(e)||this.detail.key==Cc}};Storage.prototype.setItem=new Proxy(Storage.prototype.setItem,{apply(t,e,r){let o=e.getItem(r[0]);Reflect.apply(t,e,r),window.dispatchEvent(new _o(r[0],o,r[1]))}});Storage.prototype.removeItem=new Proxy(Storage.prototype.removeItem,{apply(t,e,r){let o=e.getItem(r[0]);Reflect.apply(t,e,r),window.dispatchEvent(new _o(r[0],o))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(t,e,r){Reflect.apply(t,e,r),window.dispatchEvent(new _o(Cc))}});var Lc={};X(Lc,{FocusMainContentEvent:()=>Oc});var Oc=class extends Event{constructor(){super("ft-focus-main-content",{composed:!0,bubbles:!0})}};var C2={};window.FluidTopicsA11yHints={isKeyboardNavigation:!1,lastPressedKey:""};function _h(t){(t.key==="Enter"||t.key===" "||t.key==="Tab")&&(window.FluidTopicsA11yHints.isKeyboardNavigation=!0),window.FluidTopicsA11yHints.lastPressedKey=t.key}function Nh(t){window.FluidTopicsA11yHints.isKeyboardNavigation=t.detail==0}document.addEventListener("keydown",_h);document.addEventListener("click",Nh);var E2=P`
|
|
48
|
+
`;var o1={};var Fs={};X(Fs,{ParametrizedLabelResolver:()=>Vr});var Vr=class t{constructor(e,r){this.defaultLabels=e,this.labels=r}resolve(e,...r){var o,a;e=this.resolvePluralKey(e,r);let i=(a=(o=this.labels[e])!==null&&o!==void 0?o:this.defaultLabels[e])!==null&&a!==void 0?a:"";return t.replaceParameters(i,...r)}static replaceParameters(e,...r){return r.forEach((o,a)=>e=e.replace(new RegExp(`\\{${a}([^}]*)\\}`,"g"),(i,s)=>t.formatValue(o,s))),e}resolvePluralKey(e,r){for(let o of r)if(typeof o=="number"){let a=`${String(e)}[\\=${o}]`;if(a in this.labels||a in this.defaultLabels)return a}return e}static formatValue(e,r){return e instanceof Date?t.formatDate(e,r):e??""}static formatDate(e,r){let o=a=>r?.includes("date")?e.toLocaleDateString(a):r?.includes("time")?e.toLocaleTimeString(a):e.toLocaleString(a);try{return o(document.documentElement.lang)}catch{return o()}}};var uc={};X(uc,{FtCommandQueue:()=>xn,FtLitElementRedux:()=>Kr,FtReduxStore:()=>Sr,FtStateManager:()=>La,ReduxWatcher:()=>Oa,clearAllStores:()=>Ch,isFtReduxStore:()=>xo,redux:()=>Jt,reduxEventListener:()=>Hs,reduxReactive:()=>B4,watch:()=>D1,withRedux:()=>n1});var B4=()=>(t,e)=>{var r;let o=t.constructor;o.reduxReactiveProperties=new Set(o.reduxReactiveProperties),(r=o.reduxReactiveProperties)===null||r===void 0||r.add(e)},Jt=t=>{let e=t??{};return(r,o)=>{var a;let i={hasChanged:We,attribute:!1,...e};b(i)(r,o);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(o,{selector:(a=e.selector)!==null&&a!==void 0?a:c=>c[o],store:e.store})}},Hs=t=>(e,r)=>{let o=e.constructor;o.reduxEventListeners=new Map(o.reduxEventListeners),o.reduxEventListeners.set(r,t)};var xn=class{constructor(){this.queue=[]}add(e,r=!1){r&&this.clear(e.type),this.queue.push(e)}consume(e){let r=this.queue.find(o=>o.type===e);return r&&(this.queue=this.queue.filter(o=>o!==r)),r}clear(e){typeof e=="string"?this.queue=this.queue.filter(r=>r.type!==e):this.queue=this.queue.filter(r=>!e.test(r.type))}};function xo(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Sn=Symbol("internalReduxEventsUnsubscribers"),gr=Symbol("internalStoresUnsubscribers"),jr=Symbol("internalStores"),n1=Re(Symbol("withRedux"),function(t){var e,r,o;class a extends t{constructor(){super(...arguments),this[e]=new Map,this[r]=new Map,this[o]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(c=>s.has(c))&&this.updateFromStores()}getUnnamedStore(){if(this[jr].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[jr].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[jr].get(s)}addStore(s,c){var d;c=(d=c??s.name)!==null&&d!==void 0?d:"default-store",this.unsubscribeFromStore(c),this[jr].set(c,s),this.subscribeToStore(c,s),this.updateFromStores()}removeStore(s){let c=typeof s=="string"?s:s.name;this.unsubscribeFromStore(c),this[jr].delete(c)}setupStores(){this.unsubscribeFromStores(),this[jr].forEach((s,c)=>this.subscribeToStore(c,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,c)=>{let d=this.constructor.getPropertyOptions(c);if(!d?.attribute||!this.hasAttribute(typeof d?.attribute=="string"?d.attribute:c)){let f=this.getStore(s.store);f&&(s.store?this[gr].has(s.store):this[gr].size>0)&&(this[c]=s.selector(f.getState(),this))}})}subscribeToStore(s,c){var d;this[gr].set(s,c.subscribe(()=>this.updateFromStores())),this[Sn].set(s,[]),xo(c)&&c.eventBus&&((d=this.reduxConstructor.reduxEventListeners)===null||d===void 0||d.forEach((f,h)=>{if(typeof this[h]=="function"&&(!f.store||c.name===f.store)){let p=g=>this[h](g);c.addEventListener(f.eventName,p),this[Sn].get(s).push(()=>c.removeEventListener(f.eventName,p))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[gr].forEach((s,c)=>this.unsubscribeFromStore(c))}unsubscribeFromStore(s){var c;this[gr].has(s)&&this[gr].get(s)(),this[gr].delete(s),(c=this[Sn].get(s))===null||c===void 0||c.forEach(d=>d()),this[Sn].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=gr,r=jr,o=Sn,a.reduxProperties=new Map,a.reduxReactiveProperties=new Set,a.reduxEventListeners=new Map,a}),Kr=class extends n1(q){};function ht(t){for(var e=arguments.length,r=Array(e>1?e-1:0),o=1;o<e;o++)r[o-1]=arguments[o];if(0)var a,i;throw Error("[Immer] minified error nr: "+t+(r.length?" "+r.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function er(t){return!!t&&!!t[pe]}function Et(t){var e;return!!t&&(function(r){if(!r||typeof r!="object")return!1;var o=Object.getPrototypeOf(r);if(o===null)return!0;var a=Object.hasOwnProperty.call(o,"constructor")&&o.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===K4}(t)||Array.isArray(t)||!!t[f1]||!!(!((e=t.constructor)===null||e===void 0)&&e[f1])||Xs(t)||Qs(t))}function qr(t,e,r){r===void 0&&(r=!1),Eo(t)===0?(r?Object.keys:Co)(t).forEach(function(o){r&&typeof o=="symbol"||e(o,t[o],t)}):t.forEach(function(o,a){return e(a,o,t)})}function Eo(t){var e=t[pe];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Xs(t)?2:Qs(t)?3:0}function So(t,e){return Eo(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function U4(t,e){return Eo(t)===2?t.get(e):t[e]}function u1(t,e,r){var o=Eo(t);o===2?t.set(e,r):o===3?t.add(r):t[e]=r}function p1(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function Xs(t){return V4&&t instanceof Map}function Qs(t){return j4&&t instanceof Set}function yr(t){return t.o||t.t}function Js(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=g1(t);delete e[pe];for(var r=Co(e),o=0;o<r.length;o++){var a=r[o],i=e[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(e[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:t[a]})}return Object.create(Object.getPrototypeOf(t),e)}function ec(t,e){return e===void 0&&(e=!1),tc(t)||er(t)||!Et(t)||(Eo(t)>1&&(t.set=t.add=t.clear=t.delete=F4),Object.freeze(t),e&&qr(t,function(r,o){return ec(o,!0)},!0)),t}function F4(){ht(2)}function tc(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function Dt(t){var e=Ys[t];return e||ht(18,t),e}function H4(t,e){Ys[t]||(Ys[t]=e)}function Ks(){return En}function Gs(t,e){e&&(Dt("Patches"),t.u=[],t.s=[],t.v=e)}function va(t){qs(t),t.p.forEach(G4),t.p=null}function qs(t){t===En&&(En=t.l)}function a1(t){return En={p:[],l:En,h:t,m:!0,_:0}}function G4(t){var e=t[pe];e.i===0||e.i===1?e.j():e.g=!0}function Ws(t,e){e._=e.p.length;var r=e.p[0],o=t!==void 0&&t!==r;return e.h.O||Dt("ES5").S(e,t,o),o?(r[pe].P&&(va(e),ht(4)),Et(t)&&(t=xa(e,t),e.l||Sa(e,t)),e.u&&Dt("Patches").M(r[pe].t,t,e.u,e.s)):t=xa(e,r,[]),va(e),e.u&&e.v(e.u,e.s),t!==m1?t:void 0}function xa(t,e,r){if(tc(e))return e;var o=e[pe];if(!o)return qr(e,function(c,d){return i1(t,o,e,c,d,r)},!0),e;if(o.A!==t)return e;if(!o.P)return Sa(t,o.t,!0),o.t;if(!o.I){o.I=!0,o.A._--;var a=o.i===4||o.i===5?o.o=Js(o.k):o.o,i=a,s=!1;o.i===3&&(i=new Set(a),a.clear(),s=!0),qr(i,function(c,d){return i1(t,o,a,c,d,r,s)}),Sa(t,a,!1),r&&t.u&&Dt("Patches").N(o,r,t.u,t.s)}return o.o}function i1(t,e,r,o,a,i,s){if(er(a)){var c=xa(t,a,i&&e&&e.i!==3&&!So(e.R,o)?i.concat(o):void 0);if(u1(r,o,c),!er(c))return;t.m=!1}else s&&r.add(a);if(Et(a)&&!tc(a)){if(!t.h.D&&t._<1)return;xa(t,a),e&&e.A.l||Sa(t,a)}}function Sa(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&ec(e,r)}function Vs(t,e){var r=t[pe];return(r?yr(r):t)[e]}function s1(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var o=Object.getOwnPropertyDescriptor(r,e);if(o)return o;r=Object.getPrototypeOf(r)}}function br(t){t.P||(t.P=!0,t.l&&br(t.l))}function js(t){t.o||(t.o=Js(t.t))}function Zs(t,e,r){var o=Xs(e)?Dt("MapSet").F(e,r):Qs(e)?Dt("MapSet").T(e,r):t.O?function(a,i){var s=Array.isArray(a),c={i:s?1:0,A:i?i.A:Ks(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},d=c,f=On;s&&(d=[c],f=Cn);var h=Proxy.revocable(d,f),p=h.revoke,g=h.proxy;return c.k=g,c.j=p,g}(e,r):Dt("ES5").J(e,r);return(r?r.A:Ks()).p.push(o),o}function W4(t){return er(t)||ht(22,t),function e(r){if(!Et(r))return r;var o,a=r[pe],i=Eo(r);if(a){if(!a.P&&(a.i<4||!Dt("ES5").K(a)))return a.t;a.I=!0,o=c1(r,i),a.I=!1}else o=c1(r,i);return qr(o,function(s,c){a&&U4(a.t,s)===c||u1(o,s,e(c))}),i===3?new Set(o):o}(t)}function c1(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Js(t)}function h1(){function t(s,c){var d=i[s];return d?d.enumerable=c:i[s]=d={configurable:!0,enumerable:c,get:function(){var f=this[pe];return On.get(f,s)},set:function(f){var h=this[pe];On.set(h,s,f)}},d}function e(s){for(var c=s.length-1;c>=0;c--){var d=s[c][pe];if(!d.P)switch(d.i){case 5:o(d)&&br(d);break;case 4:r(d)&&br(d)}}}function r(s){for(var c=s.t,d=s.k,f=Co(d),h=f.length-1;h>=0;h--){var p=f[h];if(p!==pe){var g=c[p];if(g===void 0&&!So(c,p))return!0;var S=d[p],C=S&&S[pe];if(C?C.t!==g:!p1(S,g))return!0}}var R=!!c[pe];return f.length!==Co(c).length+(R?0:1)}function o(s){var c=s.k;if(c.length!==s.t.length)return!0;var d=Object.getOwnPropertyDescriptor(c,c.length-1);if(d&&!d.get)return!0;for(var f=0;f<c.length;f++)if(!c.hasOwnProperty(f))return!0;return!1}function a(s){s.g&&ht(3,JSON.stringify(yr(s)))}var i={};H4("ES5",{J:function(s,c){var d=Array.isArray(s),f=function(p,g){if(p){for(var S=Array(g.length),C=0;C<g.length;C++)Object.defineProperty(S,""+C,t(C,!0));return S}var R=g1(g);delete R[pe];for(var T=Co(R),M=0;M<T.length;M++){var I=T[M];R[I]=t(I,p||!!R[I].enumerable)}return Object.create(Object.getPrototypeOf(g),R)}(d,s),h={i:d?5:4,A:c?c.A:Ks(),P:!1,I:!1,R:{},l:c,t:s,k:f,o:null,g:!1,C:!1};return Object.defineProperty(f,pe,{value:h,writable:!0}),f},S:function(s,c,d){d?er(c)&&c[pe].A===s&&e(s.p):(s.u&&function f(h){if(h&&typeof h=="object"){var p=h[pe];if(p){var g=p.t,S=p.k,C=p.R,R=p.i;if(R===4)qr(S,function(O){O!==pe&&(g[O]!==void 0||So(g,O)?C[O]||f(S[O]):(C[O]=!0,br(p)))}),qr(g,function(O){S[O]!==void 0||So(S,O)||(C[O]=!1,br(p))});else if(R===5){if(o(p)&&(br(p),C.length=!0),S.length<g.length)for(var T=S.length;T<g.length;T++)C[T]=!1;else for(var M=g.length;M<S.length;M++)C[M]=!0;for(var I=Math.min(S.length,g.length),L=0;L<I;L++)S.hasOwnProperty(L)||(C[L]=!0),C[L]===void 0&&f(S[L])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?r(s):o(s)}})}var l1,En,rc=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",V4=typeof Map<"u",j4=typeof Set<"u",d1=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",m1=rc?Symbol.for("immer-nothing"):((l1={})["immer-nothing"]=!0,l1),f1=rc?Symbol.for("immer-draftable"):"__$immer_draftable",pe=rc?Symbol.for("immer-state"):"__$immer_state";var K4=""+Object.prototype.constructor,Co=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,g1=Object.getOwnPropertyDescriptors||function(t){var e={};return Co(t).forEach(function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)}),e},Ys={},On={get:function(t,e){if(e===pe)return t;var r=yr(t);if(!So(r,e))return function(a,i,s){var c,d=s1(i,s);return d?"value"in d?d.value:(c=d.get)===null||c===void 0?void 0:c.call(a.k):void 0}(t,r,e);var o=r[e];return t.I||!Et(o)?o:o===Vs(t.t,e)?(js(t),t.o[e]=Zs(t.A.h,o,t)):o},has:function(t,e){return e in yr(t)},ownKeys:function(t){return Reflect.ownKeys(yr(t))},set:function(t,e,r){var o=s1(yr(t),e);if(o?.set)return o.set.call(t.k,r),!0;if(!t.P){var a=Vs(yr(t),e),i=a?.[pe];if(i&&i.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(p1(r,a)&&(r!==void 0||So(t.t,e)))return!0;js(t),br(t)}return t.o[e]===r&&(r!==void 0||e in t.o)||Number.isNaN(r)&&Number.isNaN(t.o[e])||(t.o[e]=r,t.R[e]=!0),!0},deleteProperty:function(t,e){return Vs(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,js(t),br(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=yr(t),o=Reflect.getOwnPropertyDescriptor(r,e);return o&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:o.enumerable,value:r[e]}},defineProperty:function(){ht(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){ht(12)}},Cn={};qr(On,function(t,e){Cn[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),Cn.deleteProperty=function(t,e){return Cn.set.call(this,t,e,void 0)},Cn.set=function(t,e,r){return On.set.call(this,t[0],e,r,t[0])};var q4=function(){function t(r){var o=this;this.O=d1,this.D=!0,this.produce=function(a,i,s){if(typeof a=="function"&&typeof i!="function"){var c=i;i=a;var d=o;return function(R){var T=this;R===void 0&&(R=c);for(var M=arguments.length,I=Array(M>1?M-1:0),L=1;L<M;L++)I[L-1]=arguments[L];return d.produce(R,function(O){var w;return(w=i).call.apply(w,[T,O].concat(I))})}}var f;if(typeof i!="function"&&ht(6),s!==void 0&&typeof s!="function"&&ht(7),Et(a)){var h=a1(o),p=Zs(o,a,void 0),g=!0;try{f=i(p),g=!1}finally{g?va(h):qs(h)}return typeof Promise<"u"&&f instanceof Promise?f.then(function(R){return Gs(h,s),Ws(R,h)},function(R){throw va(h),R}):(Gs(h,s),Ws(f,h))}if(!a||typeof a!="object"){if((f=i(a))===void 0&&(f=a),f===m1&&(f=void 0),o.D&&ec(f,!0),s){var S=[],C=[];Dt("Patches").M(a,f,S,C),s(S,C)}return f}ht(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(f){for(var h=arguments.length,p=Array(h>1?h-1:0),g=1;g<h;g++)p[g-1]=arguments[g];return o.produceWithPatches(f,function(S){return a.apply(void 0,[S].concat(p))})};var s,c,d=o.produce(a,i,function(f,h){s=f,c=h});return typeof Promise<"u"&&d instanceof Promise?d.then(function(f){return[f,s,c]}):[d,s,c]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var e=t.prototype;return e.createDraft=function(r){Et(r)||ht(8),er(r)&&(r=W4(r));var o=a1(this),a=Zs(this,r,void 0);return a[pe].C=!0,qs(o),a},e.finishDraft=function(r,o){var a=r&&r[pe],i=a.A;return Gs(i,o),Ws(void 0,i)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!d1&&ht(20),this.O=r},e.applyPatches=function(r,o){var a;for(a=o.length-1;a>=0;a--){var i=o[a];if(i.path.length===0&&i.op==="replace"){r=i.value;break}}a>-1&&(o=o.slice(a+1));var s=Dt("Patches").$;return er(r)?s(r,o):this.produce(r,function(c){return s(c,o)})},t}(),at=new q4,Z4=at.produce,RS=at.produceWithPatches.bind(at),wS=at.setAutoFreeze.bind(at),_S=at.setUseProxies.bind(at),NS=at.applyPatches.bind(at),TS=at.createDraft.bind(at),kS=at.finishDraft.bind(at),Ca=Z4;function Zr(t){"@babel/helpers - typeof";return Zr=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},Zr(t)}function y1(t,e){if(Zr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var o=r.call(t,e||"default");if(Zr(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function b1(t){var e=y1(t,"string");return Zr(e)=="symbol"?e:e+""}function v1(t,e,r){return(e=b1(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function x1(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,o)}return r}function oc(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?x1(Object(r),!0).forEach(function(o){v1(t,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):x1(Object(r)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(r,o))})}return t}function Ve(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 S1=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),nc=function(){return Math.random().toString(36).substring(7).split("").join(".")},Ea={INIT:"@@redux/INIT"+nc(),REPLACE:"@@redux/REPLACE"+nc(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+nc()}};function Y4(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 ac(t,e,r){var o;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(Ve(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Ve(1));return r(ac)(t,e)}if(typeof t!="function")throw new Error(Ve(2));var a=t,i=e,s=[],c=s,d=!1;function f(){c===s&&(c=s.slice())}function h(){if(d)throw new Error(Ve(3));return i}function p(R){if(typeof R!="function")throw new Error(Ve(4));if(d)throw new Error(Ve(5));var T=!0;return f(),c.push(R),function(){if(T){if(d)throw new Error(Ve(6));T=!1,f();var I=c.indexOf(R);c.splice(I,1),s=null}}}function g(R){if(!Y4(R))throw new Error(Ve(7));if(typeof R.type>"u")throw new Error(Ve(8));if(d)throw new Error(Ve(9));try{d=!0,i=a(i,R)}finally{d=!1}for(var T=s=c,M=0;M<T.length;M++){var I=T[M];I()}return R}function S(R){if(typeof R!="function")throw new Error(Ve(10));a=R,g({type:Ea.REPLACE})}function C(){var R,T=p;return R={subscribe:function(I){if(typeof I!="object"||I===null)throw new Error(Ve(11));function L(){I.next&&I.next(h())}L();var O=T(L);return{unsubscribe:O}}},R[S1]=function(){return this},R}return g({type:Ea.INIT}),o={dispatch:g,subscribe:p,getState:h,replaceReducer:S},o[S1]=C,o}function X4(t){Object.keys(t).forEach(function(e){var r=t[e],o=r(void 0,{type:Ea.INIT});if(typeof o>"u")throw new Error(Ve(12));if(typeof r(void 0,{type:Ea.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Ve(13))})}function C1(t){for(var e=Object.keys(t),r={},o=0;o<e.length;o++){var a=e[o];typeof t[a]=="function"&&(r[a]=t[a])}var i=Object.keys(r),s,c;try{X4(r)}catch(d){c=d}return function(f,h){if(f===void 0&&(f={}),c)throw c;if(0)var p;for(var g=!1,S={},C=0;C<i.length;C++){var R=i[C],T=r[R],M=f[R],I=T(M,h);if(typeof I>"u"){var L=h&&h.type;throw new Error(Ve(14))}S[R]=I,g=g||I!==M}return g=g||i.length!==Object.keys(f).length,g?S:f}}function Oo(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.length===0?function(o){return o}:e.length===1?e[0]:e.reduce(function(o,a){return function(){return o(a.apply(void 0,arguments))}})}function E1(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(o){return function(){var a=o.apply(void 0,arguments),i=function(){throw new Error(Ve(15))},s={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},c=e.map(function(d){return d(s)});return i=Oo.apply(void 0,c)(a.dispatch),oc(oc({},a),{},{dispatch:i})}}}function O1(t){var e=function(o){var a=o.dispatch,i=o.getState;return function(s){return function(c){return typeof c=="function"?c(a,i,t):s(c)}}};return e}var L1=O1();L1.withExtraArgument=O1;var ic=L1;var N1=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,a){o.__proto__=a}||function(o,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(o[i]=a[i])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function o(){this.constructor=e}e.prototype=r===null?Object.create(r):(o.prototype=r.prototype,new o)}}(),Q4=function(t,e){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},o,a,i,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(f){return function(h){return d([f,h])}}function d(f){if(o)throw new TypeError("Generator is already executing.");for(;r;)try{if(o=1,a&&(i=f[0]&2?a.return:f[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,f[1])).done)return i;switch(a=0,i&&(f=[f[0]&2,i.value]),f[0]){case 0:case 1:i=f;break;case 4:return r.label++,{value:f[1],done:!1};case 5:r.label++,a=f[1],f=[0];continue;case 7:f=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(f[0]===6||f[0]===2)){r=0;continue}if(f[0]===3&&(!i||f[1]>i[0]&&f[1]<i[3])){r.label=f[1];break}if(f[0]===6&&r.label<i[1]){r.label=i[1],i=f;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(f);break}i[2]&&r.ops.pop(),r.trys.pop();continue}f=e.call(t,r)}catch(h){f=[6,h],a=0}finally{o=i=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},Lo=function(t,e){for(var r=0,o=e.length,a=t.length;r<o;r++,a++)t[a]=e[r];return t},J4=Object.defineProperty,eh=Object.defineProperties,th=Object.getOwnPropertyDescriptors,A1=Object.getOwnPropertySymbols,rh=Object.prototype.hasOwnProperty,oh=Object.prototype.propertyIsEnumerable,R1=function(t,e,r){return e in t?J4(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},vr=function(t,e){for(var r in e||(e={}))rh.call(e,r)&&R1(t,r,e[r]);if(A1)for(var o=0,a=A1(e);o<a.length;o++){var r=a[o];oh.call(e,r)&&R1(t,r,e[r])}return t},sc=function(t,e){return eh(t,th(e))},nh=function(t,e,r){return new Promise(function(o,a){var i=function(d){try{c(r.next(d))}catch(f){a(f)}},s=function(d){try{c(r.throw(d))}catch(f){a(f)}},c=function(d){return d.done?o(d.value):Promise.resolve(d.value).then(i,s)};c((r=r.apply(t,e)).next())})};var ah=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Oo:Oo.apply(null,arguments)},YS=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function ih(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return e===r}var sh=function(t){N1(e,t);function e(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var a=t.apply(this,r)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,Lo([void 0],r[0].concat(this)))):new(e.bind.apply(e,Lo([void 0],r.concat(this))))},e}(Array),ch=function(t){N1(e,t);function e(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var a=t.apply(this,r)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,Lo([void 0],r[0].concat(this)))):new(e.bind.apply(e,Lo([void 0],r.concat(this))))},e}(Array);function dc(t){return Et(t)?Ca(t,function(){}):t}function lh(t){return typeof t=="boolean"}function dh(){return function(e){return fh(e)}}function fh(t){t===void 0&&(t={});var e=t.thunk,r=e===void 0?!0:e,o=t.immutableCheck,a=o===void 0?!0:o,i=t.serializableCheck,s=i===void 0?!0:i,c=new sh;if(r&&(lh(r)?c.push(ic):c.push(ic.withExtraArgument(r.extraArgument))),0){if(a)var d;if(s)var f}return c}var cc=!0;function T1(t){var e=dh(),r=t||{},o=r.reducer,a=o===void 0?void 0:o,i=r.middleware,s=i===void 0?e():i,c=r.devTools,d=c===void 0?!0:c,f=r.preloadedState,h=f===void 0?void 0:f,p=r.enhancers,g=p===void 0?void 0:p,S;if(typeof a=="function")S=a;else if(ih(a))S=C1(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 C=s;if(typeof C=="function"&&(C=C(e),!cc&&!Array.isArray(C)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!cc&&C.some(function(O){return typeof O!="function"}))throw new Error("each middleware provided to configureStore must be a function");var R=E1.apply(void 0,C),T=Oo;d&&(T=ah(vr({trace:!cc},typeof d=="object"&&d)));var M=new ch(R),I=M;Array.isArray(g)?I=Lo([R],g):typeof g=="function"&&(I=g(M));var L=T.apply(void 0,I);return ac(S,h,L)}function xr(t,e){function r(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];if(e){var i=e.apply(void 0,o);if(!i)throw new Error("prepareAction did not return an object");return vr(vr({type:t,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:t,payload:o[0]}}return r.toString=function(){return""+t},r.type=t,r.match=function(o){return o.type===t},r}function k1(t){var e={},r=[],o,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 r.push({matcher:i,reducer:s}),a},addDefaultCase:function(i){return o=i,a}};return t(a),[e,r,o]}function uh(t){return typeof t=="function"}function ph(t,e,r,o){r===void 0&&(r=[]);var a=typeof e=="function"?k1(e):[e,r,o],i=a[0],s=a[1],c=a[2],d;if(uh(t))d=function(){return dc(t())};else{var f=dc(t);d=function(){return f}}function h(p,g){p===void 0&&(p=d());var S=Lo([i[g.type]],s.filter(function(C){var R=C.matcher;return R(g)}).map(function(C){var R=C.reducer;return R}));return S.filter(function(C){return!!C}).length===0&&(S=[c]),S.reduce(function(C,R){if(R)if(er(C)){var T=C,M=R(T,g);return M===void 0?C:M}else{if(Et(C))return Ca(C,function(I){return R(I,g)});var M=R(C,g);if(M===void 0){if(C===null)return C;throw Error("A case reducer on a non-draftable value must not return undefined")}return M}return C},p)}return h.getInitialState=d,h}function hh(t,e){return t+"/"+e}function M1(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof t.initialState=="function"?t.initialState:dc(t.initialState),o=t.reducers||{},a=Object.keys(o),i={},s={},c={};a.forEach(function(h){var p=o[h],g=hh(e,h),S,C;"reducer"in p?(S=p.reducer,C=p.prepare):S=p,i[h]=S,s[g]=S,c[h]=C?xr(g,C):xr(g)});function d(){var h=typeof t.extraReducers=="function"?k1(t.extraReducers):[t.extraReducers],p=h[0],g=p===void 0?{}:p,S=h[1],C=S===void 0?[]:S,R=h[2],T=R===void 0?void 0:R,M=vr(vr({},g),s);return ph(r,function(I){for(var L in M)I.addCase(L,M[L]);for(var O=0,w=C;O<w.length;O++){var $=w[O];I.addMatcher($.matcher,$.reducer)}T&&I.addDefaultCase(T)})}var f;return{name:e,reducer:function(h,p){return f||(f=d()),f(h,p)},actions:c,caseReducers:i,getInitialState:function(){return f||(f=d()),f.getInitialState()}}}var mh="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",gh=function(t){t===void 0&&(t=21);for(var e="",r=t;r--;)e+=mh[Math.random()*64|0];return e},yh=["name","message","stack","code"],lc=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),w1=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),bh=function(t){if(typeof t=="object"&&t!==null){for(var e={},r=0,o=yh;r<o.length;r++){var a=o[r];typeof t[a]=="string"&&(e[a]=t[a])}return e}return{message:String(t)}},eC=function(){function t(e,r,o){var a=xr(e+"/fulfilled",function(h,p,g,S){return{payload:h,meta:sc(vr({},S||{}),{arg:g,requestId:p,requestStatus:"fulfilled"})}}),i=xr(e+"/pending",function(h,p,g){return{payload:void 0,meta:sc(vr({},g||{}),{arg:p,requestId:h,requestStatus:"pending"})}}),s=xr(e+"/rejected",function(h,p,g,S,C){return{payload:S,error:(o&&o.serializeError||bh)(h||"Rejected"),meta:sc(vr({},C||{}),{arg:g,requestId:p,rejectedWithValue:!!S,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),c=!1,d=typeof AbortController<"u"?AbortController:function(){function h(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return h.prototype.abort=function(){},h}();function f(h){return function(p,g,S){var C=o?.idGenerator?o.idGenerator(h):gh(),R=new d,T,M=!1;function I(O){T=O,R.abort()}var L=function(){return nh(this,null,function(){var O,w,$,Z,J,Q,G;return Q4(this,function(v){switch(v.label){case 0:return v.trys.push([0,4,,5]),Z=(O=o?.condition)==null?void 0:O.call(o,h,{getState:g,extra:S}),xh(Z)?[4,Z]:[3,2];case 1:Z=v.sent(),v.label=2;case 2:if(Z===!1||R.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return M=!0,J=new Promise(function(A,F){return R.signal.addEventListener("abort",function(){return F({name:"AbortError",message:T||"Aborted"})})}),p(i(C,h,(w=o?.getPendingMeta)==null?void 0:w.call(o,{requestId:C,arg:h},{getState:g,extra:S}))),[4,Promise.race([J,Promise.resolve(r(h,{dispatch:p,getState:g,extra:S,requestId:C,signal:R.signal,abort:I,rejectWithValue:function(A,F){return new lc(A,F)},fulfillWithValue:function(A,F){return new w1(A,F)}})).then(function(A){if(A instanceof lc)throw A;return A instanceof w1?a(A.payload,C,h,A.meta):a(A,C,h)})])];case 3:return $=v.sent(),[3,5];case 4:return Q=v.sent(),$=Q instanceof lc?s(null,C,h,Q.payload,Q.meta):s(Q,C,h),[3,5];case 5:return G=o&&!o.dispatchConditionRejection&&s.match($)&&$.meta.condition,G||p($),[2,$]}})})}();return Object.assign(L,{abort:I,requestId:C,arg:h,unwrap:function(){return L.then(vh)}})}}return Object.assign(f,{pending:i,rejected:s,fulfilled:a,typePrefix:e})}return t.withTypes=function(){return t},t}();function vh(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function xh(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var P1="listener",I1="completed",z1="cancelled",tC="task-"+z1,rC="task-"+I1,oC=P1+"-"+z1,nC=P1+"-"+I1;var fc="listenerMiddleware";var aC=xr(fc+"/add"),iC=xr(fc+"/removeAll"),sC=xr(fc+"/remove");var _1,cC=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(_1||(_1=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},Sh=function(t){return function(e){setTimeout(e,t)}},lC=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Sh(10);h1();window.ftReduxStores||(window.ftReduxStores={});var Sr=class t extends Yt{static get(e){var r;let o=typeof e=="string"?e:e.name,a=typeof e=="string"?void 0:e,i=window.ftReduxStores[o];if(xo(i))return i;if(a==null)return;let s=M1({...a,reducers:(r=a.reducers)!==null&&r!==void 0?r:{}}),c=T1({reducer:(d,f)=>{if(f.type==="CLEAR_FT_REDUX_STORE"){let h=Zt(s.getInitialState());for(let p of f.keeping)h[p]=(d??h)[p];return h}else if(typeof f.type=="string"&&f.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...d,...f.overwrites};return s.reducer(d,f)}});return window.ftReduxStores[a.name]=new t(s,c,a.eventBus)}constructor(e,r,o){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new xn;let a=i=>i!=null?JSON.parse(JSON.stringify(i)):i;this.actions=new Proxy(this.reduxSlice.actions,{get:(i,s,c)=>{let d=s,f=i[d];return f?(...h)=>{let p=f(...h.map(a));return this.reduxStore.dispatch(p),p}:h=>{this.setState({[d]:a(h)})}}}),this.eventBus=o??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...e){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:e})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};function Ch(){var t;for(let e of Object.values((t=window.ftReduxStores)!==null&&t!==void 0?t:{}))xo(e)&&e.clear()}var Oa=class{constructor(e,r,o){this.store=e,this.valueSelector=r,this.callback=o}watch(){return this.stop(),this.lastValue=this.valueSelector(this.store.getState()),this.unsubscribe=this.store.subscribe(()=>{let e=this.store.getState(),r=this.valueSelector(e);We(this.lastValue,r)&&(this.callback(r,e),this.lastValue=r)}),this}stop(){return this.unsubscribe!=null&&(this.unsubscribe(),this.unsubscribe=void 0),this.lastValue=void 0,this}};function D1(t,e,r){return new Oa(t,e,r).watch()}var La=class{constructor(){this.requestConsumers=new Map}getOrCreateRequestConsumers(e){var r;return(r=this.requestConsumers.get(e))!==null&&r!==void 0?r:this.requestConsumers.set(e,new Set).get(e)}registerComponent(e,r){for(let o of r)this.getOrCreateRequestConsumers(o).add(e).size==1&&this.onNewNeededRequest(o)}unregisterComponent(e,r){for(let o of r)this.getOrCreateRequestConsumers(o).delete(e)}isRequestNeeded(e){return this.getOrCreateRequestConsumers(e).size>0}};var mc={};X(mc,{scrollHelper:()=>Eh});var pc,Aa=new Map,hc=class{lock(e,r){if(r){let o=Aa.get(r);if(o==null||o===e)return Aa.set(r,e),r}}release(e,r){r&&Aa.get(r)===e&&Aa.delete(r)}findFirstScrollableParent(e){var r;let o,a;for(let i of zi(e)){let s=i,c=this.elementCanScroll(s);if(c&&s.clientHeight&&s.clientHeight<s.scrollHeight){o=s;break}else c&&a==null&&(a=s)}return(r=o??a)!==null&&r!==void 0?r:document.body}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)&&!["contents"].includes(getComputedStyle(e).display)}catch{return!1}}getAbsoluteScrollOffset(e,r){var o,a;let i=0;for(;r&&r.offsetParent!==e.offsetParent;)i+=(o=r.offsetTop)!==null&&o!==void 0?o:0,r=r.offsetParent;return i+((a=r?.offsetTop)!==null&&a!==void 0?a:0)-e.offsetTop}computeTopOffsetRatio(e,r){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return r;default:return 0}}scrollIntoViewIfPossible(e,r){let o=this.findFirstScrollableParent(e);if(e&&this.lock(this,o)){let a=this.getAbsoluteScrollOffset(o,e),i=a-o.clientHeight+e.clientHeight,s=a,c=ur(0,(s-o.scrollTop)/(s-i),1),d=this.computeTopOffsetRatio(r?.position,c)*(i-s)+s;o.scrollTo({behavior:r?.behavior,top:d})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,o);this.release(this,o)}};window.FluidTopicsScrollHelper=(pc=window.FluidTopicsScrollHelper)!==null&&pc!==void 0?pc:new hc;var Eh=window.FluidTopicsScrollHelper;var yc={};X(yc,{SearchPlaceConverter:()=>wo,SearchPlaceQueryParams:()=>ae,isSearchPlaceQueryParams:()=>S2,serializeRequest:()=>Rh});var Lh=np(B1(),1);var U1;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(U1||(U1={}));var F1;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(F1||(F1={}));var H1;(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"})(H1||(H1={}));var G1;(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"})(G1||(G1={}));var W1;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(W1||(W1={}));var V1;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(V1||(V1={}));var j1;(function(t){t.BOOKMARK__CREATE="BOOKMARK__CREATE",t.BOOKMARK__DELETE="BOOKMARK__DELETE",t.CASE_DEFLECTION__START="CASE_DEFLECTION__START",t.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",t.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",t.CHATBOT__RATE="CHATBOT__RATE",t.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",t.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",t.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",t.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",t.DOCUMENT__PRINT="DOCUMENT__PRINT",t.DOCUMENT__PROCESS="DOCUMENT__PROCESS",t.DOCUMENT__RATE="DOCUMENT__RATE",t.DOCUMENT__SEARCH="DOCUMENT__SEARCH",t.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",t.DOCUMENT__UNRATE="DOCUMENT__UNRATE",t.FEEDBACK__SEND="FEEDBACK__SEND",t.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",t.AI__RATE="AI__RATE",t.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",t.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",t.KHUB__PROCESS="KHUB__PROCESS",t.KHUB__SEARCH="KHUB__SEARCH",t.LABELS__DOWNLOAD="LABELS__DOWNLOAD",t.LINK__SHARE="LINK__SHARE",t.PAGE__DISPLAY="PAGE__DISPLAY",t.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",t.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",t.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",t.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",t.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",t.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",t.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",t.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",t.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",t.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",t.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",t.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",t.TOPIC__RATE="TOPIC__RATE",t.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",t.TOPIC__UNRATE="TOPIC__UNRATE",t.USER__LOGIN="USER__LOGIN",t.USER__LOGOUT="USER__LOGOUT",t.HEARTBEAT="HEARTBEAT"})(j1||(j1={}));var K1;(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"})(K1||(K1={}));var q1;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT",t.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",t.LINK_PREVIEW="LINK_PREVIEW",t.UD_VIEWER="UD_VIEWER",t.ASSET_VIEWER="ASSET_VIEWER"})(q1||(q1={}));var Z1;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Z1||(Z1={}));var Y1;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Y1||(Y1={}));var X1;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(X1||(X1={}));var Q1;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Q1||(Q1={}));var J1;(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"})(J1||(J1={}));var Yr;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(Yr||(Yr={}));var e2;(function(t){t.ASC="ASC",t.DESC="DESC"})(e2||(e2={}));var t2;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(t2||(t2={}));var _a;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(_a||(_a={}));var c2=t=>Object.keys(_a).includes(t);var r2;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(r2||(r2={}));var o2;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(o2||(o2={}));var n2;(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"})(n2||(n2={}));var Ro;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Ro||(Ro={}));var l2=t=>Object.keys(Ro).includes(t);var a2;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(a2||(a2={}));var gc;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(gc||(gc={}));var i2;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(i2||(i2={}));var Le;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",t.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(Le||(Le={}));var mt;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(mt||(mt={}));var s2;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(s2||(s2={}));var d2;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(d2||(d2={}));var f2;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SUMMARY="SUMMARY",t.SEMANTIC_SEARCH="SEMANTIC_SEARCH",t.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",t.OTHER="OTHER"})(f2||(f2={}));var u2;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(u2||(u2={}));var p2;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(p2||(p2={}));var h2;(function(t){t.USER="USER",t.ASSISTANT="ASSISTANT"})(h2||(h2={}));var m2;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(m2||(m2={}));var g2;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(g2||(g2={}));var y2;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(y2||(y2={}));var Oh={[Le.PERSONAL_BOOK_SHARE_USER]:[Le.PERSONAL_BOOK_USER],[Le.HTML_EXPORT_USER]:[Le.PERSONAL_BOOK_USER],[Le.PDF_EXPORT_USER]:[Le.PERSONAL_BOOK_USER],[Le.KHUB_ADMIN]:[Le.CONTENT_PUBLISHER],[Le.ADMIN]:[Le.KHUB_ADMIN,Le.USERS_ADMIN,Le.PORTAL_ADMIN,Le.BEHAVIOR_DATA_USER],[Le.GENERATIVE_AI_EXPORT_USER]:[Le.GENERATIVE_AI_USER]};function b2(t,e){return t===e||(Oh[t]??[]).some(r=>b2(r,e))}function v2(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(o=>b2(o,e))}function Ah(t){return`"${t}"`}function x2(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function Rh(t,e){return new wo(t).serialize(e)}var ae;(function(t){t.LOCALE="content-lang",t.QUERY="query",t.SCOPE="scope",t.FILTERS="filters",t.VIRTUAL_FIELD="virtual-field",t.PERIOD="period",t.VALUE_FILTERS="value-filters",t.DATE_FILTERS="date-filters",t.RANGE_FILTERS="range-filters",t.SORT="sort",t.PER_PAGE="per-page",t.KEYWORD_MATCH="keyword-match"})(ae||(ae={}));var wh=new Set(Object.values(ae));function S2(t){return wh.has(t)}var wo=class{constructor(e,r=20,o=!1,a="en-US"){this.baseUrl=e,this.defaultPerPage=r,this.allLanguagesAllowed=o,this.defaultContentLocale=a,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"},this.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]]}serialize(e,r){return this.serializeToCurrentPageIfPossible(e,r??"/search")}serializeToCurrentPageIfPossible(e,r){let o=r==null||r.trim().length===0,a=new URL(o?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${r}`);return a.search=this.toURLSearchParams(e),a.toString()}toURLSearchParams(e,r=!1){var o,a,i,s,c,d,f,h,p,g,S;let C=new URLSearchParams;e.contentLocale?(!r||e.contentLocale!==this.defaultContentLocale)&&C.append(ae.LOCALE,e.contentLocale):C.append(ae.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((o=e.query)===null||o===void 0?void 0:o.length)>0&&C.append(ae.QUERY,e.query);let R=(i=(a=e.metadataFilters)===null||a===void 0?void 0:a.filter(O=>O.valueFilter&&!O.valueFilter.negative))!==null&&i!==void 0?i:[];if(R.length>0){let O=R.map(w=>{var $,Z;let J=((Z=($=w.valueFilter)===null||$===void 0?void 0:$.values)!==null&&Z!==void 0?Z:[]).map(Q=>this.escapeFilters(Q)).map(Q=>Ah(x2(Q))).join("_");return`${w.key}~${J}`}).join("*");C.append(ae.VALUE_FILTERS,O)}let T=(c=(s=e.metadataFilters)===null||s===void 0?void 0:s.filter(O=>O.dateFilter))!==null&&c!==void 0?c:[];if(T.length>0){let O=T.map(w=>{var $;return`${w.key}~${($=w.dateFilter)===null||$===void 0?void 0:$.type.toLowerCase()}`}).join("*");C.append(ae.DATE_FILTERS,O)}let M=(f=(d=e.metadataFilters)===null||d===void 0?void 0:d.filter(O=>O.rangeFilter))!==null&&f!==void 0?f:[];if(M.length>0){let O=M.map(w=>{var $,Z;return`${w.key}~${($=w.rangeFilter)===null||$===void 0?void 0:$.from}_${(Z=w.rangeFilter)===null||Z===void 0?void 0:Z.to}`}).join("*");C.append(ae.RANGE_FILTERS,O)}e.virtualField&&e.virtualField!=="EVERYWHERE"&&C.append(ae.VIRTUAL_FIELD,e.virtualField.toLowerCase()),e.scope&&e.scope!=="DEFAULT"&&C.append(ae.SCOPE,e.scope.toLowerCase()),e.sortId!=null&&C.append(ae.SORT,e.sortId),!((h=e.paging)===null||h===void 0)&&h.perPage&&((g=(p=e.paging)===null||p===void 0?void 0:p.perPage)!==null&&g!==void 0?g:this.defaultPerPage)!=this.defaultPerPage&&C.append(ae.PER_PAGE,String(e.paging.perPage)),e.keywordMatch!=null&&C.append(ae.KEYWORD_MATCH,e.keywordMatch.toLowerCase());let I=(S=e.otherQueryParams)!==null&&S!==void 0?S:{};for(let O in I)C.append(O,I[O]);let L=new Array;return C.forEach((O,w)=>{L.push(this.encodeQueryString(w)+"="+this.encodeQueryString(O))}),encodeURI(L.join("&")).replace(/#/g,"%23")}encodeQueryString(e){return encodeURIComponent(e).replace(/%20/g,"+")}parse(e){var r;let o=e.split("?"),a=this.fromURLSearchParams(o.slice(1).join("?")),i=o[0].split("/search/")[1];return i==null?a:{...a,scope:(r=this.scopeMapping[i])!==null&&r!==void 0?r:a.scope}}fromURLSearchParams(e){var r,o,a,i,s,c;try{e=decodeURI(e).replace(/%23/g,"#")}catch(M){console.warn("Could not decode search request query params, fallback on raw value",M)}let d=new URLSearchParams(e),f=d.get(ae.LOCALE)==="all"?void 0:d.get(ae.LOCALE),h=((r=d.get(ae.VIRTUAL_FIELD))!==null&&r!==void 0?r:"EVERYWHERE").toUpperCase(),p=(o=d.get(ae.SORT))===null||o===void 0?void 0:o.toLowerCase(),g=(a=d.get(ae.SCOPE))!==null&&a!==void 0?a:"default",S=+((i=d.get(ae.PER_PAGE))!==null&&i!==void 0?i:this.defaultPerPage),C=d.get(ae.KEYWORD_MATCH),R=C?C.toUpperCase()===Yr.MANDATORY?Yr.MANDATORY:Yr.OPTIONAL:void 0,T={};for(let M of d.keys())S2(M)||(T[M]=d.get(M));return{contentLocale:f??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:(s=d.get(ae.QUERY))!==null&&s!==void 0?s:"",scope:(c=this.scopeMapping[g])!==null&&c!==void 0?c:"DEFAULT",virtualField:c2(h)?h:"EVERYWHERE",sortId:p,metadataFilters:this.parseCompatFilters(d),facets:[],paging:{page:1,perPage:ur(1,isNaN(S)?this.defaultPerPage:S,1e3)},keywordMatch:R,otherQueryParams:T}}parseCompatFilters(e){var r,o,a,i,s,c;let d=[];return e.has(ae.FILTERS)&&(d=this.parseValueFilters((r=e.get(ae.FILTERS))!==null&&r!==void 0?r:"")),(o=e.has(ae.PERIOD))!==null&&o!==void 0&&o&&(d=[...d,...this.parseLegacyPeriodFilter(((a=e.get(ae.PERIOD))!==null&&a!==void 0?a:"").toUpperCase())]),[...d,...this.parseValueFilters((i=e.get(ae.VALUE_FILTERS))!==null&&i!==void 0?i:""),...this.parseDateFilters((s=e.get(ae.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((c=e.get(ae.RANGE_FILTERS))!==null&&c!==void 0?c:"")]}splitUnknownFilter(e){return this.superEscapeFilters(e).split("*").map(r=>r.split("~"))}parseValueFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(r=>({key:r[0],valueFilter:{values:r[1].split("_").map(x2).map(o=>this.unescapeFilterValue(o)),negative:!1}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(r=>({key:r[0],dateFilter:{type:Ro[r[1].toUpperCase()]}}))}parseRangeFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(r=>({key:r[0],rangeFilter:{from:r[1].split("_")[0],to:r[1].split("_")[1]}}))}escapeFilters(e){for(let[r,o,a]of this.filtersEscapeMapping)e=e.replaceAll(r,o);return e}superEscapeFilters(e){for(let[r,o,a]of this.filtersEscapeMapping)e=e.replaceAll(o,a);return e}unescapeFilterValue(e){for(let[r,o,a]of this.filtersEscapeMapping)e=e.replace(a,r);return e}parseLegacyPeriodFilter(e){if(l2(e))return[{key:"ft:lastEdition",dateFilter:{type:Ro[e]}}];if(e.startsWith("CUSTOM_")){let[r,o,a]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:o,to:a}}]}return[]}};var xc={};X(xc,{toFtFormComponent:()=>vc});var bc=Symbol("elementInternals"),vc=Re(Symbol("toFtFormComponent"),function(t){class e extends t{static get formAssociated(){return!0}get form(){return this[bc].form}constructor(...o){super(o),this[bc]=this.attachInternals()}setFormValue(o){this[bc].setFormValue(o)}}return e});var Sc={};X(Sc,{DateFormatter:()=>Xr});var Xr=class{static format(e,r,o,a){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(o,a)):this.getIntlDateTime(e,r,o,a)}static getMomentDateFormat(e,r){return e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,o,a){let i=typeof e=="string"?new Date(e):e,s=new Intl.DateTimeFormat(r,{dateStyle:o?"medium":"short"}).format(i);if(!a)return s;let c=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(i);return`${s} ${c}`}static getTimezoneAsString(){let e=o=>String(Math.floor(o)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${e(Math.abs(r)/60)}:${e(Math.abs(r)%60)}`}};var Ec={};X(Ec,{ALL_KEYS_VALUE:()=>Cc,SameWindowStorageEvent:()=>_o});var Cc="__all__",_o=class extends CustomEvent{constructor(e,r,o){super("same-window-storage",{detail:{key:e,oldValue:r,newValue:o}})}keyMatch(e){return this.detail.key.includes(e)||this.detail.key==Cc}};Storage.prototype.setItem=new Proxy(Storage.prototype.setItem,{apply(t,e,r){let o=e.getItem(r[0]);Reflect.apply(t,e,r),window.dispatchEvent(new _o(r[0],o,r[1]))}});Storage.prototype.removeItem=new Proxy(Storage.prototype.removeItem,{apply(t,e,r){let o=e.getItem(r[0]);Reflect.apply(t,e,r),window.dispatchEvent(new _o(r[0],o))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(t,e,r){Reflect.apply(t,e,r),window.dispatchEvent(new _o(Cc))}});var Lc={};X(Lc,{FocusMainContentEvent:()=>Oc});var Oc=class extends Event{constructor(){super("ft-focus-main-content",{composed:!0,bubbles:!0})}};var C2={};window.FluidTopicsA11yHints={isKeyboardNavigation:!1,lastPressedKey:""};function _h(t){(t.key==="Enter"||t.key===" "||t.key==="Tab")&&(window.FluidTopicsA11yHints.isKeyboardNavigation=!0),window.FluidTopicsA11yHints.lastPressedKey=t.key}function Nh(t){window.FluidTopicsA11yHints.isKeyboardNavigation=t.detail==0}document.addEventListener("keydown",_h);document.addEventListener("click",Nh);var E2=P`
|
|
49
49
|
.sr-only {
|
|
50
50
|
position:absolute;
|
|
51
51
|
left:-10000px;
|
|
@@ -704,7 +704,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
704
704
|
</div>
|
|
705
705
|
</div>
|
|
706
706
|
</div>
|
|
707
|
-
`}setupFor(e){this.eventsTarget!==e&&(this.removeHandlers(),this.eventsTarget=e,this.eventsTarget.addEventListener("mouseover",this.onHover,{passive:!0}),this.eventsTarget.addEventListener("mouseleave",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("focusin",this.onFocusIn,{passive:!0}),this.eventsTarget.addEventListener("focusout",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("touchstart",this.onTouch,{passive:!0}),this.eventsTarget.addEventListener("click",this.onClick,{passive:!0}))}removeHandlers(){this.eventsTarget&&(this.eventsTarget.removeEventListener("mouseover",this.onHover),this.eventsTarget.removeEventListener("mouseleave",this.onOut),this.eventsTarget.removeEventListener("focusin",this.onFocusIn),this.eventsTarget.removeEventListener("focusout",this.onOut),this.eventsTarget.removeEventListener("touchstart",this.onTouch),this.eventsTarget.removeEventListener("click",this.onClick),this.eventsTarget=void 0)}defaultSetup(){this.container&&this.setupFor(this.container)}updated(e){var r,o;e.has("visible")&&(this.visible?(this.resetTooltipContent(),(r=this.tooltip)===null||r===void 0||r.showPopover()):(o=this.tooltip)===null||o===void 0||o.hidePopover()),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(r=>e.has(r))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}async showTemporaryText(e,r){let o=this.manual;this.manual=!0;let a=this.text;this.text={message:e},await this.show(r),this.text=a,this.manual=o}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&Rs(this.slottedElement,this.tooltip,{placement:this.position,strategy:"fixed"}).then(({x:e,y:r})=>{this.tooltip&&(this.tooltip.style.transform=`translate(${e}px,${r}px)`)}),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${z.transitionDuration}, left ${z.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}isIgnored(e){return this.manual||Ii(e,this.ignoreMatchingElements,this.eventsTarget)}};Ne.elementDefinitions={"ft-typography":ce};Ne.styles=ef;Lt([ff()],Ne.prototype,"text",void 0);Lt([b({type:Boolean})],Ne.prototype,"manual",void 0);Lt([b({type:Boolean})],Ne.prototype,"inline",void 0);Lt([kt()],Ne.prototype,"delay",void 0);Lt([b()],Ne.prototype,"position",void 0);Lt([we([])],Ne.prototype,"ignoreMatchingElements",void 0);Lt([wi()],Ne.prototype,"slotNodes",void 0);Lt([j(".ft-tooltip--container")],Ne.prototype,"container",void 0);Lt([j(".ft-tooltip")],Ne.prototype,"tooltip",void 0);Lt([j(".ft-tooltip--content")],Ne.prototype,"tooltipContent",void 0);Lt([K()],Ne.prototype,"visible",void 0);Y("ft-tooltip")(Ne);var gt;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(gt||(gt={}));var ct;(function(t){t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.BOOKS="",t.MENU="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.HOME="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.EXPORT="",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.USER="",t.EXTLINK="",t.CALENDAR="",t.CLOUD_SLASH="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.STAR_PLAIN="",t.TOPICS="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN="",t.ADMIN_KHUB="",t.ADMIN_THEME="",t.ADMIN_USERS="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.INFO="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.FACET_HAS_DESCENDANT="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.THIN_ARROW="",t.SIGN_IN="",t.LOGOUT="",t.TRANSLATE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.ARTICLE="",t.COLUMNS="",t.ANALYTICS="",t.COLLECTIONS="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SEARCH_IN_PUBLICATION="",t.COPY_TO_CLIPBOARD="",t.SHARED_PBK="",t.ATTACHMENTS="",t.STRIPE_ARROW_LEFT="",t.STRIPE_ARROW_RIGHT="",t.FILTERS="",t.DOT="",t.MINUS="",t.PLUS="",t.MAILS_AND_NOTIFICATIONS="",t.SAVE="",t.LOCKER="",t.ADMIN_INTEGRATION="",t.SYNC="",t.TAG="",t.BOOK_PLAIN="",t.UPLOAD="",t.CLOUD="",t.TAG_PLAIN="",t.ACCOUNT_SETTINGS="",t.PRINT="",t.DEFAULT_ROLES="",t.SHORTCUT_MENU="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.PAUSE="",t.PLAY="",t.ADMIN_PORTAL="",t.STAR="",t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.FEEDBACK_PLAIN="",t.RATE_PLAIN="",t.RATE="",t.OFFLINE_SETTINGS="",t.MY_COLLECTIONS="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.RESET="",t.MY_LIBRARY="",t.UNSTRUCTURED_DOC="",t.CONTEXTUAL="",t.THIN_ARROW_UP="",t.ARROW_RIGHT_TO_LINE="",t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.LINE_CHART="",t.STACKED_CHART="",t.CHART_BAR_STACKED="",t.CHART_BAR_GROUPED="",t.EYE_SLASH="",t.X_MARK="",t.EXPAND_WIDE="",t.PIP="",t.PIP_WIDE="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.EXTLINK_LIGHT="",t.CLONE="",t.CLONE_LINK_SIMPLE="",t.CHART_BAR_NORMALIZED="",t.CONSUMER="",t.OCTAGON_XMARK="",t.HOURGLASS_HALF="",t.CLOCK="",t.CLOCK_THREE="",t.CALENDAR_DAY="",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="",t.WAND_MAGIC_SPARKLES="",t.PAPER_PLANE="",t.ARROW_ROTATE_RIGHT="",t.ARROWS_ROTATE="",t.ALIGN_RIGHT="",t.FORMAT_CLEAR="",t.ALIGN_CENTER="",t.ALIGN_LEFT="",t.PALETTE="",t.BOLD="",t.ITALIC="",t.UNDERLINE="",t.STRIKETHROUGH="",t.LINK_SIMPLE_SLASH="",t.LINK_SIMPLE="",t.ROUTE="",t.CIRCLE_USER_SLASH="",t.CIRCLE_USER_CHECK="",t.LIST_MAGNIFYING_GLASS="",t.MEDAL="",t.THUMBS_UP_THUMBS_DOWN_SOLID="",t.ARROW_TURN_DOWN_RIGHT="",t.FLASK="",t.LOCK_KEYHOLE_OPEN_SOLID="",t.HOURGLASS_END="",t.CIRCLE_QUESTION="",t.GRIP_LINES_SOLID="",t.TRANSLATE_SPARKLE_SOLID="",t.CODE="",t.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="",t.PAPER_PLANE_SLASH="",t.COMPRESS="",t.EXPAND="",t.ARROW_ROTATE_LEFT="",t.EYE="",t.SHARE="󨃱",t.MOBILE_SMALL="",t.SPARKLES="",t.HAND_SOLID="",t.CLOCK_SOLID="",t.CONTEXT_MENU_CURSOR="",t.LANGUAGE_SLASH="",t.MAGNIFYING_GLASS_FLOPPY_DISK="",t.CABINET_FILING_FLOPPY_DISK="",t.BOOKMARK_SLASH="",t.CIRCLE_PAUSE="",t.CIRCLE_PLAY="",t.CIRCLE_STOP_PLAIN="",t.CIRCLE_ARROW_DOWN="",t.CIRCLE_ARROW_DOWN_SLASH="",t.SHARE_NODES="",t.BELL="",t.BELL_SLASH="",t.FILE="",t.HAND="",t.SQUARE_INFO_SOLID="",t.FILE_CODE="",t.BOX_CODE="",t.TOPICS_SOLID="",t.PHOTO_FILM_REGULAR="",t.HYPHEN_SOLID="",t.CROSSHAIRS_REGULAR="",t.PERSON_CHALKBOARD_REGULAR=""})(ct||(ct={}));var D;(function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""})(D||(D={}));var Hw=new Map([...["abw"].map(t=>[t,D.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(t=>[t,D.AUDIO]),...["avi"].map(t=>[t,D.AVI]),...["chm","xhs"].map(t=>[t,D.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(t=>[t,D.CODE]),...["csv"].map(t=>[t,D.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,D.DITA]),...["epub"].map(t=>[t,D.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,D.EXCEL]),...["flac"].map(t=>[t,D.FLAC]),...["gif"].map(t=>[t,D.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,D.GZIP]),...["html","htm","xhtml"].map(t=>[t,D.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(t=>[t,D.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,D.JPEG]),...["json"].map(t=>[t,D.JSON]),...["m4a","m4p"].map(t=>[t,D.M4A]),...["mov","qt"].map(t=>[t,D.MOV]),...["mp3"].map(t=>[t,D.MP3]),...["mp4","m4v"].map(t=>[t,D.MP4]),...["ogg","oga"].map(t=>[t,D.OGG]),...["pdf","ps"].map(t=>[t,D.PDF]),...["png"].map(t=>[t,D.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,D.POWERPOINT]),...["rar"].map(t=>[t,D.RAR]),...["stp"].map(t=>[t,D.STP]),...["txt","rtf","md","mdown"].map(t=>[t,D.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(t=>[t,D.VIDEO]),...["wav"].map(t=>[t,D.WAV]),...["wma"].map(t=>[t,D.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,D.WORD]),...["xml","xsl","rdf"].map(t=>[t,D.XML]),...["yaml","yml","x-yaml"].map(t=>[t,D.YAML]),...["zip"].map(t=>[t,D.ZIP])]);var Gw={[D.ABW]:"#91ABC6",[D.AUDIO]:"#1795E3",[D.AVI]:"#E63324",[D.CHM]:"#71C3EB",[D.CODE]:"#71C3EB",[D.CSV]:"#1F7345",[D.DITA]:"#71C3EB",[D.EPUB]:"#85B926",[D.EXCEL]:"#1F7345",[D.FLAC]:"#1795E3",[D.GIF]:"#59B031",[D.GZIP]:"#F8AB36",[D.HTML]:"#71C3EB",[D.IMAGE]:"#59B031",[D.JPEG]:"#59B031",[D.JSON]:"#71C3EB",[D.M4A]:"#1795E3",[D.MOV]:"#E63324",[D.MP3]:"#1795E3",[D.MP4]:"#E63324",[D.OGG]:"#1795E3",[D.PDF]:"#E44948",[D.PNG]:"#59B031",[D.POWERPOINT]:"#B54A2B",[D.RAR]:"#F8AB36",[D.STP]:"#3764B1",[D.TEXT]:"#3162AB",[D.UNKNOWN]:"#999999",[D.VIDEO]:"#E63324",[D.WAV]:"#1795E3",[D.WMA]:"#1795E3",[D.WORD]:"#3162AB",[D.XML]:"#71C3EB",[D.YAML]:"#71C3EB",[D.ZIP]:"#F8AB36"};var kn=function(t,e,r,o){var a=arguments.length,i=a<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,r,o);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(i=(a<3?s(i):a>3?s(e,r,i):s(e,r))||i);return a>3&&i&&Object.defineProperty(e,r,i),i},Te=class extends q{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=V}render(){let e=this.variant&&Object.values(gt).includes(this.variant)?this.variant:gt.fluid_topics,r=e!==gt.material||!!this.value;return N`
|
|
707
|
+
`}setupFor(e){this.eventsTarget!==e&&(this.removeHandlers(),this.eventsTarget=e,this.eventsTarget.addEventListener("mouseover",this.onHover,{passive:!0}),this.eventsTarget.addEventListener("mouseleave",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("focusin",this.onFocusIn,{passive:!0}),this.eventsTarget.addEventListener("focusout",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("touchstart",this.onTouch,{passive:!0}),this.eventsTarget.addEventListener("click",this.onClick,{passive:!0}))}removeHandlers(){this.eventsTarget&&(this.eventsTarget.removeEventListener("mouseover",this.onHover),this.eventsTarget.removeEventListener("mouseleave",this.onOut),this.eventsTarget.removeEventListener("focusin",this.onFocusIn),this.eventsTarget.removeEventListener("focusout",this.onOut),this.eventsTarget.removeEventListener("touchstart",this.onTouch),this.eventsTarget.removeEventListener("click",this.onClick),this.eventsTarget=void 0)}defaultSetup(){this.container&&this.setupFor(this.container)}updated(e){var r,o;e.has("visible")&&(this.visible?(this.resetTooltipContent(),(r=this.tooltip)===null||r===void 0||r.showPopover()):(o=this.tooltip)===null||o===void 0||o.hidePopover()),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(r=>e.has(r))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}async showTemporaryText(e,r){let o=this.manual;this.manual=!0;let a=this.text;this.text={message:e},await this.show(r),this.text=a,this.manual=o}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&Rs(this.slottedElement,this.tooltip,{placement:this.position,strategy:"fixed"}).then(({x:e,y:r})=>{this.tooltip&&(this.tooltip.style.transform=`translate(${e}px,${r}px)`)}),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${z.transitionDuration}, left ${z.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}isIgnored(e){return this.manual||Ii(e,this.ignoreMatchingElements,this.eventsTarget)}};Ne.elementDefinitions={"ft-typography":ce};Ne.styles=ef;Lt([ff()],Ne.prototype,"text",void 0);Lt([b({type:Boolean})],Ne.prototype,"manual",void 0);Lt([b({type:Boolean})],Ne.prototype,"inline",void 0);Lt([kt()],Ne.prototype,"delay",void 0);Lt([b()],Ne.prototype,"position",void 0);Lt([we([])],Ne.prototype,"ignoreMatchingElements",void 0);Lt([wi()],Ne.prototype,"slotNodes",void 0);Lt([j(".ft-tooltip--container")],Ne.prototype,"container",void 0);Lt([j(".ft-tooltip")],Ne.prototype,"tooltip",void 0);Lt([j(".ft-tooltip--content")],Ne.prototype,"tooltipContent",void 0);Lt([K()],Ne.prototype,"visible",void 0);Y("ft-tooltip")(Ne);var gt;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(gt||(gt={}));var ct;(function(t){t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.BOOKS="",t.MENU="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.HOME="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.EXPORT="",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.USER="",t.EXTLINK="",t.CALENDAR="",t.OFFLINE="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.STAR_PLAIN="",t.TOPICS="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN="",t.ADMIN_KHUB="",t.ADMIN_THEME="",t.ADMIN_USERS="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.INFO="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.FACET_HAS_DESCENDANT="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.THIN_ARROW="",t.SIGN_IN="",t.LOGOUT="",t.TRANSLATE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.ARTICLE="",t.COLUMNS="",t.ANALYTICS="",t.COLLECTIONS="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SEARCH_IN_PUBLICATION="",t.COPY_TO_CLIPBOARD="",t.SHARED_PBK="",t.ATTACHMENTS="",t.STRIPE_ARROW_LEFT="",t.STRIPE_ARROW_RIGHT="",t.FILTERS="",t.DOT="",t.MINUS="",t.PLUS="",t.MAILS_AND_NOTIFICATIONS="",t.SAVE="",t.LOCKER="",t.ADMIN_INTEGRATION="",t.SYNC="",t.TAG="",t.BOOK_PLAIN="",t.UPLOAD="",t.ONLINE="",t.TAG_PLAIN="",t.ACCOUNT_SETTINGS="",t.PRINT="",t.DEFAULT_ROLES="",t.SHORTCUT_MENU="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.PAUSE="",t.PLAY="",t.ADMIN_PORTAL="",t.STAR="",t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.FEEDBACK_PLAIN="",t.RATE_PLAIN="",t.RATE="",t.OFFLINE_SETTINGS="",t.MY_COLLECTIONS="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.RESET="",t.MY_LIBRARY="",t.UNSTRUCTURED_DOC="",t.CONTEXTUAL="",t.THIN_ARROW_UP="",t.ARROW_RIGHT_TO_LINE="",t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.LINE_CHART="",t.STACKED_CHART="",t.CHART_BAR_STACKED="",t.CHART_BAR_GROUPED="",t.EYE_SLASH="",t.X_MARK="",t.EXPAND_WIDE="",t.PIP="",t.PIP_WIDE="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.EXTLINK_LIGHT="",t.CLONE="",t.CLONE_LINK_SIMPLE="",t.CHART_BAR_NORMALIZED="",t.CONSUMER="",t.OCTAGON_XMARK="",t.HOURGLASS_HALF="",t.CLOCK="",t.CLOCK_THREE="",t.CALENDAR_DAY="",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="",t.WAND_MAGIC_SPARKLES="",t.PAPER_PLANE="",t.CIRCLE_STOP="",t.ARROW_ROTATE_RIGHT="",t.ARROWS_ROTATE="",t.ALIGN_RIGHT="",t.FORMAT_CLEAR="",t.ALIGN_CENTER="",t.ALIGN_LEFT="",t.PALETTE="",t.BOLD="",t.ITALIC="",t.UNDERLINE="",t.STRIKETHROUGH="",t.LINK_SIMPLE_SLASH="",t.LINK_SIMPLE="",t.ROUTE="",t.CIRCLE_USER_SLASH="",t.CIRCLE_USER_CHECK="",t.LIST_MAGNIFYING_GLASS="",t.MEDAL="",t.THUMBS_UP_THUMBS_DOWN_SOLID="",t.ARROW_TURN_DOWN_RIGHT="",t.FLASK="",t.LOCK_KEYHOLE_OPEN_SOLID="",t.HOURGLASS_END="",t.CIRCLE_QUESTION="",t.GRIP_LINES_SOLID="",t.TRANSLATE_SPARKLE_SOLID="",t.CODE="",t.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="",t.PAPER_PLANE_SLASH="",t.COMPRESS="",t.EXPAND="",t.ARROW_ROTATE_LEFT="",t.EYE="",t.SHARE="󨃱",t.MOBILE_SMALL="",t.SPARKLES="",t.HAND_SOLID="",t.CLOCK_SOLID="",t.CONTEXT_MENU_CURSOR="",t.LANGUAGE_SLASH="",t.MAGNIFYING_GLASS_FLOPPY_DISK="",t.CABINET_FILING_FLOPPY_DISK="",t.BOOKMARK_SLASH="",t.CIRCLE_PAUSE="",t.CIRCLE_PLAY="",t.CIRCLE_STOP_PLAIN="",t.CLOUD_ARROW_DOWN="",t.SHARE_NODES="",t.BELL="",t.BELL_SLASH="",t.FILE="",t.HAND="",t.SQUARE_INFO_SOLID="",t.FILE_CODE="",t.BOX_CODE="",t.TOPICS_SOLID="",t.PHOTO_FILM_REGULAR="",t.HYPHEN_SOLID="",t.CROSSHAIRS_REGULAR="",t.PERSON_CHALKBOARD_REGULAR=""})(ct||(ct={}));var D;(function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""})(D||(D={}));var Hw=new Map([...["abw"].map(t=>[t,D.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(t=>[t,D.AUDIO]),...["avi"].map(t=>[t,D.AVI]),...["chm","xhs"].map(t=>[t,D.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(t=>[t,D.CODE]),...["csv"].map(t=>[t,D.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,D.DITA]),...["epub"].map(t=>[t,D.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,D.EXCEL]),...["flac"].map(t=>[t,D.FLAC]),...["gif"].map(t=>[t,D.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,D.GZIP]),...["html","htm","xhtml"].map(t=>[t,D.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(t=>[t,D.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,D.JPEG]),...["json"].map(t=>[t,D.JSON]),...["m4a","m4p"].map(t=>[t,D.M4A]),...["mov","qt"].map(t=>[t,D.MOV]),...["mp3"].map(t=>[t,D.MP3]),...["mp4","m4v"].map(t=>[t,D.MP4]),...["ogg","oga"].map(t=>[t,D.OGG]),...["pdf","ps"].map(t=>[t,D.PDF]),...["png"].map(t=>[t,D.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,D.POWERPOINT]),...["rar"].map(t=>[t,D.RAR]),...["stp"].map(t=>[t,D.STP]),...["txt","rtf","md","mdown"].map(t=>[t,D.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(t=>[t,D.VIDEO]),...["wav"].map(t=>[t,D.WAV]),...["wma"].map(t=>[t,D.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,D.WORD]),...["xml","xsl","rdf"].map(t=>[t,D.XML]),...["yaml","yml","x-yaml"].map(t=>[t,D.YAML]),...["zip"].map(t=>[t,D.ZIP])]);var Gw={[D.ABW]:"#91ABC6",[D.AUDIO]:"#1795E3",[D.AVI]:"#E63324",[D.CHM]:"#71C3EB",[D.CODE]:"#71C3EB",[D.CSV]:"#1F7345",[D.DITA]:"#71C3EB",[D.EPUB]:"#85B926",[D.EXCEL]:"#1F7345",[D.FLAC]:"#1795E3",[D.GIF]:"#59B031",[D.GZIP]:"#F8AB36",[D.HTML]:"#71C3EB",[D.IMAGE]:"#59B031",[D.JPEG]:"#59B031",[D.JSON]:"#71C3EB",[D.M4A]:"#1795E3",[D.MOV]:"#E63324",[D.MP3]:"#1795E3",[D.MP4]:"#E63324",[D.OGG]:"#1795E3",[D.PDF]:"#E44948",[D.PNG]:"#59B031",[D.POWERPOINT]:"#B54A2B",[D.RAR]:"#F8AB36",[D.STP]:"#3764B1",[D.TEXT]:"#3162AB",[D.UNKNOWN]:"#999999",[D.VIDEO]:"#E63324",[D.WAV]:"#1795E3",[D.WMA]:"#1795E3",[D.WORD]:"#3162AB",[D.XML]:"#71C3EB",[D.YAML]:"#71C3EB",[D.ZIP]:"#F8AB36"};var kn=function(t,e,r,o){var a=arguments.length,i=a<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,r,o);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(i=(a<3?s(i):a>3?s(e,r,i):s(e,r))||i);return a>3&&i&&Object.defineProperty(e,r,i),i},Te=class extends q{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=V}render(){let e=this.variant&&Object.values(gt).includes(this.variant)?this.variant:gt.fluid_topics,r=e!==gt.material||!!this.value;return N`
|
|
708
708
|
<i class="ft-icon ft-icon--${e} ft-no-text-select" part="icon icon-${e}">
|
|
709
709
|
${cn(this.resolvedIcon)}
|
|
710
710
|
<slot ?hidden=${r}></slot>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-search-facet",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.11",
|
|
4
4
|
"description": "Search facet for integrated search component",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,16 +19,16 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-filter": "2.0.
|
|
23
|
-
"@fluid-topics/ft-i18n": "2.0.
|
|
24
|
-
"@fluid-topics/ft-search-context": "2.0.
|
|
25
|
-
"@fluid-topics/ft-tree-selector": "2.0.
|
|
26
|
-
"@fluid-topics/ft-typography": "2.0.
|
|
27
|
-
"@fluid-topics/ft-wc-utils": "2.0.
|
|
22
|
+
"@fluid-topics/ft-filter": "2.0.11",
|
|
23
|
+
"@fluid-topics/ft-i18n": "2.0.11",
|
|
24
|
+
"@fluid-topics/ft-search-context": "2.0.11",
|
|
25
|
+
"@fluid-topics/ft-tree-selector": "2.0.11",
|
|
26
|
+
"@fluid-topics/ft-typography": "2.0.11",
|
|
27
|
+
"@fluid-topics/ft-wc-utils": "2.0.11",
|
|
28
28
|
"lit": "3.1.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@fluid-topics/public-api": "1.0.
|
|
31
|
+
"@fluid-topics/public-api": "1.0.117"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "aedc97fb65c7bafd16b7adef8218a58f59fea690"
|
|
34
34
|
}
|