@fluid-topics/ft-search-selected-facets 1.2.20 → 1.2.21
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.
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
.ft-search-selected-facets--container > * {
|
|
10
10
|
min-width: 0;
|
|
11
11
|
}
|
|
12
|
-
`;var ws=m(R()),As=m(G());var yt=m(R());var No=m(R()),zd={setRequest:(t,e)=>{t.request=e.payload},setRequestQuery:(t,e)=>{t.request.query=e.payload},setRequestContentLocale:(t,e)=>{t.request.contentLocale=e.payload},setPageSize:(t,e)=>{var o;let n=+((o=e.payload)!==null&&o!==void 0?o:20);t.request.paging.perPage=isNaN(n)?20:(0,No.minmax)(1,n,40)},setPageNumber:(t,e)=>{t.request.paging.page=isNaN(e.payload)?1:Math.max(1,e.payload)},setRequestSort:(t,e)=>{t.request.sort=e.payload},setRequestFilters:(t,e)=>{t.request.metadataFilters=e.payload},setRequestFacets:(t,e)=>{t.request.facets=e.payload},setRequestVirtualField:(t,e)=>{t.request.virtualField=e.payload},setRequestScope:(t,e)=>{t.request.scope=e.payload},setOtherQueryParams:(t,e)=>{t.request.otherQueryParams=e.payload},setRequestClusterSortCriterion:(t,e)=>{var o;t.request.clusterSortCriterions=(o=e.payload)!==null&&o!==void 0?o:[]}},la=t=>No.FtReduxStore.get({name:"ft-search-"+t,initialState:{request:{query:"",clusterSortCriterions:[],metadataFilters:[],facets:[],sort:[],paging:{page:1,perPage:20}},liveQuery:"",paging:void 0,facets:void 0,spellcheck:void 0,locales:[],results:void 0,suggestResults:void 0},reducers:zd});var Wd=m(da(),1);var pa;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(pa||(pa={}));var fa;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(fa||(fa={}));var ua;(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"})(ua||(ua={}));var ha;(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"})(ha||(ha={}));var ya;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(ya||(ya={}));var ma;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(ma||(ma={}));var ga;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(ga||(ga={}));var ba;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(ba||(ba={}));var xa;(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"})(xa||(xa={}));var va;(function(t){t.ASC="ASC",t.DESC="DESC"})(va||(va={}));var Sa;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Sa||(Sa={}));var Ar;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(Ar||(Ar={}));var Oa;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"})(Oa||(Oa={}));var Ca;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Ca||(Ca={}));var Ea;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"})(Ea||(Ea={}));var To;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(To||(To={}));var wa;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"})(wa||(wa={}));var Rr;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Rr||(Rr={}));var
|
|
12
|
+
`;var ws=m(R()),As=m(G());var yt=m(R());var No=m(R()),zd={setRequest:(t,e)=>{t.request=e.payload},setRequestQuery:(t,e)=>{t.request.query=e.payload},setRequestContentLocale:(t,e)=>{t.request.contentLocale=e.payload},setPageSize:(t,e)=>{var o;let n=+((o=e.payload)!==null&&o!==void 0?o:20);t.request.paging.perPage=isNaN(n)?20:(0,No.minmax)(1,n,40)},setPageNumber:(t,e)=>{t.request.paging.page=isNaN(e.payload)?1:Math.max(1,e.payload)},setRequestSort:(t,e)=>{t.request.sort=e.payload},setRequestFilters:(t,e)=>{t.request.metadataFilters=e.payload},setRequestFacets:(t,e)=>{t.request.facets=e.payload},setRequestVirtualField:(t,e)=>{t.request.virtualField=e.payload},setRequestScope:(t,e)=>{t.request.scope=e.payload},setOtherQueryParams:(t,e)=>{t.request.otherQueryParams=e.payload},setRequestClusterSortCriterion:(t,e)=>{var o;t.request.clusterSortCriterions=(o=e.payload)!==null&&o!==void 0?o:[]}},la=t=>No.FtReduxStore.get({name:"ft-search-"+t,initialState:{request:{query:"",clusterSortCriterions:[],metadataFilters:[],facets:[],sort:[],paging:{page:1,perPage:20}},liveQuery:"",paging:void 0,facets:void 0,spellcheck:void 0,locales:[],results:void 0,suggestResults:void 0},reducers:zd});var Wd=m(da(),1);var pa;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(pa||(pa={}));var fa;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(fa||(fa={}));var ua;(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"})(ua||(ua={}));var ha;(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"})(ha||(ha={}));var ya;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(ya||(ya={}));var ma;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(ma||(ma={}));var ga;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(ga||(ga={}));var ba;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(ba||(ba={}));var xa;(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"})(xa||(xa={}));var va;(function(t){t.ASC="ASC",t.DESC="DESC"})(va||(va={}));var Sa;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Sa||(Sa={}));var Ar;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(Ar||(Ar={}));var Oa;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"})(Oa||(Oa={}));var Ca;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Ca||(Ca={}));var Ea;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"})(Ea||(Ea={}));var To;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(To||(To={}));var wa;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"})(wa||(wa={}));var Rr;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Rr||(Rr={}));var se;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN",t.DEVELOPER="DEVELOPER"})(se||(se={}));var Aa;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Aa||(Aa={}));var Ra;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Ra||(Ra={}));var Cf={[se.PERSONAL_BOOK_SHARE_USER]:[se.PERSONAL_BOOK_USER],[se.HTML_EXPORT_USER]:[se.PERSONAL_BOOK_USER],[se.PDF_EXPORT_USER]:[se.PERSONAL_BOOK_USER],[se.KHUB_ADMIN]:[se.CONTENT_PUBLISHER],[se.ADMIN]:[se.KHUB_ADMIN,se.USERS_ADMIN,se.PORTAL_ADMIN],[se.DEVELOPER]:[se.BETA_USER,se.DEBUG_USER],[se.GENERATIVE_AI_EXPORT_USER]:[se.GENERATIVE_AI_USER]};var Es=m(R());var Pa=m(_()),ke=m(G()),et=m(R());var Na=m(_());var La=Na.css`
|
|
13
13
|
`;var Po=m(R()),Hd="ft-app-info",Dn=class extends CustomEvent{constructor(e){super("authentication-change",{detail:e})}},Vd={session:(t,e)=>{(0,Po.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>P.dispatchEvent(new Dn(e.payload)),0))}},P=Po.FtReduxStore.get({name:Hd,reducers:Vd,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,metadataConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1}});var $t=m(R());var Bn=m(R());var ir=class t{static get(e){let{baseUrl:o,apiIntegrationIdentifier:n}=P.getState(),i=e??n;if(o&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,i,!0)}static await(e){return new Promise(o=>{let n=t.get(e);if(n)o(n);else{let i=P.subscribe(()=>{n=t.get(e),n&&(i(),o(n))})}})}};var ut=class{constructor(e=!0,o){var n;this.overrideApi=o;let i=this.constructor;i.commonCache=(n=i.commonCache)!==null&&n!==void 0?n:new Bn.CacheRegistry,this.cache=e?i.commonCache:new Bn.CacheRegistry}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:ir.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):ir.await()}clearCache(){this.cache.clearAll()}};var Ia,Gd=Symbol("clearAfterUnitTest"),ko=class extends ut{constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Ia]=()=>{this.defaultMessages={},this.cache=new $t.CacheRegistry,this.listeners={}},this.currentUiLocale=P.getState().uiLocale,P.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=P.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let o=e.name.toLowerCase();this.cache.setFinal(o,e),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,o){var n;if(e=e.toLowerCase(),Object.keys(o).length>0){let i={...(n=this.defaultMessages[e])!==null&&n!==void 0?n:{},...o};(0,$t.deepEqual)(this.defaultMessages[e],i)||(this.defaultMessages[e]=i,await this.notify(e))}await this.fetchContext(e)}resolveContext(e){var o,n;return this.fetchContext(e),(n=(o=this.cache.getNow(e))===null||o===void 0?void 0:o.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(e,o){let n=e.toLowerCase();return this.resolveContext(n)[o]}resolveMessage(e,o,...n){var i;let a=e.toLowerCase(),s=this.resolveContext(a);return new $t.ParametrizedLabelResolver((i=this.defaultMessages[a])!==null&&i!==void 0?i:{},s).resolve(o,...n)}async fetchContext(e){if(!this.cache.has(e))try{await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),await this.notify(e)}catch(o){console.error(o)}}subscribe(e,o){var n;return e=e.toLowerCase(),this.listeners[e]=(n=this.listeners[e])!==null&&n!==void 0?n:new Set,this.listeners[e].add(o),()=>{var i;return(i=this.listeners[e])===null||i===void 0?void 0:i.delete(o)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map(e=>this.notify(e)))}async notify(e){this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(o=>(0,$t.delay)(0).then(()=>o()).catch(()=>null)))}};Ia=Gd;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends ko{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends ko{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var ar=window.FluidTopicsI18nService,Ta=window.FluidTopicsCustomI18nService;var Ce=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},oe=class extends et.FtLitElement{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.apiProvider=()=>ir.get(),this.messageContexts=[],this.cache=new et.CacheRegistry,this.cleanSessionDebouncer=new et.Debouncer}render(){return Pa.html`
|
|
14
14
|
<slot></slot>
|
|
15
|
-
`}update(e){var o,n,i,a,s;super.update(e),e.has("baseUrl")&&(P.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&P.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("uiLocale")&&P.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&P.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&P.actions.noCustom(this.noCustom),e.has("editorMode")&&P.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&P.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&P.actions.session(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(c=>ar.addContext(c)),e.has("openExternalDocumentInNewTab")&&P.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&P.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&P.actions.forcedOffline(this.forcedOffline),e.has("localesConfiguration")&&(P.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),P.actions.availableUiLocales((i=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&i!==void 0?i:[]),P.actions.searchInAllLanguagesAllowed((s=(a=this.localesConfiguration)===null||a===void 0?void 0:a.allLanguagesAllowed)!==null&&s!==void 0?s:!1)),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration())}async updateSession(){this.session=await this.cache.get("session",async()=>{let 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())}};oe.elementDefinitions={};oe.styles=La;Ce([(0,ke.property)()],oe.prototype,"baseUrl",void 0);Ce([(0,ke.property)()],oe.prototype,"apiIntegrationIdentifier",void 0);Ce([(0,ke.property)()],oe.prototype,"uiLocale",void 0);Ce([(0,et.jsonProperty)(null)],oe.prototype,"availableUiLocales",void 0);Ce([(0,et.jsonProperty)(null)],oe.prototype,"metadataConfiguration",void 0);Ce([(0,ke.property)({type:Boolean})],oe.prototype,"editorMode",void 0);Ce([(0,ke.property)({type:Boolean})],oe.prototype,"noCustom",void 0);Ce([(0,ke.property)({type:Boolean})],oe.prototype,"openExternalDocumentInNewTab",void 0);Ce([(0,ke.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],oe.prototype,"noCustomComponent",void 0);Ce([(0,ke.property)({type:Boolean})],oe.prototype,"withManualResources",void 0);Ce([(0,ke.property)({type:Boolean})],oe.prototype,"navigatorOnline",void 0);Ce([(0,ke.property)({type:Boolean})],oe.prototype,"forcedOffline",void 0);Ce([(0,ke.property)({type:Object})],oe.prototype,"apiProvider",void 0);Ce([(0,et.jsonProperty)([])],oe.prototype,"messageContexts",void 0);Ce([(0,et.jsonProperty)(void 0)],oe.prototype,"session",void 0);Ce([(0,ke.state)()],oe.prototype,"localesConfiguration",void 0);var Pp=m(G());function jd(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var o,n,i;if(Array.isArray(t)){if(o=t.length,o!=e.length)return!1;for(n=o;n--!==0;)if(!_o(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(!_o(n[1],e.get(n[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if(i=Object.keys(t),o=i.length,o!==Object.keys(e).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(e,i[n]))return!1;for(n=o;n--!==0;){var a=i[n];if(!_o(t[a],e[a]))return!1}return!0}return t!==t&&e!==e}function _o(t,e){try{return jd(t,e)}catch{return!1}}function Fn(t,e){return!_o(t,e)}var Kd=m(G(),1);var $o=class{constructor(){this.queue=[]}add(e,o=!1){o&&(this.queue=this.queue.filter(n=>n.type!==e.type)),this.queue.push(e)}consume(e){let o=this.queue.find(n=>n.type===e);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}};var Qr=m(G(),1);var ka=m(G(),1);function _a(t,e){let o=()=>JSON.parse(JSON.stringify(t));return(0,ka.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:Fn,...e??{}})}var Do=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,o){return this.callbacks=[e],this.debounce(o)}queue(e,o){return this.callbacks.push(e),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((o,n)=>{this.resolvePromise=o,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,o;let n=[...this.callbacks];this.callbacks=[];let i=(e=this.rejectPromise)!==null&&e!==void 0?e:()=>null,a=(o=this.resolvePromise)!==null&&o!==void 0?o:()=>null;this.clearPromise();for(let s of n)try{await s()}catch(c){i(c);return}a(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Da=m(_(),1);var Bo=window,Zd=Bo.ShadowRoot&&(Bo.ShadyCSS===void 0||Bo.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ru=Symbol();var $a=(t,e)=>{Zd?t.adoptedStyleSheets=e.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet):e.forEach(o=>{let n=document.createElement("style"),i=Bo.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=o.cssText,t.appendChild(n)})};var Fo=class extends Da.LitElement{createRenderRoot(){let e=this.constructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,Object.entries(e.elementDefinitions).forEach(([i,a])=>e.registry.define(i,a)));let o={...e.shadowRootOptions,customElements:e.registry},n=this.renderOptions.creationScope=this.attachShadow(o);return $a(n,e.elementStyles),n}};var Mo=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},Ua,Ba=Symbol("constructorPrototype"),Fa=Symbol("constructorName"),za=Symbol("exportpartsDebouncer"),Ma=Symbol("dynamicDependenciesLoaded"),Dt=class extends Fo{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Ua]=new Do(5),this[Fa]=this.constructor.name,this[Ba]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Fa]&&Object.setPrototypeOf(this,this[Ba])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(o){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",o)}let e=this.constructor;e[Ma]||(e[Ma]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate()})}contentAvailableCallback(e){}applyCustomStylesheet(e){var o,n,i;if(((n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((i=this.customStylesheet)!==null&&i!==void 0?i:"")}catch(a){console.error(a,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let a=document.createElement("style");a.classList.add("ft-lit-element--custom-stylesheet"),a.innerHTML=this.customStylesheet,this.shadowRoot.append(a)}}scheduleExportpartsUpdate(){var e,o,n;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(n=(o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)!==null&&n!==void 0&&n)&&this[za].run(()=>{var i,a;!((i=this.exportpartsPrefix)===null||i===void 0)&&i.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((a=this.exportpartsPrefixes)===null||a===void 0?void 0:a.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(e){var o,n,i,a,s,c;let p=b=>b!=null&&b.trim().length>0,f=e.filter(p).map(b=>b.trim());if(f.length===0){this.removeAttribute("exportparts");return}let h=new Set;for(let b of(n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let S=(a=(i=b.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&a!==void 0?a:[],v=(c=(s=b.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(O=>O.split(":")[1]))!==null&&c!==void 0?c:[];new Array(...S,...v).filter(p).map(O=>O.trim()).forEach(O=>h.add(O))}if(h.size===0){this.removeAttribute("exportparts");return}let g=[...h.values()].flatMap(b=>f.map(S=>`${b}:${S}--${b}`));this.setAttribute("exportparts",[...this.part,...g].join(", "))}};Ua=za;Mo([(0,Qr.property)()],Dt.prototype,"exportpartsPrefix",void 0);Mo([_a([])],Dt.prototype,"exportpartsPrefixes",void 0);Mo([(0,Qr.property)()],Dt.prototype,"customStylesheet",void 0);Mo([(0,Qr.state)()],Dt.prototype,"useAdoptedStyleSheets",void 0);function Jr(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Wa,Ha,Va,eo=Symbol("internalReduxEventsUnsubscribers"),Bt=Symbol("internalStoresUnsubscribers"),sr=Symbol("internalStores"),to=class extends Dt{constructor(){super(...arguments),this[Wa]=new Map,this[Ha]=new Map,this[Va]=new Map}get reduxConstructor(){return this.constructor}update(e){super.update(e),[...this.reduxConstructor.reduxReactiveProperties].some(o=>e.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[sr].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[sr].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[sr].get(e)}addStore(e,o){var n;o=(n=o??(Jr(e)?e.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(o),this[sr].set(o,e),this.subscribeToStore(o,e),this.updateFromStores()}removeStore(e){let o=typeof e=="string"?e:e.name;this.unsubscribeFromStore(o),this[sr].delete(o)}setupStores(){this.unsubscribeFromStores(),this[sr].forEach((e,o)=>this.subscribeToStore(o,e)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((e,o)=>{let n=this.constructor.getPropertyOptions(o);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:o)){let i=this.getStore(e.store);i&&(e.store?this[Bt].has(e.store):this[Bt].size>0)&&(this[o]=e.selector(i.getState(),this))}})}subscribeToStore(e,o){var n;this[Bt].set(e,o.subscribe(()=>this.updateFromStores())),this[eo].set(e,[]),Jr(o)&&o.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((i,a)=>{if(typeof this[a]=="function"&&(!i.store||o.name===i.store)){let s=c=>this[a](c);o.addEventListener(i.eventName,s),this[eo].get(e).push(()=>o.removeEventListener(i.eventName,s))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[Bt].forEach((e,o)=>this.unsubscribeFromStore(o))}unsubscribeFromStore(e){var o;this[Bt].has(e)&&this[Bt].get(e)(),this[Bt].delete(e),(o=this[eo].get(e))===null||o===void 0||o.forEach(n=>n()),this[eo].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Wa=Bt,Ha=sr,Va=eo;to.reduxProperties=new Map;to.reduxReactiveProperties=new Set;to.reduxEventListeners=new Map;function Ze(t){for(var e=arguments.length,o=Array(e>1?e-1:0),n=1;n<e;n++)o[n-1]=arguments[n];if(0)var i,a;throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function St(t){return!!t&&!!t[X]}function tt(t){var e;return!!t&&(function(o){if(!o||typeof o!="object")return!1;var n=Object.getPrototypeOf(o);if(n===null)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===rp}(t)||Array.isArray(t)||!!t[Xa]||!!(!((e=t.constructor)===null||e===void 0)&&e[Xa])||Kn(t)||Zn(t))}function lr(t,e,o){o===void 0&&(o=!1),Ir(t)===0?(o?Object.keys:Lr)(t).forEach(function(n){o&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,i){return e(i,n,t)})}function Ir(t){var e=t[X];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Kn(t)?2:Zn(t)?3:0}function Nr(t,e){return Ir(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function qd(t,e){return Ir(t)===2?t.get(e):t[e]}function Qa(t,e,o){var n=Ir(t);n===2?t.set(e,o):n===3?t.add(o):t[e]=o}function Ja(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function Kn(t){return ep&&t instanceof Map}function Zn(t){return tp&&t instanceof Set}function Ft(t){return t.o||t.t}function qn(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=rs(t);delete e[X];for(var o=Lr(e),n=0;n<o.length;n++){var i=o[n],a=e[i];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:t[i]})}return Object.create(Object.getPrototypeOf(t),e)}function Yn(t,e){return e===void 0&&(e=!1),Xn(t)||St(t)||!tt(t)||(Ir(t)>1&&(t.set=t.add=t.clear=t.delete=Yd),Object.freeze(t),e&&lr(t,function(o,n){return Yn(n,!0)},!0)),t}function Yd(){Ze(2)}function Xn(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function ht(t){var e=jn[t];return e||Ze(18,t),e}function Xd(t,e){jn[t]||(jn[t]=e)}function Hn(){return oo}function Mn(t,e){e&&(ht("Patches"),t.u=[],t.s=[],t.v=e)}function Uo(t){Vn(t),t.p.forEach(Qd),t.p=null}function Vn(t){t===oo&&(oo=t.l)}function Ga(t){return oo={p:[],l:oo,h:t,m:!0,_:0}}function Qd(t){var e=t[X];e.i===0||e.i===1?e.j():e.g=!0}function Un(t,e){e._=e.p.length;var o=e.p[0],n=t!==void 0&&t!==o;return e.h.O||ht("ES5").S(e,t,n),n?(o[X].P&&(Uo(e),Ze(4)),tt(t)&&(t=zo(e,t),e.l||Wo(e,t)),e.u&&ht("Patches").M(o[X].t,t,e.u,e.s)):t=zo(e,o,[]),Uo(e),e.u&&e.v(e.u,e.s),t!==ts?t:void 0}function zo(t,e,o){if(Xn(e))return e;var n=e[X];if(!n)return lr(e,function(c,p){return ja(t,n,e,c,p,o)},!0),e;if(n.A!==t)return e;if(!n.P)return Wo(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=qn(n.k):n.o,a=i,s=!1;n.i===3&&(a=new Set(i),i.clear(),s=!0),lr(a,function(c,p){return ja(t,n,i,c,p,o,s)}),Wo(t,i,!1),o&&t.u&&ht("Patches").N(n,o,t.u,t.s)}return n.o}function ja(t,e,o,n,i,a,s){if(St(i)){var c=zo(t,i,a&&e&&e.i!==3&&!Nr(e.R,n)?a.concat(n):void 0);if(Qa(o,n,c),!St(c))return;t.m=!1}else s&&o.add(i);if(tt(i)&&!Xn(i)){if(!t.h.D&&t._<1)return;zo(t,i),e&&e.A.l||Wo(t,i)}}function Wo(t,e,o){o===void 0&&(o=!1),!t.l&&t.h.D&&t.m&&Yn(e,o)}function zn(t,e){var o=t[X];return(o?Ft(o):t)[e]}function Ka(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 Wn(t){t.o||(t.o=qn(t.t))}function Gn(t,e,o){var n=Kn(e)?ht("MapSet").F(e,o):Zn(e)?ht("MapSet").T(e,o):t.O?function(i,a){var s=Array.isArray(i),c={i:s?1:0,A:a?a.A:Hn(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},p=c,f=no;s&&(p=[c],f=ro);var h=Proxy.revocable(p,f),g=h.revoke,b=h.proxy;return c.k=b,c.j=g,b}(e,o):ht("ES5").J(e,o);return(o?o.A:Hn()).p.push(n),n}function Jd(t){return St(t)||Ze(22,t),function e(o){if(!tt(o))return o;var n,i=o[X],a=Ir(o);if(i){if(!i.P&&(i.i<4||!ht("ES5").K(i)))return i.t;i.I=!0,n=Za(o,a),i.I=!1}else n=Za(o,a);return lr(n,function(s,c){i&&qd(i.t,s)===c||Qa(n,s,e(c))}),a===3?new Set(n):n}(t)}function Za(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return qn(t)}function es(){function t(s,c){var p=a[s];return p?p.enumerable=c:a[s]=p={configurable:!0,enumerable:c,get:function(){var f=this[X];return no.get(f,s)},set:function(f){var h=this[X];no.set(h,s,f)}},p}function e(s){for(var c=s.length-1;c>=0;c--){var p=s[c][X];if(!p.P)switch(p.i){case 5:n(p)&&Mt(p);break;case 4:o(p)&&Mt(p)}}}function o(s){for(var c=s.t,p=s.k,f=Lr(p),h=f.length-1;h>=0;h--){var g=f[h];if(g!==X){var b=c[g];if(b===void 0&&!Nr(c,g))return!0;var S=p[g],v=S&&S[X];if(v?v.t!==b:!Ja(S,b))return!0}}var O=!!c[X];return f.length!==Lr(c).length+(O?0:1)}function n(s){var c=s.k;if(c.length!==s.t.length)return!0;var p=Object.getOwnPropertyDescriptor(c,c.length-1);if(p&&!p.get)return!0;for(var f=0;f<c.length;f++)if(!c.hasOwnProperty(f))return!0;return!1}function i(s){s.g&&Ze(3,JSON.stringify(Ft(s)))}var a={};Xd("ES5",{J:function(s,c){var p=Array.isArray(s),f=function(g,b){if(g){for(var S=Array(b.length),v=0;v<b.length;v++)Object.defineProperty(S,""+v,t(v,!0));return S}var O=rs(b);delete O[X];for(var T=Lr(O),L=0;L<T.length;L++){var I=T[L];O[I]=t(I,g||!!O[I].enumerable)}return Object.create(Object.getPrototypeOf(b),O)}(p,s),h={i:p?5:4,A:c?c.A:Hn(),P:!1,I:!1,R:{},l:c,t:s,k:f,o:null,g:!1,C:!1};return Object.defineProperty(f,X,{value:h,writable:!0}),f},S:function(s,c,p){p?St(c)&&c[X].A===s&&e(s.p):(s.u&&function f(h){if(h&&typeof h=="object"){var g=h[X];if(g){var b=g.t,S=g.k,v=g.R,O=g.i;if(O===4)lr(S,function(F){F!==X&&(b[F]!==void 0||Nr(b,F)?v[F]||f(S[F]):(v[F]=!0,Mt(g)))}),lr(b,function(F){S[F]!==void 0||Nr(S,F)||(v[F]=!1,Mt(g))});else if(O===5){if(n(g)&&(Mt(g),v.length=!0),S.length<b.length)for(var T=S.length;T<b.length;T++)v[T]=!1;else for(var L=b.length;L<S.length;L++)v[L]=!0;for(var I=Math.min(S.length,b.length),$=0;$<I;$++)S.hasOwnProperty($)||(v[$]=!0),v[$]===void 0&&f(S[$])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?o(s):n(s)}})}var qa,oo,Qn=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",ep=typeof Map<"u",tp=typeof Set<"u",Ya=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",ts=Qn?Symbol.for("immer-nothing"):((qa={})["immer-nothing"]=!0,qa),Xa=Qn?Symbol.for("immer-draftable"):"__$immer_draftable",X=Qn?Symbol.for("immer-state"):"__$immer_state";var rp=""+Object.prototype.constructor,Lr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,rs=Object.getOwnPropertyDescriptors||function(t){var e={};return Lr(t).forEach(function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)}),e},jn={},no={get:function(t,e){if(e===X)return t;var o=Ft(t);if(!Nr(o,e))return function(i,a,s){var c,p=Ka(a,s);return p?"value"in p?p.value:(c=p.get)===null||c===void 0?void 0:c.call(i.k):void 0}(t,o,e);var n=o[e];return t.I||!tt(n)?n:n===zn(t.t,e)?(Wn(t),t.o[e]=Gn(t.A.h,n,t)):n},has:function(t,e){return e in Ft(t)},ownKeys:function(t){return Reflect.ownKeys(Ft(t))},set:function(t,e,o){var n=Ka(Ft(t),e);if(n?.set)return n.set.call(t.k,o),!0;if(!t.P){var i=zn(Ft(t),e),a=i?.[X];if(a&&a.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(Ja(o,i)&&(o!==void 0||Nr(t.t,e)))return!0;Wn(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 zn(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,Wn(t),Mt(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=Ft(t),n=Reflect.getOwnPropertyDescriptor(o,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:o[e]}},defineProperty:function(){Ze(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Ze(12)}},ro={};lr(no,function(t,e){ro[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),ro.deleteProperty=function(t,e){return ro.set.call(this,t,e,void 0)},ro.set=function(t,e,o){return no.set.call(this,t[0],e,o,t[0])};var op=function(){function t(o){var n=this;this.O=Ya,this.D=!0,this.produce=function(i,a,s){if(typeof i=="function"&&typeof a!="function"){var c=a;a=i;var p=n;return function(O){var T=this;O===void 0&&(O=c);for(var L=arguments.length,I=Array(L>1?L-1:0),$=1;$<L;$++)I[$-1]=arguments[$];return p.produce(O,function(F){var U;return(U=a).call.apply(U,[T,F].concat(I))})}}var f;if(typeof a!="function"&&Ze(6),s!==void 0&&typeof s!="function"&&Ze(7),tt(i)){var h=Ga(n),g=Gn(n,i,void 0),b=!0;try{f=a(g),b=!1}finally{b?Uo(h):Vn(h)}return typeof Promise<"u"&&f instanceof Promise?f.then(function(O){return Mn(h,s),Un(O,h)},function(O){throw Uo(h),O}):(Mn(h,s),Un(f,h))}if(!i||typeof i!="object"){if((f=a(i))===void 0&&(f=i),f===ts&&(f=void 0),n.D&&Yn(f,!0),s){var S=[],v=[];ht("Patches").M(i,f,S,v),s(S,v)}return f}Ze(21,i)},this.produceWithPatches=function(i,a){if(typeof i=="function")return function(f){for(var h=arguments.length,g=Array(h>1?h-1:0),b=1;b<h;b++)g[b-1]=arguments[b];return n.produceWithPatches(f,function(S){return i.apply(void 0,[S].concat(g))})};var s,c,p=n.produce(i,a,function(f,h){s=f,c=h});return typeof Promise<"u"&&p instanceof Promise?p.then(function(f){return[f,s,c]}):[p,s,c]},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){tt(o)||Ze(8),St(o)&&(o=Jd(o));var n=Ga(this),i=Gn(this,o,void 0);return i[X].C=!0,Vn(n),i},e.finishDraft=function(o,n){var i=o&&o[X],a=i.A;return Mn(a,n),Un(void 0,a)},e.setAutoFreeze=function(o){this.D=o},e.setUseProxies=function(o){o&&!Ya&&Ze(20),this.O=o},e.applyPatches=function(o,n){var i;for(i=n.length-1;i>=0;i--){var a=n[i];if(a.path.length===0&&a.op==="replace"){o=a.value;break}}i>-1&&(n=n.slice(i+1));var s=ht("Patches").$;return St(o)?s(o,n):this.produce(o,function(c){return s(c,n)})},t}(),ze=new op,np=ze.produce,hu=ze.produceWithPatches.bind(ze),yu=ze.setAutoFreeze.bind(ze),mu=ze.setUseProxies.bind(ze),gu=ze.applyPatches.bind(ze),bu=ze.createDraft.bind(ze),xu=ze.finishDraft.bind(ze),Ho=np;function Ut(t){"@babel/helpers - typeof";return Ut=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},Ut(t)}function Jn(t,e){if(Ut(t)!=="object"||t===null)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var n=o.call(t,e||"default");if(Ut(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function ei(t){var e=Jn(t,"string");return Ut(e)==="symbol"?e:String(e)}function ti(t,e,o){return e=ei(e),e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function os(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),o.push.apply(o,n)}return o}function Vo(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?os(Object(o),!0).forEach(function(n){ti(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):os(Object(o)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))})}return t}function Ee(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 ns=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),ri=function(){return Math.random().toString(36).substring(7).split("").join(".")},Go={INIT:"@@redux/INIT"+ri(),REPLACE:"@@redux/REPLACE"+ri(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ri()}};function ip(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 oi(t,e,o){var n;if(typeof e=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(Ee(0));if(typeof e=="function"&&typeof o>"u"&&(o=e,e=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(Ee(1));return o(oi)(t,e)}if(typeof t!="function")throw new Error(Ee(2));var i=t,a=e,s=[],c=s,p=!1;function f(){c===s&&(c=s.slice())}function h(){if(p)throw new Error(Ee(3));return a}function g(O){if(typeof O!="function")throw new Error(Ee(4));if(p)throw new Error(Ee(5));var T=!0;return f(),c.push(O),function(){if(T){if(p)throw new Error(Ee(6));T=!1,f();var I=c.indexOf(O);c.splice(I,1),s=null}}}function b(O){if(!ip(O))throw new Error(Ee(7));if(typeof O.type>"u")throw new Error(Ee(8));if(p)throw new Error(Ee(9));try{p=!0,a=i(a,O)}finally{p=!1}for(var T=s=c,L=0;L<T.length;L++){var I=T[L];I()}return O}function S(O){if(typeof O!="function")throw new Error(Ee(10));i=O,b({type:Go.REPLACE})}function v(){var O,T=g;return O={subscribe:function(I){if(typeof I!="object"||I===null)throw new Error(Ee(11));function $(){I.next&&I.next(h())}$();var F=T($);return{unsubscribe:F}}},O[ns]=function(){return this},O}return b({type:Go.INIT}),n={dispatch:b,subscribe:g,getState:h,replaceReducer:S},n[ns]=v,n}function ap(t){Object.keys(t).forEach(function(e){var o=t[e],n=o(void 0,{type:Go.INIT});if(typeof n>"u")throw new Error(Ee(12));if(typeof o(void 0,{type:Go.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Ee(13))})}function is(t){for(var e=Object.keys(t),o={},n=0;n<e.length;n++){var i=e[n];typeof t[i]=="function"&&(o[i]=t[i])}var a=Object.keys(o),s,c;try{ap(o)}catch(p){c=p}return function(f,h){if(f===void 0&&(f={}),c)throw c;if(0)var g;for(var b=!1,S={},v=0;v<a.length;v++){var O=a[v],T=o[O],L=f[O],I=T(L,h);if(typeof I>"u"){var $=h&&h.type;throw new Error(Ee(14))}S[O]=I,b=b||I!==L}return b=b||a.length!==Object.keys(f).length,b?S:f}}function Tr(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function as(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(n){return function(){var i=n.apply(void 0,arguments),a=function(){throw new Error(Ee(15))},s={getState:i.getState,dispatch:function(){return a.apply(void 0,arguments)}},c=e.map(function(p){return p(s)});return a=Tr.apply(void 0,c)(i.dispatch),Vo(Vo({},i),{},{dispatch:a})}}}function ss(t){var e=function(n){var i=n.dispatch,a=n.getState;return function(s){return function(c){return typeof c=="function"?c(i,a,t):s(c)}}};return e}var ls=ss();ls.withExtraArgument=ss;var ni=ls;var us=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},t(e,o)};return function(e,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");t(e,o);function n(){this.constructor=e}e.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),sp=function(t,e){var o={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(f){return function(h){return p([f,h])}}function p(f){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,i&&(a=f[0]&2?i.return:f[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,f[1])).done)return a;switch(i=0,a&&(f=[f[0]&2,a.value]),f[0]){case 0:case 1:a=f;break;case 4:return o.label++,{value:f[1],done:!1};case 5:o.label++,i=f[1],f=[0];continue;case 7:f=o.ops.pop(),o.trys.pop();continue;default:if(a=o.trys,!(a=a.length>0&&a[a.length-1])&&(f[0]===6||f[0]===2)){o=0;continue}if(f[0]===3&&(!a||f[1]>a[0]&&f[1]<a[3])){o.label=f[1];break}if(f[0]===6&&o.label<a[1]){o.label=a[1],a=f;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(f);break}a[2]&&o.ops.pop(),o.trys.pop();continue}f=e.call(t,o)}catch(h){f=[6,h],i=0}finally{n=a=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},Pr=function(t,e){for(var o=0,n=e.length,i=t.length;o<n;o++,i++)t[i]=e[o];return t},lp=Object.defineProperty,cp=Object.defineProperties,dp=Object.getOwnPropertyDescriptors,cs=Object.getOwnPropertySymbols,pp=Object.prototype.hasOwnProperty,fp=Object.prototype.propertyIsEnumerable,ds=function(t,e,o){return e in t?lp(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},zt=function(t,e){for(var o in e||(e={}))pp.call(e,o)&&ds(t,o,e[o]);if(cs)for(var n=0,i=cs(e);n<i.length;n++){var o=i[n];fp.call(e,o)&&ds(t,o,e[o])}return t},ii=function(t,e){return cp(t,dp(e))},up=function(t,e,o){return new Promise(function(n,i){var a=function(p){try{c(o.next(p))}catch(f){i(f)}},s=function(p){try{c(o.throw(p))}catch(f){i(f)}},c=function(p){return p.done?n(p.value):Promise.resolve(p.value).then(a,s)};c((o=o.apply(t,e)).next())})};var hp=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Tr:Tr.apply(null,arguments)},Bu=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function yp(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 mp=function(t){us(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var i=t.apply(this,o)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,Pr([void 0],o[0].concat(this)))):new(e.bind.apply(e,Pr([void 0],o.concat(this))))},e}(Array),gp=function(t){us(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var i=t.apply(this,o)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,Pr([void 0],o[0].concat(this)))):new(e.bind.apply(e,Pr([void 0],o.concat(this))))},e}(Array);function li(t){return tt(t)?Ho(t,function(){}):t}function bp(t){return typeof t=="boolean"}function xp(){return function(e){return vp(e)}}function vp(t){t===void 0&&(t={});var e=t.thunk,o=e===void 0?!0:e,n=t.immutableCheck,i=n===void 0?!0:n,a=t.serializableCheck,s=a===void 0?!0:a,c=new mp;if(o&&(bp(o)?c.push(ni):c.push(ni.withExtraArgument(o.extraArgument))),0){if(i)var p;if(s)var f}return c}var ai=!0;function hs(t){var e=xp(),o=t||{},n=o.reducer,i=n===void 0?void 0:n,a=o.middleware,s=a===void 0?e():a,c=o.devTools,p=c===void 0?!0:c,f=o.preloadedState,h=f===void 0?void 0:f,g=o.enhancers,b=g===void 0?void 0:g,S;if(typeof i=="function")S=i;else if(yp(i))S=is(i);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var v=s;if(typeof v=="function"&&(v=v(e),!ai&&!Array.isArray(v)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!ai&&v.some(function(F){return typeof F!="function"}))throw new Error("each middleware provided to configureStore must be a function");var O=as.apply(void 0,v),T=Tr;p&&(T=hp(zt({trace:!ai},typeof p=="object"&&p)));var L=new gp(O),I=L;Array.isArray(b)?I=Pr([O],b):typeof b=="function"&&(I=b(L));var $=T.apply(void 0,I);return oi(S,h,$)}function Wt(t,e){function o(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(e){var a=e.apply(void 0,n);if(!a)throw new Error("prepareAction did not return an object");return zt(zt({type:t,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:t,payload:n[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(n){return n.type===t},o}function ys(t){var e={},o=[],n,i={addCase:function(a,s){var c=typeof a=="string"?a:a.type;if(c in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[c]=s,i},addMatcher:function(a,s){return o.push({matcher:a,reducer:s}),i},addDefaultCase:function(a){return n=a,i}};return t(i),[e,o,n]}function Sp(t){return typeof t=="function"}function Op(t,e,o,n){o===void 0&&(o=[]);var i=typeof e=="function"?ys(e):[e,o,n],a=i[0],s=i[1],c=i[2],p;if(Sp(t))p=function(){return li(t())};else{var f=li(t);p=function(){return f}}function h(g,b){g===void 0&&(g=p());var S=Pr([a[b.type]],s.filter(function(v){var O=v.matcher;return O(b)}).map(function(v){var O=v.reducer;return O}));return S.filter(function(v){return!!v}).length===0&&(S=[c]),S.reduce(function(v,O){if(O)if(St(v)){var T=v,L=O(T,b);return L===void 0?v:L}else{if(tt(v))return Ho(v,function(I){return O(I,b)});var L=O(v,b);if(L===void 0){if(v===null)return v;throw Error("A case reducer on a non-draftable value must not return undefined")}return L}return v},g)}return h.getInitialState=p,h}function Cp(t,e){return t+"/"+e}function ms(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:li(t.initialState),n=t.reducers||{},i=Object.keys(n),a={},s={},c={};i.forEach(function(h){var g=n[h],b=Cp(e,h),S,v;"reducer"in g?(S=g.reducer,v=g.prepare):S=g,a[h]=S,s[b]=S,c[h]=v?Wt(b,v):Wt(b)});function p(){var h=typeof t.extraReducers=="function"?ys(t.extraReducers):[t.extraReducers],g=h[0],b=g===void 0?{}:g,S=h[1],v=S===void 0?[]:S,O=h[2],T=O===void 0?void 0:O,L=zt(zt({},b),s);return Op(o,function(I){for(var $ in L)I.addCase($,L[$]);for(var F=0,U=v;F<U.length;F++){var Pe=U[F];I.addMatcher(Pe.matcher,Pe.reducer)}T&&I.addDefaultCase(T)})}var f;return{name:e,reducer:function(h,g){return f||(f=p()),f(h,g)},actions:c,caseReducers:a,getInitialState:function(){return f||(f=p()),f.getInitialState()}}}var Ep="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",wp=function(t){t===void 0&&(t=21);for(var e="",o=t;o--;)e+=Ep[Math.random()*64|0];return e},Ap=["name","message","stack","code"],si=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),ps=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),Rp=function(t){if(typeof t=="object"&&t!==null){for(var e={},o=0,n=Ap;o<n.length;o++){var i=n[o];typeof t[i]=="string"&&(e[i]=t[i])}return e}return{message:String(t)}},zu=function(){function t(e,o,n){var i=Wt(e+"/fulfilled",function(h,g,b,S){return{payload:h,meta:ii(zt({},S||{}),{arg:b,requestId:g,requestStatus:"fulfilled"})}}),a=Wt(e+"/pending",function(h,g,b){return{payload:void 0,meta:ii(zt({},b||{}),{arg:g,requestId:h,requestStatus:"pending"})}}),s=Wt(e+"/rejected",function(h,g,b,S,v){return{payload:S,error:(n&&n.serializeError||Rp)(h||"Rejected"),meta:ii(zt({},v||{}),{arg:b,requestId:g,rejectedWithValue:!!S,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),c=!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 f(h){return function(g,b,S){var v=n?.idGenerator?n.idGenerator(h):wp(),O=new p,T,L=!1;function I(F){T=F,O.abort()}var $=function(){return up(this,null,function(){var F,U,Pe,pt,Re,ft,be;return sp(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),pt=(F=n?.condition)==null?void 0:F.call(n,h,{getState:b,extra:S}),Lp(pt)?[4,pt]:[3,2];case 1:pt=y.sent(),y.label=2;case 2:if(pt===!1||O.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return L=!0,Re=new Promise(function(x,k){return O.signal.addEventListener("abort",function(){return k({name:"AbortError",message:T||"Aborted"})})}),g(a(v,h,(U=n?.getPendingMeta)==null?void 0:U.call(n,{requestId:v,arg:h},{getState:b,extra:S}))),[4,Promise.race([Re,Promise.resolve(o(h,{dispatch:g,getState:b,extra:S,requestId:v,signal:O.signal,abort:I,rejectWithValue:function(x,k){return new si(x,k)},fulfillWithValue:function(x,k){return new ps(x,k)}})).then(function(x){if(x instanceof si)throw x;return x instanceof ps?i(x.payload,v,h,x.meta):i(x,v,h)})])];case 3:return Pe=y.sent(),[3,5];case 4:return ft=y.sent(),Pe=ft instanceof si?s(null,v,h,ft.payload,ft.meta):s(ft,v,h),[3,5];case 5:return be=n&&!n.dispatchConditionRejection&&s.match(Pe)&&Pe.meta.condition,be||g(Pe),[2,Pe]}})})}();return Object.assign($,{abort:I,requestId:v,arg:h,unwrap:function(){return $.then(Np)}})}}return Object.assign(f,{pending:a,rejected:s,fulfilled:i,typePrefix:e})}return t.withTypes=function(){return t},t}();function Np(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Lp(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var gs="listener",bs="completed",xs="cancelled",Wu="task-"+xs,Hu="task-"+bs,Vu=gs+"-"+xs,Gu=gs+"-"+bs;var ci="listenerMiddleware";var ju=Wt(ci+"/add"),Ku=Wt(ci+"/removeAll"),Zu=Wt(ci+"/remove");var fs,qu=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(fs||(fs=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},Ip=function(t){return function(e){setTimeout(e,t)}},Yu=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Ip(10);es();function Tp(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(o,n,i){this.eventBus.addEventListener(o,n,i)}dispatchEvent(o){return this.eventBus.dispatchEvent(o)}removeEventListener(o,n,i){this.eventBus.removeEventListener(o,n,i)}}}var jo=class extends Tp(Object){};window.ftReduxStores||(window.ftReduxStores={});var vs=class t extends jo{static get(e){var o;let n=typeof e=="string"?e:e.name,i=typeof e=="string"?void 0:e,a=window.ftReduxStores[n];if(Jr(a))return a;if(i==null)return;let s=ms({...i,reducers:(o=i.reducers)!==null&&o!==void 0?o:{}}),c=hs({reducer:(p,f)=>f.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof f.type=="string"&&f.type.startsWith("DEFAULT_VALUE_SETTER__")?{...p,...f.overwrites}:s.reducer(p,f)});return window.ftReduxStores[i.name]=new t(s,c)}constructor(e,o){super(),this.reduxSlice=e,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new $o,this.actions=new Proxy(this.reduxSlice.actions,{get:(n,i,a)=>{let s=i,c=n[s];return c?(...p)=>{let f=c(...p);return this.reduxStore.dispatch(f),f}:p=>{this.setState({[s]:p})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var Yo=m(R());var Ko=class extends ut{async listMySearches(){let e=P.getState().session;return e?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var Zo=class extends ut{async listMyBookmarks(){let e=P.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var kp="ft-user-assets",qo=Yo.FtReduxStore.get({name:kp,initialState:{savedSearches:void 0,bookmarks:void 0}}),di=class{constructor(){this.currentSession=P.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Zo,this.savedSearchesService=new Ko,P.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:o}=P.getState();(0,Yo.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),qo.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),qo.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();qo.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let o=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;qo.actions.bookmarks(o)}}},Ss=new di;var pi=class{addCommand(e,o=!1){P.commands.add(e,o)}consumeCommand(e){return P.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new pi;var Os=m(R()),fi=class{highlightHtml(e,o,n){(0,Os.highlightHtml)(e,o,n)}};window.FluidTopicsHighlightHtmlService=new fi;var Cs=m(R());var ui=class{isDate(e){var o,n,i,a;return(a=(i=((n=(o=P.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]).find(c=>c.key===e))===null||i===void 0?void 0:i.date)!==null&&a!==void 0?a:!1}format(e,o){var n,i,a;return Cs.DateFormatter.format(e,(n=o?.locale)!==null&&n!==void 0?n:P.getState().uiLocale,(i=o?.longFormat)!==null&&i!==void 0?i:!1,(a=o?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new ui;var _p=m(R());(0,Es.customElement)("ft-app-context")(oe);var Xo=class extends ut{async launchSearch(e){return this.cache.get(this.hash(e),async()=>(await this.awaitApi).search(e),2*60*1e3)}async launchSuggest(e){return this.cache.get(this.hash(e),async()=>(await this.awaitApi).getSuggestions(e),2*60*1e3)}async getAvailableSearchLocales(){return this.cache.get("available-locales",async()=>(await this.awaitApi).getAvailableSearchLocales())}hash(e){return""+Array.from(JSON.stringify(e)).reduce((o,n)=>0|31*o+n.charCodeAt(0),0)}};var ao=t=>t.request.virtualField===Ar.TITLE_ONLY&&t.request.scope===Rr.DOCUMENTS,Qo=class t extends Event{constructor(){super(t.eventName)}};Qo.eventName="search-context-clear-all-filters";var io=class t{static build(e,o){return new t(la(e.trim()||"context"),o)}constructor(e,o){this.store=e,this.ignoreEmptyQuery=!1,this.openExternalDocumentInNewTab=!1,this.localesDebouncer=new yt.Debouncer(10),this.searchDebouncer=new yt.Debouncer(100),this.suggestDebouncer=new yt.Debouncer(300),this.service=o??new Xo,this.service.cache.addEventListener("clear-cache",n=>{n.detail.clearedKeys.includes("available-locales")&&this.updateLocales()})}async initService(){return this.updateLocales(),this.launchSearch()}setQuery(e){this.store.actions.setRequestQuery(e),this.store.actions.liveQuery(e),this.store.actions.setPageNumber(1),this.launchSearch()}setContentLocale(e){var o;let n=(o=this.store.getState().locales)!==null&&o!==void 0?o:[],i=this.store.getState().request.contentLocale;if(e!=i){if(n.length>0){let a=s=>n.some(c=>c.lang==s);a(e)||(e=a(i)?i:n[0].lang)}this.store.actions.setRequestContentLocale(e),this.store.actions.setPageNumber(1),this.store.actions.setRequestFilters([]),this.launchSearch()}return e}forceContentLocale(e){this.store.actions.setRequestContentLocale(e),this.launchSearch()}setPageSize(e){this.store.actions.setPageSize(e),this.launchSearch()}setPageNumber(e){this.store.actions.setPageNumber(e),this.launchSearch()}setSort(e){this.store.actions.setRequestSort(e),this.store.actions.setPageNumber(1),this.launchSearch()}setFilters(e){let o=e.filter(n=>!n.valueFilter||n.valueFilter.values.length>0);this.store.actions.setRequestFilters(o),this.store.actions.setPageNumber(1),this.launchSearch()}setClusterSortCriterion(e){this.store.actions.setRequestClusterSortCriterion(e),this.launchSearch()}setSearchInDocumentTitlesOnly(e){e?(this.store.actions.setRequestVirtualField(Ar.TITLE_ONLY),this.store.actions.setRequestScope(Rr.DOCUMENTS)):(this.store.actions.setRequestVirtualField(Ar.EVERYWHERE),this.store.actions.setRequestScope(Rr.DEFAULT)),this.launchSearch()}setVirtualField(e){this.store.actions.setRequestVirtualField(e),this.launchSearch()}get searchInDocumentTitlesOnly(){return ao(this.store.getState())}clearAllFilters(){this.setFilters([]),this.store.dispatchEvent(new Qo)}addFacet(e){this.facetIds=[...this.facetIds,e],this.launchSearch()}replaceFacet(e,o){let n=this.facetIds.filter(i=>i!=e);o&&n.push(o),this.facetIds=n,this.launchSearch()}get facetIds(){var e;let o=this.store.getState().request;return[...new Set([...o.facets.map(n=>n.id),...((e=o.metadataFilters)!==null&&e!==void 0?e:[]).map(n=>n.key)])]}set facetIds(e){let n=[...new Set(e)].map(i=>({id:i}));this.store.actions.setRequestFacets(n)}setFilter(e,o){this.setValueFilter(e,o)}setValueFilter(e,o){let n=this.store.getState().request.metadataFilters,i={key:e,valueFilter:{values:o,negative:!1}},a=[...n.filter(s=>!s.valueFilter),...n.filter(s=>s.valueFilter&&s.key!==i.key),i];this.setFilters(a)}setDateFilter(e,o){let n=this.store.getState().request.metadataFilters,i={key:e,dateFilter:{type:o}},a=[...n.filter(s=>!s.dateFilter),...n.filter(s=>s.dateFilter&&s.key!==i.key),i];this.setFilters(a)}removeDateFilter(e){let o=this.store.getState().request.metadataFilters,n=[...o.filter(i=>!i.dateFilter),...o.filter(i=>i.dateFilter&&i.key!==e)];this.setFilters(n)}setRangeFilter(e,o,n){let i=this.store.getState().request.metadataFilters,a={key:e,rangeFilter:{from:o,to:n}},s=[...i.filter(c=>!c.rangeFilter),...i.filter(c=>c.rangeFilter&&c.key!==a.key),a];this.setFilters(s)}removeRangeFilter(e){let o=this.store.getState().request.metadataFilters,n=[...o.filter(i=>!i.rangeFilter),...o.filter(i=>i.rangeFilter&&i.key!==e)];this.setFilters(n)}setLiveQuery(e){this.store.actions.liveQuery(e),this.launchSuggest()}setRequest(e){this.store.actions.setRequest({...e,facets:this.store.getState().request.facets}),this.store.actions.liveQuery(e.query),this.store.actions.setPageNumber(1),this.launchSearch()}setScope(e){this.store.actions.setRequestScope(e),this.launchSearch()}setOtherQueryParams(e){this.store.actions.setOtherQueryParams(e)}setIgnoreEmptyQuery(e){this.ignoreEmptyQuery=e,this.launchSearch()}setOpenExternalDocumentInNewTab(e){this.openExternalDocumentInNewTab=e}updateLocales(){return this.localesDebouncer.run(async()=>this.store.actions.locales((await this.service.getAvailableSearchLocales()).contentLocales))}launchSearch(){return this.launchSuggest(),this.searchDebouncer.run(()=>this.fetchSearchData())}launchSuggest(){return this.suggestDebouncer.run(()=>this.fetchSuggestData())}async fetchSearchData(){var e,o;try{(e=this.cancelableSearch)===null||e===void 0||e.cancel();let n={...this.store.getState().request,facets:this.facetIds.map(i=>({id:i}))};if(this.store.actions.paging(void 0),this.ignoreEmptyQuery&&n.query.length==0)this.store.actions.results(void 0),this.store.actions.facets(void 0),this.store.actions.spellcheck(void 0);else{this.cancelableSearch=(0,yt.cancelable)(this.service.launchSearch(n));let i=await this.cancelableSearch;if(i.paging.currentPage<=1)this.store.actions.results(i.results),this.store.actions.facets(i.facets),this.store.actions.spellcheck(i.spellcheck);else{let a=((o=this.store.getState().results)!==null&&o!==void 0?o:[]).concat(i.results);this.store.actions.results(a)}this.store.actions.paging(i.paging)}}catch(n){!(n instanceof yt.CanceledPromiseError)&&this.errorHandler&&this.errorHandler(n)}}async fetchSuggestData(){var e;try{let o=this.store.getState(),n=o.request,i={input:o.liveQuery,metadataFilters:n.metadataFilters,sort:n.sort,contentLocale:n.contentLocale,scope:n.scope};(e=this.cancelableSuggest)===null||e===void 0||e.cancel(),this.cancelableSuggest=(0,yt.cancelable)(this.service.launchSuggest(i));let a=await this.cancelableSuggest;this.store.actions.suggestResults(a.suggestions)}catch(o){!(o instanceof yt.CanceledPromiseError)&&this.errorHandler&&this.errorHandler(o)}}clear(){this.store.clear()}clearResults(){this.store.actions.paging(void 0),this.store.actions.results(void 0),this.store.actions.facets(void 0),this.store.actions.spellcheck(void 0)}};var $p=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},yi=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},hi=Symbol("registerInterval");function Dp(t){var e;class o extends t{constructor(){super(...arguments),this[e]=0}setSearchStateManager(i){this.clearStateManager(),this.stateManager=i,this.addStore(i.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[hi]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[hi]):this.dispatchEvent(new yi)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=hi,$p([(0,As.state)()],o.prototype,"stateManager",void 0),o}var Ht=class extends Dp(ws.FtLitElementRedux){};var Wi=m(R());var bn=m(_()),Le=m(G()),Fc=m(Vt()),Zr=m(R());var Bs=m(R());var $s=m(_()),ve=m(G()),Ds=m(Vt()),so=m(R());var ks=m(_()),se=m(R()),Ns=se.FtCssVariableFactory.extend("--ft-ripple-color","",se.designSystemVariables.colorContent),E={color:Ns,backgroundColor:se.FtCssVariableFactory.extend("--ft-ripple-background-color","",Ns),opacityContentOnSurfacePressed:se.FtCssVariableFactory.external(se.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:se.FtCssVariableFactory.external(se.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:se.FtCssVariableFactory.external(se.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:se.FtCssVariableFactory.external(se.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:se.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},Ls=se.FtCssVariableFactory.extend("--ft-ripple-color","",se.designSystemVariables.colorPrimary),Is={color:Ls,backgroundColor:se.FtCssVariableFactory.extend("--ft-ripple-background-color","",Ls)},Ts=se.FtCssVariableFactory.extend("--ft-ripple-color","",se.designSystemVariables.colorSecondary),Ps={color:Ts,backgroundColor:se.FtCssVariableFactory.extend("--ft-ripple-background-color","",Ts)},_s=ks.css`
|
|
15
|
+
`}update(e){var o,n,i,a,s;super.update(e),e.has("baseUrl")&&(P.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&P.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("uiLocale")&&P.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&P.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&P.actions.noCustom(this.noCustom),e.has("editorMode")&&P.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&P.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&P.actions.session(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(c=>ar.addContext(c)),e.has("openExternalDocumentInNewTab")&&P.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&P.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&P.actions.forcedOffline(this.forcedOffline),e.has("localesConfiguration")&&(P.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),P.actions.availableUiLocales((i=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&i!==void 0?i:[]),P.actions.searchInAllLanguagesAllowed((s=(a=this.localesConfiguration)===null||a===void 0?void 0:a.allLanguagesAllowed)!==null&&s!==void 0?s:!1)),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration())}async updateSession(){this.session=await this.cache.get("session",async()=>{let 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())}};oe.elementDefinitions={};oe.styles=La;Ce([(0,ke.property)()],oe.prototype,"baseUrl",void 0);Ce([(0,ke.property)()],oe.prototype,"apiIntegrationIdentifier",void 0);Ce([(0,ke.property)()],oe.prototype,"uiLocale",void 0);Ce([(0,et.jsonProperty)(null)],oe.prototype,"availableUiLocales",void 0);Ce([(0,et.jsonProperty)(null)],oe.prototype,"metadataConfiguration",void 0);Ce([(0,ke.property)({type:Boolean})],oe.prototype,"editorMode",void 0);Ce([(0,ke.property)({type:Boolean})],oe.prototype,"noCustom",void 0);Ce([(0,ke.property)({type:Boolean})],oe.prototype,"openExternalDocumentInNewTab",void 0);Ce([(0,ke.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],oe.prototype,"noCustomComponent",void 0);Ce([(0,ke.property)({type:Boolean})],oe.prototype,"withManualResources",void 0);Ce([(0,ke.property)({type:Boolean})],oe.prototype,"navigatorOnline",void 0);Ce([(0,ke.property)({type:Boolean})],oe.prototype,"forcedOffline",void 0);Ce([(0,ke.property)({type:Object})],oe.prototype,"apiProvider",void 0);Ce([(0,et.jsonProperty)([])],oe.prototype,"messageContexts",void 0);Ce([(0,et.jsonProperty)(void 0)],oe.prototype,"session",void 0);Ce([(0,ke.state)()],oe.prototype,"localesConfiguration",void 0);var Pp=m(G());function jd(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var o,n,i;if(Array.isArray(t)){if(o=t.length,o!=e.length)return!1;for(n=o;n--!==0;)if(!_o(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(!_o(n[1],e.get(n[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if(i=Object.keys(t),o=i.length,o!==Object.keys(e).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(e,i[n]))return!1;for(n=o;n--!==0;){var a=i[n];if(!_o(t[a],e[a]))return!1}return!0}return t!==t&&e!==e}function _o(t,e){try{return jd(t,e)}catch{return!1}}function Fn(t,e){return!_o(t,e)}var Kd=m(G(),1);var $o=class{constructor(){this.queue=[]}add(e,o=!1){o&&(this.queue=this.queue.filter(n=>n.type!==e.type)),this.queue.push(e)}consume(e){let o=this.queue.find(n=>n.type===e);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}};var Qr=m(G(),1);var ka=m(G(),1);function _a(t,e){let o=()=>JSON.parse(JSON.stringify(t));return(0,ka.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:Fn,...e??{}})}var Do=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,o){return this.callbacks=[e],this.debounce(o)}queue(e,o){return this.callbacks.push(e),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((o,n)=>{this.resolvePromise=o,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,o;let n=[...this.callbacks];this.callbacks=[];let i=(e=this.rejectPromise)!==null&&e!==void 0?e:()=>null,a=(o=this.resolvePromise)!==null&&o!==void 0?o:()=>null;this.clearPromise();for(let s of n)try{await s()}catch(c){i(c);return}a(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Da=m(_(),1);var Bo=window,Zd=Bo.ShadowRoot&&(Bo.ShadyCSS===void 0||Bo.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ru=Symbol();var $a=(t,e)=>{Zd?t.adoptedStyleSheets=e.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet):e.forEach(o=>{let n=document.createElement("style"),i=Bo.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=o.cssText,t.appendChild(n)})};var Fo=class extends Da.LitElement{createRenderRoot(){let e=this.constructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,Object.entries(e.elementDefinitions).forEach(([i,a])=>e.registry.define(i,a)));let o={...e.shadowRootOptions,customElements:e.registry},n=this.renderOptions.creationScope=this.attachShadow(o);return $a(n,e.elementStyles),n}};var Mo=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},Ua,Ba=Symbol("constructorPrototype"),Fa=Symbol("constructorName"),za=Symbol("exportpartsDebouncer"),Ma=Symbol("dynamicDependenciesLoaded"),Dt=class extends Fo{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Ua]=new Do(5),this[Fa]=this.constructor.name,this[Ba]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Fa]&&Object.setPrototypeOf(this,this[Ba])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(o){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",o)}let e=this.constructor;e[Ma]||(e[Ma]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate()})}contentAvailableCallback(e){}applyCustomStylesheet(e){var o,n,i;if(((n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((i=this.customStylesheet)!==null&&i!==void 0?i:"")}catch(a){console.error(a,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let a=document.createElement("style");a.classList.add("ft-lit-element--custom-stylesheet"),a.innerHTML=this.customStylesheet,this.shadowRoot.append(a)}}scheduleExportpartsUpdate(){var e,o,n;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(n=(o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)!==null&&n!==void 0&&n)&&this[za].run(()=>{var i,a;!((i=this.exportpartsPrefix)===null||i===void 0)&&i.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((a=this.exportpartsPrefixes)===null||a===void 0?void 0:a.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(e){var o,n,i,a,s,c;let p=b=>b!=null&&b.trim().length>0,f=e.filter(p).map(b=>b.trim());if(f.length===0){this.removeAttribute("exportparts");return}let h=new Set;for(let b of(n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let S=(a=(i=b.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&a!==void 0?a:[],v=(c=(s=b.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(O=>O.split(":")[1]))!==null&&c!==void 0?c:[];new Array(...S,...v).filter(p).map(O=>O.trim()).forEach(O=>h.add(O))}if(h.size===0){this.removeAttribute("exportparts");return}let g=[...h.values()].flatMap(b=>f.map(S=>`${b}:${S}--${b}`));this.setAttribute("exportparts",[...this.part,...g].join(", "))}};Ua=za;Mo([(0,Qr.property)()],Dt.prototype,"exportpartsPrefix",void 0);Mo([_a([])],Dt.prototype,"exportpartsPrefixes",void 0);Mo([(0,Qr.property)()],Dt.prototype,"customStylesheet",void 0);Mo([(0,Qr.state)()],Dt.prototype,"useAdoptedStyleSheets",void 0);function Jr(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Wa,Ha,Va,eo=Symbol("internalReduxEventsUnsubscribers"),Bt=Symbol("internalStoresUnsubscribers"),sr=Symbol("internalStores"),to=class extends Dt{constructor(){super(...arguments),this[Wa]=new Map,this[Ha]=new Map,this[Va]=new Map}get reduxConstructor(){return this.constructor}update(e){super.update(e),[...this.reduxConstructor.reduxReactiveProperties].some(o=>e.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[sr].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[sr].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[sr].get(e)}addStore(e,o){var n;o=(n=o??(Jr(e)?e.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(o),this[sr].set(o,e),this.subscribeToStore(o,e),this.updateFromStores()}removeStore(e){let o=typeof e=="string"?e:e.name;this.unsubscribeFromStore(o),this[sr].delete(o)}setupStores(){this.unsubscribeFromStores(),this[sr].forEach((e,o)=>this.subscribeToStore(o,e)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((e,o)=>{let n=this.constructor.getPropertyOptions(o);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:o)){let i=this.getStore(e.store);i&&(e.store?this[Bt].has(e.store):this[Bt].size>0)&&(this[o]=e.selector(i.getState(),this))}})}subscribeToStore(e,o){var n;this[Bt].set(e,o.subscribe(()=>this.updateFromStores())),this[eo].set(e,[]),Jr(o)&&o.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((i,a)=>{if(typeof this[a]=="function"&&(!i.store||o.name===i.store)){let s=c=>this[a](c);o.addEventListener(i.eventName,s),this[eo].get(e).push(()=>o.removeEventListener(i.eventName,s))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[Bt].forEach((e,o)=>this.unsubscribeFromStore(o))}unsubscribeFromStore(e){var o;this[Bt].has(e)&&this[Bt].get(e)(),this[Bt].delete(e),(o=this[eo].get(e))===null||o===void 0||o.forEach(n=>n()),this[eo].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Wa=Bt,Ha=sr,Va=eo;to.reduxProperties=new Map;to.reduxReactiveProperties=new Set;to.reduxEventListeners=new Map;function Ze(t){for(var e=arguments.length,o=Array(e>1?e-1:0),n=1;n<e;n++)o[n-1]=arguments[n];if(0)var i,a;throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function St(t){return!!t&&!!t[X]}function tt(t){var e;return!!t&&(function(o){if(!o||typeof o!="object")return!1;var n=Object.getPrototypeOf(o);if(n===null)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===rp}(t)||Array.isArray(t)||!!t[Xa]||!!(!((e=t.constructor)===null||e===void 0)&&e[Xa])||Kn(t)||Zn(t))}function lr(t,e,o){o===void 0&&(o=!1),Ir(t)===0?(o?Object.keys:Lr)(t).forEach(function(n){o&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,i){return e(i,n,t)})}function Ir(t){var e=t[X];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Kn(t)?2:Zn(t)?3:0}function Nr(t,e){return Ir(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function qd(t,e){return Ir(t)===2?t.get(e):t[e]}function Qa(t,e,o){var n=Ir(t);n===2?t.set(e,o):n===3?t.add(o):t[e]=o}function Ja(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function Kn(t){return ep&&t instanceof Map}function Zn(t){return tp&&t instanceof Set}function Ft(t){return t.o||t.t}function qn(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=rs(t);delete e[X];for(var o=Lr(e),n=0;n<o.length;n++){var i=o[n],a=e[i];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:t[i]})}return Object.create(Object.getPrototypeOf(t),e)}function Yn(t,e){return e===void 0&&(e=!1),Xn(t)||St(t)||!tt(t)||(Ir(t)>1&&(t.set=t.add=t.clear=t.delete=Yd),Object.freeze(t),e&&lr(t,function(o,n){return Yn(n,!0)},!0)),t}function Yd(){Ze(2)}function Xn(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function ht(t){var e=jn[t];return e||Ze(18,t),e}function Xd(t,e){jn[t]||(jn[t]=e)}function Hn(){return oo}function Mn(t,e){e&&(ht("Patches"),t.u=[],t.s=[],t.v=e)}function Uo(t){Vn(t),t.p.forEach(Qd),t.p=null}function Vn(t){t===oo&&(oo=t.l)}function Ga(t){return oo={p:[],l:oo,h:t,m:!0,_:0}}function Qd(t){var e=t[X];e.i===0||e.i===1?e.j():e.g=!0}function Un(t,e){e._=e.p.length;var o=e.p[0],n=t!==void 0&&t!==o;return e.h.O||ht("ES5").S(e,t,n),n?(o[X].P&&(Uo(e),Ze(4)),tt(t)&&(t=zo(e,t),e.l||Wo(e,t)),e.u&&ht("Patches").M(o[X].t,t,e.u,e.s)):t=zo(e,o,[]),Uo(e),e.u&&e.v(e.u,e.s),t!==ts?t:void 0}function zo(t,e,o){if(Xn(e))return e;var n=e[X];if(!n)return lr(e,function(c,p){return ja(t,n,e,c,p,o)},!0),e;if(n.A!==t)return e;if(!n.P)return Wo(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=qn(n.k):n.o,a=i,s=!1;n.i===3&&(a=new Set(i),i.clear(),s=!0),lr(a,function(c,p){return ja(t,n,i,c,p,o,s)}),Wo(t,i,!1),o&&t.u&&ht("Patches").N(n,o,t.u,t.s)}return n.o}function ja(t,e,o,n,i,a,s){if(St(i)){var c=zo(t,i,a&&e&&e.i!==3&&!Nr(e.R,n)?a.concat(n):void 0);if(Qa(o,n,c),!St(c))return;t.m=!1}else s&&o.add(i);if(tt(i)&&!Xn(i)){if(!t.h.D&&t._<1)return;zo(t,i),e&&e.A.l||Wo(t,i)}}function Wo(t,e,o){o===void 0&&(o=!1),!t.l&&t.h.D&&t.m&&Yn(e,o)}function zn(t,e){var o=t[X];return(o?Ft(o):t)[e]}function Ka(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 Wn(t){t.o||(t.o=qn(t.t))}function Gn(t,e,o){var n=Kn(e)?ht("MapSet").F(e,o):Zn(e)?ht("MapSet").T(e,o):t.O?function(i,a){var s=Array.isArray(i),c={i:s?1:0,A:a?a.A:Hn(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},p=c,f=no;s&&(p=[c],f=ro);var h=Proxy.revocable(p,f),g=h.revoke,b=h.proxy;return c.k=b,c.j=g,b}(e,o):ht("ES5").J(e,o);return(o?o.A:Hn()).p.push(n),n}function Jd(t){return St(t)||Ze(22,t),function e(o){if(!tt(o))return o;var n,i=o[X],a=Ir(o);if(i){if(!i.P&&(i.i<4||!ht("ES5").K(i)))return i.t;i.I=!0,n=Za(o,a),i.I=!1}else n=Za(o,a);return lr(n,function(s,c){i&&qd(i.t,s)===c||Qa(n,s,e(c))}),a===3?new Set(n):n}(t)}function Za(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return qn(t)}function es(){function t(s,c){var p=a[s];return p?p.enumerable=c:a[s]=p={configurable:!0,enumerable:c,get:function(){var f=this[X];return no.get(f,s)},set:function(f){var h=this[X];no.set(h,s,f)}},p}function e(s){for(var c=s.length-1;c>=0;c--){var p=s[c][X];if(!p.P)switch(p.i){case 5:n(p)&&Mt(p);break;case 4:o(p)&&Mt(p)}}}function o(s){for(var c=s.t,p=s.k,f=Lr(p),h=f.length-1;h>=0;h--){var g=f[h];if(g!==X){var b=c[g];if(b===void 0&&!Nr(c,g))return!0;var S=p[g],v=S&&S[X];if(v?v.t!==b:!Ja(S,b))return!0}}var O=!!c[X];return f.length!==Lr(c).length+(O?0:1)}function n(s){var c=s.k;if(c.length!==s.t.length)return!0;var p=Object.getOwnPropertyDescriptor(c,c.length-1);if(p&&!p.get)return!0;for(var f=0;f<c.length;f++)if(!c.hasOwnProperty(f))return!0;return!1}function i(s){s.g&&Ze(3,JSON.stringify(Ft(s)))}var a={};Xd("ES5",{J:function(s,c){var p=Array.isArray(s),f=function(g,b){if(g){for(var S=Array(b.length),v=0;v<b.length;v++)Object.defineProperty(S,""+v,t(v,!0));return S}var O=rs(b);delete O[X];for(var T=Lr(O),L=0;L<T.length;L++){var I=T[L];O[I]=t(I,g||!!O[I].enumerable)}return Object.create(Object.getPrototypeOf(b),O)}(p,s),h={i:p?5:4,A:c?c.A:Hn(),P:!1,I:!1,R:{},l:c,t:s,k:f,o:null,g:!1,C:!1};return Object.defineProperty(f,X,{value:h,writable:!0}),f},S:function(s,c,p){p?St(c)&&c[X].A===s&&e(s.p):(s.u&&function f(h){if(h&&typeof h=="object"){var g=h[X];if(g){var b=g.t,S=g.k,v=g.R,O=g.i;if(O===4)lr(S,function(F){F!==X&&(b[F]!==void 0||Nr(b,F)?v[F]||f(S[F]):(v[F]=!0,Mt(g)))}),lr(b,function(F){S[F]!==void 0||Nr(S,F)||(v[F]=!1,Mt(g))});else if(O===5){if(n(g)&&(Mt(g),v.length=!0),S.length<b.length)for(var T=S.length;T<b.length;T++)v[T]=!1;else for(var L=b.length;L<S.length;L++)v[L]=!0;for(var I=Math.min(S.length,b.length),$=0;$<I;$++)S.hasOwnProperty($)||(v[$]=!0),v[$]===void 0&&f(S[$])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?o(s):n(s)}})}var qa,oo,Qn=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",ep=typeof Map<"u",tp=typeof Set<"u",Ya=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",ts=Qn?Symbol.for("immer-nothing"):((qa={})["immer-nothing"]=!0,qa),Xa=Qn?Symbol.for("immer-draftable"):"__$immer_draftable",X=Qn?Symbol.for("immer-state"):"__$immer_state";var rp=""+Object.prototype.constructor,Lr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,rs=Object.getOwnPropertyDescriptors||function(t){var e={};return Lr(t).forEach(function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)}),e},jn={},no={get:function(t,e){if(e===X)return t;var o=Ft(t);if(!Nr(o,e))return function(i,a,s){var c,p=Ka(a,s);return p?"value"in p?p.value:(c=p.get)===null||c===void 0?void 0:c.call(i.k):void 0}(t,o,e);var n=o[e];return t.I||!tt(n)?n:n===zn(t.t,e)?(Wn(t),t.o[e]=Gn(t.A.h,n,t)):n},has:function(t,e){return e in Ft(t)},ownKeys:function(t){return Reflect.ownKeys(Ft(t))},set:function(t,e,o){var n=Ka(Ft(t),e);if(n?.set)return n.set.call(t.k,o),!0;if(!t.P){var i=zn(Ft(t),e),a=i?.[X];if(a&&a.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(Ja(o,i)&&(o!==void 0||Nr(t.t,e)))return!0;Wn(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 zn(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,Wn(t),Mt(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=Ft(t),n=Reflect.getOwnPropertyDescriptor(o,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:o[e]}},defineProperty:function(){Ze(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Ze(12)}},ro={};lr(no,function(t,e){ro[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),ro.deleteProperty=function(t,e){return ro.set.call(this,t,e,void 0)},ro.set=function(t,e,o){return no.set.call(this,t[0],e,o,t[0])};var op=function(){function t(o){var n=this;this.O=Ya,this.D=!0,this.produce=function(i,a,s){if(typeof i=="function"&&typeof a!="function"){var c=a;a=i;var p=n;return function(O){var T=this;O===void 0&&(O=c);for(var L=arguments.length,I=Array(L>1?L-1:0),$=1;$<L;$++)I[$-1]=arguments[$];return p.produce(O,function(F){var U;return(U=a).call.apply(U,[T,F].concat(I))})}}var f;if(typeof a!="function"&&Ze(6),s!==void 0&&typeof s!="function"&&Ze(7),tt(i)){var h=Ga(n),g=Gn(n,i,void 0),b=!0;try{f=a(g),b=!1}finally{b?Uo(h):Vn(h)}return typeof Promise<"u"&&f instanceof Promise?f.then(function(O){return Mn(h,s),Un(O,h)},function(O){throw Uo(h),O}):(Mn(h,s),Un(f,h))}if(!i||typeof i!="object"){if((f=a(i))===void 0&&(f=i),f===ts&&(f=void 0),n.D&&Yn(f,!0),s){var S=[],v=[];ht("Patches").M(i,f,S,v),s(S,v)}return f}Ze(21,i)},this.produceWithPatches=function(i,a){if(typeof i=="function")return function(f){for(var h=arguments.length,g=Array(h>1?h-1:0),b=1;b<h;b++)g[b-1]=arguments[b];return n.produceWithPatches(f,function(S){return i.apply(void 0,[S].concat(g))})};var s,c,p=n.produce(i,a,function(f,h){s=f,c=h});return typeof Promise<"u"&&p instanceof Promise?p.then(function(f){return[f,s,c]}):[p,s,c]},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){tt(o)||Ze(8),St(o)&&(o=Jd(o));var n=Ga(this),i=Gn(this,o,void 0);return i[X].C=!0,Vn(n),i},e.finishDraft=function(o,n){var i=o&&o[X],a=i.A;return Mn(a,n),Un(void 0,a)},e.setAutoFreeze=function(o){this.D=o},e.setUseProxies=function(o){o&&!Ya&&Ze(20),this.O=o},e.applyPatches=function(o,n){var i;for(i=n.length-1;i>=0;i--){var a=n[i];if(a.path.length===0&&a.op==="replace"){o=a.value;break}}i>-1&&(n=n.slice(i+1));var s=ht("Patches").$;return St(o)?s(o,n):this.produce(o,function(c){return s(c,n)})},t}(),ze=new op,np=ze.produce,hu=ze.produceWithPatches.bind(ze),yu=ze.setAutoFreeze.bind(ze),mu=ze.setUseProxies.bind(ze),gu=ze.applyPatches.bind(ze),bu=ze.createDraft.bind(ze),xu=ze.finishDraft.bind(ze),Ho=np;function Ut(t){"@babel/helpers - typeof";return Ut=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},Ut(t)}function Jn(t,e){if(Ut(t)!=="object"||t===null)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var n=o.call(t,e||"default");if(Ut(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function ei(t){var e=Jn(t,"string");return Ut(e)==="symbol"?e:String(e)}function ti(t,e,o){return e=ei(e),e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function os(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),o.push.apply(o,n)}return o}function Vo(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?os(Object(o),!0).forEach(function(n){ti(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):os(Object(o)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))})}return t}function Ee(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 ns=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),ri=function(){return Math.random().toString(36).substring(7).split("").join(".")},Go={INIT:"@@redux/INIT"+ri(),REPLACE:"@@redux/REPLACE"+ri(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ri()}};function ip(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 oi(t,e,o){var n;if(typeof e=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(Ee(0));if(typeof e=="function"&&typeof o>"u"&&(o=e,e=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(Ee(1));return o(oi)(t,e)}if(typeof t!="function")throw new Error(Ee(2));var i=t,a=e,s=[],c=s,p=!1;function f(){c===s&&(c=s.slice())}function h(){if(p)throw new Error(Ee(3));return a}function g(O){if(typeof O!="function")throw new Error(Ee(4));if(p)throw new Error(Ee(5));var T=!0;return f(),c.push(O),function(){if(T){if(p)throw new Error(Ee(6));T=!1,f();var I=c.indexOf(O);c.splice(I,1),s=null}}}function b(O){if(!ip(O))throw new Error(Ee(7));if(typeof O.type>"u")throw new Error(Ee(8));if(p)throw new Error(Ee(9));try{p=!0,a=i(a,O)}finally{p=!1}for(var T=s=c,L=0;L<T.length;L++){var I=T[L];I()}return O}function S(O){if(typeof O!="function")throw new Error(Ee(10));i=O,b({type:Go.REPLACE})}function v(){var O,T=g;return O={subscribe:function(I){if(typeof I!="object"||I===null)throw new Error(Ee(11));function $(){I.next&&I.next(h())}$();var F=T($);return{unsubscribe:F}}},O[ns]=function(){return this},O}return b({type:Go.INIT}),n={dispatch:b,subscribe:g,getState:h,replaceReducer:S},n[ns]=v,n}function ap(t){Object.keys(t).forEach(function(e){var o=t[e],n=o(void 0,{type:Go.INIT});if(typeof n>"u")throw new Error(Ee(12));if(typeof o(void 0,{type:Go.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Ee(13))})}function is(t){for(var e=Object.keys(t),o={},n=0;n<e.length;n++){var i=e[n];typeof t[i]=="function"&&(o[i]=t[i])}var a=Object.keys(o),s,c;try{ap(o)}catch(p){c=p}return function(f,h){if(f===void 0&&(f={}),c)throw c;if(0)var g;for(var b=!1,S={},v=0;v<a.length;v++){var O=a[v],T=o[O],L=f[O],I=T(L,h);if(typeof I>"u"){var $=h&&h.type;throw new Error(Ee(14))}S[O]=I,b=b||I!==L}return b=b||a.length!==Object.keys(f).length,b?S:f}}function Tr(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function as(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(n){return function(){var i=n.apply(void 0,arguments),a=function(){throw new Error(Ee(15))},s={getState:i.getState,dispatch:function(){return a.apply(void 0,arguments)}},c=e.map(function(p){return p(s)});return a=Tr.apply(void 0,c)(i.dispatch),Vo(Vo({},i),{},{dispatch:a})}}}function ss(t){var e=function(n){var i=n.dispatch,a=n.getState;return function(s){return function(c){return typeof c=="function"?c(i,a,t):s(c)}}};return e}var ls=ss();ls.withExtraArgument=ss;var ni=ls;var us=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},t(e,o)};return function(e,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");t(e,o);function n(){this.constructor=e}e.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),sp=function(t,e){var o={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(f){return function(h){return p([f,h])}}function p(f){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,i&&(a=f[0]&2?i.return:f[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,f[1])).done)return a;switch(i=0,a&&(f=[f[0]&2,a.value]),f[0]){case 0:case 1:a=f;break;case 4:return o.label++,{value:f[1],done:!1};case 5:o.label++,i=f[1],f=[0];continue;case 7:f=o.ops.pop(),o.trys.pop();continue;default:if(a=o.trys,!(a=a.length>0&&a[a.length-1])&&(f[0]===6||f[0]===2)){o=0;continue}if(f[0]===3&&(!a||f[1]>a[0]&&f[1]<a[3])){o.label=f[1];break}if(f[0]===6&&o.label<a[1]){o.label=a[1],a=f;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(f);break}a[2]&&o.ops.pop(),o.trys.pop();continue}f=e.call(t,o)}catch(h){f=[6,h],i=0}finally{n=a=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},Pr=function(t,e){for(var o=0,n=e.length,i=t.length;o<n;o++,i++)t[i]=e[o];return t},lp=Object.defineProperty,cp=Object.defineProperties,dp=Object.getOwnPropertyDescriptors,cs=Object.getOwnPropertySymbols,pp=Object.prototype.hasOwnProperty,fp=Object.prototype.propertyIsEnumerable,ds=function(t,e,o){return e in t?lp(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},zt=function(t,e){for(var o in e||(e={}))pp.call(e,o)&&ds(t,o,e[o]);if(cs)for(var n=0,i=cs(e);n<i.length;n++){var o=i[n];fp.call(e,o)&&ds(t,o,e[o])}return t},ii=function(t,e){return cp(t,dp(e))},up=function(t,e,o){return new Promise(function(n,i){var a=function(p){try{c(o.next(p))}catch(f){i(f)}},s=function(p){try{c(o.throw(p))}catch(f){i(f)}},c=function(p){return p.done?n(p.value):Promise.resolve(p.value).then(a,s)};c((o=o.apply(t,e)).next())})};var hp=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Tr:Tr.apply(null,arguments)},Bu=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function yp(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 mp=function(t){us(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var i=t.apply(this,o)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,Pr([void 0],o[0].concat(this)))):new(e.bind.apply(e,Pr([void 0],o.concat(this))))},e}(Array),gp=function(t){us(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var i=t.apply(this,o)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,Pr([void 0],o[0].concat(this)))):new(e.bind.apply(e,Pr([void 0],o.concat(this))))},e}(Array);function li(t){return tt(t)?Ho(t,function(){}):t}function bp(t){return typeof t=="boolean"}function xp(){return function(e){return vp(e)}}function vp(t){t===void 0&&(t={});var e=t.thunk,o=e===void 0?!0:e,n=t.immutableCheck,i=n===void 0?!0:n,a=t.serializableCheck,s=a===void 0?!0:a,c=new mp;if(o&&(bp(o)?c.push(ni):c.push(ni.withExtraArgument(o.extraArgument))),0){if(i)var p;if(s)var f}return c}var ai=!0;function hs(t){var e=xp(),o=t||{},n=o.reducer,i=n===void 0?void 0:n,a=o.middleware,s=a===void 0?e():a,c=o.devTools,p=c===void 0?!0:c,f=o.preloadedState,h=f===void 0?void 0:f,g=o.enhancers,b=g===void 0?void 0:g,S;if(typeof i=="function")S=i;else if(yp(i))S=is(i);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var v=s;if(typeof v=="function"&&(v=v(e),!ai&&!Array.isArray(v)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!ai&&v.some(function(F){return typeof F!="function"}))throw new Error("each middleware provided to configureStore must be a function");var O=as.apply(void 0,v),T=Tr;p&&(T=hp(zt({trace:!ai},typeof p=="object"&&p)));var L=new gp(O),I=L;Array.isArray(b)?I=Pr([O],b):typeof b=="function"&&(I=b(L));var $=T.apply(void 0,I);return oi(S,h,$)}function Wt(t,e){function o(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(e){var a=e.apply(void 0,n);if(!a)throw new Error("prepareAction did not return an object");return zt(zt({type:t,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:t,payload:n[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(n){return n.type===t},o}function ys(t){var e={},o=[],n,i={addCase:function(a,s){var c=typeof a=="string"?a:a.type;if(c in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[c]=s,i},addMatcher:function(a,s){return o.push({matcher:a,reducer:s}),i},addDefaultCase:function(a){return n=a,i}};return t(i),[e,o,n]}function Sp(t){return typeof t=="function"}function Op(t,e,o,n){o===void 0&&(o=[]);var i=typeof e=="function"?ys(e):[e,o,n],a=i[0],s=i[1],c=i[2],p;if(Sp(t))p=function(){return li(t())};else{var f=li(t);p=function(){return f}}function h(g,b){g===void 0&&(g=p());var S=Pr([a[b.type]],s.filter(function(v){var O=v.matcher;return O(b)}).map(function(v){var O=v.reducer;return O}));return S.filter(function(v){return!!v}).length===0&&(S=[c]),S.reduce(function(v,O){if(O)if(St(v)){var T=v,L=O(T,b);return L===void 0?v:L}else{if(tt(v))return Ho(v,function(I){return O(I,b)});var L=O(v,b);if(L===void 0){if(v===null)return v;throw Error("A case reducer on a non-draftable value must not return undefined")}return L}return v},g)}return h.getInitialState=p,h}function Cp(t,e){return t+"/"+e}function ms(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:li(t.initialState),n=t.reducers||{},i=Object.keys(n),a={},s={},c={};i.forEach(function(h){var g=n[h],b=Cp(e,h),S,v;"reducer"in g?(S=g.reducer,v=g.prepare):S=g,a[h]=S,s[b]=S,c[h]=v?Wt(b,v):Wt(b)});function p(){var h=typeof t.extraReducers=="function"?ys(t.extraReducers):[t.extraReducers],g=h[0],b=g===void 0?{}:g,S=h[1],v=S===void 0?[]:S,O=h[2],T=O===void 0?void 0:O,L=zt(zt({},b),s);return Op(o,function(I){for(var $ in L)I.addCase($,L[$]);for(var F=0,U=v;F<U.length;F++){var Pe=U[F];I.addMatcher(Pe.matcher,Pe.reducer)}T&&I.addDefaultCase(T)})}var f;return{name:e,reducer:function(h,g){return f||(f=p()),f(h,g)},actions:c,caseReducers:a,getInitialState:function(){return f||(f=p()),f.getInitialState()}}}var Ep="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",wp=function(t){t===void 0&&(t=21);for(var e="",o=t;o--;)e+=Ep[Math.random()*64|0];return e},Ap=["name","message","stack","code"],si=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),ps=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),Rp=function(t){if(typeof t=="object"&&t!==null){for(var e={},o=0,n=Ap;o<n.length;o++){var i=n[o];typeof t[i]=="string"&&(e[i]=t[i])}return e}return{message:String(t)}},zu=function(){function t(e,o,n){var i=Wt(e+"/fulfilled",function(h,g,b,S){return{payload:h,meta:ii(zt({},S||{}),{arg:b,requestId:g,requestStatus:"fulfilled"})}}),a=Wt(e+"/pending",function(h,g,b){return{payload:void 0,meta:ii(zt({},b||{}),{arg:g,requestId:h,requestStatus:"pending"})}}),s=Wt(e+"/rejected",function(h,g,b,S,v){return{payload:S,error:(n&&n.serializeError||Rp)(h||"Rejected"),meta:ii(zt({},v||{}),{arg:b,requestId:g,rejectedWithValue:!!S,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),c=!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 f(h){return function(g,b,S){var v=n?.idGenerator?n.idGenerator(h):wp(),O=new p,T,L=!1;function I(F){T=F,O.abort()}var $=function(){return up(this,null,function(){var F,U,Pe,pt,Re,ft,be;return sp(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),pt=(F=n?.condition)==null?void 0:F.call(n,h,{getState:b,extra:S}),Lp(pt)?[4,pt]:[3,2];case 1:pt=y.sent(),y.label=2;case 2:if(pt===!1||O.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return L=!0,Re=new Promise(function(x,k){return O.signal.addEventListener("abort",function(){return k({name:"AbortError",message:T||"Aborted"})})}),g(a(v,h,(U=n?.getPendingMeta)==null?void 0:U.call(n,{requestId:v,arg:h},{getState:b,extra:S}))),[4,Promise.race([Re,Promise.resolve(o(h,{dispatch:g,getState:b,extra:S,requestId:v,signal:O.signal,abort:I,rejectWithValue:function(x,k){return new si(x,k)},fulfillWithValue:function(x,k){return new ps(x,k)}})).then(function(x){if(x instanceof si)throw x;return x instanceof ps?i(x.payload,v,h,x.meta):i(x,v,h)})])];case 3:return Pe=y.sent(),[3,5];case 4:return ft=y.sent(),Pe=ft instanceof si?s(null,v,h,ft.payload,ft.meta):s(ft,v,h),[3,5];case 5:return be=n&&!n.dispatchConditionRejection&&s.match(Pe)&&Pe.meta.condition,be||g(Pe),[2,Pe]}})})}();return Object.assign($,{abort:I,requestId:v,arg:h,unwrap:function(){return $.then(Np)}})}}return Object.assign(f,{pending:a,rejected:s,fulfilled:i,typePrefix:e})}return t.withTypes=function(){return t},t}();function Np(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Lp(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var gs="listener",bs="completed",xs="cancelled",Wu="task-"+xs,Hu="task-"+bs,Vu=gs+"-"+xs,Gu=gs+"-"+bs;var ci="listenerMiddleware";var ju=Wt(ci+"/add"),Ku=Wt(ci+"/removeAll"),Zu=Wt(ci+"/remove");var fs,qu=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(fs||(fs=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},Ip=function(t){return function(e){setTimeout(e,t)}},Yu=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Ip(10);es();function Tp(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(o,n,i){this.eventBus.addEventListener(o,n,i)}dispatchEvent(o){return this.eventBus.dispatchEvent(o)}removeEventListener(o,n,i){this.eventBus.removeEventListener(o,n,i)}}}var jo=class extends Tp(Object){};window.ftReduxStores||(window.ftReduxStores={});var vs=class t extends jo{static get(e){var o;let n=typeof e=="string"?e:e.name,i=typeof e=="string"?void 0:e,a=window.ftReduxStores[n];if(Jr(a))return a;if(i==null)return;let s=ms({...i,reducers:(o=i.reducers)!==null&&o!==void 0?o:{}}),c=hs({reducer:(p,f)=>f.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof f.type=="string"&&f.type.startsWith("DEFAULT_VALUE_SETTER__")?{...p,...f.overwrites}:s.reducer(p,f)});return window.ftReduxStores[i.name]=new t(s,c)}constructor(e,o){super(),this.reduxSlice=e,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new $o,this.actions=new Proxy(this.reduxSlice.actions,{get:(n,i,a)=>{let s=i,c=n[s];return c?(...p)=>{let f=c(...p);return this.reduxStore.dispatch(f),f}:p=>{this.setState({[s]:p})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var Yo=m(R());var Ko=class extends ut{async listMySearches(){let e=P.getState().session;return e?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var Zo=class extends ut{async listMyBookmarks(){let e=P.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var kp="ft-user-assets",qo=Yo.FtReduxStore.get({name:kp,initialState:{savedSearches:void 0,bookmarks:void 0}}),di=class{constructor(){this.currentSession=P.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Zo,this.savedSearchesService=new Ko,P.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:o}=P.getState();(0,Yo.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),qo.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),qo.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();qo.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let o=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;qo.actions.bookmarks(o)}}},Ss=new di;var pi=class{addCommand(e,o=!1){P.commands.add(e,o)}consumeCommand(e){return P.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new pi;var Os=m(R()),fi=class{highlightHtml(e,o,n){(0,Os.highlightHtml)(e,o,n)}};window.FluidTopicsHighlightHtmlService=new fi;var Cs=m(R());var ui=class{isDate(e){var o,n,i,a;return(a=(i=((n=(o=P.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]).find(c=>c.key===e))===null||i===void 0?void 0:i.date)!==null&&a!==void 0?a:!1}format(e,o){var n,i,a;return Cs.DateFormatter.format(e,(n=o?.locale)!==null&&n!==void 0?n:P.getState().uiLocale,(i=o?.longFormat)!==null&&i!==void 0?i:!1,(a=o?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new ui;var _p=m(R());(0,Es.customElement)("ft-app-context")(oe);var Xo=class extends ut{async launchSearch(e){return this.cache.get(this.hash(e),async()=>(await this.awaitApi).search(e),2*60*1e3)}async launchSuggest(e){return this.cache.get(this.hash(e),async()=>(await this.awaitApi).getSuggestions(e),2*60*1e3)}async getAvailableSearchLocales(){return this.cache.get("available-locales",async()=>(await this.awaitApi).getAvailableSearchLocales())}hash(e){return""+Array.from(JSON.stringify(e)).reduce((o,n)=>0|31*o+n.charCodeAt(0),0)}};var ao=t=>t.request.virtualField===Ar.TITLE_ONLY&&t.request.scope===Rr.DOCUMENTS,Qo=class t extends Event{constructor(){super(t.eventName)}};Qo.eventName="search-context-clear-all-filters";var io=class t{static build(e,o){return new t(la(e.trim()||"context"),o)}constructor(e,o){this.store=e,this.ignoreEmptyQuery=!1,this.openExternalDocumentInNewTab=!1,this.localesDebouncer=new yt.Debouncer(10),this.searchDebouncer=new yt.Debouncer(100),this.suggestDebouncer=new yt.Debouncer(300),this.service=o??new Xo,this.service.cache.addEventListener("clear-cache",n=>{n.detail.clearedKeys.includes("available-locales")&&this.updateLocales()})}async initService(){return this.updateLocales(),this.launchSearch()}setQuery(e){this.store.actions.setRequestQuery(e),this.store.actions.liveQuery(e),this.store.actions.setPageNumber(1),this.launchSearch()}setContentLocale(e){var o;let n=(o=this.store.getState().locales)!==null&&o!==void 0?o:[],i=this.store.getState().request.contentLocale;if(e!=i){if(n.length>0){let a=s=>n.some(c=>c.lang==s);a(e)||(e=a(i)?i:n[0].lang)}this.store.actions.setRequestContentLocale(e),this.store.actions.setPageNumber(1),this.store.actions.setRequestFilters([]),this.launchSearch()}return e}forceContentLocale(e){this.store.actions.setRequestContentLocale(e),this.launchSearch()}setPageSize(e){this.store.actions.setPageSize(e),this.launchSearch()}setPageNumber(e){this.store.actions.setPageNumber(e),this.launchSearch()}setSort(e){this.store.actions.setRequestSort(e),this.store.actions.setPageNumber(1),this.launchSearch()}setFilters(e){let o=e.filter(n=>!n.valueFilter||n.valueFilter.values.length>0);this.store.actions.setRequestFilters(o),this.store.actions.setPageNumber(1),this.launchSearch()}setClusterSortCriterion(e){this.store.actions.setRequestClusterSortCriterion(e),this.launchSearch()}setSearchInDocumentTitlesOnly(e){e?(this.store.actions.setRequestVirtualField(Ar.TITLE_ONLY),this.store.actions.setRequestScope(Rr.DOCUMENTS)):(this.store.actions.setRequestVirtualField(Ar.EVERYWHERE),this.store.actions.setRequestScope(Rr.DEFAULT)),this.launchSearch()}setVirtualField(e){this.store.actions.setRequestVirtualField(e),this.launchSearch()}get searchInDocumentTitlesOnly(){return ao(this.store.getState())}clearAllFilters(){this.setFilters([]),this.store.dispatchEvent(new Qo)}addFacet(e){this.facetIds=[...this.facetIds,e],this.launchSearch()}replaceFacet(e,o){let n=this.facetIds.filter(i=>i!=e);o&&n.push(o),this.facetIds=n,this.launchSearch()}get facetIds(){var e;let o=this.store.getState().request;return[...new Set([...o.facets.map(n=>n.id),...((e=o.metadataFilters)!==null&&e!==void 0?e:[]).map(n=>n.key)])]}set facetIds(e){let n=[...new Set(e)].map(i=>({id:i}));this.store.actions.setRequestFacets(n)}setFilter(e,o){this.setValueFilter(e,o)}setValueFilter(e,o){let n=this.store.getState().request.metadataFilters,i={key:e,valueFilter:{values:o,negative:!1}},a=[...n.filter(s=>!s.valueFilter),...n.filter(s=>s.valueFilter&&s.key!==i.key),i];this.setFilters(a)}setDateFilter(e,o){let n=this.store.getState().request.metadataFilters,i={key:e,dateFilter:{type:o}},a=[...n.filter(s=>!s.dateFilter),...n.filter(s=>s.dateFilter&&s.key!==i.key),i];this.setFilters(a)}removeDateFilter(e){let o=this.store.getState().request.metadataFilters,n=[...o.filter(i=>!i.dateFilter),...o.filter(i=>i.dateFilter&&i.key!==e)];this.setFilters(n)}setRangeFilter(e,o,n){let i=this.store.getState().request.metadataFilters,a={key:e,rangeFilter:{from:o,to:n}},s=[...i.filter(c=>!c.rangeFilter),...i.filter(c=>c.rangeFilter&&c.key!==a.key),a];this.setFilters(s)}removeRangeFilter(e){let o=this.store.getState().request.metadataFilters,n=[...o.filter(i=>!i.rangeFilter),...o.filter(i=>i.rangeFilter&&i.key!==e)];this.setFilters(n)}setLiveQuery(e){this.store.actions.liveQuery(e),this.launchSuggest()}setRequest(e){this.store.actions.setRequest({...e,facets:this.store.getState().request.facets}),this.store.actions.liveQuery(e.query),this.store.actions.setPageNumber(1),this.launchSearch()}setScope(e){this.store.actions.setRequestScope(e),this.launchSearch()}setOtherQueryParams(e){this.store.actions.setOtherQueryParams(e)}setIgnoreEmptyQuery(e){this.ignoreEmptyQuery=e,this.launchSearch()}setOpenExternalDocumentInNewTab(e){this.openExternalDocumentInNewTab=e}updateLocales(){return this.localesDebouncer.run(async()=>this.store.actions.locales((await this.service.getAvailableSearchLocales()).contentLocales))}launchSearch(){return this.launchSuggest(),this.searchDebouncer.run(()=>this.fetchSearchData())}launchSuggest(){return this.suggestDebouncer.run(()=>this.fetchSuggestData())}async fetchSearchData(){var e,o;try{(e=this.cancelableSearch)===null||e===void 0||e.cancel();let n={...this.store.getState().request,facets:this.facetIds.map(i=>({id:i}))};if(this.store.actions.paging(void 0),this.ignoreEmptyQuery&&n.query.length==0)this.store.actions.results(void 0),this.store.actions.facets(void 0),this.store.actions.spellcheck(void 0);else{this.cancelableSearch=(0,yt.cancelable)(this.service.launchSearch(n));let i=await this.cancelableSearch;if(i.paging.currentPage<=1)this.store.actions.results(i.results),this.store.actions.facets(i.facets),this.store.actions.spellcheck(i.spellcheck);else{let a=((o=this.store.getState().results)!==null&&o!==void 0?o:[]).concat(i.results);this.store.actions.results(a)}this.store.actions.paging(i.paging)}}catch(n){!(n instanceof yt.CanceledPromiseError)&&this.errorHandler&&this.errorHandler(n)}}async fetchSuggestData(){var e;try{let o=this.store.getState(),n=o.request,i={input:o.liveQuery,metadataFilters:n.metadataFilters,sort:n.sort,contentLocale:n.contentLocale,scope:n.scope};(e=this.cancelableSuggest)===null||e===void 0||e.cancel(),this.cancelableSuggest=(0,yt.cancelable)(this.service.launchSuggest(i));let a=await this.cancelableSuggest;this.store.actions.suggestResults(a.suggestions)}catch(o){!(o instanceof yt.CanceledPromiseError)&&this.errorHandler&&this.errorHandler(o)}}clear(){this.store.clear()}clearResults(){this.store.actions.paging(void 0),this.store.actions.results(void 0),this.store.actions.facets(void 0),this.store.actions.spellcheck(void 0)}};var $p=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},yi=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},hi=Symbol("registerInterval");function Dp(t){var e;class o extends t{constructor(){super(...arguments),this[e]=0}setSearchStateManager(i){this.clearStateManager(),this.stateManager=i,this.addStore(i.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[hi]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[hi]):this.dispatchEvent(new yi)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=hi,$p([(0,As.state)()],o.prototype,"stateManager",void 0),o}var Ht=class extends Dp(ws.FtLitElementRedux){};var Wi=m(R());var bn=m(_()),Le=m(G()),Fc=m(Vt()),Zr=m(R());var Bs=m(R());var $s=m(_()),ve=m(G()),Ds=m(Vt()),so=m(R());var ks=m(_()),le=m(R()),Ns=le.FtCssVariableFactory.extend("--ft-ripple-color","",le.designSystemVariables.colorContent),E={color:Ns,backgroundColor:le.FtCssVariableFactory.extend("--ft-ripple-background-color","",Ns),opacityContentOnSurfacePressed:le.FtCssVariableFactory.external(le.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:le.FtCssVariableFactory.external(le.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:le.FtCssVariableFactory.external(le.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:le.FtCssVariableFactory.external(le.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:le.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},Ls=le.FtCssVariableFactory.extend("--ft-ripple-color","",le.designSystemVariables.colorPrimary),Is={color:Ls,backgroundColor:le.FtCssVariableFactory.extend("--ft-ripple-background-color","",Ls)},Ts=le.FtCssVariableFactory.extend("--ft-ripple-color","",le.designSystemVariables.colorSecondary),Ps={color:Ts,backgroundColor:le.FtCssVariableFactory.extend("--ft-ripple-background-color","",Ts)},_s=ks.css`
|
|
16
16
|
:host {
|
|
17
17
|
display: contents;
|
|
18
18
|
}
|
|
@@ -147,7 +147,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
147
147
|
line-height: ${e.lineHeight};
|
|
148
148
|
text-transform: ${e.textCase};
|
|
149
149
|
}
|
|
150
|
-
`}var Rl=A.FtCssVariableFactory.extend("--ft-typography-font-family","",A.designSystemVariables.titleFont),Ct=A.FtCssVariableFactory.extend("--ft-typography-font-family","",A.designSystemVariables.contentFont),N={fontFamily:Ct,fontSize:A.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:A.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:A.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:A.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:A.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},$r={fontFamily:A.FtCssVariableFactory.extend("--ft-typography-title-font-family","",Rl),fontSize:A.FtCssVariableFactory.extend("--ft-typography-title-font-size","",N.fontSize,"20px"),fontWeight:A.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",N.fontWeight,"normal"),letterSpacing:A.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",N.letterSpacing,"0.15px"),lineHeight:A.FtCssVariableFactory.extend("--ft-typography-title-line-height","",N.lineHeight,"1.2"),textTransform:A.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",N.textTransform,"inherit")},Dr={fontFamily:A.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",Rl),fontSize:A.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",N.fontSize,"14px"),fontWeight:A.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",N.fontWeight,"normal"),letterSpacing:A.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",N.letterSpacing,"0.105px"),lineHeight:A.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",N.lineHeight,"1.7"),textTransform:A.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",N.textTransform,"inherit")},Br={fontFamily:A.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",Ct),fontSize:A.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",N.fontSize,"16px"),fontWeight:A.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",N.fontWeight,"600"),letterSpacing:A.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",N.letterSpacing,"0.144px"),lineHeight:A.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",N.lineHeight,"1.5"),textTransform:A.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",N.textTransform,"inherit")},Fr={fontFamily:A.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",Ct),fontSize:A.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",N.fontSize,"14px"),fontWeight:A.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",N.fontWeight,"normal"),letterSpacing:A.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",N.letterSpacing,"0.098px"),lineHeight:A.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",N.lineHeight,"1.7"),textTransform:A.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",N.textTransform,"inherit")},Mr={fontFamily:A.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",Ct),fontSize:A.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",N.fontSize,"16px"),fontWeight:A.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",N.fontWeight,"normal"),letterSpacing:A.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",N.letterSpacing,"0.496px"),lineHeight:A.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",N.lineHeight,"1.5"),textTransform:A.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",N.textTransform,"inherit")},
|
|
150
|
+
`}var Rl=A.FtCssVariableFactory.extend("--ft-typography-font-family","",A.designSystemVariables.titleFont),Ct=A.FtCssVariableFactory.extend("--ft-typography-font-family","",A.designSystemVariables.contentFont),N={fontFamily:Ct,fontSize:A.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:A.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:A.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:A.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:A.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},$r={fontFamily:A.FtCssVariableFactory.extend("--ft-typography-title-font-family","",Rl),fontSize:A.FtCssVariableFactory.extend("--ft-typography-title-font-size","",N.fontSize,"20px"),fontWeight:A.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",N.fontWeight,"normal"),letterSpacing:A.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",N.letterSpacing,"0.15px"),lineHeight:A.FtCssVariableFactory.extend("--ft-typography-title-line-height","",N.lineHeight,"1.2"),textTransform:A.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",N.textTransform,"inherit")},Dr={fontFamily:A.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",Rl),fontSize:A.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",N.fontSize,"14px"),fontWeight:A.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",N.fontWeight,"normal"),letterSpacing:A.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",N.letterSpacing,"0.105px"),lineHeight:A.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",N.lineHeight,"1.7"),textTransform:A.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",N.textTransform,"inherit")},Br={fontFamily:A.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",Ct),fontSize:A.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",N.fontSize,"16px"),fontWeight:A.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",N.fontWeight,"600"),letterSpacing:A.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",N.letterSpacing,"0.144px"),lineHeight:A.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",N.lineHeight,"1.5"),textTransform:A.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",N.textTransform,"inherit")},Fr={fontFamily:A.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",Ct),fontSize:A.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",N.fontSize,"14px"),fontWeight:A.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",N.fontWeight,"normal"),letterSpacing:A.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",N.letterSpacing,"0.098px"),lineHeight:A.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",N.lineHeight,"1.7"),textTransform:A.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",N.textTransform,"inherit")},Mr={fontFamily:A.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",Ct),fontSize:A.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",N.fontSize,"16px"),fontWeight:A.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",N.fontWeight,"normal"),letterSpacing:A.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",N.letterSpacing,"0.496px"),lineHeight:A.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",N.lineHeight,"1.5"),textTransform:A.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",N.textTransform,"inherit")},de={fontFamily:A.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",Ct),fontSize:A.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",N.fontSize,"14px"),fontWeight:A.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",N.fontWeight,"normal"),letterSpacing:A.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",N.letterSpacing,"0.252px"),lineHeight:A.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",N.lineHeight,"1.4"),textTransform:A.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",N.textTransform,"inherit")},Ur={fontFamily:A.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",Ct),fontSize:A.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",N.fontSize,"12px"),fontWeight:A.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",N.fontWeight,"normal"),letterSpacing:A.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",N.letterSpacing,"0.396px"),lineHeight:A.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",N.lineHeight,"1.33"),textTransform:A.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",N.textTransform,"inherit")},zr={fontFamily:A.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",Ct),fontSize:A.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",N.fontSize,"10px"),fontWeight:A.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",N.fontWeight,"normal"),letterSpacing:A.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",N.letterSpacing,"0.33px"),lineHeight:A.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",N.lineHeight,"1.6"),textTransform:A.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",N.textTransform,"inherit")},Wr={fontFamily:A.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",Ct),fontSize:A.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",N.fontSize,"10px"),fontWeight:A.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",N.fontWeight,"normal"),letterSpacing:A.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",N.letterSpacing,"1.5px"),lineHeight:A.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",N.lineHeight,"1.6"),textTransform:A.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",N.textTransform,"uppercase")},mt={fontFamily:A.FtCssVariableFactory.extend("--ft-typography-button-font-family","",Ct),fontSize:A.FtCssVariableFactory.extend("--ft-typography-button-font-size","",N.fontSize,"14px"),fontWeight:A.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",N.fontWeight,"600"),letterSpacing:A.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",N.letterSpacing,"1.246px"),lineHeight:A.FtCssVariableFactory.extend("--ft-typography-button-line-height","",N.lineHeight,"1.15"),textTransform:A.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",N.textTransform,"uppercase")},Nl=Ye.css`
|
|
151
151
|
.ft-typography--title {
|
|
152
152
|
font-family: ${$r.fontFamily};
|
|
153
153
|
font-size: ${$r.fontSize};
|
|
@@ -195,12 +195,12 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
195
195
|
}
|
|
196
196
|
`,kl=Ye.css`
|
|
197
197
|
.ft-typography--body2 {
|
|
198
|
-
font-family: ${
|
|
199
|
-
font-size: ${
|
|
200
|
-
font-weight: ${
|
|
201
|
-
letter-spacing: ${
|
|
202
|
-
line-height: ${
|
|
203
|
-
text-transform: ${
|
|
198
|
+
font-family: ${de.fontFamily};
|
|
199
|
+
font-size: ${de.fontSize};
|
|
200
|
+
font-weight: ${de.fontWeight};
|
|
201
|
+
letter-spacing: ${de.letterSpacing};
|
|
202
|
+
line-height: ${de.lineHeight};
|
|
203
|
+
text-transform: ${de.textTransform};
|
|
204
204
|
}
|
|
205
205
|
`,an=Ye.css`
|
|
206
206
|
.ft-typography--caption {
|
|
@@ -250,7 +250,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
250
250
|
</${Ci(this.element)}>
|
|
251
251
|
`:Ei`
|
|
252
252
|
<slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
|
|
253
|
-
`}};q.styles=[Nl,Ll,Il,Tl,Pl,kl,an,_l,$l,Dl,Bl,...Fl];Ml([(0,wi.property)()],q.prototype,"element",void 0);Ml([(0,wi.property)()],q.prototype,"variant",void 0);(0,zl.customElement)("ft-typography")(q);var Zl=m(R());var uo=m(_()),fr=m(G()),jl=m(R()),Kl=m(Hl());var Hr;(function(t){t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.BOOKS="",t.MENU="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.HOME="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.EXPORT="",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.USER="",t.EXTLINK="",t.CALENDAR="",t.OFFLINE="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.STAR_PLAIN="",t.TOPICS="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN="",t.ADMIN_KHUB="",t.ADMIN_THEME="",t.ADMIN_USERS="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.EXPAND="",t.COMPRESS="",t.INFO="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.FACET_HAS_DESCENDANT="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.THIN_ARROW="",t.SIGN_IN="",t.LOGOUT="",t.TRANSLATE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.ARTICLE="",t.COLUMNS="",t.ANALYTICS="",t.COLLECTIONS="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="",t.SEARCH_IN_PUBLICATION="",t.COPY_TO_CLIPBOARD="",t.SHARED_PBK="",t.ATTACHMENTS="",t.STRIPE_ARROW_LEFT="",t.STRIPE_ARROW_RIGHT="",t.FILTERS="",t.DOT="",t.MINUS="",t.PLUS="",t.MAILS_AND_NOTIFICATIONS="",t.SAVE="",t.LOCKER="",t.ADMIN_INTEGRATION="",t.SYNC="",t.TAG="",t.BOOK_PLAIN="",t.UPLOAD="",t.ONLINE="",t.TAG_PLAIN="",t.ACCOUNT_SETTINGS="",t.PRINT="",t.DEFAULT_ROLES="",t.SHORTCUT_MENU="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.PAUSE="",t.PLAY="",t.ADMIN_PORTAL="",t.STAR="",t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.FEEDBACK_PLAIN="",t.RATE_PLAIN="",t.RATE="",t.OFFLINE_SETTINGS="",t.MY_COLLECTIONS="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.RESET="",t.MY_LIBRARY="",t.UNSTRUCTURED_DOC="",t.CONTEXTUAL="",t.THIN_ARROW_UP="",t.ARROW_RIGHT_TO_LINE="",t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.LINE_CHART="",t.STACKED_CHART="",t.CHART_BAR_STACKED="",t.CHART_BAR_GROUPED="",t.EYE_SLASH="",t.X_MARK="",t.EXPAND_WIDE="",t.PIP="",t.PIP_WIDE="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.EXTLINK_LIGHT="",t.CLONE="",t.CLONE_LINK_SIMPLE="",t.CHART_BAR_NORMALIZED="",t.CONSUMER="",t.OCTAGON_XMARK="",t.HOURGLASS_HALF="",t.CLOCK="",t.CLOCK_THREE="",t.CALENDAR_DAY="",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="",t.WAND_MAGIC_SPARKLES="",t.PAPER_PLANE="",t.PAPER_PLANE_SLASH="",t.CIRCLE_STOP="",t.ARROW_ROTATE_RIGHT="",t.ARROW_ROTATE_LEFT="",t.ARROWS_ROTATE="",t.ALIGN_RIGHT="",t.FORMAT_CLEAR="",t.ALIGN_CENTER="",t.ALIGN_LEFT="",t.PALETTE="",t.BOLD="",t.ITALIC="",t.UNDERLINE="",t.STRIKETHROUGH="",t.LINK_SIMPLE_SLASH="",t.LINK_SIMPLE="",t.ROUTE="",t.CIRCLE_USER_SLASH="",t.CIRCLE_USER_CHECK="",t.LIST_MAGNIFYING_GLASS="",t.MEDAL="",t.THUMBS_UP_THUMBS_DOWN_SOLID="",t.ARROW_TURN_DOWN_RIGHT="",t.FLASK="",t.LOCK_KEYHOLE_OPEN_SOLID="",t.HOURGLASS_END="",t.CIRCLE_QUESTION="",t.EYE="",t.SHARE="󨃱",t.GRIP_LINES_SOLID="",t.TRANSLATE_SPARKLE_SOLID="",t.CODE=""})(Hr||(Hr={}));var w;(function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""})(w||(w={}));var Mx=new Map([...["abw"].map(t=>[t,w.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(t=>[t,w.AUDIO]),...["avi"].map(t=>[t,w.AVI]),...["chm","xhs"].map(t=>[t,w.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(t=>[t,w.CODE]),...["csv"].map(t=>[t,w.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,w.DITA]),...["epub"].map(t=>[t,w.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,w.EXCEL]),...["flac"].map(t=>[t,w.FLAC]),...["gif"].map(t=>[t,w.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,w.GZIP]),...["html","htm","xhtml"].map(t=>[t,w.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(t=>[t,w.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,w.JPEG]),...["json"].map(t=>[t,w.JSON]),...["m4a","m4p"].map(t=>[t,w.M4A]),...["mov","qt"].map(t=>[t,w.MOV]),...["mp3"].map(t=>[t,w.MP3]),...["mp4","m4v"].map(t=>[t,w.MP4]),...["ogg","oga"].map(t=>[t,w.OGG]),...["pdf","ps"].map(t=>[t,w.PDF]),...["png"].map(t=>[t,w.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,w.POWERPOINT]),...["rar"].map(t=>[t,w.RAR]),...["stp"].map(t=>[t,w.STP]),...["txt","rtf","md","mdown"].map(t=>[t,w.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(t=>[t,w.VIDEO]),...["wav"].map(t=>[t,w.WAV]),...["wma"].map(t=>[t,w.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,w.WORD]),...["xml","xsl","rdf"].map(t=>[t,w.XML]),...["yaml","yml","x-yaml"].map(t=>[t,w.YAML]),...["zip"].map(t=>[t,w.ZIP])]);var Ux={[w.ABW]:"#91ABC6",[w.AUDIO]:"#1795E3",[w.AVI]:"#E63324",[w.CHM]:"#71C3EB",[w.CODE]:"#71C3EB",[w.CSV]:"#1F7345",[w.DITA]:"#71C3EB",[w.EPUB]:"#85B926",[w.EXCEL]:"#1F7345",[w.FLAC]:"#1795E3",[w.GIF]:"#59B031",[w.GZIP]:"#F8AB36",[w.HTML]:"#71C3EB",[w.IMAGE]:"#59B031",[w.JPEG]:"#59B031",[w.JSON]:"#71C3EB",[w.M4A]:"#1795E3",[w.MOV]:"#E63324",[w.MP3]:"#1795E3",[w.MP4]:"#E63324",[w.OGG]:"#1795E3",[w.PDF]:"#E44948",[w.PNG]:"#59B031",[w.POWERPOINT]:"#B54A2B",[w.RAR]:"#F8AB36",[w.STP]:"#3764B1",[w.TEXT]:"#3162AB",[w.UNKNOWN]:"#999999",[w.VIDEO]:"#E63324",[w.WAV]:"#1795E3",[w.WMA]:"#1795E3",[w.WORD]:"#3162AB",[w.XML]:"#71C3EB",[w.YAML]:"#71C3EB",[w.ZIP]:"#F8AB36"};var Vl=m(_()),Et=m(R()),
|
|
253
|
+
`}};q.styles=[Nl,Ll,Il,Tl,Pl,kl,an,_l,$l,Dl,Bl,...Fl];Ml([(0,wi.property)()],q.prototype,"element",void 0);Ml([(0,wi.property)()],q.prototype,"variant",void 0);(0,zl.customElement)("ft-typography")(q);var Zl=m(R());var uo=m(_()),fr=m(G()),jl=m(R()),Kl=m(Hl());var Hr;(function(t){t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.BOOKS="",t.MENU="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.HOME="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.EXPORT="",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.USER="",t.EXTLINK="",t.CALENDAR="",t.OFFLINE="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.STAR_PLAIN="",t.TOPICS="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN="",t.ADMIN_KHUB="",t.ADMIN_THEME="",t.ADMIN_USERS="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.EXPAND="",t.COMPRESS="",t.INFO="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.FACET_HAS_DESCENDANT="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.THIN_ARROW="",t.SIGN_IN="",t.LOGOUT="",t.TRANSLATE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.ARTICLE="",t.COLUMNS="",t.ANALYTICS="",t.COLLECTIONS="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="",t.SEARCH_IN_PUBLICATION="",t.COPY_TO_CLIPBOARD="",t.SHARED_PBK="",t.ATTACHMENTS="",t.STRIPE_ARROW_LEFT="",t.STRIPE_ARROW_RIGHT="",t.FILTERS="",t.DOT="",t.MINUS="",t.PLUS="",t.MAILS_AND_NOTIFICATIONS="",t.SAVE="",t.LOCKER="",t.ADMIN_INTEGRATION="",t.SYNC="",t.TAG="",t.BOOK_PLAIN="",t.UPLOAD="",t.ONLINE="",t.TAG_PLAIN="",t.ACCOUNT_SETTINGS="",t.PRINT="",t.DEFAULT_ROLES="",t.SHORTCUT_MENU="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.PAUSE="",t.PLAY="",t.ADMIN_PORTAL="",t.STAR="",t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.FEEDBACK_PLAIN="",t.RATE_PLAIN="",t.RATE="",t.OFFLINE_SETTINGS="",t.MY_COLLECTIONS="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.RESET="",t.MY_LIBRARY="",t.UNSTRUCTURED_DOC="",t.CONTEXTUAL="",t.THIN_ARROW_UP="",t.ARROW_RIGHT_TO_LINE="",t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.LINE_CHART="",t.STACKED_CHART="",t.CHART_BAR_STACKED="",t.CHART_BAR_GROUPED="",t.EYE_SLASH="",t.X_MARK="",t.EXPAND_WIDE="",t.PIP="",t.PIP_WIDE="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.EXTLINK_LIGHT="",t.CLONE="",t.CLONE_LINK_SIMPLE="",t.CHART_BAR_NORMALIZED="",t.CONSUMER="",t.OCTAGON_XMARK="",t.HOURGLASS_HALF="",t.CLOCK="",t.CLOCK_THREE="",t.CALENDAR_DAY="",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="",t.WAND_MAGIC_SPARKLES="",t.PAPER_PLANE="",t.PAPER_PLANE_SLASH="",t.CIRCLE_STOP="",t.ARROW_ROTATE_RIGHT="",t.ARROW_ROTATE_LEFT="",t.ARROWS_ROTATE="",t.ALIGN_RIGHT="",t.FORMAT_CLEAR="",t.ALIGN_CENTER="",t.ALIGN_LEFT="",t.PALETTE="",t.BOLD="",t.ITALIC="",t.UNDERLINE="",t.STRIKETHROUGH="",t.LINK_SIMPLE_SLASH="",t.LINK_SIMPLE="",t.ROUTE="",t.CIRCLE_USER_SLASH="",t.CIRCLE_USER_CHECK="",t.LIST_MAGNIFYING_GLASS="",t.MEDAL="",t.THUMBS_UP_THUMBS_DOWN_SOLID="",t.ARROW_TURN_DOWN_RIGHT="",t.FLASK="",t.LOCK_KEYHOLE_OPEN_SOLID="",t.HOURGLASS_END="",t.CIRCLE_QUESTION="",t.EYE="",t.SHARE="󨃱",t.GRIP_LINES_SOLID="",t.TRANSLATE_SPARKLE_SOLID="",t.CODE=""})(Hr||(Hr={}));var w;(function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""})(w||(w={}));var Mx=new Map([...["abw"].map(t=>[t,w.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(t=>[t,w.AUDIO]),...["avi"].map(t=>[t,w.AVI]),...["chm","xhs"].map(t=>[t,w.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(t=>[t,w.CODE]),...["csv"].map(t=>[t,w.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,w.DITA]),...["epub"].map(t=>[t,w.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,w.EXCEL]),...["flac"].map(t=>[t,w.FLAC]),...["gif"].map(t=>[t,w.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,w.GZIP]),...["html","htm","xhtml"].map(t=>[t,w.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(t=>[t,w.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,w.JPEG]),...["json"].map(t=>[t,w.JSON]),...["m4a","m4p"].map(t=>[t,w.M4A]),...["mov","qt"].map(t=>[t,w.MOV]),...["mp3"].map(t=>[t,w.MP3]),...["mp4","m4v"].map(t=>[t,w.MP4]),...["ogg","oga"].map(t=>[t,w.OGG]),...["pdf","ps"].map(t=>[t,w.PDF]),...["png"].map(t=>[t,w.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,w.POWERPOINT]),...["rar"].map(t=>[t,w.RAR]),...["stp"].map(t=>[t,w.STP]),...["txt","rtf","md","mdown"].map(t=>[t,w.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(t=>[t,w.VIDEO]),...["wav"].map(t=>[t,w.WAV]),...["wma"].map(t=>[t,w.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,w.WORD]),...["xml","xsl","rdf"].map(t=>[t,w.XML]),...["yaml","yml","x-yaml"].map(t=>[t,w.YAML]),...["zip"].map(t=>[t,w.ZIP])]);var Ux={[w.ABW]:"#91ABC6",[w.AUDIO]:"#1795E3",[w.AVI]:"#E63324",[w.CHM]:"#71C3EB",[w.CODE]:"#71C3EB",[w.CSV]:"#1F7345",[w.DITA]:"#71C3EB",[w.EPUB]:"#85B926",[w.EXCEL]:"#1F7345",[w.FLAC]:"#1795E3",[w.GIF]:"#59B031",[w.GZIP]:"#F8AB36",[w.HTML]:"#71C3EB",[w.IMAGE]:"#59B031",[w.JPEG]:"#59B031",[w.JSON]:"#71C3EB",[w.M4A]:"#1795E3",[w.MOV]:"#E63324",[w.MP3]:"#1795E3",[w.MP4]:"#E63324",[w.OGG]:"#1795E3",[w.PDF]:"#E44948",[w.PNG]:"#59B031",[w.POWERPOINT]:"#B54A2B",[w.RAR]:"#F8AB36",[w.STP]:"#3764B1",[w.TEXT]:"#3162AB",[w.UNKNOWN]:"#999999",[w.VIDEO]:"#E63324",[w.WAV]:"#1795E3",[w.WMA]:"#1795E3",[w.WORD]:"#3162AB",[w.XML]:"#71C3EB",[w.YAML]:"#71C3EB",[w.ZIP]:"#F8AB36"};var Vl=m(_()),Et=m(R()),ce={size:Et.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:Et.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",Et.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:Et.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",Et.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:Et.FtCssVariableFactory.extend("--ft-icon-material-font-family","",Et.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:Et.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Gl=Vl.css`
|
|
254
254
|
:host, i.ft-icon {
|
|
255
255
|
display: inline-flex;
|
|
256
256
|
align-items: center;
|
|
@@ -259,14 +259,14 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
259
259
|
}
|
|
260
260
|
|
|
261
261
|
:host {
|
|
262
|
-
width: ${
|
|
263
|
-
height: ${
|
|
262
|
+
width: ${ce.size};
|
|
263
|
+
height: ${ce.size};
|
|
264
264
|
}
|
|
265
265
|
|
|
266
266
|
i.ft-icon {
|
|
267
267
|
width: 100%;
|
|
268
268
|
height: 100%;
|
|
269
|
-
font-size: ${
|
|
269
|
+
font-size: ${ce.size};
|
|
270
270
|
line-height: 1;
|
|
271
271
|
font-weight: normal;
|
|
272
272
|
text-transform: none;
|
|
@@ -277,26 +277,26 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
277
277
|
text-rendering: auto;
|
|
278
278
|
-webkit-font-smoothing: antialiased;
|
|
279
279
|
-moz-osx-font-smoothing: grayscale;
|
|
280
|
-
vertical-align: ${
|
|
280
|
+
vertical-align: ${ce.verticalAlign};
|
|
281
281
|
}
|
|
282
282
|
|
|
283
283
|
i.ft-icon.ft-icon--fluid-topics {
|
|
284
|
-
font-family: ${
|
|
284
|
+
font-family: ${ce.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
285
285
|
|
|
286
286
|
/* Ugly fix because font is broken */
|
|
287
|
-
font-size: calc(0.75 * ${
|
|
288
|
-
line-height: ${
|
|
287
|
+
font-size: calc(0.75 * ${ce.size});
|
|
288
|
+
line-height: ${ce.size};
|
|
289
289
|
position: relative;
|
|
290
290
|
top: -4%;
|
|
291
291
|
justify-content: center;
|
|
292
292
|
}
|
|
293
293
|
|
|
294
294
|
.ft-icon--file-format {
|
|
295
|
-
font-family: ${
|
|
295
|
+
font-family: ${ce.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
296
296
|
}
|
|
297
297
|
|
|
298
298
|
.ft-icon--material {
|
|
299
|
-
font-family: ${
|
|
299
|
+
font-family: ${ce.materialFontFamily}, "Material Icons", sans-serif;
|
|
300
300
|
}
|
|
301
301
|
`;var Xe;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(Xe||(Xe={}));var sn=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},ye=class extends jl.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=uo.nothing}render(){let e=this.variant&&Object.values(Xe).includes(this.variant)?this.variant:Xe.fluid_topics,o=e!==Xe.material||!!this.value;return uo.html`
|
|
302
302
|
<i class="ft-icon ft-icon--${e}" part="icon icon-${e}">
|
|
@@ -415,7 +415,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
415
415
|
|
|
416
416
|
--ft-button-internal-line-height: max(calc(${V.fontSize} + 2px), ${V.iconSize});
|
|
417
417
|
--ft-button-internal-color: ${V.color};
|
|
418
|
-
${(0,D.setVariable)(
|
|
418
|
+
${(0,D.setVariable)(ce.size,V.iconSize)};
|
|
419
419
|
${(0,D.setVariable)(E.color,V.rippleColor)};
|
|
420
420
|
|
|
421
421
|
border-radius: ${V.borderRadius};
|
|
@@ -509,7 +509,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
509
509
|
${(0,D.setVariable)(Q.size,V.iconSize)};
|
|
510
510
|
${(0,D.setVariable)(Q.color,"var(--ft-button-internal-color)")};
|
|
511
511
|
}
|
|
512
|
-
`,D.noTextSelect];var Yt=m(R());var Rc=m(R());var Ac=m(_()),
|
|
512
|
+
`,D.noTextSelect];var Yt=m(R());var Rc=m(R());var Ac=m(_()),pe=m(G()),vo=m(R());var tc=m(_()),wt=m(R()),Vr={distance:wt.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:wt.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:wt.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:wt.FtCssVariableFactory.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:wt.FtCssVariableFactory.external(wt.designSystemVariables.borderRadiusS,"Design system"),maxWidth:wt.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},rc=tc.css`
|
|
513
513
|
.ft-tooltip--container {
|
|
514
514
|
display: block;
|
|
515
515
|
}
|
|
@@ -556,14 +556,14 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
556
556
|
</div>
|
|
557
557
|
</div>
|
|
558
558
|
</div>
|
|
559
|
-
`}updated(e){e.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(o=>e.has(o))&&this.visible&&this.positionTooltip()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(o=>o.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",wc(this.slottedElement,this.tooltip,this.position).then(({x:e,y:o})=>{this.tooltip&&(this.tooltip.style.left=`${e}px`,this.tooltip.style.top=`${o}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout(()=>window.addEventListener("touchstart",e=>{e.composedPath().includes(this.container)||this.onOut()},{once:!0}),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(e,o){return Math.max(e,Math.min(0,-o))}};J.elementDefinitions={"ft-typography":q};J.styles=rc;De([(0,
|
|
559
|
+
`}updated(e){e.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(o=>e.has(o))&&this.visible&&this.positionTooltip()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(o=>o.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",wc(this.slottedElement,this.tooltip,this.position).then(({x:e,y:o})=>{this.tooltip&&(this.tooltip.style.left=`${e}px`,this.tooltip.style.top=`${o}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout(()=>window.addEventListener("touchstart",e=>{e.composedPath().includes(this.container)||this.onOut()},{once:!0}),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(e,o){return Math.max(e,Math.min(0,-o))}};J.elementDefinitions={"ft-typography":q};J.styles=rc;De([(0,pe.property)()],J.prototype,"text",void 0);De([(0,pe.property)({type:Boolean})],J.prototype,"manual",void 0);De([(0,pe.property)({type:Boolean})],J.prototype,"inline",void 0);De([(0,pe.property)({type:Number})],J.prototype,"delay",void 0);De([(0,pe.property)()],J.prototype,"position",void 0);De([(0,pe.queryAssignedNodes)()],J.prototype,"slotNodes",void 0);De([(0,pe.query)(".ft-tooltip--container")],J.prototype,"container",void 0);De([(0,pe.query)(".ft-tooltip")],J.prototype,"tooltip",void 0);De([(0,pe.query)(".ft-tooltip--content")],J.prototype,"tooltipContent",void 0);De([(0,pe.state)()],J.prototype,"visible",void 0);De([(0,pe.eventOptions)({passive:!0})],J.prototype,"onTouch",null);De([(0,pe.eventOptions)({passive:!0})],J.prototype,"onHover",null);De([(0,pe.eventOptions)({passive:!0})],J.prototype,"onOut",null);De([(0,pe.eventOptions)({passive:!0})],J.prototype,"onClick",null);(0,Rc.customElement)("ft-tooltip")(J);var Ic=m(R());var Nc=m(_()),Lc=m(R());var yr=class extends Lc.FtLitElement{render(){return Nc.html`
|
|
560
560
|
<div class="ft-loader">
|
|
561
561
|
<div></div>
|
|
562
562
|
<div></div>
|
|
563
563
|
<div></div>
|
|
564
564
|
<div></div>
|
|
565
565
|
</div>
|
|
566
|
-
`}};yr.styles=Yl;(0,Ic.customElement)("ft-loader")(yr);var qt=m(_()),Bi=m(Vt()),
|
|
566
|
+
`}};yr.styles=Yl;(0,Ic.customElement)("ft-loader")(yr);var qt=m(_()),Bi=m(Vt()),fe=m(G()),Se=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},ee=class extends(0,Yt.toFtFormComponent)(Yt.FtLitElement,"button"){get buttonClasses(){return{}}get typographyVariant(){return""}constructor(){super(),this.href=void 0,this.target=void 0,this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.ariaLabel=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.addEventListener("click",e=>{var o;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((o=this.form)===null||o===void 0||o.requestSubmit())})}render(){var e,o,n;let i=qt.html`
|
|
567
567
|
<ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
|
|
568
568
|
<ft-typography part="label"
|
|
569
569
|
variant=${this.typographyVariant}
|
|
@@ -600,7 +600,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
600
600
|
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
|
|
601
601
|
`:qt.html`
|
|
602
602
|
<slot part="icon" name="icon"></slot>
|
|
603
|
-
`}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}focusWithoutTooltip(){var e;this.setTooltipManual(!0),(e=this.button)===null||e===void 0||e.focus(),this.setTooltipManual(!1)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}getLabel(){return this.label||this.textContent}get textContent(){return(0,Yt.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};ee.elementDefinitions={"ft-ripple":H,"ft-tooltip":J,"ft-typography":q,"ft-icon":ye,"ft-loader":yr};Se([(0,
|
|
603
|
+
`}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}focusWithoutTooltip(){var e;this.setTooltipManual(!0),(e=this.button)===null||e===void 0||e.focus(),this.setTooltipManual(!1)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}getLabel(){return this.label||this.textContent}get textContent(){return(0,Yt.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};ee.elementDefinitions={"ft-ripple":H,"ft-tooltip":J,"ft-typography":q,"ft-icon":ye,"ft-loader":yr};Se([(0,fe.property)()],ee.prototype,"href",void 0);Se([(0,fe.property)()],ee.prototype,"target",void 0);Se([(0,fe.property)({type:String,reflect:!0})],ee.prototype,"role",void 0);Se([(0,fe.property)()],ee.prototype,"type",void 0);Se([(0,fe.property)({type:Boolean})],ee.prototype,"disabled",void 0);Se([(0,fe.property)()],ee.prototype,"label",void 0);Se([(0,fe.property)()],ee.prototype,"icon",void 0);Se([(0,fe.property)()],ee.prototype,"iconVariant",void 0);Se([(0,fe.property)({type:Boolean})],ee.prototype,"trailingIcon",void 0);Se([(0,fe.property)({type:Boolean})],ee.prototype,"loading",void 0);Se([(0,fe.property)({attribute:"aria-label"})],ee.prototype,"ariaLabel",void 0);Se([(0,fe.property)()],ee.prototype,"tooltipPosition",void 0);Se([(0,fe.property)({type:Boolean})],ee.prototype,"hideTooltip",void 0);Se([(0,fe.property)({type:Boolean})],ee.prototype,"forceTooltip",void 0);Se([(0,fe.query)(".ft-button")],ee.prototype,"button",void 0);Se([(0,fe.query)(".ft-button--label slot")],ee.prototype,"slottedContent",void 0);Se([(0,fe.query)("[part=tooltip]")],ee.prototype,"tooltip",void 0);var hn=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},Oe=class extends ee{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return"button"}};Oe.styles=[Tc.safariEllipsisFix,ec];hn([(0,So.property)({type:Boolean})],Oe.prototype,"primary",void 0);hn([(0,So.property)({type:Boolean})],Oe.prototype,"outlined",void 0);hn([(0,So.property)({type:Boolean})],Oe.prototype,"dense",void 0);hn([(0,So.property)({type:Boolean})],Oe.prototype,"round",void 0);var Oo=m(G());var mn=m(R());var Pc=m(_()),C=m(R());var kc=[Pc.css`
|
|
604
604
|
:host {
|
|
605
605
|
display: inline-block;
|
|
606
606
|
max-width: 100%;
|
|
@@ -1003,7 +1003,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1003
1003
|
/** Large styles **/
|
|
1004
1004
|
|
|
1005
1005
|
.ftds--size-large {
|
|
1006
|
-
${(0,C.setVariable)(
|
|
1006
|
+
${(0,C.setVariable)(ce.size,u.largeIconSize)};
|
|
1007
1007
|
${(0,C.setVariable)(Q.size,u.largeIconSize)};
|
|
1008
1008
|
|
|
1009
1009
|
height: ${u.largeHeight};
|
|
@@ -1025,7 +1025,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1025
1025
|
/** Small styles **/
|
|
1026
1026
|
|
|
1027
1027
|
.ftds--size-medium {
|
|
1028
|
-
${(0,C.setVariable)(
|
|
1028
|
+
${(0,C.setVariable)(ce.size,u.mediumIconSize)};
|
|
1029
1029
|
${(0,C.setVariable)(Q.size,u.mediumIconSize)};
|
|
1030
1030
|
|
|
1031
1031
|
height: ${u.mediumHeight};
|
|
@@ -1048,7 +1048,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1048
1048
|
/** Small styles **/
|
|
1049
1049
|
|
|
1050
1050
|
.ftds--size-small {
|
|
1051
|
-
${(0,C.setVariable)(
|
|
1051
|
+
${(0,C.setVariable)(ce.size,u.smallIconSize)};
|
|
1052
1052
|
${(0,C.setVariable)(Q.size,u.smallIconSize)};
|
|
1053
1053
|
|
|
1054
1054
|
height: ${u.smallHeight};
|
|
@@ -1066,7 +1066,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1066
1066
|
.ftds--size-small.ft-button--icon-only {
|
|
1067
1067
|
width: ${u.smallIconOnlyWidth};
|
|
1068
1068
|
}
|
|
1069
|
-
`,C.noTextSelect];var yn=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},ot=class extends(0,mn.toFtdsBase)(ee){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=on.brand,this.iconVariant=Xe.fluid_topics}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon,"ft-button--round":this.round,...this.getDesignSystemBaseClasses()}}get typographyVariant(){switch(this.size){case Ne.large:return qe.body2medium;case Ne.medium:return qe.caption1medium;case Ne.small:return qe.caption2medium}}};ot.styles=[mn.safariEllipsisFix,kc];yn([(0,Oo.property)({type:Boolean})],ot.prototype,"primary",void 0);yn([(0,Oo.property)({type:Boolean})],ot.prototype,"secondary",void 0);yn([(0,Oo.property)({type:Boolean})],ot.prototype,"tertiary",void 0);yn([(0,Oo.property)({type:Boolean})],ot.prototype,"round",void 0);(0,Fi.customElement)("ft-button")(Oe);(0,Fi.customElement)("ftds-button")(ot);var _c=B.FtCssVariableFactory.extend("--ft-chip-color","",B.designSystemVariables.colorOnSurface),He={backgroundColor:B.FtCssVariableFactory.extend("--ft-chip-background-color","",B.designSystemVariables.colorSurface),color:_c,fontSize:B.FtCssVariableFactory.extend("--ft-chip-font-size","",
|
|
1069
|
+
`,C.noTextSelect];var yn=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},ot=class extends(0,mn.toFtdsBase)(ee){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=on.brand,this.iconVariant=Xe.fluid_topics}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon,"ft-button--round":this.round,...this.getDesignSystemBaseClasses()}}get typographyVariant(){switch(this.size){case Ne.large:return qe.body2medium;case Ne.medium:return qe.caption1medium;case Ne.small:return qe.caption2medium}}};ot.styles=[mn.safariEllipsisFix,kc];yn([(0,Oo.property)({type:Boolean})],ot.prototype,"primary",void 0);yn([(0,Oo.property)({type:Boolean})],ot.prototype,"secondary",void 0);yn([(0,Oo.property)({type:Boolean})],ot.prototype,"tertiary",void 0);yn([(0,Oo.property)({type:Boolean})],ot.prototype,"round",void 0);(0,Fi.customElement)("ft-button")(Oe);(0,Fi.customElement)("ftds-button")(ot);var _c=B.FtCssVariableFactory.extend("--ft-chip-color","",B.designSystemVariables.colorOnSurface),He={backgroundColor:B.FtCssVariableFactory.extend("--ft-chip-background-color","",B.designSystemVariables.colorSurface),color:_c,fontSize:B.FtCssVariableFactory.extend("--ft-chip-font-size","",de.fontSize),fontWeight:B.FtCssVariableFactory.extend("--ft-chip-font-weight","",de.fontWeight),iconSize:B.FtCssVariableFactory.create("--ft-chip-icon-size","","SIZE","18px"),borderRadius:B.FtCssVariableFactory.create("--ft-chip-border-radius","","SIZE",""),rippleColor:B.FtCssVariableFactory.extend("--ft-chip-ripple-color","",_c),horizontalPadding:B.FtCssVariableFactory.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:B.FtCssVariableFactory.create("--ft-chip-vertical-padding","","SIZE","6px"),borderColor:B.FtCssVariableFactory.extend("--ft-chip-border-color","",B.designSystemVariables.colorOutline),opacityDisabled:B.FtCssVariableFactory.external(B.designSystemVariables.colorOpacityDisabled,"Design system")},$c=B.FtCssVariableFactory.extend("--ft-chip-highlighted-color","",B.FtCssVariableFactory.extend("--ft-chip-color","",B.designSystemVariables.colorOnPrimary)),Mi={backgroundColor:B.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color","",B.FtCssVariableFactory.extend("--ft-chip-background-color","",B.designSystemVariables.colorPrimary)),color:$c,rippleColor:B.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color","",$c)},Dc={horizontalPadding:B.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:B.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},Bc=[B.noTextSelect,gn.css`
|
|
1070
1070
|
:host {
|
|
1071
1071
|
display: inline-block;
|
|
1072
1072
|
max-width: 100%;
|
|
@@ -1085,7 +1085,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1085
1085
|
--ft-chip-internal-font-size: ${He.fontSize};
|
|
1086
1086
|
--ft-chip-internal-font-weight: ${He.fontWeight};
|
|
1087
1087
|
--ft-chip-internal-line-height: max(20px, calc(var(--ft-chip-internal-font-size) + 2px));
|
|
1088
|
-
${(0,B.setVariable)(
|
|
1088
|
+
${(0,B.setVariable)(ce.size,He.iconSize)};
|
|
1089
1089
|
--ft-chip-internal-vertical-padding: ${He.verticalPadding};
|
|
1090
1090
|
--ft-chip-internal-horizontal-padding: ${He.horizontalPadding};
|
|
1091
1091
|
--ft-chip-internal-icon-padding: 3px;
|
|
@@ -1168,9 +1168,9 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1168
1168
|
vertical-align: bottom;
|
|
1169
1169
|
display: block;
|
|
1170
1170
|
margin: 0 var(--ft-chip-internal-horizontal-padding);
|
|
1171
|
-
${(0,B.setVariable)(
|
|
1172
|
-
${(0,B.setVariable)(
|
|
1173
|
-
${(0,B.setVariable)(
|
|
1171
|
+
${(0,B.setVariable)(de.fontSize,"var(--ft-chip-internal-font-size)")};
|
|
1172
|
+
${(0,B.setVariable)(de.fontWeight,"var(--ft-chip-internal-font-weight)")};
|
|
1173
|
+
${(0,B.setVariable)(de.lineHeight,"var(--ft-chip-internal-content-height)")};
|
|
1174
1174
|
}
|
|
1175
1175
|
|
|
1176
1176
|
.ft-chip--safari-fix .ft-chip--label {
|
|
@@ -1256,7 +1256,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1256
1256
|
border-width: ${M.mediumBorderWidth};
|
|
1257
1257
|
border-style: solid;
|
|
1258
1258
|
gap: ${M.mediumGap};
|
|
1259
|
-
${(0,Ui.setVariable)(
|
|
1259
|
+
${(0,Ui.setVariable)(ce.size,M.mediumIconSize)}
|
|
1260
1260
|
}
|
|
1261
1261
|
|
|
1262
1262
|
.ftds--size-medium.ftds-chip--removable {
|
|
@@ -1272,7 +1272,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1272
1272
|
border-width: ${M.largeBorderWidth};
|
|
1273
1273
|
border-style: solid;
|
|
1274
1274
|
gap: ${M.largeGap};
|
|
1275
|
-
${(0,Ui.setVariable)(
|
|
1275
|
+
${(0,Ui.setVariable)(ce.size,M.largeIconSize)}
|
|
1276
1276
|
}
|
|
1277
1277
|
|
|
1278
1278
|
.ftds--size-large.ftds-chip--removable {
|
|
@@ -1565,7 +1565,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1565
1565
|
.ft-radio ft-typography {
|
|
1566
1566
|
padding-right: 2px;
|
|
1567
1567
|
}
|
|
1568
|
-
`;var Pt=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},Rn=class extends CustomEvent{constructor(e,o){super("change",{detail:{value:e,checked:o},bubbles:!0,composed:!0})}},
|
|
1568
|
+
`;var Pt=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},Rn=class extends CustomEvent{constructor(e,o){super("change",{detail:{value:e,checked:o},bubbles:!0,composed:!0})}},ue=class extends ld.FtLitElement{constructor(){super(...arguments),this.value="",this.name="",this.checked=!1,this.ariaChecked="false",this.disabled=!1,this.role="radio"}render(){let e={"ft-radio":!0,"ft-radio--checked":this.checked,"ft-radio--disabled":this.disabled};return sd.html`
|
|
1569
1569
|
<div class="${(0,cd.classMap)(e)}">
|
|
1570
1570
|
<div class="ft-radio--box-container">
|
|
1571
1571
|
<ft-ripple
|
|
@@ -1590,7 +1590,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1590
1590
|
</ft-typography>
|
|
1591
1591
|
</label>
|
|
1592
1592
|
</div>
|
|
1593
|
-
`}update(e){super.update(e),e.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.dispatchEvent(new Rn(this.value,this.checked))}contentAvailableCallback(e){var o;super.contentAvailableCallback(e),(o=this.ripple)===null||o===void 0||o.setupFor(this.container)}select(){this.checked=!0,this.dispatchEvent(new Rn(this.value,this.checked))}setInputTabIndex(e){this.input&&(this.input.tabIndex=e)}focus(){var e;(e=this.input)===null||e===void 0||e.focus()}};
|
|
1593
|
+
`}update(e){super.update(e),e.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.dispatchEvent(new Rn(this.value,this.checked))}contentAvailableCallback(e){var o;super.contentAvailableCallback(e),(o=this.ripple)===null||o===void 0||o.setupFor(this.container)}select(){this.checked=!0,this.dispatchEvent(new Rn(this.value,this.checked))}setInputTabIndex(e){this.input&&(this.input.tabIndex=e)}focus(){var e;(e=this.input)===null||e===void 0||e.focus()}};ue.elementDefinitions={"ft-ripple":H,"ft-typography":q};ue.styles=ad;Pt([(0,at.property)()],ue.prototype,"value",void 0);Pt([(0,at.property)()],ue.prototype,"name",void 0);Pt([(0,at.property)({type:Boolean,reflect:!0})],ue.prototype,"checked",void 0);Pt([(0,at.property)({attribute:"aria-checked",reflect:!0})],ue.prototype,"ariaChecked",void 0);Pt([(0,at.property)({type:Boolean})],ue.prototype,"disabled",void 0);Pt([(0,at.property)({reflect:!0,attribute:"role"})],ue.prototype,"role",void 0);Pt([(0,at.query)(".ft-radio")],ue.prototype,"container",void 0);Pt([(0,at.query)("ft-ripple")],ue.prototype,"ripple",void 0);Pt([(0,at.query)("input")],ue.prototype,"input",void 0);var fd=m(R()),kt=m(G()),ud=m(_());var dd=m(_());var pd=dd.css`
|
|
1594
1594
|
:host {
|
|
1595
1595
|
display: block;
|
|
1596
1596
|
}
|
|
@@ -1603,7 +1603,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1603
1603
|
@change=${this.onChange}
|
|
1604
1604
|
@keydown=${this.onKeyDown}
|
|
1605
1605
|
></slot>
|
|
1606
|
-
`}connectedCallback(){super.connectedCallback(),this.addEventListener("focus",this.onFocus),this.addEventListener("focusout",this.onFocusOut)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this.onFocus),this.removeEventListener("focusout",this.onFocusOut)}onSlotChange(){this.radioButtons.forEach(e=>e.name=this.name)}contentAvailableCallback(e){super.contentAvailableCallback(e),this.radioButtons.forEach(o=>o.setInputTabIndex(-1)),this.resolveCurrentSelectedIndex()}onChange(e){e.stopPropagation(),this.radioButtons.forEach(o=>o.checked=e.detail.value===o.value),this.dispatchEvent(new CustomEvent("change",{detail:e.detail.value})),this.resolveCurrentSelectedIndex()}onKeyDown(e){let o=!1;switch(e.key){case"ArrowUp":case"ArrowLeft":{o=!0;let n=this.currentSelectedIndex-1;this.radioButtons[n<0?this.radioButtons.length-1:n].select(),this.radioButtons[n<0?this.radioButtons.length-1:n].focus();break}case"ArrowDown":case"ArrowRight":{o=!0;let n=this.currentSelectedIndex+1;this.radioButtons[n>this.radioButtons.length-1?0:n].select(),this.radioButtons[n>this.radioButtons.length-1?0:n].focus();break}case"Enter":this.radioButtons[this.currentSelectedIndex].select()}o&&(e.stopPropagation(),e.preventDefault())}resolveCurrentSelectedIndex(){let e=this.radioButtons.findIndex(o=>o.checked);e==-1?(this.currentSelectedIndex=0,this.radioButtons[0].select()):this.currentSelectedIndex=e}focusCurrentChecked(){this.radioButtons[this.currentSelectedIndex].focus()}};Fe.elementDefinitions={};Fe.styles=pd;Yr([(0,kt.property)()],Fe.prototype,"name",void 0);Yr([(0,kt.property)({reflect:!0,attribute:"role"})],Fe.prototype,"role",void 0);Yr([(0,kt.property)({reflect:!0})],Fe.prototype,"tabIndex",void 0);Yr([(0,kt.property)({reflect:!0,attribute:"aria-labelledby"})],Fe.prototype,"ariaLabelledBy",void 0);Yr([(0,kt.queryAssignedElements)()],Fe.prototype,"assignedElements",void 0);Yr([(0,kt.state)()],Fe.prototype,"currentSelectedIndex",void 0);(0,Zi.customElement)("ft-radio")(
|
|
1606
|
+
`}connectedCallback(){super.connectedCallback(),this.addEventListener("focus",this.onFocus),this.addEventListener("focusout",this.onFocusOut)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this.onFocus),this.removeEventListener("focusout",this.onFocusOut)}onSlotChange(){this.radioButtons.forEach(e=>e.name=this.name)}contentAvailableCallback(e){super.contentAvailableCallback(e),this.radioButtons.forEach(o=>o.setInputTabIndex(-1)),this.resolveCurrentSelectedIndex()}onChange(e){e.stopPropagation(),this.radioButtons.forEach(o=>o.checked=e.detail.value===o.value),this.dispatchEvent(new CustomEvent("change",{detail:e.detail.value})),this.resolveCurrentSelectedIndex()}onKeyDown(e){let o=!1;switch(e.key){case"ArrowUp":case"ArrowLeft":{o=!0;let n=this.currentSelectedIndex-1;this.radioButtons[n<0?this.radioButtons.length-1:n].select(),this.radioButtons[n<0?this.radioButtons.length-1:n].focus();break}case"ArrowDown":case"ArrowRight":{o=!0;let n=this.currentSelectedIndex+1;this.radioButtons[n>this.radioButtons.length-1?0:n].select(),this.radioButtons[n>this.radioButtons.length-1?0:n].focus();break}case"Enter":this.radioButtons[this.currentSelectedIndex].select()}o&&(e.stopPropagation(),e.preventDefault())}resolveCurrentSelectedIndex(){let e=this.radioButtons.findIndex(o=>o.checked);e==-1?(this.currentSelectedIndex=0,this.radioButtons[0].select()):this.currentSelectedIndex=e}focusCurrentChecked(){this.radioButtons[this.currentSelectedIndex].focus()}};Fe.elementDefinitions={};Fe.styles=pd;Yr([(0,kt.property)()],Fe.prototype,"name",void 0);Yr([(0,kt.property)({reflect:!0,attribute:"role"})],Fe.prototype,"role",void 0);Yr([(0,kt.property)({reflect:!0})],Fe.prototype,"tabIndex",void 0);Yr([(0,kt.property)({reflect:!0,attribute:"aria-labelledby"})],Fe.prototype,"ariaLabelledBy",void 0);Yr([(0,kt.queryAssignedElements)()],Fe.prototype,"assignedElements",void 0);Yr([(0,kt.state)()],Fe.prototype,"currentSelectedIndex",void 0);(0,Zi.customElement)("ft-radio")(ue);(0,Zi.customElement)("ft-radio-group")(Fe);var hd=m(_()),K=m(R());var Ao={buttonMoreColor:K.FtCssVariableFactory.extend("--ft-filter-level-button-more-color","",K.designSystemVariables.colorOnSurface),borderRadiusM:K.FtCssVariableFactory.external(K.designSystemVariables.borderRadiusM,"Design system"),colorOutline:K.FtCssVariableFactory.external(K.designSystemVariables.colorOutline,"Design system"),colorOnSurface:K.FtCssVariableFactory.external(K.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:K.FtCssVariableFactory.external(K.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:K.FtCssVariableFactory.external(K.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:K.FtCssVariableFactory.external(K.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:K.FtCssVariableFactory.external(K.designSystemVariables.colorOnPrimary,"Design system"),fontFamily:K.FtCssVariableFactory.external(de.fontFamily,"Body2 typography"),fontSize:K.FtCssVariableFactory.external(de.fontSize,"Body2 typography"),fontWeight:K.FtCssVariableFactory.external(de.fontWeight,"Body2 typography"),letterSpacing:K.FtCssVariableFactory.external(de.letterSpacing,"Body2 typography"),lineHeight:K.FtCssVariableFactory.external(de.lineHeight,"Body2 typography"),textTransform:K.FtCssVariableFactory.external(de.textTransform,"Body2 typography")},yd=hd.css`
|
|
1607
1607
|
.ft-filter-level--container {
|
|
1608
1608
|
display: flex;
|
|
1609
1609
|
flex-direction: column;
|
|
@@ -1739,7 +1739,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1739
1739
|
@change=${o=>this.optionsChanged(o,e)}>
|
|
1740
1740
|
${e.renderOption?e.renderOption:e.label}${this.displayCount?` (${e.count})`:""}
|
|
1741
1741
|
</ft-radio>
|
|
1742
|
-
`}onRadioKeyDown(e,o){e.stopPropagation(),(e.key===" "||e.key==="Enter")&&(e.preventDefault(),this.optionsChanged(e,o))}optionsChanged(e,o){e.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:o}))}displayLevel(e){this.dispatchEvent(new CustomEvent("display-level",{detail:e}))}};ae.elementDefinitions={"ft-button":Oe,"ft-ripple":H,"ft-typography":q,"ft-checkbox":Ie,"ft-icon":ye,"ft-radio":
|
|
1742
|
+
`}onRadioKeyDown(e,o){e.stopPropagation(),(e.key===" "||e.key==="Enter")&&(e.preventDefault(),this.optionsChanged(e,o))}optionsChanged(e,o){e.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:o}))}displayLevel(e){this.dispatchEvent(new CustomEvent("display-level",{detail:e}))}};ae.elementDefinitions={"ft-button":Oe,"ft-ripple":H,"ft-typography":q,"ft-checkbox":Ie,"ft-icon":ye,"ft-radio":ue};ae.styles=yd;Te([(0,me.property)({type:String})],ae.prototype,"filterId",void 0);Te([(0,me.property)({type:Object})],ae.prototype,"parent",void 0);Te([(0,me.property)({type:Array})],ae.prototype,"options",void 0);Te([(0,me.property)({type:Boolean})],ae.prototype,"multivalued",void 0);Te([(0,me.property)({type:Boolean})],ae.prototype,"disabled",void 0);Te([(0,me.property)({type:Boolean})],ae.prototype,"hideSelectedOptions",void 0);Te([(0,me.property)({type:Boolean})],ae.prototype,"displayCount",void 0);Te([(0,me.property)({type:Boolean})],ae.prototype,"preventNavigation",void 0);Te([(0,me.property)({type:String})],ae.prototype,"filter",void 0);Te([(0,me.property)({type:String})],ae.prototype,"moreValuesButtonLabel",void 0);Te([(0,me.property)({type:String})],ae.prototype,"noValuesLabel",void 0);Te([(0,me.property)({type:Number})],ae.prototype,"displayedValuesLimit",void 0);Te([(0,me.query)(".ft-filter-level--container")],ae.prototype,"container",void 0);Te([(0,me.state)()],ae.prototype,"radios",void 0);Te([(0,me.state)()],ae.prototype,"displayedPages",void 0);var Sd=m(R());var xd=m(_()),Ke=m(G()),xr=m(R());var vd=m(Vt());var gd=m(_()),st=m(R());var Jt={buttonsColor:st.FtCssVariableFactory.extend("--ft-snap-scroll-buttons-color","",st.designSystemVariables.colorPrimary),buttonsZIndex:st.FtCssVariableFactory.create("--ft-snap-scroll-buttons-z-index","","NUMBER","1"),gap:st.FtCssVariableFactory.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:st.FtCssVariableFactory.external(st.designSystemVariables.colorSurface,"Design system")},bd=gd.css`
|
|
1743
1743
|
.ft-snap-scroll {
|
|
1744
1744
|
box-sizing: border-box;
|
|
1745
1745
|
position: relative;
|
|
@@ -2155,7 +2155,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
2155
2155
|
<ft-radio ?checked=${((i=this.dateFilter)===null||i===void 0?void 0:i.type)=="LAST_YEAR"} value="LAST_YEAR">${Ae.messages.LAST_YEAR()}
|
|
2156
2156
|
</ft-radio>`:ct.nothing}
|
|
2157
2157
|
</ft-radio-group>
|
|
2158
|
-
</div>`}setPeriodFilter(e){var o,n;let i=To[e.detail];i?(o=this.stateManager)===null||o===void 0||o.setDateFilter(this.metadataKey,i):(n=this.stateManager)===null||n===void 0||n.removeDateFilter(this.metadataKey)}header(){var e,o,n;return this.metadataKey==="ft:lastEdition"?Ae.messages.label():(n=(o=(e=this.metadataDescriptors)===null||e===void 0?void 0:e.find(i=>i.key==this.metadataKey))===null||o===void 0?void 0:o.label)!==null&&n!==void 0?n:this.metadataKey}};Ue.elementDefinitions={"ft-radio-group":Fe,"ft-radio":
|
|
2158
|
+
</div>`}setPeriodFilter(e){var o,n;let i=To[e.detail];i?(o=this.stateManager)===null||o===void 0||o.setDateFilter(this.metadataKey,i):(n=this.stateManager)===null||n===void 0||n.removeDateFilter(this.metadataKey)}header(){var e,o,n;return this.metadataKey==="ft:lastEdition"?Ae.messages.label():(n=(o=(e=this.metadataDescriptors)===null||e===void 0?void 0:e.find(i=>i.key==this.metadataKey))===null||o===void 0?void 0:o.label)!==null&&n!==void 0?n:this.metadataKey}};Ue.elementDefinitions={"ft-radio-group":Fe,"ft-radio":ue,"ft-typography":q};Ue.styles=Td;rr([(0,Cr.property)({type:String})],Ue.prototype,"key",void 0);rr([(0,Cr.property)({type:Boolean})],Ue.prototype,"lessThanAWeek",void 0);rr([(0,Cr.property)({type:Boolean})],Ue.prototype,"lessThanAMonth",void 0);rr([(0,Cr.property)({type:Boolean})],Ue.prototype,"lessThanAQuarter",void 0);rr([(0,Cr.property)({type:Boolean})],Ue.prototype,"lessThanAYear",void 0);rr([(0,Qi.redux)({store:"search",selector:t=>t.request.metadataFilters})],Ue.prototype,"filters",void 0);rr([(0,Qi.redux)({store:P.name,selector:t=>{var e,o;return(o=(e=t.metadataConfiguration)===null||e===void 0?void 0:e.descriptors)!==null&&o!==void 0?o:[]}})],Ue.prototype,"metadataDescriptors",void 0);rr([(0,Cr.property)({attribute:!1})],Ue.prototype,"dateFilter",void 0);(0,Pd.customElement)("ft-search-period-filter")(Ue);var kn=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},vt=class extends Xt(Ht){get hasSomethingToDisplay(){var e,o;return this.searchInDocumentTitlesOnly||((e=this.facets)===null||e===void 0?void 0:e.some(n=>this.getSelectedValues(n).length>0))||((o=this.filters)===null||o===void 0?void 0:o.some(n=>n.dateFilter||n.rangeFilter))}constructor(){super(),this.addI18nContext(er,In),this.addI18nContext(Ae,Tn)}render(){var e,o;return this.hasSomethingToDisplay?dt.html`
|
|
2159
2159
|
<div class="ft-search-selected-facets--container">
|
|
2160
2160
|
${(0,Pn.repeat)(this.facets||[],n=>n.key,n=>{let i=this.getSelectedValues(n);return(0,Pn.repeat)(i,a=>n.key+"-"+a,a=>this.renderFacet(n.key,n.label,i,a))})}
|
|
2161
2161
|
${this.renderSearchInDocumentTitlesOnly()}
|