@fluid-topics/ft-reader-metadata 1.3.46 → 1.3.47
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.
|
@@ -1591,7 +1591,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
1591
1591
|
`}};Nt.elementDefinitions={"ft-typography":he};Nt.styles=Hc;(0,oo.customElement)("ft-floating-menu")(Lt);(0,oo.customElement)("ftds-floating-menu")(Tr);(0,oo.customElement)("ft-floating-menu-item")(Ne);(0,oo.customElement)("ft-floating-menu-label")(Nt);var Rp=b(jc(),1);var Vc;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(Vc||(Vc={}));var Kc;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Kc||(Kc={}));var Zc;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(Zc||(Zc={}));var qc;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(qc||(qc={}));var Yc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Yc||(Yc={}));var Xc;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(Xc||(Xc={}));var Qc;(function(t){t.BOOKMARK__CREATE="BOOKMARK__CREATE",t.BOOKMARK__DELETE="BOOKMARK__DELETE",t.CASE_DEFLECTION__START="CASE_DEFLECTION__START",t.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",t.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",t.CHATBOT__RATE="CHATBOT__RATE",t.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",t.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",t.DOCUMENT__AI_TRANSLATE="DOCUMENT__AI_TRANSLATE",t.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",t.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",t.DOCUMENT__PRINT="DOCUMENT__PRINT",t.DOCUMENT__PROCESS="DOCUMENT__PROCESS",t.DOCUMENT__RATE="DOCUMENT__RATE",t.DOCUMENT__SEARCH="DOCUMENT__SEARCH",t.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",t.DOCUMENT__UNRATE="DOCUMENT__UNRATE",t.FEEDBACK__SEND="FEEDBACK__SEND",t.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",t.AI__RATE="AI__RATE",t.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",t.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",t.KHUB__PROCESS="KHUB__PROCESS",t.KHUB__SEARCH="KHUB__SEARCH",t.LABELS__DOWNLOAD="LABELS__DOWNLOAD",t.LINK__SHARE="LINK__SHARE",t.PAGE__DISPLAY="PAGE__DISPLAY",t.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",t.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",t.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",t.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",t.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",t.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",t.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",t.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",t.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",t.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",t.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",t.TOPIC__DISPLAY="TOPIC__DISPLAY",t.TOPIC__RATE="TOPIC__RATE",t.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",t.TOPIC__UNRATE="TOPIC__UNRATE",t.USER__LOGIN="USER__LOGIN",t.USER__LOGOUT="USER__LOGOUT",t.HEARTBEAT="HEARTBEAT"})(Qc||(Qc={}));var Jc;(function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"})(Jc||(Jc={}));var el;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT",t.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT"})(el||(el={}));var tl;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(tl||(tl={}));var rl;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(rl||(rl={}));var ol;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(ol||(ol={}));var nl;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(nl||(nl={}));var al;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"})(al||(al={}));var il;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(il||(il={}));var sl;(function(t){t.ASC="ASC",t.DESC="DESC"})(sl||(sl={}));var cl;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(cl||(cl={}));var ll;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(ll||(ll={}));var dl;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(dl||(dl={}));var Vo;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Vo||(Vo={}));var pl;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"})(pl||(pl={}));var ul;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(ul||(ul={}));var Ir;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"})(Ir||(Ir={}));var fl;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(fl||(fl={}));var hl;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(hl||(hl={}));var V;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(V||(V={}));var Ge;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(Ge||(Ge={}));var yl;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(yl||(yl={}));var ml;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(ml||(ml={}));var gl;(function(t){t.USER="USER",t.ASSISTANT="ASSISTANT"})(gl||(gl={}));var bl;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(bl||(bl={}));var xl;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(xl||(xl={}));var Tp={[V.PERSONAL_BOOK_SHARE_USER]:[V.PERSONAL_BOOK_USER],[V.HTML_EXPORT_USER]:[V.PERSONAL_BOOK_USER],[V.PDF_EXPORT_USER]:[V.PERSONAL_BOOK_USER],[V.KHUB_ADMIN]:[V.CONTENT_PUBLISHER],[V.ADMIN]:[V.KHUB_ADMIN,V.USERS_ADMIN,V.PORTAL_ADMIN],[V.GENERATIVE_AI_EXPORT_USER]:[V.GENERATIVE_AI_USER]};function vl(t,e){return t===e||(Tp[t]??[]).some(o=>vl(o,e))}function xt(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(n=>vl(n,e))}function Ip(t){var e,o,n,a,i;return((a=(o=(e=t.map)===null||e===void 0?void 0:e.openMode)!==null&&o!==void 0?o:(n=t.topic)===null||n===void 0?void 0:n.openMode)!==null&&a!==void 0?a:(i=t.document)===null||i===void 0?void 0:i.openMode)===Vo.EXTERNAL}function ja(t){var e,o,n,a,i;if(Ip(t))return(a=(o=(e=t.map)===null||e===void 0?void 0:e.originUrl)!==null&&o!==void 0?o:(n=t.topic)===null||n===void 0?void 0:n.originUrl)!==null&&a!==void 0?a:(i=t.document)===null||i===void 0?void 0:i.originUrl;switch(t.type){case Ir.MAP:return t.map.readerUrl;case Ir.DOCUMENT:return t.document.viewerUrl;case Ir.TOPIC:return t.topic.readerUrl}return""}var zd=b(Cl());var $r=b(N());var Id=b(N());var _l=b($()),me=b(X()),Je=b(N());var Ol=b($());var El=Ol.css`
|
|
1592
1592
|
`;var Ko=b(N()),Va="ft-app-info",lt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};lt.eventName="authentication-change";var Lp={session:(t,e)=>{(0,Ko.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>T.dispatchEvent(new lt(e.payload)),0))}},T=Ko.FtReduxStore.get({name:Va,reducers:Lp,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],availableContentLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}});var Ka=b(N());var Yt=class t{static get(e){let{baseUrl:o,apiIntegrationIdentifier:n}=T.getState(),a=e??n;if(o&&a&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,a,!0)}static await(e){return new Promise(o=>{let n=t.get(e);if(n)o(n);else{let a=T.subscribe(()=>{n=t.get(e),n&&(a(),o(n))})}})}};var Zo=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Yt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Yt.await()}};var Se=class extends Zo{constructor(e=!0,o){var n;super(o),this.sortObjectFields=(i,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([l],[p])=>l.localeCompare(p)));let a=this.constructor;a.commonCache=(n=a.commonCache)!==null&&n!==void 0?n:new Ka.CacheRegistry,this.cache=e?a.commonCache:new Ka.CacheRegistry}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((o,n)=>0|31*o+n.charCodeAt(0),0))}};var qo=class extends Se{async listMyBookmarks(){let e=T.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var Za=class{addCommand(e,o=!1){T.commands.add(e,o)}consumeCommand(e){return T.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Za;var je=b(N());var wl,Lr=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},Np=Symbol("clearAfterUnitTest"),Yo=class extends(0,je.withEventBus)(Se){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[wl]=()=>{this.defaultMessages={},this.cache=new je.CacheRegistry,this.listeners={}},this.currentUiLocale=T.getState().uiLocale,T.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=T.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let o=e.name.toLowerCase();this.cache.setFinal(o,e),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,o){var n;if(e=e.toLowerCase(),o&&Object.keys(o).length>0){let a={...(n=this.defaultMessages[e])!==null&&n!==void 0?n:{},...o};(0,je.deepEqual)(this.defaultMessages[e],a)||(this.defaultMessages[e]=a,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var o,n;return this.fetchContext(e),(n=(o=this.cache.getNow(e))===null||o===void 0?void 0:o.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(e,o){let n=e.toLowerCase();return this.resolveContext(n)[o]}resolveMessage(e,o,...n){var a;let i=e.toLowerCase(),s=this.resolveContext(i);return new je.ParametrizedLabelResolver((a=this.defaultMessages[i])!==null&&a!==void 0?a:{},s).resolve(o,...n)}async fetchContext(e){let o=!this.cache.has(e),n;try{n=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),o&&await this.notify(e)}catch(a){!(a instanceof je.CanceledPromiseError)&&o&&console.error(a)}return n}subscribe(e,o){var n;return e=e.toLowerCase(),this.listeners[e]=(n=this.listeners[e])!==null&&n!==void 0?n:new Set,this.listeners[e].add(o),()=>{var a;return(a=this.listeners[e])===null||a===void 0?void 0:a.delete(o)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new Lr({loadedContexts:e})),this.dispatchEvent(new Lr({loadedContexts:e})),await Promise.all(e.map(o=>this.notify(o,!1)))}async notify(e,o=!0){o&&(document.body.dispatchEvent(new Lr({loadedContexts:[e]})),this.dispatchEvent(new Lr({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(n=>(0,je.delay)(0).then(()=>n()).catch(()=>null)))}};wl=Np;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Yo{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Yo{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var Nr=window.FluidTopicsI18nService,Xo=window.FluidTopicsCustomI18nService;var Al=b(N()),qa=class{highlightHtml(e,o,n){(0,Al.highlightHtml)(e,o,n)}};window.FluidTopicsHighlightHtmlService=new qa;var Qo=class extends Se{async listMySearches(){let{session:e}=T.getState();return xt(e,V.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var Tl=b(N());var Ya=class{isDate(e){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===e))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1}format(e,o){var n,a,i;return Tl.DateFormatter.format(e,(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 Ya;var Rl=b(N());var no=class{static get(e,o){var n,a;let i=T.getState(),{lang:s,region:l}=(a=(n=i.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&a!==void 0?a:{lang:"en",region:"US"};return new Rl.SearchPlaceConverter(i.baseUrl,e??20,i.searchInAllLanguagesAllowed,o??`${s}-${l}`)}};var Xa=class{urlToSearchRequest(e){return no.get().parse(e)}searchRequestToUrl(e){return no.get().serialize(e)}};window.FluidTopicsUrlService=new Xa;var Pt=b(N());var Xt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Xt.eventName="change";var Qa=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let o=sessionStorage.getItem(this.itemName(e));return o?JSON.parse(o):void 0}set(e,o){sessionStorage.setItem(this.itemName(e),JSON.stringify(o))}},Il=new Qa;var Jo=class t extends Pt.WithEventBus{static build(){return new t(window.history,Il,()=>window.location,!1)}constructor(e,o,n,a){var i,s;super(),this.history=e,this.historyStorage=o,this.windowLocation=n,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(i=e.state)===null||i===void 0?void 0:i.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(a)}setCurrentState(e,o=!1){let n=o&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,n&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,Pt.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new Xt(this.currentItem())),0)}installProxies(){let e=o=>(n,a,[i,s,l])=>{let p=o(),u={...p===this.currentIndex?this.currentState:void 0,...i,index:p,href:typeof l=="string"?l:(l??this.windowLocation()).href};n.apply(a,[u,s,l]),this.setCurrentState(u,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let o=this.history.length-1;o>=0;o--)e?this.states[o]=this.historyStorage.get(o):setTimeout(()=>this.states[o]=this.historyStorage.get(o),this.history.length-o)}updateCurrentState(e){var o;let n={...this.buildCurrentState(),...e,index:this.currentIndex,title:(o=e?.title)!==null&&o!==void 0?o:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(e){this.addEventListener(Xt.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Xt.eventName,e)}currentItem(){return(0,Pt.deepCopy)(this.currentState)}back(){let e=this.previousDifferentMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,Pt.deepCopy)(this.states[this.previousDifferentMajorPosition()])}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return(0,Pt.deepCopy)(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var o;let n=(o=this.states[e])===null||o===void 0?void 0:o.majorStateId;if(!n)return e;let a=e,i=e+1;for(;this.states.length>i&&!this.isDifferentMajorState(i,n);)this.hasState(i)&&(a=i),i++;return a}buildCurrentState(){var e,o;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(o=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&o!==void 0?o:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,o){var n;if(!this.hasState(e))return!1;let a=o??this.currentState.majorStateId,i=(n=this.states[e])===null||n===void 0?void 0:n.majorStateId;return i==null||i!=a}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Jo.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t)});var Ll=T;function Nl(t,e){var o;return Ll.getState().authenticationRequired&&!(!((o=Ll.getState().session)===null||o===void 0)&&o.sessionAuthenticated)?Promise.resolve(e):t()}var le=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(i=(a<3?s(i):a>3?s(e,o,i):s(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},K=class extends Je.FtLitElement{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.apiProvider=()=>Yt.get(),this.authenticationRequired=!1,this.messageContexts=[],this.cache=new Je.CacheRegistry,this.cleanSessionDebouncer=new Je.Debouncer,this.reloadConfiguration=()=>{this.cache.clear("availableContentLocales"),this.updateAvailableContentLocales()}}render(){return _l.html`
|
|
1593
1593
|
<slot></slot>
|
|
1594
|
-
`}connectedCallback(){super.connectedCallback(),T.addEventListener(lt.eventName,this.reloadConfiguration)}disconnectedCallback(){T.addEventListener(lt.eventName,this.reloadConfiguration),super.disconnectedCallback()}update(e){var o,n,a,i,s,l,p;super.update(e),e.has("baseUrl")&&(T.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&T.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&T.actions.apiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&T.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&T.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&T.actions.noCustom(this.noCustom),e.has("editorMode")&&T.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&T.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&T.actions.session(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(u=>Nr.addContext(u)),e.has("openExternalDocumentInNewTab")&&T.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&T.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&T.actions.forcedOffline(this.forcedOffline),e.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((s=(i=this.localesConfiguration)===null||i===void 0?void 0:i.allLanguagesAllowed)!==null&&s!==void 0?s:!1)),e.has("authenticationRequired")&&T.actions.authenticationRequired(this.authenticationRequired),e.has("availableContentLocales")&&T.actions.availableContentLocales((p=(l=this.availableContentLocales)===null||l===void 0?void 0:l.contentLocales)!==null&&p!==void 0?p:[]),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration(),this.availableContentLocales==null&&this.updateAvailableContentLocales())}async updateSession(){this.session=await this.cache.get("session",async()=>{let e=await this.apiProvider().getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},e.idleTimeoutInMillis),e})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}async updateAvailableContentLocales(){this.availableContentLocales=await this.cache.get("availableContentLocales",()=>Nl(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}))}};K.elementDefinitions={};K.styles=El;le([(0,me.property)()],K.prototype,"baseUrl",void 0);le([(0,me.property)()],K.prototype,"apiIntegrationIdentifier",void 0);le([(0,me.property)()],K.prototype,"apiIntegrationAppVersion",void 0);le([(0,me.property)()],K.prototype,"uiLocale",void 0);le([(0,Je.jsonProperty)(null)],K.prototype,"availableUiLocales",void 0);le([(0,Je.jsonProperty)(null)],K.prototype,"metadataConfiguration",void 0);le([(0,me.property)({type:Boolean})],K.prototype,"editorMode",void 0);le([(0,me.property)({type:Boolean})],K.prototype,"noCustom",void 0);le([(0,me.property)({type:Boolean})],K.prototype,"openExternalDocumentInNewTab",void 0);le([(0,me.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],K.prototype,"noCustomComponent",void 0);le([(0,me.property)({type:Boolean})],K.prototype,"withManualResources",void 0);le([(0,me.property)({type:Boolean})],K.prototype,"navigatorOnline",void 0);le([(0,me.property)({type:Boolean})],K.prototype,"forcedOffline",void 0);le([(0,me.property)({type:Object})],K.prototype,"apiProvider",void 0);le([(0,me.property)({type:Boolean})],K.prototype,"authenticationRequired",void 0);le([(0,Je.jsonProperty)([])],K.prototype,"messageContexts",void 0);le([(0,Je.jsonProperty)(void 0)],K.prototype,"session",void 0);le([(0,me.state)()],K.prototype,"localesConfiguration",void 0);le([(0,me.state)()],K.prototype,"availableContentLocales",void 0);var Oi=b(X());function _p(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;let o,n,a;if(Array.isArray(t)){if(o=t.length,o!=e.length)return!1;for(n=o;n--!==0;)if(!en(t[n],e[n]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;for(n of t.entries())if(!en(n[1],e.get(n[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let i=s=>Object.keys(s).filter(l=>s[l]!=null);if(a=i(t),o=a.length,o!==i(e).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(e,a[n]))return!1;for(n=o;n--!==0;){let s=a[n];if(!en(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function en(t,e){try{return _p(t,e)}catch{return!1}}function ao(t,e){return!en(t,e)}function tn(t,e){let o=n=>n[t]===!0;return n=>{if(o(n))return n;let a=e(n);return a[t]=!0,a}}var Pl=b(X(),1);var Ja=t=>{let e=t??{};return(o,n)=>{var a;let i={hasChanged:ao,attribute:!1,...e};(0,Pl.property)(i)(o,n);let s=o.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(n,{selector:(a=e.selector)!==null&&a!==void 0?a:l=>l[n],store:e.store})}};var rn=class{constructor(){this.queue=[]}add(e,o=!1){o&&this.clear(e.type),this.queue.push(e)}consume(e){let o=this.queue.find(n=>n.type===e);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}clear(e){typeof e=="string"?this.queue=this.queue.filter(o=>o.type!==e):this.queue=this.queue.filter(o=>!e.test(o.type))}};var Qt=b(X(),1);var kl=b(X(),1);function Dl(t,e){let o=()=>JSON.parse(JSON.stringify(t));return(0,kl.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:ao,...e??{}})}var on=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,o){return this.callbacks=[e],this.debounce(o)}queue(e,o){return this.callbacks.push(e),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((o,n)=>{this.resolvePromise=o,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,o;let n=[...this.callbacks];this.callbacks=[];let a=(e=this.rejectPromise)!==null&&e!==void 0?e:()=>null,i=(o=this.resolvePromise)!==null&&o!==void 0?o:()=>null;this.clearPromise();for(let s of n)try{await s()}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 Bl=b($(),1);var nn=globalThis,Pp=nn.ShadowRoot&&(nn.ShadyCSS===void 0||nn.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,KS=Symbol();var Ml=(t,e)=>{if(Pp)t.adoptedStyleSheets=e.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet);else for(let o of e){let n=document.createElement("style"),a=nn.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=o.cssText,t.appendChild(n)}};var an=class extends Bl.LitElement{createRenderRoot(){let e=this.constructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,Object.entries(e.elementDefinitions).forEach(([a,i])=>e.registry.define(a,i)));let o={...e.shadowRootOptions,customElements:e.registry},n=this.renderOptions.creationScope=this.attachShadow(o);return Ml(n,e.elementStyles),n}};function Ul(t,e,...o){var n;let a=t.querySelector(e);for(let i of o)a=(n=a?.shadowRoot)===null||n===void 0?void 0:n.querySelector(i);return a}var Pr=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(i=(a<3?s(i):a>3?s(e,o,i):s(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},zl,$l=Symbol("constructorPrototype"),Fl=Symbol("constructorName"),Wl=Symbol("exportpartsDebouncer"),Hl=Symbol("dynamicDependenciesLoaded"),_r=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};_r.eventName="exportparts-updated";var dt=class extends an{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[zl]=new on(5),this.scheduleExportpartsUpdate=()=>{var e,o,n;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(n=(o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)!==null&&n!==void 0&&n)&&this[Wl].run(()=>{var a,i;!((a=this.exportpartsPrefix)===null||a===void 0)&&a.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((i=this.exportpartsPrefixes)===null||i===void 0?void 0:i.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[Fl]=this.constructor.name,this[$l]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Fl]&&Object.setPrototypeOf(this,this[$l])}connectedCallback(){var e;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(n){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",n)}let o=this.constructor;o[Hl]||(o[Hl]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(_r.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(_r.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate(),e.has("exportparts")&&this.dispatchEvent(new _r)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:o,selector:n,shadowPath:a}=this.elementToFocus;if(n!=null){let i=[...a??[],n];o=Ul(this.shadowRoot,...i)}o?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||o?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){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(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((a=this.customStylesheet)!==null&&a!==void 0?a:"")}catch(i){console.error(i,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let i=document.createElement("style");i.classList.add("ft-lit-element--custom-stylesheet"),i.innerHTML=this.customStylesheet,this.shadowRoot.append(i)}}setExportpartsAttribute(e){var o,n,a,i,s,l;let p=g=>g!=null&&g.trim().length>0,u=e.filter(p).map(g=>g.trim());if(u.length===0){this.exportparts=void 0;return}let h=new Set;for(let g of(n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let x=(i=(a=g.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&i!==void 0?i:[],S=(l=(s=g.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(I=>I.split(":")[1]))!==null&&l!==void 0?l:[],O=[...x,...S].filter(p).map(I=>I.trim());for(let I of O)h.add(I)}if(h.size===0){this.exportparts=void 0;return}let y=[...h.values()].flatMap(g=>u.map(x=>`${g}:${x}--${g}`));this.exportparts=[...this.part,...y].join(", ")}};zl=Wl;Pr([(0,Qt.property)()],dt.prototype,"exportpartsPrefix",void 0);Pr([Dl([])],dt.prototype,"exportpartsPrefixes",void 0);Pr([(0,Qt.property)({reflect:!0})],dt.prototype,"exportparts",void 0);Pr([(0,Qt.property)()],dt.prototype,"customStylesheet",void 0);Pr([(0,Qt.property)()],dt.prototype,"elementToFocus",void 0);Pr([(0,Qt.state)()],dt.prototype,"useAdoptedStyleSheets",void 0);function sn(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var io=Symbol("internalReduxEventsUnsubscribers"),kt=Symbol("internalStoresUnsubscribers"),Jt=Symbol("internalStores"),kp=tn(Symbol("withRedux"),function(t){var e,o,n;class a extends t{constructor(){super(...arguments),this[e]=new Map,this[o]=new Map,this[n]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(l=>s.has(l))&&this.updateFromStores()}getUnnamedStore(){if(this[Jt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Jt].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[Jt].get(s)}addStore(s,l){var p;l=(p=l??s.name)!==null&&p!==void 0?p:"default-store",this.unsubscribeFromStore(l),this[Jt].set(l,s),this.subscribeToStore(l,s),this.updateFromStores()}removeStore(s){let l=typeof s=="string"?s:s.name;this.unsubscribeFromStore(l),this[Jt].delete(l)}setupStores(){this.unsubscribeFromStores(),this[Jt].forEach((s,l)=>this.subscribeToStore(l,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,l)=>{let p=this.constructor.getPropertyOptions(l);if(!p?.attribute||!this.hasAttribute(typeof p?.attribute=="string"?p.attribute:l)){let u=this.getStore(s.store);u&&(s.store?this[kt].has(s.store):this[kt].size>0)&&(this[l]=s.selector(u.getState(),this))}})}subscribeToStore(s,l){var p;this[kt].set(s,l.subscribe(()=>this.updateFromStores())),this[io].set(s,[]),sn(l)&&l.eventBus&&((p=this.reduxConstructor.reduxEventListeners)===null||p===void 0||p.forEach((u,h)=>{if(typeof this[h]=="function"&&(!u.store||l.name===u.store)){let y=g=>this[h](g);l.addEventListener(u.eventName,y),this[io].get(s).push(()=>l.removeEventListener(u.eventName,y))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[kt].forEach((s,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(s){var l;this[kt].has(s)&&this[kt].get(s)(),this[kt].delete(s),(l=this[io].get(s))===null||l===void 0||l.forEach(p=>p()),this[io].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=kt,o=Jt,n=io,a.reduxProperties=new Map,a.reduxReactiveProperties=new Set,a.reduxEventListeners=new Map,a}),Gl=class extends kp(dt){};function Ve(t){for(var e=arguments.length,o=Array(e>1?e-1:0),n=1;n<e;n++)o[n-1]=arguments[n];if(0)var a,i;throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function vt(t){return!!t&&!!t[q]}function et(t){var e;return!!t&&(function(o){if(!o||typeof o!="object")return!1;var n=Object.getPrototypeOf(o);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===zp}(t)||Array.isArray(t)||!!t[Xl]||!!(!((e=t.constructor)===null||e===void 0)&&e[Xl])||ci(t)||li(t))}function er(t,e,o){o===void 0&&(o=!1),Mr(t)===0?(o?Object.keys:Dr)(t).forEach(function(n){o&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,a){return e(a,n,t)})}function Mr(t){var e=t[q];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:ci(t)?2:li(t)?3:0}function kr(t,e){return Mr(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Dp(t,e){return Mr(t)===2?t.get(e):t[e]}function Ql(t,e,o){var n=Mr(t);n===2?t.set(e,o):n===3?t.add(o):t[e]=o}function Jl(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function ci(t){return Fp&&t instanceof Map}function li(t){return Hp&&t instanceof Set}function Dt(t){return t.o||t.t}function di(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=rd(t);delete e[q];for(var o=Dr(e),n=0;n<o.length;n++){var a=o[n],i=e[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(e[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:t[a]})}return Object.create(Object.getPrototypeOf(t),e)}function pi(t,e){return e===void 0&&(e=!1),ui(t)||vt(t)||!et(t)||(Mr(t)>1&&(t.set=t.add=t.clear=t.delete=Mp),Object.freeze(t),e&&er(t,function(o,n){return pi(n,!0)},!0)),t}function Mp(){Ve(2)}function ui(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function pt(t){var e=si[t];return e||Ve(18,t),e}function Bp(t,e){si[t]||(si[t]=e)}function ni(){return co}function ei(t,e){e&&(pt("Patches"),t.u=[],t.s=[],t.v=e)}function cn(t){ai(t),t.p.forEach(Up),t.p=null}function ai(t){t===co&&(co=t.l)}function jl(t){return co={p:[],l:co,h:t,m:!0,_:0}}function Up(t){var e=t[q];e.i===0||e.i===1?e.j():e.g=!0}function ti(t,e){e._=e.p.length;var o=e.p[0],n=t!==void 0&&t!==o;return e.h.O||pt("ES5").S(e,t,n),n?(o[q].P&&(cn(e),Ve(4)),et(t)&&(t=ln(e,t),e.l||dn(e,t)),e.u&&pt("Patches").M(o[q].t,t,e.u,e.s)):t=ln(e,o,[]),cn(e),e.u&&e.v(e.u,e.s),t!==td?t:void 0}function ln(t,e,o){if(ui(e))return e;var n=e[q];if(!n)return er(e,function(l,p){return Vl(t,n,e,l,p,o)},!0),e;if(n.A!==t)return e;if(!n.P)return dn(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=di(n.k):n.o,i=a,s=!1;n.i===3&&(i=new Set(a),a.clear(),s=!0),er(i,function(l,p){return Vl(t,n,a,l,p,o,s)}),dn(t,a,!1),o&&t.u&&pt("Patches").N(n,o,t.u,t.s)}return n.o}function Vl(t,e,o,n,a,i,s){if(vt(a)){var l=ln(t,a,i&&e&&e.i!==3&&!kr(e.R,n)?i.concat(n):void 0);if(Ql(o,n,l),!vt(l))return;t.m=!1}else s&&o.add(a);if(et(a)&&!ui(a)){if(!t.h.D&&t._<1)return;ln(t,a),e&&e.A.l||dn(t,a)}}function dn(t,e,o){o===void 0&&(o=!1),!t.l&&t.h.D&&t.m&&pi(e,o)}function ri(t,e){var o=t[q];return(o?Dt(o):t)[e]}function Kl(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var n=Object.getOwnPropertyDescriptor(o,e);if(n)return n;o=Object.getPrototypeOf(o)}}function Mt(t){t.P||(t.P=!0,t.l&&Mt(t.l))}function oi(t){t.o||(t.o=di(t.t))}function ii(t,e,o){var n=ci(e)?pt("MapSet").F(e,o):li(e)?pt("MapSet").T(e,o):t.O?function(a,i){var s=Array.isArray(a),l={i:s?1:0,A:i?i.A:ni(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},p=l,u=lo;s&&(p=[l],u=so);var h=Proxy.revocable(p,u),y=h.revoke,g=h.proxy;return l.k=g,l.j=y,g}(e,o):pt("ES5").J(e,o);return(o?o.A:ni()).p.push(n),n}function $p(t){return vt(t)||Ve(22,t),function e(o){if(!et(o))return o;var n,a=o[q],i=Mr(o);if(a){if(!a.P&&(a.i<4||!pt("ES5").K(a)))return a.t;a.I=!0,n=Zl(o,i),a.I=!1}else n=Zl(o,i);return er(n,function(s,l){a&&Dp(a.t,s)===l||Ql(n,s,e(l))}),i===3?new Set(n):n}(t)}function Zl(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return di(t)}function ed(){function t(s,l){var p=i[s];return p?p.enumerable=l:i[s]=p={configurable:!0,enumerable:l,get:function(){var u=this[q];return lo.get(u,s)},set:function(u){var h=this[q];lo.set(h,s,u)}},p}function e(s){for(var l=s.length-1;l>=0;l--){var p=s[l][q];if(!p.P)switch(p.i){case 5:n(p)&&Mt(p);break;case 4:o(p)&&Mt(p)}}}function o(s){for(var l=s.t,p=s.k,u=Dr(p),h=u.length-1;h>=0;h--){var y=u[h];if(y!==q){var g=l[y];if(g===void 0&&!kr(l,y))return!0;var x=p[y],S=x&&x[q];if(S?S.t!==g:!Jl(x,g))return!0}}var O=!!l[q];return u.length!==Dr(l).length+(O?0:1)}function n(s){var l=s.k;if(l.length!==s.t.length)return!0;var p=Object.getOwnPropertyDescriptor(l,l.length-1);if(p&&!p.get)return!0;for(var u=0;u<l.length;u++)if(!l.hasOwnProperty(u))return!0;return!1}function a(s){s.g&&Ve(3,JSON.stringify(Dt(s)))}var i={};Bp("ES5",{J:function(s,l){var p=Array.isArray(s),u=function(y,g){if(y){for(var x=Array(g.length),S=0;S<g.length;S++)Object.defineProperty(x,""+S,t(S,!0));return x}var O=rd(g);delete O[q];for(var I=Dr(O),R=0;R<I.length;R++){var L=I[R];O[L]=t(L,y||!!O[L].enumerable)}return Object.create(Object.getPrototypeOf(g),O)}(p,s),h={i:p?5:4,A:l?l.A:ni(),P:!1,I:!1,R:{},l,t:s,k:u,o:null,g:!1,C:!1};return Object.defineProperty(u,q,{value:h,writable:!0}),u},S:function(s,l,p){p?vt(l)&&l[q].A===s&&e(s.p):(s.u&&function u(h){if(h&&typeof h=="object"){var y=h[q];if(y){var g=y.t,x=y.k,S=y.R,O=y.i;if(O===4)er(x,function(U){U!==q&&(g[U]!==void 0||kr(g,U)?S[U]||u(x[U]):(S[U]=!0,Mt(y)))}),er(g,function(U){x[U]!==void 0||kr(x,U)||(S[U]=!1,Mt(y))});else if(O===5){if(n(y)&&(Mt(y),S.length=!0),x.length<g.length)for(var I=x.length;I<g.length;I++)S[I]=!1;else for(var R=g.length;R<x.length;R++)S[R]=!0;for(var L=Math.min(x.length,g.length),D=0;D<L;D++)x.hasOwnProperty(D)||(S[D]=!0),S[D]===void 0&&u(x[D])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?o(s):n(s)}})}var ql,co,fi=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Fp=typeof Map<"u",Hp=typeof Set<"u",Yl=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",td=fi?Symbol.for("immer-nothing"):((ql={})["immer-nothing"]=!0,ql),Xl=fi?Symbol.for("immer-draftable"):"__$immer_draftable",q=fi?Symbol.for("immer-state"):"__$immer_state";var zp=""+Object.prototype.constructor,Dr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,rd=Object.getOwnPropertyDescriptors||function(t){var e={};return Dr(t).forEach(function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)}),e},si={},lo={get:function(t,e){if(e===q)return t;var o=Dt(t);if(!kr(o,e))return function(a,i,s){var l,p=Kl(i,s);return p?"value"in p?p.value:(l=p.get)===null||l===void 0?void 0:l.call(a.k):void 0}(t,o,e);var n=o[e];return t.I||!et(n)?n:n===ri(t.t,e)?(oi(t),t.o[e]=ii(t.A.h,n,t)):n},has:function(t,e){return e in Dt(t)},ownKeys:function(t){return Reflect.ownKeys(Dt(t))},set:function(t,e,o){var n=Kl(Dt(t),e);if(n?.set)return n.set.call(t.k,o),!0;if(!t.P){var a=ri(Dt(t),e),i=a?.[q];if(i&&i.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(Jl(o,a)&&(o!==void 0||kr(t.t,e)))return!0;oi(t),Mt(t)}return t.o[e]===o&&(o!==void 0||e in t.o)||Number.isNaN(o)&&Number.isNaN(t.o[e])||(t.o[e]=o,t.R[e]=!0),!0},deleteProperty:function(t,e){return ri(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,oi(t),Mt(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=Dt(t),n=Reflect.getOwnPropertyDescriptor(o,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:o[e]}},defineProperty:function(){Ve(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Ve(12)}},so={};er(lo,function(t,e){so[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),so.deleteProperty=function(t,e){return so.set.call(this,t,e,void 0)},so.set=function(t,e,o){return lo.set.call(this,t[0],e,o,t[0])};var Wp=function(){function t(o){var n=this;this.O=Yl,this.D=!0,this.produce=function(a,i,s){if(typeof a=="function"&&typeof i!="function"){var l=i;i=a;var p=n;return function(O){var I=this;O===void 0&&(O=l);for(var R=arguments.length,L=Array(R>1?R-1:0),D=1;D<R;D++)L[D-1]=arguments[D];return p.produce(O,function(U){var F;return(F=i).call.apply(F,[I,U].concat(L))})}}var u;if(typeof i!="function"&&Ve(6),s!==void 0&&typeof s!="function"&&Ve(7),et(a)){var h=jl(n),y=ii(n,a,void 0),g=!0;try{u=i(y),g=!1}finally{g?cn(h):ai(h)}return typeof Promise<"u"&&u instanceof Promise?u.then(function(O){return ei(h,s),ti(O,h)},function(O){throw cn(h),O}):(ei(h,s),ti(u,h))}if(!a||typeof a!="object"){if((u=i(a))===void 0&&(u=a),u===td&&(u=void 0),n.D&&pi(u,!0),s){var x=[],S=[];pt("Patches").M(a,u,x,S),s(x,S)}return u}Ve(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(u){for(var h=arguments.length,y=Array(h>1?h-1:0),g=1;g<h;g++)y[g-1]=arguments[g];return n.produceWithPatches(u,function(x){return a.apply(void 0,[x].concat(y))})};var s,l,p=n.produce(a,i,function(u,h){s=u,l=h});return typeof Promise<"u"&&p instanceof Promise?p.then(function(u){return[u,s,l]}):[p,s,l]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var e=t.prototype;return e.createDraft=function(o){et(o)||Ve(8),vt(o)&&(o=$p(o));var n=jl(this),a=ii(this,o,void 0);return a[q].C=!0,ai(n),a},e.finishDraft=function(o,n){var a=o&&o[q],i=a.A;return ei(i,n),ti(void 0,i)},e.setAutoFreeze=function(o){this.D=o},e.setUseProxies=function(o){o&&!Yl&&Ve(20),this.O=o},e.applyPatches=function(o,n){var a;for(a=n.length-1;a>=0;a--){var i=n[a];if(i.path.length===0&&i.op==="replace"){o=i.value;break}}a>-1&&(n=n.slice(a+1));var s=pt("Patches").$;return vt(o)?s(o,n):this.produce(o,function(l){return s(l,n)})},t}(),Ue=new Wp,Gp=Ue.produce,cC=Ue.produceWithPatches.bind(Ue),lC=Ue.setAutoFreeze.bind(Ue),dC=Ue.setUseProxies.bind(Ue),pC=Ue.applyPatches.bind(Ue),uC=Ue.createDraft.bind(Ue),fC=Ue.finishDraft.bind(Ue),pn=Gp;function tr(t){"@babel/helpers - typeof";return tr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tr(t)}function od(t,e){if(tr(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var n=o.call(t,e||"default");if(tr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function nd(t){var e=od(t,"string");return tr(e)=="symbol"?e:e+""}function ad(t,e,o){return(e=nd(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function id(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),o.push.apply(o,n)}return o}function hi(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?id(Object(o),!0).forEach(function(n){ad(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):id(Object(o)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))})}return t}function be(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var sd=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),yi=function(){return Math.random().toString(36).substring(7).split("").join(".")},un={INIT:"@@redux/INIT"+yi(),REPLACE:"@@redux/REPLACE"+yi(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+yi()}};function jp(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function mi(t,e,o){var n;if(typeof e=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(be(0));if(typeof e=="function"&&typeof o>"u"&&(o=e,e=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(be(1));return o(mi)(t,e)}if(typeof t!="function")throw new Error(be(2));var a=t,i=e,s=[],l=s,p=!1;function u(){l===s&&(l=s.slice())}function h(){if(p)throw new Error(be(3));return i}function y(O){if(typeof O!="function")throw new Error(be(4));if(p)throw new Error(be(5));var I=!0;return u(),l.push(O),function(){if(I){if(p)throw new Error(be(6));I=!1,u();var L=l.indexOf(O);l.splice(L,1),s=null}}}function g(O){if(!jp(O))throw new Error(be(7));if(typeof O.type>"u")throw new Error(be(8));if(p)throw new Error(be(9));try{p=!0,i=a(i,O)}finally{p=!1}for(var I=s=l,R=0;R<I.length;R++){var L=I[R];L()}return O}function x(O){if(typeof O!="function")throw new Error(be(10));a=O,g({type:un.REPLACE})}function S(){var O,I=y;return O={subscribe:function(L){if(typeof L!="object"||L===null)throw new Error(be(11));function D(){L.next&&L.next(h())}D();var U=I(D);return{unsubscribe:U}}},O[sd]=function(){return this},O}return g({type:un.INIT}),n={dispatch:g,subscribe:y,getState:h,replaceReducer:x},n[sd]=S,n}function Vp(t){Object.keys(t).forEach(function(e){var o=t[e],n=o(void 0,{type:un.INIT});if(typeof n>"u")throw new Error(be(12));if(typeof o(void 0,{type:un.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(be(13))})}function cd(t){for(var e=Object.keys(t),o={},n=0;n<e.length;n++){var a=e[n];typeof t[a]=="function"&&(o[a]=t[a])}var i=Object.keys(o),s,l;try{Vp(o)}catch(p){l=p}return function(u,h){if(u===void 0&&(u={}),l)throw l;if(0)var y;for(var g=!1,x={},S=0;S<i.length;S++){var O=i[S],I=o[O],R=u[O],L=I(R,h);if(typeof L>"u"){var D=h&&h.type;throw new Error(be(14))}x[O]=L,g=g||L!==R}return g=g||i.length!==Object.keys(u).length,g?x:u}}function Br(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function ld(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(n){return function(){var a=n.apply(void 0,arguments),i=function(){throw new Error(be(15))},s={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},l=e.map(function(p){return p(s)});return i=Br.apply(void 0,l)(a.dispatch),hi(hi({},a),{},{dispatch:i})}}}function dd(t){var e=function(n){var a=n.dispatch,i=n.getState;return function(s){return function(l){return typeof l=="function"?l(a,i,t):s(l)}}};return e}var pd=dd();pd.withExtraArgument=dd;var gi=pd;var md=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},t(e,o)};return function(e,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");t(e,o);function n(){this.constructor=e}e.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),Kp=function(t,e){var o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(u){return function(h){return p([u,h])}}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=e.call(t,o)}catch(h){u=[6,h],a=0}finally{n=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},Ur=function(t,e){for(var o=0,n=e.length,a=t.length;o<n;o++,a++)t[a]=e[o];return t},Zp=Object.defineProperty,qp=Object.defineProperties,Yp=Object.getOwnPropertyDescriptors,ud=Object.getOwnPropertySymbols,Xp=Object.prototype.hasOwnProperty,Qp=Object.prototype.propertyIsEnumerable,fd=function(t,e,o){return e in t?Zp(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},Bt=function(t,e){for(var o in e||(e={}))Xp.call(e,o)&&fd(t,o,e[o]);if(ud)for(var n=0,a=ud(e);n<a.length;n++){var o=a[n];Qp.call(e,o)&&fd(t,o,e[o])}return t},bi=function(t,e){return qp(t,Yp(e))},Jp=function(t,e,o){return new Promise(function(n,a){var i=function(p){try{l(o.next(p))}catch(u){a(u)}},s=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,s)};l((o=o.apply(t,e)).next())})};var eu=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Br:Br.apply(null,arguments)},NC=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function tu(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var o=e;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return e===o}var ru=function(t){md(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=t.apply(this,o)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,Ur([void 0],o[0].concat(this)))):new(e.bind.apply(e,Ur([void 0],o.concat(this))))},e}(Array),ou=function(t){md(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=t.apply(this,o)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,Ur([void 0],o[0].concat(this)))):new(e.bind.apply(e,Ur([void 0],o.concat(this))))},e}(Array);function Si(t){return et(t)?pn(t,function(){}):t}function nu(t){return typeof t=="boolean"}function au(){return function(e){return iu(e)}}function iu(t){t===void 0&&(t={});var e=t.thunk,o=e===void 0?!0:e,n=t.immutableCheck,a=n===void 0?!0:n,i=t.serializableCheck,s=i===void 0?!0:i,l=new ru;if(o&&(nu(o)?l.push(gi):l.push(gi.withExtraArgument(o.extraArgument))),0){if(a)var p;if(s)var u}return l}var xi=!0;function gd(t){var e=au(),o=t||{},n=o.reducer,a=n===void 0?void 0:n,i=o.middleware,s=i===void 0?e():i,l=o.devTools,p=l===void 0?!0:l,u=o.preloadedState,h=u===void 0?void 0:u,y=o.enhancers,g=y===void 0?void 0:y,x;if(typeof a=="function")x=a;else if(tu(a))x=cd(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 S=s;if(typeof S=="function"&&(S=S(e),!xi&&!Array.isArray(S)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!xi&&S.some(function(U){return typeof U!="function"}))throw new Error("each middleware provided to configureStore must be a function");var O=ld.apply(void 0,S),I=Br;p&&(I=eu(Bt({trace:!xi},typeof p=="object"&&p)));var R=new ou(O),L=R;Array.isArray(g)?L=Ur([O],g):typeof g=="function"&&(L=g(R));var D=I.apply(void 0,L);return mi(x,h,D)}function Ut(t,e){function o(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(e){var i=e.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return Bt(Bt({type:t,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:t,payload:n[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(n){return n.type===t},o}function bd(t){var e={},o=[],n,a={addCase:function(i,s){var l=typeof i=="string"?i:i.type;if(l in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[l]=s,a},addMatcher:function(i,s){return o.push({matcher:i,reducer:s}),a},addDefaultCase:function(i){return n=i,a}};return t(a),[e,o,n]}function su(t){return typeof t=="function"}function cu(t,e,o,n){o===void 0&&(o=[]);var a=typeof e=="function"?bd(e):[e,o,n],i=a[0],s=a[1],l=a[2],p;if(su(t))p=function(){return Si(t())};else{var u=Si(t);p=function(){return u}}function h(y,g){y===void 0&&(y=p());var x=Ur([i[g.type]],s.filter(function(S){var O=S.matcher;return O(g)}).map(function(S){var O=S.reducer;return O}));return x.filter(function(S){return!!S}).length===0&&(x=[l]),x.reduce(function(S,O){if(O)if(vt(S)){var I=S,R=O(I,g);return R===void 0?S:R}else{if(et(S))return pn(S,function(L){return O(L,g)});var R=O(S,g);if(R===void 0){if(S===null)return S;throw Error("A case reducer on a non-draftable value must not return undefined")}return R}return S},y)}return h.getInitialState=p,h}function lu(t,e){return t+"/"+e}function xd(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof t.initialState=="function"?t.initialState:Si(t.initialState),n=t.reducers||{},a=Object.keys(n),i={},s={},l={};a.forEach(function(h){var y=n[h],g=lu(e,h),x,S;"reducer"in y?(x=y.reducer,S=y.prepare):x=y,i[h]=x,s[g]=x,l[h]=S?Ut(g,S):Ut(g)});function p(){var h=typeof t.extraReducers=="function"?bd(t.extraReducers):[t.extraReducers],y=h[0],g=y===void 0?{}:y,x=h[1],S=x===void 0?[]:x,O=h[2],I=O===void 0?void 0:O,R=Bt(Bt({},g),s);return cu(o,function(L){for(var D in R)L.addCase(D,R[D]);for(var U=0,F=S;U<F.length;U++){var Ce=F[U];L.addMatcher(Ce.matcher,Ce.reducer)}I&&L.addDefaultCase(I)})}var u;return{name:e,reducer:function(h,y){return u||(u=p()),u(h,y)},actions:l,caseReducers:i,getInitialState:function(){return u||(u=p()),u.getInitialState()}}}var du="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",pu=function(t){t===void 0&&(t=21);for(var e="",o=t;o--;)e+=du[Math.random()*64|0];return e},uu=["name","message","stack","code"],vi=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),hd=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),fu=function(t){if(typeof t=="object"&&t!==null){for(var e={},o=0,n=uu;o<n.length;o++){var a=n[o];typeof t[a]=="string"&&(e[a]=t[a])}return e}return{message:String(t)}},DC=function(){function t(e,o,n){var a=Ut(e+"/fulfilled",function(h,y,g,x){return{payload:h,meta:bi(Bt({},x||{}),{arg:g,requestId:y,requestStatus:"fulfilled"})}}),i=Ut(e+"/pending",function(h,y,g){return{payload:void 0,meta:bi(Bt({},g||{}),{arg:y,requestId:h,requestStatus:"pending"})}}),s=Ut(e+"/rejected",function(h,y,g,x,S){return{payload:x,error:(n&&n.serializeError||fu)(h||"Rejected"),meta:bi(Bt({},S||{}),{arg:g,requestId:y,rejectedWithValue:!!x,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),l=!1,p=typeof AbortController<"u"?AbortController:function(){function h(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return h.prototype.abort=function(){},h}();function u(h){return function(y,g,x){var S=n?.idGenerator?n.idGenerator(h):pu(),O=new p,I,R=!1;function L(U){I=U,O.abort()}var D=function(){return Jp(this,null,function(){var U,F,Ce,nt,ve,at,ue;return Kp(this,function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),nt=(U=n?.condition)==null?void 0:U.call(n,h,{getState:g,extra:x}),yu(nt)?[4,nt]:[3,2];case 1:nt=m.sent(),m.label=2;case 2:if(nt===!1||O.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return R=!0,ve=new Promise(function(v,P){return O.signal.addEventListener("abort",function(){return P({name:"AbortError",message:I||"Aborted"})})}),y(i(S,h,(F=n?.getPendingMeta)==null?void 0:F.call(n,{requestId:S,arg:h},{getState:g,extra:x}))),[4,Promise.race([ve,Promise.resolve(o(h,{dispatch:y,getState:g,extra:x,requestId:S,signal:O.signal,abort:L,rejectWithValue:function(v,P){return new vi(v,P)},fulfillWithValue:function(v,P){return new hd(v,P)}})).then(function(v){if(v instanceof vi)throw v;return v instanceof hd?a(v.payload,S,h,v.meta):a(v,S,h)})])];case 3:return Ce=m.sent(),[3,5];case 4:return at=m.sent(),Ce=at instanceof vi?s(null,S,h,at.payload,at.meta):s(at,S,h),[3,5];case 5:return ue=n&&!n.dispatchConditionRejection&&s.match(Ce)&&Ce.meta.condition,ue||y(Ce),[2,Ce]}})})}();return Object.assign(D,{abort:L,requestId:S,arg:h,unwrap:function(){return D.then(hu)}})}}return Object.assign(u,{pending:i,rejected:s,fulfilled:a,typePrefix:e})}return t.withTypes=function(){return t},t}();function hu(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function yu(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var vd="listener",Sd="completed",Cd="cancelled",MC="task-"+Cd,BC="task-"+Sd,UC=vd+"-"+Cd,$C=vd+"-"+Sd;var Ci="listenerMiddleware";var FC=Ut(Ci+"/add"),HC=Ut(Ci+"/removeAll"),zC=Ut(Ci+"/remove");var yd,WC=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(yd||(yd=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},mu=function(t){return function(e){setTimeout(e,t)}},GC=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:mu(10);ed();var gu=tn(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??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)}}}),fn=class extends gu(Object){};window.ftReduxStores||(window.ftReduxStores={});var Od=class t extends fn{static get(e){var o;let n=typeof e=="string"?e:e.name,a=typeof e=="string"?void 0:e,i=window.ftReduxStores[n];if(sn(i))return i;if(a==null)return;let s=xd({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),l=gd({reducer:(p,u)=>u.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__")?{...p,...u.overwrites}:s.reducer(p,u)});return window.ftReduxStores[a.name]=new t(s,l,a.eventBus)}constructor(e,o,n){super(),this.reduxSlice=e,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new rn;let a=i=>i!=null?JSON.parse(JSON.stringify(i)):i;this.actions=new Proxy(this.reduxSlice.actions,{get:(i,s,l)=>{let p=s,u=i[p];return u?(...h)=>{let y=u(...h.map(a));return this.reduxStore.dispatch(y),y}:h=>{this.setState({[p]:a(h)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var hn=class{static format(e,o,n,a){return window.moment?window.moment(e).locale(o).format(this.getMomentDateFormat(n,a)):this.getIntlDateTime(e,o,n,a)}static getMomentDateFormat(e,o){return e?o?"lll":"ll":o?"L LT":"L"}static getIntlDateTime(e,o,n,a){let i=typeof e=="string"?new Date(e):e,s=new Intl.DateTimeFormat(o,{dateStyle:n?"medium":"short"}).format(i);if(!a)return s;let l=new Intl.DateTimeFormat(o,{timeStyle:"short"}).format(i);return`${s} ${l}`}static getTimezoneAsString(){let e=n=>String(Math.floor(n)).padStart(2,"0"),o=new Date().getTimezoneOffset();return`${o<0?"+":"-"}${e(Math.abs(o)/60)}:${e(Math.abs(o)%60)}`}};var Ed=b(N()),yn=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(i=(a<3?s(i):a>3?s(e,o,i):s(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},wd=(0,Ed.applyMixinOnce)(Symbol("withDateFormat"),function(t){class e extends t{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(T)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var a,i;return((i=(a=this.metadataDescriptors.find(l=>l.key===n))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1)?l=>hn.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return yn([(0,Oi.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),yn([(0,Oi.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),yn([Ja({store:T.name,selector:o=>{var n,a;return(a=(n=o.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&a!==void 0?a:[]}})],e.prototype,"metadataDescriptors",void 0),yn([Ja({store:T.name})],e.prototype,"uiLocale",void 0),e});var bn=b(N());var mn=class extends Se{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=T.getState().session;return!!e?.sessionAuthenticated}};var gn=class extends Se{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let e=T.getState().session;return!!e?.sessionAuthenticated}};var bu="ft-user-assets",xu={setAssetCount:(t,e)=>{let{userAssetType:o,count:n}=e.payload.assetCount;t.assetCounts.allAsset[o]=n},clearAssetCount:t=>{Object.values(Ge).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let o=e.payload.mapId;t.assetCounts.bookmarkByMap[o]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:o,mapId:n,asset:a}=e.payload;wi(t,o,[...Ei(t,o),a]),Ad(t,o,1,n),Td(t,a)},editAsset:(t,e)=>{let{assetType:o,asset:n}=e.payload;wi(t,o,Ei(t,o).map(a=>a.id===n.id?n:a)),Td(t,n)},removeAsset:(t,e)=>{let{assetType:o,mapId:n,assetId:a}=e.payload;wi(t,o,Ei(t,o).filter(i=>i.id!==a)),Ad(t,o,-1,n)}},Rd={[Ge.SEARCHES]:"savedSearches",[Ge.BOOKMARKS]:"bookmarks",[Ge.BOOKS]:void 0,[Ge.COLLECTIONS]:void 0},Ei=(t,e)=>{var o;let n=Rd[e];return n?(o=t[n])!==null&&o!==void 0?o:[]:[]},wi=(t,e,o)=>{let n=Rd[e];n&&(t[n]=o)},Ad=(t,e,o,n)=>{let a=t.assetCounts.allAsset[e];if(a!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,a+o),e===Ge.BOOKMARKS&&n)){let i=t.assetCounts.bookmarkByMap[n];t.assetCounts.bookmarkByMap[n]=Math.max(0,i+o)}},Td=(t,e)=>{let o=t.assetLabels.map(a=>a.title),n=e.labels.filter(a=>!o.includes(a)).map(a=>({title:a}));t.assetLabels.push(...n)},$e=bn.FtReduxStore.get({name:bu,reducers:xu,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Ge).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Ai=class{constructor(e=new mn,o=new gn){this.assetCountsService=e,this.assetLabelsService=o,this.currentSession=T.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new qo,this.savedSearchesService=new Qo,T.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:o}=T.getState();(0,bn.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),$e.actions.clearAssetCount(),$e.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),$e.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),$e.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();$e.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();$e.actions.assetLabels(e)}async loadAssetCount(e){let o=await this.assetCountsService.getUserAssetCount(e);o&&$e.actions.setAssetCount({assetCount:o})}async loadBookmarkByMapId(e){let o=await this.assetCountsService.getUserBookmarkCountByMap(e);o&&$e.actions.setBookmarkCountByMap({count:o.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let o=Object.keys($e.getState().assetCounts.bookmarkByMap).length!==0;e===Ge.BOOKMARKS&&o&&$e.actions.clearBookmarkCountByMap(),$e.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let o=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;$e.actions.bookmarks(o)}}},Ti=new Ai;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Ti);(0,Id.customElement)("ft-app-context")(K);var _d=b(X());var Ri=class{fromLocalizableLabel(e){return e.type=="PLAIN_TEXT"?{message:e.text}:{key:e.key,custom:e.type=="LOCALIZED_CUSTOM",context:e.context,message:e.key}}fromAttribute(e){if(e!=null)try{return JSON.parse(e)}catch{if(this.isI18nKey(e)){let[n,a]=e.split(".");return{context:n,key:a,message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},Ld=new Ri;var vu=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(i=(a<3?s(i):a>3?s(e,o,i):s(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},Su=Symbol("i18nAttributes"),Cu=Symbol("i18nListAttributes"),uo=Symbol("i18nProperties"),xn=Symbol("i18nContexts"),po=Symbol("i18nUnsubs"),Sn=(0,$r.applyMixinOnce)(Symbol("withI18n"),function(t){var e,o;class n extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[o]=new Map}getI18nService(i){return i??this.useCustomMessageContexts?Xo:Nr}i18n(i){let{context:s,key:l,message:p}=i,{custom:u,args:h,argsProvider:y}=i;if(s&&l){this.hasI18nContext(s)||this.addI18nContext(s,void 0,u);let g=h??(y?y(this):[]);return this.getI18nService(u).resolveMessage(s,l,...g)}return p}async awaitI18n(i){let{context:s,custom:l}=i;return s&&await this.getI18nService(l).prepareContext(s),this.i18n(i)}customI18n(i,s){if(Ld.isI18nKey(i)){let[l,p]=i.split(".");return this.i18n({custom:!0,context:l,key:p,...s})||i}return i}firstUpdated(i){super.firstUpdated(i),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(i){super.update(i),this.updateI18nAttributes((s,l,p)=>i.has(l)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(i){this.updateI18nAttributes((s,l,p)=>{var u;return((u=p?.context)===null||u===void 0?void 0:u.toLowerCase())===i}),this.updateI18nProperties(s=>s.context.toLowerCase()===i),this.requestUpdate()}updateI18nAttributes(i){var s,l;let p=this,u=(h,y,g)=>g?.context&&g.key&&i(h,y,g)?{...g,message:this.i18n({context:g.context,key:g.key,custom:g.custom,...h})}:g;(s=this[Su])===null||s===void 0||s.forEach((h,y)=>p[y]=u(h,y,p[y])),(l=this[Cu])===null||l===void 0||l.forEach((h,y)=>{var g;return p[y]=(g=p[y])===null||g===void 0?void 0:g.map(x=>u(h,y,x))})}updateI18nProperties(i){var s;(s=this[uo])===null||s===void 0||s.forEach((l,p)=>{i(l,p)&&(this[p]=this.i18n(l))})}addI18nMessages(i,s,l){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(i,s,l)}addI18nContext(i,s,l){let p=(typeof i=="string"?i:i.name).toLowerCase();l=typeof i=="string"?l:i.custom,this[xn].set(p,{isCustomContext:l}),this[po].has(p)||this[po].set(p,this.getI18nService(l).subscribe(p,()=>this.onI18nUpdate(p))),this.getI18nService(l).prepareContext(p,s)}hasI18nContext(i){return this[xn].has(i.toLowerCase())}connectedCallback(){super.connectedCallback(),this[xn].forEach((i,s)=>this.addI18nContext(s,void 0,i.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[po].forEach(i=>i()),this[po].clear()}}return e=xn,o=po,vu([(0,_d.property)({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}),Nd=class extends Sn($r.FtLitElement){},vn=class extends Sn($r.FtLitElementRedux){};var Md=b(N());var Cn=b($()),On=b(X()),En=b(N());var Pd=b($());var kd=Pd.css`
|
|
1594
|
+
`}connectedCallback(){super.connectedCallback(),T.addEventListener(lt.eventName,this.reloadConfiguration)}disconnectedCallback(){T.addEventListener(lt.eventName,this.reloadConfiguration),super.disconnectedCallback()}update(e){var o,n,a,i,s,l,p;super.update(e),e.has("baseUrl")&&(T.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&T.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&T.actions.apiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&T.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&T.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&T.actions.noCustom(this.noCustom),e.has("editorMode")&&T.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&T.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&T.actions.session(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(u=>Nr.addContext(u)),e.has("openExternalDocumentInNewTab")&&T.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&T.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&T.actions.forcedOffline(this.forcedOffline),e.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((s=(i=this.localesConfiguration)===null||i===void 0?void 0:i.allLanguagesAllowed)!==null&&s!==void 0?s:!1)),e.has("authenticationRequired")&&T.actions.authenticationRequired(this.authenticationRequired),e.has("availableContentLocales")&&T.actions.availableContentLocales((p=(l=this.availableContentLocales)===null||l===void 0?void 0:l.contentLocales)!==null&&p!==void 0?p:[]),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration(),this.availableContentLocales==null&&this.updateAvailableContentLocales())}async updateSession(){this.session=await this.cache.get("session",async()=>{let e=await this.apiProvider().getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},e.idleTimeoutInMillis),e})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}async updateAvailableContentLocales(){this.availableContentLocales=await this.cache.get("availableContentLocales",()=>Nl(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}))}};K.elementDefinitions={};K.styles=El;le([(0,me.property)()],K.prototype,"baseUrl",void 0);le([(0,me.property)()],K.prototype,"apiIntegrationIdentifier",void 0);le([(0,me.property)()],K.prototype,"apiIntegrationAppVersion",void 0);le([(0,me.property)()],K.prototype,"uiLocale",void 0);le([(0,Je.jsonProperty)(null)],K.prototype,"availableUiLocales",void 0);le([(0,Je.jsonProperty)(null)],K.prototype,"metadataConfiguration",void 0);le([(0,me.property)({type:Boolean})],K.prototype,"editorMode",void 0);le([(0,me.property)({type:Boolean})],K.prototype,"noCustom",void 0);le([(0,me.property)({type:Boolean})],K.prototype,"openExternalDocumentInNewTab",void 0);le([(0,me.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],K.prototype,"noCustomComponent",void 0);le([(0,me.property)({type:Boolean})],K.prototype,"withManualResources",void 0);le([(0,me.property)({type:Boolean})],K.prototype,"navigatorOnline",void 0);le([(0,me.property)({type:Boolean})],K.prototype,"forcedOffline",void 0);le([(0,me.property)({type:Object})],K.prototype,"apiProvider",void 0);le([(0,me.property)({type:Boolean})],K.prototype,"authenticationRequired",void 0);le([(0,Je.jsonProperty)([])],K.prototype,"messageContexts",void 0);le([(0,Je.jsonProperty)(void 0)],K.prototype,"session",void 0);le([(0,me.state)()],K.prototype,"localesConfiguration",void 0);le([(0,me.state)()],K.prototype,"availableContentLocales",void 0);var Oi=b(X());function _p(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;let o,n,a;if(Array.isArray(t)){if(o=t.length,o!=e.length)return!1;for(n=o;n--!==0;)if(!en(t[n],e[n]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;for(n of t.entries())if(!en(n[1],e.get(n[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let i=s=>Object.keys(s).filter(l=>s[l]!=null);if(a=i(t),o=a.length,o!==i(e).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(e,a[n]))return!1;for(n=o;n--!==0;){let s=a[n];if(!en(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function en(t,e){try{return _p(t,e)}catch{return!1}}function ao(t,e){return!en(t,e)}function tn(t,e){let o=n=>n[t]===!0;return n=>{if(o(n))return n;let a=e(n);return a[t]=!0,a}}var Pl=b(X(),1);var Ja=t=>{let e=t??{};return(o,n)=>{var a;let i={hasChanged:ao,attribute:!1,...e};(0,Pl.property)(i)(o,n);let s=o.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(n,{selector:(a=e.selector)!==null&&a!==void 0?a:l=>l[n],store:e.store})}};var rn=class{constructor(){this.queue=[]}add(e,o=!1){o&&this.clear(e.type),this.queue.push(e)}consume(e){let o=this.queue.find(n=>n.type===e);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}clear(e){typeof e=="string"?this.queue=this.queue.filter(o=>o.type!==e):this.queue=this.queue.filter(o=>!e.test(o.type))}};var Qt=b(X(),1);var kl=b(X(),1);function Dl(t,e){let o=()=>JSON.parse(JSON.stringify(t));return(0,kl.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:ao,...e??{}})}var on=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,o){return this.callbacks=[e],this.debounce(o)}queue(e,o){return this.callbacks.push(e),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((o,n)=>{this.resolvePromise=o,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,o;let n=[...this.callbacks];this.callbacks=[];let a=(e=this.rejectPromise)!==null&&e!==void 0?e:()=>null,i=(o=this.resolvePromise)!==null&&o!==void 0?o:()=>null;this.clearPromise();for(let s of n)try{await s()}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 Bl=b($(),1);var nn=globalThis,Pp=nn.ShadowRoot&&(nn.ShadyCSS===void 0||nn.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,KS=Symbol();var Ml=(t,e)=>{if(Pp)t.adoptedStyleSheets=e.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet);else for(let o of e){let n=document.createElement("style"),a=nn.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=o.cssText,t.appendChild(n)}};var an=class extends Bl.LitElement{createRenderRoot(){let e=this.constructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,Object.entries(e.elementDefinitions).forEach(([a,i])=>e.registry.define(a,i)));let o={...e.shadowRootOptions,customElements:e.registry},n=this.renderOptions.creationScope=this.attachShadow(o);return Ml(n,e.elementStyles),n}};function Ul(t,e,...o){var n;let a=t.querySelector(e);for(let i of o)a=(n=a?.shadowRoot)===null||n===void 0?void 0:n.querySelector(i);return a}var Pr=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(i=(a<3?s(i):a>3?s(e,o,i):s(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},zl,$l=Symbol("constructorPrototype"),Fl=Symbol("constructorName"),Wl=Symbol("exportpartsDebouncer"),Hl=Symbol("dynamicDependenciesLoaded"),_r=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};_r.eventName="exportparts-updated";var dt=class extends an{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[zl]=new on(5),this.scheduleExportpartsUpdate=()=>{var e,o,n;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(n=(o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)!==null&&n!==void 0&&n)&&this[Wl].run(()=>{var a,i;!((a=this.exportpartsPrefix)===null||a===void 0)&&a.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((i=this.exportpartsPrefixes)===null||i===void 0?void 0:i.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[Fl]=this.constructor.name,this[$l]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Fl]&&Object.setPrototypeOf(this,this[$l])}connectedCallback(){var e;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(n){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",n)}let o=this.constructor;o[Hl]||(o[Hl]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(_r.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(_r.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate(),e.has("exportparts")&&this.dispatchEvent(new _r)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:o,selector:n,shadowPath:a}=this.elementToFocus;if(n!=null){let i=[...a??[],n];o=Ul(this.shadowRoot,...i)}o?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||o?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){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(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((a=this.customStylesheet)!==null&&a!==void 0?a:"")}catch(i){console.error(i,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let i=document.createElement("style");i.classList.add("ft-lit-element--custom-stylesheet"),i.innerHTML=this.customStylesheet,this.shadowRoot.append(i)}}setExportpartsAttribute(e){var o,n,a,i,s,l;let p=g=>g!=null&&g.trim().length>0,u=e.filter(p).map(g=>g.trim());if(u.length===0){this.exportparts=void 0;return}let h=new Set;for(let g of(n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let x=(i=(a=g.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&i!==void 0?i:[],S=(l=(s=g.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(I=>I.split(":")[1]))!==null&&l!==void 0?l:[],O=[...x,...S].filter(p).map(I=>I.trim());for(let I of O)h.add(I)}if(h.size===0){this.exportparts=void 0;return}let y=[...h.values()].flatMap(g=>u.map(x=>`${g}:${x}--${g}`));this.exportparts=[...this.part,...y].join(", ")}};zl=Wl;Pr([(0,Qt.property)()],dt.prototype,"exportpartsPrefix",void 0);Pr([Dl([])],dt.prototype,"exportpartsPrefixes",void 0);Pr([(0,Qt.property)({reflect:!0})],dt.prototype,"exportparts",void 0);Pr([(0,Qt.property)()],dt.prototype,"customStylesheet",void 0);Pr([(0,Qt.property)()],dt.prototype,"elementToFocus",void 0);Pr([(0,Qt.state)()],dt.prototype,"useAdoptedStyleSheets",void 0);function sn(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var io=Symbol("internalReduxEventsUnsubscribers"),kt=Symbol("internalStoresUnsubscribers"),Jt=Symbol("internalStores"),kp=tn(Symbol("withRedux"),function(t){var e,o,n;class a extends t{constructor(){super(...arguments),this[e]=new Map,this[o]=new Map,this[n]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(l=>s.has(l))&&this.updateFromStores()}getUnnamedStore(){if(this[Jt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Jt].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[Jt].get(s)}addStore(s,l){var p;l=(p=l??s.name)!==null&&p!==void 0?p:"default-store",this.unsubscribeFromStore(l),this[Jt].set(l,s),this.subscribeToStore(l,s),this.updateFromStores()}removeStore(s){let l=typeof s=="string"?s:s.name;this.unsubscribeFromStore(l),this[Jt].delete(l)}setupStores(){this.unsubscribeFromStores(),this[Jt].forEach((s,l)=>this.subscribeToStore(l,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,l)=>{let p=this.constructor.getPropertyOptions(l);if(!p?.attribute||!this.hasAttribute(typeof p?.attribute=="string"?p.attribute:l)){let u=this.getStore(s.store);u&&(s.store?this[kt].has(s.store):this[kt].size>0)&&(this[l]=s.selector(u.getState(),this))}})}subscribeToStore(s,l){var p;this[kt].set(s,l.subscribe(()=>this.updateFromStores())),this[io].set(s,[]),sn(l)&&l.eventBus&&((p=this.reduxConstructor.reduxEventListeners)===null||p===void 0||p.forEach((u,h)=>{if(typeof this[h]=="function"&&(!u.store||l.name===u.store)){let y=g=>this[h](g);l.addEventListener(u.eventName,y),this[io].get(s).push(()=>l.removeEventListener(u.eventName,y))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[kt].forEach((s,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(s){var l;this[kt].has(s)&&this[kt].get(s)(),this[kt].delete(s),(l=this[io].get(s))===null||l===void 0||l.forEach(p=>p()),this[io].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=kt,o=Jt,n=io,a.reduxProperties=new Map,a.reduxReactiveProperties=new Set,a.reduxEventListeners=new Map,a}),Gl=class extends kp(dt){};function Ve(t){for(var e=arguments.length,o=Array(e>1?e-1:0),n=1;n<e;n++)o[n-1]=arguments[n];if(0)var a,i;throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function vt(t){return!!t&&!!t[q]}function et(t){var e;return!!t&&(function(o){if(!o||typeof o!="object")return!1;var n=Object.getPrototypeOf(o);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===zp}(t)||Array.isArray(t)||!!t[Xl]||!!(!((e=t.constructor)===null||e===void 0)&&e[Xl])||ci(t)||li(t))}function er(t,e,o){o===void 0&&(o=!1),Mr(t)===0?(o?Object.keys:Dr)(t).forEach(function(n){o&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,a){return e(a,n,t)})}function Mr(t){var e=t[q];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:ci(t)?2:li(t)?3:0}function kr(t,e){return Mr(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Dp(t,e){return Mr(t)===2?t.get(e):t[e]}function Ql(t,e,o){var n=Mr(t);n===2?t.set(e,o):n===3?t.add(o):t[e]=o}function Jl(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function ci(t){return Fp&&t instanceof Map}function li(t){return Hp&&t instanceof Set}function Dt(t){return t.o||t.t}function di(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=rd(t);delete e[q];for(var o=Dr(e),n=0;n<o.length;n++){var a=o[n],i=e[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(e[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:t[a]})}return Object.create(Object.getPrototypeOf(t),e)}function pi(t,e){return e===void 0&&(e=!1),ui(t)||vt(t)||!et(t)||(Mr(t)>1&&(t.set=t.add=t.clear=t.delete=Mp),Object.freeze(t),e&&er(t,function(o,n){return pi(n,!0)},!0)),t}function Mp(){Ve(2)}function ui(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function pt(t){var e=si[t];return e||Ve(18,t),e}function Bp(t,e){si[t]||(si[t]=e)}function ni(){return co}function ei(t,e){e&&(pt("Patches"),t.u=[],t.s=[],t.v=e)}function cn(t){ai(t),t.p.forEach(Up),t.p=null}function ai(t){t===co&&(co=t.l)}function jl(t){return co={p:[],l:co,h:t,m:!0,_:0}}function Up(t){var e=t[q];e.i===0||e.i===1?e.j():e.g=!0}function ti(t,e){e._=e.p.length;var o=e.p[0],n=t!==void 0&&t!==o;return e.h.O||pt("ES5").S(e,t,n),n?(o[q].P&&(cn(e),Ve(4)),et(t)&&(t=ln(e,t),e.l||dn(e,t)),e.u&&pt("Patches").M(o[q].t,t,e.u,e.s)):t=ln(e,o,[]),cn(e),e.u&&e.v(e.u,e.s),t!==td?t:void 0}function ln(t,e,o){if(ui(e))return e;var n=e[q];if(!n)return er(e,function(l,p){return Vl(t,n,e,l,p,o)},!0),e;if(n.A!==t)return e;if(!n.P)return dn(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=di(n.k):n.o,i=a,s=!1;n.i===3&&(i=new Set(a),a.clear(),s=!0),er(i,function(l,p){return Vl(t,n,a,l,p,o,s)}),dn(t,a,!1),o&&t.u&&pt("Patches").N(n,o,t.u,t.s)}return n.o}function Vl(t,e,o,n,a,i,s){if(vt(a)){var l=ln(t,a,i&&e&&e.i!==3&&!kr(e.R,n)?i.concat(n):void 0);if(Ql(o,n,l),!vt(l))return;t.m=!1}else s&&o.add(a);if(et(a)&&!ui(a)){if(!t.h.D&&t._<1)return;ln(t,a),e&&e.A.l||dn(t,a)}}function dn(t,e,o){o===void 0&&(o=!1),!t.l&&t.h.D&&t.m&&pi(e,o)}function ri(t,e){var o=t[q];return(o?Dt(o):t)[e]}function Kl(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var n=Object.getOwnPropertyDescriptor(o,e);if(n)return n;o=Object.getPrototypeOf(o)}}function Mt(t){t.P||(t.P=!0,t.l&&Mt(t.l))}function oi(t){t.o||(t.o=di(t.t))}function ii(t,e,o){var n=ci(e)?pt("MapSet").F(e,o):li(e)?pt("MapSet").T(e,o):t.O?function(a,i){var s=Array.isArray(a),l={i:s?1:0,A:i?i.A:ni(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},p=l,u=lo;s&&(p=[l],u=so);var h=Proxy.revocable(p,u),y=h.revoke,g=h.proxy;return l.k=g,l.j=y,g}(e,o):pt("ES5").J(e,o);return(o?o.A:ni()).p.push(n),n}function $p(t){return vt(t)||Ve(22,t),function e(o){if(!et(o))return o;var n,a=o[q],i=Mr(o);if(a){if(!a.P&&(a.i<4||!pt("ES5").K(a)))return a.t;a.I=!0,n=Zl(o,i),a.I=!1}else n=Zl(o,i);return er(n,function(s,l){a&&Dp(a.t,s)===l||Ql(n,s,e(l))}),i===3?new Set(n):n}(t)}function Zl(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return di(t)}function ed(){function t(s,l){var p=i[s];return p?p.enumerable=l:i[s]=p={configurable:!0,enumerable:l,get:function(){var u=this[q];return lo.get(u,s)},set:function(u){var h=this[q];lo.set(h,s,u)}},p}function e(s){for(var l=s.length-1;l>=0;l--){var p=s[l][q];if(!p.P)switch(p.i){case 5:n(p)&&Mt(p);break;case 4:o(p)&&Mt(p)}}}function o(s){for(var l=s.t,p=s.k,u=Dr(p),h=u.length-1;h>=0;h--){var y=u[h];if(y!==q){var g=l[y];if(g===void 0&&!kr(l,y))return!0;var x=p[y],S=x&&x[q];if(S?S.t!==g:!Jl(x,g))return!0}}var O=!!l[q];return u.length!==Dr(l).length+(O?0:1)}function n(s){var l=s.k;if(l.length!==s.t.length)return!0;var p=Object.getOwnPropertyDescriptor(l,l.length-1);if(p&&!p.get)return!0;for(var u=0;u<l.length;u++)if(!l.hasOwnProperty(u))return!0;return!1}function a(s){s.g&&Ve(3,JSON.stringify(Dt(s)))}var i={};Bp("ES5",{J:function(s,l){var p=Array.isArray(s),u=function(y,g){if(y){for(var x=Array(g.length),S=0;S<g.length;S++)Object.defineProperty(x,""+S,t(S,!0));return x}var O=rd(g);delete O[q];for(var I=Dr(O),R=0;R<I.length;R++){var L=I[R];O[L]=t(L,y||!!O[L].enumerable)}return Object.create(Object.getPrototypeOf(g),O)}(p,s),h={i:p?5:4,A:l?l.A:ni(),P:!1,I:!1,R:{},l,t:s,k:u,o:null,g:!1,C:!1};return Object.defineProperty(u,q,{value:h,writable:!0}),u},S:function(s,l,p){p?vt(l)&&l[q].A===s&&e(s.p):(s.u&&function u(h){if(h&&typeof h=="object"){var y=h[q];if(y){var g=y.t,x=y.k,S=y.R,O=y.i;if(O===4)er(x,function(U){U!==q&&(g[U]!==void 0||kr(g,U)?S[U]||u(x[U]):(S[U]=!0,Mt(y)))}),er(g,function(U){x[U]!==void 0||kr(x,U)||(S[U]=!1,Mt(y))});else if(O===5){if(n(y)&&(Mt(y),S.length=!0),x.length<g.length)for(var I=x.length;I<g.length;I++)S[I]=!1;else for(var R=g.length;R<x.length;R++)S[R]=!0;for(var L=Math.min(x.length,g.length),D=0;D<L;D++)x.hasOwnProperty(D)||(S[D]=!0),S[D]===void 0&&u(x[D])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?o(s):n(s)}})}var ql,co,fi=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Fp=typeof Map<"u",Hp=typeof Set<"u",Yl=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",td=fi?Symbol.for("immer-nothing"):((ql={})["immer-nothing"]=!0,ql),Xl=fi?Symbol.for("immer-draftable"):"__$immer_draftable",q=fi?Symbol.for("immer-state"):"__$immer_state";var zp=""+Object.prototype.constructor,Dr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,rd=Object.getOwnPropertyDescriptors||function(t){var e={};return Dr(t).forEach(function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)}),e},si={},lo={get:function(t,e){if(e===q)return t;var o=Dt(t);if(!kr(o,e))return function(a,i,s){var l,p=Kl(i,s);return p?"value"in p?p.value:(l=p.get)===null||l===void 0?void 0:l.call(a.k):void 0}(t,o,e);var n=o[e];return t.I||!et(n)?n:n===ri(t.t,e)?(oi(t),t.o[e]=ii(t.A.h,n,t)):n},has:function(t,e){return e in Dt(t)},ownKeys:function(t){return Reflect.ownKeys(Dt(t))},set:function(t,e,o){var n=Kl(Dt(t),e);if(n?.set)return n.set.call(t.k,o),!0;if(!t.P){var a=ri(Dt(t),e),i=a?.[q];if(i&&i.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(Jl(o,a)&&(o!==void 0||kr(t.t,e)))return!0;oi(t),Mt(t)}return t.o[e]===o&&(o!==void 0||e in t.o)||Number.isNaN(o)&&Number.isNaN(t.o[e])||(t.o[e]=o,t.R[e]=!0),!0},deleteProperty:function(t,e){return ri(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,oi(t),Mt(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=Dt(t),n=Reflect.getOwnPropertyDescriptor(o,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:o[e]}},defineProperty:function(){Ve(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Ve(12)}},so={};er(lo,function(t,e){so[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),so.deleteProperty=function(t,e){return so.set.call(this,t,e,void 0)},so.set=function(t,e,o){return lo.set.call(this,t[0],e,o,t[0])};var Wp=function(){function t(o){var n=this;this.O=Yl,this.D=!0,this.produce=function(a,i,s){if(typeof a=="function"&&typeof i!="function"){var l=i;i=a;var p=n;return function(O){var I=this;O===void 0&&(O=l);for(var R=arguments.length,L=Array(R>1?R-1:0),D=1;D<R;D++)L[D-1]=arguments[D];return p.produce(O,function(U){var F;return(F=i).call.apply(F,[I,U].concat(L))})}}var u;if(typeof i!="function"&&Ve(6),s!==void 0&&typeof s!="function"&&Ve(7),et(a)){var h=jl(n),y=ii(n,a,void 0),g=!0;try{u=i(y),g=!1}finally{g?cn(h):ai(h)}return typeof Promise<"u"&&u instanceof Promise?u.then(function(O){return ei(h,s),ti(O,h)},function(O){throw cn(h),O}):(ei(h,s),ti(u,h))}if(!a||typeof a!="object"){if((u=i(a))===void 0&&(u=a),u===td&&(u=void 0),n.D&&pi(u,!0),s){var x=[],S=[];pt("Patches").M(a,u,x,S),s(x,S)}return u}Ve(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(u){for(var h=arguments.length,y=Array(h>1?h-1:0),g=1;g<h;g++)y[g-1]=arguments[g];return n.produceWithPatches(u,function(x){return a.apply(void 0,[x].concat(y))})};var s,l,p=n.produce(a,i,function(u,h){s=u,l=h});return typeof Promise<"u"&&p instanceof Promise?p.then(function(u){return[u,s,l]}):[p,s,l]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var e=t.prototype;return e.createDraft=function(o){et(o)||Ve(8),vt(o)&&(o=$p(o));var n=jl(this),a=ii(this,o,void 0);return a[q].C=!0,ai(n),a},e.finishDraft=function(o,n){var a=o&&o[q],i=a.A;return ei(i,n),ti(void 0,i)},e.setAutoFreeze=function(o){this.D=o},e.setUseProxies=function(o){o&&!Yl&&Ve(20),this.O=o},e.applyPatches=function(o,n){var a;for(a=n.length-1;a>=0;a--){var i=n[a];if(i.path.length===0&&i.op==="replace"){o=i.value;break}}a>-1&&(n=n.slice(a+1));var s=pt("Patches").$;return vt(o)?s(o,n):this.produce(o,function(l){return s(l,n)})},t}(),Ue=new Wp,Gp=Ue.produce,cC=Ue.produceWithPatches.bind(Ue),lC=Ue.setAutoFreeze.bind(Ue),dC=Ue.setUseProxies.bind(Ue),pC=Ue.applyPatches.bind(Ue),uC=Ue.createDraft.bind(Ue),fC=Ue.finishDraft.bind(Ue),pn=Gp;function tr(t){"@babel/helpers - typeof";return tr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tr(t)}function od(t,e){if(tr(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var n=o.call(t,e||"default");if(tr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function nd(t){var e=od(t,"string");return tr(e)=="symbol"?e:e+""}function ad(t,e,o){return(e=nd(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function id(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),o.push.apply(o,n)}return o}function hi(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?id(Object(o),!0).forEach(function(n){ad(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):id(Object(o)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))})}return t}function be(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var sd=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),yi=function(){return Math.random().toString(36).substring(7).split("").join(".")},un={INIT:"@@redux/INIT"+yi(),REPLACE:"@@redux/REPLACE"+yi(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+yi()}};function jp(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function mi(t,e,o){var n;if(typeof e=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(be(0));if(typeof e=="function"&&typeof o>"u"&&(o=e,e=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(be(1));return o(mi)(t,e)}if(typeof t!="function")throw new Error(be(2));var a=t,i=e,s=[],l=s,p=!1;function u(){l===s&&(l=s.slice())}function h(){if(p)throw new Error(be(3));return i}function y(O){if(typeof O!="function")throw new Error(be(4));if(p)throw new Error(be(5));var I=!0;return u(),l.push(O),function(){if(I){if(p)throw new Error(be(6));I=!1,u();var L=l.indexOf(O);l.splice(L,1),s=null}}}function g(O){if(!jp(O))throw new Error(be(7));if(typeof O.type>"u")throw new Error(be(8));if(p)throw new Error(be(9));try{p=!0,i=a(i,O)}finally{p=!1}for(var I=s=l,R=0;R<I.length;R++){var L=I[R];L()}return O}function x(O){if(typeof O!="function")throw new Error(be(10));a=O,g({type:un.REPLACE})}function S(){var O,I=y;return O={subscribe:function(L){if(typeof L!="object"||L===null)throw new Error(be(11));function D(){L.next&&L.next(h())}D();var U=I(D);return{unsubscribe:U}}},O[sd]=function(){return this},O}return g({type:un.INIT}),n={dispatch:g,subscribe:y,getState:h,replaceReducer:x},n[sd]=S,n}function Vp(t){Object.keys(t).forEach(function(e){var o=t[e],n=o(void 0,{type:un.INIT});if(typeof n>"u")throw new Error(be(12));if(typeof o(void 0,{type:un.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(be(13))})}function cd(t){for(var e=Object.keys(t),o={},n=0;n<e.length;n++){var a=e[n];typeof t[a]=="function"&&(o[a]=t[a])}var i=Object.keys(o),s,l;try{Vp(o)}catch(p){l=p}return function(u,h){if(u===void 0&&(u={}),l)throw l;if(0)var y;for(var g=!1,x={},S=0;S<i.length;S++){var O=i[S],I=o[O],R=u[O],L=I(R,h);if(typeof L>"u"){var D=h&&h.type;throw new Error(be(14))}x[O]=L,g=g||L!==R}return g=g||i.length!==Object.keys(u).length,g?x:u}}function Br(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function ld(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(n){return function(){var a=n.apply(void 0,arguments),i=function(){throw new Error(be(15))},s={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},l=e.map(function(p){return p(s)});return i=Br.apply(void 0,l)(a.dispatch),hi(hi({},a),{},{dispatch:i})}}}function dd(t){var e=function(n){var a=n.dispatch,i=n.getState;return function(s){return function(l){return typeof l=="function"?l(a,i,t):s(l)}}};return e}var pd=dd();pd.withExtraArgument=dd;var gi=pd;var md=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},t(e,o)};return function(e,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");t(e,o);function n(){this.constructor=e}e.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),Kp=function(t,e){var o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(u){return function(h){return p([u,h])}}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=e.call(t,o)}catch(h){u=[6,h],a=0}finally{n=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},Ur=function(t,e){for(var o=0,n=e.length,a=t.length;o<n;o++,a++)t[a]=e[o];return t},Zp=Object.defineProperty,qp=Object.defineProperties,Yp=Object.getOwnPropertyDescriptors,ud=Object.getOwnPropertySymbols,Xp=Object.prototype.hasOwnProperty,Qp=Object.prototype.propertyIsEnumerable,fd=function(t,e,o){return e in t?Zp(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},Bt=function(t,e){for(var o in e||(e={}))Xp.call(e,o)&&fd(t,o,e[o]);if(ud)for(var n=0,a=ud(e);n<a.length;n++){var o=a[n];Qp.call(e,o)&&fd(t,o,e[o])}return t},bi=function(t,e){return qp(t,Yp(e))},Jp=function(t,e,o){return new Promise(function(n,a){var i=function(p){try{l(o.next(p))}catch(u){a(u)}},s=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,s)};l((o=o.apply(t,e)).next())})};var eu=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Br:Br.apply(null,arguments)},NC=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function tu(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var o=e;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return e===o}var ru=function(t){md(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=t.apply(this,o)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,Ur([void 0],o[0].concat(this)))):new(e.bind.apply(e,Ur([void 0],o.concat(this))))},e}(Array),ou=function(t){md(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=t.apply(this,o)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,Ur([void 0],o[0].concat(this)))):new(e.bind.apply(e,Ur([void 0],o.concat(this))))},e}(Array);function Si(t){return et(t)?pn(t,function(){}):t}function nu(t){return typeof t=="boolean"}function au(){return function(e){return iu(e)}}function iu(t){t===void 0&&(t={});var e=t.thunk,o=e===void 0?!0:e,n=t.immutableCheck,a=n===void 0?!0:n,i=t.serializableCheck,s=i===void 0?!0:i,l=new ru;if(o&&(nu(o)?l.push(gi):l.push(gi.withExtraArgument(o.extraArgument))),0){if(a)var p;if(s)var u}return l}var xi=!0;function gd(t){var e=au(),o=t||{},n=o.reducer,a=n===void 0?void 0:n,i=o.middleware,s=i===void 0?e():i,l=o.devTools,p=l===void 0?!0:l,u=o.preloadedState,h=u===void 0?void 0:u,y=o.enhancers,g=y===void 0?void 0:y,x;if(typeof a=="function")x=a;else if(tu(a))x=cd(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 S=s;if(typeof S=="function"&&(S=S(e),!xi&&!Array.isArray(S)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!xi&&S.some(function(U){return typeof U!="function"}))throw new Error("each middleware provided to configureStore must be a function");var O=ld.apply(void 0,S),I=Br;p&&(I=eu(Bt({trace:!xi},typeof p=="object"&&p)));var R=new ou(O),L=R;Array.isArray(g)?L=Ur([O],g):typeof g=="function"&&(L=g(R));var D=I.apply(void 0,L);return mi(x,h,D)}function Ut(t,e){function o(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(e){var i=e.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return Bt(Bt({type:t,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:t,payload:n[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(n){return n.type===t},o}function bd(t){var e={},o=[],n,a={addCase:function(i,s){var l=typeof i=="string"?i:i.type;if(l in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[l]=s,a},addMatcher:function(i,s){return o.push({matcher:i,reducer:s}),a},addDefaultCase:function(i){return n=i,a}};return t(a),[e,o,n]}function su(t){return typeof t=="function"}function cu(t,e,o,n){o===void 0&&(o=[]);var a=typeof e=="function"?bd(e):[e,o,n],i=a[0],s=a[1],l=a[2],p;if(su(t))p=function(){return Si(t())};else{var u=Si(t);p=function(){return u}}function h(y,g){y===void 0&&(y=p());var x=Ur([i[g.type]],s.filter(function(S){var O=S.matcher;return O(g)}).map(function(S){var O=S.reducer;return O}));return x.filter(function(S){return!!S}).length===0&&(x=[l]),x.reduce(function(S,O){if(O)if(vt(S)){var I=S,R=O(I,g);return R===void 0?S:R}else{if(et(S))return pn(S,function(L){return O(L,g)});var R=O(S,g);if(R===void 0){if(S===null)return S;throw Error("A case reducer on a non-draftable value must not return undefined")}return R}return S},y)}return h.getInitialState=p,h}function lu(t,e){return t+"/"+e}function xd(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof t.initialState=="function"?t.initialState:Si(t.initialState),n=t.reducers||{},a=Object.keys(n),i={},s={},l={};a.forEach(function(h){var y=n[h],g=lu(e,h),x,S;"reducer"in y?(x=y.reducer,S=y.prepare):x=y,i[h]=x,s[g]=x,l[h]=S?Ut(g,S):Ut(g)});function p(){var h=typeof t.extraReducers=="function"?bd(t.extraReducers):[t.extraReducers],y=h[0],g=y===void 0?{}:y,x=h[1],S=x===void 0?[]:x,O=h[2],I=O===void 0?void 0:O,R=Bt(Bt({},g),s);return cu(o,function(L){for(var D in R)L.addCase(D,R[D]);for(var U=0,F=S;U<F.length;U++){var Ce=F[U];L.addMatcher(Ce.matcher,Ce.reducer)}I&&L.addDefaultCase(I)})}var u;return{name:e,reducer:function(h,y){return u||(u=p()),u(h,y)},actions:l,caseReducers:i,getInitialState:function(){return u||(u=p()),u.getInitialState()}}}var du="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",pu=function(t){t===void 0&&(t=21);for(var e="",o=t;o--;)e+=du[Math.random()*64|0];return e},uu=["name","message","stack","code"],vi=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),hd=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),fu=function(t){if(typeof t=="object"&&t!==null){for(var e={},o=0,n=uu;o<n.length;o++){var a=n[o];typeof t[a]=="string"&&(e[a]=t[a])}return e}return{message:String(t)}},DC=function(){function t(e,o,n){var a=Ut(e+"/fulfilled",function(h,y,g,x){return{payload:h,meta:bi(Bt({},x||{}),{arg:g,requestId:y,requestStatus:"fulfilled"})}}),i=Ut(e+"/pending",function(h,y,g){return{payload:void 0,meta:bi(Bt({},g||{}),{arg:y,requestId:h,requestStatus:"pending"})}}),s=Ut(e+"/rejected",function(h,y,g,x,S){return{payload:x,error:(n&&n.serializeError||fu)(h||"Rejected"),meta:bi(Bt({},S||{}),{arg:g,requestId:y,rejectedWithValue:!!x,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),l=!1,p=typeof AbortController<"u"?AbortController:function(){function h(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return h.prototype.abort=function(){},h}();function u(h){return function(y,g,x){var S=n?.idGenerator?n.idGenerator(h):pu(),O=new p,I,R=!1;function L(U){I=U,O.abort()}var D=function(){return Jp(this,null,function(){var U,F,Ce,nt,ve,at,ue;return Kp(this,function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),nt=(U=n?.condition)==null?void 0:U.call(n,h,{getState:g,extra:x}),yu(nt)?[4,nt]:[3,2];case 1:nt=m.sent(),m.label=2;case 2:if(nt===!1||O.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return R=!0,ve=new Promise(function(v,P){return O.signal.addEventListener("abort",function(){return P({name:"AbortError",message:I||"Aborted"})})}),y(i(S,h,(F=n?.getPendingMeta)==null?void 0:F.call(n,{requestId:S,arg:h},{getState:g,extra:x}))),[4,Promise.race([ve,Promise.resolve(o(h,{dispatch:y,getState:g,extra:x,requestId:S,signal:O.signal,abort:L,rejectWithValue:function(v,P){return new vi(v,P)},fulfillWithValue:function(v,P){return new hd(v,P)}})).then(function(v){if(v instanceof vi)throw v;return v instanceof hd?a(v.payload,S,h,v.meta):a(v,S,h)})])];case 3:return Ce=m.sent(),[3,5];case 4:return at=m.sent(),Ce=at instanceof vi?s(null,S,h,at.payload,at.meta):s(at,S,h),[3,5];case 5:return ue=n&&!n.dispatchConditionRejection&&s.match(Ce)&&Ce.meta.condition,ue||y(Ce),[2,Ce]}})})}();return Object.assign(D,{abort:L,requestId:S,arg:h,unwrap:function(){return D.then(hu)}})}}return Object.assign(u,{pending:i,rejected:s,fulfilled:a,typePrefix:e})}return t.withTypes=function(){return t},t}();function hu(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function yu(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var vd="listener",Sd="completed",Cd="cancelled",MC="task-"+Cd,BC="task-"+Sd,UC=vd+"-"+Cd,$C=vd+"-"+Sd;var Ci="listenerMiddleware";var FC=Ut(Ci+"/add"),HC=Ut(Ci+"/removeAll"),zC=Ut(Ci+"/remove");var yd,WC=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(yd||(yd=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},mu=function(t){return function(e){setTimeout(e,t)}},GC=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:mu(10);ed();var gu=tn(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??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)}}}),fn=class extends gu(Object){};window.ftReduxStores||(window.ftReduxStores={});var Od=class t extends fn{static get(e){var o;let n=typeof e=="string"?e:e.name,a=typeof e=="string"?void 0:e,i=window.ftReduxStores[n];if(sn(i))return i;if(a==null)return;let s=xd({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),l=gd({reducer:(p,u)=>u.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__")?{...p,...u.overwrites}:s.reducer(p,u)});return window.ftReduxStores[a.name]=new t(s,l,a.eventBus)}constructor(e,o,n){super(),this.reduxSlice=e,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new rn;let a=i=>i!=null?JSON.parse(JSON.stringify(i)):i;this.actions=new Proxy(this.reduxSlice.actions,{get:(i,s,l)=>{let p=s,u=i[p];return u?(...h)=>{let y=u(...h.map(a));return this.reduxStore.dispatch(y),y}:h=>{this.setState({[p]:a(h)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var hn=class{static format(e,o,n,a){return window.moment?window.moment(e).locale(o).format(this.getMomentDateFormat(n,a)):this.getIntlDateTime(e,o,n,a)}static getMomentDateFormat(e,o){return e?o?"lll":"ll":o?"L LT":"L"}static getIntlDateTime(e,o,n,a){let i=typeof e=="string"?new Date(e):e,s=new Intl.DateTimeFormat(o,{dateStyle:n?"medium":"short"}).format(i);if(!a)return s;let l=new Intl.DateTimeFormat(o,{timeStyle:"short"}).format(i);return`${s} ${l}`}static getTimezoneAsString(){let e=n=>String(Math.floor(n)).padStart(2,"0"),o=new Date().getTimezoneOffset();return`${o<0?"+":"-"}${e(Math.abs(o)/60)}:${e(Math.abs(o)%60)}`}};var Ed=b(N()),yn=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(i=(a<3?s(i):a>3?s(e,o,i):s(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},wd=(0,Ed.applyMixinOnce)(Symbol("withDateFormat"),function(t){class e extends t{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(T)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var a,i;return((i=(a=this.metadataDescriptors.find(l=>l.key===n))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1)?l=>hn.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return yn([(0,Oi.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),yn([(0,Oi.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),yn([Ja({store:T.name,selector:o=>{var n,a;return(a=(n=o.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&a!==void 0?a:[]}})],e.prototype,"metadataDescriptors",void 0),yn([Ja({store:T.name})],e.prototype,"uiLocale",void 0),e});var bn=b(N());var mn=class extends Se{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=T.getState().session;return!!e?.sessionAuthenticated}};var gn=class extends Se{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let e=T.getState().session;return!!e?.sessionAuthenticated}};var bu="ft-user-assets",xu={setAssetCount:(t,e)=>{let{userAssetType:o,count:n}=e.payload.assetCount;t.assetCounts.allAsset[o]=n},clearAssetCount:t=>{Object.values(Ge).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let o=e.payload.mapId;t.assetCounts.bookmarkByMap[o]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:o,mapId:n,asset:a}=e.payload;wi(t,o,[...Ei(t,o),a]),Ad(t,o,1,n),Td(t,a)},editAsset:(t,e)=>{let{assetType:o,asset:n}=e.payload;wi(t,o,Ei(t,o).map(a=>a.id===n.id?n:a)),Td(t,n)},removeAsset:(t,e)=>{let{assetType:o,mapId:n,assetId:a}=e.payload;wi(t,o,Ei(t,o).filter(i=>i.id!==a)),Ad(t,o,-1,n)}},Rd={[Ge.SEARCHES]:"savedSearches",[Ge.BOOKMARKS]:"bookmarks",[Ge.BOOKS]:void 0,[Ge.COLLECTIONS]:void 0},Ei=(t,e)=>{var o;let n=Rd[e];return n?(o=t[n])!==null&&o!==void 0?o:[]:[]},wi=(t,e,o)=>{let n=Rd[e];n&&(t[n]=o)},Ad=(t,e,o,n)=>{let a=t.assetCounts.allAsset[e];if(a!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,a+o),e===Ge.BOOKMARKS&&n)){let i=t.assetCounts.bookmarkByMap[n];t.assetCounts.bookmarkByMap[n]=Math.max(0,i+o)}},Td=(t,e)=>{let o=t.assetLabels.map(a=>a.title),n=e.labels.filter(a=>!o.includes(a)).map(a=>({title:a}));t.assetLabels.push(...n)},$e=bn.FtReduxStore.get({name:bu,reducers:xu,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Ge).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Ai=class{constructor(e=new mn,o=new gn){this.assetCountsService=e,this.assetLabelsService=o,this.currentSession=T.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new qo,this.savedSearchesService=new Qo,T.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:o}=T.getState();(0,bn.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),$e.actions.clearAssetCount(),$e.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),$e.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),$e.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();$e.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();$e.actions.assetLabels(e)}async loadAssetCount(e){let o=await this.assetCountsService.getUserAssetCount(e);o&&$e.actions.setAssetCount({assetCount:o})}async loadBookmarkByMapId(e){let o=await this.assetCountsService.getUserBookmarkCountByMap(e);o&&$e.actions.setBookmarkCountByMap({count:o.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let o=Object.keys($e.getState().assetCounts.bookmarkByMap).length!==0;e===Ge.BOOKMARKS&&o&&$e.actions.clearBookmarkCountByMap(),$e.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let o=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;$e.actions.bookmarks(o)}}},Ti=new Ai;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Ti);(0,Id.customElement)("ft-app-context")(K);var _d=b(X());var Ri=class{fromLocalizableLabel(e){return e.type=="PLAIN_TEXT"?{message:e.text}:{key:e.key,custom:e.type=="LOCALIZED_CUSTOM",context:e.context,message:e.key}}fromAttribute(e){if(e!=null)try{return JSON.parse(e)}catch{if(this.isI18nKey(e)){let[n,a]=e.split(".");return{context:n,key:a,custom:!0,message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},Ld=new Ri;var vu=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(i=(a<3?s(i):a>3?s(e,o,i):s(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},Su=Symbol("i18nAttributes"),Cu=Symbol("i18nListAttributes"),uo=Symbol("i18nProperties"),xn=Symbol("i18nContexts"),po=Symbol("i18nUnsubs"),Sn=(0,$r.applyMixinOnce)(Symbol("withI18n"),function(t){var e,o;class n extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[o]=new Map}getI18nService(i){return i??this.useCustomMessageContexts?Xo:Nr}i18n(i){let{context:s,key:l,message:p}=i,{custom:u,args:h,argsProvider:y}=i;if(s&&l){this.hasI18nContext(s)||this.addI18nContext(s,void 0,u);let g=h??(y?y(this):[]);return this.getI18nService(u).resolveMessage(s,l,...g)}return p}async awaitI18n(i){let{context:s,custom:l}=i;return s&&await this.getI18nService(l).prepareContext(s),this.i18n(i)}customI18n(i,s){if(Ld.isI18nKey(i)){let[l,p]=i.split(".");return this.i18n({custom:!0,context:l,key:p,...s})||i}return i}firstUpdated(i){super.firstUpdated(i),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(i){super.update(i),this.updateI18nAttributes((s,l,p)=>i.has(l)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(i){this.updateI18nAttributes((s,l,p)=>{var u;return((u=p?.context)===null||u===void 0?void 0:u.toLowerCase())===i}),this.updateI18nProperties(s=>s.context.toLowerCase()===i),this.requestUpdate()}updateI18nAttributes(i){var s,l;let p=this,u=(h,y,g)=>g?.context&&g.key&&i(h,y,g)?{...g,message:this.i18n({context:g.context,key:g.key,custom:g.custom,...h})}:g;(s=this[Su])===null||s===void 0||s.forEach((h,y)=>p[y]=u(h,y,p[y])),(l=this[Cu])===null||l===void 0||l.forEach((h,y)=>{var g;return p[y]=(g=p[y])===null||g===void 0?void 0:g.map(x=>u(h,y,x))})}updateI18nProperties(i){var s;(s=this[uo])===null||s===void 0||s.forEach((l,p)=>{i(l,p)&&(this[p]=this.i18n(l))})}addI18nMessages(i,s,l){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(i,s,l)}addI18nContext(i,s,l){let p=(typeof i=="string"?i:i.name).toLowerCase();l=typeof i=="string"?l:i.custom,this[xn].set(p,{isCustomContext:l}),this[po].has(p)||this[po].set(p,this.getI18nService(l).subscribe(p,()=>this.onI18nUpdate(p))),this.getI18nService(l).prepareContext(p,s)}hasI18nContext(i){return this[xn].has(i.toLowerCase())}connectedCallback(){super.connectedCallback(),this[xn].forEach((i,s)=>this.addI18nContext(s,void 0,i.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[po].forEach(i=>i()),this[po].clear()}}return e=xn,o=po,vu([(0,_d.property)({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}),Nd=class extends Sn($r.FtLitElement){},vn=class extends Sn($r.FtLitElementRedux){};var Md=b(N());var Cn=b($()),On=b(X()),En=b(N());var Pd=b($());var kd=Pd.css`
|
|
1595
1595
|
`;var fo=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(i=(a<3?s(i):a>3?s(e,o,i):s(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},tt=class extends vn{constructor(){super(),this.editorMode=!1,this.addStore(T)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":Cn.nothing:Cn.html`
|
|
1596
1596
|
<span class="ft-i18n">
|
|
1597
1597
|
${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
|
|
@@ -1671,7 +1671,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
1671
1671
|
`}};Ft.elementDefinitions={"ft-typography":Ce};Ft.styles=Jd;Y("ft-floating-menu")(Ut);Y("ftds-floating-menu")(Yr);Y("ft-floating-menu-item")(De);Y("ft-floating-menu-label")(Ft);function ah(t){var e,r,n,i,a;return((i=(r=(e=t.map)===null||e===void 0?void 0:e.openMode)!==null&&r!==void 0?r:(n=t.topic)===null||n===void 0?void 0:n.openMode)!==null&&i!==void 0?i:(a=t.document)===null||a===void 0?void 0:a.openMode)===Fn.EXTERNAL}function ks(t){var e,r,n,i,a;if(ah(t))return(i=(r=(e=t.map)===null||e===void 0?void 0:e.originUrl)!==null&&r!==void 0?r:(n=t.topic)===null||n===void 0?void 0:n.originUrl)!==null&&i!==void 0?i:(a=t.document)===null||a===void 0?void 0:a.originUrl;switch(t.type){case Pr.MAP:return t.map.readerUrl;case Pr.DOCUMENT:return t.document.viewerUrl;case Pr.TOPIC:return t.topic.readerUrl}return""}var Qd=L`
|
|
1672
1672
|
`;var Ms="ft-app-info",pt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};pt.eventName="authentication-change";var sh={session:(t,e)=>{Ue(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>N.dispatchEvent(new pt(e.payload)),0))}},N=Ot.get({name:Ms,reducers:sh,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],availableContentLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}});var sr=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:n}=N.getState(),i=e??n;if(r&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,i,!0)}static await(e){return new Promise(r=>{let n=t.get(e);if(n)r(n);else{let i=N.subscribe(()=>{n=t.get(e),n&&(i(),r(n))})}})}};var Jn=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:sr.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):sr.await()}};var Ae=class extends Jn{constructor(e=!0,r){var n;super(r),this.sortObjectFields=(a,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([l],[d])=>l.localeCompare(d)));let i=this.constructor;i.commonCache=(n=i.commonCache)!==null&&n!==void 0?n:new it,this.cache=e?i.commonCache:new it}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((r,n)=>0|31*r+n.charCodeAt(0),0))}};var Qn=class extends Ae{async listMyBookmarks(){let e=N.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var Ds=class{addCommand(e,r=!1){N.commands.add(e,r)}consumeCommand(e){return N.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Ds;var ep,Xr=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},lh=Symbol("clearAfterUnitTest"),ei=class extends Yo(Ae){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[ep]=()=>{this.defaultMessages={},this.cache=new it,this.listeners={}},this.currentUiLocale=N.getState().uiLocale,N.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=N.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let r=e.name.toLowerCase();this.cache.setFinal(r,e),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,r){var n;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let i={...(n=this.defaultMessages[e])!==null&&n!==void 0?n:{},...r};Ue(this.defaultMessages[e],i)||(this.defaultMessages[e]=i,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,n;return this.fetchContext(e),(n=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(e,r){let n=e.toLowerCase();return this.resolveContext(n)[r]}resolveMessage(e,r,...n){var i;let a=e.toLowerCase(),s=this.resolveContext(a);return new Oo((i=this.defaultMessages[a])!==null&&i!==void 0?i:{},s).resolve(r,...n)}async fetchContext(e){let r=!this.cache.has(e),n;try{n=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(i){!(i instanceof ht)&&r&&console.error(i)}return n}subscribe(e,r){var n;return e=e.toLowerCase(),this.listeners[e]=(n=this.listeners[e])!==null&&n!==void 0?n:new Set,this.listeners[e].add(r),()=>{var i;return(i=this.listeners[e])===null||i===void 0?void 0:i.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new Xr({loadedContexts:e})),this.dispatchEvent(new Xr({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new Xr({loadedContexts:[e]})),this.dispatchEvent(new Xr({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(n=>qo(0).then(()=>n()).catch(()=>null)))}};ep=lh;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends ei{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends ei{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var Jr=window.FluidTopicsI18nService,ti=window.FluidTopicsCustomI18nService;var Bs=class{highlightHtml(e,r,n){La(e,r,n)}};window.FluidTopicsHighlightHtmlService=new Bs;var ri=class extends Ae{async listMySearches(){let{session:e}=N.getState();return Et(e,re.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var $s=class{isDate(e){var r,n,i,a;return(a=(i=((n=(r=N.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(l=>l.key===e))===null||i===void 0?void 0:i.date)!==null&&a!==void 0?a:!1}format(e,r){var n,i,a;return rr.format(e,(n=r?.locale)!==null&&n!==void 0?n:N.getState().uiLocale,(i=r?.longFormat)!==null&&i!==void 0?i:!1,(a=r?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new $s;var No=class{static get(e,r){var n,i;let a=N.getState(),{lang:s,region:l}=(i=(n=a.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&i!==void 0?i:{lang:"en",region:"US"};return new kr(a.baseUrl,e??20,a.searchInAllLanguagesAllowed,r??`${s}-${l}`)}};var Us=class{urlToSearchRequest(e){return No.get().parse(e)}searchRequestToUrl(e){return No.get().serialize(e)}};window.FluidTopicsUrlService=new Us;var lr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};lr.eventName="change";var Fs=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let r=sessionStorage.getItem(this.itemName(e));return r?JSON.parse(r):void 0}set(e,r){sessionStorage.setItem(this.itemName(e),JSON.stringify(r))}},tp=new Fs;var oi=class t extends mt{static build(){return new t(window.history,tp,()=>window.location,!1)}constructor(e,r,n,i){var a,s;super(),this.history=e,this.historyStorage=r,this.windowLocation=n,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(a=e.state)===null||a===void 0?void 0:a.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(i)}setCurrentState(e,r=!1){let n=r&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,n&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),Ue(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new lr(this.currentItem())),0)}installProxies(){let e=r=>(n,i,[a,s,l])=>{let d=r(),u={...d===this.currentIndex?this.currentState:void 0,...a,index:d,href:typeof l=="string"?l:(l??this.windowLocation()).href};n.apply(i,[u,s,l]),this.setCurrentState(u,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let r=this.history.length-1;r>=0;r--)e?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(e){var r;let n={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(e){this.addEventListener(lr.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(lr.eventName,e)}currentItem(){return po(this.currentState)}back(){let e=this.previousDifferentMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return po(this.states[this.previousDifferentMajorPosition()])}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return po(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var r;let n=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!n)return e;let i=e,a=e+1;for(;this.states.length>a&&!this.isDifferentMajorState(a,n);)this.hasState(a)&&(i=a),a++;return i}buildCurrentState(){var e,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&r!==void 0?r:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,r){var n;if(!this.hasState(e))return!1;let i=r??this.currentState.majorStateId,a=(n=this.states[e])===null||n===void 0?void 0:n.majorStateId;return a==null||a!=i}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=oi.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t)});var rp=N;function op(t,e){var r;return rp.getState().authenticationRequired&&!(!((r=rp.getState().session)===null||r===void 0)&&r.sessionAuthenticated)?Promise.resolve(e):t()}var ge=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},oe=class extends W{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.apiProvider=()=>sr.get(),this.authenticationRequired=!1,this.messageContexts=[],this.cache=new it,this.cleanSessionDebouncer=new he,this.reloadConfiguration=()=>{this.cache.clear("availableContentLocales"),this.updateAvailableContentLocales()}}render(){return M`
|
|
1673
1673
|
<slot></slot>
|
|
1674
|
-
`}connectedCallback(){super.connectedCallback(),N.addEventListener(pt.eventName,this.reloadConfiguration)}disconnectedCallback(){N.addEventListener(pt.eventName,this.reloadConfiguration),super.disconnectedCallback()}update(e){var r,n,i,a,s,l,d;super.update(e),e.has("baseUrl")&&(N.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&N.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&N.actions.apiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&N.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&N.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&N.actions.noCustom(this.noCustom),e.has("editorMode")&&N.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&N.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&N.actions.session(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(u=>Jr.addContext(u)),e.has("openExternalDocumentInNewTab")&&N.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&N.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&N.actions.forcedOffline(this.forcedOffline),e.has("localesConfiguration")&&(N.actions.defaultLocales((r=this.localesConfiguration)===null||r===void 0?void 0:r.defaultLocales),N.actions.availableUiLocales((i=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&i!==void 0?i:[]),N.actions.searchInAllLanguagesAllowed((s=(a=this.localesConfiguration)===null||a===void 0?void 0:a.allLanguagesAllowed)!==null&&s!==void 0?s:!1)),e.has("authenticationRequired")&&N.actions.authenticationRequired(this.authenticationRequired),e.has("availableContentLocales")&&N.actions.availableContentLocales((d=(l=this.availableContentLocales)===null||l===void 0?void 0:l.contentLocales)!==null&&d!==void 0?d:[]),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration(),this.availableContentLocales==null&&this.updateAvailableContentLocales())}async updateSession(){this.session=await this.cache.get("session",async()=>{let e=await this.apiProvider().getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},e.idleTimeoutInMillis),e})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}async updateAvailableContentLocales(){this.availableContentLocales=await this.cache.get("availableContentLocales",()=>op(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}))}};oe.elementDefinitions={};oe.styles=Qd;ge([b()],oe.prototype,"baseUrl",void 0);ge([b()],oe.prototype,"apiIntegrationIdentifier",void 0);ge([b()],oe.prototype,"apiIntegrationAppVersion",void 0);ge([b()],oe.prototype,"uiLocale",void 0);ge([Re(null)],oe.prototype,"availableUiLocales",void 0);ge([Re(null)],oe.prototype,"metadataConfiguration",void 0);ge([b({type:Boolean})],oe.prototype,"editorMode",void 0);ge([b({type:Boolean})],oe.prototype,"noCustom",void 0);ge([b({type:Boolean})],oe.prototype,"openExternalDocumentInNewTab",void 0);ge([b({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],oe.prototype,"noCustomComponent",void 0);ge([b({type:Boolean})],oe.prototype,"withManualResources",void 0);ge([b({type:Boolean})],oe.prototype,"navigatorOnline",void 0);ge([b({type:Boolean})],oe.prototype,"forcedOffline",void 0);ge([b({type:Object})],oe.prototype,"apiProvider",void 0);ge([b({type:Boolean})],oe.prototype,"authenticationRequired",void 0);ge([Re([])],oe.prototype,"messageContexts",void 0);ge([Re(void 0)],oe.prototype,"session",void 0);ge([K()],oe.prototype,"localesConfiguration",void 0);ge([K()],oe.prototype,"availableContentLocales",void 0);var ni=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},np=fe(Symbol("withDateFormat"),function(t){class e extends t{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(N)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var i,a;return((a=(i=this.metadataDescriptors.find(l=>l.key===n))===null||i===void 0?void 0:i.date)!==null&&a!==void 0?a:!1)?l=>rr.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return ni([b({type:Boolean})],e.prototype,"useLongDateFormat",void 0),ni([b({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),ni([me({store:N.name,selector:r=>{var n,i;return(i=(n=r.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&i!==void 0?i:[]}})],e.prototype,"metadataDescriptors",void 0),ni([me({store:N.name})],e.prototype,"uiLocale",void 0),e});var ii=class extends Ae{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=N.getState().session;return!!e?.sessionAuthenticated}};var ai=class extends Ae{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let e=N.getState().session;return!!e?.sessionAuthenticated}};var ch="ft-user-assets",dh={setAssetCount:(t,e)=>{let{userAssetType:r,count:n}=e.payload.assetCount;t.assetCounts.allAsset[r]=n},clearAssetCount:t=>{Object.values(Ge).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let r=e.payload.mapId;t.assetCounts.bookmarkByMap[r]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:r,mapId:n,asset:i}=e.payload;zs(t,r,[...Hs(t,r),i]),ip(t,r,1,n),ap(t,i)},editAsset:(t,e)=>{let{assetType:r,asset:n}=e.payload;zs(t,r,Hs(t,r).map(i=>i.id===n.id?n:i)),ap(t,n)},removeAsset:(t,e)=>{let{assetType:r,mapId:n,assetId:i}=e.payload;zs(t,r,Hs(t,r).filter(a=>a.id!==i)),ip(t,r,-1,n)}},sp={[Ge.SEARCHES]:"savedSearches",[Ge.BOOKMARKS]:"bookmarks",[Ge.BOOKS]:void 0,[Ge.COLLECTIONS]:void 0},Hs=(t,e)=>{var r;let n=sp[e];return n?(r=t[n])!==null&&r!==void 0?r:[]:[]},zs=(t,e,r)=>{let n=sp[e];n&&(t[n]=r)},ip=(t,e,r,n)=>{let i=t.assetCounts.allAsset[e];if(i!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,i+r),e===Ge.BOOKMARKS&&n)){let a=t.assetCounts.bookmarkByMap[n];t.assetCounts.bookmarkByMap[n]=Math.max(0,a+r)}},ap=(t,e)=>{let r=t.assetLabels.map(i=>i.title),n=e.labels.filter(i=>!r.includes(i)).map(i=>({title:i}));t.assetLabels.push(...n)},ze=Ot.get({name:ch,reducers:dh,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Ge).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Ws=class{constructor(e=new ii,r=new ai){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=N.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Qn,this.savedSearchesService=new ri,N.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=N.getState();Ue((e=this.currentSession)===null||e===void 0?void 0:e.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),ze.actions.clearAssetCount(),ze.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),ze.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),ze.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();ze.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();ze.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&ze.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&ze.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(ze.getState().assetCounts.bookmarkByMap).length!==0;e===Ge.BOOKMARKS&&r&&ze.actions.clearBookmarkCountByMap(),ze.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let r=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;ze.actions.bookmarks(r)}}},Vs=new Ws;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Vs);Y("ft-app-context")(oe);var js=class{fromLocalizableLabel(e){return e.type=="PLAIN_TEXT"?{message:e.text}:{key:e.key,custom:e.type=="LOCALIZED_CUSTOM",context:e.context,message:e.key}}fromAttribute(e){if(e!=null)try{return JSON.parse(e)}catch{if(this.isI18nKey(e)){let[n,i]=e.split(".");return{context:n,key:i,message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},lp=new js;var ph=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},uh=Symbol("i18nAttributes"),fh=Symbol("i18nListAttributes"),ko=Symbol("i18nProperties"),si=Symbol("i18nContexts"),Po=Symbol("i18nUnsubs"),ci=fe(Symbol("withI18n"),function(t){var e,r;class n extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[r]=new Map}getI18nService(a){return a??this.useCustomMessageContexts?ti:Jr}i18n(a){let{context:s,key:l,message:d}=a,{custom:u,args:h,argsProvider:f}=a;if(s&&l){this.hasI18nContext(s)||this.addI18nContext(s,void 0,u);let m=h??(f?f(this):[]);return this.getI18nService(u).resolveMessage(s,l,...m)}return d}async awaitI18n(a){let{context:s,custom:l}=a;return s&&await this.getI18nService(l).prepareContext(s),this.i18n(a)}customI18n(a,s){if(lp.isI18nKey(a)){let[l,d]=a.split(".");return this.i18n({custom:!0,context:l,key:d,...s})||a}return a}firstUpdated(a){super.firstUpdated(a),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(a){super.update(a),this.updateI18nAttributes((s,l,d)=>a.has(l)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(a){this.updateI18nAttributes((s,l,d)=>{var u;return((u=d?.context)===null||u===void 0?void 0:u.toLowerCase())===a}),this.updateI18nProperties(s=>s.context.toLowerCase()===a),this.requestUpdate()}updateI18nAttributes(a){var s,l;let d=this,u=(h,f,m)=>m?.context&&m.key&&a(h,f,m)?{...m,message:this.i18n({context:m.context,key:m.key,custom:m.custom,...h})}:m;(s=this[uh])===null||s===void 0||s.forEach((h,f)=>d[f]=u(h,f,d[f])),(l=this[fh])===null||l===void 0||l.forEach((h,f)=>{var m;return d[f]=(m=d[f])===null||m===void 0?void 0:m.map(v=>u(h,f,v))})}updateI18nProperties(a){var s;(s=this[ko])===null||s===void 0||s.forEach((l,d)=>{a(l,d)&&(this[d]=this.i18n(l))})}addI18nMessages(a,s,l){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(a,s,l)}addI18nContext(a,s,l){let d=(typeof a=="string"?a:a.name).toLowerCase();l=typeof a=="string"?l:a.custom,this[si].set(d,{isCustomContext:l}),this[Po].has(d)||this[Po].set(d,this.getI18nService(l).subscribe(d,()=>this.onI18nUpdate(d))),this.getI18nService(l).prepareContext(d,s)}hasI18nContext(a){return this[si].has(a.toLowerCase())}connectedCallback(){super.connectedCallback(),this[si].forEach((a,s)=>this.addI18nContext(s,void 0,a.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Po].forEach(a=>a()),this[Po].clear()}}return e=si,r=Po,ph([b({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}),cp=class extends ci(W){},li=class extends ci(St){};var dp=L`
|
|
1674
|
+
`}connectedCallback(){super.connectedCallback(),N.addEventListener(pt.eventName,this.reloadConfiguration)}disconnectedCallback(){N.addEventListener(pt.eventName,this.reloadConfiguration),super.disconnectedCallback()}update(e){var r,n,i,a,s,l,d;super.update(e),e.has("baseUrl")&&(N.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&N.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&N.actions.apiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&N.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&N.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&N.actions.noCustom(this.noCustom),e.has("editorMode")&&N.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&N.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&N.actions.session(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(u=>Jr.addContext(u)),e.has("openExternalDocumentInNewTab")&&N.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&N.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&N.actions.forcedOffline(this.forcedOffline),e.has("localesConfiguration")&&(N.actions.defaultLocales((r=this.localesConfiguration)===null||r===void 0?void 0:r.defaultLocales),N.actions.availableUiLocales((i=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&i!==void 0?i:[]),N.actions.searchInAllLanguagesAllowed((s=(a=this.localesConfiguration)===null||a===void 0?void 0:a.allLanguagesAllowed)!==null&&s!==void 0?s:!1)),e.has("authenticationRequired")&&N.actions.authenticationRequired(this.authenticationRequired),e.has("availableContentLocales")&&N.actions.availableContentLocales((d=(l=this.availableContentLocales)===null||l===void 0?void 0:l.contentLocales)!==null&&d!==void 0?d:[]),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration(),this.availableContentLocales==null&&this.updateAvailableContentLocales())}async updateSession(){this.session=await this.cache.get("session",async()=>{let e=await this.apiProvider().getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},e.idleTimeoutInMillis),e})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}async updateAvailableContentLocales(){this.availableContentLocales=await this.cache.get("availableContentLocales",()=>op(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}))}};oe.elementDefinitions={};oe.styles=Qd;ge([b()],oe.prototype,"baseUrl",void 0);ge([b()],oe.prototype,"apiIntegrationIdentifier",void 0);ge([b()],oe.prototype,"apiIntegrationAppVersion",void 0);ge([b()],oe.prototype,"uiLocale",void 0);ge([Re(null)],oe.prototype,"availableUiLocales",void 0);ge([Re(null)],oe.prototype,"metadataConfiguration",void 0);ge([b({type:Boolean})],oe.prototype,"editorMode",void 0);ge([b({type:Boolean})],oe.prototype,"noCustom",void 0);ge([b({type:Boolean})],oe.prototype,"openExternalDocumentInNewTab",void 0);ge([b({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],oe.prototype,"noCustomComponent",void 0);ge([b({type:Boolean})],oe.prototype,"withManualResources",void 0);ge([b({type:Boolean})],oe.prototype,"navigatorOnline",void 0);ge([b({type:Boolean})],oe.prototype,"forcedOffline",void 0);ge([b({type:Object})],oe.prototype,"apiProvider",void 0);ge([b({type:Boolean})],oe.prototype,"authenticationRequired",void 0);ge([Re([])],oe.prototype,"messageContexts",void 0);ge([Re(void 0)],oe.prototype,"session",void 0);ge([K()],oe.prototype,"localesConfiguration",void 0);ge([K()],oe.prototype,"availableContentLocales",void 0);var ni=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},np=fe(Symbol("withDateFormat"),function(t){class e extends t{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(N)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var i,a;return((a=(i=this.metadataDescriptors.find(l=>l.key===n))===null||i===void 0?void 0:i.date)!==null&&a!==void 0?a:!1)?l=>rr.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return ni([b({type:Boolean})],e.prototype,"useLongDateFormat",void 0),ni([b({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),ni([me({store:N.name,selector:r=>{var n,i;return(i=(n=r.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&i!==void 0?i:[]}})],e.prototype,"metadataDescriptors",void 0),ni([me({store:N.name})],e.prototype,"uiLocale",void 0),e});var ii=class extends Ae{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=N.getState().session;return!!e?.sessionAuthenticated}};var ai=class extends Ae{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let e=N.getState().session;return!!e?.sessionAuthenticated}};var ch="ft-user-assets",dh={setAssetCount:(t,e)=>{let{userAssetType:r,count:n}=e.payload.assetCount;t.assetCounts.allAsset[r]=n},clearAssetCount:t=>{Object.values(Ge).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let r=e.payload.mapId;t.assetCounts.bookmarkByMap[r]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:r,mapId:n,asset:i}=e.payload;zs(t,r,[...Hs(t,r),i]),ip(t,r,1,n),ap(t,i)},editAsset:(t,e)=>{let{assetType:r,asset:n}=e.payload;zs(t,r,Hs(t,r).map(i=>i.id===n.id?n:i)),ap(t,n)},removeAsset:(t,e)=>{let{assetType:r,mapId:n,assetId:i}=e.payload;zs(t,r,Hs(t,r).filter(a=>a.id!==i)),ip(t,r,-1,n)}},sp={[Ge.SEARCHES]:"savedSearches",[Ge.BOOKMARKS]:"bookmarks",[Ge.BOOKS]:void 0,[Ge.COLLECTIONS]:void 0},Hs=(t,e)=>{var r;let n=sp[e];return n?(r=t[n])!==null&&r!==void 0?r:[]:[]},zs=(t,e,r)=>{let n=sp[e];n&&(t[n]=r)},ip=(t,e,r,n)=>{let i=t.assetCounts.allAsset[e];if(i!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,i+r),e===Ge.BOOKMARKS&&n)){let a=t.assetCounts.bookmarkByMap[n];t.assetCounts.bookmarkByMap[n]=Math.max(0,a+r)}},ap=(t,e)=>{let r=t.assetLabels.map(i=>i.title),n=e.labels.filter(i=>!r.includes(i)).map(i=>({title:i}));t.assetLabels.push(...n)},ze=Ot.get({name:ch,reducers:dh,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Ge).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Ws=class{constructor(e=new ii,r=new ai){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=N.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Qn,this.savedSearchesService=new ri,N.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=N.getState();Ue((e=this.currentSession)===null||e===void 0?void 0:e.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),ze.actions.clearAssetCount(),ze.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),ze.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),ze.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();ze.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();ze.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&ze.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&ze.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(ze.getState().assetCounts.bookmarkByMap).length!==0;e===Ge.BOOKMARKS&&r&&ze.actions.clearBookmarkCountByMap(),ze.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let r=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;ze.actions.bookmarks(r)}}},Vs=new Ws;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Vs);Y("ft-app-context")(oe);var js=class{fromLocalizableLabel(e){return e.type=="PLAIN_TEXT"?{message:e.text}:{key:e.key,custom:e.type=="LOCALIZED_CUSTOM",context:e.context,message:e.key}}fromAttribute(e){if(e!=null)try{return JSON.parse(e)}catch{if(this.isI18nKey(e)){let[n,i]=e.split(".");return{context:n,key:i,custom:!0,message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},lp=new js;var ph=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},uh=Symbol("i18nAttributes"),fh=Symbol("i18nListAttributes"),ko=Symbol("i18nProperties"),si=Symbol("i18nContexts"),Po=Symbol("i18nUnsubs"),ci=fe(Symbol("withI18n"),function(t){var e,r;class n extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[r]=new Map}getI18nService(a){return a??this.useCustomMessageContexts?ti:Jr}i18n(a){let{context:s,key:l,message:d}=a,{custom:u,args:h,argsProvider:f}=a;if(s&&l){this.hasI18nContext(s)||this.addI18nContext(s,void 0,u);let m=h??(f?f(this):[]);return this.getI18nService(u).resolveMessage(s,l,...m)}return d}async awaitI18n(a){let{context:s,custom:l}=a;return s&&await this.getI18nService(l).prepareContext(s),this.i18n(a)}customI18n(a,s){if(lp.isI18nKey(a)){let[l,d]=a.split(".");return this.i18n({custom:!0,context:l,key:d,...s})||a}return a}firstUpdated(a){super.firstUpdated(a),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(a){super.update(a),this.updateI18nAttributes((s,l,d)=>a.has(l)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(a){this.updateI18nAttributes((s,l,d)=>{var u;return((u=d?.context)===null||u===void 0?void 0:u.toLowerCase())===a}),this.updateI18nProperties(s=>s.context.toLowerCase()===a),this.requestUpdate()}updateI18nAttributes(a){var s,l;let d=this,u=(h,f,m)=>m?.context&&m.key&&a(h,f,m)?{...m,message:this.i18n({context:m.context,key:m.key,custom:m.custom,...h})}:m;(s=this[uh])===null||s===void 0||s.forEach((h,f)=>d[f]=u(h,f,d[f])),(l=this[fh])===null||l===void 0||l.forEach((h,f)=>{var m;return d[f]=(m=d[f])===null||m===void 0?void 0:m.map(v=>u(h,f,v))})}updateI18nProperties(a){var s;(s=this[ko])===null||s===void 0||s.forEach((l,d)=>{a(l,d)&&(this[d]=this.i18n(l))})}addI18nMessages(a,s,l){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(a,s,l)}addI18nContext(a,s,l){let d=(typeof a=="string"?a:a.name).toLowerCase();l=typeof a=="string"?l:a.custom,this[si].set(d,{isCustomContext:l}),this[Po].has(d)||this[Po].set(d,this.getI18nService(l).subscribe(d,()=>this.onI18nUpdate(d))),this.getI18nService(l).prepareContext(d,s)}hasI18nContext(a){return this[si].has(a.toLowerCase())}connectedCallback(){super.connectedCallback(),this[si].forEach((a,s)=>this.addI18nContext(s,void 0,a.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Po].forEach(a=>a()),this[Po].clear()}}return e=si,r=Po,ph([b({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}),cp=class extends ci(W){},li=class extends ci(St){};var dp=L`
|
|
1675
1675
|
`;var Mo=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},rt=class extends li{constructor(){super(),this.editorMode=!1,this.addStore(N)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":H:M`
|
|
1676
1676
|
<span class="ft-i18n">
|
|
1677
1677
|
${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-reader-metadata",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.47",
|
|
4
4
|
"description": "Metadata for integrated reader",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,16 +19,16 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-chip": "1.3.
|
|
23
|
-
"@fluid-topics/ft-floating-menu": "1.3.
|
|
24
|
-
"@fluid-topics/ft-reader-context": "1.3.
|
|
25
|
-
"@fluid-topics/ft-ripple": "1.3.
|
|
26
|
-
"@fluid-topics/ft-tooltip": "1.3.
|
|
27
|
-
"@fluid-topics/ft-wc-utils": "1.3.
|
|
22
|
+
"@fluid-topics/ft-chip": "1.3.47",
|
|
23
|
+
"@fluid-topics/ft-floating-menu": "1.3.47",
|
|
24
|
+
"@fluid-topics/ft-reader-context": "1.3.47",
|
|
25
|
+
"@fluid-topics/ft-ripple": "1.3.47",
|
|
26
|
+
"@fluid-topics/ft-tooltip": "1.3.47",
|
|
27
|
+
"@fluid-topics/ft-wc-utils": "1.3.47",
|
|
28
28
|
"lit": "3.1.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@fluid-topics/ft-wc-test-utils": "1.3.
|
|
31
|
+
"@fluid-topics/ft-wc-test-utils": "1.3.47"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "16ac56d62f3a88a3b03cbc92bcd04dd91951a015"
|
|
34
34
|
}
|