@fluid-topics/ft-search-selected-facets 1.1.100 → 1.1.101
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.
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
`;var us=h(w()),hs=h(H());var pt=h(w());var Xi=h(w()),Ld={setRequest:(t,e)=>{t.request=e.payload},setRequestQuery:(t,e)=>{t.request.query=e.payload},setRequestContentLocale:(t,e)=>{t.request.contentLocale=e.payload},setPageSize:(t,e)=>{t.request.paging.perPage=e.payload},setPageNumber:(t,e)=>{t.request.paging.page=e.payload},setRequestSort:(t,e)=>{t.request.sort=e.payload},setRequestFilters:(t,e)=>{t.request.filters=e.payload},setRequestFacets:(t,e)=>{t.request.facets=e.payload},setRequestVirtualField:(t,e)=>{t.request.virtualField=e.payload},setRequestScope:(t,e)=>{t.request.scope=e.payload},setRequestClusterSortCriterion:(t,e)=>{var o;t.request.clusterSortCriterions=(o=e.payload)!==null&&o!==void 0?o:[]},setResults:(t,e)=>{t.results=e.payload},setFacets:(t,e)=>{t.facets=e.payload},setSpellcheck:(t,e)=>{t.spellcheck=e.payload},setLocales:(t,e)=>{t.locales=e.payload},setPaging:(t,e)=>{t.paging=e.payload},setLiveQuery:(t,e)=>{t.liveQuery=e.payload},setSuggestResults:(t,e)=>{t.suggestResults=e.payload},setRequestPeriodFilter:(t,e)=>{t.request.periodFilter=e.payload}},Qi=t=>Xi.FtReduxStore.get({name:"ft-search-"+t,initialState:{request:{query:"",clusterSortCriterions:[],filters:[],facets:[],sort:[],paging:{page:1,perPage:20}},liveQuery:""},reducers:Ld});var ff=h(ea(),1);var ta;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(ta||(ta={}));var ra;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(ra||(ra={}));var oa;(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"})(oa||(oa={}));var na;(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"})(na||(na={}));var ia;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(ia||(ia={}));var aa;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(aa||(aa={}));var sa;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(sa||(sa={}));var la;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(la||(la={}));var So;(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"})(So||(So={}));var ca;(function(t){t.ASC="ASC",t.DESC="DESC"})(ca||(ca={}));var da;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(da||(da={}));var hr;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(hr||(hr={}));var pa;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"})(pa||(pa={}));var fa;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(fa||(fa={}));var ua;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"})(ua||(ua={}));var ha;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"})(ha||(ha={}));var mr;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS"})(mr||(mr={}));var de;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN",t.DEVELOPER="DEVELOPER"})(de||(de={}));var ma;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(ma||(ma={}));var lf={[de.PERSONAL_BOOK_SHARE_USER]:[de.PERSONAL_BOOK_USER],[de.HTML_EXPORT_USER]:[de.PERSONAL_BOOK_USER],[de.PDF_EXPORT_USER]:[de.PERSONAL_BOOK_USER],[de.KHUB_ADMIN]:[de.CONTENT_PUBLISHER],[de.ADMIN]:[de.KHUB_ADMIN,de.USERS_ADMIN,de.PORTAL_ADMIN],[de.DEVELOPER]:[de.BETA_USER,de.DEBUG_USER]};var fs=h(w());var va=h(I()),je=h(H()),Qe=h(w());var ya=h(I());var ga=ya.css`
|
|
12
12
|
`;var Oo=h(w()),Id="ft-app-info",An=class extends CustomEvent{constructor(e){super("authentication-change",{detail:e})}},Pd={session:(t,e)=>{(0,Oo.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>P.eventBus.dispatchEvent(new An(e.payload)),0))}},P=Oo.FtReduxStore.get({name:Id,reducers:Pd,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],metadataConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1}});var Lt=h(w());var Rn=h(w());var Yt=class t{static get(e){let{baseUrl:o,apiIntegrationIdentifier:n}=P.getState(),i=e??n;if(o&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,i,!0)}static await(e){return new Promise(o=>{let n=t.get(e);if(n)o(n);else{let i=P.subscribe(()=>{n=t.get(e),n&&(i(),o(n))})}})}};var ct=class{constructor(e=!0,o){var n;this.overrideApi=o;let i=this.constructor;i.commonCache=(n=i.commonCache)!==null&&n!==void 0?n:new Rn.CacheRegistry,this.cache=e?i.commonCache:new Rn.CacheRegistry}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Yt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Yt.await()}clearCache(){this.cache.clearAll()}};var ba,kd=Symbol("clearAfterUnitTest"),Co=class extends ct{constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[ba]=()=>{this.defaultMessages={},this.cache=new Lt.CacheRegistry,this.listeners={}},this.currentUiLocale=P.getState().uiLocale,P.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=P.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let o=e.name.toLowerCase();this.cache.setFinal(o,e),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,o){var n;if(e=e.toLowerCase(),Object.keys(o).length>0){let i={...(n=this.defaultMessages[e])!==null&&n!==void 0?n:{},...o};(0,Lt.deepEqual)(this.defaultMessages[e],i)||(this.defaultMessages[e]=i,await this.notify(e))}await this.fetchContext(e)}resolveMessage(e,o,...n){var i,a,s;e=e.toLowerCase(),this.fetchContext(e);let l=(a=(i=this.cache.getNow(e))===null||i===void 0?void 0:i.messages)!==null&&a!==void 0?a:{};return new Lt.ParametrizedLabelResolver((s=this.defaultMessages[e])!==null&&s!==void 0?s:{},l).resolve(o,...n)}async fetchContext(e){if(!this.cache.has(e))try{await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),await this.notify(e)}catch(o){console.error(o)}}subscribe(e,o){var n;return e=e.toLowerCase(),this.listeners[e]=(n=this.listeners[e])!==null&&n!==void 0?n:new Set,this.listeners[e].add(o),()=>{var i;return(i=this.listeners[e])===null||i===void 0?void 0:i.delete(o)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map(e=>this.notify(e)))}async notify(e){this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(o=>(0,Lt.delay)(0).then(()=>o()).catch(()=>null)))}};ba=kd;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Co{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Co{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var yr=window.FluidTopicsI18nService,xa=window.FluidTopicsCustomI18nService;var Se=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},te=class extends Qe.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=()=>Yt.get(),this.messageContexts=[],this.cache=new Qe.CacheRegistry,this.cleanSessionDebouncer=new Qe.Debouncer}render(){return va.html`
|
|
13
13
|
<slot></slot>
|
|
14
|
-
`}update(e){super.update(e),e.has("baseUrl")&&(P.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&P.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("uiLocale")&&P.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&P.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&P.actions.noCustom(this.noCustom),e.has("editorMode")&&P.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&P.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&P.actions.session(this.session),e.has("availableUiLocales")&&P.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(o=>yr.addContext(o)),e.has("openExternalDocumentInNewTab")&&P.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&P.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&P.actions.forcedOffline(this.forcedOffline),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){!this.withManualResources&&this.apiProvider()&&(this.session==null&&this.updateSession(),this.availableUiLocales==null&&this.updateUiLocales(),this.metadataConfiguration==null&&this.updateMetadataConfiguration())}async updateSession(){this.session=await this.cache.get("session",async()=>{let e=await this.apiProvider().getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},e.idleTimeoutInMillis),e})}async updateUiLocales(){this.availableUiLocales=await this.cache.get("availableUiLocales",()=>this.apiProvider().getAvailableUiLocales())}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}};te.elementDefinitions={};te.styles=ga;Se([(0,je.property)()],te.prototype,"baseUrl",void 0);Se([(0,je.property)()],te.prototype,"apiIntegrationIdentifier",void 0);Se([(0,je.property)()],te.prototype,"uiLocale",void 0);Se([(0,Qe.jsonProperty)(null)],te.prototype,"availableUiLocales",void 0);Se([(0,Qe.jsonProperty)(null)],te.prototype,"metadataConfiguration",void 0);Se([(0,je.property)({type:Boolean})],te.prototype,"editorMode",void 0);Se([(0,je.property)({type:Boolean})],te.prototype,"noCustom",void 0);Se([(0,je.property)({type:Boolean})],te.prototype,"openExternalDocumentInNewTab",void 0);Se([(0,je.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],te.prototype,"noCustomComponent",void 0);Se([(0,je.property)({type:Boolean})],te.prototype,"withManualResources",void 0);Se([(0,je.property)({type:Boolean})],te.prototype,"navigatorOnline",void 0);Se([(0,je.property)({type:Boolean})],te.prototype,"forcedOffline",void 0);Se([(0,je.property)({type:Object})],te.prototype,"apiProvider",void 0);Se([(0,Qe.jsonProperty)([])],te.prototype,"messageContexts",void 0);Se([(0,Qe.jsonProperty)(void 0)],te.prototype,"session",void 0);var xp=h(H());function _d(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var o,n,i;if(Array.isArray(t)){if(o=t.length,o!=e.length)return!1;for(n=o;n--!==0;)if(!Eo(t[n],e[n]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;for(n of t.entries())if(!Eo(n[1],e.get(n[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if(i=Object.keys(t),o=i.length,o!==Object.keys(e).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(e,i[n]))return!1;for(n=o;n--!==0;){var a=i[n];if(!Eo(t[a],e[a]))return!1}return!0}return t!==t&&e!==e}function Eo(t,e){try{return _d(t,e)}catch{return!1}}function Nn(t,e){return!Eo(t,e)}var Dd=h(H(),1);var wo=class{constructor(){this.queue=[]}add(e,o=!1){o&&(this.queue=this.queue.filter(n=>n.type!==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}};var Kr=h(H(),1);var Sa=h(H(),1);function Oa(t,e){let o=()=>JSON.parse(JSON.stringify(t));return(0,Sa.property)({type:Object,converter:{fromAttribute:n=>{if(n==null)return o();try{return JSON.parse(n)}catch{return o()}},toAttribute:n=>JSON.stringify(n)},hasChanged:Nn,...e??{}})}var Ao=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,o){return this.callbacks=[e],this.debounce(o)}queue(e,o){return this.callbacks.push(e),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((o,n)=>{this.resolvePromise=o,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,o;let n=[...this.callbacks];this.callbacks=[];let i=(e=this.rejectPromise)!==null&&e!==void 0?e:()=>null,a=(o=this.resolvePromise)!==null&&o!==void 0?o:()=>null;this.clearPromise();for(let s of n)try{await s()}catch(l){i(l);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 Ea=h(I(),1);var Ro=window,$d=Ro.ShadowRoot&&(Ro.ShadyCSS===void 0||Ro.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Wf=Symbol();var Ca=(t,e)=>{$d?t.adoptedStyleSheets=e.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet):e.forEach(o=>{let n=document.createElement("style"),i=Ro.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=o.cssText,t.appendChild(n)})};var No=class extends Ea.LitElement{createRenderRoot(){let e=this.constructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,Object.entries(e.elementDefinitions).forEach(([i,a])=>e.registry.define(i,a)));let o={...e.shadowRootOptions,customElements:e.registry},n=this.renderOptions.creationScope=this.attachShadow(o);return Ca(n,e.elementStyles),n}};var To=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},Na,wa=Symbol("constructorPrototype"),Aa=Symbol("constructorName"),Ta=Symbol("exportpartsDebouncer"),Ra=Symbol("dynamicDependenciesLoaded"),It=class extends No{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Na]=new Ao(5),this[Aa]=this.constructor.name,this[wa]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Aa]&&Object.setPrototypeOf(this,this[wa])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(o){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",o)}let e=this.constructor;e[Ra]||(e[Ra]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate()})}contentAvailableCallback(e){}applyCustomStylesheet(e){var o,n,i;if(((n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(e.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 e,o,n;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(n=(o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)!==null&&n!==void 0&&n)&&this[Ta].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(e){var o,n,i,a,s,l;let p=g=>g!=null&&g.trim().length>0,f=e.filter(p).map(g=>g.trim());if(f.length===0){this.removeAttribute("exportparts");return}let u=new Set;for(let g of(n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let x=(a=(i=g.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&a!==void 0?a:[],b=(l=(s=g.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(S=>S.split(":")[1]))!==null&&l!==void 0?l:[];new Array(...x,...b).filter(p).map(S=>S.trim()).forEach(S=>u.add(S))}if(u.size===0){this.removeAttribute("exportparts");return}let y=[...u.values()].flatMap(g=>f.map(x=>`${g}:${x}--${g}`));this.setAttribute("exportparts",[...this.part,...y].join(", "))}};Na=Ta;To([(0,Kr.property)()],It.prototype,"exportpartsPrefix",void 0);To([Oa([])],It.prototype,"exportpartsPrefixes",void 0);To([(0,Kr.property)()],It.prototype,"customStylesheet",void 0);To([(0,Kr.state)()],It.prototype,"useAdoptedStyleSheets",void 0);function Zr(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var La,Ia,Pa,Lo=Symbol("internalReduxEventsUnsubscribers"),Pt=Symbol("internalStoresUnsubscribers"),Xt=Symbol("internalStores"),qr=class extends It{constructor(){super(...arguments),this[La]=new Map,this[Ia]=new Map,this[Pa]=[]}get reduxConstructor(){return this.constructor}update(e){super.update(e),[...this.reduxConstructor.reduxReactiveProperties].some(o=>e.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[Xt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Xt].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[Xt].get(e)}addStore(e,o){var n;o=(n=o??(Zr(e)?e.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(o),this.setupStore(o,e)}removeStore(e){let o=typeof e=="string"?e:e.name;this.unsubscribeFromStore(o),this[Xt].delete(o)}setupStore(e,o){this[Xt].set(e,o),this.subscribeToStore(e,o),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Xt].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 i=this.getStore(e.store);i&&(e.store?this[Pt].has(e.store):this[Pt].size>0)&&(this[o]=e.selector(i.getState(),this))}})}subscribeToStore(e,o){var n;this[Pt].set(e,o.subscribe(()=>this.updateFromStores())),Zr(o)&&o.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((i,a)=>{if(typeof this[a]=="function"&&(!i.store||o.name===i.store)){let s=l=>this[a](l);o.eventBus.addEventListener(i.eventName,s),this[Lo].push(()=>o.eventBus.removeEventListener(i.eventName,s))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[Pt].forEach((e,o)=>this.unsubscribeFromStore(o)),this[Lo].forEach(e=>e()),this[Lo]=[]}unsubscribeFromStore(e){this[Pt].has(e)&&this[Pt].get(e)(),this[Pt].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};La=Pt,Ia=Xt,Pa=Lo;qr.reduxProperties=new Map;qr.reduxReactiveProperties=new Set;qr.reduxEventListeners=new Map;function Ge(t){for(var e=arguments.length,o=Array(e>1?e-1:0),n=1;n<e;n++)o[n-1]=arguments[n];if(0)var i,a;throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function gt(t){return!!t&&!!t[Y]}function Je(t){var e;return!!t&&(function(o){if(!o||typeof o!="object")return!1;var n=Object.getPrototypeOf(o);if(n===null)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===Vd}(t)||Array.isArray(t)||!!t[Ua]||!!(!((e=t.constructor)===null||e===void 0)&&e[Ua])||Bn(t)||Mn(t))}function Qt(t,e,o){o===void 0&&(o=!1),xr(t)===0?(o?Object.keys:br)(t).forEach(function(n){o&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,i){return e(i,n,t)})}function xr(t){var e=t[Y];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Bn(t)?2:Mn(t)?3:0}function gr(t,e){return xr(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Bd(t,e){return xr(t)===2?t.get(e):t[e]}function Fa(t,e,o){var n=xr(t);n===2?t.set(e,o):n===3?t.add(o):t[e]=o}function za(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function Bn(t){return Wd&&t instanceof Map}function Mn(t){return Hd&&t instanceof Set}function kt(t){return t.o||t.t}function Un(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Va(t);delete e[Y];for(var o=br(e),n=0;n<o.length;n++){var i=o[n],a=e[i];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:t[i]})}return Object.create(Object.getPrototypeOf(t),e)}function Fn(t,e){return e===void 0&&(e=!1),zn(t)||gt(t)||!Je(t)||(xr(t)>1&&(t.set=t.add=t.clear=t.delete=Md),Object.freeze(t),e&&Qt(t,function(o,n){return Fn(n,!0)},!0)),t}function Md(){Ge(2)}function zn(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function dt(t){var e=$n[t];return e||Ge(18,t),e}function Ud(t,e){$n[t]||($n[t]=e)}function kn(){return Xr}function Tn(t,e){e&&(dt("Patches"),t.u=[],t.s=[],t.v=e)}function Io(t){_n(t),t.p.forEach(Fd),t.p=null}function _n(t){t===Xr&&(Xr=t.l)}function ka(t){return Xr={p:[],l:Xr,h:t,m:!0,_:0}}function Fd(t){var e=t[Y];e.i===0||e.i===1?e.j():e.g=!0}function Ln(t,e){e._=e.p.length;var o=e.p[0],n=t!==void 0&&t!==o;return e.h.O||dt("ES5").S(e,t,n),n?(o[Y].P&&(Io(e),Ge(4)),Je(t)&&(t=Po(e,t),e.l||ko(e,t)),e.u&&dt("Patches").M(o[Y].t,t,e.u,e.s)):t=Po(e,o,[]),Io(e),e.u&&e.v(e.u,e.s),t!==Ha?t:void 0}function Po(t,e,o){if(zn(e))return e;var n=e[Y];if(!n)return Qt(e,function(l,p){return _a(t,n,e,l,p,o)},!0),e;if(n.A!==t)return e;if(!n.P)return ko(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=Un(n.k):n.o,a=i,s=!1;n.i===3&&(a=new Set(i),i.clear(),s=!0),Qt(a,function(l,p){return _a(t,n,i,l,p,o,s)}),ko(t,i,!1),o&&t.u&&dt("Patches").N(n,o,t.u,t.s)}return n.o}function _a(t,e,o,n,i,a,s){if(gt(i)){var l=Po(t,i,a&&e&&e.i!==3&&!gr(e.R,n)?a.concat(n):void 0);if(Fa(o,n,l),!gt(l))return;t.m=!1}else s&&o.add(i);if(Je(i)&&!zn(i)){if(!t.h.D&&t._<1)return;Po(t,i),e&&e.A.l||ko(t,i)}}function ko(t,e,o){o===void 0&&(o=!1),!t.l&&t.h.D&&t.m&&Fn(e,o)}function In(t,e){var o=t[Y];return(o?kt(o):t)[e]}function Da(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 _t(t){t.P||(t.P=!0,t.l&&_t(t.l))}function Pn(t){t.o||(t.o=Un(t.t))}function Dn(t,e,o){var n=Bn(e)?dt("MapSet").F(e,o):Mn(e)?dt("MapSet").T(e,o):t.O?function(i,a){var s=Array.isArray(i),l={i:s?1:0,A:a?a.A:kn(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},p=l,f=Qr;s&&(p=[l],f=Yr);var u=Proxy.revocable(p,f),y=u.revoke,g=u.proxy;return l.k=g,l.j=y,g}(e,o):dt("ES5").J(e,o);return(o?o.A:kn()).p.push(n),n}function zd(t){return gt(t)||Ge(22,t),function e(o){if(!Je(o))return o;var n,i=o[Y],a=xr(o);if(i){if(!i.P&&(i.i<4||!dt("ES5").K(i)))return i.t;i.I=!0,n=$a(o,a),i.I=!1}else n=$a(o,a);return Qt(n,function(s,l){i&&Bd(i.t,s)===l||Fa(n,s,e(l))}),a===3?new Set(n):n}(t)}function $a(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Un(t)}function Wa(){function t(s,l){var p=a[s];return p?p.enumerable=l:a[s]=p={configurable:!0,enumerable:l,get:function(){var f=this[Y];return Qr.get(f,s)},set:function(f){var u=this[Y];Qr.set(u,s,f)}},p}function e(s){for(var l=s.length-1;l>=0;l--){var p=s[l][Y];if(!p.P)switch(p.i){case 5:n(p)&&_t(p);break;case 4:o(p)&&_t(p)}}}function o(s){for(var l=s.t,p=s.k,f=br(p),u=f.length-1;u>=0;u--){var y=f[u];if(y!==Y){var g=l[y];if(g===void 0&&!gr(l,y))return!0;var x=p[y],b=x&&x[Y];if(b?b.t!==g:!za(x,g))return!0}}var S=!!l[Y];return f.length!==br(l).length+(S?0:1)}function n(s){var l=s.k;if(l.length!==s.t.length)return!0;var p=Object.getOwnPropertyDescriptor(l,l.length-1);if(p&&!p.get)return!0;for(var f=0;f<l.length;f++)if(!l.hasOwnProperty(f))return!0;return!1}function i(s){s.g&&Ge(3,JSON.stringify(kt(s)))}var a={};Ud("ES5",{J:function(s,l){var p=Array.isArray(s),f=function(y,g){if(y){for(var x=Array(g.length),b=0;b<g.length;b++)Object.defineProperty(x,""+b,t(b,!0));return x}var S=Va(g);delete S[Y];for(var T=br(S),R=0;R<T.length;R++){var N=T[R];S[N]=t(N,y||!!S[N].enumerable)}return Object.create(Object.getPrototypeOf(g),S)}(p,s),u={i:p?5:4,A:l?l.A:kn(),P:!1,I:!1,R:{},l,t:s,k:f,o:null,g:!1,C:!1};return Object.defineProperty(f,Y,{value:u,writable:!0}),f},S:function(s,l,p){p?gt(l)&&l[Y].A===s&&e(s.p):(s.u&&function f(u){if(u&&typeof u=="object"){var y=u[Y];if(y){var g=y.t,x=y.k,b=y.R,S=y.i;if(S===4)Qt(x,function(k){k!==Y&&(g[k]!==void 0||gr(g,k)?b[k]||f(x[k]):(b[k]=!0,_t(y)))}),Qt(g,function(k){x[k]!==void 0||gr(x,k)||(b[k]=!1,_t(y))});else if(S===5){if(n(y)&&(_t(y),b.length=!0),x.length<g.length)for(var T=x.length;T<g.length;T++)b[T]=!1;else for(var R=g.length;R<x.length;R++)b[R]=!0;for(var N=Math.min(x.length,g.length),_=0;_<N;_++)x.hasOwnProperty(_)||(b[_]=!0),b[_]===void 0&&f(x[_])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?o(s):n(s)}})}var Ba,Xr,Wn=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Wd=typeof Map<"u",Hd=typeof Set<"u",Ma=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Ha=Wn?Symbol.for("immer-nothing"):((Ba={})["immer-nothing"]=!0,Ba),Ua=Wn?Symbol.for("immer-draftable"):"__$immer_draftable",Y=Wn?Symbol.for("immer-state"):"__$immer_state";var Vd=""+Object.prototype.constructor,br=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Va=Object.getOwnPropertyDescriptors||function(t){var e={};return br(t).forEach(function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)}),e},$n={},Qr={get:function(t,e){if(e===Y)return t;var o=kt(t);if(!gr(o,e))return function(i,a,s){var l,p=Da(a,s);return p?"value"in p?p.value:(l=p.get)===null||l===void 0?void 0:l.call(i.k):void 0}(t,o,e);var n=o[e];return t.I||!Je(n)?n:n===In(t.t,e)?(Pn(t),t.o[e]=Dn(t.A.h,n,t)):n},has:function(t,e){return e in kt(t)},ownKeys:function(t){return Reflect.ownKeys(kt(t))},set:function(t,e,o){var n=Da(kt(t),e);if(n?.set)return n.set.call(t.k,o),!0;if(!t.P){var i=In(kt(t),e),a=i?.[Y];if(a&&a.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(za(o,i)&&(o!==void 0||gr(t.t,e)))return!0;Pn(t),_t(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 In(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,Pn(t),_t(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=kt(t),n=Reflect.getOwnPropertyDescriptor(o,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:o[e]}},defineProperty:function(){Ge(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Ge(12)}},Yr={};Qt(Qr,function(t,e){Yr[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),Yr.deleteProperty=function(t,e){return Yr.set.call(this,t,e,void 0)},Yr.set=function(t,e,o){return Qr.set.call(this,t[0],e,o,t[0])};var jd=function(){function t(o){var n=this;this.O=Ma,this.D=!0,this.produce=function(i,a,s){if(typeof i=="function"&&typeof a!="function"){var l=a;a=i;var p=n;return function(S){var T=this;S===void 0&&(S=l);for(var R=arguments.length,N=Array(R>1?R-1:0),_=1;_<R;_++)N[_-1]=arguments[_];return p.produce(S,function(k){var V;return(V=a).call.apply(V,[T,k].concat(N))})}}var f;if(typeof a!="function"&&Ge(6),s!==void 0&&typeof s!="function"&&Ge(7),Je(i)){var u=ka(n),y=Dn(n,i,void 0),g=!0;try{f=a(y),g=!1}finally{g?Io(u):_n(u)}return typeof Promise<"u"&&f instanceof Promise?f.then(function(S){return Tn(u,s),Ln(S,u)},function(S){throw Io(u),S}):(Tn(u,s),Ln(f,u))}if(!i||typeof i!="object"){if((f=a(i))===void 0&&(f=i),f===Ha&&(f=void 0),n.D&&Fn(f,!0),s){var x=[],b=[];dt("Patches").M(i,f,x,b),s(x,b)}return f}Ge(21,i)},this.produceWithPatches=function(i,a){if(typeof i=="function")return function(f){for(var u=arguments.length,y=Array(u>1?u-1:0),g=1;g<u;g++)y[g-1]=arguments[g];return n.produceWithPatches(f,function(x){return i.apply(void 0,[x].concat(y))})};var s,l,p=n.produce(i,a,function(f,u){s=f,l=u});return typeof Promise<"u"&&p instanceof Promise?p.then(function(f){return[f,s,l]}):[p,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){Je(o)||Ge(8),gt(o)&&(o=zd(o));var n=ka(this),i=Dn(this,o,void 0);return i[Y].C=!0,_n(n),i},e.finishDraft=function(o,n){var i=o&&o[Y],a=i.A;return Tn(a,n),Ln(void 0,a)},e.setAutoFreeze=function(o){this.D=o},e.setUseProxies=function(o){o&&!Ma&&Ge(20),this.O=o},e.applyPatches=function(o,n){var i;for(i=n.length-1;i>=0;i--){var a=n[i];if(a.path.length===0&&a.op==="replace"){o=a.value;break}}i>-1&&(n=n.slice(i+1));var s=dt("Patches").$;return gt(o)?s(o,n):this.produce(o,function(l){return s(l,n)})},t}(),De=new jd,Gd=De.produce,eu=De.produceWithPatches.bind(De),tu=De.setAutoFreeze.bind(De),ru=De.setUseProxies.bind(De),ou=De.applyPatches.bind(De),nu=De.createDraft.bind(De),iu=De.finishDraft.bind(De),_o=Gd;function Dt(t){"@babel/helpers - typeof";return Dt=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},Dt(t)}function Hn(t,e){if(Dt(t)!=="object"||t===null)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var n=o.call(t,e||"default");if(Dt(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Vn(t){var e=Hn(t,"string");return Dt(e)==="symbol"?e:String(e)}function jn(t,e,o){return e=Vn(e),e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function ja(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),o.push.apply(o,n)}return o}function Do(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?ja(Object(o),!0).forEach(function(n){jn(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):ja(Object(o)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))})}return t}function xe(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 Ga=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Gn=function(){return Math.random().toString(36).substring(7).split("").join(".")},$o={INIT:"@@redux/INIT"+Gn(),REPLACE:"@@redux/REPLACE"+Gn(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Gn()}};function Kd(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 Kn(t,e,o){var n;if(typeof e=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(xe(0));if(typeof e=="function"&&typeof o>"u"&&(o=e,e=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(xe(1));return o(Kn)(t,e)}if(typeof t!="function")throw new Error(xe(2));var i=t,a=e,s=[],l=s,p=!1;function f(){l===s&&(l=s.slice())}function u(){if(p)throw new Error(xe(3));return a}function y(S){if(typeof S!="function")throw new Error(xe(4));if(p)throw new Error(xe(5));var T=!0;return f(),l.push(S),function(){if(T){if(p)throw new Error(xe(6));T=!1,f();var N=l.indexOf(S);l.splice(N,1),s=null}}}function g(S){if(!Kd(S))throw new Error(xe(7));if(typeof S.type>"u")throw new Error(xe(8));if(p)throw new Error(xe(9));try{p=!0,a=i(a,S)}finally{p=!1}for(var T=s=l,R=0;R<T.length;R++){var N=T[R];N()}return S}function x(S){if(typeof S!="function")throw new Error(xe(10));i=S,g({type:$o.REPLACE})}function b(){var S,T=y;return S={subscribe:function(N){if(typeof N!="object"||N===null)throw new Error(xe(11));function _(){N.next&&N.next(u())}_();var k=T(_);return{unsubscribe:k}}},S[Ga]=function(){return this},S}return g({type:$o.INIT}),n={dispatch:g,subscribe:y,getState:u,replaceReducer:x},n[Ga]=b,n}function Zd(t){Object.keys(t).forEach(function(e){var o=t[e],n=o(void 0,{type:$o.INIT});if(typeof n>"u")throw new Error(xe(12));if(typeof o(void 0,{type:$o.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(xe(13))})}function Ka(t){for(var e=Object.keys(t),o={},n=0;n<e.length;n++){var i=e[n];typeof t[i]=="function"&&(o[i]=t[i])}var a=Object.keys(o),s,l;try{Zd(o)}catch(p){l=p}return function(f,u){if(f===void 0&&(f={}),l)throw l;if(0)var y;for(var g=!1,x={},b=0;b<a.length;b++){var S=a[b],T=o[S],R=f[S],N=T(R,u);if(typeof N>"u"){var _=u&&u.type;throw new Error(xe(14))}x[S]=N,g=g||N!==R}return g=g||a.length!==Object.keys(f).length,g?x:f}}function vr(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function Za(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(n){return function(){var i=n.apply(void 0,arguments),a=function(){throw new Error(xe(15))},s={getState:i.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=e.map(function(p){return p(s)});return a=vr.apply(void 0,l)(i.dispatch),Do(Do({},i),{},{dispatch:a})}}}function qa(t){var e=function(n){var i=n.dispatch,a=n.getState;return function(s){return function(l){return typeof l=="function"?l(i,a,t):s(l)}}};return e}var Ya=qa();Ya.withExtraArgument=qa;var Zn=Ya;var ts=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},t(e,o)};return function(e,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");t(e,o);function n(){this.constructor=e}e.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),qd=function(t,e){var o={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(f){return function(u){return p([f,u])}}function p(f){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,i&&(a=f[0]&2?i.return:f[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,f[1])).done)return a;switch(i=0,a&&(f=[f[0]&2,a.value]),f[0]){case 0:case 1:a=f;break;case 4:return o.label++,{value:f[1],done:!1};case 5:o.label++,i=f[1],f=[0];continue;case 7:f=o.ops.pop(),o.trys.pop();continue;default:if(a=o.trys,!(a=a.length>0&&a[a.length-1])&&(f[0]===6||f[0]===2)){o=0;continue}if(f[0]===3&&(!a||f[1]>a[0]&&f[1]<a[3])){o.label=f[1];break}if(f[0]===6&&o.label<a[1]){o.label=a[1],a=f;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(f);break}a[2]&&o.ops.pop(),o.trys.pop();continue}f=e.call(t,o)}catch(u){f=[6,u],i=0}finally{n=a=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},Sr=function(t,e){for(var o=0,n=e.length,i=t.length;o<n;o++,i++)t[i]=e[o];return t},Yd=Object.defineProperty,Xd=Object.defineProperties,Qd=Object.getOwnPropertyDescriptors,Xa=Object.getOwnPropertySymbols,Jd=Object.prototype.hasOwnProperty,ep=Object.prototype.propertyIsEnumerable,Qa=function(t,e,o){return e in t?Yd(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},$t=function(t,e){for(var o in e||(e={}))Jd.call(e,o)&&Qa(t,o,e[o]);if(Xa)for(var n=0,i=Xa(e);n<i.length;n++){var o=i[n];ep.call(e,o)&&Qa(t,o,e[o])}return t},qn=function(t,e){return Xd(t,Qd(e))},tp=function(t,e,o){return new Promise(function(n,i){var a=function(p){try{l(o.next(p))}catch(f){i(f)}},s=function(p){try{l(o.throw(p))}catch(f){i(f)}},l=function(p){return p.done?n(p.value):Promise.resolve(p.value).then(a,s)};l((o=o.apply(t,e)).next())})};var rp=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?vr:vr.apply(null,arguments)},Cu=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function op(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 np=function(t){ts(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var i=t.apply(this,o)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,Sr([void 0],o[0].concat(this)))):new(e.bind.apply(e,Sr([void 0],o.concat(this))))},e}(Array),ip=function(t){ts(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var i=t.apply(this,o)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,Sr([void 0],o[0].concat(this)))):new(e.bind.apply(e,Sr([void 0],o.concat(this))))},e}(Array);function Qn(t){return Je(t)?_o(t,function(){}):t}function ap(t){return typeof t=="boolean"}function sp(){return function(e){return lp(e)}}function lp(t){t===void 0&&(t={});var e=t.thunk,o=e===void 0?!0:e,n=t.immutableCheck,i=n===void 0?!0:n,a=t.serializableCheck,s=a===void 0?!0:a,l=new np;if(o&&(ap(o)?l.push(Zn):l.push(Zn.withExtraArgument(o.extraArgument))),0){if(i)var p;if(s)var f}return l}var Yn=!0;function rs(t){var e=sp(),o=t||{},n=o.reducer,i=n===void 0?void 0:n,a=o.middleware,s=a===void 0?e():a,l=o.devTools,p=l===void 0?!0:l,f=o.preloadedState,u=f===void 0?void 0:f,y=o.enhancers,g=y===void 0?void 0:y,x;if(typeof i=="function")x=i;else if(op(i))x=Ka(i);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var b=s;if(typeof b=="function"&&(b=b(e),!Yn&&!Array.isArray(b)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Yn&&b.some(function(k){return typeof k!="function"}))throw new Error("each middleware provided to configureStore must be a function");var S=Za.apply(void 0,b),T=vr;p&&(T=rp($t({trace:!Yn},typeof p=="object"&&p)));var R=new ip(S),N=R;Array.isArray(g)?N=Sr([S],g):typeof g=="function"&&(N=g(R));var _=T.apply(void 0,N);return Kn(x,u,_)}function Bt(t,e){function o(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(e){var a=e.apply(void 0,n);if(!a)throw new Error("prepareAction did not return an object");return $t($t({type:t,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:t,payload:n[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(n){return n.type===t},o}function os(t){var e={},o=[],n,i={addCase:function(a,s){var l=typeof a=="string"?a:a.type;if(l in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[l]=s,i},addMatcher:function(a,s){return o.push({matcher:a,reducer:s}),i},addDefaultCase:function(a){return n=a,i}};return t(i),[e,o,n]}function cp(t){return typeof t=="function"}function dp(t,e,o,n){o===void 0&&(o=[]);var i=typeof e=="function"?os(e):[e,o,n],a=i[0],s=i[1],l=i[2],p;if(cp(t))p=function(){return Qn(t())};else{var f=Qn(t);p=function(){return f}}function u(y,g){y===void 0&&(y=p());var x=Sr([a[g.type]],s.filter(function(b){var S=b.matcher;return S(g)}).map(function(b){var S=b.reducer;return S}));return x.filter(function(b){return!!b}).length===0&&(x=[l]),x.reduce(function(b,S){if(S)if(gt(b)){var T=b,R=S(T,g);return R===void 0?b:R}else{if(Je(b))return _o(b,function(N){return S(N,g)});var R=S(b,g);if(R===void 0){if(b===null)return b;throw Error("A case reducer on a non-draftable value must not return undefined")}return R}return b},y)}return u.getInitialState=p,u}function pp(t,e){return t+"/"+e}function ns(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:Qn(t.initialState),n=t.reducers||{},i=Object.keys(n),a={},s={},l={};i.forEach(function(u){var y=n[u],g=pp(e,u),x,b;"reducer"in y?(x=y.reducer,b=y.prepare):x=y,a[u]=x,s[g]=x,l[u]=b?Bt(g,b):Bt(g)});function p(){var u=typeof t.extraReducers=="function"?os(t.extraReducers):[t.extraReducers],y=u[0],g=y===void 0?{}:y,x=u[1],b=x===void 0?[]:x,S=u[2],T=S===void 0?void 0:S,R=$t($t({},g),s);return dp(o,function(N){for(var _ in R)N.addCase(_,R[_]);for(var k=0,V=b;k<V.length;k++){var Re=V[k];N.addMatcher(Re.matcher,Re.reducer)}T&&N.addDefaultCase(T)})}var f;return{name:e,reducer:function(u,y){return f||(f=p()),f(u,y)},actions:l,caseReducers:a,getInitialState:function(){return f||(f=p()),f.getInitialState()}}}var fp="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",up=function(t){t===void 0&&(t=21);for(var e="",o=t;o--;)e+=fp[Math.random()*64|0];return e},hp=["name","message","stack","code"],Xn=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),Ja=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),mp=function(t){if(typeof t=="object"&&t!==null){for(var e={},o=0,n=hp;o<n.length;o++){var i=n[o];typeof t[i]=="string"&&(e[i]=t[i])}return e}return{message:String(t)}},Ru=function(){function t(e,o,n){var i=Bt(e+"/fulfilled",function(u,y,g,x){return{payload:u,meta:qn($t({},x||{}),{arg:g,requestId:y,requestStatus:"fulfilled"})}}),a=Bt(e+"/pending",function(u,y,g){return{payload:void 0,meta:qn($t({},g||{}),{arg:y,requestId:u,requestStatus:"pending"})}}),s=Bt(e+"/rejected",function(u,y,g,x,b){return{payload:x,error:(n&&n.serializeError||mp)(u||"Rejected"),meta:qn($t({},b||{}),{arg:g,requestId:y,rejectedWithValue:!!x,requestStatus:"rejected",aborted:u?.name==="AbortError",condition:u?.name==="ConditionError"})}}),l=!1,p=typeof AbortController<"u"?AbortController:function(){function u(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return u.prototype.abort=function(){},u}();function f(u){return function(y,g,x){var b=n?.idGenerator?n.idGenerator(u):up(),S=new p,T,R=!1;function N(k){T=k,S.abort()}var _=function(){return tp(this,null,function(){var k,V,Re,se,jr,Ve,m;return qd(this,function(v){switch(v.label){case 0:return v.trys.push([0,4,,5]),se=(k=n?.condition)==null?void 0:k.call(n,u,{getState:g,extra:x}),gp(se)?[4,se]:[3,2];case 1:se=v.sent(),v.label=2;case 2:if(se===!1||S.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return R=!0,jr=new Promise(function(L,q){return S.signal.addEventListener("abort",function(){return q({name:"AbortError",message:T||"Aborted"})})}),y(a(b,u,(V=n?.getPendingMeta)==null?void 0:V.call(n,{requestId:b,arg:u},{getState:g,extra:x}))),[4,Promise.race([jr,Promise.resolve(o(u,{dispatch:y,getState:g,extra:x,requestId:b,signal:S.signal,abort:N,rejectWithValue:function(L,q){return new Xn(L,q)},fulfillWithValue:function(L,q){return new Ja(L,q)}})).then(function(L){if(L instanceof Xn)throw L;return L instanceof Ja?i(L.payload,b,u,L.meta):i(L,b,u)})])];case 3:return Re=v.sent(),[3,5];case 4:return Ve=v.sent(),Re=Ve instanceof Xn?s(null,b,u,Ve.payload,Ve.meta):s(Ve,b,u),[3,5];case 5:return m=n&&!n.dispatchConditionRejection&&s.match(Re)&&Re.meta.condition,m||y(Re),[2,Re]}})})}();return Object.assign(_,{abort:N,requestId:b,arg:u,unwrap:function(){return _.then(yp)}})}}return Object.assign(f,{pending:a,rejected:s,fulfilled:i,typePrefix:e})}return t.withTypes=function(){return t},t}();function yp(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function gp(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var is="listener",as="completed",ss="cancelled",Nu="task-"+ss,Tu="task-"+as,Lu=is+"-"+ss,Iu=is+"-"+as;var Jn="listenerMiddleware";var Pu=Bt(Jn+"/add"),ku=Bt(Jn+"/removeAll"),_u=Bt(Jn+"/remove");var es,Du=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(es||(es=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},bp=function(t){return function(e){setTimeout(e,t)}},$u=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:bp(10);Wa();window.ftReduxStores||(window.ftReduxStores={});var ls=class t{static get(e){var o;let n=typeof e=="string"?e:e.name,i=typeof e=="string"?void 0:e,a=window.ftReduxStores[n];if(Zr(a))return a;if(i==null)return;let s=ns({...i,reducers:(o=i.reducers)!==null&&o!==void 0?o:{}}),l=rs({reducer:(p,f)=>f.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof f.type=="string"&&f.type.startsWith("DEFAULT_VALUE_SETTER__")?{...p,...f.overwrites}:s.reducer(p,f)});return window.ftReduxStores[i.name]=new t(s,l)}constructor(e,o){this.reduxSlice=e,this.reduxStore=o,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new wo,this.actions=new Proxy(this.reduxSlice.actions,{get:(n,i,a)=>{let s=i,l=n[s];return l?(...p)=>{let f=l(...p);return this.reduxStore.dispatch(f),f}:p=>{this.setState({[s]:p})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var Fo=h(w());var Bo=class extends ct{async listMySearches(){let e=P.getState().session;return e?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var Mo=class extends ct{async listMyBookmarks(){let e=P.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var vp="ft-user-assets",Uo=Fo.FtReduxStore.get({name:vp,initialState:{savedSearches:void 0,bookmarks:void 0}}),ei=class{constructor(){this.currentSession=P.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Mo,this.savedSearchesService=new Bo,P.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:o}=P.getState();(0,Fo.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Uo.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Uo.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Uo.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let o=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Uo.actions.bookmarks(o)}}},cs=new ei;var ti=class{addCommand(e,o=!1){P.commands.add(e,o)}consumeCommand(e){return P.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new ti;var ds=h(w()),ri=class{highlightHtml(e,o){(0,ds.highlightHtml)(e,o)}};window.FluidTopicsHighlightHtmlService=new ri;var ps=h(w());var oi=class{isDate(e){var o,n,i,a;return(a=(i=((n=(o=P.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]).find(l=>l.key===e))===null||i===void 0?void 0:i.date)!==null&&a!==void 0?a:!1}format(e,o){var n,i,a;return ps.DateFormatter.format(e,(n=o?.locale)!==null&&n!==void 0?n:P.getState().uiLocale,(i=o?.longFormat)!==null&&i!==void 0?i:!1,(a=o?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new oi;(0,fs.customElement)("ft-app-context")(te);var zo=class extends ct{async launchSearch(e){return this.cache.get(this.hash(e),async()=>(await this.awaitApi).search(e),2*60*1e3)}async launchSuggest(e){return this.cache.get(this.hash(e),async()=>(await this.awaitApi).getSuggestions(e),2*60*1e3)}async getAvailableSearchLocales(){return this.cache.get("available-locales",async()=>(await this.awaitApi).getAvailableSearchLocales())}hash(e){return""+Array.from(JSON.stringify(e)).reduce((o,n)=>0|31*o+n.charCodeAt(0),0)}};var eo=t=>t.request.virtualField===hr.TITLE_ONLY&&t.request.scope===mr.DOCUMENTS,Wo=class t extends Event{constructor(){super(t.eventName)}};Wo.eventName="search-context-clear-all-filters";var Jr=class t{static build(e,o){return new t(Qi(e.trim()||"context"),o)}constructor(e,o){this.store=e,this.ignoreEmptyQuery=!1,this.openExternalDocumentInNewTab=!1,this.localesDebouncer=new pt.Debouncer(10),this.searchDebouncer=new pt.Debouncer(100),this.suggestDebouncer=new pt.Debouncer(300),this.service=o??new zo}async initService(){return this.updateLocales(),this.launchSearch()}setQuery(e){this.store.actions.setRequestQuery(e),this.store.actions.setLiveQuery(e),this.store.actions.setPageNumber(1),this.launchSearch()}setContentLocale(e){let o=this.store.getState().locales,n=this.store.getState().request.contentLocale;if(e!=n){if(o){let i=a=>o.some(s=>s.lang==a);i(e)||(e=i(n)?n:o[0].lang)}this.store.actions.setRequestContentLocale(e),this.store.actions.setPageNumber(1),this.store.actions.setRequestFilters([]),this.launchSearch()}return e}setPageSize(e){this.store.actions.setPageSize(e),this.launchSearch()}setPageNumber(e){this.store.actions.setPageNumber(e),this.launchSearch()}setSort(e){this.store.actions.setRequestSort(e),this.store.actions.setPageNumber(1),this.launchSearch()}setFilters(e){let o=e.filter(n=>n.values.length>0);this.store.actions.setRequestFilters(o),this.store.actions.setPageNumber(1),o.forEach(n=>{this.facetIds.includes(n.key)||(this.facetIds=[...this.facetIds,n.key])}),this.launchSearch()}setClusterSortCriterion(e){this.store.actions.setRequestClusterSortCriterion(e),this.launchSearch()}setSearchInDocumentTitlesOnly(e){e?(this.store.actions.setRequestVirtualField(hr.TITLE_ONLY),this.store.actions.setRequestScope(mr.DOCUMENTS)):(this.store.actions.setRequestVirtualField(hr.EVERYWHERE),this.store.actions.setRequestScope(mr.DEFAULT)),this.launchSearch()}setVirtualField(e){this.store.actions.setRequestVirtualField(e),this.launchSearch()}get searchInDocumentTitlesOnly(){return eo(this.store.getState())}get periodFilter(){return this.store.getState().request.periodFilter}clearAllFilters(){this.setFilters([]),this.store.eventBus.dispatchEvent(new Wo)}addFacet(e){this.facetIds=[...this.facetIds,e],this.launchSearch()}replaceFacet(e,o){let n=this.facetIds.filter(i=>i!=e);o&&n.push(o),this.facetIds=n,this.launchSearch()}get facetIds(){return this.store.getState().request.facets.map(e=>e.id)}set facetIds(e){let n=[...new Set(e)].map(i=>({id:i}));this.store.actions.setRequestFacets(n)}setFilter(e,o){let n=this.store.getState().request.filters,i={key:e,values:o,negative:!1},a=[...n.filter(s=>s.key!==e),i];this.setFilters(a)}setLiveQuery(e){this.store.actions.setLiveQuery(e),this.launchSuggest()}setRequest(e){this.store.actions.setRequest(e),this.store.actions.setLiveQuery(e.query),this.store.actions.setPageNumber(1),this.launchSearch()}setScope(e){this.store.actions.setRequestScope(e),this.launchSearch()}setIgnoreEmptyQuery(e){this.ignoreEmptyQuery=e,this.launchSearch()}setOpenExternalDocumentInNewTab(e){this.openExternalDocumentInNewTab=e}setPeriodFilter(e){this.store.actions.setRequestPeriodFilter(e),this.store.actions.setPageNumber(1),this.launchSearch()}updateLocales(){return this.localesDebouncer.run(async()=>this.store.actions.setLocales((await this.service.getAvailableSearchLocales()).contentLocales))}launchSearch(){return this.searchDebouncer.run(()=>this.fetchSearchData())}launchSuggest(){return this.suggestDebouncer.run(()=>this.fetchSuggestData())}async fetchSearchData(){var e,o;try{(e=this.cancelableSearch)===null||e===void 0||e.cancel();let n=this.store.getState().request;if(this.store.actions.setPaging(void 0),this.ignoreEmptyQuery&&n.query.length==0)this.store.actions.setResults(void 0),this.store.actions.setFacets(void 0),this.store.actions.setSpellcheck(void 0);else{this.cancelableSearch=(0,pt.cancelable)(this.service.launchSearch(n));let i=await this.cancelableSearch;if(i.paging.currentPage<=1)this.store.actions.setResults(i.results),this.store.actions.setFacets(i.facets),this.store.actions.setSpellcheck(i.spellcheck);else{let a=((o=this.store.getState().results)!==null&&o!==void 0?o:[]).concat(i.results);this.store.actions.setResults(a)}this.store.actions.setPaging(i.paging)}}catch(n){!(n instanceof pt.CanceledPromiseError)&&this.errorHandler&&this.errorHandler(n)}}async fetchSuggestData(){var e;try{let o=this.store.getState(),n=o.request,i={input:o.liveQuery,filters:n.filters,sort:n.sort,contentLocale:n.contentLocale,scope:n.scope};(e=this.cancelableSuggest)===null||e===void 0||e.cancel(),this.cancelableSuggest=(0,pt.cancelable)(this.service.launchSuggest(i));let a=await this.cancelableSuggest;this.store.actions.setSuggestResults(a.suggestions)}catch(o){!(o instanceof pt.CanceledPromiseError)&&this.errorHandler&&this.errorHandler(o)}}clear(){this.store.clear()}};var Sp=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},ii=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},ni=Symbol("registerInterval");function Op(t){var e;class o extends t{constructor(){super(...arguments),this[e]=0}setSearchStateManager(i){this.clearStateManager(),this.stateManager=i,this.addStore(i.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[ni]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[ni]):this.dispatchEvent(new ii)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=ni,Sp([(0,hs.state)()],o.prototype,"stateManager",void 0),o}var Mt=class extends Op(us.FtLitElementRedux){};var Ii=h(w());var ln=h(I()),we=h(H()),Rc=h(Ut()),dn=h(w());var ws=h(w());var Cs=h(I()),ye=h(H()),Es=h(Ut()),to=h(w());var Ss=h(I()),ne=h(w()),ys=ne.FtCssVariableFactory.extend("--ft-ripple-color","",ne.designSystemVariables.colorContent),M={color:ys,backgroundColor:ne.FtCssVariableFactory.extend("--ft-ripple-background-color","",ys),opacityContentOnSurfacePressed:ne.FtCssVariableFactory.external(ne.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:ne.FtCssVariableFactory.external(ne.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:ne.FtCssVariableFactory.external(ne.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:ne.FtCssVariableFactory.external(ne.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:ne.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},gs=ne.FtCssVariableFactory.extend("--ft-ripple-color","",ne.designSystemVariables.colorPrimary),bs={color:gs,backgroundColor:ne.FtCssVariableFactory.extend("--ft-ripple-background-color","",gs)},xs=ne.FtCssVariableFactory.extend("--ft-ripple-color","",ne.designSystemVariables.colorSecondary),vs={color:xs,backgroundColor:ne.FtCssVariableFactory.extend("--ft-ripple-background-color","",xs)},Os=Ss.css`
|
|
14
|
+
`}update(e){super.update(e),e.has("baseUrl")&&(P.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&P.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("uiLocale")&&P.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&P.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&P.actions.noCustom(this.noCustom),e.has("editorMode")&&P.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&P.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&P.actions.session(this.session),e.has("availableUiLocales")&&P.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(o=>yr.addContext(o)),e.has("openExternalDocumentInNewTab")&&P.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&P.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&P.actions.forcedOffline(this.forcedOffline),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){!this.withManualResources&&this.apiProvider()&&(this.session==null&&this.updateSession(),this.availableUiLocales==null&&this.updateUiLocales(),this.metadataConfiguration==null&&this.updateMetadataConfiguration())}async updateSession(){this.session=await this.cache.get("session",async()=>{let e=await this.apiProvider().getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},e.idleTimeoutInMillis),e})}async updateUiLocales(){this.availableUiLocales=await this.cache.get("availableUiLocales",()=>this.apiProvider().getAvailableUiLocales())}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}};te.elementDefinitions={};te.styles=ga;Se([(0,je.property)()],te.prototype,"baseUrl",void 0);Se([(0,je.property)()],te.prototype,"apiIntegrationIdentifier",void 0);Se([(0,je.property)()],te.prototype,"uiLocale",void 0);Se([(0,Qe.jsonProperty)(null)],te.prototype,"availableUiLocales",void 0);Se([(0,Qe.jsonProperty)(null)],te.prototype,"metadataConfiguration",void 0);Se([(0,je.property)({type:Boolean})],te.prototype,"editorMode",void 0);Se([(0,je.property)({type:Boolean})],te.prototype,"noCustom",void 0);Se([(0,je.property)({type:Boolean})],te.prototype,"openExternalDocumentInNewTab",void 0);Se([(0,je.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],te.prototype,"noCustomComponent",void 0);Se([(0,je.property)({type:Boolean})],te.prototype,"withManualResources",void 0);Se([(0,je.property)({type:Boolean})],te.prototype,"navigatorOnline",void 0);Se([(0,je.property)({type:Boolean})],te.prototype,"forcedOffline",void 0);Se([(0,je.property)({type:Object})],te.prototype,"apiProvider",void 0);Se([(0,Qe.jsonProperty)([])],te.prototype,"messageContexts",void 0);Se([(0,Qe.jsonProperty)(void 0)],te.prototype,"session",void 0);var xp=h(H());function _d(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var o,n,i;if(Array.isArray(t)){if(o=t.length,o!=e.length)return!1;for(n=o;n--!==0;)if(!Eo(t[n],e[n]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;for(n of t.entries())if(!Eo(n[1],e.get(n[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if(i=Object.keys(t),o=i.length,o!==Object.keys(e).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(e,i[n]))return!1;for(n=o;n--!==0;){var a=i[n];if(!Eo(t[a],e[a]))return!1}return!0}return t!==t&&e!==e}function Eo(t,e){try{return _d(t,e)}catch{return!1}}function Nn(t,e){return!Eo(t,e)}var Dd=h(H(),1);var wo=class{constructor(){this.queue=[]}add(e,o=!1){o&&(this.queue=this.queue.filter(n=>n.type!==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}};var Kr=h(H(),1);var Sa=h(H(),1);function Oa(t,e){let o=()=>JSON.parse(JSON.stringify(t));return(0,Sa.property)({type:Object,converter:{fromAttribute:n=>{if(n==null)return o();try{return JSON.parse(n)}catch{return o()}},toAttribute:n=>JSON.stringify(n)},hasChanged:Nn,...e??{}})}var Ao=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,o){return this.callbacks=[e],this.debounce(o)}queue(e,o){return this.callbacks.push(e),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((o,n)=>{this.resolvePromise=o,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,o;let n=[...this.callbacks];this.callbacks=[];let i=(e=this.rejectPromise)!==null&&e!==void 0?e:()=>null,a=(o=this.resolvePromise)!==null&&o!==void 0?o:()=>null;this.clearPromise();for(let s of n)try{await s()}catch(l){i(l);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 Ea=h(I(),1);var Ro=window,$d=Ro.ShadowRoot&&(Ro.ShadyCSS===void 0||Ro.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Wf=Symbol();var Ca=(t,e)=>{$d?t.adoptedStyleSheets=e.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet):e.forEach(o=>{let n=document.createElement("style"),i=Ro.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=o.cssText,t.appendChild(n)})};var No=class extends Ea.LitElement{createRenderRoot(){let e=this.constructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,Object.entries(e.elementDefinitions).forEach(([i,a])=>e.registry.define(i,a)));let o={...e.shadowRootOptions,customElements:e.registry},n=this.renderOptions.creationScope=this.attachShadow(o);return Ca(n,e.elementStyles),n}};var To=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},Na,wa=Symbol("constructorPrototype"),Aa=Symbol("constructorName"),Ta=Symbol("exportpartsDebouncer"),Ra=Symbol("dynamicDependenciesLoaded"),It=class extends No{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Na]=new Ao(5),this[Aa]=this.constructor.name,this[wa]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Aa]&&Object.setPrototypeOf(this,this[wa])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(o){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",o)}let e=this.constructor;e[Ra]||(e[Ra]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate()})}contentAvailableCallback(e){}applyCustomStylesheet(e){var o,n,i;if(((n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(e.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 e,o,n;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(n=(o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)!==null&&n!==void 0&&n)&&this[Ta].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(e){var o,n,i,a,s,l;let p=g=>g!=null&&g.trim().length>0,f=e.filter(p).map(g=>g.trim());if(f.length===0){this.removeAttribute("exportparts");return}let u=new Set;for(let g of(n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let x=(a=(i=g.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&a!==void 0?a:[],b=(l=(s=g.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(S=>S.split(":")[1]))!==null&&l!==void 0?l:[];new Array(...x,...b).filter(p).map(S=>S.trim()).forEach(S=>u.add(S))}if(u.size===0){this.removeAttribute("exportparts");return}let y=[...u.values()].flatMap(g=>f.map(x=>`${g}:${x}--${g}`));this.setAttribute("exportparts",[...this.part,...y].join(", "))}};Na=Ta;To([(0,Kr.property)()],It.prototype,"exportpartsPrefix",void 0);To([Oa([])],It.prototype,"exportpartsPrefixes",void 0);To([(0,Kr.property)()],It.prototype,"customStylesheet",void 0);To([(0,Kr.state)()],It.prototype,"useAdoptedStyleSheets",void 0);function Zr(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var La,Ia,Pa,Lo=Symbol("internalReduxEventsUnsubscribers"),Pt=Symbol("internalStoresUnsubscribers"),Xt=Symbol("internalStores"),qr=class extends It{constructor(){super(...arguments),this[La]=new Map,this[Ia]=new Map,this[Pa]=[]}get reduxConstructor(){return this.constructor}update(e){super.update(e),[...this.reduxConstructor.reduxReactiveProperties].some(o=>e.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[Xt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Xt].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[Xt].get(e)}addStore(e,o){var n;o=(n=o??(Zr(e)?e.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(o),this.setupStore(o,e)}removeStore(e){let o=typeof e=="string"?e:e.name;this.unsubscribeFromStore(o),this[Xt].delete(o)}setupStore(e,o){this[Xt].set(e,o),this.subscribeToStore(e,o),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Xt].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 i=this.getStore(e.store);i&&(e.store?this[Pt].has(e.store):this[Pt].size>0)&&(this[o]=e.selector(i.getState(),this))}})}subscribeToStore(e,o){var n;this[Pt].set(e,o.subscribe(()=>this.updateFromStores())),Zr(o)&&o.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((i,a)=>{if(typeof this[a]=="function"&&(!i.store||o.name===i.store)){let s=l=>this[a](l);o.eventBus.addEventListener(i.eventName,s),this[Lo].push(()=>o.eventBus.removeEventListener(i.eventName,s))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[Pt].forEach((e,o)=>this.unsubscribeFromStore(o)),this[Lo].forEach(e=>e()),this[Lo]=[]}unsubscribeFromStore(e){this[Pt].has(e)&&this[Pt].get(e)(),this[Pt].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};La=Pt,Ia=Xt,Pa=Lo;qr.reduxProperties=new Map;qr.reduxReactiveProperties=new Set;qr.reduxEventListeners=new Map;function Ge(t){for(var e=arguments.length,o=Array(e>1?e-1:0),n=1;n<e;n++)o[n-1]=arguments[n];if(0)var i,a;throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function gt(t){return!!t&&!!t[Y]}function Je(t){var e;return!!t&&(function(o){if(!o||typeof o!="object")return!1;var n=Object.getPrototypeOf(o);if(n===null)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===Vd}(t)||Array.isArray(t)||!!t[Ua]||!!(!((e=t.constructor)===null||e===void 0)&&e[Ua])||Bn(t)||Mn(t))}function Qt(t,e,o){o===void 0&&(o=!1),xr(t)===0?(o?Object.keys:br)(t).forEach(function(n){o&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,i){return e(i,n,t)})}function xr(t){var e=t[Y];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Bn(t)?2:Mn(t)?3:0}function gr(t,e){return xr(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Bd(t,e){return xr(t)===2?t.get(e):t[e]}function Fa(t,e,o){var n=xr(t);n===2?t.set(e,o):n===3?t.add(o):t[e]=o}function za(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function Bn(t){return Wd&&t instanceof Map}function Mn(t){return Hd&&t instanceof Set}function kt(t){return t.o||t.t}function Un(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Va(t);delete e[Y];for(var o=br(e),n=0;n<o.length;n++){var i=o[n],a=e[i];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:t[i]})}return Object.create(Object.getPrototypeOf(t),e)}function Fn(t,e){return e===void 0&&(e=!1),zn(t)||gt(t)||!Je(t)||(xr(t)>1&&(t.set=t.add=t.clear=t.delete=Md),Object.freeze(t),e&&Qt(t,function(o,n){return Fn(n,!0)},!0)),t}function Md(){Ge(2)}function zn(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function dt(t){var e=$n[t];return e||Ge(18,t),e}function Ud(t,e){$n[t]||($n[t]=e)}function kn(){return Xr}function Tn(t,e){e&&(dt("Patches"),t.u=[],t.s=[],t.v=e)}function Io(t){_n(t),t.p.forEach(Fd),t.p=null}function _n(t){t===Xr&&(Xr=t.l)}function ka(t){return Xr={p:[],l:Xr,h:t,m:!0,_:0}}function Fd(t){var e=t[Y];e.i===0||e.i===1?e.j():e.g=!0}function Ln(t,e){e._=e.p.length;var o=e.p[0],n=t!==void 0&&t!==o;return e.h.O||dt("ES5").S(e,t,n),n?(o[Y].P&&(Io(e),Ge(4)),Je(t)&&(t=Po(e,t),e.l||ko(e,t)),e.u&&dt("Patches").M(o[Y].t,t,e.u,e.s)):t=Po(e,o,[]),Io(e),e.u&&e.v(e.u,e.s),t!==Ha?t:void 0}function Po(t,e,o){if(zn(e))return e;var n=e[Y];if(!n)return Qt(e,function(l,p){return _a(t,n,e,l,p,o)},!0),e;if(n.A!==t)return e;if(!n.P)return ko(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=Un(n.k):n.o,a=i,s=!1;n.i===3&&(a=new Set(i),i.clear(),s=!0),Qt(a,function(l,p){return _a(t,n,i,l,p,o,s)}),ko(t,i,!1),o&&t.u&&dt("Patches").N(n,o,t.u,t.s)}return n.o}function _a(t,e,o,n,i,a,s){if(gt(i)){var l=Po(t,i,a&&e&&e.i!==3&&!gr(e.R,n)?a.concat(n):void 0);if(Fa(o,n,l),!gt(l))return;t.m=!1}else s&&o.add(i);if(Je(i)&&!zn(i)){if(!t.h.D&&t._<1)return;Po(t,i),e&&e.A.l||ko(t,i)}}function ko(t,e,o){o===void 0&&(o=!1),!t.l&&t.h.D&&t.m&&Fn(e,o)}function In(t,e){var o=t[Y];return(o?kt(o):t)[e]}function Da(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 _t(t){t.P||(t.P=!0,t.l&&_t(t.l))}function Pn(t){t.o||(t.o=Un(t.t))}function Dn(t,e,o){var n=Bn(e)?dt("MapSet").F(e,o):Mn(e)?dt("MapSet").T(e,o):t.O?function(i,a){var s=Array.isArray(i),l={i:s?1:0,A:a?a.A:kn(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},p=l,f=Qr;s&&(p=[l],f=Yr);var u=Proxy.revocable(p,f),y=u.revoke,g=u.proxy;return l.k=g,l.j=y,g}(e,o):dt("ES5").J(e,o);return(o?o.A:kn()).p.push(n),n}function zd(t){return gt(t)||Ge(22,t),function e(o){if(!Je(o))return o;var n,i=o[Y],a=xr(o);if(i){if(!i.P&&(i.i<4||!dt("ES5").K(i)))return i.t;i.I=!0,n=$a(o,a),i.I=!1}else n=$a(o,a);return Qt(n,function(s,l){i&&Bd(i.t,s)===l||Fa(n,s,e(l))}),a===3?new Set(n):n}(t)}function $a(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Un(t)}function Wa(){function t(s,l){var p=a[s];return p?p.enumerable=l:a[s]=p={configurable:!0,enumerable:l,get:function(){var f=this[Y];return Qr.get(f,s)},set:function(f){var u=this[Y];Qr.set(u,s,f)}},p}function e(s){for(var l=s.length-1;l>=0;l--){var p=s[l][Y];if(!p.P)switch(p.i){case 5:n(p)&&_t(p);break;case 4:o(p)&&_t(p)}}}function o(s){for(var l=s.t,p=s.k,f=br(p),u=f.length-1;u>=0;u--){var y=f[u];if(y!==Y){var g=l[y];if(g===void 0&&!gr(l,y))return!0;var x=p[y],b=x&&x[Y];if(b?b.t!==g:!za(x,g))return!0}}var S=!!l[Y];return f.length!==br(l).length+(S?0:1)}function n(s){var l=s.k;if(l.length!==s.t.length)return!0;var p=Object.getOwnPropertyDescriptor(l,l.length-1);if(p&&!p.get)return!0;for(var f=0;f<l.length;f++)if(!l.hasOwnProperty(f))return!0;return!1}function i(s){s.g&&Ge(3,JSON.stringify(kt(s)))}var a={};Ud("ES5",{J:function(s,l){var p=Array.isArray(s),f=function(y,g){if(y){for(var x=Array(g.length),b=0;b<g.length;b++)Object.defineProperty(x,""+b,t(b,!0));return x}var S=Va(g);delete S[Y];for(var T=br(S),R=0;R<T.length;R++){var N=T[R];S[N]=t(N,y||!!S[N].enumerable)}return Object.create(Object.getPrototypeOf(g),S)}(p,s),u={i:p?5:4,A:l?l.A:kn(),P:!1,I:!1,R:{},l,t:s,k:f,o:null,g:!1,C:!1};return Object.defineProperty(f,Y,{value:u,writable:!0}),f},S:function(s,l,p){p?gt(l)&&l[Y].A===s&&e(s.p):(s.u&&function f(u){if(u&&typeof u=="object"){var y=u[Y];if(y){var g=y.t,x=y.k,b=y.R,S=y.i;if(S===4)Qt(x,function(k){k!==Y&&(g[k]!==void 0||gr(g,k)?b[k]||f(x[k]):(b[k]=!0,_t(y)))}),Qt(g,function(k){x[k]!==void 0||gr(x,k)||(b[k]=!1,_t(y))});else if(S===5){if(n(y)&&(_t(y),b.length=!0),x.length<g.length)for(var T=x.length;T<g.length;T++)b[T]=!1;else for(var R=g.length;R<x.length;R++)b[R]=!0;for(var N=Math.min(x.length,g.length),_=0;_<N;_++)x.hasOwnProperty(_)||(b[_]=!0),b[_]===void 0&&f(x[_])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?o(s):n(s)}})}var Ba,Xr,Wn=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Wd=typeof Map<"u",Hd=typeof Set<"u",Ma=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Ha=Wn?Symbol.for("immer-nothing"):((Ba={})["immer-nothing"]=!0,Ba),Ua=Wn?Symbol.for("immer-draftable"):"__$immer_draftable",Y=Wn?Symbol.for("immer-state"):"__$immer_state";var Vd=""+Object.prototype.constructor,br=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Va=Object.getOwnPropertyDescriptors||function(t){var e={};return br(t).forEach(function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)}),e},$n={},Qr={get:function(t,e){if(e===Y)return t;var o=kt(t);if(!gr(o,e))return function(i,a,s){var l,p=Da(a,s);return p?"value"in p?p.value:(l=p.get)===null||l===void 0?void 0:l.call(i.k):void 0}(t,o,e);var n=o[e];return t.I||!Je(n)?n:n===In(t.t,e)?(Pn(t),t.o[e]=Dn(t.A.h,n,t)):n},has:function(t,e){return e in kt(t)},ownKeys:function(t){return Reflect.ownKeys(kt(t))},set:function(t,e,o){var n=Da(kt(t),e);if(n?.set)return n.set.call(t.k,o),!0;if(!t.P){var i=In(kt(t),e),a=i?.[Y];if(a&&a.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(za(o,i)&&(o!==void 0||gr(t.t,e)))return!0;Pn(t),_t(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 In(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,Pn(t),_t(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=kt(t),n=Reflect.getOwnPropertyDescriptor(o,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:o[e]}},defineProperty:function(){Ge(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Ge(12)}},Yr={};Qt(Qr,function(t,e){Yr[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),Yr.deleteProperty=function(t,e){return Yr.set.call(this,t,e,void 0)},Yr.set=function(t,e,o){return Qr.set.call(this,t[0],e,o,t[0])};var jd=function(){function t(o){var n=this;this.O=Ma,this.D=!0,this.produce=function(i,a,s){if(typeof i=="function"&&typeof a!="function"){var l=a;a=i;var p=n;return function(S){var T=this;S===void 0&&(S=l);for(var R=arguments.length,N=Array(R>1?R-1:0),_=1;_<R;_++)N[_-1]=arguments[_];return p.produce(S,function(k){var V;return(V=a).call.apply(V,[T,k].concat(N))})}}var f;if(typeof a!="function"&&Ge(6),s!==void 0&&typeof s!="function"&&Ge(7),Je(i)){var u=ka(n),y=Dn(n,i,void 0),g=!0;try{f=a(y),g=!1}finally{g?Io(u):_n(u)}return typeof Promise<"u"&&f instanceof Promise?f.then(function(S){return Tn(u,s),Ln(S,u)},function(S){throw Io(u),S}):(Tn(u,s),Ln(f,u))}if(!i||typeof i!="object"){if((f=a(i))===void 0&&(f=i),f===Ha&&(f=void 0),n.D&&Fn(f,!0),s){var x=[],b=[];dt("Patches").M(i,f,x,b),s(x,b)}return f}Ge(21,i)},this.produceWithPatches=function(i,a){if(typeof i=="function")return function(f){for(var u=arguments.length,y=Array(u>1?u-1:0),g=1;g<u;g++)y[g-1]=arguments[g];return n.produceWithPatches(f,function(x){return i.apply(void 0,[x].concat(y))})};var s,l,p=n.produce(i,a,function(f,u){s=f,l=u});return typeof Promise<"u"&&p instanceof Promise?p.then(function(f){return[f,s,l]}):[p,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){Je(o)||Ge(8),gt(o)&&(o=zd(o));var n=ka(this),i=Dn(this,o,void 0);return i[Y].C=!0,_n(n),i},e.finishDraft=function(o,n){var i=o&&o[Y],a=i.A;return Tn(a,n),Ln(void 0,a)},e.setAutoFreeze=function(o){this.D=o},e.setUseProxies=function(o){o&&!Ma&&Ge(20),this.O=o},e.applyPatches=function(o,n){var i;for(i=n.length-1;i>=0;i--){var a=n[i];if(a.path.length===0&&a.op==="replace"){o=a.value;break}}i>-1&&(n=n.slice(i+1));var s=dt("Patches").$;return gt(o)?s(o,n):this.produce(o,function(l){return s(l,n)})},t}(),De=new jd,Gd=De.produce,eu=De.produceWithPatches.bind(De),tu=De.setAutoFreeze.bind(De),ru=De.setUseProxies.bind(De),ou=De.applyPatches.bind(De),nu=De.createDraft.bind(De),iu=De.finishDraft.bind(De),_o=Gd;function Dt(t){"@babel/helpers - typeof";return Dt=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},Dt(t)}function Hn(t,e){if(Dt(t)!=="object"||t===null)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var n=o.call(t,e||"default");if(Dt(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Vn(t){var e=Hn(t,"string");return Dt(e)==="symbol"?e:String(e)}function jn(t,e,o){return e=Vn(e),e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function ja(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),o.push.apply(o,n)}return o}function Do(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?ja(Object(o),!0).forEach(function(n){jn(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):ja(Object(o)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))})}return t}function xe(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 Ga=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Gn=function(){return Math.random().toString(36).substring(7).split("").join(".")},$o={INIT:"@@redux/INIT"+Gn(),REPLACE:"@@redux/REPLACE"+Gn(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Gn()}};function Kd(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 Kn(t,e,o){var n;if(typeof e=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(xe(0));if(typeof e=="function"&&typeof o>"u"&&(o=e,e=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(xe(1));return o(Kn)(t,e)}if(typeof t!="function")throw new Error(xe(2));var i=t,a=e,s=[],l=s,p=!1;function f(){l===s&&(l=s.slice())}function u(){if(p)throw new Error(xe(3));return a}function y(S){if(typeof S!="function")throw new Error(xe(4));if(p)throw new Error(xe(5));var T=!0;return f(),l.push(S),function(){if(T){if(p)throw new Error(xe(6));T=!1,f();var N=l.indexOf(S);l.splice(N,1),s=null}}}function g(S){if(!Kd(S))throw new Error(xe(7));if(typeof S.type>"u")throw new Error(xe(8));if(p)throw new Error(xe(9));try{p=!0,a=i(a,S)}finally{p=!1}for(var T=s=l,R=0;R<T.length;R++){var N=T[R];N()}return S}function x(S){if(typeof S!="function")throw new Error(xe(10));i=S,g({type:$o.REPLACE})}function b(){var S,T=y;return S={subscribe:function(N){if(typeof N!="object"||N===null)throw new Error(xe(11));function _(){N.next&&N.next(u())}_();var k=T(_);return{unsubscribe:k}}},S[Ga]=function(){return this},S}return g({type:$o.INIT}),n={dispatch:g,subscribe:y,getState:u,replaceReducer:x},n[Ga]=b,n}function Zd(t){Object.keys(t).forEach(function(e){var o=t[e],n=o(void 0,{type:$o.INIT});if(typeof n>"u")throw new Error(xe(12));if(typeof o(void 0,{type:$o.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(xe(13))})}function Ka(t){for(var e=Object.keys(t),o={},n=0;n<e.length;n++){var i=e[n];typeof t[i]=="function"&&(o[i]=t[i])}var a=Object.keys(o),s,l;try{Zd(o)}catch(p){l=p}return function(f,u){if(f===void 0&&(f={}),l)throw l;if(0)var y;for(var g=!1,x={},b=0;b<a.length;b++){var S=a[b],T=o[S],R=f[S],N=T(R,u);if(typeof N>"u"){var _=u&&u.type;throw new Error(xe(14))}x[S]=N,g=g||N!==R}return g=g||a.length!==Object.keys(f).length,g?x:f}}function vr(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function Za(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(n){return function(){var i=n.apply(void 0,arguments),a=function(){throw new Error(xe(15))},s={getState:i.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=e.map(function(p){return p(s)});return a=vr.apply(void 0,l)(i.dispatch),Do(Do({},i),{},{dispatch:a})}}}function qa(t){var e=function(n){var i=n.dispatch,a=n.getState;return function(s){return function(l){return typeof l=="function"?l(i,a,t):s(l)}}};return e}var Ya=qa();Ya.withExtraArgument=qa;var Zn=Ya;var ts=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},t(e,o)};return function(e,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");t(e,o);function n(){this.constructor=e}e.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),qd=function(t,e){var o={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(f){return function(u){return p([f,u])}}function p(f){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,i&&(a=f[0]&2?i.return:f[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,f[1])).done)return a;switch(i=0,a&&(f=[f[0]&2,a.value]),f[0]){case 0:case 1:a=f;break;case 4:return o.label++,{value:f[1],done:!1};case 5:o.label++,i=f[1],f=[0];continue;case 7:f=o.ops.pop(),o.trys.pop();continue;default:if(a=o.trys,!(a=a.length>0&&a[a.length-1])&&(f[0]===6||f[0]===2)){o=0;continue}if(f[0]===3&&(!a||f[1]>a[0]&&f[1]<a[3])){o.label=f[1];break}if(f[0]===6&&o.label<a[1]){o.label=a[1],a=f;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(f);break}a[2]&&o.ops.pop(),o.trys.pop();continue}f=e.call(t,o)}catch(u){f=[6,u],i=0}finally{n=a=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},Sr=function(t,e){for(var o=0,n=e.length,i=t.length;o<n;o++,i++)t[i]=e[o];return t},Yd=Object.defineProperty,Xd=Object.defineProperties,Qd=Object.getOwnPropertyDescriptors,Xa=Object.getOwnPropertySymbols,Jd=Object.prototype.hasOwnProperty,ep=Object.prototype.propertyIsEnumerable,Qa=function(t,e,o){return e in t?Yd(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},$t=function(t,e){for(var o in e||(e={}))Jd.call(e,o)&&Qa(t,o,e[o]);if(Xa)for(var n=0,i=Xa(e);n<i.length;n++){var o=i[n];ep.call(e,o)&&Qa(t,o,e[o])}return t},qn=function(t,e){return Xd(t,Qd(e))},tp=function(t,e,o){return new Promise(function(n,i){var a=function(p){try{l(o.next(p))}catch(f){i(f)}},s=function(p){try{l(o.throw(p))}catch(f){i(f)}},l=function(p){return p.done?n(p.value):Promise.resolve(p.value).then(a,s)};l((o=o.apply(t,e)).next())})};var rp=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?vr:vr.apply(null,arguments)},Cu=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function op(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 np=function(t){ts(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var i=t.apply(this,o)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,Sr([void 0],o[0].concat(this)))):new(e.bind.apply(e,Sr([void 0],o.concat(this))))},e}(Array),ip=function(t){ts(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var i=t.apply(this,o)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,Sr([void 0],o[0].concat(this)))):new(e.bind.apply(e,Sr([void 0],o.concat(this))))},e}(Array);function Qn(t){return Je(t)?_o(t,function(){}):t}function ap(t){return typeof t=="boolean"}function sp(){return function(e){return lp(e)}}function lp(t){t===void 0&&(t={});var e=t.thunk,o=e===void 0?!0:e,n=t.immutableCheck,i=n===void 0?!0:n,a=t.serializableCheck,s=a===void 0?!0:a,l=new np;if(o&&(ap(o)?l.push(Zn):l.push(Zn.withExtraArgument(o.extraArgument))),0){if(i)var p;if(s)var f}return l}var Yn=!0;function rs(t){var e=sp(),o=t||{},n=o.reducer,i=n===void 0?void 0:n,a=o.middleware,s=a===void 0?e():a,l=o.devTools,p=l===void 0?!0:l,f=o.preloadedState,u=f===void 0?void 0:f,y=o.enhancers,g=y===void 0?void 0:y,x;if(typeof i=="function")x=i;else if(op(i))x=Ka(i);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var b=s;if(typeof b=="function"&&(b=b(e),!Yn&&!Array.isArray(b)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Yn&&b.some(function(k){return typeof k!="function"}))throw new Error("each middleware provided to configureStore must be a function");var S=Za.apply(void 0,b),T=vr;p&&(T=rp($t({trace:!Yn},typeof p=="object"&&p)));var R=new ip(S),N=R;Array.isArray(g)?N=Sr([S],g):typeof g=="function"&&(N=g(R));var _=T.apply(void 0,N);return Kn(x,u,_)}function Bt(t,e){function o(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(e){var a=e.apply(void 0,n);if(!a)throw new Error("prepareAction did not return an object");return $t($t({type:t,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:t,payload:n[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(n){return n.type===t},o}function os(t){var e={},o=[],n,i={addCase:function(a,s){var l=typeof a=="string"?a:a.type;if(l in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[l]=s,i},addMatcher:function(a,s){return o.push({matcher:a,reducer:s}),i},addDefaultCase:function(a){return n=a,i}};return t(i),[e,o,n]}function cp(t){return typeof t=="function"}function dp(t,e,o,n){o===void 0&&(o=[]);var i=typeof e=="function"?os(e):[e,o,n],a=i[0],s=i[1],l=i[2],p;if(cp(t))p=function(){return Qn(t())};else{var f=Qn(t);p=function(){return f}}function u(y,g){y===void 0&&(y=p());var x=Sr([a[g.type]],s.filter(function(b){var S=b.matcher;return S(g)}).map(function(b){var S=b.reducer;return S}));return x.filter(function(b){return!!b}).length===0&&(x=[l]),x.reduce(function(b,S){if(S)if(gt(b)){var T=b,R=S(T,g);return R===void 0?b:R}else{if(Je(b))return _o(b,function(N){return S(N,g)});var R=S(b,g);if(R===void 0){if(b===null)return b;throw Error("A case reducer on a non-draftable value must not return undefined")}return R}return b},y)}return u.getInitialState=p,u}function pp(t,e){return t+"/"+e}function ns(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:Qn(t.initialState),n=t.reducers||{},i=Object.keys(n),a={},s={},l={};i.forEach(function(u){var y=n[u],g=pp(e,u),x,b;"reducer"in y?(x=y.reducer,b=y.prepare):x=y,a[u]=x,s[g]=x,l[u]=b?Bt(g,b):Bt(g)});function p(){var u=typeof t.extraReducers=="function"?os(t.extraReducers):[t.extraReducers],y=u[0],g=y===void 0?{}:y,x=u[1],b=x===void 0?[]:x,S=u[2],T=S===void 0?void 0:S,R=$t($t({},g),s);return dp(o,function(N){for(var _ in R)N.addCase(_,R[_]);for(var k=0,V=b;k<V.length;k++){var Re=V[k];N.addMatcher(Re.matcher,Re.reducer)}T&&N.addDefaultCase(T)})}var f;return{name:e,reducer:function(u,y){return f||(f=p()),f(u,y)},actions:l,caseReducers:a,getInitialState:function(){return f||(f=p()),f.getInitialState()}}}var fp="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",up=function(t){t===void 0&&(t=21);for(var e="",o=t;o--;)e+=fp[Math.random()*64|0];return e},hp=["name","message","stack","code"],Xn=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),Ja=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),mp=function(t){if(typeof t=="object"&&t!==null){for(var e={},o=0,n=hp;o<n.length;o++){var i=n[o];typeof t[i]=="string"&&(e[i]=t[i])}return e}return{message:String(t)}},Ru=function(){function t(e,o,n){var i=Bt(e+"/fulfilled",function(u,y,g,x){return{payload:u,meta:qn($t({},x||{}),{arg:g,requestId:y,requestStatus:"fulfilled"})}}),a=Bt(e+"/pending",function(u,y,g){return{payload:void 0,meta:qn($t({},g||{}),{arg:y,requestId:u,requestStatus:"pending"})}}),s=Bt(e+"/rejected",function(u,y,g,x,b){return{payload:x,error:(n&&n.serializeError||mp)(u||"Rejected"),meta:qn($t({},b||{}),{arg:g,requestId:y,rejectedWithValue:!!x,requestStatus:"rejected",aborted:u?.name==="AbortError",condition:u?.name==="ConditionError"})}}),l=!1,p=typeof AbortController<"u"?AbortController:function(){function u(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return u.prototype.abort=function(){},u}();function f(u){return function(y,g,x){var b=n?.idGenerator?n.idGenerator(u):up(),S=new p,T,R=!1;function N(k){T=k,S.abort()}var _=function(){return tp(this,null,function(){var k,V,Re,se,jr,Ve,m;return qd(this,function(v){switch(v.label){case 0:return v.trys.push([0,4,,5]),se=(k=n?.condition)==null?void 0:k.call(n,u,{getState:g,extra:x}),gp(se)?[4,se]:[3,2];case 1:se=v.sent(),v.label=2;case 2:if(se===!1||S.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return R=!0,jr=new Promise(function(L,q){return S.signal.addEventListener("abort",function(){return q({name:"AbortError",message:T||"Aborted"})})}),y(a(b,u,(V=n?.getPendingMeta)==null?void 0:V.call(n,{requestId:b,arg:u},{getState:g,extra:x}))),[4,Promise.race([jr,Promise.resolve(o(u,{dispatch:y,getState:g,extra:x,requestId:b,signal:S.signal,abort:N,rejectWithValue:function(L,q){return new Xn(L,q)},fulfillWithValue:function(L,q){return new Ja(L,q)}})).then(function(L){if(L instanceof Xn)throw L;return L instanceof Ja?i(L.payload,b,u,L.meta):i(L,b,u)})])];case 3:return Re=v.sent(),[3,5];case 4:return Ve=v.sent(),Re=Ve instanceof Xn?s(null,b,u,Ve.payload,Ve.meta):s(Ve,b,u),[3,5];case 5:return m=n&&!n.dispatchConditionRejection&&s.match(Re)&&Re.meta.condition,m||y(Re),[2,Re]}})})}();return Object.assign(_,{abort:N,requestId:b,arg:u,unwrap:function(){return _.then(yp)}})}}return Object.assign(f,{pending:a,rejected:s,fulfilled:i,typePrefix:e})}return t.withTypes=function(){return t},t}();function yp(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function gp(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var is="listener",as="completed",ss="cancelled",Nu="task-"+ss,Tu="task-"+as,Lu=is+"-"+ss,Iu=is+"-"+as;var Jn="listenerMiddleware";var Pu=Bt(Jn+"/add"),ku=Bt(Jn+"/removeAll"),_u=Bt(Jn+"/remove");var es,Du=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(es||(es=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},bp=function(t){return function(e){setTimeout(e,t)}},$u=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:bp(10);Wa();window.ftReduxStores||(window.ftReduxStores={});var ls=class t{static get(e){var o;let n=typeof e=="string"?e:e.name,i=typeof e=="string"?void 0:e,a=window.ftReduxStores[n];if(Zr(a))return a;if(i==null)return;let s=ns({...i,reducers:(o=i.reducers)!==null&&o!==void 0?o:{}}),l=rs({reducer:(p,f)=>f.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof f.type=="string"&&f.type.startsWith("DEFAULT_VALUE_SETTER__")?{...p,...f.overwrites}:s.reducer(p,f)});return window.ftReduxStores[i.name]=new t(s,l)}constructor(e,o){this.reduxSlice=e,this.reduxStore=o,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new wo,this.actions=new Proxy(this.reduxSlice.actions,{get:(n,i,a)=>{let s=i,l=n[s];return l?(...p)=>{let f=l(...p);return this.reduxStore.dispatch(f),f}:p=>{this.setState({[s]:p})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var Fo=h(w());var Bo=class extends ct{async listMySearches(){let e=P.getState().session;return e?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var Mo=class extends ct{async listMyBookmarks(){let e=P.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var vp="ft-user-assets",Uo=Fo.FtReduxStore.get({name:vp,initialState:{savedSearches:void 0,bookmarks:void 0}}),ei=class{constructor(){this.currentSession=P.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Mo,this.savedSearchesService=new Bo,P.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:o}=P.getState();(0,Fo.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Uo.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Uo.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Uo.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let o=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Uo.actions.bookmarks(o)}}},cs=new ei;var ti=class{addCommand(e,o=!1){P.commands.add(e,o)}consumeCommand(e){return P.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new ti;var ds=h(w()),ri=class{highlightHtml(e,o,n){(0,ds.highlightHtml)(e,o,n)}};window.FluidTopicsHighlightHtmlService=new ri;var ps=h(w());var oi=class{isDate(e){var o,n,i,a;return(a=(i=((n=(o=P.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]).find(l=>l.key===e))===null||i===void 0?void 0:i.date)!==null&&a!==void 0?a:!1}format(e,o){var n,i,a;return ps.DateFormatter.format(e,(n=o?.locale)!==null&&n!==void 0?n:P.getState().uiLocale,(i=o?.longFormat)!==null&&i!==void 0?i:!1,(a=o?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new oi;(0,fs.customElement)("ft-app-context")(te);var zo=class extends ct{async launchSearch(e){return this.cache.get(this.hash(e),async()=>(await this.awaitApi).search(e),2*60*1e3)}async launchSuggest(e){return this.cache.get(this.hash(e),async()=>(await this.awaitApi).getSuggestions(e),2*60*1e3)}async getAvailableSearchLocales(){return this.cache.get("available-locales",async()=>(await this.awaitApi).getAvailableSearchLocales())}hash(e){return""+Array.from(JSON.stringify(e)).reduce((o,n)=>0|31*o+n.charCodeAt(0),0)}};var eo=t=>t.request.virtualField===hr.TITLE_ONLY&&t.request.scope===mr.DOCUMENTS,Wo=class t extends Event{constructor(){super(t.eventName)}};Wo.eventName="search-context-clear-all-filters";var Jr=class t{static build(e,o){return new t(Qi(e.trim()||"context"),o)}constructor(e,o){this.store=e,this.ignoreEmptyQuery=!1,this.openExternalDocumentInNewTab=!1,this.localesDebouncer=new pt.Debouncer(10),this.searchDebouncer=new pt.Debouncer(100),this.suggestDebouncer=new pt.Debouncer(300),this.service=o??new zo}async initService(){return this.updateLocales(),this.launchSearch()}setQuery(e){this.store.actions.setRequestQuery(e),this.store.actions.setLiveQuery(e),this.store.actions.setPageNumber(1),this.launchSearch()}setContentLocale(e){let o=this.store.getState().locales,n=this.store.getState().request.contentLocale;if(e!=n){if(o){let i=a=>o.some(s=>s.lang==a);i(e)||(e=i(n)?n:o[0].lang)}this.store.actions.setRequestContentLocale(e),this.store.actions.setPageNumber(1),this.store.actions.setRequestFilters([]),this.launchSearch()}return e}setPageSize(e){this.store.actions.setPageSize(e),this.launchSearch()}setPageNumber(e){this.store.actions.setPageNumber(e),this.launchSearch()}setSort(e){this.store.actions.setRequestSort(e),this.store.actions.setPageNumber(1),this.launchSearch()}setFilters(e){let o=e.filter(n=>n.values.length>0);this.store.actions.setRequestFilters(o),this.store.actions.setPageNumber(1),o.forEach(n=>{this.facetIds.includes(n.key)||(this.facetIds=[...this.facetIds,n.key])}),this.launchSearch()}setClusterSortCriterion(e){this.store.actions.setRequestClusterSortCriterion(e),this.launchSearch()}setSearchInDocumentTitlesOnly(e){e?(this.store.actions.setRequestVirtualField(hr.TITLE_ONLY),this.store.actions.setRequestScope(mr.DOCUMENTS)):(this.store.actions.setRequestVirtualField(hr.EVERYWHERE),this.store.actions.setRequestScope(mr.DEFAULT)),this.launchSearch()}setVirtualField(e){this.store.actions.setRequestVirtualField(e),this.launchSearch()}get searchInDocumentTitlesOnly(){return eo(this.store.getState())}get periodFilter(){return this.store.getState().request.periodFilter}clearAllFilters(){this.setFilters([]),this.store.eventBus.dispatchEvent(new Wo)}addFacet(e){this.facetIds=[...this.facetIds,e],this.launchSearch()}replaceFacet(e,o){let n=this.facetIds.filter(i=>i!=e);o&&n.push(o),this.facetIds=n,this.launchSearch()}get facetIds(){return this.store.getState().request.facets.map(e=>e.id)}set facetIds(e){let n=[...new Set(e)].map(i=>({id:i}));this.store.actions.setRequestFacets(n)}setFilter(e,o){let n=this.store.getState().request.filters,i={key:e,values:o,negative:!1},a=[...n.filter(s=>s.key!==e),i];this.setFilters(a)}setLiveQuery(e){this.store.actions.setLiveQuery(e),this.launchSuggest()}setRequest(e){this.store.actions.setRequest(e),this.store.actions.setLiveQuery(e.query),this.store.actions.setPageNumber(1),this.launchSearch()}setScope(e){this.store.actions.setRequestScope(e),this.launchSearch()}setIgnoreEmptyQuery(e){this.ignoreEmptyQuery=e,this.launchSearch()}setOpenExternalDocumentInNewTab(e){this.openExternalDocumentInNewTab=e}setPeriodFilter(e){this.store.actions.setRequestPeriodFilter(e),this.store.actions.setPageNumber(1),this.launchSearch()}updateLocales(){return this.localesDebouncer.run(async()=>this.store.actions.setLocales((await this.service.getAvailableSearchLocales()).contentLocales))}launchSearch(){return this.searchDebouncer.run(()=>this.fetchSearchData())}launchSuggest(){return this.suggestDebouncer.run(()=>this.fetchSuggestData())}async fetchSearchData(){var e,o;try{(e=this.cancelableSearch)===null||e===void 0||e.cancel();let n=this.store.getState().request;if(this.store.actions.setPaging(void 0),this.ignoreEmptyQuery&&n.query.length==0)this.store.actions.setResults(void 0),this.store.actions.setFacets(void 0),this.store.actions.setSpellcheck(void 0);else{this.cancelableSearch=(0,pt.cancelable)(this.service.launchSearch(n));let i=await this.cancelableSearch;if(i.paging.currentPage<=1)this.store.actions.setResults(i.results),this.store.actions.setFacets(i.facets),this.store.actions.setSpellcheck(i.spellcheck);else{let a=((o=this.store.getState().results)!==null&&o!==void 0?o:[]).concat(i.results);this.store.actions.setResults(a)}this.store.actions.setPaging(i.paging)}}catch(n){!(n instanceof pt.CanceledPromiseError)&&this.errorHandler&&this.errorHandler(n)}}async fetchSuggestData(){var e;try{let o=this.store.getState(),n=o.request,i={input:o.liveQuery,filters:n.filters,sort:n.sort,contentLocale:n.contentLocale,scope:n.scope};(e=this.cancelableSuggest)===null||e===void 0||e.cancel(),this.cancelableSuggest=(0,pt.cancelable)(this.service.launchSuggest(i));let a=await this.cancelableSuggest;this.store.actions.setSuggestResults(a.suggestions)}catch(o){!(o instanceof pt.CanceledPromiseError)&&this.errorHandler&&this.errorHandler(o)}}clear(){this.store.clear()}};var Sp=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},ii=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},ni=Symbol("registerInterval");function Op(t){var e;class o extends t{constructor(){super(...arguments),this[e]=0}setSearchStateManager(i){this.clearStateManager(),this.stateManager=i,this.addStore(i.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[ni]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[ni]):this.dispatchEvent(new ii)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=ni,Sp([(0,hs.state)()],o.prototype,"stateManager",void 0),o}var Mt=class extends Op(us.FtLitElementRedux){};var Ii=h(w());var ln=h(I()),we=h(H()),Rc=h(Ut()),dn=h(w());var ws=h(w());var Cs=h(I()),ye=h(H()),Es=h(Ut()),to=h(w());var Ss=h(I()),ne=h(w()),ys=ne.FtCssVariableFactory.extend("--ft-ripple-color","",ne.designSystemVariables.colorContent),M={color:ys,backgroundColor:ne.FtCssVariableFactory.extend("--ft-ripple-background-color","",ys),opacityContentOnSurfacePressed:ne.FtCssVariableFactory.external(ne.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:ne.FtCssVariableFactory.external(ne.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:ne.FtCssVariableFactory.external(ne.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:ne.FtCssVariableFactory.external(ne.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:ne.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},gs=ne.FtCssVariableFactory.extend("--ft-ripple-color","",ne.designSystemVariables.colorPrimary),bs={color:gs,backgroundColor:ne.FtCssVariableFactory.extend("--ft-ripple-background-color","",gs)},xs=ne.FtCssVariableFactory.extend("--ft-ripple-color","",ne.designSystemVariables.colorSecondary),vs={color:xs,backgroundColor:ne.FtCssVariableFactory.extend("--ft-ripple-background-color","",xs)},Os=Ss.css`
|
|
15
15
|
:host {
|
|
16
16
|
display: contents;
|
|
17
17
|
}
|
|
@@ -1132,7 +1132,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1132
1132
|
`}update(e){var o;super.update(e),["context","key","defaultMessage"].some(n=>e.has(n))&&this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:(o=this.defaultMessage)!==null&&o!==void 0?o:""})}};ot.elementDefinitions={};ot.styles=Pc;xo([(0,gn.redux)()],ot.prototype,"editorMode",void 0);xo([(0,yn.property)()],ot.prototype,"context",void 0);xo([(0,yn.property)()],ot.prototype,"key",void 0);xo([(0,gn.jsonProperty)([])],ot.prototype,"args",void 0);xo([(0,yn.property)()],ot.prototype,"defaultMessage",void 0);var Ur=class t{static build(e){return new t(e)}static fromGwt(e){return new t(e)}constructor(e){this.name=e,this.properties=new Proxy({},{get:(o,n)=>{let i=n;return a=>({context:this.name,key:i,args:typeof a=="function"?void 0:a,argsProvider:typeof a=="function"?a:void 0})}}),this.messages=new Proxy({},{get:(o,n)=>(...i)=>yr.resolveMessage(this.name,n,...i)})}};(0,Dc.customElement)("ft-i18n")(ot);var Uc=h(w());var Mc=h(I()),mt=h(H()),nt=h(w());var $c=h(I());var Bc=$c.css`
|
|
1133
1133
|
`;var ve=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},ki=class extends CustomEvent{constructor(e){super("ft-search-load-error",{detail:e})}},_i=class extends CustomEvent{constructor(e){super("ft-search-request-change",{detail:e})}},Di=class extends CustomEvent{constructor(e,o,n){super("ft-search-results-change",{detail:{request:e,paging:o,spellcheck:n}})}},ee=class extends nt.FtLitElementRedux{get stateManager(){if(this._stateManager==null){let e=this.searchServiceProvider?this.searchServiceProvider():void 0;this._stateManager=Jr.build(this.id||(""+Math.round(Math.random()*999e3)).padStart(6,"0"),e),this._stateManager.errorHandler=o=>this.handleLoadError(o),this.addStore(this.stateManager.store,"search")}return this._stateManager}constructor(){super(),this.query="",this.pageSize=20,this.searchInDocumentTitlesOnly=!1,this.ignoreEmptyQuery=!1,this.openExternalDocumentInNewTab=!1,this.filters=[],this.sort=[],this.addStore(P)}render(){return Mc.html`
|
|
1134
1134
|
<slot @register-ft-search-component=${this.registerComponent}></slot>
|
|
1135
|
-
`}update(e){super.update(e),e.has("query")&&this.query!==void 0&&this.stateManager.setQuery(this.query),e.has("contentLocale")&&this.contentLocale!==void 0&&this.stateManager.setContentLocale(this.contentLocale),e.has("filters")&&this.filters!==void 0&&this.stateManager.setFilters(this.filters),e.has("sort")&&this.sort!==void 0&&this.stateManager.setSort(this.sort),e.has("pageSize")&&this.pageSize!==void 0&&this.stateManager.setPageSize(this.pageSize),e.has("searchInDocumentTitlesOnly")&&this.searchInDocumentTitlesOnly!==void 0&&this.stateManager.setSearchInDocumentTitlesOnly(this.searchInDocumentTitlesOnly),e.has("scope")&&this.scope!==void 0&&this.stateManager.setScope(this.scope),e.has("virtualField")&&this.virtualField!==void 0&&this.stateManager.setVirtualField(this.virtualField),e.has("ignoreEmptyQuery")&&this.ignoreEmptyQuery!==void 0&&this.stateManager.setIgnoreEmptyQuery(this.ignoreEmptyQuery),e.has("openExternalDocumentInNewTab")&&this.openExternalDocumentInNewTab!==void 0&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("periodFilter")&&this.periodFilter
|
|
1135
|
+
`}update(e){super.update(e),e.has("query")&&this.query!==void 0&&this.stateManager.setQuery(this.query),e.has("contentLocale")&&this.contentLocale!==void 0&&this.stateManager.setContentLocale(this.contentLocale),e.has("filters")&&this.filters!==void 0&&this.stateManager.setFilters(this.filters),e.has("sort")&&this.sort!==void 0&&this.stateManager.setSort(this.sort),e.has("pageSize")&&this.pageSize!==void 0&&this.stateManager.setPageSize(this.pageSize),e.has("searchInDocumentTitlesOnly")&&this.searchInDocumentTitlesOnly!==void 0&&this.stateManager.setSearchInDocumentTitlesOnly(this.searchInDocumentTitlesOnly),e.has("scope")&&this.scope!==void 0&&this.stateManager.setScope(this.scope),e.has("virtualField")&&this.virtualField!==void 0&&this.stateManager.setVirtualField(this.virtualField),e.has("ignoreEmptyQuery")&&this.ignoreEmptyQuery!==void 0&&this.stateManager.setIgnoreEmptyQuery(this.ignoreEmptyQuery),e.has("openExternalDocumentInNewTab")&&this.openExternalDocumentInNewTab!==void 0&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("periodFilter")&&this.periodFilter!==void 0&&this.stateManager.setPeriodFilter(this.periodFilter),e.has("session")&&this.session!==void 0&&(this.stateManager.service.clearCache(),this.stateManager.initService())}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),this.stateManager.setQuery(this.query),this.stateManager.setContentLocale(this.contentLocale),this.stateManager.setFilters(this.filters),this.stateManager.setPageSize(this.pageSize),this.stateManager.setSort(this.sort)}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("request")&&this.request&&this.dispatchEvent(new _i(this.request)),e.has("paging")&&this.paging!==void 0&&this.dispatchEvent(new Di(this.request,this.paging,this.autocorrect))}registerComponent(e){e.stopPropagation();let o=e.composedPath()[0];this.register(o)}register(e){e.setSearchStateManager(this.stateManager)}handleLoadError(e){this.dispatchEvent(new ki(e))}reloadSavedSearches(){cs.clearMySearches()}clear(){this.stateManager.clear()}};ee.elementDefinitions={};ee.styles=Bc;ve([(0,nt.redux)({store:P.name})],ee.prototype,"session",void 0);ve([(0,mt.property)()],ee.prototype,"query",void 0);ve([(0,mt.property)()],ee.prototype,"contentLocale",void 0);ve([(0,mt.property)({type:Number})],ee.prototype,"pageSize",void 0);ve([(0,mt.property)({type:Boolean})],ee.prototype,"searchInDocumentTitlesOnly",void 0);ve([(0,mt.property)()],ee.prototype,"periodFilter",void 0);ve([(0,mt.property)()],ee.prototype,"scope",void 0);ve([(0,mt.property)()],ee.prototype,"virtualField",void 0);ve([(0,mt.property)({type:Boolean})],ee.prototype,"ignoreEmptyQuery",void 0);ve([(0,nt.redux)({store:P.name})],ee.prototype,"openExternalDocumentInNewTab",void 0);ve([(0,nt.jsonProperty)([])],ee.prototype,"filters",void 0);ve([(0,nt.jsonProperty)([])],ee.prototype,"sort",void 0);ve([(0,nt.redux)({store:"search"})],ee.prototype,"request",void 0);ve([(0,nt.redux)({store:"search"})],ee.prototype,"paging",void 0);ve([(0,nt.redux)({store:"search",selector:t=>t.spellcheck})],ee.prototype,"autocorrect",void 0);ve([(0,mt.property)({attribute:!1})],ee.prototype,"searchServiceProvider",void 0);(0,Uc.customElement)("ft-search-context")(ee);var bd=h(w());var md=h(I()),yd=h(w());var Fc=h(I());var zc=Fc.css`
|
|
1136
1136
|
`;var Ui=h(w());var dr=h(I()),G=h(H()),Xe=h(w());var ze=h(I()),ue=h(H()),id=h(wn()),vn=h(w());var Kc=h(w());var Vc=h(I()),jt=h(H()),jc=h(w()),Gc=h(Ut());var Ue=h(w()),Wc=h(I());var wt={textColor:Ue.FtCssVariableFactory.extend("--ft-checkbox-text-color","",Ue.designSystemVariables.colorOnSurfaceHigh),fontSize:Ue.FtCssVariableFactory.extend("--ft-checkbox-font-size","",A.fontSize),colorPrimary:Ue.FtCssVariableFactory.external(Ue.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:Ue.FtCssVariableFactory.external(Ue.designSystemVariables.colorOnPrimary,"Design system"),borderColor:Ue.FtCssVariableFactory.extend("--ft-checkbox-border-color","",Ue.designSystemVariables.colorOnSurfaceMedium),colorOnSurfaceDisabled:Ue.FtCssVariableFactory.external(Ue.designSystemVariables.colorOnSurfaceDisabled,"Design system")},Hc=Wc.css`
|
|
1137
1137
|
* {
|
|
1138
1138
|
box-sizing: border-box;
|