@fluid-topics/ft-reader-topic-metadata 1.3.54 → 1.3.55

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -45,7 +45,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
45
45
  input::-webkit-search-results-decoration {
46
46
  display: none;
47
47
  }
48
- `;var yl={};var ea={};K(ea,{ParametrizedLabelResolver:()=>no});var no=class t{constructor(e,o){this.defaultLabels=e,this.labels=o}resolve(e,...o){var n,i;e=this.resolvePluralKey(e,o);let a=(i=(n=this.labels[e])!==null&&n!==void 0?n:this.defaultLabels[e])!==null&&i!==void 0?i:"";return t.replaceParameters(a,...o)}static replaceParameters(e,...o){return o.forEach((n,i)=>e=e.replace(new RegExp(`\\{${i}([^}]*)\\}`,"g"),(a,s)=>t.formatValue(n,s))),e}resolvePluralKey(e,o){for(let n of o)if(typeof n=="number"){let i=`${String(e)}[\\=${n}]`;if(i in this.labels||i in this.defaultLabels)return i}return e}static formatValue(e,o){return e instanceof Date?t.formatDate(e,o):e??""}static formatDate(e,o){let n=i=>o?.includes("date")?e.toLocaleDateString(i):o?.includes("time")?e.toLocaleTimeString(i):e.toLocaleString(i);try{return n(document.documentElement.lang)}catch{return n()}}};var Aa={};K(Aa,{FtCommandQueue:()=>io,FtLitElementRedux:()=>Ft,FtReduxStore:()=>Wt,FtStateManager:()=>Ea,ReduxWatcher:()=>vn,clearAllStores:()=>pf,isFtReduxStore:()=>pr,redux:()=>dr,reduxEventListener:()=>Ru,reduxReactive:()=>wu,watch:()=>uf,withRedux:()=>ml});var wu=()=>(t,e)=>{var o;let n=t.constructor;n.reduxReactiveProperties=new Set(n.reduxReactiveProperties),(o=n.reduxReactiveProperties)===null||o===void 0||o.add(e)},dr=t=>{let e=t??{};return(o,n)=>{var i;let a={hasChanged:at,attribute:!1,...e};S(a)(o,n);let s=o.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(n,{selector:(i=e.selector)!==null&&i!==void 0?i:l=>l[n],store:e.store})}},Ru=t=>(e,o)=>{let n=e.constructor;n.reduxEventListeners=new Map(n.reduxEventListeners),n.reduxEventListeners.set(o,t)};var io=class{constructor(){this.queue=[]}add(e,o=!1){o&&this.clear(e.type),this.queue.push(e)}consume(e){let o=this.queue.find(n=>n.type===e);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}clear(e){typeof e=="string"?this.queue=this.queue.filter(o=>o.type!==e):this.queue=this.queue.filter(o=>!e.test(o.type))}};function pr(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var ao=Symbol("internalReduxEventsUnsubscribers"),vt=Symbol("internalStoresUnsubscribers"),Ut=Symbol("internalStores"),ml=ae(Symbol("withRedux"),function(t){var e,o,n;class i extends t{constructor(){super(...arguments),this[e]=new Map,this[o]=new Map,this[n]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(l=>s.has(l))&&this.updateFromStores()}getUnnamedStore(){if(this[Ut].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ut].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[Ut].get(s)}addStore(s,l){var d;l=(d=l??s.name)!==null&&d!==void 0?d:"default-store",this.unsubscribeFromStore(l),this[Ut].set(l,s),this.subscribeToStore(l,s),this.updateFromStores()}removeStore(s){let l=typeof s=="string"?s:s.name;this.unsubscribeFromStore(l),this[Ut].delete(l)}setupStores(){this.unsubscribeFromStores(),this[Ut].forEach((s,l)=>this.subscribeToStore(l,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,l)=>{let d=this.constructor.getPropertyOptions(l);if(!d?.attribute||!this.hasAttribute(typeof d?.attribute=="string"?d.attribute:l)){let u=this.getStore(s.store);u&&(s.store?this[vt].has(s.store):this[vt].size>0)&&(this[l]=s.selector(u.getState(),this))}})}subscribeToStore(s,l){var d;this[vt].set(s,l.subscribe(()=>this.updateFromStores())),this[ao].set(s,[]),pr(l)&&l.eventBus&&((d=this.reduxConstructor.reduxEventListeners)===null||d===void 0||d.forEach((u,h)=>{if(typeof this[h]=="function"&&(!u.store||l.name===u.store)){let f=y=>this[h](y);l.addEventListener(u.eventName,f),this[ao].get(s).push(()=>l.removeEventListener(u.eventName,f))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[vt].forEach((s,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(s){var l;this[vt].has(s)&&this[vt].get(s)(),this[vt].delete(s),(l=this[ao].get(s))===null||l===void 0||l.forEach(d=>d()),this[ao].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=vt,o=Ut,n=ao,i.reduxProperties=new Map,i.reduxReactiveProperties=new Set,i.reduxEventListeners=new Map,i}),Ft=class extends ml(q){};function ke(t){for(var e=arguments.length,o=Array(e>1?e-1:0),n=1;n<e;n++)o[n-1]=arguments[n];if(0)var i,a;throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function ft(t){return!!t&&!!t[te]}function Ge(t){var e;return!!t&&(function(o){if(!o||typeof o!="object")return!1;var n=Object.getPrototypeOf(o);if(n===null)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===Du}(t)||Array.isArray(t)||!!t[Ol]||!!(!((e=t.constructor)===null||e===void 0)&&e[Ol])||ca(t)||da(t))}function Ht(t,e,o){o===void 0&&(o=!1),hr(t)===0?(o?Object.keys:fr)(t).forEach(function(n){o&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,i){return e(i,n,t)})}function hr(t){var e=t[te];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:ca(t)?2:da(t)?3:0}function ur(t,e){return hr(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Tu(t,e){return hr(t)===2?t.get(e):t[e]}function El(t,e,o){var n=hr(t);n===2?t.set(e,o):n===3?t.add(o):t[e]=o}function Al(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function ca(t){return Pu&&t instanceof Map}function da(t){return ku&&t instanceof Set}function St(t){return t.o||t.t}function pa(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Tl(t);delete e[te];for(var o=fr(e),n=0;n<o.length;n++){var i=o[n],a=e[i];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:t[i]})}return Object.create(Object.getPrototypeOf(t),e)}function ua(t,e){return e===void 0&&(e=!1),fa(t)||ft(t)||!Ge(t)||(hr(t)>1&&(t.set=t.add=t.clear=t.delete=Lu),Object.freeze(t),e&&Ht(t,function(o,n){return ua(n,!0)},!0)),t}function Lu(){ke(2)}function fa(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function tt(t){var e=la[t];return e||ke(18,t),e}function _u(t,e){la[t]||(la[t]=e)}function ia(){return lo}function ta(t,e){e&&(tt("Patches"),t.u=[],t.s=[],t.v=e)}function yn(t){aa(t),t.p.forEach(Nu),t.p=null}function aa(t){t===lo&&(lo=t.l)}function gl(t){return lo={p:[],l:lo,h:t,m:!0,_:0}}function Nu(t){var e=t[te];e.i===0||e.i===1?e.j():e.g=!0}function ra(t,e){e._=e.p.length;var o=e.p[0],n=t!==void 0&&t!==o;return e.h.O||tt("ES5").S(e,t,n),n?(o[te].P&&(yn(e),ke(4)),Ge(t)&&(t=mn(e,t),e.l||gn(e,t)),e.u&&tt("Patches").M(o[te].t,t,e.u,e.s)):t=mn(e,o,[]),yn(e),e.u&&e.v(e.u,e.s),t!==Rl?t:void 0}function mn(t,e,o){if(fa(e))return e;var n=e[te];if(!n)return Ht(e,function(l,d){return bl(t,n,e,l,d,o)},!0),e;if(n.A!==t)return e;if(!n.P)return gn(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=pa(n.k):n.o,a=i,s=!1;n.i===3&&(a=new Set(i),i.clear(),s=!0),Ht(a,function(l,d){return bl(t,n,i,l,d,o,s)}),gn(t,i,!1),o&&t.u&&tt("Patches").N(n,o,t.u,t.s)}return n.o}function bl(t,e,o,n,i,a,s){if(ft(i)){var l=mn(t,i,a&&e&&e.i!==3&&!ur(e.R,n)?a.concat(n):void 0);if(El(o,n,l),!ft(l))return;t.m=!1}else s&&o.add(i);if(Ge(i)&&!fa(i)){if(!t.h.D&&t._<1)return;mn(t,i),e&&e.A.l||gn(t,i)}}function gn(t,e,o){o===void 0&&(o=!1),!t.l&&t.h.D&&t.m&&ua(e,o)}function oa(t,e){var o=t[te];return(o?St(o):t)[e]}function xl(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var n=Object.getOwnPropertyDescriptor(o,e);if(n)return n;o=Object.getPrototypeOf(o)}}function Ct(t){t.P||(t.P=!0,t.l&&Ct(t.l))}function na(t){t.o||(t.o=pa(t.t))}function sa(t,e,o){var n=ca(e)?tt("MapSet").F(e,o):da(e)?tt("MapSet").T(e,o):t.O?function(i,a){var s=Array.isArray(i),l={i:s?1:0,A:a?a.A:ia(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},d=l,u=co;s&&(d=[l],u=so);var h=Proxy.revocable(d,u),f=h.revoke,y=h.proxy;return l.k=y,l.j=f,y}(e,o):tt("ES5").J(e,o);return(o?o.A:ia()).p.push(n),n}function Iu(t){return ft(t)||ke(22,t),function e(o){if(!Ge(o))return o;var n,i=o[te],a=hr(o);if(i){if(!i.P&&(i.i<4||!tt("ES5").K(i)))return i.t;i.I=!0,n=vl(o,a),i.I=!1}else n=vl(o,a);return Ht(n,function(s,l){i&&Tu(i.t,s)===l||El(n,s,e(l))}),a===3?new Set(n):n}(t)}function vl(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return pa(t)}function wl(){function t(s,l){var d=a[s];return d?d.enumerable=l:a[s]=d={configurable:!0,enumerable:l,get:function(){var u=this[te];return co.get(u,s)},set:function(u){var h=this[te];co.set(h,s,u)}},d}function e(s){for(var l=s.length-1;l>=0;l--){var d=s[l][te];if(!d.P)switch(d.i){case 5:n(d)&&Ct(d);break;case 4:o(d)&&Ct(d)}}}function o(s){for(var l=s.t,d=s.k,u=fr(d),h=u.length-1;h>=0;h--){var f=u[h];if(f!==te){var y=l[f];if(y===void 0&&!ur(l,f))return!0;var x=d[f],b=x&&x[te];if(b?b.t!==y:!Al(x,y))return!0}}var w=!!l[te];return u.length!==fr(l).length+(w?0:1)}function n(s){var l=s.k;if(l.length!==s.t.length)return!0;var d=Object.getOwnPropertyDescriptor(l,l.length-1);if(d&&!d.get)return!0;for(var u=0;u<l.length;u++)if(!l.hasOwnProperty(u))return!0;return!1}function i(s){s.g&&ke(3,JSON.stringify(St(s)))}var a={};_u("ES5",{J:function(s,l){var d=Array.isArray(s),u=function(f,y){if(f){for(var x=Array(y.length),b=0;b<y.length;b++)Object.defineProperty(x,""+b,t(b,!0));return x}var w=Tl(y);delete w[te];for(var R=fr(w),L=0;L<R.length;L++){var N=R[L];w[N]=t(N,f||!!w[N].enumerable)}return Object.create(Object.getPrototypeOf(y),w)}(d,s),h={i:d?5:4,A:l?l.A:ia(),P:!1,I:!1,R:{},l,t:s,k:u,o:null,g:!1,C:!1};return Object.defineProperty(u,te,{value:h,writable:!0}),u},S:function(s,l,d){d?ft(l)&&l[te].A===s&&e(s.p):(s.u&&function u(h){if(h&&typeof h=="object"){var f=h[te];if(f){var y=f.t,x=f.k,b=f.R,w=f.i;if(w===4)Ht(x,function(v){v!==te&&(y[v]!==void 0||ur(y,v)?b[v]||u(x[v]):(b[v]=!0,Ct(f)))}),Ht(y,function(v){x[v]!==void 0||ur(x,v)||(b[v]=!1,Ct(f))});else if(w===5){if(n(f)&&(Ct(f),b.length=!0),x.length<y.length)for(var R=x.length;R<y.length;R++)b[R]=!1;else for(var L=y.length;L<x.length;L++)b[L]=!0;for(var N=Math.min(x.length,y.length),E=0;E<N;E++)x.hasOwnProperty(E)||(b[E]=!0),b[E]===void 0&&u(x[E])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?o(s):n(s)}})}var Sl,lo,ha=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Pu=typeof Map<"u",ku=typeof Set<"u",Cl=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Rl=ha?Symbol.for("immer-nothing"):((Sl={})["immer-nothing"]=!0,Sl),Ol=ha?Symbol.for("immer-draftable"):"__$immer_draftable",te=ha?Symbol.for("immer-state"):"__$immer_state";var Du=""+Object.prototype.constructor,fr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Tl=Object.getOwnPropertyDescriptors||function(t){var e={};return fr(t).forEach(function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)}),e},la={},co={get:function(t,e){if(e===te)return t;var o=St(t);if(!ur(o,e))return function(i,a,s){var l,d=xl(a,s);return d?"value"in d?d.value:(l=d.get)===null||l===void 0?void 0:l.call(i.k):void 0}(t,o,e);var n=o[e];return t.I||!Ge(n)?n:n===oa(t.t,e)?(na(t),t.o[e]=sa(t.A.h,n,t)):n},has:function(t,e){return e in St(t)},ownKeys:function(t){return Reflect.ownKeys(St(t))},set:function(t,e,o){var n=xl(St(t),e);if(n?.set)return n.set.call(t.k,o),!0;if(!t.P){var i=oa(St(t),e),a=i?.[te];if(a&&a.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(Al(o,i)&&(o!==void 0||ur(t.t,e)))return!0;na(t),Ct(t)}return t.o[e]===o&&(o!==void 0||e in t.o)||Number.isNaN(o)&&Number.isNaN(t.o[e])||(t.o[e]=o,t.R[e]=!0),!0},deleteProperty:function(t,e){return oa(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,na(t),Ct(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=St(t),n=Reflect.getOwnPropertyDescriptor(o,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:o[e]}},defineProperty:function(){ke(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){ke(12)}},so={};Ht(co,function(t,e){so[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),so.deleteProperty=function(t,e){return so.set.call(this,t,e,void 0)},so.set=function(t,e,o){return co.set.call(this,t[0],e,o,t[0])};var Mu=function(){function t(o){var n=this;this.O=Cl,this.D=!0,this.produce=function(i,a,s){if(typeof i=="function"&&typeof a!="function"){var l=a;a=i;var d=n;return function(w){var R=this;w===void 0&&(w=l);for(var L=arguments.length,N=Array(L>1?L-1:0),E=1;E<L;E++)N[E-1]=arguments[E];return d.produce(w,function(v){var A;return(A=a).call.apply(A,[R,v].concat(N))})}}var u;if(typeof a!="function"&&ke(6),s!==void 0&&typeof s!="function"&&ke(7),Ge(i)){var h=gl(n),f=sa(n,i,void 0),y=!0;try{u=a(f),y=!1}finally{y?yn(h):aa(h)}return typeof Promise<"u"&&u instanceof Promise?u.then(function(w){return ta(h,s),ra(w,h)},function(w){throw yn(h),w}):(ta(h,s),ra(u,h))}if(!i||typeof i!="object"){if((u=a(i))===void 0&&(u=i),u===Rl&&(u=void 0),n.D&&ua(u,!0),s){var x=[],b=[];tt("Patches").M(i,u,x,b),s(x,b)}return u}ke(21,i)},this.produceWithPatches=function(i,a){if(typeof i=="function")return function(u){for(var h=arguments.length,f=Array(h>1?h-1:0),y=1;y<h;y++)f[y-1]=arguments[y];return n.produceWithPatches(u,function(x){return i.apply(void 0,[x].concat(f))})};var s,l,d=n.produce(i,a,function(u,h){s=u,l=h});return typeof Promise<"u"&&d instanceof Promise?d.then(function(u){return[u,s,l]}):[d,s,l]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var e=t.prototype;return e.createDraft=function(o){Ge(o)||ke(8),ft(o)&&(o=Iu(o));var n=gl(this),i=sa(this,o,void 0);return i[te].C=!0,aa(n),i},e.finishDraft=function(o,n){var i=o&&o[te],a=i.A;return ta(a,n),ra(void 0,a)},e.setAutoFreeze=function(o){this.D=o},e.setUseProxies=function(o){o&&!Cl&&ke(20),this.O=o},e.applyPatches=function(o,n){var i;for(i=n.length-1;i>=0;i--){var a=n[i];if(a.path.length===0&&a.op==="replace"){o=a.value;break}}i>-1&&(n=n.slice(i+1));var s=tt("Patches").$;return ft(o)?s(o,n):this.produce(o,function(l){return s(l,n)})},t}(),Te=new Mu,Bu=Te.produce,Sx=Te.produceWithPatches.bind(Te),Cx=Te.setAutoFreeze.bind(Te),Ox=Te.setUseProxies.bind(Te),Ex=Te.applyPatches.bind(Te),Ax=Te.createDraft.bind(Te),wx=Te.finishDraft.bind(Te),bn=Bu;function zt(t){"@babel/helpers - typeof";return zt=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},zt(t)}function Ll(t,e){if(zt(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var n=o.call(t,e||"default");if(zt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function _l(t){var e=Ll(t,"string");return zt(e)=="symbol"?e:e+""}function Nl(t,e,o){return(e=_l(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function Il(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),o.push.apply(o,n)}return o}function ya(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?Il(Object(o),!0).forEach(function(n){Nl(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Il(Object(o)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))})}return t}function ge(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 Pl=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),ma=function(){return Math.random().toString(36).substring(7).split("").join(".")},xn={INIT:"@@redux/INIT"+ma(),REPLACE:"@@redux/REPLACE"+ma(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ma()}};function $u(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 ga(t,e,o){var n;if(typeof e=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(ge(0));if(typeof e=="function"&&typeof o>"u"&&(o=e,e=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(ge(1));return o(ga)(t,e)}if(typeof t!="function")throw new Error(ge(2));var i=t,a=e,s=[],l=s,d=!1;function u(){l===s&&(l=s.slice())}function h(){if(d)throw new Error(ge(3));return a}function f(w){if(typeof w!="function")throw new Error(ge(4));if(d)throw new Error(ge(5));var R=!0;return u(),l.push(w),function(){if(R){if(d)throw new Error(ge(6));R=!1,u();var N=l.indexOf(w);l.splice(N,1),s=null}}}function y(w){if(!$u(w))throw new Error(ge(7));if(typeof w.type>"u")throw new Error(ge(8));if(d)throw new Error(ge(9));try{d=!0,a=i(a,w)}finally{d=!1}for(var R=s=l,L=0;L<R.length;L++){var N=R[L];N()}return w}function x(w){if(typeof w!="function")throw new Error(ge(10));i=w,y({type:xn.REPLACE})}function b(){var w,R=f;return w={subscribe:function(N){if(typeof N!="object"||N===null)throw new Error(ge(11));function E(){N.next&&N.next(h())}E();var v=R(E);return{unsubscribe:v}}},w[Pl]=function(){return this},w}return y({type:xn.INIT}),n={dispatch:y,subscribe:f,getState:h,replaceReducer:x},n[Pl]=b,n}function Uu(t){Object.keys(t).forEach(function(e){var o=t[e],n=o(void 0,{type:xn.INIT});if(typeof n>"u")throw new Error(ge(12));if(typeof o(void 0,{type:xn.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ge(13))})}function kl(t){for(var e=Object.keys(t),o={},n=0;n<e.length;n++){var i=e[n];typeof t[i]=="function"&&(o[i]=t[i])}var a=Object.keys(o),s,l;try{Uu(o)}catch(d){l=d}return function(u,h){if(u===void 0&&(u={}),l)throw l;if(0)var f;for(var y=!1,x={},b=0;b<a.length;b++){var w=a[b],R=o[w],L=u[w],N=R(L,h);if(typeof N>"u"){var E=h&&h.type;throw new Error(ge(14))}x[w]=N,y=y||N!==L}return y=y||a.length!==Object.keys(u).length,y?x:u}}function yr(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function Dl(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(n){return function(){var i=n.apply(void 0,arguments),a=function(){throw new Error(ge(15))},s={getState:i.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=e.map(function(d){return d(s)});return a=yr.apply(void 0,l)(i.dispatch),ya(ya({},i),{},{dispatch:a})}}}function Ml(t){var e=function(n){var i=n.dispatch,a=n.getState;return function(s){return function(l){return typeof l=="function"?l(i,a,t):s(l)}}};return e}var Bl=Ml();Bl.withExtraArgument=Ml;var ba=Bl;var zl=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},t(e,o)};return function(e,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");t(e,o);function n(){this.constructor=e}e.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),Fu=function(t,e){var o={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(u){return function(h){return d([u,h])}}function d(u){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,i&&(a=u[0]&2?i.return:u[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,u[1])).done)return a;switch(i=0,a&&(u=[u[0]&2,a.value]),u[0]){case 0:case 1:a=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,i=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(a=o.trys,!(a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){o=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){o.label=u[1];break}if(u[0]===6&&o.label<a[1]){o.label=a[1],a=u;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(u);break}a[2]&&o.ops.pop(),o.trys.pop();continue}u=e.call(t,o)}catch(h){u=[6,h],i=0}finally{n=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},mr=function(t,e){for(var o=0,n=e.length,i=t.length;o<n;o++,i++)t[i]=e[o];return t},Hu=Object.defineProperty,zu=Object.defineProperties,Wu=Object.getOwnPropertyDescriptors,$l=Object.getOwnPropertySymbols,Gu=Object.prototype.hasOwnProperty,ju=Object.prototype.propertyIsEnumerable,Ul=function(t,e,o){return e in t?Hu(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},Ot=function(t,e){for(var o in e||(e={}))Gu.call(e,o)&&Ul(t,o,e[o]);if($l)for(var n=0,i=$l(e);n<i.length;n++){var o=i[n];ju.call(e,o)&&Ul(t,o,e[o])}return t},xa=function(t,e){return zu(t,Wu(e))},Vu=function(t,e,o){return new Promise(function(n,i){var a=function(d){try{l(o.next(d))}catch(u){i(u)}},s=function(d){try{l(o.throw(d))}catch(u){i(u)}},l=function(d){return d.done?n(d.value):Promise.resolve(d.value).then(a,s)};l((o=o.apply(t,e)).next())})};var Ku=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?yr:yr.apply(null,arguments)},Gx=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function Zu(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var o=e;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return e===o}var qu=function(t){zl(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var i=t.apply(this,o)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,mr([void 0],o[0].concat(this)))):new(e.bind.apply(e,mr([void 0],o.concat(this))))},e}(Array),Yu=function(t){zl(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var i=t.apply(this,o)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,mr([void 0],o[0].concat(this)))):new(e.bind.apply(e,mr([void 0],o.concat(this))))},e}(Array);function Ca(t){return Ge(t)?bn(t,function(){}):t}function Xu(t){return typeof t=="boolean"}function Ju(){return function(e){return Qu(e)}}function Qu(t){t===void 0&&(t={});var e=t.thunk,o=e===void 0?!0:e,n=t.immutableCheck,i=n===void 0?!0:n,a=t.serializableCheck,s=a===void 0?!0:a,l=new qu;if(o&&(Xu(o)?l.push(ba):l.push(ba.withExtraArgument(o.extraArgument))),0){if(i)var d;if(s)var u}return l}var va=!0;function Wl(t){var e=Ju(),o=t||{},n=o.reducer,i=n===void 0?void 0:n,a=o.middleware,s=a===void 0?e():a,l=o.devTools,d=l===void 0?!0:l,u=o.preloadedState,h=u===void 0?void 0:u,f=o.enhancers,y=f===void 0?void 0:f,x;if(typeof i=="function")x=i;else if(Zu(i))x=kl(i);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var b=s;if(typeof b=="function"&&(b=b(e),!va&&!Array.isArray(b)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!va&&b.some(function(v){return typeof v!="function"}))throw new Error("each middleware provided to configureStore must be a function");var w=Dl.apply(void 0,b),R=yr;d&&(R=Ku(Ot({trace:!va},typeof d=="object"&&d)));var L=new Yu(w),N=L;Array.isArray(y)?N=mr([w],y):typeof y=="function"&&(N=y(L));var E=R.apply(void 0,N);return ga(x,h,E)}function Et(t,e){function o(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(e){var a=e.apply(void 0,n);if(!a)throw new Error("prepareAction did not return an object");return Ot(Ot({type:t,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:t,payload:n[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(n){return n.type===t},o}function Gl(t){var e={},o=[],n,i={addCase:function(a,s){var l=typeof a=="string"?a:a.type;if(l in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[l]=s,i},addMatcher:function(a,s){return o.push({matcher:a,reducer:s}),i},addDefaultCase:function(a){return n=a,i}};return t(i),[e,o,n]}function ef(t){return typeof t=="function"}function tf(t,e,o,n){o===void 0&&(o=[]);var i=typeof e=="function"?Gl(e):[e,o,n],a=i[0],s=i[1],l=i[2],d;if(ef(t))d=function(){return Ca(t())};else{var u=Ca(t);d=function(){return u}}function h(f,y){f===void 0&&(f=d());var x=mr([a[y.type]],s.filter(function(b){var w=b.matcher;return w(y)}).map(function(b){var w=b.reducer;return w}));return x.filter(function(b){return!!b}).length===0&&(x=[l]),x.reduce(function(b,w){if(w)if(ft(b)){var R=b,L=w(R,y);return L===void 0?b:L}else{if(Ge(b))return bn(b,function(N){return w(N,y)});var L=w(b,y);if(L===void 0){if(b===null)return b;throw Error("A case reducer on a non-draftable value must not return undefined")}return L}return b},f)}return h.getInitialState=d,h}function rf(t,e){return t+"/"+e}function jl(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof t.initialState=="function"?t.initialState:Ca(t.initialState),n=t.reducers||{},i=Object.keys(n),a={},s={},l={};i.forEach(function(h){var f=n[h],y=rf(e,h),x,b;"reducer"in f?(x=f.reducer,b=f.prepare):x=f,a[h]=x,s[y]=x,l[h]=b?Et(y,b):Et(y)});function d(){var h=typeof t.extraReducers=="function"?Gl(t.extraReducers):[t.extraReducers],f=h[0],y=f===void 0?{}:f,x=h[1],b=x===void 0?[]:x,w=h[2],R=w===void 0?void 0:w,L=Ot(Ot({},y),s);return tf(o,function(N){for(var E in L)N.addCase(E,L[E]);for(var v=0,A=b;v<A.length;v++){var D=A[v];N.addMatcher(D.matcher,D.reducer)}R&&N.addDefaultCase(R)})}var u;return{name:e,reducer:function(h,f){return u||(u=d()),u(h,f)},actions:l,caseReducers:a,getInitialState:function(){return u||(u=d()),u.getInitialState()}}}var of="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",nf=function(t){t===void 0&&(t=21);for(var e="",o=t;o--;)e+=of[Math.random()*64|0];return e},af=["name","message","stack","code"],Sa=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),Fl=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),sf=function(t){if(typeof t=="object"&&t!==null){for(var e={},o=0,n=af;o<n.length;o++){var i=n[o];typeof t[i]=="string"&&(e[i]=t[i])}return e}return{message:String(t)}},Zx=function(){function t(e,o,n){var i=Et(e+"/fulfilled",function(h,f,y,x){return{payload:h,meta:xa(Ot({},x||{}),{arg:y,requestId:f,requestStatus:"fulfilled"})}}),a=Et(e+"/pending",function(h,f,y){return{payload:void 0,meta:xa(Ot({},y||{}),{arg:f,requestId:h,requestStatus:"pending"})}}),s=Et(e+"/rejected",function(h,f,y,x,b){return{payload:x,error:(n&&n.serializeError||sf)(h||"Rejected"),meta:xa(Ot({},b||{}),{arg:y,requestId:f,rejectedWithValue:!!x,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),l=!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 u(h){return function(f,y,x){var b=n?.idGenerator?n.idGenerator(h):nf(),w=new d,R,L=!1;function N(v){R=v,w.abort()}var E=function(){return Vu(this,null,function(){var v,A,D,F,V,z,M;return Fu(this,function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),F=(v=n?.condition)==null?void 0:v.call(n,h,{getState:y,extra:x}),cf(F)?[4,F]:[3,2];case 1:F=m.sent(),m.label=2;case 2:if(F===!1||w.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return L=!0,V=new Promise(function(C,P){return w.signal.addEventListener("abort",function(){return P({name:"AbortError",message:R||"Aborted"})})}),f(a(b,h,(A=n?.getPendingMeta)==null?void 0:A.call(n,{requestId:b,arg:h},{getState:y,extra:x}))),[4,Promise.race([V,Promise.resolve(o(h,{dispatch:f,getState:y,extra:x,requestId:b,signal:w.signal,abort:N,rejectWithValue:function(C,P){return new Sa(C,P)},fulfillWithValue:function(C,P){return new Fl(C,P)}})).then(function(C){if(C instanceof Sa)throw C;return C instanceof Fl?i(C.payload,b,h,C.meta):i(C,b,h)})])];case 3:return D=m.sent(),[3,5];case 4:return z=m.sent(),D=z instanceof Sa?s(null,b,h,z.payload,z.meta):s(z,b,h),[3,5];case 5:return M=n&&!n.dispatchConditionRejection&&s.match(D)&&D.meta.condition,M||f(D),[2,D]}})})}();return Object.assign(E,{abort:N,requestId:b,arg:h,unwrap:function(){return E.then(lf)}})}}return Object.assign(u,{pending:a,rejected:s,fulfilled:i,typePrefix:e})}return t.withTypes=function(){return t},t}();function lf(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function cf(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Vl="listener",Kl="completed",Zl="cancelled",qx="task-"+Zl,Yx="task-"+Kl,Xx=Vl+"-"+Zl,Jx=Vl+"-"+Kl;var Oa="listenerMiddleware";var Qx=Et(Oa+"/add"),ev=Et(Oa+"/removeAll"),tv=Et(Oa+"/remove");var Hl,rv=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(Hl||(Hl=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},df=function(t){return function(e){setTimeout(e,t)}},ov=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:df(10);wl();window.ftReduxStores||(window.ftReduxStores={});var Wt=class t extends st{static get(e){var o;let n=typeof e=="string"?e:e.name,i=typeof e=="string"?void 0:e,a=window.ftReduxStores[n];if(pr(a))return a;if(i==null)return;let s=jl({...i,reducers:(o=i.reducers)!==null&&o!==void 0?o:{}}),l=Wl({reducer:(d,u)=>u.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__")?{...d,...u.overwrites}:s.reducer(d,u)});return window.ftReduxStores[i.name]=new t(s,l,i.eventBus)}constructor(e,o,n){super(),this.reduxSlice=e,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new io;let i=a=>a!=null?JSON.parse(JSON.stringify(a)):a;this.actions=new Proxy(this.reduxSlice.actions,{get:(a,s,l)=>{let d=s,u=a[d];return u?(...h)=>{let f=u(...h.map(i));return this.reduxStore.dispatch(f),f}:h=>{this.setState({[d]:i(h)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};function pf(){var t;for(let e of Object.values((t=window.ftReduxStores)!==null&&t!==void 0?t:{}))pr(e)&&e.clear()}var vn=class{constructor(e,o,n){this.store=e,this.valueSelector=o,this.callback=n}watch(){return this.stop(),this.lastValue=this.valueSelector(this.store.getState()),this.unsubscribe=this.store.subscribe(()=>{let e=this.store.getState(),o=this.valueSelector(e);at(this.lastValue,o)&&(this.callback(o,e),this.lastValue=o)}),this}stop(){return this.unsubscribe!=null&&(this.unsubscribe(),this.unsubscribe=void 0),this.lastValue=void 0,this}};function uf(t,e,o){return new vn(t,e,o).watch()}var Ea=class{constructor(){this.requestConsumers=new Map}getOrCreateRequestConsumers(e){var o;return(o=this.requestConsumers.get(e))!==null&&o!==void 0?o:this.requestConsumers.set(e,new Set).get(e)}registerComponent(e,o){for(let n of o)this.getOrCreateRequestConsumers(n).add(e)}unregisterComponent(e,o){for(let n of o)this.getOrCreateRequestConsumers(n).delete(e)}isRequestNeeded(e){return this.getOrCreateRequestConsumers(e).size>0}};var Ta={};K(Ta,{scrollHelper:()=>ff});var wa,Sn=new Map,Ra=class{lock(e,o){if(o){let n=Sn.get(o);if(n==null||n===e)return Sn.set(o,e),o}}release(e,o){o&&Sn.get(o)===e&&Sn.delete(o)}findFirstScrollableParent(e){var o;let n,i;for(let a of fi(e)){let s=a,l=this.elementCanScroll(s);if(l&&s.clientHeight&&s.clientHeight<s.scrollHeight){n=s;break}else l&&i==null&&(i=s)}return(o=n??i)!==null&&o!==void 0?o:document.body}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)}catch{return!1}}getAbsoluteScrollOffset(e,o){var n,i;let a=0;for(;o&&o.offsetParent!==e.offsetParent;)a+=(n=o.offsetTop)!==null&&n!==void 0?n:0,o=o.offsetParent;return a+((i=o?.offsetTop)!==null&&i!==void 0?i:0)-e.offsetTop}computeTopOffsetRatio(e,o){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return o;default:return 0}}scrollIntoViewIfPossible(e,o){let n=this.findFirstScrollableParent(e);if(e&&this.lock(this,n)){let i=this.getAbsoluteScrollOffset(n,e),a=i-n.clientHeight+e.clientHeight,s=i,l=jr(0,(s-n.scrollTop)/(s-a),1),d=this.computeTopOffsetRatio(o?.position,l)*(a-s)+s;n.scrollTo({behavior:o?.behavior,top:d})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,n);this.release(this,n)}};window.FluidTopicsScrollHelper=(wa=window.FluidTopicsScrollHelper)!==null&&wa!==void 0?wa:new Ra;var ff=window.FluidTopicsScrollHelper;var _a={};K(_a,{SearchPlaceConverter:()=>vr,SearchPlaceQueryParams:()=>Y,isSearchPlaceQueryParams:()=>Lc,serializeRequest:()=>gf});var yf=zd(Yl(),1);var Xl;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(Xl||(Xl={}));var Jl;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Jl||(Jl={}));var Ql;(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"})(Ql||(Ql={}));var ec;(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"})(ec||(ec={}));var tc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(tc||(tc={}));var rc;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(rc||(rc={}));var oc;(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"})(oc||(oc={}));var nc;(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"})(nc||(nc={}));var ic;(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"})(ic||(ic={}));var ac;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(ac||(ac={}));var sc;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(sc||(sc={}));var lc;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(lc||(lc={}));var cc;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(cc||(cc={}));var dc;(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"})(dc||(dc={}));var br;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(br||(br={}));var pc;(function(t){t.ASC="ASC",t.DESC="DESC"})(pc||(pc={}));var uc;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(uc||(uc={}));var La;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(La||(La={}));var xc=t=>Object.keys(La).includes(t);var fc;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(fc||(fc={}));var hc;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(hc||(hc={}));var yc;(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"})(yc||(yc={}));var xr;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(xr||(xr={}));var vc=t=>Object.keys(xr).includes(t);var mc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(mc||(mc={}));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 bc;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(bc||(bc={}));var ce;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(ce||(ce={}));var De;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(De||(De={}));var Sc;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Sc||(Sc={}));var Cc;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Cc||(Cc={}));var Oc;(function(t){t.USER="USER",t.ASSISTANT="ASSISTANT"})(Oc||(Oc={}));var Ec;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Ec||(Ec={}));var Ac;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(Ac||(Ac={}));var hf={[ce.PERSONAL_BOOK_SHARE_USER]:[ce.PERSONAL_BOOK_USER],[ce.HTML_EXPORT_USER]:[ce.PERSONAL_BOOK_USER],[ce.PDF_EXPORT_USER]:[ce.PERSONAL_BOOK_USER],[ce.KHUB_ADMIN]:[ce.CONTENT_PUBLISHER],[ce.ADMIN]:[ce.KHUB_ADMIN,ce.USERS_ADMIN,ce.PORTAL_ADMIN],[ce.GENERATIVE_AI_EXPORT_USER]:[ce.GENERATIVE_AI_USER]};function wc(t,e){return t===e||(hf[t]??[]).some(o=>wc(o,e))}function Rc(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(n=>wc(n,e))}function mf(t){return`"${t}"`}function Tc(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function gf(t,e){return new vr(t).serialize(e)}var Y;(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"})(Y||(Y={}));var bf=new Set(Object.values(Y));function Lc(t){return bf.has(t)}var vr=class{constructor(e,o=20,n=!1,i="en-US"){this.baseUrl=e,this.defaultPerPage=o,this.allLanguagesAllowed=n,this.defaultContentLocale=i,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"},this.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]]}serialize(e,o){return this.serializeToCurrentPageIfPossible(e,o??"/search")}serializeToCurrentPageIfPossible(e,o){let n=o==null||o.trim().length===0,i=new URL(n?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${o}`);return i.search=this.toURLSearchParams(e),i.toString()}toURLSearchParams(e,o=!1){var n,i,a,s,l,d,u,h,f,y,x;let b=new URLSearchParams;e.contentLocale?(!o||e.contentLocale!==this.defaultContentLocale)&&b.append(Y.LOCALE,e.contentLocale):b.append(Y.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((n=e.query)===null||n===void 0?void 0:n.length)>0&&b.append(Y.QUERY,e.query);let w=(a=(i=e.metadataFilters)===null||i===void 0?void 0:i.filter(v=>v.valueFilter&&!v.valueFilter.negative))!==null&&a!==void 0?a:[];if(w.length>0){let v=w.map(A=>{var D,F;let V=((F=(D=A.valueFilter)===null||D===void 0?void 0:D.values)!==null&&F!==void 0?F:[]).map(z=>this.escapeFilters(z)).map(z=>mf(Tc(z))).join("_");return`${A.key}~${V}`}).join("*");b.append(Y.VALUE_FILTERS,v)}let R=(l=(s=e.metadataFilters)===null||s===void 0?void 0:s.filter(v=>v.dateFilter))!==null&&l!==void 0?l:[];if(R.length>0){let v=R.map(A=>{var D;return`${A.key}~${(D=A.dateFilter)===null||D===void 0?void 0:D.type.toLowerCase()}`}).join("*");b.append(Y.DATE_FILTERS,v)}let L=(u=(d=e.metadataFilters)===null||d===void 0?void 0:d.filter(v=>v.rangeFilter))!==null&&u!==void 0?u:[];if(L.length>0){let v=L.map(A=>{var D,F;return`${A.key}~${(D=A.rangeFilter)===null||D===void 0?void 0:D.from}_${(F=A.rangeFilter)===null||F===void 0?void 0:F.to}`}).join("*");b.append(Y.RANGE_FILTERS,v)}e.virtualField&&e.virtualField!=="EVERYWHERE"&&b.append(Y.VIRTUAL_FIELD,e.virtualField.toLowerCase()),e.scope&&e.scope!=="DEFAULT"&&b.append(Y.SCOPE,e.scope.toLowerCase()),e.sortId!=null&&b.append(Y.SORT,e.sortId),!((h=e.paging)===null||h===void 0)&&h.perPage&&((y=(f=e.paging)===null||f===void 0?void 0:f.perPage)!==null&&y!==void 0?y:this.defaultPerPage)!=this.defaultPerPage&&b.append(Y.PER_PAGE,String(e.paging.perPage)),e.keywordMatch!=null&&b.append(Y.KEYWORD_MATCH,e.keywordMatch.toLowerCase());let N=(x=e.otherQueryParams)!==null&&x!==void 0?x:{};for(let v in N)b.append(v,N[v]);let E=new Array;return b.forEach((v,A)=>{E.push(this.encodeQueryString(A)+"="+this.encodeQueryString(v))}),encodeURI(E.join("&")).replace(/#/g,"%23")}encodeQueryString(e){return encodeURIComponent(e).replace(/%20/g,"+")}parse(e){var o;let n=e.split("?"),i=this.fromURLSearchParams(n.slice(1).join("?")),a=n[0].split("/search/")[1];return a==null?i:{...i,scope:(o=this.scopeMapping[a])!==null&&o!==void 0?o:i.scope}}fromURLSearchParams(e){var o,n,i,a,s,l;try{e=decodeURI(e).replace(/%23/g,"#")}catch(L){console.warn("Could not decode search request query params, fallback on raw value",L)}let d=new URLSearchParams(e),u=d.get(Y.LOCALE)==="all"?void 0:d.get(Y.LOCALE),h=((o=d.get(Y.VIRTUAL_FIELD))!==null&&o!==void 0?o:"EVERYWHERE").toUpperCase(),f=(n=d.get(Y.SORT))===null||n===void 0?void 0:n.toLowerCase(),y=(i=d.get(Y.SCOPE))!==null&&i!==void 0?i:"default",x=+((a=d.get(Y.PER_PAGE))!==null&&a!==void 0?a:this.defaultPerPage),b=d.get(Y.KEYWORD_MATCH),w=b?b.toUpperCase()===br.MANDATORY?br.MANDATORY:br.OPTIONAL:void 0,R={};for(let L of d.keys())Lc(L)||(R[L]=d.get(L));return{contentLocale:u??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:(s=d.get(Y.QUERY))!==null&&s!==void 0?s:"",scope:(l=this.scopeMapping[y])!==null&&l!==void 0?l:"DEFAULT",virtualField:xc(h)?h:"EVERYWHERE",sortId:f,metadataFilters:this.parseCompatFilters(d),facets:[],paging:{page:1,perPage:jr(1,isNaN(x)?this.defaultPerPage:x,1e3)},keywordMatch:w,otherQueryParams:R}}parseCompatFilters(e){var o,n,i,a,s,l;let d=[];return e.has(Y.FILTERS)&&(d=this.parseValueFilters((o=e.get(Y.FILTERS))!==null&&o!==void 0?o:"")),(n=e.has(Y.PERIOD))!==null&&n!==void 0&&n&&(d=[...d,...this.parseLegacyPeriodFilter(((i=e.get(Y.PERIOD))!==null&&i!==void 0?i:"").toUpperCase())]),[...d,...this.parseValueFilters((a=e.get(Y.VALUE_FILTERS))!==null&&a!==void 0?a:""),...this.parseDateFilters((s=e.get(Y.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=e.get(Y.RANGE_FILTERS))!==null&&l!==void 0?l:"")]}splitUnknownFilter(e){return this.superEscapeFilters(e).split("*").map(o=>o.split("~"))}parseValueFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],valueFilter:{values:o[1].split("_").map(Tc).map(n=>this.unescapeFilterValue(n)),negative:!1}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],dateFilter:{type:xr[o[1].toUpperCase()]}}))}parseRangeFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],rangeFilter:{from:o[1].split("_")[0],to:o[1].split("_")[1]}}))}escapeFilters(e){for(let[o,n,i]of this.filtersEscapeMapping)e=e.replaceAll(o,n);return e}superEscapeFilters(e){for(let[o,n,i]of this.filtersEscapeMapping)e=e.replaceAll(n,i);return e}unescapeFilterValue(e){for(let[o,n,i]of this.filtersEscapeMapping)e=e.replace(i,o);return e}parseLegacyPeriodFilter(e){if(vc(e))return[{key:"ft:lastEdition",dateFilter:{type:xr[e]}}];if(e.startsWith("CUSTOM_")){let[o,n,i]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:n,to:i}}]}return[]}};var Pa={};K(Pa,{toFtFormComponent:()=>Ia});var Na=Symbol("elementInternals"),Ia=ae(Symbol("toFtFormComponent"),function(t){class e extends t{static get formAssociated(){return!0}get form(){return this[Na].form}constructor(...n){super(n),this[Na]=this.attachInternals()}setFormValue(n){this[Na].setFormValue(n)}}return e});var ka={};K(ka,{DateFormatter:()=>Gt});var Gt=class{static format(e,o,n,i){return window.moment?window.moment(e).locale(o).format(this.getMomentDateFormat(n,i)):this.getIntlDateTime(e,o,n,i)}static getMomentDateFormat(e,o){return e?o?"lll":"ll":o?"L LT":"L"}static getIntlDateTime(e,o,n,i){let a=typeof e=="string"?new Date(e):e,s=new Intl.DateTimeFormat(o,{dateStyle:n?"medium":"short"}).format(a);if(!i)return s;let l=new Intl.DateTimeFormat(o,{timeStyle:"short"}).format(a);return`${s} ${l}`}static getTimezoneAsString(){let e=n=>String(Math.floor(n)).padStart(2,"0"),o=new Date().getTimezoneOffset();return`${o<0?"+":"-"}${e(Math.abs(o)/60)}:${e(Math.abs(o)%60)}`}};var Ma={};K(Ma,{ALL_KEYS_VALUE:()=>Da,SameWindowStorageEvent:()=>Sr});var Da="__all__",Sr=class extends CustomEvent{constructor(e,o,n){super("same-window-storage",{detail:{key:e,oldValue:o,newValue:n}})}keyMatch(e){return this.detail.key.includes(e)||this.detail.key==Da}};Storage.prototype.setItem=new Proxy(Storage.prototype.setItem,{apply(t,e,o){let n=e.getItem(o[0]);Reflect.apply(t,e,o),window.dispatchEvent(new Sr(o[0],n,o[1]))}});Storage.prototype.removeItem=new Proxy(Storage.prototype.removeItem,{apply(t,e,o){let n=e.getItem(o[0]);Reflect.apply(t,e,o),window.dispatchEvent(new Sr(o[0],n))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(t,e,o){Reflect.apply(t,e,o),window.dispatchEvent(new Sr(Da))}});var $a={};K($a,{FocusMainContentEvent:()=>Ba});var Ba=class extends Event{constructor(){super("ft-focus-main-content",{composed:!0,bubbles:!0})}};var _c={};window.FluidTopicsA11yHints={isKeyboardNavigation:!1,lastPressedKey:""};function xf(t){(t.key==="Enter"||t.key===" "||t.key==="Tab")&&(window.FluidTopicsA11yHints.isKeyboardNavigation=!0),window.FluidTopicsA11yHints.lastPressedKey=t.key}function vf(t){window.FluidTopicsA11yHints.isKeyboardNavigation=t.detail==0}document.addEventListener("keydown",xf);document.addEventListener("click",vf);var Nc=I`
48
+ `;var yl={};var ea={};K(ea,{ParametrizedLabelResolver:()=>no});var no=class t{constructor(e,o){this.defaultLabels=e,this.labels=o}resolve(e,...o){var n,i;e=this.resolvePluralKey(e,o);let a=(i=(n=this.labels[e])!==null&&n!==void 0?n:this.defaultLabels[e])!==null&&i!==void 0?i:"";return t.replaceParameters(a,...o)}static replaceParameters(e,...o){return o.forEach((n,i)=>e=e.replace(new RegExp(`\\{${i}([^}]*)\\}`,"g"),(a,s)=>t.formatValue(n,s))),e}resolvePluralKey(e,o){for(let n of o)if(typeof n=="number"){let i=`${String(e)}[\\=${n}]`;if(i in this.labels||i in this.defaultLabels)return i}return e}static formatValue(e,o){return e instanceof Date?t.formatDate(e,o):e??""}static formatDate(e,o){let n=i=>o?.includes("date")?e.toLocaleDateString(i):o?.includes("time")?e.toLocaleTimeString(i):e.toLocaleString(i);try{return n(document.documentElement.lang)}catch{return n()}}};var Aa={};K(Aa,{FtCommandQueue:()=>io,FtLitElementRedux:()=>Ft,FtReduxStore:()=>Wt,FtStateManager:()=>Ea,ReduxWatcher:()=>vn,clearAllStores:()=>pf,isFtReduxStore:()=>pr,redux:()=>dr,reduxEventListener:()=>Ru,reduxReactive:()=>wu,watch:()=>uf,withRedux:()=>ml});var wu=()=>(t,e)=>{var o;let n=t.constructor;n.reduxReactiveProperties=new Set(n.reduxReactiveProperties),(o=n.reduxReactiveProperties)===null||o===void 0||o.add(e)},dr=t=>{let e=t??{};return(o,n)=>{var i;let a={hasChanged:at,attribute:!1,...e};S(a)(o,n);let s=o.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(n,{selector:(i=e.selector)!==null&&i!==void 0?i:l=>l[n],store:e.store})}},Ru=t=>(e,o)=>{let n=e.constructor;n.reduxEventListeners=new Map(n.reduxEventListeners),n.reduxEventListeners.set(o,t)};var io=class{constructor(){this.queue=[]}add(e,o=!1){o&&this.clear(e.type),this.queue.push(e)}consume(e){let o=this.queue.find(n=>n.type===e);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}clear(e){typeof e=="string"?this.queue=this.queue.filter(o=>o.type!==e):this.queue=this.queue.filter(o=>!e.test(o.type))}};function pr(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var ao=Symbol("internalReduxEventsUnsubscribers"),vt=Symbol("internalStoresUnsubscribers"),Ut=Symbol("internalStores"),ml=ae(Symbol("withRedux"),function(t){var e,o,n;class i extends t{constructor(){super(...arguments),this[e]=new Map,this[o]=new Map,this[n]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(l=>s.has(l))&&this.updateFromStores()}getUnnamedStore(){if(this[Ut].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ut].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[Ut].get(s)}addStore(s,l){var d;l=(d=l??s.name)!==null&&d!==void 0?d:"default-store",this.unsubscribeFromStore(l),this[Ut].set(l,s),this.subscribeToStore(l,s),this.updateFromStores()}removeStore(s){let l=typeof s=="string"?s:s.name;this.unsubscribeFromStore(l),this[Ut].delete(l)}setupStores(){this.unsubscribeFromStores(),this[Ut].forEach((s,l)=>this.subscribeToStore(l,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,l)=>{let d=this.constructor.getPropertyOptions(l);if(!d?.attribute||!this.hasAttribute(typeof d?.attribute=="string"?d.attribute:l)){let u=this.getStore(s.store);u&&(s.store?this[vt].has(s.store):this[vt].size>0)&&(this[l]=s.selector(u.getState(),this))}})}subscribeToStore(s,l){var d;this[vt].set(s,l.subscribe(()=>this.updateFromStores())),this[ao].set(s,[]),pr(l)&&l.eventBus&&((d=this.reduxConstructor.reduxEventListeners)===null||d===void 0||d.forEach((u,h)=>{if(typeof this[h]=="function"&&(!u.store||l.name===u.store)){let f=y=>this[h](y);l.addEventListener(u.eventName,f),this[ao].get(s).push(()=>l.removeEventListener(u.eventName,f))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[vt].forEach((s,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(s){var l;this[vt].has(s)&&this[vt].get(s)(),this[vt].delete(s),(l=this[ao].get(s))===null||l===void 0||l.forEach(d=>d()),this[ao].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=vt,o=Ut,n=ao,i.reduxProperties=new Map,i.reduxReactiveProperties=new Set,i.reduxEventListeners=new Map,i}),Ft=class extends ml(q){};function ke(t){for(var e=arguments.length,o=Array(e>1?e-1:0),n=1;n<e;n++)o[n-1]=arguments[n];if(0)var i,a;throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function ft(t){return!!t&&!!t[te]}function Ge(t){var e;return!!t&&(function(o){if(!o||typeof o!="object")return!1;var n=Object.getPrototypeOf(o);if(n===null)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===Du}(t)||Array.isArray(t)||!!t[Ol]||!!(!((e=t.constructor)===null||e===void 0)&&e[Ol])||ca(t)||da(t))}function Ht(t,e,o){o===void 0&&(o=!1),hr(t)===0?(o?Object.keys:fr)(t).forEach(function(n){o&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,i){return e(i,n,t)})}function hr(t){var e=t[te];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:ca(t)?2:da(t)?3:0}function ur(t,e){return hr(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Tu(t,e){return hr(t)===2?t.get(e):t[e]}function El(t,e,o){var n=hr(t);n===2?t.set(e,o):n===3?t.add(o):t[e]=o}function Al(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function ca(t){return Pu&&t instanceof Map}function da(t){return ku&&t instanceof Set}function St(t){return t.o||t.t}function pa(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Tl(t);delete e[te];for(var o=fr(e),n=0;n<o.length;n++){var i=o[n],a=e[i];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:t[i]})}return Object.create(Object.getPrototypeOf(t),e)}function ua(t,e){return e===void 0&&(e=!1),fa(t)||ft(t)||!Ge(t)||(hr(t)>1&&(t.set=t.add=t.clear=t.delete=Lu),Object.freeze(t),e&&Ht(t,function(o,n){return ua(n,!0)},!0)),t}function Lu(){ke(2)}function fa(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function tt(t){var e=la[t];return e||ke(18,t),e}function _u(t,e){la[t]||(la[t]=e)}function ia(){return lo}function ta(t,e){e&&(tt("Patches"),t.u=[],t.s=[],t.v=e)}function yn(t){aa(t),t.p.forEach(Nu),t.p=null}function aa(t){t===lo&&(lo=t.l)}function gl(t){return lo={p:[],l:lo,h:t,m:!0,_:0}}function Nu(t){var e=t[te];e.i===0||e.i===1?e.j():e.g=!0}function ra(t,e){e._=e.p.length;var o=e.p[0],n=t!==void 0&&t!==o;return e.h.O||tt("ES5").S(e,t,n),n?(o[te].P&&(yn(e),ke(4)),Ge(t)&&(t=mn(e,t),e.l||gn(e,t)),e.u&&tt("Patches").M(o[te].t,t,e.u,e.s)):t=mn(e,o,[]),yn(e),e.u&&e.v(e.u,e.s),t!==Rl?t:void 0}function mn(t,e,o){if(fa(e))return e;var n=e[te];if(!n)return Ht(e,function(l,d){return bl(t,n,e,l,d,o)},!0),e;if(n.A!==t)return e;if(!n.P)return gn(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=pa(n.k):n.o,a=i,s=!1;n.i===3&&(a=new Set(i),i.clear(),s=!0),Ht(a,function(l,d){return bl(t,n,i,l,d,o,s)}),gn(t,i,!1),o&&t.u&&tt("Patches").N(n,o,t.u,t.s)}return n.o}function bl(t,e,o,n,i,a,s){if(ft(i)){var l=mn(t,i,a&&e&&e.i!==3&&!ur(e.R,n)?a.concat(n):void 0);if(El(o,n,l),!ft(l))return;t.m=!1}else s&&o.add(i);if(Ge(i)&&!fa(i)){if(!t.h.D&&t._<1)return;mn(t,i),e&&e.A.l||gn(t,i)}}function gn(t,e,o){o===void 0&&(o=!1),!t.l&&t.h.D&&t.m&&ua(e,o)}function oa(t,e){var o=t[te];return(o?St(o):t)[e]}function xl(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var n=Object.getOwnPropertyDescriptor(o,e);if(n)return n;o=Object.getPrototypeOf(o)}}function Ct(t){t.P||(t.P=!0,t.l&&Ct(t.l))}function na(t){t.o||(t.o=pa(t.t))}function sa(t,e,o){var n=ca(e)?tt("MapSet").F(e,o):da(e)?tt("MapSet").T(e,o):t.O?function(i,a){var s=Array.isArray(i),l={i:s?1:0,A:a?a.A:ia(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},d=l,u=co;s&&(d=[l],u=so);var h=Proxy.revocable(d,u),f=h.revoke,y=h.proxy;return l.k=y,l.j=f,y}(e,o):tt("ES5").J(e,o);return(o?o.A:ia()).p.push(n),n}function Iu(t){return ft(t)||ke(22,t),function e(o){if(!Ge(o))return o;var n,i=o[te],a=hr(o);if(i){if(!i.P&&(i.i<4||!tt("ES5").K(i)))return i.t;i.I=!0,n=vl(o,a),i.I=!1}else n=vl(o,a);return Ht(n,function(s,l){i&&Tu(i.t,s)===l||El(n,s,e(l))}),a===3?new Set(n):n}(t)}function vl(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return pa(t)}function wl(){function t(s,l){var d=a[s];return d?d.enumerable=l:a[s]=d={configurable:!0,enumerable:l,get:function(){var u=this[te];return co.get(u,s)},set:function(u){var h=this[te];co.set(h,s,u)}},d}function e(s){for(var l=s.length-1;l>=0;l--){var d=s[l][te];if(!d.P)switch(d.i){case 5:n(d)&&Ct(d);break;case 4:o(d)&&Ct(d)}}}function o(s){for(var l=s.t,d=s.k,u=fr(d),h=u.length-1;h>=0;h--){var f=u[h];if(f!==te){var y=l[f];if(y===void 0&&!ur(l,f))return!0;var x=d[f],b=x&&x[te];if(b?b.t!==y:!Al(x,y))return!0}}var w=!!l[te];return u.length!==fr(l).length+(w?0:1)}function n(s){var l=s.k;if(l.length!==s.t.length)return!0;var d=Object.getOwnPropertyDescriptor(l,l.length-1);if(d&&!d.get)return!0;for(var u=0;u<l.length;u++)if(!l.hasOwnProperty(u))return!0;return!1}function i(s){s.g&&ke(3,JSON.stringify(St(s)))}var a={};_u("ES5",{J:function(s,l){var d=Array.isArray(s),u=function(f,y){if(f){for(var x=Array(y.length),b=0;b<y.length;b++)Object.defineProperty(x,""+b,t(b,!0));return x}var w=Tl(y);delete w[te];for(var R=fr(w),L=0;L<R.length;L++){var N=R[L];w[N]=t(N,f||!!w[N].enumerable)}return Object.create(Object.getPrototypeOf(y),w)}(d,s),h={i:d?5:4,A:l?l.A:ia(),P:!1,I:!1,R:{},l,t:s,k:u,o:null,g:!1,C:!1};return Object.defineProperty(u,te,{value:h,writable:!0}),u},S:function(s,l,d){d?ft(l)&&l[te].A===s&&e(s.p):(s.u&&function u(h){if(h&&typeof h=="object"){var f=h[te];if(f){var y=f.t,x=f.k,b=f.R,w=f.i;if(w===4)Ht(x,function(v){v!==te&&(y[v]!==void 0||ur(y,v)?b[v]||u(x[v]):(b[v]=!0,Ct(f)))}),Ht(y,function(v){x[v]!==void 0||ur(x,v)||(b[v]=!1,Ct(f))});else if(w===5){if(n(f)&&(Ct(f),b.length=!0),x.length<y.length)for(var R=x.length;R<y.length;R++)b[R]=!1;else for(var L=y.length;L<x.length;L++)b[L]=!0;for(var N=Math.min(x.length,y.length),E=0;E<N;E++)x.hasOwnProperty(E)||(b[E]=!0),b[E]===void 0&&u(x[E])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?o(s):n(s)}})}var Sl,lo,ha=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Pu=typeof Map<"u",ku=typeof Set<"u",Cl=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Rl=ha?Symbol.for("immer-nothing"):((Sl={})["immer-nothing"]=!0,Sl),Ol=ha?Symbol.for("immer-draftable"):"__$immer_draftable",te=ha?Symbol.for("immer-state"):"__$immer_state";var Du=""+Object.prototype.constructor,fr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Tl=Object.getOwnPropertyDescriptors||function(t){var e={};return fr(t).forEach(function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)}),e},la={},co={get:function(t,e){if(e===te)return t;var o=St(t);if(!ur(o,e))return function(i,a,s){var l,d=xl(a,s);return d?"value"in d?d.value:(l=d.get)===null||l===void 0?void 0:l.call(i.k):void 0}(t,o,e);var n=o[e];return t.I||!Ge(n)?n:n===oa(t.t,e)?(na(t),t.o[e]=sa(t.A.h,n,t)):n},has:function(t,e){return e in St(t)},ownKeys:function(t){return Reflect.ownKeys(St(t))},set:function(t,e,o){var n=xl(St(t),e);if(n?.set)return n.set.call(t.k,o),!0;if(!t.P){var i=oa(St(t),e),a=i?.[te];if(a&&a.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(Al(o,i)&&(o!==void 0||ur(t.t,e)))return!0;na(t),Ct(t)}return t.o[e]===o&&(o!==void 0||e in t.o)||Number.isNaN(o)&&Number.isNaN(t.o[e])||(t.o[e]=o,t.R[e]=!0),!0},deleteProperty:function(t,e){return oa(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,na(t),Ct(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=St(t),n=Reflect.getOwnPropertyDescriptor(o,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:o[e]}},defineProperty:function(){ke(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){ke(12)}},so={};Ht(co,function(t,e){so[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),so.deleteProperty=function(t,e){return so.set.call(this,t,e,void 0)},so.set=function(t,e,o){return co.set.call(this,t[0],e,o,t[0])};var Mu=function(){function t(o){var n=this;this.O=Cl,this.D=!0,this.produce=function(i,a,s){if(typeof i=="function"&&typeof a!="function"){var l=a;a=i;var d=n;return function(w){var R=this;w===void 0&&(w=l);for(var L=arguments.length,N=Array(L>1?L-1:0),E=1;E<L;E++)N[E-1]=arguments[E];return d.produce(w,function(v){var A;return(A=a).call.apply(A,[R,v].concat(N))})}}var u;if(typeof a!="function"&&ke(6),s!==void 0&&typeof s!="function"&&ke(7),Ge(i)){var h=gl(n),f=sa(n,i,void 0),y=!0;try{u=a(f),y=!1}finally{y?yn(h):aa(h)}return typeof Promise<"u"&&u instanceof Promise?u.then(function(w){return ta(h,s),ra(w,h)},function(w){throw yn(h),w}):(ta(h,s),ra(u,h))}if(!i||typeof i!="object"){if((u=a(i))===void 0&&(u=i),u===Rl&&(u=void 0),n.D&&ua(u,!0),s){var x=[],b=[];tt("Patches").M(i,u,x,b),s(x,b)}return u}ke(21,i)},this.produceWithPatches=function(i,a){if(typeof i=="function")return function(u){for(var h=arguments.length,f=Array(h>1?h-1:0),y=1;y<h;y++)f[y-1]=arguments[y];return n.produceWithPatches(u,function(x){return i.apply(void 0,[x].concat(f))})};var s,l,d=n.produce(i,a,function(u,h){s=u,l=h});return typeof Promise<"u"&&d instanceof Promise?d.then(function(u){return[u,s,l]}):[d,s,l]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var e=t.prototype;return e.createDraft=function(o){Ge(o)||ke(8),ft(o)&&(o=Iu(o));var n=gl(this),i=sa(this,o,void 0);return i[te].C=!0,aa(n),i},e.finishDraft=function(o,n){var i=o&&o[te],a=i.A;return ta(a,n),ra(void 0,a)},e.setAutoFreeze=function(o){this.D=o},e.setUseProxies=function(o){o&&!Cl&&ke(20),this.O=o},e.applyPatches=function(o,n){var i;for(i=n.length-1;i>=0;i--){var a=n[i];if(a.path.length===0&&a.op==="replace"){o=a.value;break}}i>-1&&(n=n.slice(i+1));var s=tt("Patches").$;return ft(o)?s(o,n):this.produce(o,function(l){return s(l,n)})},t}(),Te=new Mu,Bu=Te.produce,Sx=Te.produceWithPatches.bind(Te),Cx=Te.setAutoFreeze.bind(Te),Ox=Te.setUseProxies.bind(Te),Ex=Te.applyPatches.bind(Te),Ax=Te.createDraft.bind(Te),wx=Te.finishDraft.bind(Te),bn=Bu;function zt(t){"@babel/helpers - typeof";return zt=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},zt(t)}function Ll(t,e){if(zt(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var n=o.call(t,e||"default");if(zt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function _l(t){var e=Ll(t,"string");return zt(e)=="symbol"?e:e+""}function Nl(t,e,o){return(e=_l(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function Il(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),o.push.apply(o,n)}return o}function ya(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?Il(Object(o),!0).forEach(function(n){Nl(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Il(Object(o)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))})}return t}function ge(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 Pl=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),ma=function(){return Math.random().toString(36).substring(7).split("").join(".")},xn={INIT:"@@redux/INIT"+ma(),REPLACE:"@@redux/REPLACE"+ma(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ma()}};function $u(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 ga(t,e,o){var n;if(typeof e=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(ge(0));if(typeof e=="function"&&typeof o>"u"&&(o=e,e=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(ge(1));return o(ga)(t,e)}if(typeof t!="function")throw new Error(ge(2));var i=t,a=e,s=[],l=s,d=!1;function u(){l===s&&(l=s.slice())}function h(){if(d)throw new Error(ge(3));return a}function f(w){if(typeof w!="function")throw new Error(ge(4));if(d)throw new Error(ge(5));var R=!0;return u(),l.push(w),function(){if(R){if(d)throw new Error(ge(6));R=!1,u();var N=l.indexOf(w);l.splice(N,1),s=null}}}function y(w){if(!$u(w))throw new Error(ge(7));if(typeof w.type>"u")throw new Error(ge(8));if(d)throw new Error(ge(9));try{d=!0,a=i(a,w)}finally{d=!1}for(var R=s=l,L=0;L<R.length;L++){var N=R[L];N()}return w}function x(w){if(typeof w!="function")throw new Error(ge(10));i=w,y({type:xn.REPLACE})}function b(){var w,R=f;return w={subscribe:function(N){if(typeof N!="object"||N===null)throw new Error(ge(11));function E(){N.next&&N.next(h())}E();var v=R(E);return{unsubscribe:v}}},w[Pl]=function(){return this},w}return y({type:xn.INIT}),n={dispatch:y,subscribe:f,getState:h,replaceReducer:x},n[Pl]=b,n}function Uu(t){Object.keys(t).forEach(function(e){var o=t[e],n=o(void 0,{type:xn.INIT});if(typeof n>"u")throw new Error(ge(12));if(typeof o(void 0,{type:xn.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ge(13))})}function kl(t){for(var e=Object.keys(t),o={},n=0;n<e.length;n++){var i=e[n];typeof t[i]=="function"&&(o[i]=t[i])}var a=Object.keys(o),s,l;try{Uu(o)}catch(d){l=d}return function(u,h){if(u===void 0&&(u={}),l)throw l;if(0)var f;for(var y=!1,x={},b=0;b<a.length;b++){var w=a[b],R=o[w],L=u[w],N=R(L,h);if(typeof N>"u"){var E=h&&h.type;throw new Error(ge(14))}x[w]=N,y=y||N!==L}return y=y||a.length!==Object.keys(u).length,y?x:u}}function yr(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function Dl(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(n){return function(){var i=n.apply(void 0,arguments),a=function(){throw new Error(ge(15))},s={getState:i.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=e.map(function(d){return d(s)});return a=yr.apply(void 0,l)(i.dispatch),ya(ya({},i),{},{dispatch:a})}}}function Ml(t){var e=function(n){var i=n.dispatch,a=n.getState;return function(s){return function(l){return typeof l=="function"?l(i,a,t):s(l)}}};return e}var Bl=Ml();Bl.withExtraArgument=Ml;var ba=Bl;var zl=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},t(e,o)};return function(e,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");t(e,o);function n(){this.constructor=e}e.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),Fu=function(t,e){var o={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(u){return function(h){return d([u,h])}}function d(u){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,i&&(a=u[0]&2?i.return:u[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,u[1])).done)return a;switch(i=0,a&&(u=[u[0]&2,a.value]),u[0]){case 0:case 1:a=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,i=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(a=o.trys,!(a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){o=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){o.label=u[1];break}if(u[0]===6&&o.label<a[1]){o.label=a[1],a=u;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(u);break}a[2]&&o.ops.pop(),o.trys.pop();continue}u=e.call(t,o)}catch(h){u=[6,h],i=0}finally{n=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},mr=function(t,e){for(var o=0,n=e.length,i=t.length;o<n;o++,i++)t[i]=e[o];return t},Hu=Object.defineProperty,zu=Object.defineProperties,Wu=Object.getOwnPropertyDescriptors,$l=Object.getOwnPropertySymbols,Gu=Object.prototype.hasOwnProperty,ju=Object.prototype.propertyIsEnumerable,Ul=function(t,e,o){return e in t?Hu(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},Ot=function(t,e){for(var o in e||(e={}))Gu.call(e,o)&&Ul(t,o,e[o]);if($l)for(var n=0,i=$l(e);n<i.length;n++){var o=i[n];ju.call(e,o)&&Ul(t,o,e[o])}return t},xa=function(t,e){return zu(t,Wu(e))},Vu=function(t,e,o){return new Promise(function(n,i){var a=function(d){try{l(o.next(d))}catch(u){i(u)}},s=function(d){try{l(o.throw(d))}catch(u){i(u)}},l=function(d){return d.done?n(d.value):Promise.resolve(d.value).then(a,s)};l((o=o.apply(t,e)).next())})};var Ku=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?yr:yr.apply(null,arguments)},Gx=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function Zu(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var o=e;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return e===o}var qu=function(t){zl(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var i=t.apply(this,o)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,mr([void 0],o[0].concat(this)))):new(e.bind.apply(e,mr([void 0],o.concat(this))))},e}(Array),Yu=function(t){zl(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var i=t.apply(this,o)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,mr([void 0],o[0].concat(this)))):new(e.bind.apply(e,mr([void 0],o.concat(this))))},e}(Array);function Ca(t){return Ge(t)?bn(t,function(){}):t}function Xu(t){return typeof t=="boolean"}function Ju(){return function(e){return Qu(e)}}function Qu(t){t===void 0&&(t={});var e=t.thunk,o=e===void 0?!0:e,n=t.immutableCheck,i=n===void 0?!0:n,a=t.serializableCheck,s=a===void 0?!0:a,l=new qu;if(o&&(Xu(o)?l.push(ba):l.push(ba.withExtraArgument(o.extraArgument))),0){if(i)var d;if(s)var u}return l}var va=!0;function Wl(t){var e=Ju(),o=t||{},n=o.reducer,i=n===void 0?void 0:n,a=o.middleware,s=a===void 0?e():a,l=o.devTools,d=l===void 0?!0:l,u=o.preloadedState,h=u===void 0?void 0:u,f=o.enhancers,y=f===void 0?void 0:f,x;if(typeof i=="function")x=i;else if(Zu(i))x=kl(i);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var b=s;if(typeof b=="function"&&(b=b(e),!va&&!Array.isArray(b)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!va&&b.some(function(v){return typeof v!="function"}))throw new Error("each middleware provided to configureStore must be a function");var w=Dl.apply(void 0,b),R=yr;d&&(R=Ku(Ot({trace:!va},typeof d=="object"&&d)));var L=new Yu(w),N=L;Array.isArray(y)?N=mr([w],y):typeof y=="function"&&(N=y(L));var E=R.apply(void 0,N);return ga(x,h,E)}function Et(t,e){function o(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(e){var a=e.apply(void 0,n);if(!a)throw new Error("prepareAction did not return an object");return Ot(Ot({type:t,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:t,payload:n[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(n){return n.type===t},o}function Gl(t){var e={},o=[],n,i={addCase:function(a,s){var l=typeof a=="string"?a:a.type;if(l in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[l]=s,i},addMatcher:function(a,s){return o.push({matcher:a,reducer:s}),i},addDefaultCase:function(a){return n=a,i}};return t(i),[e,o,n]}function ef(t){return typeof t=="function"}function tf(t,e,o,n){o===void 0&&(o=[]);var i=typeof e=="function"?Gl(e):[e,o,n],a=i[0],s=i[1],l=i[2],d;if(ef(t))d=function(){return Ca(t())};else{var u=Ca(t);d=function(){return u}}function h(f,y){f===void 0&&(f=d());var x=mr([a[y.type]],s.filter(function(b){var w=b.matcher;return w(y)}).map(function(b){var w=b.reducer;return w}));return x.filter(function(b){return!!b}).length===0&&(x=[l]),x.reduce(function(b,w){if(w)if(ft(b)){var R=b,L=w(R,y);return L===void 0?b:L}else{if(Ge(b))return bn(b,function(N){return w(N,y)});var L=w(b,y);if(L===void 0){if(b===null)return b;throw Error("A case reducer on a non-draftable value must not return undefined")}return L}return b},f)}return h.getInitialState=d,h}function rf(t,e){return t+"/"+e}function jl(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof t.initialState=="function"?t.initialState:Ca(t.initialState),n=t.reducers||{},i=Object.keys(n),a={},s={},l={};i.forEach(function(h){var f=n[h],y=rf(e,h),x,b;"reducer"in f?(x=f.reducer,b=f.prepare):x=f,a[h]=x,s[y]=x,l[h]=b?Et(y,b):Et(y)});function d(){var h=typeof t.extraReducers=="function"?Gl(t.extraReducers):[t.extraReducers],f=h[0],y=f===void 0?{}:f,x=h[1],b=x===void 0?[]:x,w=h[2],R=w===void 0?void 0:w,L=Ot(Ot({},y),s);return tf(o,function(N){for(var E in L)N.addCase(E,L[E]);for(var v=0,A=b;v<A.length;v++){var D=A[v];N.addMatcher(D.matcher,D.reducer)}R&&N.addDefaultCase(R)})}var u;return{name:e,reducer:function(h,f){return u||(u=d()),u(h,f)},actions:l,caseReducers:a,getInitialState:function(){return u||(u=d()),u.getInitialState()}}}var of="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",nf=function(t){t===void 0&&(t=21);for(var e="",o=t;o--;)e+=of[Math.random()*64|0];return e},af=["name","message","stack","code"],Sa=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),Fl=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),sf=function(t){if(typeof t=="object"&&t!==null){for(var e={},o=0,n=af;o<n.length;o++){var i=n[o];typeof t[i]=="string"&&(e[i]=t[i])}return e}return{message:String(t)}},Zx=function(){function t(e,o,n){var i=Et(e+"/fulfilled",function(h,f,y,x){return{payload:h,meta:xa(Ot({},x||{}),{arg:y,requestId:f,requestStatus:"fulfilled"})}}),a=Et(e+"/pending",function(h,f,y){return{payload:void 0,meta:xa(Ot({},y||{}),{arg:f,requestId:h,requestStatus:"pending"})}}),s=Et(e+"/rejected",function(h,f,y,x,b){return{payload:x,error:(n&&n.serializeError||sf)(h||"Rejected"),meta:xa(Ot({},b||{}),{arg:y,requestId:f,rejectedWithValue:!!x,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),l=!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 u(h){return function(f,y,x){var b=n?.idGenerator?n.idGenerator(h):nf(),w=new d,R,L=!1;function N(v){R=v,w.abort()}var E=function(){return Vu(this,null,function(){var v,A,D,F,V,z,M;return Fu(this,function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),F=(v=n?.condition)==null?void 0:v.call(n,h,{getState:y,extra:x}),cf(F)?[4,F]:[3,2];case 1:F=m.sent(),m.label=2;case 2:if(F===!1||w.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return L=!0,V=new Promise(function(C,P){return w.signal.addEventListener("abort",function(){return P({name:"AbortError",message:R||"Aborted"})})}),f(a(b,h,(A=n?.getPendingMeta)==null?void 0:A.call(n,{requestId:b,arg:h},{getState:y,extra:x}))),[4,Promise.race([V,Promise.resolve(o(h,{dispatch:f,getState:y,extra:x,requestId:b,signal:w.signal,abort:N,rejectWithValue:function(C,P){return new Sa(C,P)},fulfillWithValue:function(C,P){return new Fl(C,P)}})).then(function(C){if(C instanceof Sa)throw C;return C instanceof Fl?i(C.payload,b,h,C.meta):i(C,b,h)})])];case 3:return D=m.sent(),[3,5];case 4:return z=m.sent(),D=z instanceof Sa?s(null,b,h,z.payload,z.meta):s(z,b,h),[3,5];case 5:return M=n&&!n.dispatchConditionRejection&&s.match(D)&&D.meta.condition,M||f(D),[2,D]}})})}();return Object.assign(E,{abort:N,requestId:b,arg:h,unwrap:function(){return E.then(lf)}})}}return Object.assign(u,{pending:a,rejected:s,fulfilled:i,typePrefix:e})}return t.withTypes=function(){return t},t}();function lf(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function cf(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Vl="listener",Kl="completed",Zl="cancelled",qx="task-"+Zl,Yx="task-"+Kl,Xx=Vl+"-"+Zl,Jx=Vl+"-"+Kl;var Oa="listenerMiddleware";var Qx=Et(Oa+"/add"),ev=Et(Oa+"/removeAll"),tv=Et(Oa+"/remove");var Hl,rv=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(Hl||(Hl=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},df=function(t){return function(e){setTimeout(e,t)}},ov=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:df(10);wl();window.ftReduxStores||(window.ftReduxStores={});var Wt=class t extends st{static get(e){var o;let n=typeof e=="string"?e:e.name,i=typeof e=="string"?void 0:e,a=window.ftReduxStores[n];if(pr(a))return a;if(i==null)return;let s=jl({...i,reducers:(o=i.reducers)!==null&&o!==void 0?o:{}}),l=Wl({reducer:(d,u)=>u.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__")?{...d,...u.overwrites}:s.reducer(d,u)});return window.ftReduxStores[i.name]=new t(s,l,i.eventBus)}constructor(e,o,n){super(),this.reduxSlice=e,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new io;let i=a=>a!=null?JSON.parse(JSON.stringify(a)):a;this.actions=new Proxy(this.reduxSlice.actions,{get:(a,s,l)=>{let d=s,u=a[d];return u?(...h)=>{let f=u(...h.map(i));return this.reduxStore.dispatch(f),f}:h=>{this.setState({[d]:i(h)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};function pf(){var t;for(let e of Object.values((t=window.ftReduxStores)!==null&&t!==void 0?t:{}))pr(e)&&e.clear()}var vn=class{constructor(e,o,n){this.store=e,this.valueSelector=o,this.callback=n}watch(){return this.stop(),this.lastValue=this.valueSelector(this.store.getState()),this.unsubscribe=this.store.subscribe(()=>{let e=this.store.getState(),o=this.valueSelector(e);at(this.lastValue,o)&&(this.callback(o,e),this.lastValue=o)}),this}stop(){return this.unsubscribe!=null&&(this.unsubscribe(),this.unsubscribe=void 0),this.lastValue=void 0,this}};function uf(t,e,o){return new vn(t,e,o).watch()}var Ea=class{constructor(){this.requestConsumers=new Map}getOrCreateRequestConsumers(e){var o;return(o=this.requestConsumers.get(e))!==null&&o!==void 0?o:this.requestConsumers.set(e,new Set).get(e)}registerComponent(e,o){for(let n of o)this.getOrCreateRequestConsumers(n).add(e)}unregisterComponent(e,o){for(let n of o)this.getOrCreateRequestConsumers(n).delete(e)}isRequestNeeded(e){return this.getOrCreateRequestConsumers(e).size>0}};var Ta={};K(Ta,{scrollHelper:()=>ff});var wa,Sn=new Map,Ra=class{lock(e,o){if(o){let n=Sn.get(o);if(n==null||n===e)return Sn.set(o,e),o}}release(e,o){o&&Sn.get(o)===e&&Sn.delete(o)}findFirstScrollableParent(e){var o;let n,i;for(let a of fi(e)){let s=a,l=this.elementCanScroll(s);if(l&&s.clientHeight&&s.clientHeight<s.scrollHeight){n=s;break}else l&&i==null&&(i=s)}return(o=n??i)!==null&&o!==void 0?o:document.body}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)}catch{return!1}}getAbsoluteScrollOffset(e,o){var n,i;let a=0;for(;o&&o.offsetParent!==e.offsetParent;)a+=(n=o.offsetTop)!==null&&n!==void 0?n:0,o=o.offsetParent;return a+((i=o?.offsetTop)!==null&&i!==void 0?i:0)-e.offsetTop}computeTopOffsetRatio(e,o){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return o;default:return 0}}scrollIntoViewIfPossible(e,o){let n=this.findFirstScrollableParent(e);if(e&&this.lock(this,n)){let i=this.getAbsoluteScrollOffset(n,e),a=i-n.clientHeight+e.clientHeight,s=i,l=jr(0,(s-n.scrollTop)/(s-a),1),d=this.computeTopOffsetRatio(o?.position,l)*(a-s)+s;n.scrollTo({behavior:o?.behavior,top:d})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,n);this.release(this,n)}};window.FluidTopicsScrollHelper=(wa=window.FluidTopicsScrollHelper)!==null&&wa!==void 0?wa:new Ra;var ff=window.FluidTopicsScrollHelper;var _a={};K(_a,{SearchPlaceConverter:()=>vr,SearchPlaceQueryParams:()=>Y,isSearchPlaceQueryParams:()=>_c,serializeRequest:()=>gf});var yf=zd(Yl(),1);var Xl;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(Xl||(Xl={}));var Jl;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Jl||(Jl={}));var Ql;(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"})(Ql||(Ql={}));var ec;(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"})(ec||(ec={}));var tc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(tc||(tc={}));var rc;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(rc||(rc={}));var oc;(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"})(oc||(oc={}));var nc;(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"})(nc||(nc={}));var ic;(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"})(ic||(ic={}));var ac;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(ac||(ac={}));var sc;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(sc||(sc={}));var lc;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(lc||(lc={}));var cc;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(cc||(cc={}));var dc;(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"})(dc||(dc={}));var br;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(br||(br={}));var pc;(function(t){t.ASC="ASC",t.DESC="DESC"})(pc||(pc={}));var uc;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(uc||(uc={}));var La;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(La||(La={}));var vc=t=>Object.keys(La).includes(t);var fc;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(fc||(fc={}));var hc;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(hc||(hc={}));var yc;(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"})(yc||(yc={}));var xr;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(xr||(xr={}));var Sc=t=>Object.keys(xr).includes(t);var mc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(mc||(mc={}));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 bc;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(bc||(bc={}));var ce;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(ce||(ce={}));var De;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(De||(De={}));var xc;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(xc||(xc={}));var Cc;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Cc||(Cc={}));var Oc;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Oc||(Oc={}));var Ec;(function(t){t.USER="USER",t.ASSISTANT="ASSISTANT"})(Ec||(Ec={}));var Ac;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Ac||(Ac={}));var wc;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(wc||(wc={}));var hf={[ce.PERSONAL_BOOK_SHARE_USER]:[ce.PERSONAL_BOOK_USER],[ce.HTML_EXPORT_USER]:[ce.PERSONAL_BOOK_USER],[ce.PDF_EXPORT_USER]:[ce.PERSONAL_BOOK_USER],[ce.KHUB_ADMIN]:[ce.CONTENT_PUBLISHER],[ce.ADMIN]:[ce.KHUB_ADMIN,ce.USERS_ADMIN,ce.PORTAL_ADMIN],[ce.GENERATIVE_AI_EXPORT_USER]:[ce.GENERATIVE_AI_USER]};function Rc(t,e){return t===e||(hf[t]??[]).some(o=>Rc(o,e))}function Tc(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(n=>Rc(n,e))}function mf(t){return`"${t}"`}function Lc(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function gf(t,e){return new vr(t).serialize(e)}var Y;(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"})(Y||(Y={}));var bf=new Set(Object.values(Y));function _c(t){return bf.has(t)}var vr=class{constructor(e,o=20,n=!1,i="en-US"){this.baseUrl=e,this.defaultPerPage=o,this.allLanguagesAllowed=n,this.defaultContentLocale=i,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"},this.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]]}serialize(e,o){return this.serializeToCurrentPageIfPossible(e,o??"/search")}serializeToCurrentPageIfPossible(e,o){let n=o==null||o.trim().length===0,i=new URL(n?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${o}`);return i.search=this.toURLSearchParams(e),i.toString()}toURLSearchParams(e,o=!1){var n,i,a,s,l,d,u,h,f,y,x;let b=new URLSearchParams;e.contentLocale?(!o||e.contentLocale!==this.defaultContentLocale)&&b.append(Y.LOCALE,e.contentLocale):b.append(Y.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((n=e.query)===null||n===void 0?void 0:n.length)>0&&b.append(Y.QUERY,e.query);let w=(a=(i=e.metadataFilters)===null||i===void 0?void 0:i.filter(v=>v.valueFilter&&!v.valueFilter.negative))!==null&&a!==void 0?a:[];if(w.length>0){let v=w.map(A=>{var D,F;let V=((F=(D=A.valueFilter)===null||D===void 0?void 0:D.values)!==null&&F!==void 0?F:[]).map(z=>this.escapeFilters(z)).map(z=>mf(Lc(z))).join("_");return`${A.key}~${V}`}).join("*");b.append(Y.VALUE_FILTERS,v)}let R=(l=(s=e.metadataFilters)===null||s===void 0?void 0:s.filter(v=>v.dateFilter))!==null&&l!==void 0?l:[];if(R.length>0){let v=R.map(A=>{var D;return`${A.key}~${(D=A.dateFilter)===null||D===void 0?void 0:D.type.toLowerCase()}`}).join("*");b.append(Y.DATE_FILTERS,v)}let L=(u=(d=e.metadataFilters)===null||d===void 0?void 0:d.filter(v=>v.rangeFilter))!==null&&u!==void 0?u:[];if(L.length>0){let v=L.map(A=>{var D,F;return`${A.key}~${(D=A.rangeFilter)===null||D===void 0?void 0:D.from}_${(F=A.rangeFilter)===null||F===void 0?void 0:F.to}`}).join("*");b.append(Y.RANGE_FILTERS,v)}e.virtualField&&e.virtualField!=="EVERYWHERE"&&b.append(Y.VIRTUAL_FIELD,e.virtualField.toLowerCase()),e.scope&&e.scope!=="DEFAULT"&&b.append(Y.SCOPE,e.scope.toLowerCase()),e.sortId!=null&&b.append(Y.SORT,e.sortId),!((h=e.paging)===null||h===void 0)&&h.perPage&&((y=(f=e.paging)===null||f===void 0?void 0:f.perPage)!==null&&y!==void 0?y:this.defaultPerPage)!=this.defaultPerPage&&b.append(Y.PER_PAGE,String(e.paging.perPage)),e.keywordMatch!=null&&b.append(Y.KEYWORD_MATCH,e.keywordMatch.toLowerCase());let N=(x=e.otherQueryParams)!==null&&x!==void 0?x:{};for(let v in N)b.append(v,N[v]);let E=new Array;return b.forEach((v,A)=>{E.push(this.encodeQueryString(A)+"="+this.encodeQueryString(v))}),encodeURI(E.join("&")).replace(/#/g,"%23")}encodeQueryString(e){return encodeURIComponent(e).replace(/%20/g,"+")}parse(e){var o;let n=e.split("?"),i=this.fromURLSearchParams(n.slice(1).join("?")),a=n[0].split("/search/")[1];return a==null?i:{...i,scope:(o=this.scopeMapping[a])!==null&&o!==void 0?o:i.scope}}fromURLSearchParams(e){var o,n,i,a,s,l;try{e=decodeURI(e).replace(/%23/g,"#")}catch(L){console.warn("Could not decode search request query params, fallback on raw value",L)}let d=new URLSearchParams(e),u=d.get(Y.LOCALE)==="all"?void 0:d.get(Y.LOCALE),h=((o=d.get(Y.VIRTUAL_FIELD))!==null&&o!==void 0?o:"EVERYWHERE").toUpperCase(),f=(n=d.get(Y.SORT))===null||n===void 0?void 0:n.toLowerCase(),y=(i=d.get(Y.SCOPE))!==null&&i!==void 0?i:"default",x=+((a=d.get(Y.PER_PAGE))!==null&&a!==void 0?a:this.defaultPerPage),b=d.get(Y.KEYWORD_MATCH),w=b?b.toUpperCase()===br.MANDATORY?br.MANDATORY:br.OPTIONAL:void 0,R={};for(let L of d.keys())_c(L)||(R[L]=d.get(L));return{contentLocale:u??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:(s=d.get(Y.QUERY))!==null&&s!==void 0?s:"",scope:(l=this.scopeMapping[y])!==null&&l!==void 0?l:"DEFAULT",virtualField:vc(h)?h:"EVERYWHERE",sortId:f,metadataFilters:this.parseCompatFilters(d),facets:[],paging:{page:1,perPage:jr(1,isNaN(x)?this.defaultPerPage:x,1e3)},keywordMatch:w,otherQueryParams:R}}parseCompatFilters(e){var o,n,i,a,s,l;let d=[];return e.has(Y.FILTERS)&&(d=this.parseValueFilters((o=e.get(Y.FILTERS))!==null&&o!==void 0?o:"")),(n=e.has(Y.PERIOD))!==null&&n!==void 0&&n&&(d=[...d,...this.parseLegacyPeriodFilter(((i=e.get(Y.PERIOD))!==null&&i!==void 0?i:"").toUpperCase())]),[...d,...this.parseValueFilters((a=e.get(Y.VALUE_FILTERS))!==null&&a!==void 0?a:""),...this.parseDateFilters((s=e.get(Y.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=e.get(Y.RANGE_FILTERS))!==null&&l!==void 0?l:"")]}splitUnknownFilter(e){return this.superEscapeFilters(e).split("*").map(o=>o.split("~"))}parseValueFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],valueFilter:{values:o[1].split("_").map(Lc).map(n=>this.unescapeFilterValue(n)),negative:!1}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],dateFilter:{type:xr[o[1].toUpperCase()]}}))}parseRangeFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],rangeFilter:{from:o[1].split("_")[0],to:o[1].split("_")[1]}}))}escapeFilters(e){for(let[o,n,i]of this.filtersEscapeMapping)e=e.replaceAll(o,n);return e}superEscapeFilters(e){for(let[o,n,i]of this.filtersEscapeMapping)e=e.replaceAll(n,i);return e}unescapeFilterValue(e){for(let[o,n,i]of this.filtersEscapeMapping)e=e.replace(i,o);return e}parseLegacyPeriodFilter(e){if(Sc(e))return[{key:"ft:lastEdition",dateFilter:{type:xr[e]}}];if(e.startsWith("CUSTOM_")){let[o,n,i]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:n,to:i}}]}return[]}};var Pa={};K(Pa,{toFtFormComponent:()=>Ia});var Na=Symbol("elementInternals"),Ia=ae(Symbol("toFtFormComponent"),function(t){class e extends t{static get formAssociated(){return!0}get form(){return this[Na].form}constructor(...n){super(n),this[Na]=this.attachInternals()}setFormValue(n){this[Na].setFormValue(n)}}return e});var ka={};K(ka,{DateFormatter:()=>Gt});var Gt=class{static format(e,o,n,i){return window.moment?window.moment(e).locale(o).format(this.getMomentDateFormat(n,i)):this.getIntlDateTime(e,o,n,i)}static getMomentDateFormat(e,o){return e?o?"lll":"ll":o?"L LT":"L"}static getIntlDateTime(e,o,n,i){let a=typeof e=="string"?new Date(e):e,s=new Intl.DateTimeFormat(o,{dateStyle:n?"medium":"short"}).format(a);if(!i)return s;let l=new Intl.DateTimeFormat(o,{timeStyle:"short"}).format(a);return`${s} ${l}`}static getTimezoneAsString(){let e=n=>String(Math.floor(n)).padStart(2,"0"),o=new Date().getTimezoneOffset();return`${o<0?"+":"-"}${e(Math.abs(o)/60)}:${e(Math.abs(o)%60)}`}};var Ma={};K(Ma,{ALL_KEYS_VALUE:()=>Da,SameWindowStorageEvent:()=>Sr});var Da="__all__",Sr=class extends CustomEvent{constructor(e,o,n){super("same-window-storage",{detail:{key:e,oldValue:o,newValue:n}})}keyMatch(e){return this.detail.key.includes(e)||this.detail.key==Da}};Storage.prototype.setItem=new Proxy(Storage.prototype.setItem,{apply(t,e,o){let n=e.getItem(o[0]);Reflect.apply(t,e,o),window.dispatchEvent(new Sr(o[0],n,o[1]))}});Storage.prototype.removeItem=new Proxy(Storage.prototype.removeItem,{apply(t,e,o){let n=e.getItem(o[0]);Reflect.apply(t,e,o),window.dispatchEvent(new Sr(o[0],n))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(t,e,o){Reflect.apply(t,e,o),window.dispatchEvent(new Sr(Da))}});var $a={};K($a,{FocusMainContentEvent:()=>Ba});var Ba=class extends Event{constructor(){super("ft-focus-main-content",{composed:!0,bubbles:!0})}};var Nc={};window.FluidTopicsA11yHints={isKeyboardNavigation:!1,lastPressedKey:""};function xf(t){(t.key==="Enter"||t.key===" "||t.key==="Tab")&&(window.FluidTopicsA11yHints.isKeyboardNavigation=!0),window.FluidTopicsA11yHints.lastPressedKey=t.key}function vf(t){window.FluidTopicsA11yHints.isKeyboardNavigation=t.detail==0}document.addEventListener("keydown",xf);document.addEventListener("click",vf);var Ic=I`
49
49
  .sr-only {
50
50
  position:absolute;
51
51
  left:-10000px;
@@ -69,7 +69,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
69
69
  width:auto;
70
70
  height:auto;
71
71
  }
72
- `;var Sf={checkVisibility:!0},Wv=ae(Symbol("withAriaNotification"),function(t){class e extends t{sendAriaNotification(n,i){let{checkVisibility:a}={...Sf,...i};setTimeout(()=>{(!a||this.checkVisibility())&&(n=typeof n=="string"?n:n?.message,n&&this.dispatchEvent(new Kr({type:"aria",message:n})))},20)}}return e});function Ic(t,e,o){return t?e(t):o?.(t)}var he=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},jt;(function(t){t.blur="blur",t.blurWithStatusResolutionOnInput="blurWithStatusResolutionOnInput",t.input="input"})(jt||(jt={}));var Vt;(function(t){t.default="default",t.warning="warning",t.error="error"})(Vt||(Vt={}));var Ua=class extends CustomEvent{constructor(e){super("input-validated",{detail:{level:e}})}},Qv=ae(Symbol("toFtInput"),function(t){class e extends t{constructor(){super(...arguments),this.warningRules=[],this.errorRules=[],this.validateOn=jt.input,this.validateAtRender=!1,this.label="",this.hideLabel=!1,this.name="",this.disabled=!1,this.errorMessages=[],this.warningMessages=[],this.status=Vt.default,this.focused=!1,this.additionalWarningRules=[],this.additionalErrorRules=[]}connectedCallback(){super.connectedCallback(),this.validateAtRender&&this.triggerValidation()}onBlur(){this.focused=!1,(this.validateOn===jt.blur||this.validateOn===jt.blurWithStatusResolutionOnInput)&&this.triggerValidation()}onFocus(){this.focused=!0}onInput(){(this.status!==Vt.default&&this.validateOn===jt.blurWithStatusResolutionOnInput||this.validateOn===jt.input)&&this.triggerValidation()}triggerValidation(){this.errorMessages=this.processRules([...this.errorRules,...this.additionalErrorRules]),this.warningMessages=this.processRules([...this.warningRules,...this.additionalWarningRules]),this.status=this.resolveStatus(),this.dispatchEvent(new Ua(this.status))}get messagesForScreenReaderElementId(){return"sr-helper-text-list"}renderMessagesForScreenReader(){return U`
72
+ `;var Sf={checkVisibility:!0},Wv=ae(Symbol("withAriaNotification"),function(t){class e extends t{sendAriaNotification(n,i){let{checkVisibility:a}={...Sf,...i};setTimeout(()=>{(!a||this.checkVisibility())&&(n=typeof n=="string"?n:n?.message,n&&this.dispatchEvent(new Kr({type:"aria",message:n})))},20)}}return e});function Pc(t,e,o){return t?e(t):o?.(t)}var he=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},jt;(function(t){t.blur="blur",t.blurWithStatusResolutionOnInput="blurWithStatusResolutionOnInput",t.input="input"})(jt||(jt={}));var Vt;(function(t){t.default="default",t.warning="warning",t.error="error"})(Vt||(Vt={}));var Ua=class extends CustomEvent{constructor(e){super("input-validated",{detail:{level:e}})}},Qv=ae(Symbol("toFtInput"),function(t){class e extends t{constructor(){super(...arguments),this.warningRules=[],this.errorRules=[],this.validateOn=jt.input,this.validateAtRender=!1,this.label="",this.hideLabel=!1,this.name="",this.disabled=!1,this.errorMessages=[],this.warningMessages=[],this.status=Vt.default,this.focused=!1,this.additionalWarningRules=[],this.additionalErrorRules=[]}connectedCallback(){super.connectedCallback(),this.validateAtRender&&this.triggerValidation()}onBlur(){this.focused=!1,(this.validateOn===jt.blur||this.validateOn===jt.blurWithStatusResolutionOnInput)&&this.triggerValidation()}onFocus(){this.focused=!0}onInput(){(this.status!==Vt.default&&this.validateOn===jt.blurWithStatusResolutionOnInput||this.validateOn===jt.input)&&this.triggerValidation()}triggerValidation(){this.errorMessages=this.processRules([...this.errorRules,...this.additionalErrorRules]),this.warningMessages=this.processRules([...this.warningRules,...this.additionalWarningRules]),this.status=this.resolveStatus(),this.dispatchEvent(new Ua(this.status))}get messagesForScreenReaderElementId(){return"sr-helper-text-list"}renderMessagesForScreenReader(){return U`
73
73
  <ul aria-live="polite" id="${this.messagesForScreenReaderElementId}"
74
74
  style="position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden;list-style:none;">
75
75
  ${_o(this.errorMessages,n=>U`
@@ -78,15 +78,15 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
78
78
  ${_o(this.warningMessages,n=>U`
79
79
  <li>${n}</li>
80
80
  `)}
81
- ${Ic(!this.errorMessages.length&&!this.warningMessages.length&&this.helperText,()=>U`
81
+ ${Pc(!this.errorMessages.length&&!this.warningMessages.length&&this.helperText,()=>U`
82
82
  <li>${this.helperText}</li>
83
83
  `)}
84
84
  </ul>
85
- `}resolveStatus(){return this.forceStatus?this.forceStatus:this.errorMessages.length?Vt.error:this.warningMessages.length?Vt.warning:Vt.default}processRules(n){return n.map(i=>i(this.value)).filter(i=>i!==!0).map(i=>i)}}return he([S()],e.prototype,"warningRules",void 0),he([S()],e.prototype,"errorRules",void 0),he([S()],e.prototype,"validateOn",void 0),he([S({type:Boolean})],e.prototype,"validateAtRender",void 0),he([S()],e.prototype,"label",void 0),he([S({type:Boolean})],e.prototype,"hideLabel",void 0),he([S()],e.prototype,"name",void 0),he([S({type:Boolean})],e.prototype,"disabled",void 0),he([S()],e.prototype,"helperText",void 0),he([S()],e.prototype,"forceStatus",void 0),he([S({reflect:!0})],e.prototype,"value",void 0),he([j()],e.prototype,"errorMessages",void 0),he([j()],e.prototype,"warningMessages",void 0),he([j()],e.prototype,"status",void 0),he([j()],e.prototype,"focused",void 0),he([j()],e.prototype,"additionalWarningRules",void 0),he([j()],e.prototype,"additionalErrorRules",void 0),e});var po=(t,e)=>{let o=t._$AN;if(o===void 0)return!1;for(let n of o)n._$AO?.(e,!1),po(n,e);return!0},En=t=>{let e,o;do{if((e=t._$AM)===void 0)break;o=e._$AN,o.delete(t),t=e}while(o?.size===0)},Pc=t=>{for(let e;e=t._$AM;t=e){let o=e._$AN;if(o===void 0)e._$AN=o=new Set;else if(o.has(t))break;o.add(t),Ef(e)}};function Cf(t){this._$AN!==void 0?(En(this),this._$AM=t,Pc(this)):this._$AM=t}function Of(t,e=!1,o=0){let n=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(e)if(Array.isArray(n))for(let a=o;a<n.length;a++)po(n[a],!1),En(n[a]);else n!=null&&(po(n,!1),En(n));else po(this,t)}var Ef=t=>{t.type==Ye.CHILD&&(t._$AP??=Of,t._$AQ??=Cf)},An=class extends Ie{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,o,n){super._$AT(e,o,n),Pc(this),this.isConnected=e._$AU}_$AO(e,o=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),o&&(po(this,e),En(this))}setValue(e){if(Ls(this._$Ct))this._$Ct._$AI(e,this);else{let o=[...this._$Ct._$AH];o[this._$Ci]=e,this._$Ct._$AI(o,this,0)}}disconnected(){}reconnected(){}};var kc;(function(t){t.sm="sm",t.md="md",t.lg="lg",t.xl="xl"})(kc||(kc={}));var Af={sm:640,md:768,lg:1024,xl:1280},Fa=class extends An{constructor(e){super(e),this.size=0,this.onResize=()=>{let o=window.innerWidth;this.size!==o&&(this.size=o,this.lastArgs&&this.setValue(this.render(...this.lastArgs)))},this.size=window.innerWidth,window.addEventListener("resize",this.onResize)}disconnected(){window.removeEventListener("resize",this.onResize)}reconnected(){window.addEventListener("resize",this.onResize)}update(e,[o,n,i]){return this.lastArgs=[o,n,i],this.render(o,n,i)}render(e,o,n){let i=this.resolveThreshold(e),a=n??(()=>H);return this.size>i?o():a()}resolveThreshold(e){return typeof e=="number"?e:Af[e]}},f0=ze(Fa);var Ha,za,Wa,Ga,uo=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((Wa=(za=(Ha=window.safari)===null||Ha===void 0?void 0:Ha.pushNotification)===null||za===void 0?void 0:za.toString())!==null&&Wa!==void 0?Wa:"")==="[object SafariRemoteNotification]",wf="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(Ga=window.ftGlobals)!==null&&Ga!==void 0?Ga:{lit:ri,litDecorators:ni,litRepeat:ii,litClassMap:ai,litStyleMap:si,litUnsafeHTML:ci,wcUtils:{...bi,...pi,...Ci,...ka,...Oi,...Ei,...Ti,...gi,...Gi,...$a,..._c,...Ta,...Ri,...qi,...Pa,...Zi,...fl,...hi,...Ji,...Li,...Qi,...Nc,...yl,...ea,...Aa,...Ma,...ji,...Ki,..._a,...vi,isSafari:uo,isTouchScreen:wf,setVariable:O}};var rS={},Dc=I`
85
+ `}resolveStatus(){return this.forceStatus?this.forceStatus:this.errorMessages.length?Vt.error:this.warningMessages.length?Vt.warning:Vt.default}processRules(n){return n.map(i=>i(this.value)).filter(i=>i!==!0).map(i=>i)}}return he([S()],e.prototype,"warningRules",void 0),he([S()],e.prototype,"errorRules",void 0),he([S()],e.prototype,"validateOn",void 0),he([S({type:Boolean})],e.prototype,"validateAtRender",void 0),he([S()],e.prototype,"label",void 0),he([S({type:Boolean})],e.prototype,"hideLabel",void 0),he([S()],e.prototype,"name",void 0),he([S({type:Boolean})],e.prototype,"disabled",void 0),he([S()],e.prototype,"helperText",void 0),he([S()],e.prototype,"forceStatus",void 0),he([S({reflect:!0})],e.prototype,"value",void 0),he([j()],e.prototype,"errorMessages",void 0),he([j()],e.prototype,"warningMessages",void 0),he([j()],e.prototype,"status",void 0),he([j()],e.prototype,"focused",void 0),he([j()],e.prototype,"additionalWarningRules",void 0),he([j()],e.prototype,"additionalErrorRules",void 0),e});var po=(t,e)=>{let o=t._$AN;if(o===void 0)return!1;for(let n of o)n._$AO?.(e,!1),po(n,e);return!0},En=t=>{let e,o;do{if((e=t._$AM)===void 0)break;o=e._$AN,o.delete(t),t=e}while(o?.size===0)},kc=t=>{for(let e;e=t._$AM;t=e){let o=e._$AN;if(o===void 0)e._$AN=o=new Set;else if(o.has(t))break;o.add(t),Ef(e)}};function Cf(t){this._$AN!==void 0?(En(this),this._$AM=t,kc(this)):this._$AM=t}function Of(t,e=!1,o=0){let n=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(e)if(Array.isArray(n))for(let a=o;a<n.length;a++)po(n[a],!1),En(n[a]);else n!=null&&(po(n,!1),En(n));else po(this,t)}var Ef=t=>{t.type==Ye.CHILD&&(t._$AP??=Of,t._$AQ??=Cf)},An=class extends Ie{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,o,n){super._$AT(e,o,n),kc(this),this.isConnected=e._$AU}_$AO(e,o=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),o&&(po(this,e),En(this))}setValue(e){if(Ls(this._$Ct))this._$Ct._$AI(e,this);else{let o=[...this._$Ct._$AH];o[this._$Ci]=e,this._$Ct._$AI(o,this,0)}}disconnected(){}reconnected(){}};var Dc;(function(t){t.sm="sm",t.md="md",t.lg="lg",t.xl="xl"})(Dc||(Dc={}));var Af={sm:640,md:768,lg:1024,xl:1280},Fa=class extends An{constructor(e){super(e),this.size=0,this.onResize=()=>{let o=window.innerWidth;this.size!==o&&(this.size=o,this.lastArgs&&this.setValue(this.render(...this.lastArgs)))},this.size=window.innerWidth,window.addEventListener("resize",this.onResize)}disconnected(){window.removeEventListener("resize",this.onResize)}reconnected(){window.addEventListener("resize",this.onResize)}update(e,[o,n,i]){return this.lastArgs=[o,n,i],this.render(o,n,i)}render(e,o,n){let i=this.resolveThreshold(e),a=n??(()=>H);return this.size>i?o():a()}resolveThreshold(e){return typeof e=="number"?e:Af[e]}},f0=ze(Fa);var Ha,za,Wa,Ga,uo=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((Wa=(za=(Ha=window.safari)===null||Ha===void 0?void 0:Ha.pushNotification)===null||za===void 0?void 0:za.toString())!==null&&Wa!==void 0?Wa:"")==="[object SafariRemoteNotification]",wf="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(Ga=window.ftGlobals)!==null&&Ga!==void 0?Ga:{lit:ri,litDecorators:ni,litRepeat:ii,litClassMap:ai,litStyleMap:si,litUnsafeHTML:ci,wcUtils:{...bi,...pi,...Ci,...ka,...Oi,...Ei,...Ti,...gi,...Gi,...$a,...Nc,...Ta,...Ri,...qi,...Pa,...Zi,...fl,...hi,...Ji,...Li,...Qi,...Ic,...yl,...ea,...Aa,...Ma,...ji,...Ki,..._a,...vi,isSafari:uo,isTouchScreen:wf,setVariable:O}};var rS={},Mc=I`
86
86
  :host {
87
87
  display: inline-block;
88
88
  }
89
- `;var Mc;(function(t){t.clusteringHelperCreated="clustering-helper-created",t.mapAttachmentsUpdate="map-attachments-update",t.visibleTopicChange="visible-topic-change"})(Mc||(Mc={}));var Bc;(function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"})(Bc||(Bc={}));var Rf=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},Va=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},ja=Symbol("registerInterval"),Tf=ae(Symbol("toFtReaderComponent"),function(t){var e;class o extends t{constructor(){super(...arguments),this[e]=0}setReaderStateManager(i){this.clearStateManager(),this.stateManager=i,this.addStore(i.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var i;return(i=this.stateManager)===null||i===void 0?void 0:i.service}connectedCallback(){super.connectedCallback(),this[ja]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[ja]):this.dispatchEvent(new Va)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=ja,Rf([j()],o.prototype,"stateManager",void 0),o}),wn=class extends Tf(Ft){};var Ka=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},qa=class extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}},Za=Symbol("registerInterval"),Lf=ae(Symbol("toFtReaderTopicComponent"),function(t){var e;class o extends t{constructor(){super(...arguments),this.disableContextInteractions=!1,this.headingLevelsShift=0,this[e]=0}connectedCallback(){super.connectedCallback(),this[Za]=window.setInterval(()=>this.tryToRegisterToTopicContext(),50)}tryToRegisterToTopicContext(){this.tocNode!=null?window.clearInterval(this[Za]):this.dispatchEvent(new qa)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return e=Za,Ka([j()],o.prototype,"tocNode",void 0),Ka([j()],o.prototype,"disableContextInteractions",void 0),Ka([j()],o.prototype,"headingLevelsShift",void 0),o}),Rn=class extends Lf(wn){};var Uc=Symbol.for(""),_f=t=>{if(t?.r===Uc)return t?._$litStatic$},Cr=t=>({_$litStatic$:t,r:Uc});var $c=new Map,Ya=t=>(e,...o)=>{let n=o.length,i,a,s=[],l=[],d,u=0,h=!1;for(;u<n;){for(d=e[u];u<n&&(a=o[u],(i=_f(a))!==void 0);)d+=i+e[++u],h=!0;u!==n&&l.push(a),s.push(d),u++}if(u===n&&s.push(e[n]),h){let f=s.join("$$lit$$");(e=$c.get(f))===void 0&&(s.raw=s,$c.set(f,e=s)),o=l}return t(e,...o)},Or=Ya(U),hS=Ya(Xn),yS=Ya(Jn);var wt;(function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button",t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"})(wt||(wt={}));function Fc(t,e){let o=gt[t];return I`
89
+ `;var Bc;(function(t){t.clusteringHelperCreated="clustering-helper-created",t.mapAttachmentsUpdate="map-attachments-update",t.visibleTopicChange="visible-topic-change"})(Bc||(Bc={}));var $c;(function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"})($c||($c={}));var Rf=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},Va=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},ja=Symbol("registerInterval"),Tf=ae(Symbol("toFtReaderComponent"),function(t){var e;class o extends t{constructor(){super(...arguments),this[e]=0}setReaderStateManager(i){this.clearStateManager(),this.stateManager=i,this.addStore(i.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var i;return(i=this.stateManager)===null||i===void 0?void 0:i.service}connectedCallback(){super.connectedCallback(),this[ja]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[ja]):this.dispatchEvent(new Va)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=ja,Rf([j()],o.prototype,"stateManager",void 0),o}),wn=class extends Tf(Ft){};var Ka=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},qa=class extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}},Za=Symbol("registerInterval"),Lf=ae(Symbol("toFtReaderTopicComponent"),function(t){var e;class o extends t{constructor(){super(...arguments),this.disableContextInteractions=!1,this.headingLevelsShift=0,this[e]=0}connectedCallback(){super.connectedCallback(),this[Za]=window.setInterval(()=>this.tryToRegisterToTopicContext(),50)}tryToRegisterToTopicContext(){this.tocNode!=null?window.clearInterval(this[Za]):this.dispatchEvent(new qa)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return e=Za,Ka([j()],o.prototype,"tocNode",void 0),Ka([j()],o.prototype,"disableContextInteractions",void 0),Ka([j()],o.prototype,"headingLevelsShift",void 0),o}),Rn=class extends Lf(wn){};var Fc=Symbol.for(""),_f=t=>{if(t?.r===Fc)return t?._$litStatic$},Cr=t=>({_$litStatic$:t,r:Fc});var Uc=new Map,Ya=t=>(e,...o)=>{let n=o.length,i,a,s=[],l=[],d,u=0,h=!1;for(;u<n;){for(d=e[u];u<n&&(a=o[u],(i=_f(a))!==void 0);)d+=i+e[++u],h=!0;u!==n&&l.push(a),s.push(d),u++}if(u===n&&s.push(e[n]),h){let f=s.join("$$lit$$");(e=Uc.get(f))===void 0&&(s.raw=s,Uc.set(f,e=s)),o=l}return t(e,...o)},Or=Ya(U),hS=Ya(Xn),yS=Ya(Jn);var wt;(function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button",t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"})(wt||(wt={}));function Hc(t,e){let o=gt[t];return I`
90
90
  ${e?Ee(e):I`.ft-typography--${Ee(t)}`} {
91
91
  font-family: ${o.fontFamily};
92
92
  font-size: ${o.fontSize};
@@ -96,7 +96,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
96
96
  text-decoration: ${o.textDecoration};
97
97
  text-transform: ${o.textCase};
98
98
  }
99
- `}var Hc=r.extend("--ft-typography-font-family","",W.titleFont),ht=r.extend("--ft-typography-font-family","",W.contentFont),B={fontFamily:ht,fontSize:r.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:r.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:r.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:r.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:r.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Er={fontFamily:r.extend("--ft-typography-title-font-family","",Hc),fontSize:r.extend("--ft-typography-title-font-size","",B.fontSize,"20px"),fontWeight:r.extend("--ft-typography-title-font-weight","",B.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-title-letter-spacing","",B.letterSpacing,"0.15px"),lineHeight:r.extend("--ft-typography-title-line-height","",B.lineHeight,"1.2"),textTransform:r.extend("--ft-typography-title-text-transform","",B.textTransform,"inherit")},Ar={fontFamily:r.extend("--ft-typography-title-dense-font-family","",Hc),fontSize:r.extend("--ft-typography-title-dense-font-size","",B.fontSize,"14px"),fontWeight:r.extend("--ft-typography-title-dense-font-weight","",B.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-title-dense-letter-spacing","",B.letterSpacing,"0.105px"),lineHeight:r.extend("--ft-typography-title-dense-line-height","",B.lineHeight,"1.7"),textTransform:r.extend("--ft-typography-title-dense-text-transform","",B.textTransform,"inherit")},wr={fontFamily:r.extend("--ft-typography-subtitle1-font-family","",ht),fontSize:r.extend("--ft-typography-subtitle1-font-size","",B.fontSize,"16px"),fontWeight:r.extend("--ft-typography-subtitle1-font-weight","",B.fontWeight,"600"),letterSpacing:r.extend("--ft-typography-subtitle1-letter-spacing","",B.letterSpacing,"0.144px"),lineHeight:r.extend("--ft-typography-subtitle1-line-height","",B.lineHeight,"1.5"),textTransform:r.extend("--ft-typography-subtitle1-text-transform","",B.textTransform,"inherit")},Rr={fontFamily:r.extend("--ft-typography-subtitle2-font-family","",ht),fontSize:r.extend("--ft-typography-subtitle2-font-size","",B.fontSize,"14px"),fontWeight:r.extend("--ft-typography-subtitle2-font-weight","",B.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-subtitle2-letter-spacing","",B.letterSpacing,"0.098px"),lineHeight:r.extend("--ft-typography-subtitle2-line-height","",B.lineHeight,"1.7"),textTransform:r.extend("--ft-typography-subtitle2-text-transform","",B.textTransform,"inherit")},Tr={fontFamily:r.extend("--ft-typography-body1-font-family","",ht),fontSize:r.extend("--ft-typography-body1-font-size","",B.fontSize,"16px"),fontWeight:r.extend("--ft-typography-body1-font-weight","",B.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-body1-letter-spacing","",B.letterSpacing,"0.496px"),lineHeight:r.extend("--ft-typography-body1-line-height","",B.lineHeight,"1.5"),textTransform:r.extend("--ft-typography-body1-text-transform","",B.textTransform,"inherit")},Me={fontFamily:r.extend("--ft-typography-body2-font-family","",ht),fontSize:r.extend("--ft-typography-body2-font-size","",B.fontSize,"14px"),fontWeight:r.extend("--ft-typography-body2-font-weight","",B.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-body2-letter-spacing","",B.letterSpacing,"0.252px"),lineHeight:r.extend("--ft-typography-body2-line-height","",B.lineHeight,"1.4"),textTransform:r.extend("--ft-typography-body2-text-transform","",B.textTransform,"inherit")},Lr={fontFamily:r.extend("--ft-typography-caption-font-family","",ht),fontSize:r.extend("--ft-typography-caption-font-size","",B.fontSize,"12px"),fontWeight:r.extend("--ft-typography-caption-font-weight","",B.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-caption-letter-spacing","",B.letterSpacing,"0.396px"),lineHeight:r.extend("--ft-typography-caption-line-height","",B.lineHeight,"1.33"),textTransform:r.extend("--ft-typography-caption-text-transform","",B.textTransform,"inherit")},_r={fontFamily:r.extend("--ft-typography-breadcrumb-font-family","",ht),fontSize:r.extend("--ft-typography-breadcrumb-font-size","",B.fontSize,"10px"),fontWeight:r.extend("--ft-typography-breadcrumb-font-weight","",B.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-breadcrumb-letter-spacing","",B.letterSpacing,"0.33px"),lineHeight:r.extend("--ft-typography-breadcrumb-line-height","",B.lineHeight,"1.6"),textTransform:r.extend("--ft-typography-breadcrumb-text-transform","",B.textTransform,"inherit")},Nr={fontFamily:r.extend("--ft-typography-overline-font-family","",ht),fontSize:r.extend("--ft-typography-overline-font-size","",B.fontSize,"10px"),fontWeight:r.extend("--ft-typography-overline-font-weight","",B.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-overline-letter-spacing","",B.letterSpacing,"1.5px"),lineHeight:r.extend("--ft-typography-overline-line-height","",B.lineHeight,"1.6"),textTransform:r.extend("--ft-typography-overline-text-transform","",B.textTransform,"uppercase")},rt={fontFamily:r.extend("--ft-typography-button-font-family","",ht),fontSize:r.extend("--ft-typography-button-font-size","",B.fontSize,"14px"),fontWeight:r.extend("--ft-typography-button-font-weight","",B.fontWeight,"600"),letterSpacing:r.extend("--ft-typography-button-letter-spacing","",B.letterSpacing,"1.246px"),lineHeight:r.extend("--ft-typography-button-line-height","",B.lineHeight,"1.15"),textTransform:r.extend("--ft-typography-button-text-transform","",B.textTransform,"uppercase")},zc=I`
99
+ `}var zc=r.extend("--ft-typography-font-family","",W.titleFont),ht=r.extend("--ft-typography-font-family","",W.contentFont),B={fontFamily:ht,fontSize:r.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:r.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:r.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:r.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:r.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Er={fontFamily:r.extend("--ft-typography-title-font-family","",zc),fontSize:r.extend("--ft-typography-title-font-size","",B.fontSize,"20px"),fontWeight:r.extend("--ft-typography-title-font-weight","",B.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-title-letter-spacing","",B.letterSpacing,"0.15px"),lineHeight:r.extend("--ft-typography-title-line-height","",B.lineHeight,"1.2"),textTransform:r.extend("--ft-typography-title-text-transform","",B.textTransform,"inherit")},Ar={fontFamily:r.extend("--ft-typography-title-dense-font-family","",zc),fontSize:r.extend("--ft-typography-title-dense-font-size","",B.fontSize,"14px"),fontWeight:r.extend("--ft-typography-title-dense-font-weight","",B.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-title-dense-letter-spacing","",B.letterSpacing,"0.105px"),lineHeight:r.extend("--ft-typography-title-dense-line-height","",B.lineHeight,"1.7"),textTransform:r.extend("--ft-typography-title-dense-text-transform","",B.textTransform,"inherit")},wr={fontFamily:r.extend("--ft-typography-subtitle1-font-family","",ht),fontSize:r.extend("--ft-typography-subtitle1-font-size","",B.fontSize,"16px"),fontWeight:r.extend("--ft-typography-subtitle1-font-weight","",B.fontWeight,"600"),letterSpacing:r.extend("--ft-typography-subtitle1-letter-spacing","",B.letterSpacing,"0.144px"),lineHeight:r.extend("--ft-typography-subtitle1-line-height","",B.lineHeight,"1.5"),textTransform:r.extend("--ft-typography-subtitle1-text-transform","",B.textTransform,"inherit")},Rr={fontFamily:r.extend("--ft-typography-subtitle2-font-family","",ht),fontSize:r.extend("--ft-typography-subtitle2-font-size","",B.fontSize,"14px"),fontWeight:r.extend("--ft-typography-subtitle2-font-weight","",B.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-subtitle2-letter-spacing","",B.letterSpacing,"0.098px"),lineHeight:r.extend("--ft-typography-subtitle2-line-height","",B.lineHeight,"1.7"),textTransform:r.extend("--ft-typography-subtitle2-text-transform","",B.textTransform,"inherit")},Tr={fontFamily:r.extend("--ft-typography-body1-font-family","",ht),fontSize:r.extend("--ft-typography-body1-font-size","",B.fontSize,"16px"),fontWeight:r.extend("--ft-typography-body1-font-weight","",B.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-body1-letter-spacing","",B.letterSpacing,"0.496px"),lineHeight:r.extend("--ft-typography-body1-line-height","",B.lineHeight,"1.5"),textTransform:r.extend("--ft-typography-body1-text-transform","",B.textTransform,"inherit")},Me={fontFamily:r.extend("--ft-typography-body2-font-family","",ht),fontSize:r.extend("--ft-typography-body2-font-size","",B.fontSize,"14px"),fontWeight:r.extend("--ft-typography-body2-font-weight","",B.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-body2-letter-spacing","",B.letterSpacing,"0.252px"),lineHeight:r.extend("--ft-typography-body2-line-height","",B.lineHeight,"1.4"),textTransform:r.extend("--ft-typography-body2-text-transform","",B.textTransform,"inherit")},Lr={fontFamily:r.extend("--ft-typography-caption-font-family","",ht),fontSize:r.extend("--ft-typography-caption-font-size","",B.fontSize,"12px"),fontWeight:r.extend("--ft-typography-caption-font-weight","",B.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-caption-letter-spacing","",B.letterSpacing,"0.396px"),lineHeight:r.extend("--ft-typography-caption-line-height","",B.lineHeight,"1.33"),textTransform:r.extend("--ft-typography-caption-text-transform","",B.textTransform,"inherit")},_r={fontFamily:r.extend("--ft-typography-breadcrumb-font-family","",ht),fontSize:r.extend("--ft-typography-breadcrumb-font-size","",B.fontSize,"10px"),fontWeight:r.extend("--ft-typography-breadcrumb-font-weight","",B.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-breadcrumb-letter-spacing","",B.letterSpacing,"0.33px"),lineHeight:r.extend("--ft-typography-breadcrumb-line-height","",B.lineHeight,"1.6"),textTransform:r.extend("--ft-typography-breadcrumb-text-transform","",B.textTransform,"inherit")},Nr={fontFamily:r.extend("--ft-typography-overline-font-family","",ht),fontSize:r.extend("--ft-typography-overline-font-size","",B.fontSize,"10px"),fontWeight:r.extend("--ft-typography-overline-font-weight","",B.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-overline-letter-spacing","",B.letterSpacing,"1.5px"),lineHeight:r.extend("--ft-typography-overline-line-height","",B.lineHeight,"1.6"),textTransform:r.extend("--ft-typography-overline-text-transform","",B.textTransform,"uppercase")},rt={fontFamily:r.extend("--ft-typography-button-font-family","",ht),fontSize:r.extend("--ft-typography-button-font-size","",B.fontSize,"14px"),fontWeight:r.extend("--ft-typography-button-font-weight","",B.fontWeight,"600"),letterSpacing:r.extend("--ft-typography-button-letter-spacing","",B.letterSpacing,"1.246px"),lineHeight:r.extend("--ft-typography-button-line-height","",B.lineHeight,"1.15"),textTransform:r.extend("--ft-typography-button-text-transform","",B.textTransform,"uppercase")},Wc=I`
100
100
  .ft-typography--title {
101
101
  font-family: ${Er.fontFamily};
102
102
  font-size: ${Er.fontSize};
@@ -105,7 +105,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
105
105
  line-height: ${Er.lineHeight};
106
106
  text-transform: ${Er.textTransform};
107
107
  }
108
- `,Wc=I`
108
+ `,Gc=I`
109
109
  .ft-typography--title-dense {
110
110
  font-family: ${Ar.fontFamily};
111
111
  font-size: ${Ar.fontSize};
@@ -114,7 +114,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
114
114
  line-height: ${Ar.lineHeight};
115
115
  text-transform: ${Ar.textTransform};
116
116
  }
117
- `,Gc=I`
117
+ `,jc=I`
118
118
  .ft-typography--subtitle1 {
119
119
  font-family: ${wr.fontFamily};
120
120
  font-size: ${wr.fontSize};
@@ -123,7 +123,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
123
123
  line-height: ${wr.lineHeight};
124
124
  text-transform: ${wr.textTransform};
125
125
  }
126
- `,jc=I`
126
+ `,Vc=I`
127
127
  .ft-typography--subtitle2 {
128
128
  font-family: ${Rr.fontFamily};
129
129
  font-size: ${Rr.fontSize};
@@ -133,7 +133,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
133
133
  text-transform: ${Rr.textTransform};
134
134
  }
135
135
 
136
- `,Vc=I`
136
+ `,Kc=I`
137
137
  .ft-typography--body1 {
138
138
  font-family: ${Tr.fontFamily};
139
139
  font-size: ${Tr.fontSize};
@@ -142,7 +142,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
142
142
  line-height: ${Tr.lineHeight};
143
143
  text-transform: ${Tr.textTransform};
144
144
  }
145
- `,Kc=I`
145
+ `,Zc=I`
146
146
  .ft-typography--body2 {
147
147
  font-family: ${Me.fontFamily};
148
148
  font-size: ${Me.fontSize};
@@ -151,7 +151,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
151
151
  line-height: ${Me.lineHeight};
152
152
  text-transform: ${Me.textTransform};
153
153
  }
154
- `,Zc=I`
154
+ `,qc=I`
155
155
  .ft-typography--caption {
156
156
  font-family: ${Lr.fontFamily};
157
157
  font-size: ${Lr.fontSize};
@@ -160,7 +160,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
160
160
  line-height: ${Lr.lineHeight};
161
161
  text-transform: ${Lr.textTransform};
162
162
  }
163
- `,qc=I`
163
+ `,Yc=I`
164
164
  .ft-typography--breadcrumb {
165
165
  font-family: ${_r.fontFamily};
166
166
  font-size: ${_r.fontSize};
@@ -169,7 +169,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
169
169
  line-height: ${_r.lineHeight};
170
170
  text-transform: ${_r.textTransform};
171
171
  }
172
- `,Yc=I`
172
+ `,Xc=I`
173
173
  .ft-typography--overline {
174
174
  font-family: ${Nr.fontFamily};
175
175
  font-size: ${Nr.fontSize};
@@ -178,7 +178,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
178
178
  line-height: ${Nr.lineHeight};
179
179
  text-transform: ${Nr.textTransform};
180
180
  }
181
- `,Xc=I`
181
+ `,Jc=I`
182
182
  .ft-typography--button {
183
183
  font-family: ${rt.fontFamily};
184
184
  font-size: ${rt.fontSize};
@@ -187,11 +187,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
187
187
  line-height: ${rt.lineHeight};
188
188
  text-transform: ${rt.textTransform};
189
189
  }
190
- `,Jc=I`
190
+ `,Qc=I`
191
191
  .ft-typography {
192
192
  vertical-align: inherit;
193
193
  }
194
- `,Qc=[Object.keys(gt).map(t=>Fc(t))];var ed=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},Le=class extends q{constructor(){super(...arguments),this.variant=wt.body1}render(){return this.element?Or`
194
+ `,ed=[Object.keys(gt).map(t=>Hc(t))];var td=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},Le=class extends q{constructor(){super(...arguments),this.variant=wt.body1}render(){return this.element?Or`
195
195
  <${Cr(this.element)}
196
196
  part="text"
197
197
  class="ft-typography ft-typography--${this.variant}">
@@ -199,7 +199,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
199
199
  </${Cr(this.element)}>
200
200
  `:Or`
201
201
  <slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
202
- `}};Le.styles=[zc,Wc,Gc,jc,Vc,Kc,Zc,qc,Yc,Xc,Jc,...Qc];ed([S()],Le.prototype,"element",void 0);ed([S()],Le.prototype,"variant",void 0);var je;(function(t){t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"})(je||(je={}));function Nf(t,e){let o=gt[t];return I`
202
+ `}};Le.styles=[Wc,Gc,jc,Vc,Kc,Zc,qc,Yc,Xc,Jc,Qc,...ed];td([S()],Le.prototype,"element",void 0);td([S()],Le.prototype,"variant",void 0);var je;(function(t){t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"})(je||(je={}));function Nf(t,e){let o=gt[t];return I`
203
203
  ${e?Ee(e):I`.ftds-typography--${Ee(t)}`} {
204
204
  font-family: ${o.fontFamily};
205
205
  font-size: ${o.fontSize};
@@ -209,7 +209,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
209
209
  text-decoration: ${o.textDecoration};
210
210
  text-transform: ${o.textCase};
211
211
  }
212
- `}var td=[Object.keys(gt).map(t=>Nf(t))];var rd=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},Ve=class extends q{constructor(){super(...arguments),this.variant=je.body2medium}render(){return this.element?Or`
212
+ `}var rd=[Object.keys(gt).map(t=>Nf(t))];var od=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},Ve=class extends q{constructor(){super(...arguments),this.variant=je.body2medium}render(){return this.element?Or`
213
213
  <${Cr(this.element)}
214
214
  part="text"
215
215
  class="ftds-typography ftds-typography--${this.variant}">
@@ -217,7 +217,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
217
217
  </${Cr(this.element)}>
218
218
  `:Or`
219
219
  <slot part="text" class="ftds-typography ftds-typography--${this.variant}"></slot>
220
- `}};Ve.styles=[...td];rd([S()],Ve.prototype,"element",void 0);rd([S()],Ve.prototype,"variant",void 0);ee("ft-typography")(Le);ee("ftds-typography")(Ve);var Ir={distance:r.create("--ft-tooltip-distance","","SIZE","4px"),color:r.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:r.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:r.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:r.extend("--ft-tooltip-border-radius","",W.borderRadiusS),maxWidth:r.create("--ft-tooltip-max-width","","SIZE","150px")},od=I`
220
+ `}};Ve.styles=[...rd];od([S()],Ve.prototype,"element",void 0);od([S()],Ve.prototype,"variant",void 0);ee("ft-typography")(Le);ee("ftds-typography")(Ve);var Ir={distance:r.create("--ft-tooltip-distance","","SIZE","4px"),color:r.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:r.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:r.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:r.extend("--ft-tooltip-border-radius","",W.borderRadiusS),maxWidth:r.create("--ft-tooltip-max-width","","SIZE","150px")},nd=I`
221
221
  .ft-tooltip--container {
222
222
  display: block;
223
223
  }
@@ -246,10 +246,10 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
246
246
  position: relative;
247
247
  word-break: break-word;
248
248
  }
249
- `;var nd=I`
250
- `;var If="ft-app-info",Kt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Kt.eventName="authentication-change";var Pf={session:(t,e)=>{Ae(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>k.dispatchEvent(new Kt(e.payload)),0))}},k=Wt.get({name:If,reducers:Pf,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 Zt=class t{static get(e){let{baseUrl:o,apiIntegrationIdentifier:n}=k.getState(),i=e??n;if(o&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,i,!0)}static await(e){return new Promise(o=>{let n=t.get(e);if(n)o(n);else{let i=k.subscribe(()=>{n=t.get(e),n&&(i(),o(n))})}})}};var Tn=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Zt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Zt.await()}};var _e=class extends Tn{constructor(e=!0,o){var n;super(o),this.sortObjectFields=(a,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([l],[d])=>l.localeCompare(d)));let i=this.constructor;i.commonCache=(n=i.commonCache)!==null&&n!==void 0?n:new Je,this.cache=e?i.commonCache:new Je}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((o,n)=>0|31*o+n.charCodeAt(0),0))}};var Ln=class extends _e{async listMyBookmarks(){let e=k.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var Xa=class{addCommand(e,o=!1){k.commands.add(e,o)}consumeCommand(e){return k.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Xa;var id,Pr=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},kf=Symbol("clearAfterUnitTest"),_n=class extends Po(_e){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[id]=()=>{this.defaultMessages={},this.cache=new Je,this.listeners={}},this.currentUiLocale=k.getState().uiLocale,k.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=k.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let o=e.name.toLowerCase();this.cache.setFinal(o,e),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,o){var n;if(e=e.toLowerCase(),o&&Object.keys(o).length>0){let i={...(n=this.defaultMessages[e])!==null&&n!==void 0?n:{},...o};Ae(this.defaultMessages[e],i)||(this.defaultMessages[e]=i,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var o,n;return this.fetchContext(e),(n=(o=this.cache.getNow(e))===null||o===void 0?void 0:o.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(e,o){let n=e.toLowerCase();return this.resolveContext(n)[o]}resolveMessage(e,o,...n){var i;let a=e.toLowerCase(),s=this.resolveContext(a);return new no((i=this.defaultMessages[a])!==null&&i!==void 0?i:{},s).resolve(o,...n)}async fetchContext(e){let o=!this.cache.has(e),n;try{n=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),o&&await this.notify(e)}catch(i){!(i instanceof kt)&&o&&console.error(i)}return n}subscribe(e,o){var n;return e=e.toLowerCase(),this.listeners[e]=(n=this.listeners[e])!==null&&n!==void 0?n:new Set,this.listeners[e].add(o),()=>{var i;return(i=this.listeners[e])===null||i===void 0?void 0:i.delete(o)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new Pr({loadedContexts:e})),this.dispatchEvent(new Pr({loadedContexts:e})),await Promise.all(e.map(o=>this.notify(o,!1)))}async notify(e,o=!0){o&&(document.body.dispatchEvent(new Pr({loadedContexts:[e]})),this.dispatchEvent(new Pr({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(n=>Io(0).then(()=>n()).catch(()=>null)))}};id=kf;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends _n{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends _n{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var fo=window.FluidTopicsI18nService,Ja=window.FluidTopicsCustomI18nService;var Qa=class{highlightHtml(e,o,n){Xi(e,o,n)}};window.FluidTopicsHighlightHtmlService=new Qa;var Nn=class extends _e{async listMySearches(){let{session:e}=k.getState();return Rc(e,ce.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var es=class{isDate(e){var o,n,i,a;return(a=(i=((n=(o=k.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]).find(l=>l.key===e))===null||i===void 0?void 0:i.date)!==null&&a!==void 0?a:!1}format(e,o){var n,i,a;return Gt.format(e,(n=o?.locale)!==null&&n!==void 0?n:k.getState().uiLocale,(i=o?.longFormat)!==null&&i!==void 0?i:!1,(a=o?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new es;var ho=class{static get(e,o){var n,i;let a=k.getState(),{lang:s,region:l}=(i=(n=a.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&i!==void 0?i:{lang:"en",region:"US"};return new vr(a.baseUrl,e??20,a.searchInAllLanguagesAllowed,o??`${s}-${l}`)}};var ts=class{urlToSearchRequest(e){return ho.get().parse(e)}searchRequestToUrl(e){return ho.get().serialize(e)}};window.FluidTopicsUrlService=new ts;var qt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};qt.eventName="change";var rs=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let o=sessionStorage.getItem(this.itemName(e));return o?JSON.parse(o):void 0}set(e,o){sessionStorage.setItem(this.itemName(e),JSON.stringify(o))}},ad=new rs;var In=class t extends st{static build(){return new t(window.history,ad,()=>window.location,!1)}constructor(e,o,n,i){var a,s;super(),this.history=e,this.historyStorage=o,this.windowLocation=n,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(a=e.state)===null||a===void 0?void 0:a.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(i)}setCurrentState(e,o=!1){let n=o&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,n&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),Ae(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new qt(this.currentItem())),0)}installProxies(){let e=o=>(n,i,[a,s,l])=>{let d=o(),u={...d===this.currentIndex?this.currentState:void 0,...a,index:d,href:typeof l=="string"?l:(l??this.windowLocation()).href};n.apply(i,[u,s,l]),this.setCurrentState(u,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let o=this.history.length-1;o>=0;o--)e?this.states[o]=this.historyStorage.get(o):setTimeout(()=>this.states[o]=this.historyStorage.get(o),this.history.length-o)}updateCurrentState(e){var o;let n={...this.buildCurrentState(),...e,index:this.currentIndex,title:(o=e?.title)!==null&&o!==void 0?o:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(e){this.addEventListener(qt.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(qt.eventName,e)}currentItem(){return Vr(this.currentState)}back(){let e=this.previousDifferentMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return Vr(this.states[this.previousDifferentMajorPosition()])}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return Vr(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var o;let n=(o=this.states[e])===null||o===void 0?void 0:o.majorStateId;if(!n)return e;let i=e,a=e+1;for(;this.states.length>a&&!this.isDifferentMajorState(a,n);)this.hasState(a)&&(i=a),a++;return i}buildCurrentState(){var e,o;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(o=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&o!==void 0?o:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,o){var n;if(!this.hasState(e))return!1;let i=o??this.currentState.majorStateId,a=(n=this.states[e])===null||n===void 0?void 0:n.majorStateId;return a==null||a!=i}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=In.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t)});var sd=k;function ld(t,e){var o;return sd.getState().authenticationRequired&&!(!((o=sd.getState().session)===null||o===void 0)&&o.sessionAuthenticated)?Promise.resolve(e):t()}var de=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},Q=class extends q{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=()=>Zt.get(),this.authenticationRequired=!1,this.messageContexts=[],this.cache=new Je,this.cleanSessionDebouncer=new we,this.reloadConfiguration=()=>{this.cache.clear("availableContentLocales"),this.updateAvailableContentLocales()}}render(){return U`
249
+ `;var id=I`
250
+ `;var If="ft-app-info",Kt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Kt.eventName="authentication-change";var Pf={session:(t,e)=>{Ae(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>k.dispatchEvent(new Kt(e.payload)),0))}},k=Wt.get({name:If,reducers:Pf,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 Zt=class t{static get(e){let{baseUrl:o,apiIntegrationIdentifier:n}=k.getState(),i=e??n;if(o&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,i,!0)}static await(e){return new Promise(o=>{let n=t.get(e);if(n)o(n);else{let i=k.subscribe(()=>{n=t.get(e),n&&(i(),o(n))})}})}};var Tn=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Zt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Zt.await()}};var _e=class extends Tn{constructor(e=!0,o){var n;super(o),this.sortObjectFields=(a,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([l],[d])=>l.localeCompare(d)));let i=this.constructor;i.commonCache=(n=i.commonCache)!==null&&n!==void 0?n:new Je,this.cache=e?i.commonCache:new Je}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((o,n)=>0|31*o+n.charCodeAt(0),0))}};var Ln=class extends _e{async listMyBookmarks(){let e=k.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var Xa=class{addCommand(e,o=!1){k.commands.add(e,o)}consumeCommand(e){return k.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Xa;var ad,Pr=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},kf=Symbol("clearAfterUnitTest"),_n=class extends Po(_e){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[ad]=()=>{this.defaultMessages={},this.cache=new Je,this.listeners={}},this.currentUiLocale=k.getState().uiLocale,k.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=k.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let o=e.name.toLowerCase();this.cache.setFinal(o,e),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,o){var n;if(e=e.toLowerCase(),o&&Object.keys(o).length>0){let i={...(n=this.defaultMessages[e])!==null&&n!==void 0?n:{},...o};Ae(this.defaultMessages[e],i)||(this.defaultMessages[e]=i,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var o,n;return this.fetchContext(e),(n=(o=this.cache.getNow(e))===null||o===void 0?void 0:o.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(e,o){let n=e.toLowerCase();return this.resolveContext(n)[o]}resolveMessage(e,o,...n){var i;let a=e.toLowerCase(),s=this.resolveContext(a);return new no((i=this.defaultMessages[a])!==null&&i!==void 0?i:{},s).resolve(o,...n)}async fetchContext(e){let o=!this.cache.has(e),n;try{n=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),o&&await this.notify(e)}catch(i){!(i instanceof kt)&&o&&console.error(i)}return n}subscribe(e,o){var n;return e=e.toLowerCase(),this.listeners[e]=(n=this.listeners[e])!==null&&n!==void 0?n:new Set,this.listeners[e].add(o),()=>{var i;return(i=this.listeners[e])===null||i===void 0?void 0:i.delete(o)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new Pr({loadedContexts:e})),this.dispatchEvent(new Pr({loadedContexts:e})),await Promise.all(e.map(o=>this.notify(o,!1)))}async notify(e,o=!0){o&&(document.body.dispatchEvent(new Pr({loadedContexts:[e]})),this.dispatchEvent(new Pr({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(n=>Io(0).then(()=>n()).catch(()=>null)))}};ad=kf;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends _n{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends _n{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var fo=window.FluidTopicsI18nService,Ja=window.FluidTopicsCustomI18nService;var Qa=class{highlightHtml(e,o,n){Xi(e,o,n)}};window.FluidTopicsHighlightHtmlService=new Qa;var Nn=class extends _e{async listMySearches(){let{session:e}=k.getState();return Tc(e,ce.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var es=class{isDate(e){var o,n,i,a;return(a=(i=((n=(o=k.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]).find(l=>l.key===e))===null||i===void 0?void 0:i.date)!==null&&a!==void 0?a:!1}format(e,o){var n,i,a;return Gt.format(e,(n=o?.locale)!==null&&n!==void 0?n:k.getState().uiLocale,(i=o?.longFormat)!==null&&i!==void 0?i:!1,(a=o?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new es;var ho=class{static get(e,o){var n,i;let a=k.getState(),{lang:s,region:l}=(i=(n=a.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&i!==void 0?i:{lang:"en",region:"US"};return new vr(a.baseUrl,e??20,a.searchInAllLanguagesAllowed,o??`${s}-${l}`)}};var ts=class{urlToSearchRequest(e){return ho.get().parse(e)}searchRequestToUrl(e){return ho.get().serialize(e)}};window.FluidTopicsUrlService=new ts;var qt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};qt.eventName="change";var rs=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let o=sessionStorage.getItem(this.itemName(e));return o?JSON.parse(o):void 0}set(e,o){sessionStorage.setItem(this.itemName(e),JSON.stringify(o))}},sd=new rs;var In=class t extends st{static build(){return new t(window.history,sd,()=>window.location,!1)}constructor(e,o,n,i){var a,s;super(),this.history=e,this.historyStorage=o,this.windowLocation=n,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(a=e.state)===null||a===void 0?void 0:a.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(i)}setCurrentState(e,o=!1){let n=o&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,n&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),Ae(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new qt(this.currentItem())),0)}installProxies(){let e=o=>(n,i,[a,s,l])=>{let d=o(),u={...d===this.currentIndex?this.currentState:void 0,...a,index:d,href:typeof l=="string"?l:(l??this.windowLocation()).href};n.apply(i,[u,s,l]),this.setCurrentState(u,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let o=this.history.length-1;o>=0;o--)e?this.states[o]=this.historyStorage.get(o):setTimeout(()=>this.states[o]=this.historyStorage.get(o),this.history.length-o)}updateCurrentState(e){var o;let n={...this.buildCurrentState(),...e,index:this.currentIndex,title:(o=e?.title)!==null&&o!==void 0?o:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(e){this.addEventListener(qt.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(qt.eventName,e)}currentItem(){return Vr(this.currentState)}back(){let e=this.previousDifferentMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return Vr(this.states[this.previousDifferentMajorPosition()])}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return Vr(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var o;let n=(o=this.states[e])===null||o===void 0?void 0:o.majorStateId;if(!n)return e;let i=e,a=e+1;for(;this.states.length>a&&!this.isDifferentMajorState(a,n);)this.hasState(a)&&(i=a),a++;return i}buildCurrentState(){var e,o;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(o=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&o!==void 0?o:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,o){var n;if(!this.hasState(e))return!1;let i=o??this.currentState.majorStateId,a=(n=this.states[e])===null||n===void 0?void 0:n.majorStateId;return a==null||a!=i}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=In.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t)});function ld(t,e){let{authenticationRequired:o,session:n}=k.getState();return o&&!n?.sessionAuthenticated?Promise.resolve(e):t()}var de=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},Q=class extends q{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=()=>Zt.get(),this.authenticationRequired=!1,this.messageContexts=[],this.cache=new Je,this.cleanSessionDebouncer=new we,this.reloadConfiguration=()=>{this.cache.clear("availableContentLocales"),this.updateAvailableContentLocales()}}render(){return U`
251
251
  <slot></slot>
252
- `}connectedCallback(){super.connectedCallback(),k.addEventListener(Kt.eventName,this.reloadConfiguration)}disconnectedCallback(){k.addEventListener(Kt.eventName,this.reloadConfiguration),super.disconnectedCallback()}update(e){var o,n,i,a,s,l,d;super.update(e),e.has("baseUrl")&&(k.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&k.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&k.actions.apiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&k.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&k.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&k.actions.noCustom(this.noCustom),e.has("editorMode")&&k.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&k.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&k.actions.session(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(u=>fo.addContext(u)),e.has("openExternalDocumentInNewTab")&&k.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&k.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&k.actions.forcedOffline(this.forcedOffline),e.has("localesConfiguration")&&(k.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),k.actions.availableUiLocales((i=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&i!==void 0?i:[]),k.actions.searchInAllLanguagesAllowed((s=(a=this.localesConfiguration)===null||a===void 0?void 0:a.allLanguagesAllowed)!==null&&s!==void 0?s:!1)),e.has("authenticationRequired")&&k.actions.authenticationRequired(this.authenticationRequired),e.has("availableContentLocales")&&k.actions.availableContentLocales((d=(l=this.availableContentLocales)===null||l===void 0?void 0:l.contentLocales)!==null&&d!==void 0?d:[]),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration(),this.availableContentLocales==null&&this.updateAvailableContentLocales())}async updateSession(){this.session=await this.cache.get("session",async()=>{let e=await this.apiProvider().getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},e.idleTimeoutInMillis),e})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}async updateAvailableContentLocales(){this.availableContentLocales=await this.cache.get("availableContentLocales",()=>ld(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}))}};Q.elementDefinitions={};Q.styles=nd;de([S()],Q.prototype,"baseUrl",void 0);de([S()],Q.prototype,"apiIntegrationIdentifier",void 0);de([S()],Q.prototype,"apiIntegrationAppVersion",void 0);de([S()],Q.prototype,"uiLocale",void 0);de([Pe(null)],Q.prototype,"availableUiLocales",void 0);de([Pe(null)],Q.prototype,"metadataConfiguration",void 0);de([S({type:Boolean})],Q.prototype,"editorMode",void 0);de([S({type:Boolean})],Q.prototype,"noCustom",void 0);de([S({type:Boolean})],Q.prototype,"openExternalDocumentInNewTab",void 0);de([S({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],Q.prototype,"noCustomComponent",void 0);de([S({type:Boolean})],Q.prototype,"withManualResources",void 0);de([S({type:Boolean})],Q.prototype,"navigatorOnline",void 0);de([S({type:Boolean})],Q.prototype,"forcedOffline",void 0);de([S({type:Object})],Q.prototype,"apiProvider",void 0);de([S({type:Boolean})],Q.prototype,"authenticationRequired",void 0);de([Pe([])],Q.prototype,"messageContexts",void 0);de([Pe(void 0)],Q.prototype,"session",void 0);de([j()],Q.prototype,"localesConfiguration",void 0);de([j()],Q.prototype,"availableContentLocales",void 0);var Pn=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},cd=ae(Symbol("withDateFormat"),function(t){class e extends t{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(k)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var i,a;return((a=(i=this.metadataDescriptors.find(l=>l.key===n))===null||i===void 0?void 0:i.date)!==null&&a!==void 0?a:!1)?l=>Gt.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Pn([S({type:Boolean})],e.prototype,"useLongDateFormat",void 0),Pn([S({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),Pn([dr({store:k.name,selector:o=>{var n,i;return(i=(n=o.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&i!==void 0?i:[]}})],e.prototype,"metadataDescriptors",void 0),Pn([dr({store:k.name})],e.prototype,"uiLocale",void 0),e});var kn=class extends _e{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=k.getState().session;return!!e?.sessionAuthenticated}};var Dn=class extends _e{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let e=k.getState().session;return!!e?.sessionAuthenticated}};var Df="ft-user-assets",Mf={setAssetCount:(t,e)=>{let{userAssetType:o,count:n}=e.payload.assetCount;t.assetCounts.allAsset[o]=n},clearAssetCount:t=>{Object.values(De).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let o=e.payload.mapId;t.assetCounts.bookmarkByMap[o]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:o,mapId:n,asset:i}=e.payload;ns(t,o,[...os(t,o),i]),dd(t,o,1,n),pd(t,i)},editAsset:(t,e)=>{let{assetType:o,asset:n}=e.payload;ns(t,o,os(t,o).map(i=>i.id===n.id?n:i)),pd(t,n)},removeAsset:(t,e)=>{let{assetType:o,mapId:n,assetId:i}=e.payload;ns(t,o,os(t,o).filter(a=>a.id!==i)),dd(t,o,-1,n)}},ud={[De.SEARCHES]:"savedSearches",[De.BOOKMARKS]:"bookmarks",[De.BOOKS]:void 0,[De.COLLECTIONS]:void 0},os=(t,e)=>{var o;let n=ud[e];return n?(o=t[n])!==null&&o!==void 0?o:[]:[]},ns=(t,e,o)=>{let n=ud[e];n&&(t[n]=o)},dd=(t,e,o,n)=>{let i=t.assetCounts.allAsset[e];if(i!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,i+o),e===De.BOOKMARKS&&n)){let a=t.assetCounts.bookmarkByMap[n];t.assetCounts.bookmarkByMap[n]=Math.max(0,a+o)}},pd=(t,e)=>{let o=t.assetLabels.map(i=>i.title),n=e.labels.filter(i=>!o.includes(i)).map(i=>({title:i}));t.assetLabels.push(...n)},Ne=Wt.get({name:Df,reducers:Mf,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(De).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),is=class{constructor(e=new kn,o=new Dn){this.assetCountsService=e,this.assetLabelsService=o,this.currentSession=k.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Ln,this.savedSearchesService=new Nn,k.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:o}=k.getState();Ae((e=this.currentSession)===null||e===void 0?void 0:e.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),Ne.actions.clearAssetCount(),Ne.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Ne.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Ne.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Ne.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();Ne.actions.assetLabels(e)}async loadAssetCount(e){let o=await this.assetCountsService.getUserAssetCount(e);o&&Ne.actions.setAssetCount({assetCount:o})}async loadBookmarkByMapId(e){let o=await this.assetCountsService.getUserBookmarkCountByMap(e);o&&Ne.actions.setBookmarkCountByMap({count:o.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let o=Object.keys(Ne.getState().assetCounts.bookmarkByMap).length!==0;e===De.BOOKMARKS&&o&&Ne.actions.clearBookmarkCountByMap(),Ne.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let o=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Ne.actions.bookmarks(o)}}},Bf=new is;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Bf);ee("ft-app-context")(Q);var as=class{fromLocalizableLabel(e){return e.type=="PLAIN_TEXT"?{message:e.text}:{key:e.key,custom:e.type=="LOCALIZED_CUSTOM",context:e.context,message:e.key}}fromAttribute(e){if(e!=null)try{return JSON.parse(e)}catch{if(this.isI18nKey(e)){let[n,i]=e.split(".");return{context:n,key:i,custom:!0,message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},kr=new as;var $f=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},mo=Symbol("i18nAttributes"),fd=Symbol("i18nListAttributes"),hd=Symbol("i18nProperties"),Mn=Symbol("i18nContexts"),yo=Symbol("i18nUnsubs"),yd=ae(Symbol("withI18n"),function(t){var e,o;class n extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[o]=new Map}getI18nService(a){return a??this.useCustomMessageContexts?Ja:fo}i18n(a){let{context:s,key:l,message:d}=a,{custom:u,args:h,argsProvider:f}=a;if(s&&l){this.hasI18nContext(s)||this.addI18nContext(s,void 0,u);let y=h??(f?f(this):[]);return this.getI18nService(u).resolveMessage(s,l,...y)}return d}async awaitI18n(a){let{context:s,custom:l}=a;return s&&await this.getI18nService(l).prepareContext(s),this.i18n(a)}customI18n(a,s){if(kr.isI18nKey(a)){let[l,d]=a.split(".");return this.i18n({custom:!0,context:l,key:d,...s})||a}return a}firstUpdated(a){super.firstUpdated(a),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(a){super.update(a),this.updateI18nAttributes((s,l,d)=>a.has(l)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(a){this.updateI18nAttributes((s,l,d)=>{var u;return((u=d?.context)===null||u===void 0?void 0:u.toLowerCase())===a}),this.updateI18nProperties(s=>s.context.toLowerCase()===a),this.requestUpdate()}updateI18nAttributes(a){var s,l;let d=this,u=(h,f,y)=>y?.context&&y.key&&a(h,f,y)?{...y,message:this.i18n({context:y.context,key:y.key,custom:y.custom,...h})}:y;(s=this[mo])===null||s===void 0||s.forEach((h,f)=>d[f]=u(h,f,d[f])),(l=this[fd])===null||l===void 0||l.forEach((h,f)=>{var y;return d[f]=(y=d[f])===null||y===void 0?void 0:y.map(x=>u(h,f,x))})}updateI18nProperties(a){var s;(s=this[hd])===null||s===void 0||s.forEach((l,d)=>{a(l,d)&&(this[d]=this.i18n(l))})}addI18nMessages(a,s,l){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(a,s,l)}addI18nContext(a,s,l){let d=(typeof a=="string"?a:a.name).toLowerCase();l=typeof a=="string"?l:a.custom,this[Mn].set(d,{isCustomContext:l}),this[yo].has(d)||this[yo].set(d,this.getI18nService(l).subscribe(d,()=>this.onI18nUpdate(d))),this.getI18nService(l).prepareContext(d,s)}hasI18nContext(a){return this[Mn].has(a.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Mn].forEach((a,s)=>this.addI18nContext(s,void 0,a.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[yo].forEach(a=>a()),this[yo].clear()}}return e=Mn,o=yo,$f([S({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}),Bn=class extends yd(q){},$n=class extends yd(Ft){};var ss=class{fromAttribute(e){if(!e)return[];try{let o=JSON.parse(e);return Array.isArray(o)?o.map(n=>typeof n=="string"?kr.fromAttribute(n):n):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},Uf=new ss;var md=(t,e)=>(o,n)=>{var i;o.constructor.createProperty(n,{type:Object,hasChanged:at,converter:kr,...e}),o[mo]=(i=o[mo])!==null&&i!==void 0?i:new Map,o[mo].set(n,t??{})};var gd=I`
252
+ `}connectedCallback(){super.connectedCallback(),k.addEventListener(Kt.eventName,this.reloadConfiguration)}disconnectedCallback(){k.addEventListener(Kt.eventName,this.reloadConfiguration),super.disconnectedCallback()}update(e){var o,n,i,a,s,l,d;super.update(e),e.has("baseUrl")&&(k.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&k.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&k.actions.apiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&k.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&k.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&k.actions.noCustom(this.noCustom),e.has("editorMode")&&k.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&k.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&k.actions.session(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(u=>fo.addContext(u)),e.has("openExternalDocumentInNewTab")&&k.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&k.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&k.actions.forcedOffline(this.forcedOffline),e.has("localesConfiguration")&&(k.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),k.actions.availableUiLocales((i=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&i!==void 0?i:[]),k.actions.searchInAllLanguagesAllowed((s=(a=this.localesConfiguration)===null||a===void 0?void 0:a.allLanguagesAllowed)!==null&&s!==void 0?s:!1)),e.has("authenticationRequired")&&k.actions.authenticationRequired(this.authenticationRequired),e.has("availableContentLocales")&&k.actions.availableContentLocales((d=(l=this.availableContentLocales)===null||l===void 0?void 0:l.contentLocales)!==null&&d!==void 0?d:[]),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration(),this.availableContentLocales==null&&this.updateAvailableContentLocales())}async updateSession(){this.session=await this.cache.get("session",async()=>{let e=await this.apiProvider().getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},e.idleTimeoutInMillis),e})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}async updateAvailableContentLocales(){this.availableContentLocales=await this.cache.get("availableContentLocales",()=>ld(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}))}};Q.elementDefinitions={};Q.styles=id;de([S()],Q.prototype,"baseUrl",void 0);de([S()],Q.prototype,"apiIntegrationIdentifier",void 0);de([S()],Q.prototype,"apiIntegrationAppVersion",void 0);de([S()],Q.prototype,"uiLocale",void 0);de([Pe(null)],Q.prototype,"availableUiLocales",void 0);de([Pe(null)],Q.prototype,"metadataConfiguration",void 0);de([S({type:Boolean})],Q.prototype,"editorMode",void 0);de([S({type:Boolean})],Q.prototype,"noCustom",void 0);de([S({type:Boolean})],Q.prototype,"openExternalDocumentInNewTab",void 0);de([S({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],Q.prototype,"noCustomComponent",void 0);de([S({type:Boolean})],Q.prototype,"withManualResources",void 0);de([S({type:Boolean})],Q.prototype,"navigatorOnline",void 0);de([S({type:Boolean})],Q.prototype,"forcedOffline",void 0);de([S({type:Object})],Q.prototype,"apiProvider",void 0);de([S({type:Boolean})],Q.prototype,"authenticationRequired",void 0);de([Pe([])],Q.prototype,"messageContexts",void 0);de([Pe(void 0)],Q.prototype,"session",void 0);de([j()],Q.prototype,"localesConfiguration",void 0);de([j()],Q.prototype,"availableContentLocales",void 0);var Pn=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},cd=ae(Symbol("withDateFormat"),function(t){class e extends t{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(k)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var i,a;return((a=(i=this.metadataDescriptors.find(l=>l.key===n))===null||i===void 0?void 0:i.date)!==null&&a!==void 0?a:!1)?l=>Gt.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Pn([S({type:Boolean})],e.prototype,"useLongDateFormat",void 0),Pn([S({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),Pn([dr({store:k.name,selector:o=>{var n,i;return(i=(n=o.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&i!==void 0?i:[]}})],e.prototype,"metadataDescriptors",void 0),Pn([dr({store:k.name})],e.prototype,"uiLocale",void 0),e});var kn=class extends _e{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=k.getState().session;return!!e?.sessionAuthenticated}};var Dn=class extends _e{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let e=k.getState().session;return!!e?.sessionAuthenticated}};var Df="ft-user-assets",Mf={setAssetCount:(t,e)=>{let{userAssetType:o,count:n}=e.payload.assetCount;t.assetCounts.allAsset[o]=n},clearAssetCount:t=>{Object.values(De).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let o=e.payload.mapId;t.assetCounts.bookmarkByMap[o]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:o,mapId:n,asset:i}=e.payload;ns(t,o,[...os(t,o),i]),dd(t,o,1,n),pd(t,i)},editAsset:(t,e)=>{let{assetType:o,asset:n}=e.payload;ns(t,o,os(t,o).map(i=>i.id===n.id?n:i)),pd(t,n)},removeAsset:(t,e)=>{let{assetType:o,mapId:n,assetId:i}=e.payload;ns(t,o,os(t,o).filter(a=>a.id!==i)),dd(t,o,-1,n)}},ud={[De.SEARCHES]:"savedSearches",[De.BOOKMARKS]:"bookmarks",[De.BOOKS]:void 0,[De.COLLECTIONS]:void 0},os=(t,e)=>{var o;let n=ud[e];return n?(o=t[n])!==null&&o!==void 0?o:[]:[]},ns=(t,e,o)=>{let n=ud[e];n&&(t[n]=o)},dd=(t,e,o,n)=>{let i=t.assetCounts.allAsset[e];if(i!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,i+o),e===De.BOOKMARKS&&n)){let a=t.assetCounts.bookmarkByMap[n];t.assetCounts.bookmarkByMap[n]=Math.max(0,a+o)}},pd=(t,e)=>{let o=t.assetLabels.map(i=>i.title),n=e.labels.filter(i=>!o.includes(i)).map(i=>({title:i}));t.assetLabels.push(...n)},Ne=Wt.get({name:Df,reducers:Mf,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(De).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),is=class{constructor(e=new kn,o=new Dn){this.assetCountsService=e,this.assetLabelsService=o,this.currentSession=k.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Ln,this.savedSearchesService=new Nn,k.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:o}=k.getState();Ae((e=this.currentSession)===null||e===void 0?void 0:e.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),Ne.actions.clearAssetCount(),Ne.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Ne.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Ne.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Ne.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();Ne.actions.assetLabels(e)}async loadAssetCount(e){let o=await this.assetCountsService.getUserAssetCount(e);o&&Ne.actions.setAssetCount({assetCount:o})}async loadBookmarkByMapId(e){let o=await this.assetCountsService.getUserBookmarkCountByMap(e);o&&Ne.actions.setBookmarkCountByMap({count:o.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let o=Object.keys(Ne.getState().assetCounts.bookmarkByMap).length!==0;e===De.BOOKMARKS&&o&&Ne.actions.clearBookmarkCountByMap(),Ne.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let o=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Ne.actions.bookmarks(o)}}},Bf=new is;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Bf);ee("ft-app-context")(Q);var as=class{fromLocalizableLabel(e){return e.type=="PLAIN_TEXT"?{message:e.text}:{key:e.key,custom:e.type=="LOCALIZED_CUSTOM",context:e.context,message:e.key}}fromAttribute(e){if(e!=null)try{return JSON.parse(e)}catch{if(this.isI18nKey(e)){let[n,i]=e.split(".");return{context:n,key:i,custom:!0,message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},kr=new as;var $f=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},mo=Symbol("i18nAttributes"),fd=Symbol("i18nListAttributes"),hd=Symbol("i18nProperties"),Mn=Symbol("i18nContexts"),yo=Symbol("i18nUnsubs"),yd=ae(Symbol("withI18n"),function(t){var e,o;class n extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[o]=new Map}getI18nService(a){return a??this.useCustomMessageContexts?Ja:fo}i18n(a){let{context:s,key:l,message:d}=a,{custom:u,args:h,argsProvider:f}=a;if(s&&l){this.hasI18nContext(s)||this.addI18nContext(s,void 0,u);let y=h??(f?f(this):[]);return this.getI18nService(u).resolveMessage(s,l,...y)}return d}async awaitI18n(a){let{context:s,custom:l}=a;return s&&await this.getI18nService(l).prepareContext(s),this.i18n(a)}customI18n(a,s){if(kr.isI18nKey(a)){let[l,d]=a.split(".");return this.i18n({custom:!0,context:l,key:d,...s})||a}return a}firstUpdated(a){super.firstUpdated(a),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(a){super.update(a),this.updateI18nAttributes((s,l,d)=>a.has(l)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(a){this.updateI18nAttributes((s,l,d)=>{var u;return((u=d?.context)===null||u===void 0?void 0:u.toLowerCase())===a}),this.updateI18nProperties(s=>s.context.toLowerCase()===a),this.requestUpdate()}updateI18nAttributes(a){var s,l;let d=this,u=(h,f,y)=>y?.context&&y.key&&a(h,f,y)?{...y,message:this.i18n({context:y.context,key:y.key,custom:y.custom,...h})}:y;(s=this[mo])===null||s===void 0||s.forEach((h,f)=>d[f]=u(h,f,d[f])),(l=this[fd])===null||l===void 0||l.forEach((h,f)=>{var y;return d[f]=(y=d[f])===null||y===void 0?void 0:y.map(x=>u(h,f,x))})}updateI18nProperties(a){var s;(s=this[hd])===null||s===void 0||s.forEach((l,d)=>{a(l,d)&&(this[d]=this.i18n(l))})}addI18nMessages(a,s,l){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(a,s,l)}addI18nContext(a,s,l){let d=(typeof a=="string"?a:a.name).toLowerCase();l=typeof a=="string"?l:a.custom,this[Mn].set(d,{isCustomContext:l}),this[yo].has(d)||this[yo].set(d,this.getI18nService(l).subscribe(d,()=>this.onI18nUpdate(d))),this.getI18nService(l).prepareContext(d,s)}hasI18nContext(a){return this[Mn].has(a.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Mn].forEach((a,s)=>this.addI18nContext(s,void 0,a.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[yo].forEach(a=>a()),this[yo].clear()}}return e=Mn,o=yo,$f([S({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}),Bn=class extends yd(q){},$n=class extends yd(Ft){};var ss=class{fromAttribute(e){if(!e)return[];try{let o=JSON.parse(e);return Array.isArray(o)?o.map(n=>typeof n=="string"?kr.fromAttribute(n):n):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},Uf=new ss;var md=(t,e)=>(o,n)=>{var i;o.constructor.createProperty(n,{type:Object,hasChanged:at,converter:kr,...e}),o[mo]=(i=o[mo])!==null&&i!==void 0?i:new Map,o[mo].set(n,t??{})};var gd=I`
253
253
  `;var go=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},Ke=class extends $n{constructor(){super(),this.editorMode=!1,this.addStore(k)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":H:U`
254
254
  <span class="ft-i18n">
255
255
  ${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
@@ -269,7 +269,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
269
269
  </div>
270
270
  </div>
271
271
  </div>
272
- `}setupFor(e){this.eventsTarget!==e&&(this.removeHandlers(),this.eventsTarget=e,this.eventsTarget.addEventListener("mouseenter",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("mouseenter",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){e.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(o=>e.has(o))&&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,o){let n=this.manual;this.manual=!0;let i=this.text;this.text={message:e},await this.show(o),this.text=i,this.manual=n}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(o=>o.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&&(this.tooltip.style.left="",this.tooltip.style.top="",Wi(this.slottedElement,this.tooltip,this.position).then(({x:e,y:o})=>{this.tooltip&&(this.tooltip.style.left=`${e}px`,this.tooltip.style.top=`${o}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${W.transitionDuration}, left ${W.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}isIgnored(e){return this.manual||ui(e,this.ignoreMatchingElements,this.eventsTarget)}};se.elementDefinitions={"ft-typography":Le};se.styles=od;Ze([md()],se.prototype,"text",void 0);Ze([S({type:Boolean})],se.prototype,"manual",void 0);Ze([S({type:Boolean})],se.prototype,"inline",void 0);Ze([ko()],se.prototype,"delay",void 0);Ze([S()],se.prototype,"position",void 0);Ze([Pe([])],se.prototype,"ignoreMatchingElements",void 0);Ze([oi()],se.prototype,"slotNodes",void 0);Ze([ue(".ft-tooltip--container")],se.prototype,"container",void 0);Ze([ue(".ft-tooltip")],se.prototype,"tooltip",void 0);Ze([ue(".ft-tooltip--content")],se.prototype,"tooltipContent",void 0);Ze([j()],se.prototype,"visible",void 0);ee("ft-tooltip")(se);var bd=r.extend("--ft-ripple-color","",W.colorContent),T={color:bd,backgroundColor:r.extend("--ft-ripple-background-color","",bd),opacityContentOnSurfacePressed:r.external(W.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:r.external(W.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:r.external(W.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:r.external(W.opacityContentOnSurfaceSelected,"Design system"),borderRadius:r.create("--ft-ripple-border-radius","","SIZE","0px")},xd=r.extend("--ft-ripple-color","",W.colorPrimary),vd={color:xd,backgroundColor:r.extend("--ft-ripple-background-color","",xd)},Sd=r.extend("--ft-ripple-color","",W.colorSecondary),Cd={color:Sd,backgroundColor:r.extend("--ft-ripple-background-color","",Sd)},Od=I`
272
+ `}setupFor(e){this.eventsTarget!==e&&(this.removeHandlers(),this.eventsTarget=e,this.eventsTarget.addEventListener("mouseenter",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("mouseenter",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){e.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(o=>e.has(o))&&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,o){let n=this.manual;this.manual=!0;let i=this.text;this.text={message:e},await this.show(o),this.text=i,this.manual=n}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(o=>o.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&&(this.tooltip.style.left="",this.tooltip.style.top="",Wi(this.slottedElement,this.tooltip,this.position).then(({x:e,y:o})=>{this.tooltip&&(this.tooltip.style.left=`${e}px`,this.tooltip.style.top=`${o}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${W.transitionDuration}, left ${W.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}isIgnored(e){return this.manual||ui(e,this.ignoreMatchingElements,this.eventsTarget)}};se.elementDefinitions={"ft-typography":Le};se.styles=nd;Ze([md()],se.prototype,"text",void 0);Ze([S({type:Boolean})],se.prototype,"manual",void 0);Ze([S({type:Boolean})],se.prototype,"inline",void 0);Ze([ko()],se.prototype,"delay",void 0);Ze([S()],se.prototype,"position",void 0);Ze([Pe([])],se.prototype,"ignoreMatchingElements",void 0);Ze([oi()],se.prototype,"slotNodes",void 0);Ze([ue(".ft-tooltip--container")],se.prototype,"container",void 0);Ze([ue(".ft-tooltip")],se.prototype,"tooltip",void 0);Ze([ue(".ft-tooltip--content")],se.prototype,"tooltipContent",void 0);Ze([j()],se.prototype,"visible",void 0);ee("ft-tooltip")(se);var bd=r.extend("--ft-ripple-color","",W.colorContent),T={color:bd,backgroundColor:r.extend("--ft-ripple-background-color","",bd),opacityContentOnSurfacePressed:r.external(W.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:r.external(W.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:r.external(W.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:r.external(W.opacityContentOnSurfaceSelected,"Design system"),borderRadius:r.create("--ft-ripple-border-radius","","SIZE","0px")},xd=r.extend("--ft-ripple-color","",W.colorPrimary),vd={color:xd,backgroundColor:r.extend("--ft-ripple-background-color","",xd)},Sd=r.extend("--ft-ripple-color","",W.colorSecondary),Cd={color:Sd,backgroundColor:r.extend("--ft-ripple-background-color","",Sd)},Od=I`
273
273
  :host {
274
274
  display: contents;
275
275
  }
@@ -1555,7 +1555,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
1555
1555
  display: none !important;
1556
1556
  }
1557
1557
  </style>
1558
- `:H}get tooltipText(){return this.flatMetadata?this.flatMetadata.label+": "+this.flatMetadata.displayTooltipValue:""}update(e){super.update(e),["key","tocNode"].some(o=>e.has(o))&&this.updateContent(),(e.has("metadata")||e.has("hierarchicalValueTruncatingLevel")||this.dateFormatOptionsChanged(e))&&(this.flatMetadata=this.metadata?qr.flattenMetadata(this.metadata,this.hierarchicalValueTruncatingLevel,this.getDateFormatter(this.metadata.key)):void 0)}onStoreAvailable(){super.onStoreAvailable(),this.updateContent()}updateContent(){var e;this.metadata=void 0,this.tocNode&&this.key&&((e=this.service)===null||e===void 0||e.getTopicInfo(this.tocNode).then(o=>this.metadata=o.metadata.find(n=>n.key===this.key)).catch(()=>null))}};Oe.elementDefinitions={"ft-tooltip":se,"ft-chip":ie};Oe.styles=Dc;Rt([S()],Oe.prototype,"key",void 0);Rt([S({type:Boolean})],Oe.prototype,"multiLine",void 0);Rt([S({type:Boolean})],Oe.prototype,"displayLabel",void 0);Rt([S({type:Number})],Oe.prototype,"hierarchicalValueTruncatingLevel",void 0);Rt([S({type:Boolean})],Oe.prototype,"forceTooltip",void 0);Rt([j()],Oe.prototype,"editorMode",void 0);Rt([j()],Oe.prototype,"metadata",void 0);Rt([j()],Oe.prototype,"flatMetadata",void 0);ee("ft-reader-topic-metadata")(Oe);})();
1558
+ `:H}get tooltipText(){return this.flatMetadata?this.flatMetadata.label+": "+this.flatMetadata.displayTooltipValue:""}update(e){super.update(e),["key","tocNode"].some(o=>e.has(o))&&this.updateContent(),(e.has("metadata")||e.has("hierarchicalValueTruncatingLevel")||this.dateFormatOptionsChanged(e))&&(this.flatMetadata=this.metadata?qr.flattenMetadata(this.metadata,this.hierarchicalValueTruncatingLevel,this.getDateFormatter(this.metadata.key)):void 0)}onStoreAvailable(){super.onStoreAvailable(),this.updateContent()}updateContent(){var e;this.metadata=void 0,this.tocNode&&this.key&&((e=this.service)===null||e===void 0||e.getTopicInfo(this.tocNode).then(o=>this.metadata=o.metadata.find(n=>n.key===this.key)).catch(()=>null))}};Oe.elementDefinitions={"ft-tooltip":se,"ft-chip":ie};Oe.styles=Mc;Rt([S()],Oe.prototype,"key",void 0);Rt([S({type:Boolean})],Oe.prototype,"multiLine",void 0);Rt([S({type:Boolean})],Oe.prototype,"displayLabel",void 0);Rt([S({type:Number})],Oe.prototype,"hierarchicalValueTruncatingLevel",void 0);Rt([S({type:Boolean})],Oe.prototype,"forceTooltip",void 0);Rt([j()],Oe.prototype,"editorMode",void 0);Rt([j()],Oe.prototype,"metadata",void 0);Rt([j()],Oe.prototype,"flatMetadata",void 0);ee("ft-reader-topic-metadata")(Oe);})();
1559
1559
  /*! Bundled license information:
1560
1560
 
1561
1561
  @webcomponents/scoped-custom-element-registry/src/scoped-custom-element-registry.js: