@fluid-topics/ft-reader-topic-content 1.2.60 → 1.2.61

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.
@@ -83,7 +83,7 @@
83
83
  `;var At=E(L());var li=E(L());var kr=E(J()),V=E(W()),Y=E(L());var Dr=E(J());var Mr=Dr.css`
84
84
  `;var Ze=E(L()),Ri="ft-app-info",It=class extends CustomEvent{constructor(t){super("authentication-change",{detail:t})}},Pi={session:(e,t)=>{(0,Ze.deepEqual)(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>x.dispatchEvent(new It(t.payload)),0))}},x=Ze.FtReduxStore.get({name:Ri,reducers:Pi,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],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}});var Z=E(L());var kt=E(L());var be=class e{static get(t){let{baseUrl:r,apiIntegrationIdentifier:n}=x.getState(),i=t??n;if(r&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,i,!0)}static await(t){return new Promise(r=>{let n=e.get(t);if(n)r(n);else{let i=x.subscribe(()=>{n=e.get(t),n&&(i(),r(n))})}})}};var Ue=class{constructor(t){this.overrideApi=t}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:be.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):be.await()}};var se=class extends Ue{constructor(t=!0,r){var n;super(r);let i=this.constructor;i.commonCache=(n=i.commonCache)!==null&&n!==void 0?n:new kt.CacheRegistry,this.cache=t?i.commonCache:new kt.CacheRegistry}clearCache(){this.cache.clearAll()}};var Ir,Li=Symbol("clearAfterUnitTest"),et=class extends se{constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Ir]=()=>{this.defaultMessages={},this.cache=new Z.CacheRegistry,this.listeners={}},this.currentUiLocale=x.getState().uiLocale,x.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=x.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){let r=t.name.toLowerCase();this.cache.setFinal(r,t),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,r){var n;if(t=t.toLowerCase(),r&&Object.keys(r).length>0){let i={...(n=this.defaultMessages[t])!==null&&n!==void 0?n:{},...r};(0,Z.deepEqual)(this.defaultMessages[t],i)||(this.defaultMessages[t]=i,await this.notify(t))}return this.fetchContext(t)}resolveContext(t){var r,n;return this.fetchContext(t),(n=(r=this.cache.getNow(t))===null||r===void 0?void 0:r.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(t,r){let n=t.toLowerCase();return this.resolveContext(n)[r]}resolveMessage(t,r,...n){var i;let a=t.toLowerCase(),s=this.resolveContext(a);return new Z.ParametrizedLabelResolver((i=this.defaultMessages[a])!==null&&i!==void 0?i:{},s).resolve(r,...n)}async fetchContext(t){let r=!this.cache.has(t),n;try{n=await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t))}catch(i){!(i instanceof Z.CanceledPromiseError)&&r&&console.error(i)}return r&&await this.notify(t),n}subscribe(t,r){var n;return t=t.toLowerCase(),this.listeners[t]=(n=this.listeners[t])!==null&&n!==void 0?n:new Set,this.listeners[t].add(r),()=>{var i;return(i=this.listeners[t])===null||i===void 0?void 0:i.delete(r)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map(t=>this.notify(t)))}async notify(t){this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(r=>(0,Z.delay)(0).then(()=>r()).catch(()=>null)))}};Ir=Li;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends et{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends et{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var Te=window.FluidTopicsI18nService,tt=window.FluidTopicsCustomI18nService;var U=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(s=e[o])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},N=class extends Y.FtLitElement{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",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=()=>be.get(),this.messageContexts=[],this.cache=new Y.CacheRegistry,this.cleanSessionDebouncer=new Y.Debouncer}render(){return kr.html`
85
85
  <slot></slot>
