@fluid-topics/ft-search-input 1.2.25 → 1.2.27
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.
- package/build/ft-search-input.light.js +1 -1
- package/build/ft-search-input.min.js +40 -40
- package/package.json +10 -10
|
@@ -1140,7 +1140,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
1140
1140
|
`;var fc=C(k()),hc=C(te());var lo=C(k());var qi=C(k());var il=C(Xi(),1);var Qi;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(Qi||(Qi={}));var Ji;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(Ji||(Ji={}));var es;(function(e){e.THIRD_PARTY="THIRD_PARTY",e.OFF_THE_GRID="OFF_THE_GRID",e.CONTENT_PACKAGER="CONTENT_PACKAGER",e.PAGES="PAGES",e.DESIGNED_READER="DESIGNED_READER"})(es||(es={}));var ts;(function(e){e.HOMEPAGE="HOMEPAGE",e.CUSTOM="CUSTOM",e.HEADER="HEADER",e.READER="READER",e.TOPIC_TEMPLATE="TOPIC_TEMPLATE",e.SEARCH="SEARCH",e.SEARCH_RESULT="SEARCH_RESULT"})(ts||(ts={}));var rs;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(rs||(rs={}));var os;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(os||(os={}));var ns;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(ns||(ns={}));var as;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(as||(as={}));var is;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR",e.CUSTOM="CUSTOM"})(is||(is={}));var ss;(function(e){e.ASC="ASC",e.DESC="DESC"})(ss||(ss={}));var cs;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(cs||(cs={}));var Vo;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(Vo||(Vo={}));var ls;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK"})(ls||(ls={}));var ds;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(ds||(ds={}));var us;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.PERSONAL_BOOK="PERSONAL_BOOK",e.SHARED_BOOK="SHARED_BOOK"})(us||(us={}));var ps;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(ps||(ps={}));var fs;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC"})(fs||(fs={}));var Ko;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Ko||(Ko={}));var Q;(function(e){e.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",e.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",e.HTML_EXPORT_USER="HTML_EXPORT_USER",e.PDF_EXPORT_USER="PDF_EXPORT_USER",e.SAVED_SEARCH_USER="SAVED_SEARCH_USER",e.COLLECTION_USER="COLLECTION_USER",e.OFFLINE_USER="OFFLINE_USER",e.ANALYTICS_USER="ANALYTICS_USER",e.BETA_USER="BETA_USER",e.DEBUG_USER="DEBUG_USER",e.PRINT_USER="PRINT_USER",e.RATING_USER="RATING_USER",e.FEEDBACK_USER="FEEDBACK_USER",e.GENERATIVE_AI_USER="GENERATIVE_AI_USER",e.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",e.CONTENT_PUBLISHER="CONTENT_PUBLISHER",e.KHUB_ADMIN="KHUB_ADMIN",e.USERS_ADMIN="USERS_ADMIN",e.PORTAL_ADMIN="PORTAL_ADMIN",e.ADMIN="ADMIN",e.DEVELOPER="DEVELOPER"})(Q||(Q={}));var hs;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(hs||(hs={}));var ys;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(ys||(ys={}));var wg={[Q.PERSONAL_BOOK_SHARE_USER]:[Q.PERSONAL_BOOK_USER],[Q.HTML_EXPORT_USER]:[Q.PERSONAL_BOOK_USER],[Q.PDF_EXPORT_USER]:[Q.PERSONAL_BOOK_USER],[Q.KHUB_ADMIN]:[Q.CONTENT_PUBLISHER],[Q.ADMIN]:[Q.KHUB_ADMIN,Q.USERS_ADMIN,Q.PORTAL_ADMIN],[Q.DEVELOPER]:[Q.BETA_USER,Q.DEBUG_USER],[Q.GENERATIVE_AI_EXPORT_USER]:[Q.GENERATIVE_AI_USER]};var pc=C(k());var vs=C(W()),me=C(te()),Ae=C(k());var gs=C(W());var ms=gs.css`
|
|
1141
1141
|
`;var zr=C(k()),sl="ft-app-info",Zo=class extends CustomEvent{constructor(r){super("authentication-change",{detail:r})}},cl={session:(e,r)=>{(0,zr.deepEqual)(e.session,r.payload)||(e.session=r.payload,setTimeout(()=>T.dispatchEvent(new Zo(r.payload)),0))}},T=zr.FtReduxStore.get({name:sl,reducers:cl,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,metadataConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1}});var nt=C(k());var qo=C(k());var St=class e{static get(r){let{baseUrl:o,apiIntegrationIdentifier:n}=T.getState(),a=r??n;if(o&&a&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,a,!0)}static await(r){return new Promise(o=>{let n=e.get(r);if(n)o(n);else{let a=T.subscribe(()=>{n=e.get(r),n&&(a(),o(n))})}})}};var ze=class{constructor(r=!0,o){var n;this.overrideApi=o;let a=this.constructor;a.commonCache=(n=a.commonCache)!==null&&n!==void 0?n:new qo.CacheRegistry,this.cache=r?a.commonCache:new qo.CacheRegistry}get api(){var r;return(r=this.overrideApi)!==null&&r!==void 0?r:St.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):St.await()}clearCache(){this.cache.clearAll()}};var bs,ll=Symbol("clearAfterUnitTest"),Gr=class extends ze{constructor(r){super(),this.messageContextProvider=r,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[bs]=()=>{this.defaultMessages={},this.cache=new nt.CacheRegistry,this.listeners={}},this.currentUiLocale=T.getState().uiLocale,T.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:r}=T.getState();this.currentUiLocale!==r&&(this.currentUiLocale=r,this.cache.clearAll(),this.notifyAll())}addContext(r){let o=r.name.toLowerCase();this.cache.setFinal(o,r),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(r,o){var n;if(r=r.toLowerCase(),Object.keys(o).length>0){let a={...(n=this.defaultMessages[r])!==null&&n!==void 0?n:{},...o};(0,nt.deepEqual)(this.defaultMessages[r],a)||(this.defaultMessages[r]=a,await this.notify(r))}await this.fetchContext(r)}resolveContext(r){var o,n;return this.fetchContext(r),(n=(o=this.cache.getNow(r))===null||o===void 0?void 0:o.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(r,o){let n=r.toLowerCase();return this.resolveContext(n)[o]}resolveMessage(r,o,...n){var a;let i=r.toLowerCase(),c=this.resolveContext(i);return new nt.ParametrizedLabelResolver((a=this.defaultMessages[i])!==null&&a!==void 0?a:{},c).resolve(o,...n)}async fetchContext(r){if(!this.cache.has(r))try{await this.cache.get(r,()=>this.messageContextProvider(this.currentUiLocale,r)),await this.notify(r)}catch(o){console.error(o)}}subscribe(r,o){var n;return r=r.toLowerCase(),this.listeners[r]=(n=this.listeners[r])!==null&&n!==void 0?n:new Set,this.listeners[r].add(o),()=>{var a;return(a=this.listeners[r])===null||a===void 0?void 0:a.delete(o)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map(r=>this.notify(r)))}async notify(r){this.listeners[r]!=null&&await Promise.all([...this.listeners[r].values()].map(o=>(0,nt.delay)(0).then(()=>o()).catch(()=>null)))}};bs=ll;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Gr{constructor(){super(async(e,r)=>(await this.awaitApi).getFluidTopicsMessageContext(e,r))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Gr{constructor(){super(async(e,r)=>(await this.awaitApi).getCustomMessageContext(e,r))}});var Ot=window.FluidTopicsI18nService,xs=window.FluidTopicsCustomI18nService;var se=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},q=class extends Ae.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=()=>St.get(),this.messageContexts=[],this.cache=new Ae.CacheRegistry,this.cleanSessionDebouncer=new Ae.Debouncer}render(){return vs.html`
|
|
1142
1142
|
<slot></slot>
|
|
1143
|
-
`}update(r){var o,n,a,i,c;super.update(r),r.has("baseUrl")&&(T.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),r.has("apiIntegrationIdentifier")&&T.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),r.has("uiLocale")&&T.actions.uiLocale(this.uiLocale),r.has("metadataConfiguration")&&T.actions.metadataConfiguration(this.metadataConfiguration),r.has("noCustom")&&T.actions.noCustom(this.noCustom),r.has("editorMode")&&T.actions.editorMode(this.editorMode),r.has("noCustomComponent")&&T.actions.noCustomComponent(this.noCustomComponent),r.has("session")&&T.actions.session(this.session),r.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(l=>Ot.addContext(l)),r.has("openExternalDocumentInNewTab")&&T.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),r.has("navigatorOnline")&&T.actions.navigatorOnline(this.navigatorOnline),r.has("forcedOffline")&&T.actions.forcedOffline(this.forcedOffline),r.has("localesConfiguration")&&(T.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),T.actions.availableUiLocales((a=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&a!==void 0?a:[]),T.actions.searchInAllLanguagesAllowed((c=(i=this.localesConfiguration)===null||i===void 0?void 0:i.allLanguagesAllowed)!==null&&c!==void 0?c:!1)),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration())}async updateSession(){this.session=await this.cache.get("session",async()=>{let r=await this.apiProvider().getCurrentSession();return r.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},r.idleTimeoutInMillis),r})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}};q.elementDefinitions={};q.styles=ms;se([(0,me.property)()],q.prototype,"baseUrl",void 0);se([(0,me.property)()],q.prototype,"apiIntegrationIdentifier",void 0);se([(0,me.property)()],q.prototype,"uiLocale",void 0);se([(0,Ae.jsonProperty)(null)],q.prototype,"availableUiLocales",void 0);se([(0,Ae.jsonProperty)(null)],q.prototype,"metadataConfiguration",void 0);se([(0,me.property)({type:Boolean})],q.prototype,"editorMode",void 0);se([(0,me.property)({type:Boolean})],q.prototype,"noCustom",void 0);se([(0,me.property)({type:Boolean})],q.prototype,"openExternalDocumentInNewTab",void 0);se([(0,me.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],q.prototype,"noCustomComponent",void 0);se([(0,me.property)({type:Boolean})],q.prototype,"withManualResources",void 0);se([(0,me.property)({type:Boolean})],q.prototype,"navigatorOnline",void 0);se([(0,me.property)({type:Boolean})],q.prototype,"forcedOffline",void 0);se([(0,me.property)({type:Object})],q.prototype,"apiProvider",void 0);se([(0,Ae.jsonProperty)([])],q.prototype,"messageContexts",void 0);se([(0,Ae.jsonProperty)(void 0)],q.prototype,"session",void 0);se([(0,me.state)()],q.prototype,"localesConfiguration",void 0);var Yl=C(te());function dl(e,r){if(e===r)return!0;if(e&&r&&typeof e=="object"&&typeof r=="object"){if(e.constructor!==r.constructor)return!1;var o,n,a;if(Array.isArray(e)){if(o=e.length,o!=r.length)return!1;for(n=o;n--!==0;)if(!jr(e[n],r[n]))return!1;return!0}if(e instanceof Map&&r instanceof Map){if(e.size!==r.size)return!1;for(n of e.entries())if(!r.has(n[0]))return!1;for(n of e.entries())if(!jr(n[1],r.get(n[0])))return!1;return!0}if(e instanceof Set&&r instanceof Set){if(e.size!==r.size)return!1;for(n of e.entries())if(!r.has(n[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(a=Object.keys(e),o=a.length,o!==Object.keys(r).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(r,a[n]))return!1;for(n=o;n--!==0;){var i=a[n];if(!jr(e[i],r[i]))return!1}return!0}return e!==e&&r!==r}function jr(e,r){try{return dl(e,r)}catch{return!1}}function Vr(e,r){return!jr(e,r)}var ul=C(te(),1);var Kr=class{constructor(){this.queue=[]}add(r,o=!1){o&&(this.queue=this.queue.filter(n=>n.type!==r.type)),this.queue.push(r)}consume(r){let o=this.queue.find(n=>n.type===r);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}};var ur=C(te(),1);var Ss=C(te(),1);function Os(e,r){let o=()=>JSON.parse(JSON.stringify(e));return(0,Ss.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:Vr,...r??{}})}var Zr=class{constructor(r=0){this.timeout=r,this.callbacks=[]}run(r,o){return this.callbacks=[r],this.debounce(o)}queue(r,o){return this.callbacks.push(r),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(r){return this.promise==null&&(this.promise=new Promise((o,n)=>{this.resolvePromise=o,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),r??this.timeout),this.promise}async runCallbacks(){var r,o;let n=[...this.callbacks];this.callbacks=[];let a=(r=this.rejectPromise)!==null&&r!==void 0?r:()=>null,i=(o=this.resolvePromise)!==null&&o!==void 0?o:()=>null;this.clearPromise();for(let c of n)try{await c()}catch(l){a(l);return}i(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Es=C(W(),1);var qr=window,pl=qr.ShadowRoot&&(qr.ShadyCSS===void 0||qr.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,nm=Symbol();var Cs=(e,r)=>{pl?e.adoptedStyleSheets=r.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet):r.forEach(o=>{let n=document.createElement("style"),a=qr.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=o.cssText,e.appendChild(n)})};var Yr=class extends Es.LitElement{createRenderRoot(){let r=this.constructor;r.elementDefinitions&&!r.registry&&(r.registry=new CustomElementRegistry,Object.entries(r.elementDefinitions).forEach(([a,i])=>r.registry.define(a,i)));let o={...r.shadowRootOptions,customElements:r.registry},n=this.renderOptions.creationScope=this.attachShadow(o);return Cs(n,r.elementStyles),n}};var Xr=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},Ns,ws=Symbol("constructorPrototype"),As=Symbol("constructorName"),Is=Symbol("exportpartsDebouncer"),Rs=Symbol("dynamicDependenciesLoaded"),at=class extends Yr{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Ns]=new Zr(5),this[As]=this.constructor.name,this[ws]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[As]&&Object.setPrototypeOf(this,this[ws])}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 r=this.constructor;r[Rs]||(r[Rs]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(r){super.updated(r),this.updateComplete.then(()=>{this.contentAvailableCallback(r),this.applyCustomStylesheet(r),this.scheduleExportpartsUpdate()})}contentAvailableCallback(r){}applyCustomStylesheet(r){var o,n,a;if(((n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(i=>i.remove()),this.useAdoptedStyleSheets){if(r.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((a=this.customStylesheet)!==null&&a!==void 0?a:"")}catch(i){console.error(i,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let i=document.createElement("style");i.classList.add("ft-lit-element--custom-stylesheet"),i.innerHTML=this.customStylesheet,this.shadowRoot.append(i)}}scheduleExportpartsUpdate(){var r,o,n;(!((r=this.exportpartsPrefix)===null||r===void 0)&&r.trim()||(n=(o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)!==null&&n!==void 0&&n)&&this[Is].run(()=>{var a,i;!((a=this.exportpartsPrefix)===null||a===void 0)&&a.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((i=this.exportpartsPrefixes)===null||i===void 0?void 0:i.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(r){var o,n,a,i,c,l;let p=m=>m!=null&&m.trim().length>0,u=r.filter(p).map(m=>m.trim());if(u.length===0){this.removeAttribute("exportparts");return}let y=new Set;for(let m of(n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let v=(i=(a=m.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&i!==void 0?i:[],x=(l=(c=m.getAttribute("exportparts"))===null||c===void 0?void 0:c.split(",").map(S=>S.split(":")[1]))!==null&&l!==void 0?l:[];new Array(...v,...x).filter(p).map(S=>S.trim()).forEach(S=>y.add(S))}if(y.size===0){this.removeAttribute("exportparts");return}let h=[...y.values()].flatMap(m=>u.map(v=>`${m}:${v}--${m}`));this.setAttribute("exportparts",[...this.part,...h].join(", "))}};Ns=Is;Xr([(0,ur.property)()],at.prototype,"exportpartsPrefix",void 0);Xr([Os([])],at.prototype,"exportpartsPrefixes",void 0);Xr([(0,ur.property)()],at.prototype,"customStylesheet",void 0);Xr([(0,ur.state)()],at.prototype,"useAdoptedStyleSheets",void 0);function pr(e){var r;return(r=e?.isFtReduxStore)!==null&&r!==void 0?r:!1}var Ls,Ps,Ts,fr=Symbol("internalReduxEventsUnsubscribers"),it=Symbol("internalStoresUnsubscribers"),Ct=Symbol("internalStores"),hr=class extends at{constructor(){super(...arguments),this[Ls]=new Map,this[Ps]=new Map,this[Ts]=new Map}get reduxConstructor(){return this.constructor}update(r){super.update(r),[...this.reduxConstructor.reduxReactiveProperties].some(o=>r.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[Ct].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ct].values()][0]}getStore(r){return r==null?this.getUnnamedStore():this[Ct].get(r)}addStore(r,o){var n;o=(n=o??(pr(r)?r.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(o),this[Ct].set(o,r),this.subscribeToStore(o,r),this.updateFromStores()}removeStore(r){let o=typeof r=="string"?r:r.name;this.unsubscribeFromStore(o),this[Ct].delete(o)}setupStores(){this.unsubscribeFromStores(),this[Ct].forEach((r,o)=>this.subscribeToStore(o,r)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((r,o)=>{let n=this.constructor.getPropertyOptions(o);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:o)){let a=this.getStore(r.store);a&&(r.store?this[it].has(r.store):this[it].size>0)&&(this[o]=r.selector(a.getState(),this))}})}subscribeToStore(r,o){var n;this[it].set(r,o.subscribe(()=>this.updateFromStores())),this[fr].set(r,[]),pr(o)&&o.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((a,i)=>{if(typeof this[i]=="function"&&(!a.store||o.name===a.store)){let c=l=>this[i](l);o.addEventListener(a.eventName,c),this[fr].get(r).push(()=>o.removeEventListener(a.eventName,c))}})),this.onStoreAvailable(r)}unsubscribeFromStores(){this[it].forEach((r,o)=>this.unsubscribeFromStore(o))}unsubscribeFromStore(r){var o;this[it].has(r)&&this[it].get(r)(),this[it].delete(r),(o=this[fr].get(r))===null||o===void 0||o.forEach(n=>n()),this[fr].delete(r)}onStoreAvailable(r){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Ls=it,Ps=Ct,Ts=fr;hr.reduxProperties=new Map;hr.reduxReactiveProperties=new Set;hr.reduxEventListeners=new Map;function Ce(e){for(var r=arguments.length,o=Array(r>1?r-1:0),n=1;n<r;n++)o[n-1]=arguments[n];if(0)var a,i;throw Error("[Immer] minified error nr: "+e+(o.length?" "+o.map(function(c){return"'"+c+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Ge(e){return!!e&&!!e[j]}function Re(e){var r;return!!e&&(function(o){if(!o||typeof o!="object")return!1;var n=Object.getPrototypeOf(o);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===vl}(e)||Array.isArray(e)||!!e[Ms]||!!(!((r=e.constructor)===null||r===void 0)&&r[Ms])||nn(e)||an(e))}function Et(e,r,o){o===void 0&&(o=!1),zt(e)===0?(o?Object.keys:Ht)(e).forEach(function(n){o&&typeof n=="symbol"||r(n,e[n],e)}):e.forEach(function(n,a){return r(a,n,e)})}function zt(e){var r=e[j];return r?r.i>3?r.i-4:r.i:Array.isArray(e)?1:nn(e)?2:an(e)?3:0}function Wt(e,r){return zt(e)===2?e.has(r):Object.prototype.hasOwnProperty.call(e,r)}function fl(e,r){return zt(e)===2?e.get(r):e[r]}function Fs(e,r,o){var n=zt(e);n===2?e.set(r,o):n===3?e.add(o):e[r]=o}function Ws(e,r){return e===r?e!==0||1/e==1/r:e!=e&&r!=r}function nn(e){return bl&&e instanceof Map}function an(e){return xl&&e instanceof Set}function st(e){return e.o||e.t}function sn(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var r=Gs(e);delete r[j];for(var o=Ht(r),n=0;n<o.length;n++){var a=o[n],i=r[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(r[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[a]})}return Object.create(Object.getPrototypeOf(e),r)}function cn(e,r){return r===void 0&&(r=!1),ln(e)||Ge(e)||!Re(e)||(zt(e)>1&&(e.set=e.add=e.clear=e.delete=hl),Object.freeze(e),r&&Et(e,function(o,n){return cn(n,!0)},!0)),e}function hl(){Ce(2)}function ln(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function ke(e){var r=on[e];return r||Ce(18,e),r}function yl(e,r){on[e]||(on[e]=r)}function en(){return gr}function Yo(e,r){r&&(ke("Patches"),e.u=[],e.s=[],e.v=r)}function Qr(e){tn(e),e.p.forEach(gl),e.p=null}function tn(e){e===gr&&(gr=e.l)}function _s(e){return gr={p:[],l:gr,h:e,m:!0,_:0}}function gl(e){var r=e[j];r.i===0||r.i===1?r.j():r.g=!0}function Xo(e,r){r._=r.p.length;var o=r.p[0],n=e!==void 0&&e!==o;return r.h.O||ke("ES5").S(r,e,n),n?(o[j].P&&(Qr(r),Ce(4)),Re(e)&&(e=Jr(r,e),r.l||eo(r,e)),r.u&&ke("Patches").M(o[j].t,e,r.u,r.s)):e=Jr(r,o,[]),Qr(r),r.u&&r.v(r.u,r.s),e!==zs?e:void 0}function Jr(e,r,o){if(ln(r))return r;var n=r[j];if(!n)return Et(r,function(l,p){return ks(e,n,r,l,p,o)},!0),r;if(n.A!==e)return r;if(!n.P)return eo(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=sn(n.k):n.o,i=a,c=!1;n.i===3&&(i=new Set(a),a.clear(),c=!0),Et(i,function(l,p){return ks(e,n,a,l,p,o,c)}),eo(e,a,!1),o&&e.u&&ke("Patches").N(n,o,e.u,e.s)}return n.o}function ks(e,r,o,n,a,i,c){if(Ge(a)){var l=Jr(e,a,i&&r&&r.i!==3&&!Wt(r.R,n)?i.concat(n):void 0);if(Fs(o,n,l),!Ge(l))return;e.m=!1}else c&&o.add(a);if(Re(a)&&!ln(a)){if(!e.h.D&&e._<1)return;Jr(e,a),r&&r.A.l||eo(e,a)}}function eo(e,r,o){o===void 0&&(o=!1),!e.l&&e.h.D&&e.m&&cn(r,o)}function Qo(e,r){var o=e[j];return(o?st(o):e)[r]}function Ds(e,r){if(r in e)for(var o=Object.getPrototypeOf(e);o;){var n=Object.getOwnPropertyDescriptor(o,r);if(n)return n;o=Object.getPrototypeOf(o)}}function ct(e){e.P||(e.P=!0,e.l&&ct(e.l))}function Jo(e){e.o||(e.o=sn(e.t))}function rn(e,r,o){var n=nn(r)?ke("MapSet").F(r,o):an(r)?ke("MapSet").T(r,o):e.O?function(a,i){var c=Array.isArray(a),l={i:c?1:0,A:i?i.A:en(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},p=l,u=mr;c&&(p=[l],u=yr);var y=Proxy.revocable(p,u),h=y.revoke,m=y.proxy;return l.k=m,l.j=h,m}(r,o):ke("ES5").J(r,o);return(o?o.A:en()).p.push(n),n}function ml(e){return Ge(e)||Ce(22,e),function r(o){if(!Re(o))return o;var n,a=o[j],i=zt(o);if(a){if(!a.P&&(a.i<4||!ke("ES5").K(a)))return a.t;a.I=!0,n=Bs(o,i),a.I=!1}else n=Bs(o,i);return Et(n,function(c,l){a&&fl(a.t,c)===l||Fs(n,c,r(l))}),i===3?new Set(n):n}(e)}function Bs(e,r){switch(r){case 2:return new Map(e);case 3:return Array.from(e)}return sn(e)}function Hs(){function e(c,l){var p=i[c];return p?p.enumerable=l:i[c]=p={configurable:!0,enumerable:l,get:function(){var u=this[j];return mr.get(u,c)},set:function(u){var y=this[j];mr.set(y,c,u)}},p}function r(c){for(var l=c.length-1;l>=0;l--){var p=c[l][j];if(!p.P)switch(p.i){case 5:n(p)&&ct(p);break;case 4:o(p)&&ct(p)}}}function o(c){for(var l=c.t,p=c.k,u=Ht(p),y=u.length-1;y>=0;y--){var h=u[y];if(h!==j){var m=l[h];if(m===void 0&&!Wt(l,h))return!0;var v=p[h],x=v&&v[j];if(x?x.t!==m:!Ws(v,m))return!0}}var S=!!l[j];return u.length!==Ht(l).length+(S?0:1)}function n(c){var l=c.k;if(l.length!==c.t.length)return!0;var p=Object.getOwnPropertyDescriptor(l,l.length-1);if(p&&!p.get)return!0;for(var u=0;u<l.length;u++)if(!l.hasOwnProperty(u))return!0;return!1}function a(c){c.g&&Ce(3,JSON.stringify(st(c)))}var i={};yl("ES5",{J:function(c,l){var p=Array.isArray(c),u=function(h,m){if(h){for(var v=Array(m.length),x=0;x<m.length;x++)Object.defineProperty(v,""+x,e(x,!0));return v}var S=Gs(m);delete S[j];for(var I=Ht(S),R=0;R<I.length;R++){var N=I[R];S[N]=e(N,h||!!S[N].enumerable)}return Object.create(Object.getPrototypeOf(m),S)}(p,c),y={i:p?5:4,A:l?l.A:en(),P:!1,I:!1,R:{},l,t:c,k:u,o:null,g:!1,C:!1};return Object.defineProperty(u,j,{value:y,writable:!0}),u},S:function(c,l,p){p?Ge(l)&&l[j].A===c&&r(c.p):(c.u&&function u(y){if(y&&typeof y=="object"){var h=y[j];if(h){var m=h.t,v=h.k,x=h.R,S=h.i;if(S===4)Et(v,function(B){B!==j&&(m[B]!==void 0||Wt(m,B)?x[B]||u(v[B]):(x[B]=!0,ct(h)))}),Et(m,function(B){v[B]!==void 0||Wt(v,B)||(x[B]=!1,ct(h))});else if(S===5){if(n(h)&&(ct(h),x.length=!0),v.length<m.length)for(var I=v.length;I<m.length;I++)x[I]=!1;else for(var R=m.length;R<v.length;R++)x[R]=!0;for(var N=Math.min(v.length,m.length),_=0;_<N;_++)v.hasOwnProperty(_)||(x[_]=!0),x[_]===void 0&&u(v[_])}}}}(c.p[0]),r(c.p))},K:function(c){return c.i===4?o(c):n(c)}})}var Us,gr,dn=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",bl=typeof Map<"u",xl=typeof Set<"u",$s=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",zs=dn?Symbol.for("immer-nothing"):((Us={})["immer-nothing"]=!0,Us),Ms=dn?Symbol.for("immer-draftable"):"__$immer_draftable",j=dn?Symbol.for("immer-state"):"__$immer_state";var vl=""+Object.prototype.constructor,Ht=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Gs=Object.getOwnPropertyDescriptors||function(e){var r={};return Ht(e).forEach(function(o){r[o]=Object.getOwnPropertyDescriptor(e,o)}),r},on={},mr={get:function(e,r){if(r===j)return e;var o=st(e);if(!Wt(o,r))return function(a,i,c){var l,p=Ds(i,c);return p?"value"in p?p.value:(l=p.get)===null||l===void 0?void 0:l.call(a.k):void 0}(e,o,r);var n=o[r];return e.I||!Re(n)?n:n===Qo(e.t,r)?(Jo(e),e.o[r]=rn(e.A.h,n,e)):n},has:function(e,r){return r in st(e)},ownKeys:function(e){return Reflect.ownKeys(st(e))},set:function(e,r,o){var n=Ds(st(e),r);if(n?.set)return n.set.call(e.k,o),!0;if(!e.P){var a=Qo(st(e),r),i=a?.[j];if(i&&i.t===o)return e.o[r]=o,e.R[r]=!1,!0;if(Ws(o,a)&&(o!==void 0||Wt(e.t,r)))return!0;Jo(e),ct(e)}return e.o[r]===o&&(o!==void 0||r in e.o)||Number.isNaN(o)&&Number.isNaN(e.o[r])||(e.o[r]=o,e.R[r]=!0),!0},deleteProperty:function(e,r){return Qo(e.t,r)!==void 0||r in e.t?(e.R[r]=!1,Jo(e),ct(e)):delete e.R[r],e.o&&delete e.o[r],!0},getOwnPropertyDescriptor:function(e,r){var o=st(e),n=Reflect.getOwnPropertyDescriptor(o,r);return n&&{writable:!0,configurable:e.i!==1||r!=="length",enumerable:n.enumerable,value:o[r]}},defineProperty:function(){Ce(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Ce(12)}},yr={};Et(mr,function(e,r){yr[e]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)}}),yr.deleteProperty=function(e,r){return yr.set.call(this,e,r,void 0)},yr.set=function(e,r,o){return mr.set.call(this,e[0],r,o,e[0])};var Sl=function(){function e(o){var n=this;this.O=$s,this.D=!0,this.produce=function(a,i,c){if(typeof a=="function"&&typeof i!="function"){var l=i;i=a;var p=n;return function(S){var I=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(B){var U;return(U=i).call.apply(U,[I,B].concat(N))})}}var u;if(typeof i!="function"&&Ce(6),c!==void 0&&typeof c!="function"&&Ce(7),Re(a)){var y=_s(n),h=rn(n,a,void 0),m=!0;try{u=i(h),m=!1}finally{m?Qr(y):tn(y)}return typeof Promise<"u"&&u instanceof Promise?u.then(function(S){return Yo(y,c),Xo(S,y)},function(S){throw Qr(y),S}):(Yo(y,c),Xo(u,y))}if(!a||typeof a!="object"){if((u=i(a))===void 0&&(u=a),u===zs&&(u=void 0),n.D&&cn(u,!0),c){var v=[],x=[];ke("Patches").M(a,u,v,x),c(v,x)}return u}Ce(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(u){for(var y=arguments.length,h=Array(y>1?y-1:0),m=1;m<y;m++)h[m-1]=arguments[m];return n.produceWithPatches(u,function(v){return a.apply(void 0,[v].concat(h))})};var c,l,p=n.produce(a,i,function(u,y){c=u,l=y});return typeof Promise<"u"&&p instanceof Promise?p.then(function(u){return[u,c,l]}):[p,c,l]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var r=e.prototype;return r.createDraft=function(o){Re(o)||Ce(8),Ge(o)&&(o=ml(o));var n=_s(this),a=rn(this,o,void 0);return a[j].C=!0,tn(n),a},r.finishDraft=function(o,n){var a=o&&o[j],i=a.A;return Yo(i,n),Xo(void 0,i)},r.setAutoFreeze=function(o){this.D=o},r.setUseProxies=function(o){o&&!$s&&Ce(20),this.O=o},r.applyPatches=function(o,n){var a;for(a=n.length-1;a>=0;a--){var i=n[a];if(i.path.length===0&&i.op==="replace"){o=i.value;break}}a>-1&&(n=n.slice(a+1));var c=ke("Patches").$;return Ge(o)?c(o,n):this.produce(o,function(l){return c(l,n)})},e}(),Se=new Sl,Ol=Se.produce,gm=Se.produceWithPatches.bind(Se),mm=Se.setAutoFreeze.bind(Se),bm=Se.setUseProxies.bind(Se),xm=Se.applyPatches.bind(Se),vm=Se.createDraft.bind(Se),Sm=Se.finishDraft.bind(Se),to=Ol;function lt(e){"@babel/helpers - typeof";return lt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},lt(e)}function un(e,r){if(lt(e)!=="object"||e===null)return e;var o=e[Symbol.toPrimitive];if(o!==void 0){var n=o.call(e,r||"default");if(lt(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function pn(e){var r=un(e,"string");return lt(r)==="symbol"?r:String(r)}function fn(e,r,o){return r=pn(r),r in e?Object.defineProperty(e,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[r]=o,e}function js(e,r){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),o.push.apply(o,n)}return o}function ro(e){for(var r=1;r<arguments.length;r++){var o=arguments[r]!=null?arguments[r]:{};r%2?js(Object(o),!0).forEach(function(n){fn(e,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):js(Object(o)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(o,n))})}return e}function ce(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Vs=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),hn=function(){return Math.random().toString(36).substring(7).split("").join(".")},oo={INIT:"@@redux/INIT"+hn(),REPLACE:"@@redux/REPLACE"+hn(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+hn()}};function Cl(e){if(typeof e!="object"||e===null)return!1;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(e)===r}function yn(e,r,o){var n;if(typeof r=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(ce(0));if(typeof r=="function"&&typeof o>"u"&&(o=r,r=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(ce(1));return o(yn)(e,r)}if(typeof e!="function")throw new Error(ce(2));var a=e,i=r,c=[],l=c,p=!1;function u(){l===c&&(l=c.slice())}function y(){if(p)throw new Error(ce(3));return i}function h(S){if(typeof S!="function")throw new Error(ce(4));if(p)throw new Error(ce(5));var I=!0;return u(),l.push(S),function(){if(I){if(p)throw new Error(ce(6));I=!1,u();var N=l.indexOf(S);l.splice(N,1),c=null}}}function m(S){if(!Cl(S))throw new Error(ce(7));if(typeof S.type>"u")throw new Error(ce(8));if(p)throw new Error(ce(9));try{p=!0,i=a(i,S)}finally{p=!1}for(var I=c=l,R=0;R<I.length;R++){var N=I[R];N()}return S}function v(S){if(typeof S!="function")throw new Error(ce(10));a=S,m({type:oo.REPLACE})}function x(){var S,I=h;return S={subscribe:function(N){if(typeof N!="object"||N===null)throw new Error(ce(11));function _(){N.next&&N.next(y())}_();var B=I(_);return{unsubscribe:B}}},S[Vs]=function(){return this},S}return m({type:oo.INIT}),n={dispatch:m,subscribe:h,getState:y,replaceReducer:v},n[Vs]=x,n}function El(e){Object.keys(e).forEach(function(r){var o=e[r],n=o(void 0,{type:oo.INIT});if(typeof n>"u")throw new Error(ce(12));if(typeof o(void 0,{type:oo.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ce(13))})}function Ks(e){for(var r=Object.keys(e),o={},n=0;n<r.length;n++){var a=r[n];typeof e[a]=="function"&&(o[a]=e[a])}var i=Object.keys(o),c,l;try{El(o)}catch(p){l=p}return function(u,y){if(u===void 0&&(u={}),l)throw l;if(0)var h;for(var m=!1,v={},x=0;x<i.length;x++){var S=i[x],I=o[S],R=u[S],N=I(R,y);if(typeof N>"u"){var _=y&&y.type;throw new Error(ce(14))}v[S]=N,m=m||N!==R}return m=m||i.length!==Object.keys(u).length,m?v:u}}function Gt(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return r.length===0?function(n){return n}:r.length===1?r[0]:r.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function Zs(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return function(n){return function(){var a=n.apply(void 0,arguments),i=function(){throw new Error(ce(15))},c={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},l=r.map(function(p){return p(c)});return i=Gt.apply(void 0,l)(a.dispatch),ro(ro({},a),{},{dispatch:i})}}}function qs(e){var r=function(n){var a=n.dispatch,i=n.getState;return function(c){return function(l){return typeof l=="function"?l(a,i,e):c(l)}}};return r}var Ys=qs();Ys.withExtraArgument=qs;var gn=Ys;var tc=function(){var e=function(r,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},e(r,o)};return function(r,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");e(r,o);function n(){this.constructor=r}r.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),wl=function(e,r){var o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,c;return c={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function l(u){return function(y){return p([u,y])}}function p(u){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,a=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(i=o.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){o=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){o.label=u[1];break}if(u[0]===6&&o.label<i[1]){o.label=i[1],i=u;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(u);break}i[2]&&o.ops.pop(),o.trys.pop();continue}u=r.call(e,o)}catch(y){u=[6,y],a=0}finally{n=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},jt=function(e,r){for(var o=0,n=r.length,a=e.length;o<n;o++,a++)e[a]=r[o];return e},Al=Object.defineProperty,Rl=Object.defineProperties,Nl=Object.getOwnPropertyDescriptors,Xs=Object.getOwnPropertySymbols,Il=Object.prototype.hasOwnProperty,Ll=Object.prototype.propertyIsEnumerable,Qs=function(e,r,o){return r in e?Al(e,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[r]=o},dt=function(e,r){for(var o in r||(r={}))Il.call(r,o)&&Qs(e,o,r[o]);if(Xs)for(var n=0,a=Xs(r);n<a.length;n++){var o=a[n];Ll.call(r,o)&&Qs(e,o,r[o])}return e},mn=function(e,r){return Rl(e,Nl(r))},Pl=function(e,r,o){return new Promise(function(n,a){var i=function(p){try{l(o.next(p))}catch(u){a(u)}},c=function(p){try{l(o.throw(p))}catch(u){a(u)}},l=function(p){return p.done?n(p.value):Promise.resolve(p.value).then(i,c)};l((o=o.apply(e,r)).next())})};var Tl=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Gt:Gt.apply(null,arguments)},Mm=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function _l(e){if(typeof e!="object"||e===null)return!1;var r=Object.getPrototypeOf(e);if(r===null)return!0;for(var o=r;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return r===o}var kl=function(e){tc(r,e);function r(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=e.apply(this,o)||this;return Object.setPrototypeOf(a,r.prototype),a}return Object.defineProperty(r,Symbol.species,{get:function(){return r},enumerable:!1,configurable:!0}),r.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return e.prototype.concat.apply(this,o)},r.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(r.bind.apply(r,jt([void 0],o[0].concat(this)))):new(r.bind.apply(r,jt([void 0],o.concat(this))))},r}(Array),Dl=function(e){tc(r,e);function r(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=e.apply(this,o)||this;return Object.setPrototypeOf(a,r.prototype),a}return Object.defineProperty(r,Symbol.species,{get:function(){return r},enumerable:!1,configurable:!0}),r.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return e.prototype.concat.apply(this,o)},r.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(r.bind.apply(r,jt([void 0],o[0].concat(this)))):new(r.bind.apply(r,jt([void 0],o.concat(this))))},r}(Array);function vn(e){return Re(e)?to(e,function(){}):e}function Bl(e){return typeof e=="boolean"}function Ul(){return function(r){return $l(r)}}function $l(e){e===void 0&&(e={});var r=e.thunk,o=r===void 0?!0:r,n=e.immutableCheck,a=n===void 0?!0:n,i=e.serializableCheck,c=i===void 0?!0:i,l=new kl;if(o&&(Bl(o)?l.push(gn):l.push(gn.withExtraArgument(o.extraArgument))),0){if(a)var p;if(c)var u}return l}var bn=!0;function rc(e){var r=Ul(),o=e||{},n=o.reducer,a=n===void 0?void 0:n,i=o.middleware,c=i===void 0?r():i,l=o.devTools,p=l===void 0?!0:l,u=o.preloadedState,y=u===void 0?void 0:u,h=o.enhancers,m=h===void 0?void 0:h,v;if(typeof a=="function")v=a;else if(_l(a))v=Ks(a);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var x=c;if(typeof x=="function"&&(x=x(r),!bn&&!Array.isArray(x)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!bn&&x.some(function(B){return typeof B!="function"}))throw new Error("each middleware provided to configureStore must be a function");var S=Zs.apply(void 0,x),I=Gt;p&&(I=Tl(dt({trace:!bn},typeof p=="object"&&p)));var R=new Dl(S),N=R;Array.isArray(m)?N=jt([S],m):typeof m=="function"&&(N=m(R));var _=I.apply(void 0,N);return yn(v,y,_)}function ut(e,r){function o(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(r){var i=r.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return dt(dt({type:e,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:e,payload:n[0]}}return o.toString=function(){return""+e},o.type=e,o.match=function(n){return n.type===e},o}function oc(e){var r={},o=[],n,a={addCase:function(i,c){var l=typeof i=="string"?i:i.type;if(l in r)throw new Error("addCase cannot be called with two reducers for the same action type");return r[l]=c,a},addMatcher:function(i,c){return o.push({matcher:i,reducer:c}),a},addDefaultCase:function(i){return n=i,a}};return e(a),[r,o,n]}function Ml(e){return typeof e=="function"}function Fl(e,r,o,n){o===void 0&&(o=[]);var a=typeof r=="function"?oc(r):[r,o,n],i=a[0],c=a[1],l=a[2],p;if(Ml(e))p=function(){return vn(e())};else{var u=vn(e);p=function(){return u}}function y(h,m){h===void 0&&(h=p());var v=jt([i[m.type]],c.filter(function(x){var S=x.matcher;return S(m)}).map(function(x){var S=x.reducer;return S}));return v.filter(function(x){return!!x}).length===0&&(v=[l]),v.reduce(function(x,S){if(S)if(Ge(x)){var I=x,R=S(I,m);return R===void 0?x:R}else{if(Re(x))return to(x,function(N){return S(N,m)});var R=S(x,m);if(R===void 0){if(x===null)return x;throw Error("A case reducer on a non-draftable value must not return undefined")}return R}return x},h)}return y.getInitialState=p,y}function Wl(e,r){return e+"/"+r}function nc(e){var r=e.name;if(!r)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof e.initialState=="function"?e.initialState:vn(e.initialState),n=e.reducers||{},a=Object.keys(n),i={},c={},l={};a.forEach(function(y){var h=n[y],m=Wl(r,y),v,x;"reducer"in h?(v=h.reducer,x=h.prepare):v=h,i[y]=v,c[m]=v,l[y]=x?ut(m,x):ut(m)});function p(){var y=typeof e.extraReducers=="function"?oc(e.extraReducers):[e.extraReducers],h=y[0],m=h===void 0?{}:h,v=y[1],x=v===void 0?[]:v,S=y[2],I=S===void 0?void 0:S,R=dt(dt({},m),c);return Fl(o,function(N){for(var _ in R)N.addCase(_,R[_]);for(var B=0,U=x;B<U.length;B++){var pe=U[B];N.addMatcher(pe.matcher,pe.reducer)}I&&N.addDefaultCase(I)})}var u;return{name:r,reducer:function(y,h){return u||(u=p()),u(y,h)},actions:l,caseReducers:i,getInitialState:function(){return u||(u=p()),u.getInitialState()}}}var Hl="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",zl=function(e){e===void 0&&(e=21);for(var r="",o=e;o--;)r+=Hl[Math.random()*64|0];return r},Gl=["name","message","stack","code"],xn=function(){function e(r,o){this.payload=r,this.meta=o}return e}(),Js=function(){function e(r,o){this.payload=r,this.meta=o}return e}(),jl=function(e){if(typeof e=="object"&&e!==null){for(var r={},o=0,n=Gl;o<n.length;o++){var a=n[o];typeof e[a]=="string"&&(r[a]=e[a])}return r}return{message:String(e)}},zm=function(){function e(r,o,n){var a=ut(r+"/fulfilled",function(y,h,m,v){return{payload:y,meta:mn(dt({},v||{}),{arg:m,requestId:h,requestStatus:"fulfilled"})}}),i=ut(r+"/pending",function(y,h,m){return{payload:void 0,meta:mn(dt({},m||{}),{arg:h,requestId:y,requestStatus:"pending"})}}),c=ut(r+"/rejected",function(y,h,m,v,x){return{payload:v,error:(n&&n.serializeError||jl)(y||"Rejected"),meta:mn(dt({},x||{}),{arg:m,requestId:h,rejectedWithValue:!!v,requestStatus:"rejected",aborted:y?.name==="AbortError",condition:y?.name==="ConditionError"})}}),l=!1,p=typeof AbortController<"u"?AbortController:function(){function y(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return y.prototype.abort=function(){},y}();function u(y){return function(h,m,v){var x=n?.idGenerator?n.idGenerator(y):zl(),S=new p,I,R=!1;function N(B){I=B,S.abort()}var _=function(){return Pl(this,null,function(){var B,U,pe,Ie,le,Le,oe;return wl(this,function(g){switch(g.label){case 0:return g.trys.push([0,4,,5]),Ie=(B=n?.condition)==null?void 0:B.call(n,y,{getState:m,extra:v}),Kl(Ie)?[4,Ie]:[3,2];case 1:Ie=g.sent(),g.label=2;case 2:if(Ie===!1||S.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return R=!0,le=new Promise(function(b,P){return S.signal.addEventListener("abort",function(){return P({name:"AbortError",message:I||"Aborted"})})}),h(i(x,y,(U=n?.getPendingMeta)==null?void 0:U.call(n,{requestId:x,arg:y},{getState:m,extra:v}))),[4,Promise.race([le,Promise.resolve(o(y,{dispatch:h,getState:m,extra:v,requestId:x,signal:S.signal,abort:N,rejectWithValue:function(b,P){return new xn(b,P)},fulfillWithValue:function(b,P){return new Js(b,P)}})).then(function(b){if(b instanceof xn)throw b;return b instanceof Js?a(b.payload,x,y,b.meta):a(b,x,y)})])];case 3:return pe=g.sent(),[3,5];case 4:return Le=g.sent(),pe=Le instanceof xn?c(null,x,y,Le.payload,Le.meta):c(Le,x,y),[3,5];case 5:return oe=n&&!n.dispatchConditionRejection&&c.match(pe)&&pe.meta.condition,oe||h(pe),[2,pe]}})})}();return Object.assign(_,{abort:N,requestId:x,arg:y,unwrap:function(){return _.then(Vl)}})}}return Object.assign(u,{pending:i,rejected:c,fulfilled:a,typePrefix:r})}return e.withTypes=function(){return e},e}();function Vl(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Kl(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var ac="listener",ic="completed",sc="cancelled",Gm="task-"+sc,jm="task-"+ic,Vm=ac+"-"+sc,Km=ac+"-"+ic;var Sn="listenerMiddleware";var Zm=ut(Sn+"/add"),qm=ut(Sn+"/removeAll"),Ym=ut(Sn+"/remove");var ec,Xm=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(ec||(ec=Promise.resolve())).then(e).catch(function(r){return setTimeout(function(){throw r},0)})},Zl=function(e){return function(r){setTimeout(r,e)}},Qm=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Zl(10);Hs();function ql(e,r){return class extends e{constructor(){super(...arguments),this.eventBus=r??document.createElement("span")}addEventListener(o,n,a){this.eventBus.addEventListener(o,n,a)}dispatchEvent(o){return this.eventBus.dispatchEvent(o)}removeEventListener(o,n,a){this.eventBus.removeEventListener(o,n,a)}}}var no=class extends ql(Object){};window.ftReduxStores||(window.ftReduxStores={});var cc=class e extends no{static get(r){var o;let n=typeof r=="string"?r:r.name,a=typeof r=="string"?void 0:r,i=window.ftReduxStores[n];if(pr(i))return i;if(a==null)return;let c=nc({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),l=rc({reducer:(p,u)=>u.type==="CLEAR_FT_REDUX_STORE"?c.getInitialState():typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__")?{...p,...u.overwrites}:c.reducer(p,u)});return window.ftReduxStores[a.name]=new e(c,l)}constructor(r,o){super(),this.reduxSlice=r,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new Kr;let n=a=>a!=null?JSON.parse(JSON.stringify(a)):a;this.actions=new Proxy(this.reduxSlice.actions,{get:(a,i,c)=>{let l=i,p=a[l];return p?(...u)=>{let y=p(...u.map(n));return this.reduxStore.dispatch(y),y}:u=>{this.setState({[l]:n(u)})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(r){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(r).join("_"),overwrites:r})}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(r){throw new Error("Not implemented yet.")}subscribe(r){return this.reduxStore.subscribe(r)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var co=C(k());var ao=class extends ze{async listMySearches(){let r=T.getState().session;return r?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(r.profile.userId),5*60*1e3):[]}};var io=class extends ze{async listMyBookmarks(){let r=T.getState().session;return r?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(r.profile.userId),5*60*1e3):[]}};var Xl="ft-user-assets",so=co.FtReduxStore.get({name:Xl,initialState:{savedSearches:void 0,bookmarks:void 0}}),On=class{constructor(){this.currentSession=T.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new io,this.savedSearchesService=new ao,T.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var r;let{session:o}=T.getState();(0,co.deepEqual)((r=this.currentSession)===null||r===void 0?void 0:r.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),so.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),so.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let r=await this.savedSearchesService.listMySearches();so.actions.savedSearches(r)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var r;if(this.bookmarksAreUsed){let o=!((r=this.currentSession)===null||r===void 0)&&r.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;so.actions.bookmarks(o)}}},_b=new On;var Cn=class{addCommand(r,o=!1){T.commands.add(r,o)}consumeCommand(r){return T.commands.consume(r)}};window.FluidTopicsAppInfoStoreService=new Cn;var lc=C(k()),En=class{highlightHtml(r,o,n){(0,lc.highlightHtml)(r,o,n)}};window.FluidTopicsHighlightHtmlService=new En;var dc=C(k());var wn=class{isDate(r){var o,n,a,i;return(i=(a=((n=(o=T.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]).find(l=>l.key===r))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1}format(r,o){var n,a,i;return dc.DateFormatter.format(r,(n=o?.locale)!==null&&n!==void 0?n:T.getState().uiLocale,(a=o?.longFormat)!==null&&a!==void 0?a:!1,(i=o?.withTime)!==null&&i!==void 0?i:!1)}};window.FluidTopicsDateService=new wn;var uc=C(k());var Vt=class{static get(r,o){var n,a,i,c;let l=T.getState(),{lang:p,region:u}=(a=(n=l.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&a!==void 0?a:{lang:"en",region:"US"};return new uc.SearchPlaceConverter(l.baseUrl,(c=(i=window.FluidTopicsClientConfiguration)===null||i===void 0?void 0:i.predefinedSorts)!==null&&c!==void 0?c:{},r??20,l.searchInAllLanguagesAllowed,o??`${p}-${u}`)}};(0,pc.customElement)("ft-app-context")(q);var An=class e extends Event{constructor(){super(e.eventName)}};An.eventName="search-context-clear-all-filters";var Ql=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},Nn=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},Rn=Symbol("registerInterval");function Jl(e){var r;class o extends e{constructor(){super(...arguments),this[r]=0}setSearchStateManager(a){this.clearStateManager(),this.stateManager=a,this.addStore(a.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[Rn]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[Rn]):this.dispatchEvent(new Nn)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return r=Rn,Ql([(0,hc.state)()],o.prototype,"stateManager",void 0),o}var Kt=class extends Jl(fc.FtLitElementRedux){};var xc=C(k());var yo=C(W()),go=C(te()),mo=C(k());var yc=C(W());var gc=yc.css`
|
|
1143
|
+
`}update(r){var o,n,a,i,c;super.update(r),r.has("baseUrl")&&(T.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),r.has("apiIntegrationIdentifier")&&T.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),r.has("uiLocale")&&T.actions.uiLocale(this.uiLocale),r.has("metadataConfiguration")&&T.actions.metadataConfiguration(this.metadataConfiguration),r.has("noCustom")&&T.actions.noCustom(this.noCustom),r.has("editorMode")&&T.actions.editorMode(this.editorMode),r.has("noCustomComponent")&&T.actions.noCustomComponent(this.noCustomComponent),r.has("session")&&T.actions.session(this.session),r.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(l=>Ot.addContext(l)),r.has("openExternalDocumentInNewTab")&&T.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),r.has("navigatorOnline")&&T.actions.navigatorOnline(this.navigatorOnline),r.has("forcedOffline")&&T.actions.forcedOffline(this.forcedOffline),r.has("localesConfiguration")&&(T.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),T.actions.availableUiLocales((a=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&a!==void 0?a:[]),T.actions.searchInAllLanguagesAllowed((c=(i=this.localesConfiguration)===null||i===void 0?void 0:i.allLanguagesAllowed)!==null&&c!==void 0?c:!1)),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration())}async updateSession(){this.session=await this.cache.get("session",async()=>{let r=await this.apiProvider().getCurrentSession();return r.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},r.idleTimeoutInMillis),r})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}};q.elementDefinitions={};q.styles=ms;se([(0,me.property)()],q.prototype,"baseUrl",void 0);se([(0,me.property)()],q.prototype,"apiIntegrationIdentifier",void 0);se([(0,me.property)()],q.prototype,"uiLocale",void 0);se([(0,Ae.jsonProperty)(null)],q.prototype,"availableUiLocales",void 0);se([(0,Ae.jsonProperty)(null)],q.prototype,"metadataConfiguration",void 0);se([(0,me.property)({type:Boolean})],q.prototype,"editorMode",void 0);se([(0,me.property)({type:Boolean})],q.prototype,"noCustom",void 0);se([(0,me.property)({type:Boolean})],q.prototype,"openExternalDocumentInNewTab",void 0);se([(0,me.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],q.prototype,"noCustomComponent",void 0);se([(0,me.property)({type:Boolean})],q.prototype,"withManualResources",void 0);se([(0,me.property)({type:Boolean})],q.prototype,"navigatorOnline",void 0);se([(0,me.property)({type:Boolean})],q.prototype,"forcedOffline",void 0);se([(0,me.property)({type:Object})],q.prototype,"apiProvider",void 0);se([(0,Ae.jsonProperty)([])],q.prototype,"messageContexts",void 0);se([(0,Ae.jsonProperty)(void 0)],q.prototype,"session",void 0);se([(0,me.state)()],q.prototype,"localesConfiguration",void 0);var Yl=C(te());function dl(e,r){if(e===r)return!0;if(e&&r&&typeof e=="object"&&typeof r=="object"){if(e.constructor!==r.constructor)return!1;var o,n,a;if(Array.isArray(e)){if(o=e.length,o!=r.length)return!1;for(n=o;n--!==0;)if(!jr(e[n],r[n]))return!1;return!0}if(e instanceof Map&&r instanceof Map){if(e.size!==r.size)return!1;for(n of e.entries())if(!r.has(n[0]))return!1;for(n of e.entries())if(!jr(n[1],r.get(n[0])))return!1;return!0}if(e instanceof Set&&r instanceof Set){if(e.size!==r.size)return!1;for(n of e.entries())if(!r.has(n[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();let i=c=>Object.keys(c).filter(l=>c[l]!=null);if(a=i(e),o=a.length,o!==i(r).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(r,a[n]))return!1;for(n=o;n--!==0;){let c=a[n];if(!jr(e[c],r[c]))return!1}return!0}return e!==e&&r!==r||e==null&&r==null}function jr(e,r){try{return dl(e,r)}catch{return!1}}function Vr(e,r){return!jr(e,r)}var ul=C(te(),1);var Kr=class{constructor(){this.queue=[]}add(r,o=!1){o&&(this.queue=this.queue.filter(n=>n.type!==r.type)),this.queue.push(r)}consume(r){let o=this.queue.find(n=>n.type===r);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}};var ur=C(te(),1);var Ss=C(te(),1);function Os(e,r){let o=()=>JSON.parse(JSON.stringify(e));return(0,Ss.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:Vr,...r??{}})}var Zr=class{constructor(r=0){this.timeout=r,this.callbacks=[]}run(r,o){return this.callbacks=[r],this.debounce(o)}queue(r,o){return this.callbacks.push(r),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(r){return this.promise==null&&(this.promise=new Promise((o,n)=>{this.resolvePromise=o,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),r??this.timeout),this.promise}async runCallbacks(){var r,o;let n=[...this.callbacks];this.callbacks=[];let a=(r=this.rejectPromise)!==null&&r!==void 0?r:()=>null,i=(o=this.resolvePromise)!==null&&o!==void 0?o:()=>null;this.clearPromise();for(let c of n)try{await c()}catch(l){a(l);return}i(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Es=C(W(),1);var qr=window,pl=qr.ShadowRoot&&(qr.ShadyCSS===void 0||qr.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,nm=Symbol();var Cs=(e,r)=>{pl?e.adoptedStyleSheets=r.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet):r.forEach(o=>{let n=document.createElement("style"),a=qr.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=o.cssText,e.appendChild(n)})};var Yr=class extends Es.LitElement{createRenderRoot(){let r=this.constructor;r.elementDefinitions&&!r.registry&&(r.registry=new CustomElementRegistry,Object.entries(r.elementDefinitions).forEach(([a,i])=>r.registry.define(a,i)));let o={...r.shadowRootOptions,customElements:r.registry},n=this.renderOptions.creationScope=this.attachShadow(o);return Cs(n,r.elementStyles),n}};var Xr=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},Ns,ws=Symbol("constructorPrototype"),As=Symbol("constructorName"),Is=Symbol("exportpartsDebouncer"),Rs=Symbol("dynamicDependenciesLoaded"),at=class extends Yr{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Ns]=new Zr(5),this[As]=this.constructor.name,this[ws]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[As]&&Object.setPrototypeOf(this,this[ws])}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 r=this.constructor;r[Rs]||(r[Rs]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(r){super.updated(r),this.updateComplete.then(()=>{this.contentAvailableCallback(r),this.applyCustomStylesheet(r),this.scheduleExportpartsUpdate()})}contentAvailableCallback(r){}applyCustomStylesheet(r){var o,n,a;if(((n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(i=>i.remove()),this.useAdoptedStyleSheets){if(r.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((a=this.customStylesheet)!==null&&a!==void 0?a:"")}catch(i){console.error(i,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let i=document.createElement("style");i.classList.add("ft-lit-element--custom-stylesheet"),i.innerHTML=this.customStylesheet,this.shadowRoot.append(i)}}scheduleExportpartsUpdate(){var r,o,n;(!((r=this.exportpartsPrefix)===null||r===void 0)&&r.trim()||(n=(o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)!==null&&n!==void 0&&n)&&this[Is].run(()=>{var a,i;!((a=this.exportpartsPrefix)===null||a===void 0)&&a.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((i=this.exportpartsPrefixes)===null||i===void 0?void 0:i.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(r){var o,n,a,i,c,l;let p=m=>m!=null&&m.trim().length>0,u=r.filter(p).map(m=>m.trim());if(u.length===0){this.removeAttribute("exportparts");return}let y=new Set;for(let m of(n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let v=(i=(a=m.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&i!==void 0?i:[],x=(l=(c=m.getAttribute("exportparts"))===null||c===void 0?void 0:c.split(",").map(S=>S.split(":")[1]))!==null&&l!==void 0?l:[];new Array(...v,...x).filter(p).map(S=>S.trim()).forEach(S=>y.add(S))}if(y.size===0){this.removeAttribute("exportparts");return}let h=[...y.values()].flatMap(m=>u.map(v=>`${m}:${v}--${m}`));this.setAttribute("exportparts",[...this.part,...h].join(", "))}};Ns=Is;Xr([(0,ur.property)()],at.prototype,"exportpartsPrefix",void 0);Xr([Os([])],at.prototype,"exportpartsPrefixes",void 0);Xr([(0,ur.property)()],at.prototype,"customStylesheet",void 0);Xr([(0,ur.state)()],at.prototype,"useAdoptedStyleSheets",void 0);function pr(e){var r;return(r=e?.isFtReduxStore)!==null&&r!==void 0?r:!1}var Ls,Ps,Ts,fr=Symbol("internalReduxEventsUnsubscribers"),it=Symbol("internalStoresUnsubscribers"),Ct=Symbol("internalStores"),hr=class extends at{constructor(){super(...arguments),this[Ls]=new Map,this[Ps]=new Map,this[Ts]=new Map}get reduxConstructor(){return this.constructor}update(r){super.update(r),[...this.reduxConstructor.reduxReactiveProperties].some(o=>r.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[Ct].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ct].values()][0]}getStore(r){return r==null?this.getUnnamedStore():this[Ct].get(r)}addStore(r,o){var n;o=(n=o??(pr(r)?r.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(o),this[Ct].set(o,r),this.subscribeToStore(o,r),this.updateFromStores()}removeStore(r){let o=typeof r=="string"?r:r.name;this.unsubscribeFromStore(o),this[Ct].delete(o)}setupStores(){this.unsubscribeFromStores(),this[Ct].forEach((r,o)=>this.subscribeToStore(o,r)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((r,o)=>{let n=this.constructor.getPropertyOptions(o);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:o)){let a=this.getStore(r.store);a&&(r.store?this[it].has(r.store):this[it].size>0)&&(this[o]=r.selector(a.getState(),this))}})}subscribeToStore(r,o){var n;this[it].set(r,o.subscribe(()=>this.updateFromStores())),this[fr].set(r,[]),pr(o)&&o.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((a,i)=>{if(typeof this[i]=="function"&&(!a.store||o.name===a.store)){let c=l=>this[i](l);o.addEventListener(a.eventName,c),this[fr].get(r).push(()=>o.removeEventListener(a.eventName,c))}})),this.onStoreAvailable(r)}unsubscribeFromStores(){this[it].forEach((r,o)=>this.unsubscribeFromStore(o))}unsubscribeFromStore(r){var o;this[it].has(r)&&this[it].get(r)(),this[it].delete(r),(o=this[fr].get(r))===null||o===void 0||o.forEach(n=>n()),this[fr].delete(r)}onStoreAvailable(r){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Ls=it,Ps=Ct,Ts=fr;hr.reduxProperties=new Map;hr.reduxReactiveProperties=new Set;hr.reduxEventListeners=new Map;function Ce(e){for(var r=arguments.length,o=Array(r>1?r-1:0),n=1;n<r;n++)o[n-1]=arguments[n];if(0)var a,i;throw Error("[Immer] minified error nr: "+e+(o.length?" "+o.map(function(c){return"'"+c+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Ge(e){return!!e&&!!e[j]}function Re(e){var r;return!!e&&(function(o){if(!o||typeof o!="object")return!1;var n=Object.getPrototypeOf(o);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===vl}(e)||Array.isArray(e)||!!e[Ms]||!!(!((r=e.constructor)===null||r===void 0)&&r[Ms])||nn(e)||an(e))}function Et(e,r,o){o===void 0&&(o=!1),zt(e)===0?(o?Object.keys:Ht)(e).forEach(function(n){o&&typeof n=="symbol"||r(n,e[n],e)}):e.forEach(function(n,a){return r(a,n,e)})}function zt(e){var r=e[j];return r?r.i>3?r.i-4:r.i:Array.isArray(e)?1:nn(e)?2:an(e)?3:0}function Wt(e,r){return zt(e)===2?e.has(r):Object.prototype.hasOwnProperty.call(e,r)}function fl(e,r){return zt(e)===2?e.get(r):e[r]}function Fs(e,r,o){var n=zt(e);n===2?e.set(r,o):n===3?e.add(o):e[r]=o}function Ws(e,r){return e===r?e!==0||1/e==1/r:e!=e&&r!=r}function nn(e){return bl&&e instanceof Map}function an(e){return xl&&e instanceof Set}function st(e){return e.o||e.t}function sn(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var r=Gs(e);delete r[j];for(var o=Ht(r),n=0;n<o.length;n++){var a=o[n],i=r[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(r[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[a]})}return Object.create(Object.getPrototypeOf(e),r)}function cn(e,r){return r===void 0&&(r=!1),ln(e)||Ge(e)||!Re(e)||(zt(e)>1&&(e.set=e.add=e.clear=e.delete=hl),Object.freeze(e),r&&Et(e,function(o,n){return cn(n,!0)},!0)),e}function hl(){Ce(2)}function ln(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function ke(e){var r=on[e];return r||Ce(18,e),r}function yl(e,r){on[e]||(on[e]=r)}function en(){return gr}function Yo(e,r){r&&(ke("Patches"),e.u=[],e.s=[],e.v=r)}function Qr(e){tn(e),e.p.forEach(gl),e.p=null}function tn(e){e===gr&&(gr=e.l)}function _s(e){return gr={p:[],l:gr,h:e,m:!0,_:0}}function gl(e){var r=e[j];r.i===0||r.i===1?r.j():r.g=!0}function Xo(e,r){r._=r.p.length;var o=r.p[0],n=e!==void 0&&e!==o;return r.h.O||ke("ES5").S(r,e,n),n?(o[j].P&&(Qr(r),Ce(4)),Re(e)&&(e=Jr(r,e),r.l||eo(r,e)),r.u&&ke("Patches").M(o[j].t,e,r.u,r.s)):e=Jr(r,o,[]),Qr(r),r.u&&r.v(r.u,r.s),e!==zs?e:void 0}function Jr(e,r,o){if(ln(r))return r;var n=r[j];if(!n)return Et(r,function(l,p){return ks(e,n,r,l,p,o)},!0),r;if(n.A!==e)return r;if(!n.P)return eo(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=sn(n.k):n.o,i=a,c=!1;n.i===3&&(i=new Set(a),a.clear(),c=!0),Et(i,function(l,p){return ks(e,n,a,l,p,o,c)}),eo(e,a,!1),o&&e.u&&ke("Patches").N(n,o,e.u,e.s)}return n.o}function ks(e,r,o,n,a,i,c){if(Ge(a)){var l=Jr(e,a,i&&r&&r.i!==3&&!Wt(r.R,n)?i.concat(n):void 0);if(Fs(o,n,l),!Ge(l))return;e.m=!1}else c&&o.add(a);if(Re(a)&&!ln(a)){if(!e.h.D&&e._<1)return;Jr(e,a),r&&r.A.l||eo(e,a)}}function eo(e,r,o){o===void 0&&(o=!1),!e.l&&e.h.D&&e.m&&cn(r,o)}function Qo(e,r){var o=e[j];return(o?st(o):e)[r]}function Ds(e,r){if(r in e)for(var o=Object.getPrototypeOf(e);o;){var n=Object.getOwnPropertyDescriptor(o,r);if(n)return n;o=Object.getPrototypeOf(o)}}function ct(e){e.P||(e.P=!0,e.l&&ct(e.l))}function Jo(e){e.o||(e.o=sn(e.t))}function rn(e,r,o){var n=nn(r)?ke("MapSet").F(r,o):an(r)?ke("MapSet").T(r,o):e.O?function(a,i){var c=Array.isArray(a),l={i:c?1:0,A:i?i.A:en(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},p=l,u=mr;c&&(p=[l],u=yr);var y=Proxy.revocable(p,u),h=y.revoke,m=y.proxy;return l.k=m,l.j=h,m}(r,o):ke("ES5").J(r,o);return(o?o.A:en()).p.push(n),n}function ml(e){return Ge(e)||Ce(22,e),function r(o){if(!Re(o))return o;var n,a=o[j],i=zt(o);if(a){if(!a.P&&(a.i<4||!ke("ES5").K(a)))return a.t;a.I=!0,n=Bs(o,i),a.I=!1}else n=Bs(o,i);return Et(n,function(c,l){a&&fl(a.t,c)===l||Fs(n,c,r(l))}),i===3?new Set(n):n}(e)}function Bs(e,r){switch(r){case 2:return new Map(e);case 3:return Array.from(e)}return sn(e)}function Hs(){function e(c,l){var p=i[c];return p?p.enumerable=l:i[c]=p={configurable:!0,enumerable:l,get:function(){var u=this[j];return mr.get(u,c)},set:function(u){var y=this[j];mr.set(y,c,u)}},p}function r(c){for(var l=c.length-1;l>=0;l--){var p=c[l][j];if(!p.P)switch(p.i){case 5:n(p)&&ct(p);break;case 4:o(p)&&ct(p)}}}function o(c){for(var l=c.t,p=c.k,u=Ht(p),y=u.length-1;y>=0;y--){var h=u[y];if(h!==j){var m=l[h];if(m===void 0&&!Wt(l,h))return!0;var v=p[h],x=v&&v[j];if(x?x.t!==m:!Ws(v,m))return!0}}var S=!!l[j];return u.length!==Ht(l).length+(S?0:1)}function n(c){var l=c.k;if(l.length!==c.t.length)return!0;var p=Object.getOwnPropertyDescriptor(l,l.length-1);if(p&&!p.get)return!0;for(var u=0;u<l.length;u++)if(!l.hasOwnProperty(u))return!0;return!1}function a(c){c.g&&Ce(3,JSON.stringify(st(c)))}var i={};yl("ES5",{J:function(c,l){var p=Array.isArray(c),u=function(h,m){if(h){for(var v=Array(m.length),x=0;x<m.length;x++)Object.defineProperty(v,""+x,e(x,!0));return v}var S=Gs(m);delete S[j];for(var I=Ht(S),R=0;R<I.length;R++){var N=I[R];S[N]=e(N,h||!!S[N].enumerable)}return Object.create(Object.getPrototypeOf(m),S)}(p,c),y={i:p?5:4,A:l?l.A:en(),P:!1,I:!1,R:{},l,t:c,k:u,o:null,g:!1,C:!1};return Object.defineProperty(u,j,{value:y,writable:!0}),u},S:function(c,l,p){p?Ge(l)&&l[j].A===c&&r(c.p):(c.u&&function u(y){if(y&&typeof y=="object"){var h=y[j];if(h){var m=h.t,v=h.k,x=h.R,S=h.i;if(S===4)Et(v,function(B){B!==j&&(m[B]!==void 0||Wt(m,B)?x[B]||u(v[B]):(x[B]=!0,ct(h)))}),Et(m,function(B){v[B]!==void 0||Wt(v,B)||(x[B]=!1,ct(h))});else if(S===5){if(n(h)&&(ct(h),x.length=!0),v.length<m.length)for(var I=v.length;I<m.length;I++)x[I]=!1;else for(var R=m.length;R<v.length;R++)x[R]=!0;for(var N=Math.min(v.length,m.length),_=0;_<N;_++)v.hasOwnProperty(_)||(x[_]=!0),x[_]===void 0&&u(v[_])}}}}(c.p[0]),r(c.p))},K:function(c){return c.i===4?o(c):n(c)}})}var Us,gr,dn=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",bl=typeof Map<"u",xl=typeof Set<"u",$s=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",zs=dn?Symbol.for("immer-nothing"):((Us={})["immer-nothing"]=!0,Us),Ms=dn?Symbol.for("immer-draftable"):"__$immer_draftable",j=dn?Symbol.for("immer-state"):"__$immer_state";var vl=""+Object.prototype.constructor,Ht=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Gs=Object.getOwnPropertyDescriptors||function(e){var r={};return Ht(e).forEach(function(o){r[o]=Object.getOwnPropertyDescriptor(e,o)}),r},on={},mr={get:function(e,r){if(r===j)return e;var o=st(e);if(!Wt(o,r))return function(a,i,c){var l,p=Ds(i,c);return p?"value"in p?p.value:(l=p.get)===null||l===void 0?void 0:l.call(a.k):void 0}(e,o,r);var n=o[r];return e.I||!Re(n)?n:n===Qo(e.t,r)?(Jo(e),e.o[r]=rn(e.A.h,n,e)):n},has:function(e,r){return r in st(e)},ownKeys:function(e){return Reflect.ownKeys(st(e))},set:function(e,r,o){var n=Ds(st(e),r);if(n?.set)return n.set.call(e.k,o),!0;if(!e.P){var a=Qo(st(e),r),i=a?.[j];if(i&&i.t===o)return e.o[r]=o,e.R[r]=!1,!0;if(Ws(o,a)&&(o!==void 0||Wt(e.t,r)))return!0;Jo(e),ct(e)}return e.o[r]===o&&(o!==void 0||r in e.o)||Number.isNaN(o)&&Number.isNaN(e.o[r])||(e.o[r]=o,e.R[r]=!0),!0},deleteProperty:function(e,r){return Qo(e.t,r)!==void 0||r in e.t?(e.R[r]=!1,Jo(e),ct(e)):delete e.R[r],e.o&&delete e.o[r],!0},getOwnPropertyDescriptor:function(e,r){var o=st(e),n=Reflect.getOwnPropertyDescriptor(o,r);return n&&{writable:!0,configurable:e.i!==1||r!=="length",enumerable:n.enumerable,value:o[r]}},defineProperty:function(){Ce(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Ce(12)}},yr={};Et(mr,function(e,r){yr[e]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)}}),yr.deleteProperty=function(e,r){return yr.set.call(this,e,r,void 0)},yr.set=function(e,r,o){return mr.set.call(this,e[0],r,o,e[0])};var Sl=function(){function e(o){var n=this;this.O=$s,this.D=!0,this.produce=function(a,i,c){if(typeof a=="function"&&typeof i!="function"){var l=i;i=a;var p=n;return function(S){var I=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(B){var U;return(U=i).call.apply(U,[I,B].concat(N))})}}var u;if(typeof i!="function"&&Ce(6),c!==void 0&&typeof c!="function"&&Ce(7),Re(a)){var y=_s(n),h=rn(n,a,void 0),m=!0;try{u=i(h),m=!1}finally{m?Qr(y):tn(y)}return typeof Promise<"u"&&u instanceof Promise?u.then(function(S){return Yo(y,c),Xo(S,y)},function(S){throw Qr(y),S}):(Yo(y,c),Xo(u,y))}if(!a||typeof a!="object"){if((u=i(a))===void 0&&(u=a),u===zs&&(u=void 0),n.D&&cn(u,!0),c){var v=[],x=[];ke("Patches").M(a,u,v,x),c(v,x)}return u}Ce(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(u){for(var y=arguments.length,h=Array(y>1?y-1:0),m=1;m<y;m++)h[m-1]=arguments[m];return n.produceWithPatches(u,function(v){return a.apply(void 0,[v].concat(h))})};var c,l,p=n.produce(a,i,function(u,y){c=u,l=y});return typeof Promise<"u"&&p instanceof Promise?p.then(function(u){return[u,c,l]}):[p,c,l]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var r=e.prototype;return r.createDraft=function(o){Re(o)||Ce(8),Ge(o)&&(o=ml(o));var n=_s(this),a=rn(this,o,void 0);return a[j].C=!0,tn(n),a},r.finishDraft=function(o,n){var a=o&&o[j],i=a.A;return Yo(i,n),Xo(void 0,i)},r.setAutoFreeze=function(o){this.D=o},r.setUseProxies=function(o){o&&!$s&&Ce(20),this.O=o},r.applyPatches=function(o,n){var a;for(a=n.length-1;a>=0;a--){var i=n[a];if(i.path.length===0&&i.op==="replace"){o=i.value;break}}a>-1&&(n=n.slice(a+1));var c=ke("Patches").$;return Ge(o)?c(o,n):this.produce(o,function(l){return c(l,n)})},e}(),Se=new Sl,Ol=Se.produce,gm=Se.produceWithPatches.bind(Se),mm=Se.setAutoFreeze.bind(Se),bm=Se.setUseProxies.bind(Se),xm=Se.applyPatches.bind(Se),vm=Se.createDraft.bind(Se),Sm=Se.finishDraft.bind(Se),to=Ol;function lt(e){"@babel/helpers - typeof";return lt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},lt(e)}function un(e,r){if(lt(e)!=="object"||e===null)return e;var o=e[Symbol.toPrimitive];if(o!==void 0){var n=o.call(e,r||"default");if(lt(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function pn(e){var r=un(e,"string");return lt(r)==="symbol"?r:String(r)}function fn(e,r,o){return r=pn(r),r in e?Object.defineProperty(e,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[r]=o,e}function js(e,r){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),o.push.apply(o,n)}return o}function ro(e){for(var r=1;r<arguments.length;r++){var o=arguments[r]!=null?arguments[r]:{};r%2?js(Object(o),!0).forEach(function(n){fn(e,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):js(Object(o)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(o,n))})}return e}function ce(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Vs=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),hn=function(){return Math.random().toString(36).substring(7).split("").join(".")},oo={INIT:"@@redux/INIT"+hn(),REPLACE:"@@redux/REPLACE"+hn(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+hn()}};function Cl(e){if(typeof e!="object"||e===null)return!1;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(e)===r}function yn(e,r,o){var n;if(typeof r=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(ce(0));if(typeof r=="function"&&typeof o>"u"&&(o=r,r=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(ce(1));return o(yn)(e,r)}if(typeof e!="function")throw new Error(ce(2));var a=e,i=r,c=[],l=c,p=!1;function u(){l===c&&(l=c.slice())}function y(){if(p)throw new Error(ce(3));return i}function h(S){if(typeof S!="function")throw new Error(ce(4));if(p)throw new Error(ce(5));var I=!0;return u(),l.push(S),function(){if(I){if(p)throw new Error(ce(6));I=!1,u();var N=l.indexOf(S);l.splice(N,1),c=null}}}function m(S){if(!Cl(S))throw new Error(ce(7));if(typeof S.type>"u")throw new Error(ce(8));if(p)throw new Error(ce(9));try{p=!0,i=a(i,S)}finally{p=!1}for(var I=c=l,R=0;R<I.length;R++){var N=I[R];N()}return S}function v(S){if(typeof S!="function")throw new Error(ce(10));a=S,m({type:oo.REPLACE})}function x(){var S,I=h;return S={subscribe:function(N){if(typeof N!="object"||N===null)throw new Error(ce(11));function _(){N.next&&N.next(y())}_();var B=I(_);return{unsubscribe:B}}},S[Vs]=function(){return this},S}return m({type:oo.INIT}),n={dispatch:m,subscribe:h,getState:y,replaceReducer:v},n[Vs]=x,n}function El(e){Object.keys(e).forEach(function(r){var o=e[r],n=o(void 0,{type:oo.INIT});if(typeof n>"u")throw new Error(ce(12));if(typeof o(void 0,{type:oo.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ce(13))})}function Ks(e){for(var r=Object.keys(e),o={},n=0;n<r.length;n++){var a=r[n];typeof e[a]=="function"&&(o[a]=e[a])}var i=Object.keys(o),c,l;try{El(o)}catch(p){l=p}return function(u,y){if(u===void 0&&(u={}),l)throw l;if(0)var h;for(var m=!1,v={},x=0;x<i.length;x++){var S=i[x],I=o[S],R=u[S],N=I(R,y);if(typeof N>"u"){var _=y&&y.type;throw new Error(ce(14))}v[S]=N,m=m||N!==R}return m=m||i.length!==Object.keys(u).length,m?v:u}}function Gt(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return r.length===0?function(n){return n}:r.length===1?r[0]:r.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function Zs(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return function(n){return function(){var a=n.apply(void 0,arguments),i=function(){throw new Error(ce(15))},c={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},l=r.map(function(p){return p(c)});return i=Gt.apply(void 0,l)(a.dispatch),ro(ro({},a),{},{dispatch:i})}}}function qs(e){var r=function(n){var a=n.dispatch,i=n.getState;return function(c){return function(l){return typeof l=="function"?l(a,i,e):c(l)}}};return r}var Ys=qs();Ys.withExtraArgument=qs;var gn=Ys;var tc=function(){var e=function(r,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},e(r,o)};return function(r,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");e(r,o);function n(){this.constructor=r}r.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),wl=function(e,r){var o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,c;return c={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function l(u){return function(y){return p([u,y])}}function p(u){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,a=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(i=o.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){o=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){o.label=u[1];break}if(u[0]===6&&o.label<i[1]){o.label=i[1],i=u;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(u);break}i[2]&&o.ops.pop(),o.trys.pop();continue}u=r.call(e,o)}catch(y){u=[6,y],a=0}finally{n=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},jt=function(e,r){for(var o=0,n=r.length,a=e.length;o<n;o++,a++)e[a]=r[o];return e},Al=Object.defineProperty,Rl=Object.defineProperties,Nl=Object.getOwnPropertyDescriptors,Xs=Object.getOwnPropertySymbols,Il=Object.prototype.hasOwnProperty,Ll=Object.prototype.propertyIsEnumerable,Qs=function(e,r,o){return r in e?Al(e,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[r]=o},dt=function(e,r){for(var o in r||(r={}))Il.call(r,o)&&Qs(e,o,r[o]);if(Xs)for(var n=0,a=Xs(r);n<a.length;n++){var o=a[n];Ll.call(r,o)&&Qs(e,o,r[o])}return e},mn=function(e,r){return Rl(e,Nl(r))},Pl=function(e,r,o){return new Promise(function(n,a){var i=function(p){try{l(o.next(p))}catch(u){a(u)}},c=function(p){try{l(o.throw(p))}catch(u){a(u)}},l=function(p){return p.done?n(p.value):Promise.resolve(p.value).then(i,c)};l((o=o.apply(e,r)).next())})};var Tl=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Gt:Gt.apply(null,arguments)},Mm=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function _l(e){if(typeof e!="object"||e===null)return!1;var r=Object.getPrototypeOf(e);if(r===null)return!0;for(var o=r;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return r===o}var kl=function(e){tc(r,e);function r(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=e.apply(this,o)||this;return Object.setPrototypeOf(a,r.prototype),a}return Object.defineProperty(r,Symbol.species,{get:function(){return r},enumerable:!1,configurable:!0}),r.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return e.prototype.concat.apply(this,o)},r.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(r.bind.apply(r,jt([void 0],o[0].concat(this)))):new(r.bind.apply(r,jt([void 0],o.concat(this))))},r}(Array),Dl=function(e){tc(r,e);function r(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=e.apply(this,o)||this;return Object.setPrototypeOf(a,r.prototype),a}return Object.defineProperty(r,Symbol.species,{get:function(){return r},enumerable:!1,configurable:!0}),r.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return e.prototype.concat.apply(this,o)},r.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(r.bind.apply(r,jt([void 0],o[0].concat(this)))):new(r.bind.apply(r,jt([void 0],o.concat(this))))},r}(Array);function vn(e){return Re(e)?to(e,function(){}):e}function Bl(e){return typeof e=="boolean"}function Ul(){return function(r){return $l(r)}}function $l(e){e===void 0&&(e={});var r=e.thunk,o=r===void 0?!0:r,n=e.immutableCheck,a=n===void 0?!0:n,i=e.serializableCheck,c=i===void 0?!0:i,l=new kl;if(o&&(Bl(o)?l.push(gn):l.push(gn.withExtraArgument(o.extraArgument))),0){if(a)var p;if(c)var u}return l}var bn=!0;function rc(e){var r=Ul(),o=e||{},n=o.reducer,a=n===void 0?void 0:n,i=o.middleware,c=i===void 0?r():i,l=o.devTools,p=l===void 0?!0:l,u=o.preloadedState,y=u===void 0?void 0:u,h=o.enhancers,m=h===void 0?void 0:h,v;if(typeof a=="function")v=a;else if(_l(a))v=Ks(a);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var x=c;if(typeof x=="function"&&(x=x(r),!bn&&!Array.isArray(x)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!bn&&x.some(function(B){return typeof B!="function"}))throw new Error("each middleware provided to configureStore must be a function");var S=Zs.apply(void 0,x),I=Gt;p&&(I=Tl(dt({trace:!bn},typeof p=="object"&&p)));var R=new Dl(S),N=R;Array.isArray(m)?N=jt([S],m):typeof m=="function"&&(N=m(R));var _=I.apply(void 0,N);return yn(v,y,_)}function ut(e,r){function o(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(r){var i=r.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return dt(dt({type:e,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:e,payload:n[0]}}return o.toString=function(){return""+e},o.type=e,o.match=function(n){return n.type===e},o}function oc(e){var r={},o=[],n,a={addCase:function(i,c){var l=typeof i=="string"?i:i.type;if(l in r)throw new Error("addCase cannot be called with two reducers for the same action type");return r[l]=c,a},addMatcher:function(i,c){return o.push({matcher:i,reducer:c}),a},addDefaultCase:function(i){return n=i,a}};return e(a),[r,o,n]}function Ml(e){return typeof e=="function"}function Fl(e,r,o,n){o===void 0&&(o=[]);var a=typeof r=="function"?oc(r):[r,o,n],i=a[0],c=a[1],l=a[2],p;if(Ml(e))p=function(){return vn(e())};else{var u=vn(e);p=function(){return u}}function y(h,m){h===void 0&&(h=p());var v=jt([i[m.type]],c.filter(function(x){var S=x.matcher;return S(m)}).map(function(x){var S=x.reducer;return S}));return v.filter(function(x){return!!x}).length===0&&(v=[l]),v.reduce(function(x,S){if(S)if(Ge(x)){var I=x,R=S(I,m);return R===void 0?x:R}else{if(Re(x))return to(x,function(N){return S(N,m)});var R=S(x,m);if(R===void 0){if(x===null)return x;throw Error("A case reducer on a non-draftable value must not return undefined")}return R}return x},h)}return y.getInitialState=p,y}function Wl(e,r){return e+"/"+r}function nc(e){var r=e.name;if(!r)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof e.initialState=="function"?e.initialState:vn(e.initialState),n=e.reducers||{},a=Object.keys(n),i={},c={},l={};a.forEach(function(y){var h=n[y],m=Wl(r,y),v,x;"reducer"in h?(v=h.reducer,x=h.prepare):v=h,i[y]=v,c[m]=v,l[y]=x?ut(m,x):ut(m)});function p(){var y=typeof e.extraReducers=="function"?oc(e.extraReducers):[e.extraReducers],h=y[0],m=h===void 0?{}:h,v=y[1],x=v===void 0?[]:v,S=y[2],I=S===void 0?void 0:S,R=dt(dt({},m),c);return Fl(o,function(N){for(var _ in R)N.addCase(_,R[_]);for(var B=0,U=x;B<U.length;B++){var pe=U[B];N.addMatcher(pe.matcher,pe.reducer)}I&&N.addDefaultCase(I)})}var u;return{name:r,reducer:function(y,h){return u||(u=p()),u(y,h)},actions:l,caseReducers:i,getInitialState:function(){return u||(u=p()),u.getInitialState()}}}var Hl="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",zl=function(e){e===void 0&&(e=21);for(var r="",o=e;o--;)r+=Hl[Math.random()*64|0];return r},Gl=["name","message","stack","code"],xn=function(){function e(r,o){this.payload=r,this.meta=o}return e}(),Js=function(){function e(r,o){this.payload=r,this.meta=o}return e}(),jl=function(e){if(typeof e=="object"&&e!==null){for(var r={},o=0,n=Gl;o<n.length;o++){var a=n[o];typeof e[a]=="string"&&(r[a]=e[a])}return r}return{message:String(e)}},zm=function(){function e(r,o,n){var a=ut(r+"/fulfilled",function(y,h,m,v){return{payload:y,meta:mn(dt({},v||{}),{arg:m,requestId:h,requestStatus:"fulfilled"})}}),i=ut(r+"/pending",function(y,h,m){return{payload:void 0,meta:mn(dt({},m||{}),{arg:h,requestId:y,requestStatus:"pending"})}}),c=ut(r+"/rejected",function(y,h,m,v,x){return{payload:v,error:(n&&n.serializeError||jl)(y||"Rejected"),meta:mn(dt({},x||{}),{arg:m,requestId:h,rejectedWithValue:!!v,requestStatus:"rejected",aborted:y?.name==="AbortError",condition:y?.name==="ConditionError"})}}),l=!1,p=typeof AbortController<"u"?AbortController:function(){function y(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return y.prototype.abort=function(){},y}();function u(y){return function(h,m,v){var x=n?.idGenerator?n.idGenerator(y):zl(),S=new p,I,R=!1;function N(B){I=B,S.abort()}var _=function(){return Pl(this,null,function(){var B,U,pe,Ie,le,Le,oe;return wl(this,function(g){switch(g.label){case 0:return g.trys.push([0,4,,5]),Ie=(B=n?.condition)==null?void 0:B.call(n,y,{getState:m,extra:v}),Kl(Ie)?[4,Ie]:[3,2];case 1:Ie=g.sent(),g.label=2;case 2:if(Ie===!1||S.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return R=!0,le=new Promise(function(b,P){return S.signal.addEventListener("abort",function(){return P({name:"AbortError",message:I||"Aborted"})})}),h(i(x,y,(U=n?.getPendingMeta)==null?void 0:U.call(n,{requestId:x,arg:y},{getState:m,extra:v}))),[4,Promise.race([le,Promise.resolve(o(y,{dispatch:h,getState:m,extra:v,requestId:x,signal:S.signal,abort:N,rejectWithValue:function(b,P){return new xn(b,P)},fulfillWithValue:function(b,P){return new Js(b,P)}})).then(function(b){if(b instanceof xn)throw b;return b instanceof Js?a(b.payload,x,y,b.meta):a(b,x,y)})])];case 3:return pe=g.sent(),[3,5];case 4:return Le=g.sent(),pe=Le instanceof xn?c(null,x,y,Le.payload,Le.meta):c(Le,x,y),[3,5];case 5:return oe=n&&!n.dispatchConditionRejection&&c.match(pe)&&pe.meta.condition,oe||h(pe),[2,pe]}})})}();return Object.assign(_,{abort:N,requestId:x,arg:y,unwrap:function(){return _.then(Vl)}})}}return Object.assign(u,{pending:i,rejected:c,fulfilled:a,typePrefix:r})}return e.withTypes=function(){return e},e}();function Vl(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Kl(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var ac="listener",ic="completed",sc="cancelled",Gm="task-"+sc,jm="task-"+ic,Vm=ac+"-"+sc,Km=ac+"-"+ic;var Sn="listenerMiddleware";var Zm=ut(Sn+"/add"),qm=ut(Sn+"/removeAll"),Ym=ut(Sn+"/remove");var ec,Xm=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(ec||(ec=Promise.resolve())).then(e).catch(function(r){return setTimeout(function(){throw r},0)})},Zl=function(e){return function(r){setTimeout(r,e)}},Qm=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Zl(10);Hs();function ql(e,r){return class extends e{constructor(){super(...arguments),this.eventBus=r??document.createElement("span")}addEventListener(o,n,a){this.eventBus.addEventListener(o,n,a)}dispatchEvent(o){return this.eventBus.dispatchEvent(o)}removeEventListener(o,n,a){this.eventBus.removeEventListener(o,n,a)}}}var no=class extends ql(Object){};window.ftReduxStores||(window.ftReduxStores={});var cc=class e extends no{static get(r){var o;let n=typeof r=="string"?r:r.name,a=typeof r=="string"?void 0:r,i=window.ftReduxStores[n];if(pr(i))return i;if(a==null)return;let c=nc({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),l=rc({reducer:(p,u)=>u.type==="CLEAR_FT_REDUX_STORE"?c.getInitialState():typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__")?{...p,...u.overwrites}:c.reducer(p,u)});return window.ftReduxStores[a.name]=new e(c,l)}constructor(r,o){super(),this.reduxSlice=r,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new Kr;let n=a=>a!=null?JSON.parse(JSON.stringify(a)):a;this.actions=new Proxy(this.reduxSlice.actions,{get:(a,i,c)=>{let l=i,p=a[l];return p?(...u)=>{let y=p(...u.map(n));return this.reduxStore.dispatch(y),y}:u=>{this.setState({[l]:n(u)})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(r){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(r).join("_"),overwrites:r})}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(r){throw new Error("Not implemented yet.")}subscribe(r){return this.reduxStore.subscribe(r)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var co=C(k());var ao=class extends ze{async listMySearches(){let r=T.getState().session;return r?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(r.profile.userId),5*60*1e3):[]}};var io=class extends ze{async listMyBookmarks(){let r=T.getState().session;return r?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(r.profile.userId),5*60*1e3):[]}};var Xl="ft-user-assets",so=co.FtReduxStore.get({name:Xl,initialState:{savedSearches:void 0,bookmarks:void 0}}),On=class{constructor(){this.currentSession=T.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new io,this.savedSearchesService=new ao,T.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var r;let{session:o}=T.getState();(0,co.deepEqual)((r=this.currentSession)===null||r===void 0?void 0:r.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),so.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),so.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let r=await this.savedSearchesService.listMySearches();so.actions.savedSearches(r)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var r;if(this.bookmarksAreUsed){let o=!((r=this.currentSession)===null||r===void 0)&&r.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;so.actions.bookmarks(o)}}},_b=new On;var Cn=class{addCommand(r,o=!1){T.commands.add(r,o)}consumeCommand(r){return T.commands.consume(r)}};window.FluidTopicsAppInfoStoreService=new Cn;var lc=C(k()),En=class{highlightHtml(r,o,n){(0,lc.highlightHtml)(r,o,n)}};window.FluidTopicsHighlightHtmlService=new En;var dc=C(k());var wn=class{isDate(r){var o,n,a,i;return(i=(a=((n=(o=T.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]).find(l=>l.key===r))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1}format(r,o){var n,a,i;return dc.DateFormatter.format(r,(n=o?.locale)!==null&&n!==void 0?n:T.getState().uiLocale,(a=o?.longFormat)!==null&&a!==void 0?a:!1,(i=o?.withTime)!==null&&i!==void 0?i:!1)}};window.FluidTopicsDateService=new wn;var uc=C(k());var Vt=class{static get(r,o){var n,a,i,c;let l=T.getState(),{lang:p,region:u}=(a=(n=l.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&a!==void 0?a:{lang:"en",region:"US"};return new uc.SearchPlaceConverter(l.baseUrl,(c=(i=window.FluidTopicsClientConfiguration)===null||i===void 0?void 0:i.predefinedSorts)!==null&&c!==void 0?c:{},r??20,l.searchInAllLanguagesAllowed,o??`${p}-${u}`)}};(0,pc.customElement)("ft-app-context")(q);var An=class e extends Event{constructor(){super(e.eventName)}};An.eventName="search-context-clear-all-filters";var Ql=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},Nn=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},Rn=Symbol("registerInterval");function Jl(e){var r;class o extends e{constructor(){super(...arguments),this[r]=0}setSearchStateManager(a){this.clearStateManager(),this.stateManager=a,this.addStore(a.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[Rn]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[Rn]):this.dispatchEvent(new Nn)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return r=Rn,Ql([(0,hc.state)()],o.prototype,"stateManager",void 0),o}var Kt=class extends Jl(fc.FtLitElementRedux){};var xc=C(k());var yo=C(W()),go=C(te()),mo=C(k());var yc=C(W());var gc=yc.css`
|
|
1144
1144
|
`;var fo=C(k());var bc=C(te()),ed=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},In=Symbol("i18nAttributes"),Ln=Symbol("i18nListAttributes"),uo=Symbol("i18nProperties"),Pn=Symbol("i18nManualContexts"),br=Symbol("i18nUnsubs");function ho(e){var r,o;class n extends e{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[r]=new Map,this[o]=new Map}get i18nService(){return this.useCustomMessageContexts?xs:Ot}i18n(i,c,...l){var p;if(typeof i=="string")return this.i18nService.resolveMessage(i,c,...l);let u=(p=i.args)!==null&&p!==void 0?p:i.argsProvider?i.argsProvider(this):[];return this.i18nService.resolveMessage(i.context,i.key,...u)}onI18nUpdate(i){var c,l,p;(c=this[In])===null||c===void 0||c.forEach((u,y)=>{let h=this.getI18nAttributeValue(y);h&&(this[y]=this.getI18nAttributeMessage(h,u,i))}),(l=this[Ln])===null||l===void 0||l.forEach((u,y)=>{let h=this.getI18nListAttributeValues(y);this[y]=h?.map(m=>this.getI18nAttributeMessage(m,u,i))}),(p=this[uo])===null||p===void 0||p.forEach((u,y)=>{u.context.toLowerCase()===i.toLowerCase()&&(this[y]=this.i18n(u))}),setTimeout(()=>this.requestUpdate(),0)}buildI18nAttributeMessage(i,c){return{...i,message:this.i18n({context:i.context,key:i.key,...c})}}getI18nAttributeMessage(i,c,l){var p;let u=!l||((p=i.context)===null||p===void 0?void 0:p.toLowerCase())===l.toLowerCase();return i.context&&i.key&&u?this.buildI18nAttributeMessage(i,c):i}update(i){var c,l,p;super.update(i),(c=this[In])===null||c===void 0||c.forEach((u,y)=>{let h=this.getI18nAttributeValue(y);h?.context&&h.key&&(i.has(y)||u.argsProvider!=null)&&(this.addI18nContextIfNeeded(h,i,y),this[y]=this.getI18nAttributeMessage(h,u))}),(l=this[Ln])===null||l===void 0||l.forEach((u,y)=>{let h=this.getI18nListAttributeValues(y);(i.has(y)||u.argsProvider!=null)&&(this[y]=h?.map(m=>(this.addI18nContextIfNeeded(m,i,y),this.getI18nAttributeMessage(m,u))))}),(p=this[uo])===null||p===void 0||p.forEach((u,y)=>{u.argsProvider!=null&&(this[y]=this.i18n(u))})}getI18nAttributeValue(i){return this[i]}getI18nListAttributeValues(i){return this[i]}addI18nContextIfNeeded(i,c,l){i.context&&i.key&&c.has(l)&&this.addI18nContext(i.context)}addI18nMessagesAndSubscribe(i,c){i=i.toLowerCase(),this[br].has(i)||this[br].set(i,this.i18nService.subscribe(i,()=>this.onI18nUpdate(i))),this.i18nService.prepareContext(i,c??{}),this.onI18nUpdate(i)}connectedCallback(){var i,c,l,p,u,y;super.connectedCallback(),new Set([...(c=(i=this[uo])===null||i===void 0?void 0:i.values())!==null&&c!==void 0?c:[],...[...(p=(l=this[In])===null||l===void 0?void 0:l.keys())!==null&&p!==void 0?p:[]].map(h=>this.getI18nAttributeValue(h)),...[...(y=(u=this[Ln])===null||u===void 0?void 0:u.keys())!==null&&y!==void 0?y:[]].flatMap(h=>this.getI18nListAttributeValues(h))].map(h=>h?.context)).forEach(h=>h&&this.addI18nMessages(h)),this[Pn].forEach((h,m)=>{this.addI18nMessages(m,h)})}addI18nMessages(i,c){this[Pn].set(i,c??{}),this.addI18nMessagesAndSubscribe(i,c)}addI18nContext(i,c){this.addI18nMessages(typeof i=="string"?i:i.name,c)}disconnectedCallback(){super.disconnectedCallback(),this[br].forEach(i=>i()),this[br].clear()}}return r=Pn,o=br,ed([(0,bc.property)({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}var mc=class extends ho(fo.FtLitElement){},po=class extends ho(fo.FtLitElementRedux){};var xr=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},Ne=class extends po{constructor(){super(),this.editorMode=!1,this.addStore(T)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":yo.nothing:yo.html`
|
|
1145
1145
|
<span class="ft-i18n">
|
|
1146
1146
|
${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
|