86
- `}update(t){var r,n,i,a,s;super.update(t),t.has("baseUrl")&&(x.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&x.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&x.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&x.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&x.actions.noCustom(this.noCustom),t.has("editorMode")&&x.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&x.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&x.actions.session(this.session),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(o=>Te.addContext(o)),t.has("openExternalDocumentInNewTab")&&x.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&x.actions.navigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&x.actions.forcedOffline(this.forcedOffline),t.has("localesConfiguration")&&(x.actions.defaultLocales((r=this.localesConfiguration)===null||r===void 0?void 0:r.defaultLocales),x.actions.availableUiLocales((i=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&i!==void 0?i:[]),x.actions.searchInAllLanguagesAllowed((s=(a=this.localesConfiguration)===null||a===void 0?void 0:a.allLanguagesAllowed)!==null&&s!==void 0?s:!1)),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration())}async updateSession(){this.session=await this.cache.get("session",async()=>{let t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},t.idleTimeoutInMillis),t})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}};N.elementDefinitions={};N.styles=Mr;U([(0,V.property)()],N.prototype,"baseUrl",void 0);U([(0,V.property)()],N.prototype,"apiIntegrationIdentifier",void 0);U([(0,V.property)()],N.prototype,"uiLocale",void 0);U([(0,Y.jsonProperty)(null)],N.prototype,"availableUiLocales",void 0);U([(0,Y.jsonProperty)(null)],N.prototype,"metadataConfiguration",void 0);U([(0,V.property)({type:Boolean})],N.prototype,"editorMode",void 0);U([(0,V.property)({type:Boolean})],N.prototype,"noCustom",void 0);U([(0,V.property)({type:Boolean})],N.prototype,"openExternalDocumentInNewTab",void 0);U([(0,V.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],N.prototype,"noCustomComponent",void 0);U([(0,V.property)({type:Boolean})],N.prototype,"withManualResources",void 0);U([(0,V.property)({type:Boolean})],N.prototype,"navigatorOnline",void 0);U([(0,V.property)({type:Boolean})],N.prototype,"forcedOffline",void 0);U([(0,V.property)({type:Object})],N.prototype,"apiProvider",void 0);U([(0,Y.jsonProperty)([])],N.prototype,"messageContexts",void 0);U([(0,Y.jsonProperty)(void 0)],N.prototype,"session",void 0);U([(0,V.state)()],N.prototype,"localesConfiguration",void 0);var ga=E(W());function Ni(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,n,i;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!rt(e[n],t[n]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;for(n of e.entries())if(!rt(n[1],t.get(n[0])))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();let a=s=>Object.keys(s).filter(o=>s[o]!=null);if(i=a(e),r=i.length,r!==a(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[n]))return!1;for(n=r;n--!==0;){let s=i[n];if(!rt(e[s],t[s]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function rt(e,t){try{return Ni(e,t)}catch{return!1}}function nt(e,t){return!rt(e,t)}var Di=E(W(),1);var it=class{constructor(){this.queue=[]}add(t,r=!1){r&&this.clear(t.type),this.queue.push(t)}consume(t){let r=this.queue.find(n=>n.type===t);return r&&(this.queue=this.queue.filter(n=>n!==r)),r}clear(t){typeof t=="string"?this.queue=this.queue.filter(r=>r.type!==t):this.queue=this.queue.filter(r=>!t.test(r.type))}};var we=E(W(),1);var Ur=E(W(),1);function jr(e,t){let r=()=>JSON.parse(JSON.stringify(e));return(0,Ur.property)({type:Object,converter:{fromAttribute:n=>{if(n==null)return r();try{return JSON.parse(n)}catch{return r()}},toAttribute:n=>JSON.stringify(n)},hasChanged:nt,...t??{}})}var at=class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,r){return this.callbacks=[t],this.debounce(r)}queue(t,r){return this.callbacks.push(t),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return this.promise==null&&(this.promise=new Promise((r,n)=>{this.resolvePromise=r,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,r;let n=[...this.callbacks];this.callbacks=[];let i=(t=this.rejectPromise)!==null&&t!==void 0?t:()=>null,a=(r=this.resolvePromise)!==null&&r!==void 0?r:()=>null;this.clearPromise();for(let s of n)try{await s()}catch(o){i(o);return}a(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Hr=E(J(),1);var st=globalThis,Mi=st.ShadowRoot&&(st.ShadyCSS===void 0||st.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ss=Symbol();var Br=(e,t)=>{if(Mi)e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of t){let n=document.createElement("style"),i=st.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=r.cssText,e.appendChild(n)}};var ot=class extends Hr.LitElement{createRenderRoot(){let t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach(([i,a])=>t.registry.define(i,a)));let r={...t.shadowRootOptions,customElements:t.registry},n=this.renderOptions.creationScope=this.attachShadow(r);return Br(n,t.elementStyles),n}};function Vr(e,t,...r){var n;let i=e.querySelector(t);for(let a of r)i=(n=i?.shadowRoot)===null||n===void 0?void 0:n.querySelector(a);return i}var je=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(s=e[o])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},qr,Kr=Symbol("constructorPrototype"),Gr=Symbol("constructorName"),$r=Symbol("exportpartsDebouncer"),Wr=Symbol("dynamicDependenciesLoaded"),re=class extends ot{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[qr]=new at(5),this[Gr]=this.constructor.name,this[Kr]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Gr]&&Object.setPrototypeOf(this,this[Kr])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(r){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",r)}let t=this.constructor;t[Wr]||(t[Wr]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(t){super.updated(t),this.updateComplete.then(()=>{this.contentAvailableCallback(t),this.focusElementToFocus(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate()})}contentAvailableCallback(t){}focusElementToFocus(t){if(t.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:n,shadowPath:i}=this.elementToFocus;if(n!=null){let a=[...i??[],n];r=Vr(this.shadowRoot,...a)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(t){var r,n,i;if(((n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((i=this.customStylesheet)!==null&&i!==void 0?i:"")}catch(a){console.error(a,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let a=document.createElement("style");a.classList.add("ft-lit-element--custom-stylesheet"),a.innerHTML=this.customStylesheet,this.shadowRoot.append(a)}}scheduleExportpartsUpdate(){var t,r,n;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(n=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&n!==void 0&&n)&&this[$r].run(()=>{var i,a;!((i=this.exportpartsPrefix)===null||i===void 0)&&i.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((a=this.exportpartsPrefixes)===null||a===void 0?void 0:a.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(t){var r,n,i,a,s,o;let c=p=>p!=null&&p.trim().length>0,l=t.filter(c).map(p=>p.trim());if(l.length===0){this.removeAttribute("exportparts");return}let f=new Set;for(let p of(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let g=(a=(i=p.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&a!==void 0?a:[],v=(o=(s=p.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(y=>y.split(":")[1]))!==null&&o!==void 0?o:[];new Array(...g,...v).filter(c).map(y=>y.trim()).forEach(y=>f.add(y))}if(f.size===0){this.removeAttribute("exportparts");return}let h=[...f.values()].flatMap(p=>l.map(g=>`${p}:${g}--${p}`));this.setAttribute("exportparts",[...this.part,...h].join(", "))}};qr=$r;je([(0,we.property)()],re.prototype,"exportpartsPrefix",void 0);je([jr([])],re.prototype,"exportpartsPrefixes",void 0);je([(0,we.property)()],re.prototype,"customStylesheet",void 0);je([(0,we.property)()],re.prototype,"elementToFocus",void 0);je([(0,we.state)()],re.prototype,"useAdoptedStyleSheets",void 0);function Be(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var zr,Fr,Yr,He=Symbol("internalReduxEventsUnsubscribers"),oe=Symbol("internalStoresUnsubscribers"),Ee=Symbol("internalStores"),Ve=class extends re{constructor(){super(...arguments),this[zr]=new Map,this[Fr]=new Map,this[Yr]=new Map}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some(r=>t.has(r))&&this.updateFromStores()}getUnnamedStore(){if(this[Ee].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ee].values()][0]}getStore(t){return t==null?this.getUnnamedStore():this[Ee].get(t)}addStore(t,r){var n;r=(n=r??(Be(t)?t.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(r),this[Ee].set(r,t),this.subscribeToStore(r,t),this.updateFromStores()}removeStore(t){let r=typeof t=="string"?t:t.name;this.unsubscribeFromStore(r),this[Ee].delete(r)}setupStores(){this.unsubscribeFromStores(),this[Ee].forEach((t,r)=>this.subscribeToStore(r,t)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((t,r)=>{let n=this.constructor.getPropertyOptions(r);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:r)){let i=this.getStore(t.store);i&&(t.store?this[oe].has(t.store):this[oe].size>0)&&(this[r]=t.selector(i.getState(),this))}})}subscribeToStore(t,r){var n;this[oe].set(t,r.subscribe(()=>this.updateFromStores())),this[He].set(t,[]),Be(r)&&r.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((i,a)=>{if(typeof this[a]=="function"&&(!i.store||r.name===i.store)){let s=o=>this[a](o);r.addEventListener(i.eventName,s),this[He].get(t).push(()=>r.removeEventListener(i.eventName,s))}})),this.onStoreAvailable(t)}unsubscribeFromStores(){this[oe].forEach((t,r)=>this.unsubscribeFromStore(r))}unsubscribeFromStore(t){var r;this[oe].has(t)&&this[oe].get(t)(),this[oe].delete(t),(r=this[He].get(t))===null||r===void 0||r.forEach(n=>n()),this[He].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};zr=oe,Fr=Ee,Yr=He;Ve.reduxProperties=new Map;Ve.reduxReactiveProperties=new Set;Ve.reduxEventListeners=new Map;function q(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if(0)var i,a;throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function ne(e){return!!e&&!!e[R]}function X(e){var t;return!!e&&(function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===Ki}(e)||Array.isArray(e)||!!e[rn]||!!(!((t=e.constructor)===null||t===void 0)&&t[rn])||qt(e)||$t(e))}function xe(e,t,r){r===void 0&&(r=!1),Pe(e)===0?(r?Object.keys:Re)(e).forEach(function(n){r&&typeof n=="symbol"||t(n,e[n],e)}):e.forEach(function(n,i){return t(i,n,e)})}function Pe(e){var t=e[R];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:qt(e)?2:$t(e)?3:0}function Ce(e,t){return Pe(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Ii(e,t){return Pe(e)===2?e.get(t):e[t]}function nn(e,t,r){var n=Pe(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function an(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function qt(e){return Hi&&e instanceof Map}function $t(e){return Vi&&e instanceof Set}function ue(e){return e.o||e.t}function zt(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=un(e);delete t[R];for(var r=Re(t),n=0;n<r.length;n++){var i=r[n],a=t[i];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function Ft(e,t){return t===void 0&&(t=!1),Yt(e)||ne(e)||!X(e)||(Pe(e)>1&&(e.set=e.add=e.clear=e.delete=ki),Object.freeze(e),t&&xe(e,function(r,n){return Ft(n,!0)},!0)),e}function ki(){q(2)}function Yt(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function ee(e){var t=Wt[e];return t||q(18,e),t}function Ui(e,t){Wt[e]||(Wt[e]=t)}function Vt(){return Ge}function Ut(e,t){t&&(ee("Patches"),e.u=[],e.s=[],e.v=t)}function ut(e){Kt(e),e.p.forEach(ji),e.p=null}function Kt(e){e===Ge&&(Ge=e.l)}function Xr(e){return Ge={p:[],l:Ge,h:e,m:!0,_:0}}function ji(e){var t=e[R];t.i===0||t.i===1?t.j():t.g=!0}function jt(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.O||ee("ES5").S(t,e,n),n?(r[R].P&&(ut(t),q(4)),X(e)&&(e=lt(t,e),t.l||ct(t,e)),t.u&&ee("Patches").M(r[R].t,e,t.u,t.s)):e=lt(t,r,[]),ut(t),t.u&&t.v(t.u,t.s),e!==on?e:void 0}function lt(e,t,r){if(Yt(t))return t;var n=t[R];if(!n)return xe(t,function(o,c){return Qr(e,n,t,o,c,r)},!0),t;if(n.A!==e)return t;if(!n.P)return ct(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=zt(n.k):n.o,a=i,s=!1;n.i===3&&(a=new Set(i),i.clear(),s=!0),xe(a,function(o,c){return Qr(e,n,i,o,c,r,s)}),ct(e,i,!1),r&&e.u&&ee("Patches").N(n,r,e.u,e.s)}return n.o}function Qr(e,t,r,n,i,a,s){if(ne(i)){var o=lt(e,i,a&&t&&t.i!==3&&!Ce(t.R,n)?a.concat(n):void 0);if(nn(r,n,o),!ne(o))return;e.m=!1}else s&&r.add(i);if(X(i)&&!Yt(i)){if(!e.h.D&&e._<1)return;lt(e,i),t&&t.A.l||ct(e,i)}}function ct(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&Ft(t,r)}function Bt(e,t){var r=e[R];return(r?ue(r):e)[t]}function Jr(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function le(e){e.P||(e.P=!0,e.l&&le(e.l))}function Ht(e){e.o||(e.o=zt(e.t))}function Gt(e,t,r){var n=qt(t)?ee("MapSet").F(t,r):$t(t)?ee("MapSet").T(t,r):e.O?function(i,a){var s=Array.isArray(i),o={i:s?1:0,A:a?a.A:Vt(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},c=o,l=We;s&&(c=[o],l=Ke);var f=Proxy.revocable(c,l),h=f.revoke,p=f.proxy;return o.k=p,o.j=h,p}(t,r):ee("ES5").J(t,r);return(r?r.A:Vt()).p.push(n),n}function Bi(e){return ne(e)||q(22,e),function t(r){if(!X(r))return r;var n,i=r[R],a=Pe(r);if(i){if(!i.P&&(i.i<4||!ee("ES5").K(i)))return i.t;i.I=!0,n=Zr(r,a),i.I=!1}else n=Zr(r,a);return xe(n,function(s,o){i&&Ii(i.t,s)===o||nn(n,s,t(o))}),a===3?new Set(n):n}(e)}function Zr(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return zt(e)}function sn(){function e(s,o){var c=a[s];return c?c.enumerable=o:a[s]=c={configurable:!0,enumerable:o,get:function(){var l=this[R];return We.get(l,s)},set:function(l){var f=this[R];We.set(f,s,l)}},c}function t(s){for(var o=s.length-1;o>=0;o--){var c=s[o][R];if(!c.P)switch(c.i){case 5:n(c)&&le(c);break;case 4:r(c)&&le(c)}}}function r(s){for(var o=s.t,c=s.k,l=Re(c),f=l.length-1;f>=0;f--){var h=l[f];if(h!==R){var p=o[h];if(p===void 0&&!Ce(o,h))return!0;var g=c[h],v=g&&g[R];if(v?v.t!==p:!an(g,p))return!0}}var y=!!o[R];return l.length!==Re(o).length+(y?0:1)}function n(s){var o=s.k;if(o.length!==s.t.length)return!0;var c=Object.getOwnPropertyDescriptor(o,o.length-1);if(c&&!c.get)return!0;for(var l=0;l<o.length;l++)if(!o.hasOwnProperty(l))return!0;return!1}function i(s){s.g&&q(3,JSON.stringify(ue(s)))}var a={};Ui("ES5",{J:function(s,o){var c=Array.isArray(s),l=function(h,p){if(h){for(var g=Array(p.length),v=0;v<p.length;v++)Object.defineProperty(g,""+v,e(v,!0));return g}var y=un(p);delete y[R];for(var _=Re(y),S=0;S<_.length;S++){var A=_[S];y[A]=e(A,h||!!y[A].enumerable)}return Object.create(Object.getPrototypeOf(p),y)}(c,s),f={i:c?5:4,A:o?o.A:Vt(),P:!1,I:!1,R:{},l:o,t:s,k:l,o:null,g:!1,C:!1};return Object.defineProperty(l,R,{value:f,writable:!0}),l},S:function(s,o,c){c?ne(o)&&o[R].A===s&&t(s.p):(s.u&&function l(f){if(f&&typeof f=="object"){var h=f[R];if(h){var p=h.t,g=h.k,v=h.R,y=h.i;if(y===4)xe(g,function(T){T!==R&&(p[T]!==void 0||Ce(p,T)?v[T]||l(g[T]):(v[T]=!0,le(h)))}),xe(p,function(T){g[T]!==void 0||Ce(g,T)||(v[T]=!1,le(h))});else if(y===5){if(n(h)&&(le(h),v.length=!0),g.length<p.length)for(var _=g.length;_<p.length;_++)v[_]=!1;else for(var S=p.length;S<g.length;S++)v[S]=!0;for(var A=Math.min(g.length,p.length),C=0;C<A;C++)g.hasOwnProperty(C)||(v[C]=!0),v[C]===void 0&&l(g[C])}}}}(s.p[0]),t(s.p))},K:function(s){return s.i===4?r(s):n(s)}})}var en,Ge,Xt=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Hi=typeof Map<"u",Vi=typeof Set<"u",tn=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",on=Xt?Symbol.for("immer-nothing"):((en={})["immer-nothing"]=!0,en),rn=Xt?Symbol.for("immer-draftable"):"__$immer_draftable",R=Xt?Symbol.for("immer-state"):"__$immer_state";var Ki=""+Object.prototype.constructor,Re=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,un=Object.getOwnPropertyDescriptors||function(e){var t={};return Re(e).forEach(function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)}),t},Wt={},We={get:function(e,t){if(t===R)return e;var r=ue(e);if(!Ce(r,t))return function(i,a,s){var o,c=Jr(a,s);return c?"value"in c?c.value:(o=c.get)===null||o===void 0?void 0:o.call(i.k):void 0}(e,r,t);var n=r[t];return e.I||!X(n)?n:n===Bt(e.t,t)?(Ht(e),e.o[t]=Gt(e.A.h,n,e)):n},has:function(e,t){return t in ue(e)},ownKeys:function(e){return Reflect.ownKeys(ue(e))},set:function(e,t,r){var n=Jr(ue(e),t);if(n?.set)return n.set.call(e.k,r),!0;if(!e.P){var i=Bt(ue(e),t),a=i?.[R];if(a&&a.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(an(r,i)&&(r!==void 0||Ce(e.t,t)))return!0;Ht(e),le(e)}return e.o[t]===r&&(r!==void 0||t in e.o)||Number.isNaN(r)&&Number.isNaN(e.o[t])||(e.o[t]=r,e.R[t]=!0),!0},deleteProperty:function(e,t){return Bt(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,Ht(e),le(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=ue(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty:function(){q(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){q(12)}},Ke={};xe(We,function(e,t){Ke[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Ke.deleteProperty=function(e,t){return Ke.set.call(this,e,t,void 0)},Ke.set=function(e,t,r){return We.set.call(this,e[0],t,r,e[0])};var Gi=function(){function e(r){var n=this;this.O=tn,this.D=!0,this.produce=function(i,a,s){if(typeof i=="function"&&typeof a!="function"){var o=a;a=i;var c=n;return function(y){var _=this;y===void 0&&(y=o);for(var S=arguments.length,A=Array(S>1?S-1:0),C=1;C<S;C++)A[C-1]=arguments[C];return c.produce(y,function(T){var I;return(I=a).call.apply(I,[_,T].concat(A))})}}var l;if(typeof a!="function"&&q(6),s!==void 0&&typeof s!="function"&&q(7),X(i)){var f=Xr(n),h=Gt(n,i,void 0),p=!0;try{l=a(h),p=!1}finally{p?ut(f):Kt(f)}return typeof Promise<"u"&&l instanceof Promise?l.then(function(y){return Ut(f,s),jt(y,f)},function(y){throw ut(f),y}):(Ut(f,s),jt(l,f))}if(!i||typeof i!="object"){if((l=a(i))===void 0&&(l=i),l===on&&(l=void 0),n.D&&Ft(l,!0),s){var g=[],v=[];ee("Patches").M(i,l,g,v),s(g,v)}return l}q(21,i)},this.produceWithPatches=function(i,a){if(typeof i=="function")return function(l){for(var f=arguments.length,h=Array(f>1?f-1:0),p=1;p<f;p++)h[p-1]=arguments[p];return n.produceWithPatches(l,function(g){return i.apply(void 0,[g].concat(h))})};var s,o,c=n.produce(i,a,function(l,f){s=l,o=f});return typeof Promise<"u"&&c instanceof Promise?c.then(function(l){return[l,s,o]}):[c,s,o]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var t=e.prototype;return t.createDraft=function(r){X(r)||q(8),ne(r)&&(r=Bi(r));var n=Xr(this),i=Gt(this,r,void 0);return i[R].C=!0,Kt(n),i},t.finishDraft=function(r,n){var i=r&&r[R],a=i.A;return Ut(a,n),jt(void 0,a)},t.setAutoFreeze=function(r){this.D=r},t.setUseProxies=function(r){r&&!tn&&q(20),this.O=r},t.applyPatches=function(r,n){var i;for(i=n.length-1;i>=0;i--){var a=n[i];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}i>-1&&(n=n.slice(i+1));var s=ee("Patches").$;return ne(r)?s(r,n):this.produce(r,function(o){return s(o,n)})},e}(),K=new Gi,Wi=K.produce,ks=K.produceWithPatches.bind(K),Us=K.setAutoFreeze.bind(K),js=K.setUseProxies.bind(K),Bs=K.applyPatches.bind(K),Hs=K.createDraft.bind(K),Vs=K.finishDraft.bind(K),dt=Wi;function Se(e){"@babel/helpers - typeof";return Se=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Se(e)}function ln(e,t){if(Se(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Se(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function cn(e){var t=ln(e,"string");return Se(t)=="symbol"?t:t+""}function dn(e,t,r){return(t=cn(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Qt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?fn(Object(r),!0).forEach(function(n){dn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fn(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function j(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var pn=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Jt=function(){return Math.random().toString(36).substring(7).split("").join(".")},ft={INIT:"@@redux/INIT"+Jt(),REPLACE:"@@redux/REPLACE"+Jt(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Jt()}};function qi(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Zt(e,t,r){var n;if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(j(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(j(1));return r(Zt)(e,t)}if(typeof e!="function")throw new Error(j(2));var i=e,a=t,s=[],o=s,c=!1;function l(){o===s&&(o=s.slice())}function f(){if(c)throw new Error(j(3));return a}function h(y){if(typeof y!="function")throw new Error(j(4));if(c)throw new Error(j(5));var _=!0;return l(),o.push(y),function(){if(_){if(c)throw new Error(j(6));_=!1,l();var A=o.indexOf(y);o.splice(A,1),s=null}}}function p(y){if(!qi(y))throw new Error(j(7));if(typeof y.type>"u")throw new Error(j(8));if(c)throw new Error(j(9));try{c=!0,a=i(a,y)}finally{c=!1}for(var _=s=o,S=0;S<_.length;S++){var A=_[S];A()}return y}function g(y){if(typeof y!="function")throw new Error(j(10));i=y,p({type:ft.REPLACE})}function v(){var y,_=h;return y={subscribe:function(A){if(typeof A!="object"||A===null)throw new Error(j(11));function C(){A.next&&A.next(f())}C();var T=_(C);return{unsubscribe:T}}},y[pn]=function(){return this},y}return p({type:ft.INIT}),n={dispatch:p,subscribe:h,getState:f,replaceReducer:g},n[pn]=v,n}function $i(e){Object.keys(e).forEach(function(t){var r=e[t],n=r(void 0,{type:ft.INIT});if(typeof n>"u")throw new Error(j(12));if(typeof r(void 0,{type:ft.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(j(13))})}function hn(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++){var i=t[n];typeof e[i]=="function"&&(r[i]=e[i])}var a=Object.keys(r),s,o;try{$i(r)}catch(c){o=c}return function(l,f){if(l===void 0&&(l={}),o)throw o;if(0)var h;for(var p=!1,g={},v=0;v<a.length;v++){var y=a[v],_=r[y],S=l[y],A=_(S,f);if(typeof A>"u"){var C=f&&f.type;throw new Error(j(14))}g[y]=A,p=p||A!==S}return p=p||a.length!==Object.keys(l).length,p?g:l}}function Le(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.length===0?function(n){return n}:t.length===1?t[0]:t.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function mn(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){return function(){var i=n.apply(void 0,arguments),a=function(){throw new Error(j(15))},s={getState:i.getState,dispatch:function(){return a.apply(void 0,arguments)}},o=t.map(function(c){return c(s)});return a=Le.apply(void 0,o)(i.dispatch),Qt(Qt({},i),{},{dispatch:a})}}}function vn(e){var t=function(n){var i=n.dispatch,a=n.getState;return function(s){return function(o){return typeof o=="function"?o(i,a,e):s(o)}}};return t}var yn=vn();yn.withExtraArgument=vn;var er=yn;var Sn=function(){var e=function(t,r){return e=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])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),zi=function(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(l){return function(f){return c([l,f])}}function c(l){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(a=l[0]&2?i.return:l[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,l[1])).done)return a;switch(i=0,a&&(l=[l[0]&2,a.value]),l[0]){case 0:case 1:a=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,i=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]<a[3])){r.label=l[1];break}if(l[0]===6&&r.label<a[1]){r.label=a[1],a=l;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(l);break}a[2]&&r.ops.pop(),r.trys.pop();continue}l=t.call(e,r)}catch(f){l=[6,f],i=0}finally{n=a=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},Ne=function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e},Fi=Object.defineProperty,Yi=Object.defineProperties,Xi=Object.getOwnPropertyDescriptors,gn=Object.getOwnPropertySymbols,Qi=Object.prototype.hasOwnProperty,Ji=Object.prototype.propertyIsEnumerable,bn=function(e,t,r){return t in e?Fi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},ce=function(e,t){for(var r in t||(t={}))Qi.call(t,r)&&bn(e,r,t[r]);if(gn)for(var n=0,i=gn(t);n<i.length;n++){var r=i[n];Ji.call(t,r)&&bn(e,r,t[r])}return e},tr=function(e,t){return Yi(e,Xi(t))},Zi=function(e,t,r){return new Promise(function(n,i){var a=function(c){try{o(r.next(c))}catch(l){i(l)}},s=function(c){try{o(r.throw(c))}catch(l){i(l)}},o=function(c){return c.done?n(c.value):Promise.resolve(c.value).then(a,s)};o((r=r.apply(e,t)).next())})};var ea=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Le:Le.apply(null,arguments)},ao=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function ta(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var r=t;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return t===r}var ra=function(e){Sn(t,e);function t(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=e.apply(this,r)||this;return Object.setPrototypeOf(i,t.prototype),i}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e.prototype.concat.apply(this,r)},t.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(t.bind.apply(t,Ne([void 0],r[0].concat(this)))):new(t.bind.apply(t,Ne([void 0],r.concat(this))))},t}(Array),na=function(e){Sn(t,e);function t(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=e.apply(this,r)||this;return Object.setPrototypeOf(i,t.prototype),i}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e.prototype.concat.apply(this,r)},t.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(t.bind.apply(t,Ne([void 0],r[0].concat(this)))):new(t.bind.apply(t,Ne([void 0],r.concat(this))))},t}(Array);function ir(e){return X(e)?dt(e,function(){}):e}function ia(e){return typeof e=="boolean"}function aa(){return function(t){return sa(t)}}function sa(e){e===void 0&&(e={});var t=e.thunk,r=t===void 0?!0:t,n=e.immutableCheck,i=n===void 0?!0:n,a=e.serializableCheck,s=a===void 0?!0:a,o=new ra;if(r&&(ia(r)?o.push(er):o.push(er.withExtraArgument(r.extraArgument))),0){if(i)var c;if(s)var l}return o}var rr=!0;function An(e){var t=aa(),r=e||{},n=r.reducer,i=n===void 0?void 0:n,a=r.middleware,s=a===void 0?t():a,o=r.devTools,c=o===void 0?!0:o,l=r.preloadedState,f=l===void 0?void 0:l,h=r.enhancers,p=h===void 0?void 0:h,g;if(typeof i=="function")g=i;else if(ta(i))g=hn(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 v=s;if(typeof v=="function"&&(v=v(t),!rr&&!Array.isArray(v)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!rr&&v.some(function(T){return typeof T!="function"}))throw new Error("each middleware provided to configureStore must be a function");var y=mn.apply(void 0,v),_=Le;c&&(_=ea(ce({trace:!rr},typeof c=="object"&&c)));var S=new na(y),A=S;Array.isArray(p)?A=Ne([y],p):typeof p=="function"&&(A=p(S));var C=_.apply(void 0,A);return Zt(g,f,C)}function de(e,t){function r(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(t){var a=t.apply(void 0,n);if(!a)throw new Error("prepareAction did not return an object");return ce(ce({type:e,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:e,payload:n[0]}}return r.toString=function(){return""+e},r.type=e,r.match=function(n){return n.type===e},r}function On(e){var t={},r=[],n,i={addCase:function(a,s){var o=typeof a=="string"?a:a.type;if(o in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[o]=s,i},addMatcher:function(a,s){return r.push({matcher:a,reducer:s}),i},addDefaultCase:function(a){return n=a,i}};return e(i),[t,r,n]}function oa(e){return typeof e=="function"}function ua(e,t,r,n){r===void 0&&(r=[]);var i=typeof t=="function"?On(t):[t,r,n],a=i[0],s=i[1],o=i[2],c;if(oa(e))c=function(){return ir(e())};else{var l=ir(e);c=function(){return l}}function f(h,p){h===void 0&&(h=c());var g=Ne([a[p.type]],s.filter(function(v){var y=v.matcher;return y(p)}).map(function(v){var y=v.reducer;return y}));return g.filter(function(v){return!!v}).length===0&&(g=[o]),g.reduce(function(v,y){if(y)if(ne(v)){var _=v,S=y(_,p);return S===void 0?v:S}else{if(X(v))return dt(v,function(A){return y(A,p)});var S=y(v,p);if(S===void 0){if(v===null)return v;throw Error("A case reducer on a non-draftable value must not return undefined")}return S}return v},h)}return f.getInitialState=c,f}function la(e,t){return e+"/"+t}function _n(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof e.initialState=="function"?e.initialState:ir(e.initialState),n=e.reducers||{},i=Object.keys(n),a={},s={},o={};i.forEach(function(f){var h=n[f],p=la(t,f),g,v;"reducer"in h?(g=h.reducer,v=h.prepare):g=h,a[f]=g,s[p]=g,o[f]=v?de(p,v):de(p)});function c(){var f=typeof e.extraReducers=="function"?On(e.extraReducers):[e.extraReducers],h=f[0],p=h===void 0?{}:h,g=f[1],v=g===void 0?[]:g,y=f[2],_=y===void 0?void 0:y,S=ce(ce({},p),s);return ua(r,function(A){for(var C in S)A.addCase(C,S[C]);for(var T=0,I=v;T<I.length;T++){var $=I[T];A.addMatcher($.matcher,$.reducer)}_&&A.addDefaultCase(_)})}var l;return{name:t,reducer:function(f,h){return l||(l=c()),l(f,h)},actions:o,caseReducers:a,getInitialState:function(){return l||(l=c()),l.getInitialState()}}}var ca="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",da=function(e){e===void 0&&(e=21);for(var t="",r=e;r--;)t+=ca[Math.random()*64|0];return t},fa=["name","message","stack","code"],nr=function(){function e(t,r){this.payload=t,this.meta=r}return e}(),En=function(){function e(t,r){this.payload=t,this.meta=r}return e}(),pa=function(e){if(typeof e=="object"&&e!==null){for(var t={},r=0,n=fa;r<n.length;r++){var i=n[r];typeof e[i]=="string"&&(t[i]=e[i])}return t}return{message:String(e)}},lo=function(){function e(t,r,n){var i=de(t+"/fulfilled",function(f,h,p,g){return{payload:f,meta:tr(ce({},g||{}),{arg:p,requestId:h,requestStatus:"fulfilled"})}}),a=de(t+"/pending",function(f,h,p){return{payload:void 0,meta:tr(ce({},p||{}),{arg:h,requestId:f,requestStatus:"pending"})}}),s=de(t+"/rejected",function(f,h,p,g,v){return{payload:g,error:(n&&n.serializeError||pa)(f||"Rejected"),meta:tr(ce({},v||{}),{arg:p,requestId:h,rejectedWithValue:!!g,requestStatus:"rejected",aborted:f?.name==="AbortError",condition:f?.name==="ConditionError"})}}),o=!1,c=typeof AbortController<"u"?AbortController:function(){function f(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return f.prototype.abort=function(){},f}();function l(f){return function(h,p,g){var v=n?.idGenerator?n.idGenerator(f):da(),y=new c,_,S=!1;function A(T){_=T,y.abort()}var C=function(){return Zi(this,null,function(){var T,I,$,ve,H,ye,Oe;return zi(this,function(u){switch(u.label){case 0:return u.trys.push([0,4,,5]),ve=(T=n?.condition)==null?void 0:T.call(n,f,{getState:p,extra:g}),ma(ve)?[4,ve]:[3,2];case 1:ve=u.sent(),u.label=2;case 2:if(ve===!1||y.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return S=!0,H=new Promise(function(d,b){return y.signal.addEventListener("abort",function(){return b({name:"AbortError",message:_||"Aborted"})})}),h(a(v,f,(I=n?.getPendingMeta)==null?void 0:I.call(n,{requestId:v,arg:f},{getState:p,extra:g}))),[4,Promise.race([H,Promise.resolve(r(f,{dispatch:h,getState:p,extra:g,requestId:v,signal:y.signal,abort:A,rejectWithValue:function(d,b){return new nr(d,b)},fulfillWithValue:function(d,b){return new En(d,b)}})).then(function(d){if(d instanceof nr)throw d;return d instanceof En?i(d.payload,v,f,d.meta):i(d,v,f)})])];case 3:return $=u.sent(),[3,5];case 4:return ye=u.sent(),$=ye instanceof nr?s(null,v,f,ye.payload,ye.meta):s(ye,v,f),[3,5];case 5:return Oe=n&&!n.dispatchConditionRejection&&s.match($)&&$.meta.condition,Oe||h($),[2,$]}})})}();return Object.assign(C,{abort:A,requestId:v,arg:f,unwrap:function(){return C.then(ha)}})}}return Object.assign(l,{pending:a,rejected:s,fulfilled:i,typePrefix:t})}return e.withTypes=function(){return e},e}();function ha(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function ma(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Tn="listener",wn="completed",Cn="cancelled",co="task-"+Cn,fo="task-"+wn,po=Tn+"-"+Cn,ho=Tn+"-"+wn;var ar="listenerMiddleware";var mo=de(ar+"/add"),vo=de(ar+"/removeAll"),yo=de(ar+"/remove");var xn,go=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(xn||(xn=Promise.resolve())).then(e).catch(function(t){return setTimeout(function(){throw t},0)})},va=function(e){return function(t){setTimeout(t,e)}},bo=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:va(10);sn();function ya(e,t){return class extends e{constructor(){super(...arguments),this.eventBus=t??document.createElement("span")}addEventListener(r,n,i){this.eventBus.addEventListener(r,n,i)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,n,i){this.eventBus.removeEventListener(r,n,i)}}}var pt=class extends ya(Object){};window.ftReduxStores||(window.ftReduxStores={});var Rn=class e extends pt{static get(t){var r;let n=typeof t=="string"?t:t.name,i=typeof t=="string"?void 0:t,a=window.ftReduxStores[n];if(Be(a))return a;if(i==null)return;let s=_n({...i,reducers:(r=i.reducers)!==null&&r!==void 0?r:{}}),o=An({reducer:(c,l)=>l.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof l.type=="string"&&l.type.startsWith("DEFAULT_VALUE_SETTER__")?{...c,...l.overwrites}:s.reducer(c,l)});return window.ftReduxStores[i.name]=new e(s,o,i.eventBus)}constructor(t,r,n){super(),this.reduxSlice=t,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new it;let i=a=>a!=null?JSON.parse(JSON.stringify(a)):a;this.actions=new Proxy(this.reduxSlice.actions,{get:(a,s,o)=>{let c=s,l=a[c];return l?(...f)=>{let h=l(...f.map(i));return this.reduxStore.dispatch(h),h}:f=>{this.setState({[c]:i(f)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var bt=E(L());var Ea=E(Ln(),1);var Nn;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(Nn||(Nn={}));var Dn;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(Dn||(Dn={}));var Mn;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.MAP_ATTACHMENT="MAP_ATTACHMENT",e.RESOURCE="RESOURCE"})(Mn||(Mn={}));var In;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(In||(In={}));var kn;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})(kn||(kn={}));var Un;(function(e){e.BOOKMARK__CREATE="BOOKMARK__CREATE",e.BOOKMARK__DELETE="BOOKMARK__DELETE",e.CASE_DEFLECTION__START="CASE_DEFLECTION__START",e.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",e.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",e.COLLECTION__CREATE="COLLECTION__CREATE",e.COLLECTION__UPDATE="COLLECTION__UPDATE",e.COLLECTION__DELETE="COLLECTION__DELETE",e.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",e.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",e.DOCUMENT__PRINT="DOCUMENT__PRINT",e.DOCUMENT__PROCESS="DOCUMENT__PROCESS",e.DOCUMENT__RATE="DOCUMENT__RATE",e.DOCUMENT__SEARCH="DOCUMENT__SEARCH",e.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",e.DOCUMENT__UNRATE="DOCUMENT__UNRATE",e.FEEDBACK__SEND="FEEDBACK__SEND",e.GEN_AI__COMPLETED_QUERY="GEN_AI__COMPLETED_QUERY",e.GEN_AI__RATE="GEN_AI__RATE",e.GENAI_CASE_DEFLECTION__START="GENAI_CASE_DEFLECTION__START",e.GENAI_CASE_DEFLECTION__OPEN_TICKET="GENAI_CASE_DEFLECTION__OPEN_TICKET",e.KHUB__PROCESS="KHUB__PROCESS",e.KHUB__SEARCH="KHUB__SEARCH",e.LABELS__DOWNLOAD="LABELS__DOWNLOAD",e.LINK__SHARE="LINK__SHARE",e.PAGE__DISPLAY="PAGE__DISPLAY",e.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",e.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",e.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",e.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",e.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",e.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",e.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",e.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",e.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",e.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",e.SEARCH_RESULT__OPEN_CONTEXT_MENU="SEARCH_RESULT__OPEN_CONTEXT_MENU",e.TOPIC__DISPLAY="TOPIC__DISPLAY",e.TOPIC__RATE="TOPIC__RATE",e.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",e.TOPIC__UNRATE="TOPIC__UNRATE",e.USER__LOGIN="USER__LOGIN",e.USER__LOGOUT="USER__LOGOUT",e.HEARTBEAT="HEARTBEAT"})(Un||(Un={}));var jn;(function(e){e.THIRD_PARTY="THIRD_PARTY",e.OFF_THE_GRID="OFF_THE_GRID",e.CONTENT_PACKAGER="CONTENT_PACKAGER",e.PAGES="PAGES",e.DESIGNED_READER="DESIGNED_READER"})(jn||(jn={}));var Bn;(function(e){e.HOMEPAGE="HOMEPAGE",e.CUSTOM="CUSTOM",e.HEADER="HEADER",e.READER="READER",e.TOPIC_TEMPLATE="TOPIC_TEMPLATE",e.SEARCH="SEARCH",e.SEARCH_RESULT="SEARCH_RESULT"})(Bn||(Bn={}));var Hn;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(Hn||(Hn={}));var Vn;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(Vn||(Vn={}));var Kn;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(Kn||(Kn={}));var Gn;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(Gn||(Gn={}));var Wn;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR",e.CUSTOM="CUSTOM"})(Wn||(Wn={}));var qn;(function(e){e.ASC="ASC",e.DESC="DESC"})(qn||(qn={}));var $n;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})($n||($n={}));var zn;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(zn||(zn={}));var Fn;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK"})(Fn||(Fn={}));var Yn;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(Yn||(Yn={}));var Xn;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.PERSONAL_BOOK="PERSONAL_BOOK",e.SHARED_BOOK="SHARED_BOOK"})(Xn||(Xn={}));var Qn;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(Qn||(Qn={}));var Jn;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC"})(Jn||(Jn={}));var Zn;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Zn||(Zn={}));var D;(function(e){e.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",e.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",e.HTML_EXPORT_USER="HTML_EXPORT_USER",e.PDF_EXPORT_USER="PDF_EXPORT_USER",e.SAVED_SEARCH_USER="SAVED_SEARCH_USER",e.COLLECTION_USER="COLLECTION_USER",e.OFFLINE_USER="OFFLINE_USER",e.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",e.ANALYTICS_USER="ANALYTICS_USER",e.BETA_USER="BETA_USER",e.DEBUG_USER="DEBUG_USER",e.PRINT_USER="PRINT_USER",e.RATING_USER="RATING_USER",e.FEEDBACK_USER="FEEDBACK_USER",e.GENERATIVE_AI_USER="GENERATIVE_AI_USER",e.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",e.CONTENT_PUBLISHER="CONTENT_PUBLISHER",e.KHUB_ADMIN="KHUB_ADMIN",e.USERS_ADMIN="USERS_ADMIN",e.PORTAL_ADMIN="PORTAL_ADMIN",e.ADMIN="ADMIN"})(D||(D={}));var ei;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(ei||(ei={}));var ti;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(ti||(ti={}));var ri;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(ri||(ri={}));var ba={[D.PERSONAL_BOOK_SHARE_USER]:[D.PERSONAL_BOOK_USER],[D.HTML_EXPORT_USER]:[D.PERSONAL_BOOK_USER],[D.PDF_EXPORT_USER]:[D.PERSONAL_BOOK_USER],[D.KHUB_ADMIN]:[D.CONTENT_PUBLISHER],[D.ADMIN]:[D.KHUB_ADMIN,D.USERS_ADMIN,D.PORTAL_ADMIN],[D.GENERATIVE_AI_EXPORT_USER]:[D.GENERATIVE_AI_USER]};function ni(e,t){return e===t||(ba[e]??[]).some(r=>ni(r,t))}function ii(e,t){return e==null?!1:(Array.isArray(e)?e:Array.isArray(e.roles)?e.roles:Array.isArray(e.profile?.roles)?e.profile.roles:[]).some(n=>ni(n,t))}var vt=class extends se{async listMySearches(){let{session:t}=x.getState();return ii(t,D.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),5*60*1e3):[]}};var yt=class extends se{async listMyBookmarks(){let t=x.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),5*60*1e3):[]}};var xa="ft-user-assets",gt=bt.FtReduxStore.get({name:xa,initialState:{savedSearches:void 0,bookmarks:void 0}}),sr=class{constructor(){this.currentSession=x.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new yt,this.savedSearchesService=new vt,x.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:r}=x.getState();(0,bt.deepEqual)((t=this.currentSession)===null||t===void 0?void 0:t.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),gt.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),gt.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();gt.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){let r=!((t=this.currentSession)===null||t===void 0)&&t.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;gt.actions.bookmarks(r)}}},mu=new sr;var or=class{addCommand(t,r=!1){x.commands.add(t,r)}consumeCommand(t){return x.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new or;var ai=E(L()),ur=class{highlightHtml(t,r,n){(0,ai.highlightHtml)(t,r,n)}};window.FluidTopicsHighlightHtmlService=new ur;var si=E(L());var lr=class{isDate(t){var r,n,i,a;return(a=(i=((n=(r=x.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(o=>o.key===t))===null||i===void 0?void 0:i.date)!==null&&a!==void 0?a:!1}format(t,r){var n,i,a;return si.DateFormatter.format(t,(n=r?.locale)!==null&&n!==void 0?n:x.getState().uiLocale,(i=r?.longFormat)!==null&&i!==void 0?i:!1,(a=r?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new lr;var oi=E(L());var qe=class{static get(t,r){var n,i,a,s;let o=x.getState(),{lang:c,region:l}=(i=(n=o.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&i!==void 0?i:{lang:"en",region:"US"};return new oi.SearchPlaceConverter(o.baseUrl,(s=(a=window.FluidTopicsClientConfiguration)===null||a===void 0?void 0:a.predefinedSorts)!==null&&s!==void 0?s:{},t??20,o.searchInAllLanguagesAllowed,r??`${c}-${l}`)}};var cr=class{urlToSearchRequest(t){return qe.get().parse(t)}searchRequestToUrl(t){return qe.get().serialize(t)}};window.FluidTopicsUrlService=new cr;var pe=E(L());var Ae=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{currentItem:t}})}};Ae.eventName="change";var dr=class{itemName(t){return`fluid-topics-history-item-${t}`}get(t){let r=sessionStorage.getItem(this.itemName(t));return r?JSON.parse(r):void 0}set(t,r){sessionStorage.setItem(this.itemName(t),JSON.stringify(r))}},ui=new dr;var Et=class e extends pe.WithEventBus{static build(){return new e(window.history,ui,()=>window.location,!1)}constructor(t,r,n,i){var a,s;super(),this.history=t,this.historyStorage=r,this.windowLocation=n,this.states=[],this.realPushState=t.pushState,this.realReplaceState=t.replaceState,this.initialIndex=(s=(a=t.state)===null||a===void 0?void 0:a.index)!==null&&s!==void 0?s:t.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(i)}setCurrentState(t,r=!1){let n=r&&this.currentIndex===t.index-1;this.currentState={...this.buildCurrentState(),...t},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,n&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,pe.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new Ae(this.currentItem())),0)}installProxies(){let t=r=>(n,i,[a,s,o])=>{let c=r(),l={...c===this.currentIndex?this.currentState:void 0,...a,index:c,href:typeof o=="string"?o:(o??this.windowLocation()).href};n.apply(i,[l,s,o]),this.setCurrentState(l,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:t(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:t(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",t=>this.setCurrentState(t.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(t){for(let r=this.history.length-1;r>=0;r--)t?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(t,r=!1){var n,i,a;let s={...this.buildCurrentState(),...t,index:this.currentIndex,title:(n=t?.title)!==null&&n!==void 0?n:this.currentState.title},o=r?(i=t?.majorState)!==null&&i!==void 0?i:this.currentState.majorState:(a=this.currentState.majorState)!==null&&a!==void 0?a:t?.majorState;o!=null&&(s.majorState=o),this.setCurrentState(s)}addHistoryChangeListener(t){this.addEventListener(Ae.eventName,t)}removeHistoryChangeListener(t){this.removeEventListener(Ae.eventName,t)}currentItem(){return(0,pe.deepCopy)(this.currentState)}back(){let t=this.previousMajorPosition();t>=0?this.history.go(t-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,pe.deepCopy)(this.states[this.previousMajorPosition()])}previousMajorPosition(){let t=this.currentIndex;for(;t>0&&!this.isMajorState(t);)t--;return this.previousExistingPosition(t)}forward(){let t=this.nextMajorPosition();t<this.states.length?this.history.go(t-this.currentIndex):this.history.forward()}forwardItem(){return(0,pe.deepCopy)(this.states[this.nextMajorPosition()])}nextMajorPosition(){let t=this.currentIndex;do t++;while(t<this.states.length&&!this.isMajorState(t));do t++;while(t<this.states.length&&!this.isMajorState(t));return this.previousExistingPosition(t)}previousExistingPosition(t){let r=t;do r--;while(r>0&&!this.hasState(r));return r}buildCurrentState(){var t,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(t=this.history.state)===null||t===void 0?void 0:t.title)!==null&&r!==void 0?r:document.title}}hasState(t){return this.states[t]!=null}isMajorState(t){var r,n;return this.hasState(t)&&((n=(r=this.states[t])===null||r===void 0?void 0:r.majorState)!==null&&n!==void 0?n:!0)}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Et.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),addHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(e),removeHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(e)});(0,li.customElement)("ft-app-context")(N);var hi=E(W());var Sa=E(L());function ci(e){return e.match(/^[\w-]+\.[\w-]+$/)}var Aa=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(s=e[o])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},di=Symbol("i18nAttributes"),fi=Symbol("i18nListAttributes"),mi=Symbol("i18nProperties"),xt=Symbol("i18nContexts"),$e=Symbol("i18nUnsubs");function vi(e){var t,r;class n extends e{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[t]=new Map,this[r]=new Map}getI18nService(a){return a??this.useCustomMessageContexts?tt:Te}i18n(a){var s;this.hasI18nContext(a.context)||this.addI18nContext(a.context,void 0,a.custom);let o=(s=a.args)!==null&&s!==void 0?s:a.argsProvider?a.argsProvider(this):[];return this.getI18nService(a.custom).resolveMessage(a.context,a.key,...o)}customI18n(a,s){if(ci(a)){let[o,c]=a.split(".");return this.i18n({custom:!0,context:o,key:c,...s})||a}return a}firstUpdated(a){super.firstUpdated(a),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(a){super.update(a),this.updateI18nAttributes((s,o,c)=>a.has(o)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(a){this.updateI18nAttributes((s,o,c)=>{var l;return((l=c?.context)===null||l===void 0?void 0:l.toLowerCase())===a}),this.updateI18nProperties(s=>s.context.toLowerCase()===a),this.requestUpdate()}updateI18nAttributes(a){var s,o;let c=this,l=(f,h,p)=>p?.context&&p.key&&a(f,h,p)?{...p,message:this.i18n({context:p.context,key:p.key,...f})}:p;(s=this[di])===null||s===void 0||s.forEach((f,h)=>c[h]=l(f,h,c[h])),(o=this[fi])===null||o===void 0||o.forEach((f,h)=>{var p;return c[h]=(p=c[h])===null||p===void 0?void 0:p.map(g=>l(f,h,g))})}updateI18nProperties(a){var s;(s=this[mi])===null||s===void 0||s.forEach((o,c)=>{a(o,c)&&(this[c]=this.i18n(o))})}addI18nMessages(a,s,o){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(a,s,o)}addI18nContext(a,s,o){let c=(typeof a=="string"?a:a.name).toLowerCase();o=typeof a=="string"?o:a.custom,this[xt].set(c,{isCustomContext:o}),this[$e].has(c)||this[$e].set(c,this.getI18nService(o).subscribe(c,()=>this.onI18nUpdate(c))),this.getI18nService(o).prepareContext(c,s)}hasI18nContext(a){return this[xt].has(a.toLowerCase())}connectedCallback(){super.connectedCallback(),this[xt].forEach((a,s)=>this.addI18nContext(s,void 0,a.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[$e].forEach(a=>a()),this[$e].clear()}}return t=xt,r=$e,Aa([(0,hi.property)({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}var pi=class extends vi(At.FtLitElement){},St=class extends vi(At.FtLitElementRedux){};var ze=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(s=e[o])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},Q=class extends St{constructor(){super(),this.editorMode=!1,this.addStore(x)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":Ot.nothing:Ot.html`
86
+ `}update(t){var r,n,i,a,s;super.update(t),t.has("baseUrl")&&(x.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&x.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&x.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&x.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&x.actions.noCustom(this.noCustom),t.has("editorMode")&&x.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&x.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&x.actions.session(this.session),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(o=>Te.addContext(o)),t.has("openExternalDocumentInNewTab")&&x.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&x.actions.navigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&x.actions.forcedOffline(this.forcedOffline),t.has("localesConfiguration")&&(x.actions.defaultLocales((r=this.localesConfiguration)===null||r===void 0?void 0:r.defaultLocales),x.actions.availableUiLocales((i=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&i!==void 0?i:[]),x.actions.searchInAllLanguagesAllowed((s=(a=this.localesConfiguration)===null||a===void 0?void 0:a.allLanguagesAllowed)!==null&&s!==void 0?s:!1)),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration())}async updateSession(){this.session=await this.cache.get("session",async()=>{let t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},t.idleTimeoutInMillis),t})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}};N.elementDefinitions={};N.styles=Mr;U([(0,V.property)()],N.prototype,"baseUrl",void 0);U([(0,V.property)()],N.prototype,"apiIntegrationIdentifier",void 0);U([(0,V.property)()],N.prototype,"uiLocale",void 0);U([(0,Y.jsonProperty)(null)],N.prototype,"availableUiLocales",void 0);U([(0,Y.jsonProperty)(null)],N.prototype,"metadataConfiguration",void 0);U([(0,V.property)({type:Boolean})],N.prototype,"editorMode",void 0);U([(0,V.property)({type:Boolean})],N.prototype,"noCustom",void 0);U([(0,V.property)({type:Boolean})],N.prototype,"openExternalDocumentInNewTab",void 0);U([(0,V.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],N.prototype,"noCustomComponent",void 0);U([(0,V.property)({type:Boolean})],N.prototype,"withManualResources",void 0);U([(0,V.property)({type:Boolean})],N.prototype,"navigatorOnline",void 0);U([(0,V.property)({type:Boolean})],N.prototype,"forcedOffline",void 0);U([(0,V.property)({type:Object})],N.prototype,"apiProvider",void 0);U([(0,Y.jsonProperty)([])],N.prototype,"messageContexts",void 0);U([(0,Y.jsonProperty)(void 0)],N.prototype,"session",void 0);U([(0,V.state)()],N.prototype,"localesConfiguration",void 0);var ga=E(W());function Ni(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,n,i;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!rt(e[n],t[n]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;for(n of e.entries())if(!rt(n[1],t.get(n[0])))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();let a=s=>Object.keys(s).filter(o=>s[o]!=null);if(i=a(e),r=i.length,r!==a(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[n]))return!1;for(n=r;n--!==0;){let s=i[n];if(!rt(e[s],t[s]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function rt(e,t){try{return Ni(e,t)}catch{return!1}}function nt(e,t){return!rt(e,t)}var Di=E(W(),1);var it=class{constructor(){this.queue=[]}add(t,r=!1){r&&this.clear(t.type),this.queue.push(t)}consume(t){let r=this.queue.find(n=>n.type===t);return r&&(this.queue=this.queue.filter(n=>n!==r)),r}clear(t){typeof t=="string"?this.queue=this.queue.filter(r=>r.type!==t):this.queue=this.queue.filter(r=>!t.test(r.type))}};var we=E(W(),1);var Ur=E(W(),1);function jr(e,t){let r=()=>JSON.parse(JSON.stringify(e));return(0,Ur.property)({type:Object,converter:{fromAttribute:n=>{if(n==null)return r();try{return JSON.parse(n)}catch{return r()}},toAttribute:n=>JSON.stringify(n)},hasChanged:nt,...t??{}})}var at=class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,r){return this.callbacks=[t],this.debounce(r)}queue(t,r){return this.callbacks.push(t),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return this.promise==null&&(this.promise=new Promise((r,n)=>{this.resolvePromise=r,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,r;let n=[...this.callbacks];this.callbacks=[];let i=(t=this.rejectPromise)!==null&&t!==void 0?t:()=>null,a=(r=this.resolvePromise)!==null&&r!==void 0?r:()=>null;this.clearPromise();for(let s of n)try{await s()}catch(o){i(o);return}a(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Hr=E(J(),1);var st=globalThis,Mi=st.ShadowRoot&&(st.ShadyCSS===void 0||st.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ss=Symbol();var Br=(e,t)=>{if(Mi)e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of t){let n=document.createElement("style"),i=st.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=r.cssText,e.appendChild(n)}};var ot=class extends Hr.LitElement{createRenderRoot(){let t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach(([i,a])=>t.registry.define(i,a)));let r={...t.shadowRootOptions,customElements:t.registry},n=this.renderOptions.creationScope=this.attachShadow(r);return Br(n,t.elementStyles),n}};function Vr(e,t,...r){var n;let i=e.querySelector(t);for(let a of r)i=(n=i?.shadowRoot)===null||n===void 0?void 0:n.querySelector(a);return i}var je=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(s=e[o])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},qr,Kr=Symbol("constructorPrototype"),Gr=Symbol("constructorName"),$r=Symbol("exportpartsDebouncer"),Wr=Symbol("dynamicDependenciesLoaded"),re=class extends ot{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[qr]=new at(5),this[Gr]=this.constructor.name,this[Kr]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Gr]&&Object.setPrototypeOf(this,this[Kr])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(r){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",r)}let t=this.constructor;t[Wr]||(t[Wr]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(t){super.updated(t),this.updateComplete.then(()=>{this.contentAvailableCallback(t),this.focusElementToFocus(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate()})}contentAvailableCallback(t){}focusElementToFocus(t){if(t.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:n,shadowPath:i}=this.elementToFocus;if(n!=null){let a=[...i??[],n];r=Vr(this.shadowRoot,...a)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(t){var r,n,i;if(((n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((i=this.customStylesheet)!==null&&i!==void 0?i:"")}catch(a){console.error(a,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let a=document.createElement("style");a.classList.add("ft-lit-element--custom-stylesheet"),a.innerHTML=this.customStylesheet,this.shadowRoot.append(a)}}scheduleExportpartsUpdate(){var t,r,n;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(n=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&n!==void 0&&n)&&this[$r].run(()=>{var i,a;!((i=this.exportpartsPrefix)===null||i===void 0)&&i.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((a=this.exportpartsPrefixes)===null||a===void 0?void 0:a.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(t){var r,n,i,a,s,o;let c=p=>p!=null&&p.trim().length>0,l=t.filter(c).map(p=>p.trim());if(l.length===0){this.removeAttribute("exportparts");return}let f=new Set;for(let p of(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let g=(a=(i=p.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&a!==void 0?a:[],v=(o=(s=p.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(y=>y.split(":")[1]))!==null&&o!==void 0?o:[];new Array(...g,...v).filter(c).map(y=>y.trim()).forEach(y=>f.add(y))}if(f.size===0){this.removeAttribute("exportparts");return}let h=[...f.values()].flatMap(p=>l.map(g=>`${p}:${g}--${p}`));this.setAttribute("exportparts",[...this.part,...h].join(", "))}};qr=$r;je([(0,we.property)()],re.prototype,"exportpartsPrefix",void 0);je([jr([])],re.prototype,"exportpartsPrefixes",void 0);je([(0,we.property)()],re.prototype,"customStylesheet",void 0);je([(0,we.property)()],re.prototype,"elementToFocus",void 0);je([(0,we.state)()],re.prototype,"useAdoptedStyleSheets",void 0);function Be(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var zr,Fr,Yr,He=Symbol("internalReduxEventsUnsubscribers"),oe=Symbol("internalStoresUnsubscribers"),Ee=Symbol("internalStores"),Ve=class extends re{constructor(){super(...arguments),this[zr]=new Map,this[Fr]=new Map,this[Yr]=new Map}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some(r=>t.has(r))&&this.updateFromStores()}getUnnamedStore(){if(this[Ee].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ee].values()][0]}getStore(t){return t==null?this.getUnnamedStore():this[Ee].get(t)}addStore(t,r){var n;r=(n=r??(Be(t)?t.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(r),this[Ee].set(r,t),this.subscribeToStore(r,t),this.updateFromStores()}removeStore(t){let r=typeof t=="string"?t:t.name;this.unsubscribeFromStore(r),this[Ee].delete(r)}setupStores(){this.unsubscribeFromStores(),this[Ee].forEach((t,r)=>this.subscribeToStore(r,t)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((t,r)=>{let n=this.constructor.getPropertyOptions(r);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:r)){let i=this.getStore(t.store);i&&(t.store?this[oe].has(t.store):this[oe].size>0)&&(this[r]=t.selector(i.getState(),this))}})}subscribeToStore(t,r){var n;this[oe].set(t,r.subscribe(()=>this.updateFromStores())),this[He].set(t,[]),Be(r)&&r.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((i,a)=>{if(typeof this[a]=="function"&&(!i.store||r.name===i.store)){let s=o=>this[a](o);r.addEventListener(i.eventName,s),this[He].get(t).push(()=>r.removeEventListener(i.eventName,s))}})),this.onStoreAvailable(t)}unsubscribeFromStores(){this[oe].forEach((t,r)=>this.unsubscribeFromStore(r))}unsubscribeFromStore(t){var r;this[oe].has(t)&&this[oe].get(t)(),this[oe].delete(t),(r=this[He].get(t))===null||r===void 0||r.forEach(n=>n()),this[He].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};zr=oe,Fr=Ee,Yr=He;Ve.reduxProperties=new Map;Ve.reduxReactiveProperties=new Set;Ve.reduxEventListeners=new Map;function q(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if(0)var i,a;throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function ne(e){return!!e&&!!e[R]}function X(e){var t;return!!e&&(function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===Ki}(e)||Array.isArray(e)||!!e[rn]||!!(!((t=e.constructor)===null||t===void 0)&&t[rn])||qt(e)||$t(e))}function xe(e,t,r){r===void 0&&(r=!1),Pe(e)===0?(r?Object.keys:Re)(e).forEach(function(n){r&&typeof n=="symbol"||t(n,e[n],e)}):e.forEach(function(n,i){return t(i,n,e)})}function Pe(e){var t=e[R];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:qt(e)?2:$t(e)?3:0}function Ce(e,t){return Pe(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Ii(e,t){return Pe(e)===2?e.get(t):e[t]}function nn(e,t,r){var n=Pe(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function an(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function qt(e){return Hi&&e instanceof Map}function $t(e){return Vi&&e instanceof Set}function ue(e){return e.o||e.t}function zt(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=un(e);delete t[R];for(var r=Re(t),n=0;n<r.length;n++){var i=r[n],a=t[i];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function Ft(e,t){return t===void 0&&(t=!1),Yt(e)||ne(e)||!X(e)||(Pe(e)>1&&(e.set=e.add=e.clear=e.delete=ki),Object.freeze(e),t&&xe(e,function(r,n){return Ft(n,!0)},!0)),e}function ki(){q(2)}function Yt(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function ee(e){var t=Wt[e];return t||q(18,e),t}function Ui(e,t){Wt[e]||(Wt[e]=t)}function Vt(){return Ge}function Ut(e,t){t&&(ee("Patches"),e.u=[],e.s=[],e.v=t)}function ut(e){Kt(e),e.p.forEach(ji),e.p=null}function Kt(e){e===Ge&&(Ge=e.l)}function Xr(e){return Ge={p:[],l:Ge,h:e,m:!0,_:0}}function ji(e){var t=e[R];t.i===0||t.i===1?t.j():t.g=!0}function jt(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.O||ee("ES5").S(t,e,n),n?(r[R].P&&(ut(t),q(4)),X(e)&&(e=lt(t,e),t.l||ct(t,e)),t.u&&ee("Patches").M(r[R].t,e,t.u,t.s)):e=lt(t,r,[]),ut(t),t.u&&t.v(t.u,t.s),e!==on?e:void 0}function lt(e,t,r){if(Yt(t))return t;var n=t[R];if(!n)return xe(t,function(o,c){return Qr(e,n,t,o,c,r)},!0),t;if(n.A!==e)return t;if(!n.P)return ct(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=zt(n.k):n.o,a=i,s=!1;n.i===3&&(a=new Set(i),i.clear(),s=!0),xe(a,function(o,c){return Qr(e,n,i,o,c,r,s)}),ct(e,i,!1),r&&e.u&&ee("Patches").N(n,r,e.u,e.s)}return n.o}function Qr(e,t,r,n,i,a,s){if(ne(i)){var o=lt(e,i,a&&t&&t.i!==3&&!Ce(t.R,n)?a.concat(n):void 0);if(nn(r,n,o),!ne(o))return;e.m=!1}else s&&r.add(i);if(X(i)&&!Yt(i)){if(!e.h.D&&e._<1)return;lt(e,i),t&&t.A.l||ct(e,i)}}function ct(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&Ft(t,r)}function Bt(e,t){var r=e[R];return(r?ue(r):e)[t]}function Jr(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function le(e){e.P||(e.P=!0,e.l&&le(e.l))}function Ht(e){e.o||(e.o=zt(e.t))}function Gt(e,t,r){var n=qt(t)?ee("MapSet").F(t,r):$t(t)?ee("MapSet").T(t,r):e.O?function(i,a){var s=Array.isArray(i),o={i:s?1:0,A:a?a.A:Vt(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},c=o,l=We;s&&(c=[o],l=Ke);var f=Proxy.revocable(c,l),h=f.revoke,p=f.proxy;return o.k=p,o.j=h,p}(t,r):ee("ES5").J(t,r);return(r?r.A:Vt()).p.push(n),n}function Bi(e){return ne(e)||q(22,e),function t(r){if(!X(r))return r;var n,i=r[R],a=Pe(r);if(i){if(!i.P&&(i.i<4||!ee("ES5").K(i)))return i.t;i.I=!0,n=Zr(r,a),i.I=!1}else n=Zr(r,a);return xe(n,function(s,o){i&&Ii(i.t,s)===o||nn(n,s,t(o))}),a===3?new Set(n):n}(e)}function Zr(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return zt(e)}function sn(){function e(s,o){var c=a[s];return c?c.enumerable=o:a[s]=c={configurable:!0,enumerable:o,get:function(){var l=this[R];return We.get(l,s)},set:function(l){var f=this[R];We.set(f,s,l)}},c}function t(s){for(var o=s.length-1;o>=0;o--){var c=s[o][R];if(!c.P)switch(c.i){case 5:n(c)&&le(c);break;case 4:r(c)&&le(c)}}}function r(s){for(var o=s.t,c=s.k,l=Re(c),f=l.length-1;f>=0;f--){var h=l[f];if(h!==R){var p=o[h];if(p===void 0&&!Ce(o,h))return!0;var g=c[h],v=g&&g[R];if(v?v.t!==p:!an(g,p))return!0}}var y=!!o[R];return l.length!==Re(o).length+(y?0:1)}function n(s){var o=s.k;if(o.length!==s.t.length)return!0;var c=Object.getOwnPropertyDescriptor(o,o.length-1);if(c&&!c.get)return!0;for(var l=0;l<o.length;l++)if(!o.hasOwnProperty(l))return!0;return!1}function i(s){s.g&&q(3,JSON.stringify(ue(s)))}var a={};Ui("ES5",{J:function(s,o){var c=Array.isArray(s),l=function(h,p){if(h){for(var g=Array(p.length),v=0;v<p.length;v++)Object.defineProperty(g,""+v,e(v,!0));return g}var y=un(p);delete y[R];for(var _=Re(y),S=0;S<_.length;S++){var A=_[S];y[A]=e(A,h||!!y[A].enumerable)}return Object.create(Object.getPrototypeOf(p),y)}(c,s),f={i:c?5:4,A:o?o.A:Vt(),P:!1,I:!1,R:{},l:o,t:s,k:l,o:null,g:!1,C:!1};return Object.defineProperty(l,R,{value:f,writable:!0}),l},S:function(s,o,c){c?ne(o)&&o[R].A===s&&t(s.p):(s.u&&function l(f){if(f&&typeof f=="object"){var h=f[R];if(h){var p=h.t,g=h.k,v=h.R,y=h.i;if(y===4)xe(g,function(T){T!==R&&(p[T]!==void 0||Ce(p,T)?v[T]||l(g[T]):(v[T]=!0,le(h)))}),xe(p,function(T){g[T]!==void 0||Ce(g,T)||(v[T]=!1,le(h))});else if(y===5){if(n(h)&&(le(h),v.length=!0),g.length<p.length)for(var _=g.length;_<p.length;_++)v[_]=!1;else for(var S=p.length;S<g.length;S++)v[S]=!0;for(var A=Math.min(g.length,p.length),C=0;C<A;C++)g.hasOwnProperty(C)||(v[C]=!0),v[C]===void 0&&l(g[C])}}}}(s.p[0]),t(s.p))},K:function(s){return s.i===4?r(s):n(s)}})}var en,Ge,Xt=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Hi=typeof Map<"u",Vi=typeof Set<"u",tn=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",on=Xt?Symbol.for("immer-nothing"):((en={})["immer-nothing"]=!0,en),rn=Xt?Symbol.for("immer-draftable"):"__$immer_draftable",R=Xt?Symbol.for("immer-state"):"__$immer_state";var Ki=""+Object.prototype.constructor,Re=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,un=Object.getOwnPropertyDescriptors||function(e){var t={};return Re(e).forEach(function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)}),t},Wt={},We={get:function(e,t){if(t===R)return e;var r=ue(e);if(!Ce(r,t))return function(i,a,s){var o,c=Jr(a,s);return c?"value"in c?c.value:(o=c.get)===null||o===void 0?void 0:o.call(i.k):void 0}(e,r,t);var n=r[t];return e.I||!X(n)?n:n===Bt(e.t,t)?(Ht(e),e.o[t]=Gt(e.A.h,n,e)):n},has:function(e,t){return t in ue(e)},ownKeys:function(e){return Reflect.ownKeys(ue(e))},set:function(e,t,r){var n=Jr(ue(e),t);if(n?.set)return n.set.call(e.k,r),!0;if(!e.P){var i=Bt(ue(e),t),a=i?.[R];if(a&&a.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(an(r,i)&&(r!==void 0||Ce(e.t,t)))return!0;Ht(e),le(e)}return e.o[t]===r&&(r!==void 0||t in e.o)||Number.isNaN(r)&&Number.isNaN(e.o[t])||(e.o[t]=r,e.R[t]=!0),!0},deleteProperty:function(e,t){return Bt(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,Ht(e),le(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=ue(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty:function(){q(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){q(12)}},Ke={};xe(We,function(e,t){Ke[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Ke.deleteProperty=function(e,t){return Ke.set.call(this,e,t,void 0)},Ke.set=function(e,t,r){return We.set.call(this,e[0],t,r,e[0])};var Gi=function(){function e(r){var n=this;this.O=tn,this.D=!0,this.produce=function(i,a,s){if(typeof i=="function"&&typeof a!="function"){var o=a;a=i;var c=n;return function(y){var _=this;y===void 0&&(y=o);for(var S=arguments.length,A=Array(S>1?S-1:0),C=1;C<S;C++)A[C-1]=arguments[C];return c.produce(y,function(T){var I;return(I=a).call.apply(I,[_,T].concat(A))})}}var l;if(typeof a!="function"&&q(6),s!==void 0&&typeof s!="function"&&q(7),X(i)){var f=Xr(n),h=Gt(n,i,void 0),p=!0;try{l=a(h),p=!1}finally{p?ut(f):Kt(f)}return typeof Promise<"u"&&l instanceof Promise?l.then(function(y){return Ut(f,s),jt(y,f)},function(y){throw ut(f),y}):(Ut(f,s),jt(l,f))}if(!i||typeof i!="object"){if((l=a(i))===void 0&&(l=i),l===on&&(l=void 0),n.D&&Ft(l,!0),s){var g=[],v=[];ee("Patches").M(i,l,g,v),s(g,v)}return l}q(21,i)},this.produceWithPatches=function(i,a){if(typeof i=="function")return function(l){for(var f=arguments.length,h=Array(f>1?f-1:0),p=1;p<f;p++)h[p-1]=arguments[p];return n.produceWithPatches(l,function(g){return i.apply(void 0,[g].concat(h))})};var s,o,c=n.produce(i,a,function(l,f){s=l,o=f});return typeof Promise<"u"&&c instanceof Promise?c.then(function(l){return[l,s,o]}):[c,s,o]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var t=e.prototype;return t.createDraft=function(r){X(r)||q(8),ne(r)&&(r=Bi(r));var n=Xr(this),i=Gt(this,r,void 0);return i[R].C=!0,Kt(n),i},t.finishDraft=function(r,n){var i=r&&r[R],a=i.A;return Ut(a,n),jt(void 0,a)},t.setAutoFreeze=function(r){this.D=r},t.setUseProxies=function(r){r&&!tn&&q(20),this.O=r},t.applyPatches=function(r,n){var i;for(i=n.length-1;i>=0;i--){var a=n[i];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}i>-1&&(n=n.slice(i+1));var s=ee("Patches").$;return ne(r)?s(r,n):this.produce(r,function(o){return s(o,n)})},e}(),K=new Gi,Wi=K.produce,ks=K.produceWithPatches.bind(K),Us=K.setAutoFreeze.bind(K),js=K.setUseProxies.bind(K),Bs=K.applyPatches.bind(K),Hs=K.createDraft.bind(K),Vs=K.finishDraft.bind(K),dt=Wi;function Se(e){"@babel/helpers - typeof";return Se=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Se(e)}function ln(e,t){if(Se(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Se(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function cn(e){var t=ln(e,"string");return Se(t)=="symbol"?t:t+""}function dn(e,t,r){return(t=cn(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Qt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?fn(Object(r),!0).forEach(function(n){dn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fn(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function j(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var pn=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Jt=function(){return Math.random().toString(36).substring(7).split("").join(".")},ft={INIT:"@@redux/INIT"+Jt(),REPLACE:"@@redux/REPLACE"+Jt(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Jt()}};function qi(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Zt(e,t,r){var n;if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(j(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(j(1));return r(Zt)(e,t)}if(typeof e!="function")throw new Error(j(2));var i=e,a=t,s=[],o=s,c=!1;function l(){o===s&&(o=s.slice())}function f(){if(c)throw new Error(j(3));return a}function h(y){if(typeof y!="function")throw new Error(j(4));if(c)throw new Error(j(5));var _=!0;return l(),o.push(y),function(){if(_){if(c)throw new Error(j(6));_=!1,l();var A=o.indexOf(y);o.splice(A,1),s=null}}}function p(y){if(!qi(y))throw new Error(j(7));if(typeof y.type>"u")throw new Error(j(8));if(c)throw new Error(j(9));try{c=!0,a=i(a,y)}finally{c=!1}for(var _=s=o,S=0;S<_.length;S++){var A=_[S];A()}return y}function g(y){if(typeof y!="function")throw new Error(j(10));i=y,p({type:ft.REPLACE})}function v(){var y,_=h;return y={subscribe:function(A){if(typeof A!="object"||A===null)throw new Error(j(11));function C(){A.next&&A.next(f())}C();var T=_(C);return{unsubscribe:T}}},y[pn]=function(){return this},y}return p({type:ft.INIT}),n={dispatch:p,subscribe:h,getState:f,replaceReducer:g},n[pn]=v,n}function $i(e){Object.keys(e).forEach(function(t){var r=e[t],n=r(void 0,{type:ft.INIT});if(typeof n>"u")throw new Error(j(12));if(typeof r(void 0,{type:ft.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(j(13))})}function hn(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++){var i=t[n];typeof e[i]=="function"&&(r[i]=e[i])}var a=Object.keys(r),s,o;try{$i(r)}catch(c){o=c}return function(l,f){if(l===void 0&&(l={}),o)throw o;if(0)var h;for(var p=!1,g={},v=0;v<a.length;v++){var y=a[v],_=r[y],S=l[y],A=_(S,f);if(typeof A>"u"){var C=f&&f.type;throw new Error(j(14))}g[y]=A,p=p||A!==S}return p=p||a.length!==Object.keys(l).length,p?g:l}}function Le(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.length===0?function(n){return n}:t.length===1?t[0]:t.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function mn(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){return function(){var i=n.apply(void 0,arguments),a=function(){throw new Error(j(15))},s={getState:i.getState,dispatch:function(){return a.apply(void 0,arguments)}},o=t.map(function(c){return c(s)});return a=Le.apply(void 0,o)(i.dispatch),Qt(Qt({},i),{},{dispatch:a})}}}function vn(e){var t=function(n){var i=n.dispatch,a=n.getState;return function(s){return function(o){return typeof o=="function"?o(i,a,e):s(o)}}};return t}var yn=vn();yn.withExtraArgument=vn;var er=yn;var Sn=function(){var e=function(t,r){return e=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])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),zi=function(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(l){return function(f){return c([l,f])}}function c(l){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(a=l[0]&2?i.return:l[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,l[1])).done)return a;switch(i=0,a&&(l=[l[0]&2,a.value]),l[0]){case 0:case 1:a=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,i=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]<a[3])){r.label=l[1];break}if(l[0]===6&&r.label<a[1]){r.label=a[1],a=l;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(l);break}a[2]&&r.ops.pop(),r.trys.pop();continue}l=t.call(e,r)}catch(f){l=[6,f],i=0}finally{n=a=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},Ne=function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e},Fi=Object.defineProperty,Yi=Object.defineProperties,Xi=Object.getOwnPropertyDescriptors,gn=Object.getOwnPropertySymbols,Qi=Object.prototype.hasOwnProperty,Ji=Object.prototype.propertyIsEnumerable,bn=function(e,t,r){return t in e?Fi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},ce=function(e,t){for(var r in t||(t={}))Qi.call(t,r)&&bn(e,r,t[r]);if(gn)for(var n=0,i=gn(t);n<i.length;n++){var r=i[n];Ji.call(t,r)&&bn(e,r,t[r])}return e},tr=function(e,t){return Yi(e,Xi(t))},Zi=function(e,t,r){return new Promise(function(n,i){var a=function(c){try{o(r.next(c))}catch(l){i(l)}},s=function(c){try{o(r.throw(c))}catch(l){i(l)}},o=function(c){return c.done?n(c.value):Promise.resolve(c.value).then(a,s)};o((r=r.apply(e,t)).next())})};var ea=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Le:Le.apply(null,arguments)},ao=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function ta(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var r=t;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return t===r}var ra=function(e){Sn(t,e);function t(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=e.apply(this,r)||this;return Object.setPrototypeOf(i,t.prototype),i}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e.prototype.concat.apply(this,r)},t.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(t.bind.apply(t,Ne([void 0],r[0].concat(this)))):new(t.bind.apply(t,Ne([void 0],r.concat(this))))},t}(Array),na=function(e){Sn(t,e);function t(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=e.apply(this,r)||this;return Object.setPrototypeOf(i,t.prototype),i}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e.prototype.concat.apply(this,r)},t.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(t.bind.apply(t,Ne([void 0],r[0].concat(this)))):new(t.bind.apply(t,Ne([void 0],r.concat(this))))},t}(Array);function ir(e){return X(e)?dt(e,function(){}):e}function ia(e){return typeof e=="boolean"}function aa(){return function(t){return sa(t)}}function sa(e){e===void 0&&(e={});var t=e.thunk,r=t===void 0?!0:t,n=e.immutableCheck,i=n===void 0?!0:n,a=e.serializableCheck,s=a===void 0?!0:a,o=new ra;if(r&&(ia(r)?o.push(er):o.push(er.withExtraArgument(r.extraArgument))),0){if(i)var c;if(s)var l}return o}var rr=!0;function An(e){var t=aa(),r=e||{},n=r.reducer,i=n===void 0?void 0:n,a=r.middleware,s=a===void 0?t():a,o=r.devTools,c=o===void 0?!0:o,l=r.preloadedState,f=l===void 0?void 0:l,h=r.enhancers,p=h===void 0?void 0:h,g;if(typeof i=="function")g=i;else if(ta(i))g=hn(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 v=s;if(typeof v=="function"&&(v=v(t),!rr&&!Array.isArray(v)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!rr&&v.some(function(T){return typeof T!="function"}))throw new Error("each middleware provided to configureStore must be a function");var y=mn.apply(void 0,v),_=Le;c&&(_=ea(ce({trace:!rr},typeof c=="object"&&c)));var S=new na(y),A=S;Array.isArray(p)?A=Ne([y],p):typeof p=="function"&&(A=p(S));var C=_.apply(void 0,A);return Zt(g,f,C)}function de(e,t){function r(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(t){var a=t.apply(void 0,n);if(!a)throw new Error("prepareAction did not return an object");return ce(ce({type:e,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:e,payload:n[0]}}return r.toString=function(){return""+e},r.type=e,r.match=function(n){return n.type===e},r}function On(e){var t={},r=[],n,i={addCase:function(a,s){var o=typeof a=="string"?a:a.type;if(o in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[o]=s,i},addMatcher:function(a,s){return r.push({matcher:a,reducer:s}),i},addDefaultCase:function(a){return n=a,i}};return e(i),[t,r,n]}function oa(e){return typeof e=="function"}function ua(e,t,r,n){r===void 0&&(r=[]);var i=typeof t=="function"?On(t):[t,r,n],a=i[0],s=i[1],o=i[2],c;if(oa(e))c=function(){return ir(e())};else{var l=ir(e);c=function(){return l}}function f(h,p){h===void 0&&(h=c());var g=Ne([a[p.type]],s.filter(function(v){var y=v.matcher;return y(p)}).map(function(v){var y=v.reducer;return y}));return g.filter(function(v){return!!v}).length===0&&(g=[o]),g.reduce(function(v,y){if(y)if(ne(v)){var _=v,S=y(_,p);return S===void 0?v:S}else{if(X(v))return dt(v,function(A){return y(A,p)});var S=y(v,p);if(S===void 0){if(v===null)return v;throw Error("A case reducer on a non-draftable value must not return undefined")}return S}return v},h)}return f.getInitialState=c,f}function la(e,t){return e+"/"+t}function _n(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof e.initialState=="function"?e.initialState:ir(e.initialState),n=e.reducers||{},i=Object.keys(n),a={},s={},o={};i.forEach(function(f){var h=n[f],p=la(t,f),g,v;"reducer"in h?(g=h.reducer,v=h.prepare):g=h,a[f]=g,s[p]=g,o[f]=v?de(p,v):de(p)});function c(){var f=typeof e.extraReducers=="function"?On(e.extraReducers):[e.extraReducers],h=f[0],p=h===void 0?{}:h,g=f[1],v=g===void 0?[]:g,y=f[2],_=y===void 0?void 0:y,S=ce(ce({},p),s);return ua(r,function(A){for(var C in S)A.addCase(C,S[C]);for(var T=0,I=v;T<I.length;T++){var $=I[T];A.addMatcher($.matcher,$.reducer)}_&&A.addDefaultCase(_)})}var l;return{name:t,reducer:function(f,h){return l||(l=c()),l(f,h)},actions:o,caseReducers:a,getInitialState:function(){return l||(l=c()),l.getInitialState()}}}var ca="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",da=function(e){e===void 0&&(e=21);for(var t="",r=e;r--;)t+=ca[Math.random()*64|0];return t},fa=["name","message","stack","code"],nr=function(){function e(t,r){this.payload=t,this.meta=r}return e}(),En=function(){function e(t,r){this.payload=t,this.meta=r}return e}(),pa=function(e){if(typeof e=="object"&&e!==null){for(var t={},r=0,n=fa;r<n.length;r++){var i=n[r];typeof e[i]=="string"&&(t[i]=e[i])}return t}return{message:String(e)}},lo=function(){function e(t,r,n){var i=de(t+"/fulfilled",function(f,h,p,g){return{payload:f,meta:tr(ce({},g||{}),{arg:p,requestId:h,requestStatus:"fulfilled"})}}),a=de(t+"/pending",function(f,h,p){return{payload:void 0,meta:tr(ce({},p||{}),{arg:h,requestId:f,requestStatus:"pending"})}}),s=de(t+"/rejected",function(f,h,p,g,v){return{payload:g,error:(n&&n.serializeError||pa)(f||"Rejected"),meta:tr(ce({},v||{}),{arg:p,requestId:h,rejectedWithValue:!!g,requestStatus:"rejected",aborted:f?.name==="AbortError",condition:f?.name==="ConditionError"})}}),o=!1,c=typeof AbortController<"u"?AbortController:function(){function f(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return f.prototype.abort=function(){},f}();function l(f){return function(h,p,g){var v=n?.idGenerator?n.idGenerator(f):da(),y=new c,_,S=!1;function A(T){_=T,y.abort()}var C=function(){return Zi(this,null,function(){var T,I,$,ve,H,ye,Oe;return zi(this,function(u){switch(u.label){case 0:return u.trys.push([0,4,,5]),ve=(T=n?.condition)==null?void 0:T.call(n,f,{getState:p,extra:g}),ma(ve)?[4,ve]:[3,2];case 1:ve=u.sent(),u.label=2;case 2:if(ve===!1||y.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return S=!0,H=new Promise(function(d,b){return y.signal.addEventListener("abort",function(){return b({name:"AbortError",message:_||"Aborted"})})}),h(a(v,f,(I=n?.getPendingMeta)==null?void 0:I.call(n,{requestId:v,arg:f},{getState:p,extra:g}))),[4,Promise.race([H,Promise.resolve(r(f,{dispatch:h,getState:p,extra:g,requestId:v,signal:y.signal,abort:A,rejectWithValue:function(d,b){return new nr(d,b)},fulfillWithValue:function(d,b){return new En(d,b)}})).then(function(d){if(d instanceof nr)throw d;return d instanceof En?i(d.payload,v,f,d.meta):i(d,v,f)})])];case 3:return $=u.sent(),[3,5];case 4:return ye=u.sent(),$=ye instanceof nr?s(null,v,f,ye.payload,ye.meta):s(ye,v,f),[3,5];case 5:return Oe=n&&!n.dispatchConditionRejection&&s.match($)&&$.meta.condition,Oe||h($),[2,$]}})})}();return Object.assign(C,{abort:A,requestId:v,arg:f,unwrap:function(){return C.then(ha)}})}}return Object.assign(l,{pending:a,rejected:s,fulfilled:i,typePrefix:t})}return e.withTypes=function(){return e},e}();function ha(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function ma(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Tn="listener",wn="completed",Cn="cancelled",co="task-"+Cn,fo="task-"+wn,po=Tn+"-"+Cn,ho=Tn+"-"+wn;var ar="listenerMiddleware";var mo=de(ar+"/add"),vo=de(ar+"/removeAll"),yo=de(ar+"/remove");var xn,go=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(xn||(xn=Promise.resolve())).then(e).catch(function(t){return setTimeout(function(){throw t},0)})},va=function(e){return function(t){setTimeout(t,e)}},bo=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:va(10);sn();function ya(e,t){return class extends e{constructor(){super(...arguments),this.eventBus=t??document.createElement("span")}addEventListener(r,n,i){this.eventBus.addEventListener(r,n,i)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,n,i){this.eventBus.removeEventListener(r,n,i)}}}var pt=class extends ya(Object){};window.ftReduxStores||(window.ftReduxStores={});var Rn=class e extends pt{static get(t){var r;let n=typeof t=="string"?t:t.name,i=typeof t=="string"?void 0:t,a=window.ftReduxStores[n];if(Be(a))return a;if(i==null)return;let s=_n({...i,reducers:(r=i.reducers)!==null&&r!==void 0?r:{}}),o=An({reducer:(c,l)=>l.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof l.type=="string"&&l.type.startsWith("DEFAULT_VALUE_SETTER__")?{...c,...l.overwrites}:s.reducer(c,l)});return window.ftReduxStores[i.name]=new e(s,o,i.eventBus)}constructor(t,r,n){super(),this.reduxSlice=t,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new it;let i=a=>a!=null?JSON.parse(JSON.stringify(a)):a;this.actions=new Proxy(this.reduxSlice.actions,{get:(a,s,o)=>{let c=s,l=a[c];return l?(...f)=>{let h=l(...f.map(i));return this.reduxStore.dispatch(h),h}:f=>{this.setState({[c]:i(f)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var bt=E(L());var Ea=E(Ln(),1);var Nn;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(Nn||(Nn={}));var Dn;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(Dn||(Dn={}));var Mn;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.MAP_ATTACHMENT="MAP_ATTACHMENT",e.RESOURCE="RESOURCE"})(Mn||(Mn={}));var In;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(In||(In={}));var kn;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})(kn||(kn={}));var Un;(function(e){e.BOOKMARK__CREATE="BOOKMARK__CREATE",e.BOOKMARK__DELETE="BOOKMARK__DELETE",e.CASE_DEFLECTION__START="CASE_DEFLECTION__START",e.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",e.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",e.COLLECTION__CREATE="COLLECTION__CREATE",e.COLLECTION__UPDATE="COLLECTION__UPDATE",e.COLLECTION__DELETE="COLLECTION__DELETE",e.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",e.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",e.DOCUMENT__PRINT="DOCUMENT__PRINT",e.DOCUMENT__PROCESS="DOCUMENT__PROCESS",e.DOCUMENT__RATE="DOCUMENT__RATE",e.DOCUMENT__SEARCH="DOCUMENT__SEARCH",e.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",e.DOCUMENT__UNRATE="DOCUMENT__UNRATE",e.FEEDBACK__SEND="FEEDBACK__SEND",e.GEN_AI__COMPLETED_QUERY="GEN_AI__COMPLETED_QUERY",e.GEN_AI__RATE="GEN_AI__RATE",e.GENAI_CASE_DEFLECTION__START="GENAI_CASE_DEFLECTION__START",e.GENAI_CASE_DEFLECTION__OPEN_TICKET="GENAI_CASE_DEFLECTION__OPEN_TICKET",e.KHUB__PROCESS="KHUB__PROCESS",e.KHUB__SEARCH="KHUB__SEARCH",e.LABELS__DOWNLOAD="LABELS__DOWNLOAD",e.LINK__SHARE="LINK__SHARE",e.PAGE__DISPLAY="PAGE__DISPLAY",e.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",e.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",e.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",e.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",e.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",e.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",e.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",e.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",e.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",e.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",e.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",e.TOPIC__DISPLAY="TOPIC__DISPLAY",e.TOPIC__RATE="TOPIC__RATE",e.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",e.TOPIC__UNRATE="TOPIC__UNRATE",e.USER__LOGIN="USER__LOGIN",e.USER__LOGOUT="USER__LOGOUT",e.HEARTBEAT="HEARTBEAT"})(Un||(Un={}));var jn;(function(e){e.THIRD_PARTY="THIRD_PARTY",e.OFF_THE_GRID="OFF_THE_GRID",e.CONTENT_PACKAGER="CONTENT_PACKAGER",e.PAGES="PAGES",e.DESIGNED_READER="DESIGNED_READER"})(jn||(jn={}));var Bn;(function(e){e.HOMEPAGE="HOMEPAGE",e.CUSTOM="CUSTOM",e.HEADER="HEADER",e.READER="READER",e.TOPIC_TEMPLATE="TOPIC_TEMPLATE",e.SEARCH="SEARCH",e.SEARCH_RESULT="SEARCH_RESULT"})(Bn||(Bn={}));var Hn;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(Hn||(Hn={}));var Vn;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(Vn||(Vn={}));var Kn;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(Kn||(Kn={}));var Gn;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(Gn||(Gn={}));var Wn;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR",e.CUSTOM="CUSTOM"})(Wn||(Wn={}));var qn;(function(e){e.ASC="ASC",e.DESC="DESC"})(qn||(qn={}));var $n;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})($n||($n={}));var zn;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(zn||(zn={}));var Fn;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK"})(Fn||(Fn={}));var Yn;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(Yn||(Yn={}));var Xn;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.PERSONAL_BOOK="PERSONAL_BOOK",e.SHARED_BOOK="SHARED_BOOK"})(Xn||(Xn={}));var Qn;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(Qn||(Qn={}));var Jn;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC"})(Jn||(Jn={}));var Zn;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Zn||(Zn={}));var D;(function(e){e.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",e.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",e.HTML_EXPORT_USER="HTML_EXPORT_USER",e.PDF_EXPORT_USER="PDF_EXPORT_USER",e.SAVED_SEARCH_USER="SAVED_SEARCH_USER",e.COLLECTION_USER="COLLECTION_USER",e.OFFLINE_USER="OFFLINE_USER",e.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",e.ANALYTICS_USER="ANALYTICS_USER",e.BETA_USER="BETA_USER",e.DEBUG_USER="DEBUG_USER",e.PRINT_USER="PRINT_USER",e.RATING_USER="RATING_USER",e.FEEDBACK_USER="FEEDBACK_USER",e.GENERATIVE_AI_USER="GENERATIVE_AI_USER",e.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",e.CONTENT_PUBLISHER="CONTENT_PUBLISHER",e.KHUB_ADMIN="KHUB_ADMIN",e.USERS_ADMIN="USERS_ADMIN",e.PORTAL_ADMIN="PORTAL_ADMIN",e.ADMIN="ADMIN"})(D||(D={}));var ei;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(ei||(ei={}));var ti;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(ti||(ti={}));var ri;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(ri||(ri={}));var ba={[D.PERSONAL_BOOK_SHARE_USER]:[D.PERSONAL_BOOK_USER],[D.HTML_EXPORT_USER]:[D.PERSONAL_BOOK_USER],[D.PDF_EXPORT_USER]:[D.PERSONAL_BOOK_USER],[D.KHUB_ADMIN]:[D.CONTENT_PUBLISHER],[D.ADMIN]:[D.KHUB_ADMIN,D.USERS_ADMIN,D.PORTAL_ADMIN],[D.GENERATIVE_AI_EXPORT_USER]:[D.GENERATIVE_AI_USER]};function ni(e,t){return e===t||(ba[e]??[]).some(r=>ni(r,t))}function ii(e,t){return e==null?!1:(Array.isArray(e)?e:Array.isArray(e.roles)?e.roles:Array.isArray(e.profile?.roles)?e.profile.roles:[]).some(n=>ni(n,t))}var vt=class extends se{async listMySearches(){let{session:t}=x.getState();return ii(t,D.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),5*60*1e3):[]}};var yt=class extends se{async listMyBookmarks(){let t=x.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),5*60*1e3):[]}};var xa="ft-user-assets",gt=bt.FtReduxStore.get({name:xa,initialState:{savedSearches:void 0,bookmarks:void 0}}),sr=class{constructor(){this.currentSession=x.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new yt,this.savedSearchesService=new vt,x.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:r}=x.getState();(0,bt.deepEqual)((t=this.currentSession)===null||t===void 0?void 0:t.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),gt.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),gt.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();gt.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){let r=!((t=this.currentSession)===null||t===void 0)&&t.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;gt.actions.bookmarks(r)}}},mu=new sr;var or=class{addCommand(t,r=!1){x.commands.add(t,r)}consumeCommand(t){return x.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new or;var ai=E(L()),ur=class{highlightHtml(t,r,n){(0,ai.highlightHtml)(t,r,n)}};window.FluidTopicsHighlightHtmlService=new ur;var si=E(L());var lr=class{isDate(t){var r,n,i,a;return(a=(i=((n=(r=x.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(o=>o.key===t))===null||i===void 0?void 0:i.date)!==null&&a!==void 0?a:!1}format(t,r){var n,i,a;return si.DateFormatter.format(t,(n=r?.locale)!==null&&n!==void 0?n:x.getState().uiLocale,(i=r?.longFormat)!==null&&i!==void 0?i:!1,(a=r?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new lr;var oi=E(L());var qe=class{static get(t,r){var n,i,a,s;let o=x.getState(),{lang:c,region:l}=(i=(n=o.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&i!==void 0?i:{lang:"en",region:"US"};return new oi.SearchPlaceConverter(o.baseUrl,(s=(a=window.FluidTopicsClientConfiguration)===null||a===void 0?void 0:a.predefinedSorts)!==null&&s!==void 0?s:{},t??20,o.searchInAllLanguagesAllowed,r??`${c}-${l}`)}};var cr=class{urlToSearchRequest(t){return qe.get().parse(t)}searchRequestToUrl(t){return qe.get().serialize(t)}};window.FluidTopicsUrlService=new cr;var pe=E(L());var Ae=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{currentItem:t}})}};Ae.eventName="change";var dr=class{itemName(t){return`fluid-topics-history-item-${t}`}get(t){let r=sessionStorage.getItem(this.itemName(t));return r?JSON.parse(r):void 0}set(t,r){sessionStorage.setItem(this.itemName(t),JSON.stringify(r))}},ui=new dr;var Et=class e extends pe.WithEventBus{static build(){return new e(window.history,ui,()=>window.location,!1)}constructor(t,r,n,i){var a,s;super(),this.history=t,this.historyStorage=r,this.windowLocation=n,this.states=[],this.realPushState=t.pushState,this.realReplaceState=t.replaceState,this.initialIndex=(s=(a=t.state)===null||a===void 0?void 0:a.index)!==null&&s!==void 0?s:t.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(i)}setCurrentState(t,r=!1){let n=r&&this.currentIndex===t.index-1;this.currentState={...this.buildCurrentState(),...t},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,n&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,pe.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new Ae(this.currentItem())),0)}installProxies(){let t=r=>(n,i,[a,s,o])=>{let c=r(),l={...c===this.currentIndex?this.currentState:void 0,...a,index:c,href:typeof o=="string"?o:(o??this.windowLocation()).href};n.apply(i,[l,s,o]),this.setCurrentState(l,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:t(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:t(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",t=>this.setCurrentState(t.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(t){for(let r=this.history.length-1;r>=0;r--)t?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(t,r=!1){var n,i,a;let s={...this.buildCurrentState(),...t,index:this.currentIndex,title:(n=t?.title)!==null&&n!==void 0?n:this.currentState.title},o=r?(i=t?.majorState)!==null&&i!==void 0?i:this.currentState.majorState:(a=this.currentState.majorState)!==null&&a!==void 0?a:t?.majorState;o!=null&&(s.majorState=o),this.setCurrentState(s)}addHistoryChangeListener(t){this.addEventListener(Ae.eventName,t)}removeHistoryChangeListener(t){this.removeEventListener(Ae.eventName,t)}currentItem(){return(0,pe.deepCopy)(this.currentState)}back(){let t=this.previousMajorPosition();t>=0?this.history.go(t-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,pe.deepCopy)(this.states[this.previousMajorPosition()])}previousMajorPosition(){let t=this.currentIndex;for(;t>0&&!this.isMajorState(t);)t--;return this.previousExistingPosition(t)}forward(){let t=this.nextMajorPosition();t<this.states.length?this.history.go(t-this.currentIndex):this.history.forward()}forwardItem(){return(0,pe.deepCopy)(this.states[this.nextMajorPosition()])}nextMajorPosition(){let t=this.currentIndex;do t++;while(t<this.states.length&&!this.isMajorState(t));do t++;while(t<this.states.length&&!this.isMajorState(t));return this.previousExistingPosition(t)}previousExistingPosition(t){let r=t;do r--;while(r>0&&!this.hasState(r));return r}buildCurrentState(){var t,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(t=this.history.state)===null||t===void 0?void 0:t.title)!==null&&r!==void 0?r:document.title}}hasState(t){return this.states[t]!=null}isMajorState(t){var r,n;return this.hasState(t)&&((n=(r=this.states[t])===null||r===void 0?void 0:r.majorState)!==null&&n!==void 0?n:!0)}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Et.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),addHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(e),removeHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(e)});(0,li.customElement)("ft-app-context")(N);var hi=E(W());var Sa=E(L());function ci(e){return e.match(/^[\w-]+\.[\w-]+$/)}var Aa=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(s=e[o])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},di=Symbol("i18nAttributes"),fi=Symbol("i18nListAttributes"),mi=Symbol("i18nProperties"),xt=Symbol("i18nContexts"),$e=Symbol("i18nUnsubs");function vi(e){var t,r;class n extends e{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[t]=new Map,this[r]=new Map}getI18nService(a){return a??this.useCustomMessageContexts?tt:Te}i18n(a){var s;this.hasI18nContext(a.context)||this.addI18nContext(a.context,void 0,a.custom);let o=(s=a.args)!==null&&s!==void 0?s:a.argsProvider?a.argsProvider(this):[];return this.getI18nService(a.custom).resolveMessage(a.context,a.key,...o)}customI18n(a,s){if(ci(a)){let[o,c]=a.split(".");return this.i18n({custom:!0,context:o,key:c,...s})||a}return a}firstUpdated(a){super.firstUpdated(a),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(a){super.update(a),this.updateI18nAttributes((s,o,c)=>a.has(o)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(a){this.updateI18nAttributes((s,o,c)=>{var l;return((l=c?.context)===null||l===void 0?void 0:l.toLowerCase())===a}),this.updateI18nProperties(s=>s.context.toLowerCase()===a),this.requestUpdate()}updateI18nAttributes(a){var s,o;let c=this,l=(f,h,p)=>p?.context&&p.key&&a(f,h,p)?{...p,message:this.i18n({context:p.context,key:p.key,...f})}:p;(s=this[di])===null||s===void 0||s.forEach((f,h)=>c[h]=l(f,h,c[h])),(o=this[fi])===null||o===void 0||o.forEach((f,h)=>{var p;return c[h]=(p=c[h])===null||p===void 0?void 0:p.map(g=>l(f,h,g))})}updateI18nProperties(a){var s;(s=this[mi])===null||s===void 0||s.forEach((o,c)=>{a(o,c)&&(this[c]=this.i18n(o))})}addI18nMessages(a,s,o){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(a,s,o)}addI18nContext(a,s,o){let c=(typeof a=="string"?a:a.name).toLowerCase();o=typeof a=="string"?o:a.custom,this[xt].set(c,{isCustomContext:o}),this[$e].has(c)||this[$e].set(c,this.getI18nService(o).subscribe(c,()=>this.onI18nUpdate(c))),this.getI18nService(o).prepareContext(c,s)}hasI18nContext(a){return this[xt].has(a.toLowerCase())}connectedCallback(){super.connectedCallback(),this[xt].forEach((a,s)=>this.addI18nContext(s,void 0,a.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[$e].forEach(a=>a()),this[$e].clear()}}return t=xt,r=$e,Aa([(0,hi.property)({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}var pi=class extends vi(At.FtLitElement){},St=class extends vi(At.FtLitElementRedux){};var ze=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(s=e[o])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},Q=class extends St{constructor(){super(),this.editorMode=!1,this.addStore(x)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":Ot.nothing:Ot.html`
87
87
  <span class="ft-i18n">
88
88
  ${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
89
89
  </span>
@@ -45,7 +45,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
45
45
  input::-webkit-search-results-decoration {
46
46
  display: none;
47
47
  }
48
- `;var Di={};var ln={};B(ln,{ParametrizedLabelResolver:()=>rr});var rr=class t{constructor(e,o){this.defaultLabels=e,this.labels=o}resolve(e,...o){var n,a;e=this.resolvePluralKey(e,o);let i=(a=(n=this.labels[e])!==null&&n!==void 0?n:this.defaultLabels[e])!==null&&a!==void 0?a:"";return t.replaceParameters(i,...o)}static replaceParameters(e,...o){return o.forEach((n,a)=>e=e.replace(new RegExp(`\\{${a}([^}]*)\\}`,"g"),(i,s)=>t.formatValue(n,s))),e}resolvePluralKey(e,o){for(let n of o)if(typeof n=="number"){let a=`${String(e)}[\\=${n}]`;if(a in this.labels||a in this.defaultLabels)return a}return e}static formatValue(e,o){return e instanceof Date?t.formatDate(e,o):e??""}static formatDate(e,o){let n=a=>o?.includes("date")?e.toLocaleDateString(a):o?.includes("time")?e.toLocaleTimeString(a):e.toLocaleString(a);try{return n(document.documentElement.lang)}catch{return n()}}};var In={};B(In,{FtCommandQueue:()=>or,FtLitElementRedux:()=>be,FtReduxStore:()=>at,ReduxWatcher:()=>Br,clearAllStores:()=>Hd,isFtReduxStore:()=>tt,redux:()=>oe,reduxEventListener:()=>nd,reduxReactive:()=>od,watch:()=>$d});var od=()=>(t,e)=>{var o;let n=t.constructor;n.reduxReactiveProperties=new Set(n.reduxReactiveProperties),(o=n.reduxReactiveProperties)===null||o===void 0||o.add(e)},oe=t=>{let e=t??{};return(o,n)=>{var a;let i={hasChanged:Ie,attribute:!1,...e};I(i)(o,n);let s=o.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(n,{selector:(a=e.selector)!==null&&a!==void 0?a:l=>l[n],store:e.store})}},nd=t=>(e,o)=>{let n=e.constructor;n.reduxEventListeners=new Map(n.reduxEventListeners),n.reduxEventListeners.set(o,t)};var or=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 tt(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Mi,Ui,Bi,nr=Symbol("internalReduxEventsUnsubscribers"),Me=Symbol("internalStoresUnsubscribers"),rt=Symbol("internalStores"),be=class extends K{constructor(){super(...arguments),this[Mi]=new Map,this[Ui]=new Map,this[Bi]=new Map}get reduxConstructor(){return this.constructor}update(e){super.update(e),[...this.reduxConstructor.reduxReactiveProperties].some(o=>e.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[rt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[rt].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[rt].get(e)}addStore(e,o){var n;o=(n=o??(tt(e)?e.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(o),this[rt].set(o,e),this.subscribeToStore(o,e),this.updateFromStores()}removeStore(e){let o=typeof e=="string"?e:e.name;this.unsubscribeFromStore(o),this[rt].delete(o)}setupStores(){this.unsubscribeFromStores(),this[rt].forEach((e,o)=>this.subscribeToStore(o,e)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((e,o)=>{let n=this.constructor.getPropertyOptions(o);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:o)){let a=this.getStore(e.store);a&&(e.store?this[Me].has(e.store):this[Me].size>0)&&(this[o]=e.selector(a.getState(),this))}})}subscribeToStore(e,o){var n;this[Me].set(e,o.subscribe(()=>this.updateFromStores())),this[nr].set(e,[]),tt(o)&&o.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((a,i)=>{if(typeof this[i]=="function"&&(!a.store||o.name===a.store)){let s=l=>this[i](l);o.addEventListener(a.eventName,s),this[nr].get(e).push(()=>o.removeEventListener(a.eventName,s))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[Me].forEach((e,o)=>this.unsubscribeFromStore(o))}unsubscribeFromStore(e){var o;this[Me].has(e)&&this[Me].get(e)(),this[Me].delete(e),(o=this[nr].get(e))===null||o===void 0||o.forEach(n=>n()),this[nr].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Mi=Me,Ui=rt,Bi=nr;be.reduxProperties=new Map;be.reduxReactiveProperties=new Set;be.reduxEventListeners=new Map;function ie(t){for(var e=arguments.length,o=Array(e>1?e-1:0),n=1;n<e;n++)o[n-1]=arguments[n];if(0)var a,i;throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Ne(t){return!!t&&!!t[j]}function le(t){var e;return!!t&&(function(o){if(!o||typeof o!="object")return!1;var n=Object.getPrototypeOf(o);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===pd}(t)||Array.isArray(t)||!!t[Gi]||!!(!((e=t.constructor)===null||e===void 0)&&e[Gi])||bn(t)||xn(t))}function ot(t,e,o){o===void 0&&(o=!1),Ot(t)===0?(o?Object.keys:St)(t).forEach(function(n){o&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,a){return e(a,n,t)})}function Ot(t){var e=t[j];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:bn(t)?2:xn(t)?3:0}function vt(t,e){return Ot(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function ad(t,e){return Ot(t)===2?t.get(e):t[e]}function Ki(t,e,o){var n=Ot(t);n===2?t.set(e,o):n===3?t.add(o):t[e]=o}function Vi(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function bn(t){return dd&&t instanceof Map}function xn(t){return ud&&t instanceof Set}function Ue(t){return t.o||t.t}function vn(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Yi(t);delete e[j];for(var o=St(e),n=0;n<o.length;n++){var a=o[n],i=e[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(e[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:t[a]})}return Object.create(Object.getPrototypeOf(t),e)}function Sn(t,e){return e===void 0&&(e=!1),On(t)||Ne(t)||!le(t)||(Ot(t)>1&&(t.set=t.add=t.clear=t.delete=id),Object.freeze(t),e&&ot(t,function(o,n){return Sn(n,!0)},!0)),t}function id(){ie(2)}function On(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function xe(t){var e=gn[t];return e||ie(18,t),e}function sd(t,e){gn[t]||(gn[t]=e)}function hn(){return ir}function dn(t,e){e&&(xe("Patches"),t.u=[],t.s=[],t.v=e)}function Ir(t){mn(t),t.p.forEach(cd),t.p=null}function mn(t){t===ir&&(ir=t.l)}function Wi(t){return ir={p:[],l:ir,h:t,m:!0,_:0}}function cd(t){var e=t[j];e.i===0||e.i===1?e.j():e.g=!0}function un(t,e){e._=e.p.length;var o=e.p[0],n=t!==void 0&&t!==o;return e.h.O||xe("ES5").S(e,t,n),n?(o[j].P&&(Ir(e),ie(4)),le(t)&&(t=kr(e,t),e.l||Dr(e,t)),e.u&&xe("Patches").M(o[j].t,t,e.u,e.s)):t=kr(e,o,[]),Ir(e),e.u&&e.v(e.u,e.s),t!==qi?t:void 0}function kr(t,e,o){if(On(e))return e;var n=e[j];if(!n)return ot(e,function(l,d){return Fi(t,n,e,l,d,o)},!0),e;if(n.A!==t)return e;if(!n.P)return Dr(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=vn(n.k):n.o,i=a,s=!1;n.i===3&&(i=new Set(a),a.clear(),s=!0),ot(i,function(l,d){return Fi(t,n,a,l,d,o,s)}),Dr(t,a,!1),o&&t.u&&xe("Patches").N(n,o,t.u,t.s)}return n.o}function Fi(t,e,o,n,a,i,s){if(Ne(a)){var l=kr(t,a,i&&e&&e.i!==3&&!vt(e.R,n)?i.concat(n):void 0);if(Ki(o,n,l),!Ne(l))return;t.m=!1}else s&&o.add(a);if(le(a)&&!On(a)){if(!t.h.D&&t._<1)return;kr(t,a),e&&e.A.l||Dr(t,a)}}function Dr(t,e,o){o===void 0&&(o=!1),!t.l&&t.h.D&&t.m&&Sn(e,o)}function pn(t,e){var o=t[j];return(o?Ue(o):t)[e]}function Hi(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 Be(t){t.P||(t.P=!0,t.l&&Be(t.l))}function fn(t){t.o||(t.o=vn(t.t))}function yn(t,e,o){var n=bn(e)?xe("MapSet").F(e,o):xn(e)?xe("MapSet").T(e,o):t.O?function(a,i){var s=Array.isArray(a),l={i:s?1:0,A:i?i.A:hn(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},d=l,p=sr;s&&(d=[l],p=ar);var h=Proxy.revocable(d,p),f=h.revoke,y=h.proxy;return l.k=y,l.j=f,y}(e,o):xe("ES5").J(e,o);return(o?o.A:hn()).p.push(n),n}function ld(t){return Ne(t)||ie(22,t),function e(o){if(!le(o))return o;var n,a=o[j],i=Ot(o);if(a){if(!a.P&&(a.i<4||!xe("ES5").K(a)))return a.t;a.I=!0,n=$i(o,i),a.I=!1}else n=$i(o,i);return ot(n,function(s,l){a&&ad(a.t,s)===l||Ki(n,s,e(l))}),i===3?new Set(n):n}(t)}function $i(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return vn(t)}function Zi(){function t(s,l){var d=i[s];return d?d.enumerable=l:i[s]=d={configurable:!0,enumerable:l,get:function(){var p=this[j];return sr.get(p,s)},set:function(p){var h=this[j];sr.set(h,s,p)}},d}function e(s){for(var l=s.length-1;l>=0;l--){var d=s[l][j];if(!d.P)switch(d.i){case 5:n(d)&&Be(d);break;case 4:o(d)&&Be(d)}}}function o(s){for(var l=s.t,d=s.k,p=St(d),h=p.length-1;h>=0;h--){var f=p[h];if(f!==j){var y=l[f];if(y===void 0&&!vt(l,f))return!0;var g=d[f],b=g&&g[j];if(b?b.t!==y:!Vi(g,y))return!0}}var S=!!l[j];return p.length!==St(l).length+(S?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 p=0;p<l.length;p++)if(!l.hasOwnProperty(p))return!0;return!1}function a(s){s.g&&ie(3,JSON.stringify(Ue(s)))}var i={};sd("ES5",{J:function(s,l){var d=Array.isArray(s),p=function(f,y){if(f){for(var g=Array(y.length),b=0;b<y.length;b++)Object.defineProperty(g,""+b,t(b,!0));return g}var S=Yi(y);delete S[j];for(var w=St(S),C=0;C<w.length;C++){var R=w[C];S[R]=t(R,f||!!S[R].enumerable)}return Object.create(Object.getPrototypeOf(y),S)}(d,s),h={i:d?5:4,A:l?l.A:hn(),P:!1,I:!1,R:{},l,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,j,{value:h,writable:!0}),p},S:function(s,l,d){d?Ne(l)&&l[j].A===s&&e(s.p):(s.u&&function p(h){if(h&&typeof h=="object"){var f=h[j];if(f){var y=f.t,g=f.k,b=f.R,S=f.i;if(S===4)ot(g,function(x){x!==j&&(y[x]!==void 0||vt(y,x)?b[x]||p(g[x]):(b[x]=!0,Be(f)))}),ot(y,function(x){g[x]!==void 0||vt(g,x)||(b[x]=!1,Be(f))});else if(S===5){if(n(f)&&(Be(f),b.length=!0),g.length<y.length)for(var w=g.length;w<y.length;w++)b[w]=!1;else for(var C=y.length;C<g.length;C++)b[C]=!0;for(var R=Math.min(g.length,y.length),O=0;O<R;O++)g.hasOwnProperty(O)||(b[O]=!0),b[O]===void 0&&p(g[O])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?o(s):n(s)}})}var ji,ir,En=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",dd=typeof Map<"u",ud=typeof Set<"u",zi=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",qi=En?Symbol.for("immer-nothing"):((ji={})["immer-nothing"]=!0,ji),Gi=En?Symbol.for("immer-draftable"):"__$immer_draftable",j=En?Symbol.for("immer-state"):"__$immer_state";var pd=""+Object.prototype.constructor,St=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Yi=Object.getOwnPropertyDescriptors||function(t){var e={};return St(t).forEach(function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)}),e},gn={},sr={get:function(t,e){if(e===j)return t;var o=Ue(t);if(!vt(o,e))return function(a,i,s){var l,d=Hi(i,s);return d?"value"in d?d.value:(l=d.get)===null||l===void 0?void 0:l.call(a.k):void 0}(t,o,e);var n=o[e];return t.I||!le(n)?n:n===pn(t.t,e)?(fn(t),t.o[e]=yn(t.A.h,n,t)):n},has:function(t,e){return e in Ue(t)},ownKeys:function(t){return Reflect.ownKeys(Ue(t))},set:function(t,e,o){var n=Hi(Ue(t),e);if(n?.set)return n.set.call(t.k,o),!0;if(!t.P){var a=pn(Ue(t),e),i=a?.[j];if(i&&i.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(Vi(o,a)&&(o!==void 0||vt(t.t,e)))return!0;fn(t),Be(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 pn(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,fn(t),Be(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=Ue(t),n=Reflect.getOwnPropertyDescriptor(o,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:o[e]}},defineProperty:function(){ie(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){ie(12)}},ar={};ot(sr,function(t,e){ar[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),ar.deleteProperty=function(t,e){return ar.set.call(this,t,e,void 0)},ar.set=function(t,e,o){return sr.set.call(this,t[0],e,o,t[0])};var fd=function(){function t(o){var n=this;this.O=zi,this.D=!0,this.produce=function(a,i,s){if(typeof a=="function"&&typeof i!="function"){var l=i;i=a;var d=n;return function(S){var w=this;S===void 0&&(S=l);for(var C=arguments.length,R=Array(C>1?C-1:0),O=1;O<C;O++)R[O-1]=arguments[O];return d.produce(S,function(x){var E;return(E=i).call.apply(E,[w,x].concat(R))})}}var p;if(typeof i!="function"&&ie(6),s!==void 0&&typeof s!="function"&&ie(7),le(a)){var h=Wi(n),f=yn(n,a,void 0),y=!0;try{p=i(f),y=!1}finally{y?Ir(h):mn(h)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(S){return dn(h,s),un(S,h)},function(S){throw Ir(h),S}):(dn(h,s),un(p,h))}if(!a||typeof a!="object"){if((p=i(a))===void 0&&(p=a),p===qi&&(p=void 0),n.D&&Sn(p,!0),s){var g=[],b=[];xe("Patches").M(a,p,g,b),s(g,b)}return p}ie(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(p){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(p,function(g){return a.apply(void 0,[g].concat(f))})};var s,l,d=n.produce(a,i,function(p,h){s=p,l=h});return typeof Promise<"u"&&d instanceof Promise?d.then(function(p){return[p,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){le(o)||ie(8),Ne(o)&&(o=ld(o));var n=Wi(this),a=yn(this,o,void 0);return a[j].C=!0,mn(n),a},e.finishDraft=function(o,n){var a=o&&o[j],i=a.A;return dn(i,n),un(void 0,i)},e.setAutoFreeze=function(o){this.D=o},e.setUseProxies=function(o){o&&!zi&&ie(20),this.O=o},e.applyPatches=function(o,n){var a;for(a=n.length-1;a>=0;a--){var i=n[a];if(i.path.length===0&&i.op==="replace"){o=i.value;break}}a>-1&&(n=n.slice(a+1));var s=xe("Patches").$;return Ne(o)?s(o,n):this.produce(o,function(l){return s(l,n)})},t}(),ne=new fd,hd=ne.produce,Ly=ne.produceWithPatches.bind(ne),Py=ne.setAutoFreeze.bind(ne),Iy=ne.setUseProxies.bind(ne),ky=ne.applyPatches.bind(ne),Dy=ne.createDraft.bind(ne),My=ne.finishDraft.bind(ne),Mr=hd;function nt(t){"@babel/helpers - typeof";return nt=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},nt(t)}function Xi(t,e){if(nt(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var n=o.call(t,e||"default");if(nt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Ji(t){var e=Xi(t,"string");return nt(e)=="symbol"?e:e+""}function Qi(t,e,o){return(e=Ji(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function es(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),o.push.apply(o,n)}return o}function Cn(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?es(Object(o),!0).forEach(function(n){Qi(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):es(Object(o)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))})}return t}function X(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 ts=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),wn=function(){return Math.random().toString(36).substring(7).split("").join(".")},Ur={INIT:"@@redux/INIT"+wn(),REPLACE:"@@redux/REPLACE"+wn(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+wn()}};function md(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 An(t,e,o){var n;if(typeof e=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(X(0));if(typeof e=="function"&&typeof o>"u"&&(o=e,e=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(X(1));return o(An)(t,e)}if(typeof t!="function")throw new Error(X(2));var a=t,i=e,s=[],l=s,d=!1;function p(){l===s&&(l=s.slice())}function h(){if(d)throw new Error(X(3));return i}function f(S){if(typeof S!="function")throw new Error(X(4));if(d)throw new Error(X(5));var w=!0;return p(),l.push(S),function(){if(w){if(d)throw new Error(X(6));w=!1,p();var R=l.indexOf(S);l.splice(R,1),s=null}}}function y(S){if(!md(S))throw new Error(X(7));if(typeof S.type>"u")throw new Error(X(8));if(d)throw new Error(X(9));try{d=!0,i=a(i,S)}finally{d=!1}for(var w=s=l,C=0;C<w.length;C++){var R=w[C];R()}return S}function g(S){if(typeof S!="function")throw new Error(X(10));a=S,y({type:Ur.REPLACE})}function b(){var S,w=f;return S={subscribe:function(R){if(typeof R!="object"||R===null)throw new Error(X(11));function O(){R.next&&R.next(h())}O();var x=w(O);return{unsubscribe:x}}},S[ts]=function(){return this},S}return y({type:Ur.INIT}),n={dispatch:y,subscribe:f,getState:h,replaceReducer:g},n[ts]=b,n}function yd(t){Object.keys(t).forEach(function(e){var o=t[e],n=o(void 0,{type:Ur.INIT});if(typeof n>"u")throw new Error(X(12));if(typeof o(void 0,{type:Ur.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(X(13))})}function rs(t){for(var e=Object.keys(t),o={},n=0;n<e.length;n++){var a=e[n];typeof t[a]=="function"&&(o[a]=t[a])}var i=Object.keys(o),s,l;try{yd(o)}catch(d){l=d}return function(p,h){if(p===void 0&&(p={}),l)throw l;if(0)var f;for(var y=!1,g={},b=0;b<i.length;b++){var S=i[b],w=o[S],C=p[S],R=w(C,h);if(typeof R>"u"){var O=h&&h.type;throw new Error(X(14))}g[S]=R,y=y||R!==C}return y=y||i.length!==Object.keys(p).length,y?g:p}}function Et(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function os(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(n){return function(){var a=n.apply(void 0,arguments),i=function(){throw new Error(X(15))},s={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},l=e.map(function(d){return d(s)});return i=Et.apply(void 0,l)(a.dispatch),Cn(Cn({},a),{},{dispatch:i})}}}function ns(t){var e=function(n){var a=n.dispatch,i=n.getState;return function(s){return function(l){return typeof l=="function"?l(a,i,t):s(l)}}};return e}var as=ns();as.withExtraArgument=ns;var Rn=as;var ds=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},t(e,o)};return function(e,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");t(e,o);function n(){this.constructor=e}e.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),gd=function(t,e){var o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(p){return function(h){return d([p,h])}}function d(p){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,a&&(i=p[0]&2?a.return:p[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,p[1])).done)return i;switch(a=0,i&&(p=[p[0]&2,i.value]),p[0]){case 0:case 1:i=p;break;case 4:return o.label++,{value:p[1],done:!1};case 5:o.label++,a=p[1],p=[0];continue;case 7:p=o.ops.pop(),o.trys.pop();continue;default:if(i=o.trys,!(i=i.length>0&&i[i.length-1])&&(p[0]===6||p[0]===2)){o=0;continue}if(p[0]===3&&(!i||p[1]>i[0]&&p[1]<i[3])){o.label=p[1];break}if(p[0]===6&&o.label<i[1]){o.label=i[1],i=p;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(p);break}i[2]&&o.ops.pop(),o.trys.pop();continue}p=e.call(t,o)}catch(h){p=[6,h],a=0}finally{n=i=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Ct=function(t,e){for(var o=0,n=e.length,a=t.length;o<n;o++,a++)t[a]=e[o];return t},bd=Object.defineProperty,xd=Object.defineProperties,vd=Object.getOwnPropertyDescriptors,is=Object.getOwnPropertySymbols,Sd=Object.prototype.hasOwnProperty,Od=Object.prototype.propertyIsEnumerable,ss=function(t,e,o){return e in t?bd(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},We=function(t,e){for(var o in e||(e={}))Sd.call(e,o)&&ss(t,o,e[o]);if(is)for(var n=0,a=is(e);n<a.length;n++){var o=a[n];Od.call(e,o)&&ss(t,o,e[o])}return t},Nn=function(t,e){return xd(t,vd(e))},Ed=function(t,e,o){return new Promise(function(n,a){var i=function(d){try{l(o.next(d))}catch(p){a(p)}},s=function(d){try{l(o.throw(d))}catch(p){a(p)}},l=function(d){return d.done?n(d.value):Promise.resolve(d.value).then(i,s)};l((o=o.apply(t,e)).next())})};var Cd=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Et:Et.apply(null,arguments)},eg=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function wd(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 Ad=function(t){ds(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=t.apply(this,o)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,Ct([void 0],o[0].concat(this)))):new(e.bind.apply(e,Ct([void 0],o.concat(this))))},e}(Array),Rd=function(t){ds(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=t.apply(this,o)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,Ct([void 0],o[0].concat(this)))):new(e.bind.apply(e,Ct([void 0],o.concat(this))))},e}(Array);function Ln(t){return le(t)?Mr(t,function(){}):t}function Nd(t){return typeof t=="boolean"}function _d(){return function(e){return Td(e)}}function Td(t){t===void 0&&(t={});var e=t.thunk,o=e===void 0?!0:e,n=t.immutableCheck,a=n===void 0?!0:n,i=t.serializableCheck,s=i===void 0?!0:i,l=new Ad;if(o&&(Nd(o)?l.push(Rn):l.push(Rn.withExtraArgument(o.extraArgument))),0){if(a)var d;if(s)var p}return l}var _n=!0;function us(t){var e=_d(),o=t||{},n=o.reducer,a=n===void 0?void 0:n,i=o.middleware,s=i===void 0?e():i,l=o.devTools,d=l===void 0?!0:l,p=o.preloadedState,h=p===void 0?void 0:p,f=o.enhancers,y=f===void 0?void 0:f,g;if(typeof a=="function")g=a;else if(wd(a))g=rs(a);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var b=s;if(typeof b=="function"&&(b=b(e),!_n&&!Array.isArray(b)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!_n&&b.some(function(x){return typeof x!="function"}))throw new Error("each middleware provided to configureStore must be a function");var S=os.apply(void 0,b),w=Et;d&&(w=Cd(We({trace:!_n},typeof d=="object"&&d)));var C=new Rd(S),R=C;Array.isArray(y)?R=Ct([S],y):typeof y=="function"&&(R=y(C));var O=w.apply(void 0,R);return An(g,h,O)}function Fe(t,e){function o(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(e){var i=e.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return We(We({type:t,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:t,payload:n[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(n){return n.type===t},o}function ps(t){var e={},o=[],n,a={addCase:function(i,s){var l=typeof i=="string"?i:i.type;if(l in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[l]=s,a},addMatcher:function(i,s){return o.push({matcher:i,reducer:s}),a},addDefaultCase:function(i){return n=i,a}};return t(a),[e,o,n]}function Ld(t){return typeof t=="function"}function Pd(t,e,o,n){o===void 0&&(o=[]);var a=typeof e=="function"?ps(e):[e,o,n],i=a[0],s=a[1],l=a[2],d;if(Ld(t))d=function(){return Ln(t())};else{var p=Ln(t);d=function(){return p}}function h(f,y){f===void 0&&(f=d());var g=Ct([i[y.type]],s.filter(function(b){var S=b.matcher;return S(y)}).map(function(b){var S=b.reducer;return S}));return g.filter(function(b){return!!b}).length===0&&(g=[l]),g.reduce(function(b,S){if(S)if(Ne(b)){var w=b,C=S(w,y);return C===void 0?b:C}else{if(le(b))return Mr(b,function(R){return S(R,y)});var C=S(b,y);if(C===void 0){if(b===null)return b;throw Error("A case reducer on a non-draftable value must not return undefined")}return C}return b},f)}return h.getInitialState=d,h}function Id(t,e){return t+"/"+e}function fs(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:Ln(t.initialState),n=t.reducers||{},a=Object.keys(n),i={},s={},l={};a.forEach(function(h){var f=n[h],y=Id(e,h),g,b;"reducer"in f?(g=f.reducer,b=f.prepare):g=f,i[h]=g,s[y]=g,l[h]=b?Fe(y,b):Fe(y)});function d(){var h=typeof t.extraReducers=="function"?ps(t.extraReducers):[t.extraReducers],f=h[0],y=f===void 0?{}:f,g=h[1],b=g===void 0?[]:g,S=h[2],w=S===void 0?void 0:S,C=We(We({},y),s);return Pd(o,function(R){for(var O in C)R.addCase(O,C[O]);for(var x=0,E=b;x<E.length;x++){var _=E[x];R.addMatcher(_.matcher,_.reducer)}w&&R.addDefaultCase(w)})}var p;return{name:e,reducer:function(h,f){return p||(p=d()),p(h,f)},actions:l,caseReducers:i,getInitialState:function(){return p||(p=d()),p.getInitialState()}}}var kd="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Dd=function(t){t===void 0&&(t=21);for(var e="",o=t;o--;)e+=kd[Math.random()*64|0];return e},Md=["name","message","stack","code"],Tn=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),cs=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),Ud=function(t){if(typeof t=="object"&&t!==null){for(var e={},o=0,n=Md;o<n.length;o++){var a=n[o];typeof t[a]=="string"&&(e[a]=t[a])}return e}return{message:String(t)}},ng=function(){function t(e,o,n){var a=Fe(e+"/fulfilled",function(h,f,y,g){return{payload:h,meta:Nn(We({},g||{}),{arg:y,requestId:f,requestStatus:"fulfilled"})}}),i=Fe(e+"/pending",function(h,f,y){return{payload:void 0,meta:Nn(We({},y||{}),{arg:f,requestId:h,requestStatus:"pending"})}}),s=Fe(e+"/rejected",function(h,f,y,g,b){return{payload:g,error:(n&&n.serializeError||Ud)(h||"Rejected"),meta:Nn(We({},b||{}),{arg:y,requestId:f,rejectedWithValue:!!g,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 p(h){return function(f,y,g){var b=n?.idGenerator?n.idGenerator(h):Dd(),S=new d,w,C=!1;function R(x){w=x,S.abort()}var O=function(){return Ed(this,null,function(){var x,E,_,P,M,k,T;return gd(this,function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),P=(x=n?.condition)==null?void 0:x.call(n,h,{getState:y,extra:g}),Wd(P)?[4,P]:[3,2];case 1:P=m.sent(),m.label=2;case 2:if(P===!1||S.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return C=!0,M=new Promise(function(v,N){return S.signal.addEventListener("abort",function(){return N({name:"AbortError",message:w||"Aborted"})})}),f(i(b,h,(E=n?.getPendingMeta)==null?void 0:E.call(n,{requestId:b,arg:h},{getState:y,extra:g}))),[4,Promise.race([M,Promise.resolve(o(h,{dispatch:f,getState:y,extra:g,requestId:b,signal:S.signal,abort:R,rejectWithValue:function(v,N){return new Tn(v,N)},fulfillWithValue:function(v,N){return new cs(v,N)}})).then(function(v){if(v instanceof Tn)throw v;return v instanceof cs?a(v.payload,b,h,v.meta):a(v,b,h)})])];case 3:return _=m.sent(),[3,5];case 4:return k=m.sent(),_=k instanceof Tn?s(null,b,h,k.payload,k.meta):s(k,b,h),[3,5];case 5:return T=n&&!n.dispatchConditionRejection&&s.match(_)&&_.meta.condition,T||f(_),[2,_]}})})}();return Object.assign(O,{abort:R,requestId:b,arg:h,unwrap:function(){return O.then(Bd)}})}}return Object.assign(p,{pending:i,rejected:s,fulfilled:a,typePrefix:e})}return t.withTypes=function(){return t},t}();function Bd(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Wd(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var hs="listener",ms="completed",ys="cancelled",ag="task-"+ys,ig="task-"+ms,sg=hs+"-"+ys,cg=hs+"-"+ms;var Pn="listenerMiddleware";var lg=Fe(Pn+"/add"),dg=Fe(Pn+"/removeAll"),ug=Fe(Pn+"/remove");var ls,pg=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(ls||(ls=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},Fd=function(t){return function(e){setTimeout(e,t)}},fg=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Fd(10);Zi();window.ftReduxStores||(window.ftReduxStores={});var at=class t extends Oe{static get(e){var o;let n=typeof e=="string"?e:e.name,a=typeof e=="string"?void 0:e,i=window.ftReduxStores[n];if(tt(i))return i;if(a==null)return;let s=fs({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),l=us({reducer:(d,p)=>p.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__")?{...d,...p.overwrites}:s.reducer(d,p)});return window.ftReduxStores[a.name]=new t(s,l,a.eventBus)}constructor(e,o,n){super(),this.reduxSlice=e,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new or;let a=i=>i!=null?JSON.parse(JSON.stringify(i)):i;this.actions=new Proxy(this.reduxSlice.actions,{get:(i,s,l)=>{let d=s,p=i[d];return p?(...h)=>{let f=p(...h.map(a));return this.reduxStore.dispatch(f),f}:h=>{this.setState({[d]:a(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 Hd(){var t;for(let e of Object.values((t=window.ftReduxStores)!==null&&t!==void 0?t:{}))tt(e)&&e.clear()}var Br=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);Ie(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 $d(t,e,o){return new Br(t,e,o).watch()}var Mn={};B(Mn,{scrollHelper:()=>jd});var kn,Wr=new Map,Dn=class{lock(e,o){if(o){let n=Wr.get(o);if(n==null||n===e)return Wr.set(o,e),o}}release(e,o){o&&Wr.get(o)===e&&Wr.delete(o)}findFirstScrollableParent(e){var o;let n,a;for(let i of To(e)){let s=i,l=this.elementCanScroll(s);if(l&&s.clientHeight&&s.clientHeight<s.scrollHeight){n=s;break}else l&&a==null&&(a=s)}return(o=n??a)!==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,a;let i=0;for(;o&&o.offsetParent!==e.offsetParent;)i+=(n=o.offsetTop)!==null&&n!==void 0?n:0,o=o.offsetParent;return i+((a=o?.offsetTop)!==null&&a!==void 0?a: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 a=this.getAbsoluteScrollOffset(n,e),i=a-n.clientHeight+e.clientHeight,s=a,l=zt(0,(s-n.scrollTop)/(s-i),1),d=this.computeTopOffsetRatio(o?.position,l)*(i-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=(kn=window.FluidTopicsScrollHelper)!==null&&kn!==void 0?kn:new Dn;var jd=window.FluidTopicsScrollHelper;var Bn={};B(Bn,{SearchPlaceConverter:()=>Rt,SearchPlaceQueryParams:()=>F,isSearchPlaceQueryParams:()=>Vs,serializeRequest:()=>Vd});var Gd=gc(bs(),1);var xs;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(xs||(xs={}));var vs;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(vs||(vs={}));var Ss;(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.MAP_ATTACHMENT="MAP_ATTACHMENT",t.RESOURCE="RESOURCE"})(Ss||(Ss={}));var Os;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Os||(Os={}));var Es;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(Es||(Es={}));var Cs;(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.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",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.GEN_AI__COMPLETED_QUERY="GEN_AI__COMPLETED_QUERY",t.GEN_AI__RATE="GEN_AI__RATE",t.GENAI_CASE_DEFLECTION__START="GENAI_CASE_DEFLECTION__START",t.GENAI_CASE_DEFLECTION__OPEN_TICKET="GENAI_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_CONTEXT_MENU="SEARCH_RESULT__OPEN_CONTEXT_MENU",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"})(Cs||(Cs={}));var ws;(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"})(ws||(ws={}));var As;(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"})(As||(As={}));var Rs;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Rs||(Rs={}));var Ns;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Ns||(Ns={}));var _s;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(_s||(_s={}));var Ts;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Ts||(Ts={}));var Ls;(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"})(Ls||(Ls={}));var Ps;(function(t){t.ASC="ASC",t.DESC="DESC"})(Ps||(Ps={}));var Is;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Is||(Is={}));var Un;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(Un||(Un={}));var Ws=t=>Object.keys(Un).includes(t);var ks;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"})(ks||(ks={}));var Ds;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Ds||(Ds={}));var Ms;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"})(Ms||(Ms={}));var At;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(At||(At={}));var Fs=t=>Object.keys(At).includes(t);var Us;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"})(Us||(Us={}));var Bs;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Bs||(Bs={}));var G;(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.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(G||(G={}));var Hs;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Hs||(Hs={}));var $s;(function(t){t.JSON="JSON",t.TEXT="TEXT"})($s||($s={}));var js;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(js||(js={}));var zd={[G.PERSONAL_BOOK_SHARE_USER]:[G.PERSONAL_BOOK_USER],[G.HTML_EXPORT_USER]:[G.PERSONAL_BOOK_USER],[G.PDF_EXPORT_USER]:[G.PERSONAL_BOOK_USER],[G.KHUB_ADMIN]:[G.CONTENT_PUBLISHER],[G.ADMIN]:[G.KHUB_ADMIN,G.USERS_ADMIN,G.PORTAL_ADMIN],[G.GENERATIVE_AI_EXPORT_USER]:[G.GENERATIVE_AI_USER]};function zs(t,e){return t===e||(zd[t]??[]).some(o=>zs(o,e))}function Gs(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=>zs(n,e))}function Kd(t){return`"${t}"`}function Ks(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function Vd(t,e){return new Rt(t).serialize(e)}var F;(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"})(F||(F={}));var Zd=new Set(Object.values(F));function Vs(t){return Zd.has(t)}var Rt=class{constructor(e,o={},n=20,a=!1,i="en-US"){this.baseUrl=e,this.predefinedSorts=o,this.defaultPerPage=n,this.allLanguagesAllowed=a,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,a=new URL(n?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${o}`);return a.search=this.toURLSearchParams(e),a.toString()}toURLSearchParams(e,o=!1){var n,a,i,s,l,d,p,h,f,y,g,b;let S=new URLSearchParams;e.contentLocale?(!o||e.contentLocale!==this.defaultContentLocale)&&S.append(F.LOCALE,e.contentLocale):S.append(F.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((n=e.query)===null||n===void 0?void 0:n.length)>0&&S.append(F.QUERY,e.query);let w=(i=(a=e.metadataFilters)===null||a===void 0?void 0:a.filter(x=>x.valueFilter))!==null&&i!==void 0?i:[];if(w.length>0){let x=w.map(E=>{var _,P;let M=((P=(_=E.valueFilter)===null||_===void 0?void 0:_.values)!==null&&P!==void 0?P:[]).map(k=>this.escapeFilters(k)).map(k=>Kd(Ks(k))).join("_");return`${E.key}~${M}`}).join("*");S.append(F.VALUE_FILTERS,x)}let C=(l=(s=e.metadataFilters)===null||s===void 0?void 0:s.filter(x=>x.dateFilter))!==null&&l!==void 0?l:[];if(C.length>0){let x=C.map(E=>{var _;return`${E.key}~${(_=E.dateFilter)===null||_===void 0?void 0:_.type.toLowerCase()}`}).join("*");S.append(F.DATE_FILTERS,x)}let R=(p=(d=e.metadataFilters)===null||d===void 0?void 0:d.filter(x=>x.rangeFilter))!==null&&p!==void 0?p:[];if(R.length>0){let x=R.map(E=>{var _,P;return`${E.key}~${(_=E.rangeFilter)===null||_===void 0?void 0:_.from}_${(P=E.rangeFilter)===null||P===void 0?void 0:P.to}`}).join("*");S.append(F.RANGE_FILTERS,x)}e.virtualField&&e.virtualField!=="EVERYWHERE"&&S.append(F.VIRTUAL_FIELD,e.virtualField.toLowerCase()),e.scope&&e.scope!=="DEFAULT"&&S.append(F.SCOPE,e.scope.toLowerCase()),((h=e.sort)===null||h===void 0?void 0:h.length)>0&&e.sort[0].key==="ft:lastEdition"&&S.append(F.SORT,"last_update"),!((f=e.paging)===null||f===void 0)&&f.perPage&&((g=(y=e.paging)===null||y===void 0?void 0:y.perPage)!==null&&g!==void 0?g:this.defaultPerPage)!=this.defaultPerPage&&S.append(F.PER_PAGE,String(e.paging.perPage));let O=(b=e.otherQueryParams)!==null&&b!==void 0?b:{};for(let x in O)S.append(x,O[x]);return encodeURI(S.toString()).replace(/#/g,"%23")}parse(e){var o;let n=e.split("?"),a=this.fromURLSearchParams(n.slice(1).join("?")),i=n[0].split("/search/")[1];return i==null?a:{...a,scope:(o=this.scopeMapping[i])!==null&&o!==void 0?o:a.scope}}fromURLSearchParams(e){var o,n,a,i,s,l,d,p;try{e=decodeURI(e).replace(/%23/g,"#")}catch(C){console.warn("Could not decode search request query params, fallback on raw value",C)}let h=new URLSearchParams(e),f=h.get(F.LOCALE)==="all"?void 0:h.get(F.LOCALE),y=((o=h.get(F.VIRTUAL_FIELD))!==null&&o!==void 0?o:"EVERYWHERE").toUpperCase(),g=((n=h.get(F.SORT))!==null&&n!==void 0?n:"DEFAULT").toUpperCase(),b=(a=h.get(F.SCOPE))!==null&&a!==void 0?a:"default",S=+((i=h.get(F.PER_PAGE))!==null&&i!==void 0?i:this.defaultPerPage),w={};for(let C of h.keys())Vs(C)||(w[C]=h.get(C));return{contentLocale:f??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:(s=h.get(F.QUERY))!==null&&s!==void 0?s:"",scope:(l=this.scopeMapping[b])!==null&&l!==void 0?l:"DEFAULT",virtualField:Ws(y)?y:"EVERYWHERE",sort:(p=(d=this.predefinedSorts[g])!==null&&d!==void 0?d:this.predefinedSorts.DEFAULT)!==null&&p!==void 0?p:[],metadataFilters:this.parseCompatFilters(h),facets:[],paging:{page:1,perPage:zt(1,isNaN(S)?this.defaultPerPage:S,1e3)},otherQueryParams:w}}parseCompatFilters(e){var o,n,a,i,s,l;let d=[];return e.has(F.FILTERS)&&(d=this.parseValueFilters((o=e.get(F.FILTERS))!==null&&o!==void 0?o:"")),(n=e.has(F.PERIOD))!==null&&n!==void 0&&n&&(d=[...d,...this.parseLegacyPeriodFilter(((a=e.get(F.PERIOD))!==null&&a!==void 0?a:"").toUpperCase())]),[...d,...this.parseValueFilters((i=e.get(F.VALUE_FILTERS))!==null&&i!==void 0?i:""),...this.parseDateFilters((s=e.get(F.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=e.get(F.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(Ks).map(n=>this.unescapeFilterValue(n)),negative:!1}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],dateFilter:{type:At[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,a]of this.filtersEscapeMapping)e=e.replaceAll(o,n);return e}superEscapeFilters(e){for(let[o,n,a]of this.filtersEscapeMapping)e=e.replaceAll(n,a);return e}unescapeFilterValue(e){for(let[o,n,a]of this.filtersEscapeMapping)e=e.replace(a,o);return e}parseLegacyPeriodFilter(e){if(Fs(e))return[{key:"ft:lastEdition",dateFilter:{type:At[e]}}];if(e.startsWith("CUSTOM_")){let[o,n,a]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:n,to:a}}]}return[]}};var Fn={};B(Fn,{toFtFormComponent:()=>qd});var Wn=Symbol("elementInternals");function qd(t){class e extends t{static get formAssociated(){return!0}get form(){return this[Wn].form}constructor(...n){super(n),this[Wn]=this.attachInternals()}setFormValue(n){this[Wn].setFormValue(n)}}return e}var Hn={};B(Hn,{DateFormatter:()=>Nt});var Nt=class{static format(e,o,n,a){return window.moment?window.moment(e).locale(o).format(this.getDateFormat(n,a)):e}static getDateFormat(e,o){return e?o?"lll":"ll":o?"L LT":"L"}};var jn={};B(jn,{ALL_KEYS_VALUE:()=>$n,SameWindowStorageEvent:()=>_t});var $n="__all__",_t=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==$n}};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 _t(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 _t(o[0],n))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(t,e,o){Reflect.apply(t,e,o),window.dispatchEvent(new _t($n))}});var Gn={};B(Gn,{FocusMainContentEvent:()=>zn});var zn=class extends Event{constructor(){super("ft-focus-main-content",{composed:!0,bubbles:!0})}};var Zs={};window.FluidTopicsA11yHints={isKeyboardNavigation:!1};function Yd(t){(t.key==="Enter"||t.key===" "||t.key==="Tab")&&(window.FluidTopicsA11yHints.isKeyboardNavigation=!0)}function Xd(t){window.FluidTopicsA11yHints.isKeyboardNavigation=t.detail==0}document.addEventListener("keydown",Yd);document.addEventListener("click",Xd);var Kn,Vn,Zn,qn,Jd=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((Zn=(Vn=(Kn=window.safari)===null||Kn===void 0?void 0:Kn.pushNotification)===null||Vn===void 0?void 0:Vn.toString())!==null&&Zn!==void 0?Zn:"")==="[object SafariRemoteNotification]",Qd="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(qn=window.ftGlobals)!==null&&qn!==void 0?qn:{lit:fo,litDecorators:ho,litRepeat:mo,litClassMap:yo,litStyleMap:go,litUnsafeHTML:bo,wcUtils:{...wo,...vo,...No,...Hn,..._o,...Po,...Mo,...Co,...Yo,...Gn,...Zs,...Mn,...Do,...rn,...Fn,...en,...Ii,...Lo,...an,...cn,...Di,...ln,...In,...jn,...Xo,...Qo,...Bn,isSafari:Jd,isTouchScreen:Qd,setVariable:wr}};var qs={colorError:r.external(Ar.colorError,"Design system"),fontFamily:r.external(Ar.contentFont,"Design system")},Ys=$`
48
+ `;var Di={};var ln={};B(ln,{ParametrizedLabelResolver:()=>rr});var rr=class t{constructor(e,o){this.defaultLabels=e,this.labels=o}resolve(e,...o){var n,a;e=this.resolvePluralKey(e,o);let i=(a=(n=this.labels[e])!==null&&n!==void 0?n:this.defaultLabels[e])!==null&&a!==void 0?a:"";return t.replaceParameters(i,...o)}static replaceParameters(e,...o){return o.forEach((n,a)=>e=e.replace(new RegExp(`\\{${a}([^}]*)\\}`,"g"),(i,s)=>t.formatValue(n,s))),e}resolvePluralKey(e,o){for(let n of o)if(typeof n=="number"){let a=`${String(e)}[\\=${n}]`;if(a in this.labels||a in this.defaultLabels)return a}return e}static formatValue(e,o){return e instanceof Date?t.formatDate(e,o):e??""}static formatDate(e,o){let n=a=>o?.includes("date")?e.toLocaleDateString(a):o?.includes("time")?e.toLocaleTimeString(a):e.toLocaleString(a);try{return n(document.documentElement.lang)}catch{return n()}}};var In={};B(In,{FtCommandQueue:()=>or,FtLitElementRedux:()=>be,FtReduxStore:()=>at,ReduxWatcher:()=>Br,clearAllStores:()=>Hd,isFtReduxStore:()=>tt,redux:()=>oe,reduxEventListener:()=>nd,reduxReactive:()=>od,watch:()=>$d});var od=()=>(t,e)=>{var o;let n=t.constructor;n.reduxReactiveProperties=new Set(n.reduxReactiveProperties),(o=n.reduxReactiveProperties)===null||o===void 0||o.add(e)},oe=t=>{let e=t??{};return(o,n)=>{var a;let i={hasChanged:Ie,attribute:!1,...e};I(i)(o,n);let s=o.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(n,{selector:(a=e.selector)!==null&&a!==void 0?a:l=>l[n],store:e.store})}},nd=t=>(e,o)=>{let n=e.constructor;n.reduxEventListeners=new Map(n.reduxEventListeners),n.reduxEventListeners.set(o,t)};var or=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 tt(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Mi,Ui,Bi,nr=Symbol("internalReduxEventsUnsubscribers"),Me=Symbol("internalStoresUnsubscribers"),rt=Symbol("internalStores"),be=class extends K{constructor(){super(...arguments),this[Mi]=new Map,this[Ui]=new Map,this[Bi]=new Map}get reduxConstructor(){return this.constructor}update(e){super.update(e),[...this.reduxConstructor.reduxReactiveProperties].some(o=>e.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[rt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[rt].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[rt].get(e)}addStore(e,o){var n;o=(n=o??(tt(e)?e.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(o),this[rt].set(o,e),this.subscribeToStore(o,e),this.updateFromStores()}removeStore(e){let o=typeof e=="string"?e:e.name;this.unsubscribeFromStore(o),this[rt].delete(o)}setupStores(){this.unsubscribeFromStores(),this[rt].forEach((e,o)=>this.subscribeToStore(o,e)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((e,o)=>{let n=this.constructor.getPropertyOptions(o);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:o)){let a=this.getStore(e.store);a&&(e.store?this[Me].has(e.store):this[Me].size>0)&&(this[o]=e.selector(a.getState(),this))}})}subscribeToStore(e,o){var n;this[Me].set(e,o.subscribe(()=>this.updateFromStores())),this[nr].set(e,[]),tt(o)&&o.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((a,i)=>{if(typeof this[i]=="function"&&(!a.store||o.name===a.store)){let s=l=>this[i](l);o.addEventListener(a.eventName,s),this[nr].get(e).push(()=>o.removeEventListener(a.eventName,s))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[Me].forEach((e,o)=>this.unsubscribeFromStore(o))}unsubscribeFromStore(e){var o;this[Me].has(e)&&this[Me].get(e)(),this[Me].delete(e),(o=this[nr].get(e))===null||o===void 0||o.forEach(n=>n()),this[nr].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Mi=Me,Ui=rt,Bi=nr;be.reduxProperties=new Map;be.reduxReactiveProperties=new Set;be.reduxEventListeners=new Map;function ie(t){for(var e=arguments.length,o=Array(e>1?e-1:0),n=1;n<e;n++)o[n-1]=arguments[n];if(0)var a,i;throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Ne(t){return!!t&&!!t[j]}function le(t){var e;return!!t&&(function(o){if(!o||typeof o!="object")return!1;var n=Object.getPrototypeOf(o);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===pd}(t)||Array.isArray(t)||!!t[Gi]||!!(!((e=t.constructor)===null||e===void 0)&&e[Gi])||bn(t)||xn(t))}function ot(t,e,o){o===void 0&&(o=!1),Ot(t)===0?(o?Object.keys:St)(t).forEach(function(n){o&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,a){return e(a,n,t)})}function Ot(t){var e=t[j];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:bn(t)?2:xn(t)?3:0}function vt(t,e){return Ot(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function ad(t,e){return Ot(t)===2?t.get(e):t[e]}function Ki(t,e,o){var n=Ot(t);n===2?t.set(e,o):n===3?t.add(o):t[e]=o}function Vi(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function bn(t){return dd&&t instanceof Map}function xn(t){return ud&&t instanceof Set}function Ue(t){return t.o||t.t}function vn(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Yi(t);delete e[j];for(var o=St(e),n=0;n<o.length;n++){var a=o[n],i=e[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(e[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:t[a]})}return Object.create(Object.getPrototypeOf(t),e)}function Sn(t,e){return e===void 0&&(e=!1),On(t)||Ne(t)||!le(t)||(Ot(t)>1&&(t.set=t.add=t.clear=t.delete=id),Object.freeze(t),e&&ot(t,function(o,n){return Sn(n,!0)},!0)),t}function id(){ie(2)}function On(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function xe(t){var e=gn[t];return e||ie(18,t),e}function sd(t,e){gn[t]||(gn[t]=e)}function hn(){return ir}function dn(t,e){e&&(xe("Patches"),t.u=[],t.s=[],t.v=e)}function Ir(t){mn(t),t.p.forEach(cd),t.p=null}function mn(t){t===ir&&(ir=t.l)}function Wi(t){return ir={p:[],l:ir,h:t,m:!0,_:0}}function cd(t){var e=t[j];e.i===0||e.i===1?e.j():e.g=!0}function un(t,e){e._=e.p.length;var o=e.p[0],n=t!==void 0&&t!==o;return e.h.O||xe("ES5").S(e,t,n),n?(o[j].P&&(Ir(e),ie(4)),le(t)&&(t=kr(e,t),e.l||Dr(e,t)),e.u&&xe("Patches").M(o[j].t,t,e.u,e.s)):t=kr(e,o,[]),Ir(e),e.u&&e.v(e.u,e.s),t!==qi?t:void 0}function kr(t,e,o){if(On(e))return e;var n=e[j];if(!n)return ot(e,function(l,d){return Fi(t,n,e,l,d,o)},!0),e;if(n.A!==t)return e;if(!n.P)return Dr(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=vn(n.k):n.o,i=a,s=!1;n.i===3&&(i=new Set(a),a.clear(),s=!0),ot(i,function(l,d){return Fi(t,n,a,l,d,o,s)}),Dr(t,a,!1),o&&t.u&&xe("Patches").N(n,o,t.u,t.s)}return n.o}function Fi(t,e,o,n,a,i,s){if(Ne(a)){var l=kr(t,a,i&&e&&e.i!==3&&!vt(e.R,n)?i.concat(n):void 0);if(Ki(o,n,l),!Ne(l))return;t.m=!1}else s&&o.add(a);if(le(a)&&!On(a)){if(!t.h.D&&t._<1)return;kr(t,a),e&&e.A.l||Dr(t,a)}}function Dr(t,e,o){o===void 0&&(o=!1),!t.l&&t.h.D&&t.m&&Sn(e,o)}function pn(t,e){var o=t[j];return(o?Ue(o):t)[e]}function Hi(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 Be(t){t.P||(t.P=!0,t.l&&Be(t.l))}function fn(t){t.o||(t.o=vn(t.t))}function yn(t,e,o){var n=bn(e)?xe("MapSet").F(e,o):xn(e)?xe("MapSet").T(e,o):t.O?function(a,i){var s=Array.isArray(a),l={i:s?1:0,A:i?i.A:hn(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},d=l,p=sr;s&&(d=[l],p=ar);var h=Proxy.revocable(d,p),f=h.revoke,y=h.proxy;return l.k=y,l.j=f,y}(e,o):xe("ES5").J(e,o);return(o?o.A:hn()).p.push(n),n}function ld(t){return Ne(t)||ie(22,t),function e(o){if(!le(o))return o;var n,a=o[j],i=Ot(o);if(a){if(!a.P&&(a.i<4||!xe("ES5").K(a)))return a.t;a.I=!0,n=$i(o,i),a.I=!1}else n=$i(o,i);return ot(n,function(s,l){a&&ad(a.t,s)===l||Ki(n,s,e(l))}),i===3?new Set(n):n}(t)}function $i(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return vn(t)}function Zi(){function t(s,l){var d=i[s];return d?d.enumerable=l:i[s]=d={configurable:!0,enumerable:l,get:function(){var p=this[j];return sr.get(p,s)},set:function(p){var h=this[j];sr.set(h,s,p)}},d}function e(s){for(var l=s.length-1;l>=0;l--){var d=s[l][j];if(!d.P)switch(d.i){case 5:n(d)&&Be(d);break;case 4:o(d)&&Be(d)}}}function o(s){for(var l=s.t,d=s.k,p=St(d),h=p.length-1;h>=0;h--){var f=p[h];if(f!==j){var y=l[f];if(y===void 0&&!vt(l,f))return!0;var g=d[f],b=g&&g[j];if(b?b.t!==y:!Vi(g,y))return!0}}var S=!!l[j];return p.length!==St(l).length+(S?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 p=0;p<l.length;p++)if(!l.hasOwnProperty(p))return!0;return!1}function a(s){s.g&&ie(3,JSON.stringify(Ue(s)))}var i={};sd("ES5",{J:function(s,l){var d=Array.isArray(s),p=function(f,y){if(f){for(var g=Array(y.length),b=0;b<y.length;b++)Object.defineProperty(g,""+b,t(b,!0));return g}var S=Yi(y);delete S[j];for(var w=St(S),C=0;C<w.length;C++){var R=w[C];S[R]=t(R,f||!!S[R].enumerable)}return Object.create(Object.getPrototypeOf(y),S)}(d,s),h={i:d?5:4,A:l?l.A:hn(),P:!1,I:!1,R:{},l,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,j,{value:h,writable:!0}),p},S:function(s,l,d){d?Ne(l)&&l[j].A===s&&e(s.p):(s.u&&function p(h){if(h&&typeof h=="object"){var f=h[j];if(f){var y=f.t,g=f.k,b=f.R,S=f.i;if(S===4)ot(g,function(x){x!==j&&(y[x]!==void 0||vt(y,x)?b[x]||p(g[x]):(b[x]=!0,Be(f)))}),ot(y,function(x){g[x]!==void 0||vt(g,x)||(b[x]=!1,Be(f))});else if(S===5){if(n(f)&&(Be(f),b.length=!0),g.length<y.length)for(var w=g.length;w<y.length;w++)b[w]=!1;else for(var C=y.length;C<g.length;C++)b[C]=!0;for(var R=Math.min(g.length,y.length),O=0;O<R;O++)g.hasOwnProperty(O)||(b[O]=!0),b[O]===void 0&&p(g[O])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?o(s):n(s)}})}var ji,ir,En=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",dd=typeof Map<"u",ud=typeof Set<"u",zi=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",qi=En?Symbol.for("immer-nothing"):((ji={})["immer-nothing"]=!0,ji),Gi=En?Symbol.for("immer-draftable"):"__$immer_draftable",j=En?Symbol.for("immer-state"):"__$immer_state";var pd=""+Object.prototype.constructor,St=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Yi=Object.getOwnPropertyDescriptors||function(t){var e={};return St(t).forEach(function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)}),e},gn={},sr={get:function(t,e){if(e===j)return t;var o=Ue(t);if(!vt(o,e))return function(a,i,s){var l,d=Hi(i,s);return d?"value"in d?d.value:(l=d.get)===null||l===void 0?void 0:l.call(a.k):void 0}(t,o,e);var n=o[e];return t.I||!le(n)?n:n===pn(t.t,e)?(fn(t),t.o[e]=yn(t.A.h,n,t)):n},has:function(t,e){return e in Ue(t)},ownKeys:function(t){return Reflect.ownKeys(Ue(t))},set:function(t,e,o){var n=Hi(Ue(t),e);if(n?.set)return n.set.call(t.k,o),!0;if(!t.P){var a=pn(Ue(t),e),i=a?.[j];if(i&&i.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(Vi(o,a)&&(o!==void 0||vt(t.t,e)))return!0;fn(t),Be(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 pn(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,fn(t),Be(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=Ue(t),n=Reflect.getOwnPropertyDescriptor(o,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:o[e]}},defineProperty:function(){ie(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){ie(12)}},ar={};ot(sr,function(t,e){ar[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),ar.deleteProperty=function(t,e){return ar.set.call(this,t,e,void 0)},ar.set=function(t,e,o){return sr.set.call(this,t[0],e,o,t[0])};var fd=function(){function t(o){var n=this;this.O=zi,this.D=!0,this.produce=function(a,i,s){if(typeof a=="function"&&typeof i!="function"){var l=i;i=a;var d=n;return function(S){var w=this;S===void 0&&(S=l);for(var C=arguments.length,R=Array(C>1?C-1:0),O=1;O<C;O++)R[O-1]=arguments[O];return d.produce(S,function(x){var E;return(E=i).call.apply(E,[w,x].concat(R))})}}var p;if(typeof i!="function"&&ie(6),s!==void 0&&typeof s!="function"&&ie(7),le(a)){var h=Wi(n),f=yn(n,a,void 0),y=!0;try{p=i(f),y=!1}finally{y?Ir(h):mn(h)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(S){return dn(h,s),un(S,h)},function(S){throw Ir(h),S}):(dn(h,s),un(p,h))}if(!a||typeof a!="object"){if((p=i(a))===void 0&&(p=a),p===qi&&(p=void 0),n.D&&Sn(p,!0),s){var g=[],b=[];xe("Patches").M(a,p,g,b),s(g,b)}return p}ie(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(p){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(p,function(g){return a.apply(void 0,[g].concat(f))})};var s,l,d=n.produce(a,i,function(p,h){s=p,l=h});return typeof Promise<"u"&&d instanceof Promise?d.then(function(p){return[p,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){le(o)||ie(8),Ne(o)&&(o=ld(o));var n=Wi(this),a=yn(this,o,void 0);return a[j].C=!0,mn(n),a},e.finishDraft=function(o,n){var a=o&&o[j],i=a.A;return dn(i,n),un(void 0,i)},e.setAutoFreeze=function(o){this.D=o},e.setUseProxies=function(o){o&&!zi&&ie(20),this.O=o},e.applyPatches=function(o,n){var a;for(a=n.length-1;a>=0;a--){var i=n[a];if(i.path.length===0&&i.op==="replace"){o=i.value;break}}a>-1&&(n=n.slice(a+1));var s=xe("Patches").$;return Ne(o)?s(o,n):this.produce(o,function(l){return s(l,n)})},t}(),ne=new fd,hd=ne.produce,Ly=ne.produceWithPatches.bind(ne),Py=ne.setAutoFreeze.bind(ne),Iy=ne.setUseProxies.bind(ne),ky=ne.applyPatches.bind(ne),Dy=ne.createDraft.bind(ne),My=ne.finishDraft.bind(ne),Mr=hd;function nt(t){"@babel/helpers - typeof";return nt=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},nt(t)}function Xi(t,e){if(nt(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var n=o.call(t,e||"default");if(nt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Ji(t){var e=Xi(t,"string");return nt(e)=="symbol"?e:e+""}function Qi(t,e,o){return(e=Ji(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function es(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),o.push.apply(o,n)}return o}function Cn(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?es(Object(o),!0).forEach(function(n){Qi(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):es(Object(o)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))})}return t}function X(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 ts=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),wn=function(){return Math.random().toString(36).substring(7).split("").join(".")},Ur={INIT:"@@redux/INIT"+wn(),REPLACE:"@@redux/REPLACE"+wn(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+wn()}};function md(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 An(t,e,o){var n;if(typeof e=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(X(0));if(typeof e=="function"&&typeof o>"u"&&(o=e,e=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(X(1));return o(An)(t,e)}if(typeof t!="function")throw new Error(X(2));var a=t,i=e,s=[],l=s,d=!1;function p(){l===s&&(l=s.slice())}function h(){if(d)throw new Error(X(3));return i}function f(S){if(typeof S!="function")throw new Error(X(4));if(d)throw new Error(X(5));var w=!0;return p(),l.push(S),function(){if(w){if(d)throw new Error(X(6));w=!1,p();var R=l.indexOf(S);l.splice(R,1),s=null}}}function y(S){if(!md(S))throw new Error(X(7));if(typeof S.type>"u")throw new Error(X(8));if(d)throw new Error(X(9));try{d=!0,i=a(i,S)}finally{d=!1}for(var w=s=l,C=0;C<w.length;C++){var R=w[C];R()}return S}function g(S){if(typeof S!="function")throw new Error(X(10));a=S,y({type:Ur.REPLACE})}function b(){var S,w=f;return S={subscribe:function(R){if(typeof R!="object"||R===null)throw new Error(X(11));function O(){R.next&&R.next(h())}O();var x=w(O);return{unsubscribe:x}}},S[ts]=function(){return this},S}return y({type:Ur.INIT}),n={dispatch:y,subscribe:f,getState:h,replaceReducer:g},n[ts]=b,n}function yd(t){Object.keys(t).forEach(function(e){var o=t[e],n=o(void 0,{type:Ur.INIT});if(typeof n>"u")throw new Error(X(12));if(typeof o(void 0,{type:Ur.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(X(13))})}function rs(t){for(var e=Object.keys(t),o={},n=0;n<e.length;n++){var a=e[n];typeof t[a]=="function"&&(o[a]=t[a])}var i=Object.keys(o),s,l;try{yd(o)}catch(d){l=d}return function(p,h){if(p===void 0&&(p={}),l)throw l;if(0)var f;for(var y=!1,g={},b=0;b<i.length;b++){var S=i[b],w=o[S],C=p[S],R=w(C,h);if(typeof R>"u"){var O=h&&h.type;throw new Error(X(14))}g[S]=R,y=y||R!==C}return y=y||i.length!==Object.keys(p).length,y?g:p}}function Et(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function os(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(n){return function(){var a=n.apply(void 0,arguments),i=function(){throw new Error(X(15))},s={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},l=e.map(function(d){return d(s)});return i=Et.apply(void 0,l)(a.dispatch),Cn(Cn({},a),{},{dispatch:i})}}}function ns(t){var e=function(n){var a=n.dispatch,i=n.getState;return function(s){return function(l){return typeof l=="function"?l(a,i,t):s(l)}}};return e}var as=ns();as.withExtraArgument=ns;var Rn=as;var ds=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},t(e,o)};return function(e,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");t(e,o);function n(){this.constructor=e}e.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),gd=function(t,e){var o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(p){return function(h){return d([p,h])}}function d(p){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,a&&(i=p[0]&2?a.return:p[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,p[1])).done)return i;switch(a=0,i&&(p=[p[0]&2,i.value]),p[0]){case 0:case 1:i=p;break;case 4:return o.label++,{value:p[1],done:!1};case 5:o.label++,a=p[1],p=[0];continue;case 7:p=o.ops.pop(),o.trys.pop();continue;default:if(i=o.trys,!(i=i.length>0&&i[i.length-1])&&(p[0]===6||p[0]===2)){o=0;continue}if(p[0]===3&&(!i||p[1]>i[0]&&p[1]<i[3])){o.label=p[1];break}if(p[0]===6&&o.label<i[1]){o.label=i[1],i=p;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(p);break}i[2]&&o.ops.pop(),o.trys.pop();continue}p=e.call(t,o)}catch(h){p=[6,h],a=0}finally{n=i=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Ct=function(t,e){for(var o=0,n=e.length,a=t.length;o<n;o++,a++)t[a]=e[o];return t},bd=Object.defineProperty,xd=Object.defineProperties,vd=Object.getOwnPropertyDescriptors,is=Object.getOwnPropertySymbols,Sd=Object.prototype.hasOwnProperty,Od=Object.prototype.propertyIsEnumerable,ss=function(t,e,o){return e in t?bd(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},We=function(t,e){for(var o in e||(e={}))Sd.call(e,o)&&ss(t,o,e[o]);if(is)for(var n=0,a=is(e);n<a.length;n++){var o=a[n];Od.call(e,o)&&ss(t,o,e[o])}return t},Nn=function(t,e){return xd(t,vd(e))},Ed=function(t,e,o){return new Promise(function(n,a){var i=function(d){try{l(o.next(d))}catch(p){a(p)}},s=function(d){try{l(o.throw(d))}catch(p){a(p)}},l=function(d){return d.done?n(d.value):Promise.resolve(d.value).then(i,s)};l((o=o.apply(t,e)).next())})};var Cd=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Et:Et.apply(null,arguments)},eg=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function wd(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 Ad=function(t){ds(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=t.apply(this,o)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,Ct([void 0],o[0].concat(this)))):new(e.bind.apply(e,Ct([void 0],o.concat(this))))},e}(Array),Rd=function(t){ds(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=t.apply(this,o)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,Ct([void 0],o[0].concat(this)))):new(e.bind.apply(e,Ct([void 0],o.concat(this))))},e}(Array);function Ln(t){return le(t)?Mr(t,function(){}):t}function Nd(t){return typeof t=="boolean"}function _d(){return function(e){return Td(e)}}function Td(t){t===void 0&&(t={});var e=t.thunk,o=e===void 0?!0:e,n=t.immutableCheck,a=n===void 0?!0:n,i=t.serializableCheck,s=i===void 0?!0:i,l=new Ad;if(o&&(Nd(o)?l.push(Rn):l.push(Rn.withExtraArgument(o.extraArgument))),0){if(a)var d;if(s)var p}return l}var _n=!0;function us(t){var e=_d(),o=t||{},n=o.reducer,a=n===void 0?void 0:n,i=o.middleware,s=i===void 0?e():i,l=o.devTools,d=l===void 0?!0:l,p=o.preloadedState,h=p===void 0?void 0:p,f=o.enhancers,y=f===void 0?void 0:f,g;if(typeof a=="function")g=a;else if(wd(a))g=rs(a);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var b=s;if(typeof b=="function"&&(b=b(e),!_n&&!Array.isArray(b)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!_n&&b.some(function(x){return typeof x!="function"}))throw new Error("each middleware provided to configureStore must be a function");var S=os.apply(void 0,b),w=Et;d&&(w=Cd(We({trace:!_n},typeof d=="object"&&d)));var C=new Rd(S),R=C;Array.isArray(y)?R=Ct([S],y):typeof y=="function"&&(R=y(C));var O=w.apply(void 0,R);return An(g,h,O)}function Fe(t,e){function o(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(e){var i=e.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return We(We({type:t,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:t,payload:n[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(n){return n.type===t},o}function ps(t){var e={},o=[],n,a={addCase:function(i,s){var l=typeof i=="string"?i:i.type;if(l in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[l]=s,a},addMatcher:function(i,s){return o.push({matcher:i,reducer:s}),a},addDefaultCase:function(i){return n=i,a}};return t(a),[e,o,n]}function Ld(t){return typeof t=="function"}function Pd(t,e,o,n){o===void 0&&(o=[]);var a=typeof e=="function"?ps(e):[e,o,n],i=a[0],s=a[1],l=a[2],d;if(Ld(t))d=function(){return Ln(t())};else{var p=Ln(t);d=function(){return p}}function h(f,y){f===void 0&&(f=d());var g=Ct([i[y.type]],s.filter(function(b){var S=b.matcher;return S(y)}).map(function(b){var S=b.reducer;return S}));return g.filter(function(b){return!!b}).length===0&&(g=[l]),g.reduce(function(b,S){if(S)if(Ne(b)){var w=b,C=S(w,y);return C===void 0?b:C}else{if(le(b))return Mr(b,function(R){return S(R,y)});var C=S(b,y);if(C===void 0){if(b===null)return b;throw Error("A case reducer on a non-draftable value must not return undefined")}return C}return b},f)}return h.getInitialState=d,h}function Id(t,e){return t+"/"+e}function fs(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:Ln(t.initialState),n=t.reducers||{},a=Object.keys(n),i={},s={},l={};a.forEach(function(h){var f=n[h],y=Id(e,h),g,b;"reducer"in f?(g=f.reducer,b=f.prepare):g=f,i[h]=g,s[y]=g,l[h]=b?Fe(y,b):Fe(y)});function d(){var h=typeof t.extraReducers=="function"?ps(t.extraReducers):[t.extraReducers],f=h[0],y=f===void 0?{}:f,g=h[1],b=g===void 0?[]:g,S=h[2],w=S===void 0?void 0:S,C=We(We({},y),s);return Pd(o,function(R){for(var O in C)R.addCase(O,C[O]);for(var x=0,E=b;x<E.length;x++){var _=E[x];R.addMatcher(_.matcher,_.reducer)}w&&R.addDefaultCase(w)})}var p;return{name:e,reducer:function(h,f){return p||(p=d()),p(h,f)},actions:l,caseReducers:i,getInitialState:function(){return p||(p=d()),p.getInitialState()}}}var kd="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Dd=function(t){t===void 0&&(t=21);for(var e="",o=t;o--;)e+=kd[Math.random()*64|0];return e},Md=["name","message","stack","code"],Tn=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),cs=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),Ud=function(t){if(typeof t=="object"&&t!==null){for(var e={},o=0,n=Md;o<n.length;o++){var a=n[o];typeof t[a]=="string"&&(e[a]=t[a])}return e}return{message:String(t)}},ng=function(){function t(e,o,n){var a=Fe(e+"/fulfilled",function(h,f,y,g){return{payload:h,meta:Nn(We({},g||{}),{arg:y,requestId:f,requestStatus:"fulfilled"})}}),i=Fe(e+"/pending",function(h,f,y){return{payload:void 0,meta:Nn(We({},y||{}),{arg:f,requestId:h,requestStatus:"pending"})}}),s=Fe(e+"/rejected",function(h,f,y,g,b){return{payload:g,error:(n&&n.serializeError||Ud)(h||"Rejected"),meta:Nn(We({},b||{}),{arg:y,requestId:f,rejectedWithValue:!!g,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 p(h){return function(f,y,g){var b=n?.idGenerator?n.idGenerator(h):Dd(),S=new d,w,C=!1;function R(x){w=x,S.abort()}var O=function(){return Ed(this,null,function(){var x,E,_,P,M,k,T;return gd(this,function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),P=(x=n?.condition)==null?void 0:x.call(n,h,{getState:y,extra:g}),Wd(P)?[4,P]:[3,2];case 1:P=m.sent(),m.label=2;case 2:if(P===!1||S.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return C=!0,M=new Promise(function(v,N){return S.signal.addEventListener("abort",function(){return N({name:"AbortError",message:w||"Aborted"})})}),f(i(b,h,(E=n?.getPendingMeta)==null?void 0:E.call(n,{requestId:b,arg:h},{getState:y,extra:g}))),[4,Promise.race([M,Promise.resolve(o(h,{dispatch:f,getState:y,extra:g,requestId:b,signal:S.signal,abort:R,rejectWithValue:function(v,N){return new Tn(v,N)},fulfillWithValue:function(v,N){return new cs(v,N)}})).then(function(v){if(v instanceof Tn)throw v;return v instanceof cs?a(v.payload,b,h,v.meta):a(v,b,h)})])];case 3:return _=m.sent(),[3,5];case 4:return k=m.sent(),_=k instanceof Tn?s(null,b,h,k.payload,k.meta):s(k,b,h),[3,5];case 5:return T=n&&!n.dispatchConditionRejection&&s.match(_)&&_.meta.condition,T||f(_),[2,_]}})})}();return Object.assign(O,{abort:R,requestId:b,arg:h,unwrap:function(){return O.then(Bd)}})}}return Object.assign(p,{pending:i,rejected:s,fulfilled:a,typePrefix:e})}return t.withTypes=function(){return t},t}();function Bd(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Wd(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var hs="listener",ms="completed",ys="cancelled",ag="task-"+ys,ig="task-"+ms,sg=hs+"-"+ys,cg=hs+"-"+ms;var Pn="listenerMiddleware";var lg=Fe(Pn+"/add"),dg=Fe(Pn+"/removeAll"),ug=Fe(Pn+"/remove");var ls,pg=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(ls||(ls=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},Fd=function(t){return function(e){setTimeout(e,t)}},fg=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Fd(10);Zi();window.ftReduxStores||(window.ftReduxStores={});var at=class t extends Oe{static get(e){var o;let n=typeof e=="string"?e:e.name,a=typeof e=="string"?void 0:e,i=window.ftReduxStores[n];if(tt(i))return i;if(a==null)return;let s=fs({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),l=us({reducer:(d,p)=>p.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__")?{...d,...p.overwrites}:s.reducer(d,p)});return window.ftReduxStores[a.name]=new t(s,l,a.eventBus)}constructor(e,o,n){super(),this.reduxSlice=e,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new or;let a=i=>i!=null?JSON.parse(JSON.stringify(i)):i;this.actions=new Proxy(this.reduxSlice.actions,{get:(i,s,l)=>{let d=s,p=i[d];return p?(...h)=>{let f=p(...h.map(a));return this.reduxStore.dispatch(f),f}:h=>{this.setState({[d]:a(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 Hd(){var t;for(let e of Object.values((t=window.ftReduxStores)!==null&&t!==void 0?t:{}))tt(e)&&e.clear()}var Br=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);Ie(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 $d(t,e,o){return new Br(t,e,o).watch()}var Mn={};B(Mn,{scrollHelper:()=>jd});var kn,Wr=new Map,Dn=class{lock(e,o){if(o){let n=Wr.get(o);if(n==null||n===e)return Wr.set(o,e),o}}release(e,o){o&&Wr.get(o)===e&&Wr.delete(o)}findFirstScrollableParent(e){var o;let n,a;for(let i of To(e)){let s=i,l=this.elementCanScroll(s);if(l&&s.clientHeight&&s.clientHeight<s.scrollHeight){n=s;break}else l&&a==null&&(a=s)}return(o=n??a)!==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,a;let i=0;for(;o&&o.offsetParent!==e.offsetParent;)i+=(n=o.offsetTop)!==null&&n!==void 0?n:0,o=o.offsetParent;return i+((a=o?.offsetTop)!==null&&a!==void 0?a: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 a=this.getAbsoluteScrollOffset(n,e),i=a-n.clientHeight+e.clientHeight,s=a,l=zt(0,(s-n.scrollTop)/(s-i),1),d=this.computeTopOffsetRatio(o?.position,l)*(i-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=(kn=window.FluidTopicsScrollHelper)!==null&&kn!==void 0?kn:new Dn;var jd=window.FluidTopicsScrollHelper;var Bn={};B(Bn,{SearchPlaceConverter:()=>Rt,SearchPlaceQueryParams:()=>F,isSearchPlaceQueryParams:()=>Vs,serializeRequest:()=>Vd});var Gd=gc(bs(),1);var xs;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(xs||(xs={}));var vs;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(vs||(vs={}));var Ss;(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.MAP_ATTACHMENT="MAP_ATTACHMENT",t.RESOURCE="RESOURCE"})(Ss||(Ss={}));var Os;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Os||(Os={}));var Es;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(Es||(Es={}));var Cs;(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.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",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.GEN_AI__COMPLETED_QUERY="GEN_AI__COMPLETED_QUERY",t.GEN_AI__RATE="GEN_AI__RATE",t.GENAI_CASE_DEFLECTION__START="GENAI_CASE_DEFLECTION__START",t.GENAI_CASE_DEFLECTION__OPEN_TICKET="GENAI_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__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"})(Cs||(Cs={}));var ws;(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"})(ws||(ws={}));var As;(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"})(As||(As={}));var Rs;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Rs||(Rs={}));var Ns;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Ns||(Ns={}));var _s;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(_s||(_s={}));var Ts;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Ts||(Ts={}));var Ls;(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"})(Ls||(Ls={}));var Ps;(function(t){t.ASC="ASC",t.DESC="DESC"})(Ps||(Ps={}));var Is;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Is||(Is={}));var Un;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(Un||(Un={}));var Ws=t=>Object.keys(Un).includes(t);var ks;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"})(ks||(ks={}));var Ds;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Ds||(Ds={}));var Ms;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"})(Ms||(Ms={}));var At;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(At||(At={}));var Fs=t=>Object.keys(At).includes(t);var Us;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"})(Us||(Us={}));var Bs;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Bs||(Bs={}));var G;(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.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(G||(G={}));var Hs;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Hs||(Hs={}));var $s;(function(t){t.JSON="JSON",t.TEXT="TEXT"})($s||($s={}));var js;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(js||(js={}));var zd={[G.PERSONAL_BOOK_SHARE_USER]:[G.PERSONAL_BOOK_USER],[G.HTML_EXPORT_USER]:[G.PERSONAL_BOOK_USER],[G.PDF_EXPORT_USER]:[G.PERSONAL_BOOK_USER],[G.KHUB_ADMIN]:[G.CONTENT_PUBLISHER],[G.ADMIN]:[G.KHUB_ADMIN,G.USERS_ADMIN,G.PORTAL_ADMIN],[G.GENERATIVE_AI_EXPORT_USER]:[G.GENERATIVE_AI_USER]};function zs(t,e){return t===e||(zd[t]??[]).some(o=>zs(o,e))}function Gs(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=>zs(n,e))}function Kd(t){return`"${t}"`}function Ks(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function Vd(t,e){return new Rt(t).serialize(e)}var F;(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"})(F||(F={}));var Zd=new Set(Object.values(F));function Vs(t){return Zd.has(t)}var Rt=class{constructor(e,o={},n=20,a=!1,i="en-US"){this.baseUrl=e,this.predefinedSorts=o,this.defaultPerPage=n,this.allLanguagesAllowed=a,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,a=new URL(n?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${o}`);return a.search=this.toURLSearchParams(e),a.toString()}toURLSearchParams(e,o=!1){var n,a,i,s,l,d,p,h,f,y,g,b;let S=new URLSearchParams;e.contentLocale?(!o||e.contentLocale!==this.defaultContentLocale)&&S.append(F.LOCALE,e.contentLocale):S.append(F.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((n=e.query)===null||n===void 0?void 0:n.length)>0&&S.append(F.QUERY,e.query);let w=(i=(a=e.metadataFilters)===null||a===void 0?void 0:a.filter(x=>x.valueFilter))!==null&&i!==void 0?i:[];if(w.length>0){let x=w.map(E=>{var _,P;let M=((P=(_=E.valueFilter)===null||_===void 0?void 0:_.values)!==null&&P!==void 0?P:[]).map(k=>this.escapeFilters(k)).map(k=>Kd(Ks(k))).join("_");return`${E.key}~${M}`}).join("*");S.append(F.VALUE_FILTERS,x)}let C=(l=(s=e.metadataFilters)===null||s===void 0?void 0:s.filter(x=>x.dateFilter))!==null&&l!==void 0?l:[];if(C.length>0){let x=C.map(E=>{var _;return`${E.key}~${(_=E.dateFilter)===null||_===void 0?void 0:_.type.toLowerCase()}`}).join("*");S.append(F.DATE_FILTERS,x)}let R=(p=(d=e.metadataFilters)===null||d===void 0?void 0:d.filter(x=>x.rangeFilter))!==null&&p!==void 0?p:[];if(R.length>0){let x=R.map(E=>{var _,P;return`${E.key}~${(_=E.rangeFilter)===null||_===void 0?void 0:_.from}_${(P=E.rangeFilter)===null||P===void 0?void 0:P.to}`}).join("*");S.append(F.RANGE_FILTERS,x)}e.virtualField&&e.virtualField!=="EVERYWHERE"&&S.append(F.VIRTUAL_FIELD,e.virtualField.toLowerCase()),e.scope&&e.scope!=="DEFAULT"&&S.append(F.SCOPE,e.scope.toLowerCase()),((h=e.sort)===null||h===void 0?void 0:h.length)>0&&e.sort[0].key==="ft:lastEdition"&&S.append(F.SORT,"last_update"),!((f=e.paging)===null||f===void 0)&&f.perPage&&((g=(y=e.paging)===null||y===void 0?void 0:y.perPage)!==null&&g!==void 0?g:this.defaultPerPage)!=this.defaultPerPage&&S.append(F.PER_PAGE,String(e.paging.perPage));let O=(b=e.otherQueryParams)!==null&&b!==void 0?b:{};for(let x in O)S.append(x,O[x]);return encodeURI(S.toString()).replace(/#/g,"%23")}parse(e){var o;let n=e.split("?"),a=this.fromURLSearchParams(n.slice(1).join("?")),i=n[0].split("/search/")[1];return i==null?a:{...a,scope:(o=this.scopeMapping[i])!==null&&o!==void 0?o:a.scope}}fromURLSearchParams(e){var o,n,a,i,s,l,d,p;try{e=decodeURI(e).replace(/%23/g,"#")}catch(C){console.warn("Could not decode search request query params, fallback on raw value",C)}let h=new URLSearchParams(e),f=h.get(F.LOCALE)==="all"?void 0:h.get(F.LOCALE),y=((o=h.get(F.VIRTUAL_FIELD))!==null&&o!==void 0?o:"EVERYWHERE").toUpperCase(),g=((n=h.get(F.SORT))!==null&&n!==void 0?n:"DEFAULT").toUpperCase(),b=(a=h.get(F.SCOPE))!==null&&a!==void 0?a:"default",S=+((i=h.get(F.PER_PAGE))!==null&&i!==void 0?i:this.defaultPerPage),w={};for(let C of h.keys())Vs(C)||(w[C]=h.get(C));return{contentLocale:f??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:(s=h.get(F.QUERY))!==null&&s!==void 0?s:"",scope:(l=this.scopeMapping[b])!==null&&l!==void 0?l:"DEFAULT",virtualField:Ws(y)?y:"EVERYWHERE",sort:(p=(d=this.predefinedSorts[g])!==null&&d!==void 0?d:this.predefinedSorts.DEFAULT)!==null&&p!==void 0?p:[],metadataFilters:this.parseCompatFilters(h),facets:[],paging:{page:1,perPage:zt(1,isNaN(S)?this.defaultPerPage:S,1e3)},otherQueryParams:w}}parseCompatFilters(e){var o,n,a,i,s,l;let d=[];return e.has(F.FILTERS)&&(d=this.parseValueFilters((o=e.get(F.FILTERS))!==null&&o!==void 0?o:"")),(n=e.has(F.PERIOD))!==null&&n!==void 0&&n&&(d=[...d,...this.parseLegacyPeriodFilter(((a=e.get(F.PERIOD))!==null&&a!==void 0?a:"").toUpperCase())]),[...d,...this.parseValueFilters((i=e.get(F.VALUE_FILTERS))!==null&&i!==void 0?i:""),...this.parseDateFilters((s=e.get(F.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=e.get(F.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(Ks).map(n=>this.unescapeFilterValue(n)),negative:!1}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],dateFilter:{type:At[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,a]of this.filtersEscapeMapping)e=e.replaceAll(o,n);return e}superEscapeFilters(e){for(let[o,n,a]of this.filtersEscapeMapping)e=e.replaceAll(n,a);return e}unescapeFilterValue(e){for(let[o,n,a]of this.filtersEscapeMapping)e=e.replace(a,o);return e}parseLegacyPeriodFilter(e){if(Fs(e))return[{key:"ft:lastEdition",dateFilter:{type:At[e]}}];if(e.startsWith("CUSTOM_")){let[o,n,a]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:n,to:a}}]}return[]}};var Fn={};B(Fn,{toFtFormComponent:()=>qd});var Wn=Symbol("elementInternals");function qd(t){class e extends t{static get formAssociated(){return!0}get form(){return this[Wn].form}constructor(...n){super(n),this[Wn]=this.attachInternals()}setFormValue(n){this[Wn].setFormValue(n)}}return e}var Hn={};B(Hn,{DateFormatter:()=>Nt});var Nt=class{static format(e,o,n,a){return window.moment?window.moment(e).locale(o).format(this.getDateFormat(n,a)):e}static getDateFormat(e,o){return e?o?"lll":"ll":o?"L LT":"L"}};var jn={};B(jn,{ALL_KEYS_VALUE:()=>$n,SameWindowStorageEvent:()=>_t});var $n="__all__",_t=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==$n}};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 _t(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 _t(o[0],n))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(t,e,o){Reflect.apply(t,e,o),window.dispatchEvent(new _t($n))}});var Gn={};B(Gn,{FocusMainContentEvent:()=>zn});var zn=class extends Event{constructor(){super("ft-focus-main-content",{composed:!0,bubbles:!0})}};var Zs={};window.FluidTopicsA11yHints={isKeyboardNavigation:!1};function Yd(t){(t.key==="Enter"||t.key===" "||t.key==="Tab")&&(window.FluidTopicsA11yHints.isKeyboardNavigation=!0)}function Xd(t){window.FluidTopicsA11yHints.isKeyboardNavigation=t.detail==0}document.addEventListener("keydown",Yd);document.addEventListener("click",Xd);var Kn,Vn,Zn,qn,Jd=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((Zn=(Vn=(Kn=window.safari)===null||Kn===void 0?void 0:Kn.pushNotification)===null||Vn===void 0?void 0:Vn.toString())!==null&&Zn!==void 0?Zn:"")==="[object SafariRemoteNotification]",Qd="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(qn=window.ftGlobals)!==null&&qn!==void 0?qn:{lit:fo,litDecorators:ho,litRepeat:mo,litClassMap:yo,litStyleMap:go,litUnsafeHTML:bo,wcUtils:{...wo,...vo,...No,...Hn,..._o,...Po,...Mo,...Co,...Yo,...Gn,...Zs,...Mn,...Do,...rn,...Fn,...en,...Ii,...Lo,...an,...cn,...Di,...ln,...In,...jn,...Xo,...Qo,...Bn,isSafari:Jd,isTouchScreen:Qd,setVariable:wr}};var qs={colorError:r.external(Ar.colorError,"Design system"),fontFamily:r.external(Ar.contentFont,"Design system")},Ys=$`
49
49
  .topic {
50
50
  font-family: ${qs.fontFamily};
51
51
  overflow-x: auto;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-reader-topic-content",
3
- "version": "1.2.60",
3
+ "version": "1.2.61",
4
4
  "description": "Content of a topic in integrated reader.",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,14 +19,14 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-chip": "1.2.60",
23
- "@fluid-topics/ft-i18n": "1.2.60",
24
- "@fluid-topics/ft-reader-context": "1.2.60",
25
- "@fluid-topics/ft-reader-topic-context": "1.2.60",
26
- "@fluid-topics/ft-tooltip": "1.2.60",
27
- "@fluid-topics/ft-wc-utils": "1.2.60",
28
- "@fluid-topics/public-api": "1.0.94",
22
+ "@fluid-topics/ft-chip": "1.2.61",
23
+ "@fluid-topics/ft-i18n": "1.2.61",
24
+ "@fluid-topics/ft-reader-context": "1.2.61",
25
+ "@fluid-topics/ft-reader-topic-context": "1.2.61",
26
+ "@fluid-topics/ft-tooltip": "1.2.61",
27
+ "@fluid-topics/ft-wc-utils": "1.2.61",
28
+ "@fluid-topics/public-api": "1.0.95",
29
29
  "lit": "3.1.0"
30
30
  },
31
- "gitHead": "5acbf0235057ab34c306052ddba1e8f500f710bc"
31
+ "gitHead": "924cb24583d473e221182ffe54f8c500643227c1"
32
32
  }