@fluid-topics/ft-search-results-number 2.2.46 → 2.2.48
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.
|
@@ -1,17 +1,27 @@
|
|
|
1
|
-
"use strict";(()=>{var
|
|
1
|
+
"use strict";(()=>{var to=Object.create;var un=Object.defineProperty;var ro=Object.getOwnPropertyDescriptor;var no=Object.getOwnPropertyNames;var so=Object.getPrototypeOf,io=Object.prototype.hasOwnProperty;var lr=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}};var oo=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of no(e))!io.call(t,s)&&s!==r&&un(t,s,{get:()=>e[s],enumerable:!(n=ro(e,s))||n.enumerable});return t};var m=(t,e,r)=>(r=t!=null?to(so(t)):{},oo(e||!t||!t.__esModule?un(r,"default",{value:t,enumerable:!0}):r,t));var v=lr((Sa,dn)=>{dn.exports=ftGlobals.wcUtils});var Y=lr((Ea,pn)=>{pn.exports=ftGlobals.lit});var z=lr((va,yn)=>{yn.exports=ftGlobals.litDecorators});var Ji=m(v());var cr=m(Y()),ce=m(v());var hn=m(Y());var fn=hn.css`
|
|
2
2
|
|
|
3
|
-
`;var oe=m(x()),it=m(K());var ze;(function(e){e.CLUSTERED_SEARCH="CLUSTERED_SEARCH"})(ze||(ze={}));var ie=m(x());var po=m(x());var gn;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(gn||(gn={}));var Sn;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(Sn||(Sn={}));var En;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(En||(En={}));var An;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(An||(An={}));var vn;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(vn||(vn={}));var xn;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})(xn||(xn={}));var bn;(function(e){e.PUBLISHED="PUBLISHED",e.AI="AI"})(bn||(bn={}));var _n;(function(e){e.BOOKMARK__CREATE="BOOKMARK__CREATE",e.BOOKMARK__DELETE="BOOKMARK__DELETE",e.CASE_DEFLECTION__START="CASE_DEFLECTION__START",e.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",e.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",e.CHATBOT__RATE="CHATBOT__RATE",e.COLLECTION__CREATE="COLLECTION__CREATE",e.COLLECTION__UPDATE="COLLECTION__UPDATE",e.COLLECTION__DELETE="COLLECTION__DELETE",e.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",e.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",e.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",e.DOCUMENT__PRINT="DOCUMENT__PRINT",e.DOCUMENT__PROCESS="DOCUMENT__PROCESS",e.DOCUMENT__RATE="DOCUMENT__RATE",e.DOCUMENT__SEARCH="DOCUMENT__SEARCH",e.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",e.DOCUMENT__UNRATE="DOCUMENT__UNRATE",e.FEEDBACK__SEND="FEEDBACK__SEND",e.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",e.AI__RATE="AI__RATE",e.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",e.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",e.KHUB__PROCESS="KHUB__PROCESS",e.KHUB__SEARCH="KHUB__SEARCH",e.LABELS__DOWNLOAD="LABELS__DOWNLOAD",e.LINK__SHARE="LINK__SHARE",e.PAGE__DISPLAY="PAGE__DISPLAY",e.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",e.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",e.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",e.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",e.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",e.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",e.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",e.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",e.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",e.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",e.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",e.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",e.TOPIC__RATE="TOPIC__RATE",e.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",e.TOPIC__UNRATE="TOPIC__UNRATE",e.USER__LOGIN="USER__LOGIN",e.USER__LOGOUT="USER__LOGOUT",e.HEARTBEAT="HEARTBEAT"})(_n||(_n={}));var Cn;(function(e){e.STANDARD="STANDARD",e.STRUCTURAL="STRUCTURAL"})(Cn||(Cn={}));var wn;(function(e){e.METADATA_FILTER="METADATA_FILTER",e.ACCESS_RIGHTS_FILTER="ACCESS_RIGHTS_FILTER"})(wn||(wn={}));var Tn;(function(e){e.THIRD_PARTY="THIRD_PARTY",e.OFF_THE_GRID="OFF_THE_GRID",e.CONTENT_PACKAGER="CONTENT_PACKAGER",e.PAGES="PAGES",e.DESIGNED_READER="DESIGNED_READER",e.DOC_DIFF="DOC_DIFF"})(Tn||(Tn={}));var On;(function(e){e.HOMEPAGE="HOMEPAGE",e.CUSTOM="CUSTOM",e.HEADER="HEADER",e.READER="READER",e.TOPIC_TEMPLATE="TOPIC_TEMPLATE",e.SEARCH="SEARCH",e.SEARCH_RESULT="SEARCH_RESULT",e.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",e.LINK_PREVIEW="LINK_PREVIEW",e.UD_VIEWER="UD_VIEWER",e.ASSET_VIEWER="ASSET_VIEWER"})(On||(On={}));var Rn;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(Rn||(Rn={}));var In;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(In||(In={}));var kn;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(kn||(kn={}));var Nn;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(Nn||(Nn={}));var Dn;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR",e.CUSTOM="CUSTOM"})(Dn||(Dn={}));var ur;(function(e){e.OPTIONAL="OPTIONAL",e.MANDATORY="MANDATORY"})(ur||(ur={}));var Mn;(function(e){e.ASC="ASC",e.DESC="DESC"})(Mn||(Mn={}));var Ln;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(Ln||(Ln={}));var dr;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(dr||(dr={}));var Pn;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(Pn||(Pn={}));var Fn;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(Fn||(Fn={}));var Un;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.PERSONAL_BOOK="PERSONAL_BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(Un||(Un={}));var $n;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})($n||($n={}));var Hn;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.HTML_PACKAGE="HTML_PACKAGE",e.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Hn||(Hn={}));var pr;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(pr||(pr={}));var Bn;(function(e){e.PLAIN_TEXT="PLAIN_TEXT",e.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",e.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Bn||(Bn={}));var _;(function(e){e.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",e.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",e.HTML_EXPORT_USER="HTML_EXPORT_USER",e.PDF_EXPORT_USER="PDF_EXPORT_USER",e.SAVED_SEARCH_USER="SAVED_SEARCH_USER",e.COLLECTION_USER="COLLECTION_USER",e.OFFLINE_USER="OFFLINE_USER",e.ANALYTICS_USER="ANALYTICS_USER",e.BETA_USER="BETA_USER",e.DEBUG_USER="DEBUG_USER",e.PRINT_USER="PRINT_USER",e.RATING_USER="RATING_USER",e.FEEDBACK_USER="FEEDBACK_USER",e.GENERATIVE_AI_USER="GENERATIVE_AI_USER",e.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",e.CONTENT_PUBLISHER="CONTENT_PUBLISHER",e.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",e.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",e.KHUB_ADMIN="KHUB_ADMIN",e.USERS_ADMIN="USERS_ADMIN",e.PORTAL_ADMIN="PORTAL_ADMIN",e.ADMIN="ADMIN"})(_||(_={}));var B;(function(e){e.SEARCHES="SEARCHES",e.BOOKMARKS="BOOKMARKS",e.BOOKS="BOOKS",e.COLLECTIONS="COLLECTIONS"})(B||(B={}));var jn;(function(e){e.UNAUTHENTICATED="UNAUTHENTICATED",e.USER_INCOMPLETE="USER_INCOMPLETE",e.MFA_REQUIRED="MFA_REQUIRED",e.AUTHENTICATED="AUTHENTICATED"})(jn||(jn={}));var Vn;(function(e){e.UNREACHABLE="UNREACHABLE",e.UNAUTHORIZED="UNAUTHORIZED",e.FORBIDDEN="FORBIDDEN",e.INCOMPATIBLE="INCOMPATIBLE",e.FAILED="FAILED",e.OK="OK"})(Vn||(Vn={}));var qn;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(qn||(qn={}));var zn;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(zn||(zn={}));var Kn;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(Kn||(Kn={}));var Wn;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.SEMANTIC_SEARCH="SEMANTIC_SEARCH",e.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",e.DOCUMENTATION="DOCUMENTATION",e.OTHER="OTHER"})(Wn||(Wn={}));var Gn;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SLOW="SLOW",e.OTHER="OTHER"})(Gn||(Gn={}));var Qn;(function(e){e.CHAT="CHAT",e.COMPLETION="COMPLETION",e.RAG="RAG",e.AGENT="AGENT"})(Qn||(Qn={}));var Yn;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(Yn||(Yn={}));var Xn;(function(e){e.IN_PROGRESS="IN_PROGRESS",e.ERROR="ERROR",e.DONE="DONE"})(Xn||(Xn={}));var Jn;(function(e){e.HTML="HTML",e.MARKDOWN="MARKDOWN"})(Jn||(Jn={}));var Zn;(function(e){e.SOURCES="SOURCES",e.ENRICH_AND_CLEAN="ENRICH_AND_CLEAN",e.VOCABULARIES="VOCABULARIES",e.METADATA="METADATA",e.PRETTY_URL="PRETTY_URL",e.ACCESS_RULE="ACCESS_RULE",e.DESIGNED_PAGES="DESIGNED_PAGES",e.THEME_STUDIO="THEME_STUDIO",e.PORTAL_GENERAL="PORTAL_GENERAL",e.ASSETS="ASSETS",e.CODE_LIBRARY="CODE_LIBRARY",e.THEME="THEME",e.CONTENT_STYLES="CONTENT_STYLES",e.HOMEPAGE="HOMEPAGE",e.CLASSIC_SEARCH_PAGE="CLASSIC_SEARCH_PAGE",e.CLASSIC_READER_PAGE="CLASSIC_READER_PAGE",e.PORTAL_METADATA="PORTAL_METADATA",e.LANGUAGES="LANGUAGES",e.PRINT_TEMPLATES="PRINT_TEMPLATES",e.OFFLINE="OFFLINE",e.CUSTOM_JS="CUSTOM_JS",e.CONFIDENTIALITY="CONFIDENTIALITY",e.NOTIFICATIONS="NOTIFICATIONS"})(Zn||(Zn={}));var es;(function(e){e.MAP="MAP",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(es||(es={}));var ho={[_.PERSONAL_BOOK_SHARE_USER]:[_.PERSONAL_BOOK_USER],[_.HTML_EXPORT_USER]:[_.PERSONAL_BOOK_USER],[_.PDF_EXPORT_USER]:[_.PERSONAL_BOOK_USER],[_.KHUB_ADMIN]:[_.CONTENT_PUBLISHER],[_.ADMIN]:[_.KHUB_ADMIN,_.USERS_ADMIN,_.PORTAL_ADMIN,_.BEHAVIOR_DATA_USER],[_.GENERATIVE_AI_EXPORT_USER]:[_.GENERATIVE_AI_USER]};function ts(e,t){return e===t||(ho[e]??[]).some(r=>ts(r,t))}function dt(e,t){return e==null?!1:(Array.isArray(e)?e:Array.isArray(e.roles)?e.roles:Array.isArray(e.profile?.roles)?e.profile.roles:[]).some(n=>ts(n,t))}function rs(e,...t){return e==null?!1:t.some(r=>dt(e,r))}var Mr=m(K());var ns=m(K(),1);var hr=e=>t=>{window.customElements.get(e)||window.customElements.define(e,t)},fo=e=>({fromAttribute:t=>{if(t==null)return Ke(e);try{return JSON.parse(t)}catch{return Ke(e)}},toAttribute:t=>JSON.stringify(t)});function ss(e,t){return(0,ns.property)({type:Object,converter:fo(e),hasChanged:We,...t??{}})}function yo(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;let r,n;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!ke(e[n],t[n]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;for(n of e.entries())if(!ke(n[1],t.get(n[0])))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();let s=o=>Object.keys(o).filter(a=>o[a]!=null),i=s(e);if(r=i.length,r!==s(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[n]))return!1;for(n=r;n--!==0;){let o=i[n];if(!ke(e[o],t[o]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function ke(e,t){try{return yo(e,t)}catch{return!1}}function We(e,t){return!ke(e,t)}function Ke(e){return typeof window.structuredClone=="function"?structuredClone(e):e!=null?JSON.parse(JSON.stringify(e)):e}function pt(e,t){let r=n=>n[e]===!0;return n=>{if(r(n))return n;let s=t(n);return s[e]=!0,s}}var is=m(K(),1);var fr=e=>{let t=e??{};return(r,n)=>{var s;let i={hasChanged:We,attribute:!1,...t};(0,is.property)(i)(r,n);let o=r.constructor;o.reduxProperties=new Map(o.reduxProperties),o.reduxProperties.set(n,{selector:(s=t.selector)!==null&&s!==void 0?s:(a=>a[n]),store:t.store})}};var ht=class{constructor(){this.queue=[]}add(t,r=!1){r&&this.clear(t.type),this.queue.push(t)}consume(t){let r=this.queue.find(n=>n.type===t);return r&&(this.queue=this.queue.filter(n=>n!==r)),r}clear(t){typeof t=="string"?this.queue=this.queue.filter(r=>r.type!==t):this.queue=this.queue.filter(r=>!t.test(r.type))}};var ue=m(K(),1);var ft=class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,r){return this.callbacks=[t],this.debounce(r)}queue(t,r){return this.callbacks.push(t),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return this.promise==null&&(this.promise=new Promise((r,n)=>{this.resolvePromise=r,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,r;let n=[...this.callbacks];this.callbacks=[];let s=(t=this.rejectPromise)!==null&&t!==void 0?t:(()=>null),i=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let o of n)try{await o()}catch(a){s(a);return}i(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var mt=m(X(),1);var yt=class extends mt.LitElement{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let t=this.scopedRegistryConstructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,t.defineScopedElements(t.elementDefinitions));let r={...t.shadowRootOptions,customElements:t.registry},n=this.renderOptions.creationScope=this.attachShadow(r);return(0,mt.adoptStyles)(n,t.elementStyles),n}static canDefineScopedElement(t){return!!this.registry&&!this.registry.get(t)}static defineScopedElements(t){Object.entries(t).forEach(([r,n])=>this.defineScopedElement(r,n))}static defineScopedElement(t,r){hr(t)(r),this.canDefineScopedElement(t)&&this.registry.define(t,r)}canDefineScopedElement(t){return this.scopedRegistryConstructor.canDefineScopedElement(t)}defineScopedElements(t){this.scopedRegistryConstructor.defineScopedElements(t)}defineScopedElement(t,r){this.scopedRegistryConstructor.defineScopedElement(t,r)}};function os(e,t,...r){var n;let s=e.querySelector(t);for(let i of r)s=(n=s?.shadowRoot)===null||n===void 0?void 0:n.querySelector(i);return s}var De=function(e,t,r,n){var s=arguments.length,i=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(i=(s<3?o(i):s>3?o(t,r,i):o(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},us,as=Symbol("constructorPrototype"),cs=Symbol("constructorName"),ds=Symbol("exportpartsDebouncer"),ls=Symbol("dynamicDependenciesLoaded"),Ne=class e extends CustomEvent{constructor(){super(e.eventName,{bubbles:!0})}};Ne.eventName="exportparts-updated";var W=class extends yt{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[us]=new ft(5),this.scheduleExportpartsUpdate=()=>{var t,r,n;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(n=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&n!==void 0&&n)&&this[ds].run(()=>{var s,i;!((s=this.exportpartsPrefix)===null||s===void 0)&&s.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((i=this.exportpartsPrefixes)===null||i===void 0?void 0:i.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[cs]=this.constructor.name,this[as]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[cs]&&Object.setPrototypeOf(this,this[as])}connectedCallback(){var t;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(n){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",n)}let r=this.constructor;r[ls]||(r[ls]=!0,this.importDynamicDependencies()),(t=this.shadowRoot)===null||t===void 0||t.addEventListener(Ne.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.shadowRoot)===null||t===void 0||t.removeEventListener(Ne.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(t){super.updated(t),this.updateComplete.then(()=>{this.contentAvailableCallback(t),this.focusElementToFocus(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate(),t.has("exportparts")&&this.dispatchEvent(new Ne)})}contentAvailableCallback(t){}focusElementToFocus(t){if(t.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:n,shadowPath:s}=this.elementToFocus;if(n!=null){let i=[...s??[],n];r=os(this.shadowRoot,...i)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(t){var r,n,s;if(((n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(i=>i.remove()),this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((s=this.customStylesheet)!==null&&s!==void 0?s:"")}catch(i){console.error(i,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let i=document.createElement("style");i.classList.add("ft-lit-element--custom-stylesheet"),i.innerHTML=this.customStylesheet,this.shadowRoot.append(i)}}setExportpartsAttribute(t){var r,n,s,i,o,a;let c=h=>h!=null&&h.trim().length>0,l=t.filter(c).map(h=>h.trim());if(l.length===0){this.exportparts=void 0;return}let u=new Set;for(let h of(i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&i!==void 0?i:[]){let g=(o=(n=h.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&o!==void 0?o:[],v=(a=(s=h.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(A=>A.split(":")[1]))!==null&&a!==void 0?a:[],O=[...g,...v].filter(c).map(A=>A.trim());for(let A of O)u.add(A)}if(u.size===0){this.exportparts=void 0;return}let d=[...u.values()].flatMap(h=>l.map(g=>`${h}:${g}--${h}`));this.exportparts=[...this.part,...d].join(", ")}};us=ds;De([(0,ue.property)()],W.prototype,"exportpartsPrefix",void 0);De([ss([])],W.prototype,"exportpartsPrefixes",void 0);De([(0,ue.property)({reflect:!0})],W.prototype,"exportparts",void 0);De([(0,ue.property)()],W.prototype,"customStylesheet",void 0);De([(0,ue.property)()],W.prototype,"elementToFocus",void 0);De([(0,ue.state)()],W.prototype,"useAdoptedStyleSheets",void 0);function gt(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var Ge=Symbol("internalReduxEventsUnsubscribers"),re=Symbol("internalStoresUnsubscribers"),de=Symbol("internalStores"),mo=pt(Symbol("withRedux"),function(e){var t,r,n;class s extends e{constructor(){super(...arguments),this[t]=new Map,this[r]=new Map,this[n]=new Map}get reduxConstructor(){return this.constructor}willUpdate(o){super.willUpdate(o),[...this.reduxConstructor.reduxReactiveProperties].some(a=>o.has(a))&&this.updateFromStores()}getUnnamedStore(){if(this[de].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[de].values()][0]}getStore(o){return o==null?this.getUnnamedStore():this[de].get(o)}addStore(o,a){var c;a=(c=a??o.name)!==null&&c!==void 0?c:"default-store",this.unsubscribeFromStore(a),this[de].set(a,o),this.subscribeToStore(a,o),this.updateFromStores()}removeStore(o){let a=typeof o=="string"?o:o.name;this.unsubscribeFromStore(a),this[de].delete(a)}setupStores(){this.unsubscribeFromStores(),this[de].forEach((o,a)=>this.subscribeToStore(a,o)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((o,a)=>{let c=this.constructor.getPropertyOptions(a);if(!c?.attribute||!this.hasAttribute(typeof c?.attribute=="string"?c.attribute:a)){let l=this.getStore(o.store);l&&(o.store?this[re].has(o.store):this[re].size>0)&&(this[a]=o.selector(l.getState(),this))}})}subscribeToStore(o,a){var c,l;this[re].set(o,a.subscribe(()=>this.updateFromStores())),this[Ge].set(o,[]),gt(a)&&(!((c=a.deprecatedKeys)===null||c===void 0)&&c.length&&this.reduxConstructor.reduxProperties.forEach((u,d)=>{this.getStore(u.store)===a&&a.deprecatedKeys.includes(d)&&console.warn("Element",this,"is subscribed to deprecated key",d,"in store",a.name)}),a.eventBus&&((l=this.reduxConstructor.reduxEventListeners)===null||l===void 0||l.forEach((u,d)=>{if(typeof this[d]=="function"&&(!u.store||a.name===u.store)){let h=g=>this[d](g);a.addEventListener(u.eventName,h),this[Ge].get(o).push(()=>a.removeEventListener(u.eventName,h))}}))),this.onStoreAvailable(o)}unsubscribeFromStores(){this[re].forEach((o,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(o){var a;this[re].has(o)&&this[re].get(o)(),this[re].delete(o),(a=this[Ge].get(o))===null||a===void 0||a.forEach(c=>c()),this[Ge].delete(o)}onStoreAvailable(o){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return t=re,r=de,n=Ge,s.reduxProperties=new Map,s.reduxReactiveProperties=new Set,s.reduxEventListeners=new Map,s}),ps=class extends mo(W){};function k(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var go=typeof Symbol=="function"&&Symbol.observable||"@@observable",hs=go,yr=()=>Math.random().toString(36).substring(7).split("").join("."),So={INIT:`@@redux/INIT${yr()}`,REPLACE:`@@redux/REPLACE${yr()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${yr()}`},St=So;function Et(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function mr(e,t,r){if(typeof e!="function")throw new Error(k(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(k(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(k(1));return r(mr)(e,t)}let n=e,s=t,i=new Map,o=i,a=0,c=!1;function l(){o===i&&(o=new Map,i.forEach((A,R)=>{o.set(R,A)}))}function u(){if(c)throw new Error(k(3));return s}function d(A){if(typeof A!="function")throw new Error(k(4));if(c)throw new Error(k(5));let R=!0;l();let U=a++;return o.set(U,A),function(){if(R){if(c)throw new Error(k(6));R=!1,l(),o.delete(U),i=null}}}function h(A){if(!Et(A))throw new Error(k(7));if(typeof A.type>"u")throw new Error(k(8));if(typeof A.type!="string")throw new Error(k(17));if(c)throw new Error(k(9));try{c=!0,s=n(s,A)}finally{c=!1}return(i=o).forEach(U=>{U()}),A}function g(A){if(typeof A!="function")throw new Error(k(10));n=A,h({type:St.REPLACE})}function v(){let A=d;return{subscribe(R){if(typeof R!="object"||R===null)throw new Error(k(11));function U(){let E=R;E.next&&E.next(u())}return U(),{unsubscribe:A(U)}},[hs](){return this}}}return h({type:St.INIT}),{dispatch:h,subscribe:d,getState:u,replaceReducer:g,[hs]:v}}function Eo(e){Object.keys(e).forEach(t=>{let r=e[t];if(typeof r(void 0,{type:St.INIT})>"u")throw new Error(k(12));if(typeof r(void 0,{type:St.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(k(13))})}function gr(e){let t=Object.keys(e),r={};for(let o=0;o<t.length;o++){let a=t[o];typeof e[a]=="function"&&(r[a]=e[a])}let n=Object.keys(r),s,i;try{Eo(r)}catch(o){i=o}return function(a={},c){if(i)throw i;let l=!1,u={};for(let d=0;d<n.length;d++){let h=n[d],g=r[h],v=a[h],O=g(v,c);if(typeof O>"u"){let A=c&&c.type;throw new Error(k(14))}u[h]=O,l=l||O!==v}return l=l||n.length!==Object.keys(a).length,l?u:a}}function Qe(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function fs(...e){return t=>(r,n)=>{let s=t(r,n),i=()=>{throw new Error(k(15))},o={getState:s.getState,dispatch:(c,...l)=>i(c,...l)},a=e.map(c=>c(o));return i=Qe(...a)(s.dispatch),{...s,dispatch:i}}}function ys(e){return Et(e)&&"type"in e&&typeof e.type=="string"}var _s=Symbol.for("immer-nothing"),ms=Symbol.for("immer-draftable"),D=Symbol.for("immer-state");function z(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var $=Object,Le=$.getPrototypeOf,bt="constructor",Rt="prototype",vr="configurable",_t="enumerable",vt="writable",Ye="value",G=e=>!!e&&!!e[D];function H(e){return e?Cs(e)||kt(e)||!!e[ms]||!!e[bt]?.[ms]||Nt(e)||et(e):!1}var Ao=$[Rt][bt].toString(),gs=new WeakMap;function Cs(e){if(!e||!Rr(e))return!1;let t=Le(e);if(t===null||t===$[Rt])return!0;let r=$.hasOwnProperty.call(t,bt)&&t[bt];if(r===Object)return!0;if(!Me(r))return!1;let n=gs.get(r);return n===void 0&&(n=Function.toString.call(r),gs.set(r,n)),n===Ao}function It(e,t,r=!0){Ze(e)===0?(r?Reflect.ownKeys(e):$.keys(e)).forEach(s=>{t(s,e[s],e)}):e.forEach((n,s)=>t(s,n,e))}function Ze(e){let t=e[D];return t?t.type_:kt(e)?1:Nt(e)?2:et(e)?3:0}var Sr=(e,t,r=Ze(e))=>r===2?e.has(t):$[Rt].hasOwnProperty.call(e,t),xr=(e,t,r=Ze(e))=>r===2?e.get(t):e[t],Ct=(e,t,r,n=Ze(e))=>{n===2?e.set(t,r):n===3?e.add(r):e[t]=r};function vo(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var kt=Array.isArray,Nt=e=>e instanceof Map,et=e=>e instanceof Set,Rr=e=>typeof e=="object",Me=e=>typeof e=="function",Er=e=>typeof e=="boolean";function xo(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var J=e=>e.copy_||e.base_;var Ir=e=>e.modified_?e.copy_:e.base_;function br(e,t){if(Nt(e))return new Map(e);if(et(e))return new Set(e);if(kt(e))return Array[Rt].slice.call(e);let r=Cs(e);if(t===!0||t==="class_only"&&!r){let n=$.getOwnPropertyDescriptors(e);delete n[D];let s=Reflect.ownKeys(n);for(let i=0;i<s.length;i++){let o=s[i],a=n[o];a[vt]===!1&&(a[vt]=!0,a[vr]=!0),(a.get||a.set)&&(n[o]={[vr]:!0,[vt]:!0,[_t]:a[_t],[Ye]:e[o]})}return $.create(Le(e),n)}else{let n=Le(e);if(n!==null&&r)return{...e};let s=$.create(n);return $.assign(s,e)}}function Dt(e,t=!1){return Mt(e)||G(e)||!H(e)||(Ze(e)>1&&$.defineProperties(e,{set:At,add:At,clear:At,delete:At}),$.freeze(e),t&&It(e,(r,n)=>{Dt(n,!0)},!1)),e}function bo(){z(2)}var At={[Ye]:bo};function Mt(e){return e===null||!Rr(e)?!0:$.isFrozen(e)}var wt="MapSet",_r="Patches",Ss="ArrayMethods",ws={};function pe(e){let t=ws[e];return t||z(0,e),t}var Es=e=>!!ws[e];var Xe,Ts=()=>Xe,_o=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Es(wt)?pe(wt):void 0,arrayMethodsPlugin_:Es(Ss)?pe(Ss):void 0});function As(e,t){t&&(e.patchPlugin_=pe(_r),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Cr(e){wr(e),e.drafts_.forEach(Co),e.drafts_=null}function wr(e){e===Xe&&(Xe=e.parent_)}var vs=e=>Xe=_o(Xe,e);function Co(e){let t=e[D];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function xs(e,t){t.unfinalizedDrafts_=t.drafts_.length;let r=t.drafts_[0];if(e!==void 0&&e!==r){r[D].modified_&&(Cr(t),z(4)),H(e)&&(e=bs(t,e));let{patchPlugin_:s}=t;s&&s.generateReplacementPatches_(r[D].base_,e,t)}else e=bs(t,r);return wo(t,e,!0),Cr(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==_s?e:void 0}function bs(e,t){if(Mt(t))return t;let r=t[D];if(!r)return Tt(t,e.handledSet_,e);if(!Lt(r,e))return t;if(!r.modified_)return r.base_;if(!r.finalized_){let{callbacks_:n}=r;if(n)for(;n.length>0;)n.pop()(e);Is(r,e)}return r.copy_}function wo(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Dt(t,r)}function Os(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var Lt=(e,t)=>e.scope_===t,To=[];function Rs(e,t,r,n){let s=J(e),i=e.type_;if(n!==void 0&&xr(s,n,i)===t){Ct(s,n,r,i);return}if(!e.draftLocations_){let a=e.draftLocations_=new Map;It(s,(c,l)=>{if(G(l)){let u=a.get(l)||[];u.push(c),a.set(l,u)}})}let o=e.draftLocations_.get(t)??To;for(let a of o)Ct(s,a,r,i)}function Oo(e,t,r){e.callbacks_.push(function(s){let i=t;if(!i||!Lt(i,s))return;s.mapSetPlugin_?.fixSetContents(i);let o=Ir(i);Rs(e,i.draft_??i,o,r),Is(i,s)})}function Is(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){let{patchPlugin_:n}=t;if(n){let s=n.getPath(e);s&&n.generatePatches_(e,s,t)}Os(e)}}function Ro(e,t,r){let{scope_:n}=e;if(G(r)){let s=r[D];Lt(s,n)&&s.callbacks_.push(function(){xt(e);let o=Ir(s);Rs(e,r,o,t)})}else H(r)&&e.callbacks_.push(function(){let i=J(e);e.type_===3?i.has(r)&&Tt(r,n.handledSet_,n):xr(i,t,e.type_)===r&&n.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&Tt(xr(e.copy_,t,e.type_),n.handledSet_,n)})}function Tt(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||G(e)||t.has(e)||!H(e)||Mt(e)||(t.add(e),It(e,(n,s)=>{if(G(s)){let i=s[D];if(Lt(i,r)){let o=Ir(i);Ct(e,n,o,e.type_),Os(i)}}else H(s)&&Tt(s,t,r)})),e}function Io(e,t){let r=kt(e),n={type_:r?1:0,scope_:t?t.scope_:Ts(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},s=n,i=Ot;r&&(s=[n],i=Je);let{revoke:o,proxy:a}=Proxy.revocable(s,i);return n.draft_=a,n.revoke_=o,[a,n]}var Ot={get(e,t){if(t===D)return e;let r=e.scope_.arrayMethodsPlugin_,n=e.type_===1&&typeof t=="string";if(n&&r?.isArrayOperationMethod(t))return r.createMethodInterceptor(e,t);let s=J(e);if(!Sr(s,t,e.type_))return No(e,s,t);let i=s[t];if(e.finalized_||!H(i)||n&&e.operationMethod&&r?.isMutatingArrayMethod(e.operationMethod)&&xo(t))return i;if(i===Ar(e.base_,t)||ko(e,t,i)){xt(e);let o=e.type_===1?+t:t,a=Or(e.scope_,i,e,o);return e.copy_[o]=a}return i},has(e,t){return t in J(e)},ownKeys(e){return Reflect.ownKeys(J(e))},set(e,t,r){let n=ks(J(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){let s=Ar(J(e),t),i=s?.[D];if(i&&i.base_===r)return e.copy_[t]=r,e.assigned_.delete(t),!0;if(vo(r,s)&&(r!==void 0||Sr(e.base_,t,e.type_)))return!0;xt(e),Tr(e)}return e.copy_[t]===r&&(r!==void 0||Sr(e.copy_,t,e.type_))||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_.set(t,!0),Ro(e,t,r)),!0},deleteProperty(e,t){return xt(e),Ar(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Tr(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let r=J(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{[vt]:!0,[vr]:e.type_!==1||t!=="length",[_t]:n[_t],[Ye]:r[t]}},defineProperty(){z(11)},getPrototypeOf(e){return Le(e.base_)},setPrototypeOf(){z(12)}},Je={};for(let e in Ot){let t=Ot[e];Je[e]=function(){let r=arguments;return r[0]=r[0][0],t.apply(this,r)}}Je.deleteProperty=function(e,t){return Je.set.call(this,e,t,void 0)};Je.set=function(e,t,r){return Ot.set.call(this,e[0],t,r,e[0])};function Ar(e,t){let r=e[D];return(r?J(r):e)[t]}function ko(e,t,r){return e.type_!==1||!e.allIndicesReassigned_||!H(r)||r[D]?!1:e.baseRefs_.has(r)}function No(e,t,r){let n=ks(t,r);return n?Ye in n?n[Ye]:n.get?.call(e.draft_):void 0}function ks(e,t){if(!(t in e))return;let r=Le(e);for(;r;){let n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Le(r)}}function Tr(e){e.modified_||(e.modified_=!0,e.parent_&&Tr(e.parent_))}function xt(e){e.copy_||(e.assigned_=new Map,e.copy_=br(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Do=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,r,n)=>{if(Me(t)&&!Me(r)){let i=r;r=t;let o=this;return function(c=i,...l){return o.produce(c,u=>r.call(this,u,...l))}}Me(r)||z(6),n!==void 0&&!Me(n)&&z(7);let s;if(H(t)){let i=vs(this),o=Or(i,t,void 0),a=!0;try{s=r(o),a=!1}finally{a?Cr(i):wr(i)}return As(i,n),xs(s,i)}else if(!t||!Rr(t)){if(s=r(t),s===void 0&&(s=t),s===_s&&(s=void 0),this.autoFreeze_&&Dt(s,!0),n){let i=[],o=[];pe(_r).generateReplacementPatches_(t,s,{patches_:i,inversePatches_:o}),n(i,o)}return s}else z(1,t)},this.produceWithPatches=(t,r)=>{if(Me(t))return(o,...a)=>this.produceWithPatches(o,c=>t(c,...a));let n,s;return[this.produce(t,r,(o,a)=>{n=o,s=a}),n,s]},Er(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),Er(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),Er(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){H(e)||z(8),G(e)&&(e=Ns(e));let t=vs(this),r=Or(t,e,void 0);return r[D].isManual_=!0,wr(t),r}finishDraft(e,t){let r=e&&e[D];(!r||!r.isManual_)&&z(9);let{scope_:n}=r;return As(n,t),xs(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){let s=t[r];if(s.path.length===0&&s.op==="replace"){e=s.value;break}}r>-1&&(t=t.slice(r+1));let n=pe(_r).applyPatches_;return G(e)?n(e,t):this.produce(e,s=>n(s,t))}};function Or(e,t,r,n){let[s,i]=Nt(t)?pe(wt).proxyMap_(t,r):et(t)?pe(wt).proxySet_(t,r):Io(t,r);return(r?.scope_??Ts()).drafts_.push(s),i.callbacks_=r?.callbacks_??[],i.key_=n,r&&n!==void 0?Oo(r,i,n):i.callbacks_.push(function(c){c.mapSetPlugin_?.fixSetContents(i);let{patchPlugin_:l}=c;i.modified_&&l&&l.generatePatches_(i,[],c)}),s}function Ns(e){return G(e)||z(10,e),Ds(e)}function Ds(e){if(!H(e)||Mt(e))return e;let t=e[D],r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=br(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=br(e,!0);let s=r;return et(r)&&(r=new Set),It(s,(i,o)=>{Ct(r,i,Ds(o))},n),t&&(t.finalized_=!1),r}var Mo=globalThis.Iterator,xc=typeof Mo?.from=="function";var Lo=new Do,kr=Lo.produce;function Ms(e){return({dispatch:r,getState:n})=>s=>i=>typeof i=="function"?i(r,n,e):s(i)}var Ls=Ms(),Ps=Ms;var Po=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Qe:Qe.apply(null,arguments)};typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;var Fo=e=>e&&typeof e.match=="function";function ne(e,t){function r(...n){if(t){let s=t(...n);if(!s)throw new Error(Q(0));return{type:e,payload:s.payload,..."meta"in s&&{meta:s.meta},..."error"in s&&{error:s.error}}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=n=>ys(n)&&n.type===e,r}var Bs=class tt extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,tt.prototype)}static get[Symbol.species](){return tt}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new tt(...t[0].concat(this)):new tt(...t.concat(this))}};function Fs(e){return H(e)?kr(e,()=>{}):e}function Pt(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function Uo(e){return typeof e=="boolean"}var $o=()=>function(t){let{thunk:r=!0,immutableCheck:n=!0,serializableCheck:s=!0,actionCreatorCheck:i=!0}=t??{},o=new Bs;return r&&(Uo(r)?o.push(Ls):o.push(Ps(r.extraArgument))),o},Ho="RTK_autoBatch";var Us=e=>t=>{setTimeout(t,e)},Bo=(e,t)=>r=>{let n=!1,s,i,o=()=>{n||(n=!0,cancelAnimationFrame(s),clearTimeout(i),r())};s=e(o),i=setTimeout(o,t)},jo=(e={type:"raf"})=>t=>(...r)=>{let n=t(...r),s=!0,i=!1,o=!1,a=new Set,c=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?Bo(window.requestAnimationFrame,100):Us(10):e.type==="callback"?e.queueNotification:Us(e.timeout),l=()=>{o=!1,i&&(i=!1,a.forEach(u=>u()))};return Object.assign({},n,{subscribe(u){let d=()=>s&&u(),h=n.subscribe(d);return a.add(u),()=>{h(),a.delete(u)}},dispatch(u){try{return s=!u?.meta?.[Ho],i=!s,i&&(o||(o=!0,c(l))),n.dispatch(u)}finally{s=!0}}})},Vo=e=>function(r){let{autoBatch:n=!0}=r??{},s=new Bs(e);return n&&s.push(jo(typeof n=="object"?n:void 0)),s};function js(e){let t=$o(),{reducer:r=void 0,middleware:n,devTools:s=!0,duplicateMiddlewareCheck:i=!0,preloadedState:o=void 0,enhancers:a=void 0}=e||{},c;if(typeof r=="function")c=r;else if(Et(r))c=gr(r);else throw new Error(Q(1));let l;typeof n=="function"?l=n(t):l=t();let u=Qe;s&&(u=Po({trace:!1,...typeof s=="object"&&s}));let d=fs(...l),h=Vo(d),g=typeof a=="function"?a(h):h(),v=u(...g);return mr(c,o,v)}function Vs(e){let t={},r=[],n,s={addCase(i,o){let a=typeof i=="string"?i:i.type;if(!a)throw new Error(Q(28));if(a in t)throw new Error(Q(29));return t[a]=o,s},addAsyncThunk(i,o){return o.pending&&(t[i.pending.type]=o.pending),o.rejected&&(t[i.rejected.type]=o.rejected),o.fulfilled&&(t[i.fulfilled.type]=o.fulfilled),o.settled&&r.push({matcher:i.settled,reducer:o.settled}),s},addMatcher(i,o){return r.push({matcher:i,reducer:o}),s},addDefaultCase(i){return n=i,s}};return e(s),[t,r,n]}function qo(e){return typeof e=="function"}function zo(e,t){let[r,n,s]=Vs(t),i;if(qo(e))i=()=>Fs(e());else{let a=Fs(e);i=()=>a}function o(a=i(),c){let l=[r[c.type],...n.filter(({matcher:u})=>u(c)).map(({reducer:u})=>u)];return l.filter(u=>!!u).length===0&&(l=[s]),l.reduce((u,d)=>{if(d)if(G(u)){let h=d(u,c);return h===void 0?u:h}else{if(H(u))return kr(u,h=>d(h,c));{let h=d(u,c);if(h===void 0){if(u===null)return u;throw new Error(Q(9))}return h}}return u},a)}return o.getInitialState=i,o}var Ko=(e,t)=>Fo(e)?e.match(t):e(t);function Wo(...e){return t=>e.some(r=>Ko(r,t))}var Go="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Qo=(e=21)=>{let t="",r=e;for(;r--;)t+=Go[Math.random()*64|0];return t},Yo=["name","message","stack","code"],Nr=class{payload;meta;_type;constructor(e,t){this.payload=e,this.meta=t}},$s=class{payload;meta;_type;constructor(e,t){this.payload=e,this.meta=t}},Xo=e=>{if(typeof e=="object"&&e!==null){let t={};for(let r of Yo)typeof e[r]=="string"&&(t[r]=e[r]);return t}return{message:String(e)}},Hs="External signal was aborted",Jo=(()=>{function e(t,r,n){let s=ne(t+"/fulfilled",(c,l,u,d)=>({payload:c,meta:{...d||{},arg:u,requestId:l,requestStatus:"fulfilled"}})),i=ne(t+"/pending",(c,l,u)=>({payload:void 0,meta:{...u||{},arg:l,requestId:c,requestStatus:"pending"}})),o=ne(t+"/rejected",(c,l,u,d,h)=>({payload:d,error:(n&&n.serializeError||Xo)(c||"Rejected"),meta:{...h||{},arg:u,requestId:l,rejectedWithValue:d!==void 0,requestStatus:"rejected",aborted:c?.name==="AbortError",condition:c?.name==="ConditionError"}}));function a(c,{signal:l}={}){return(u,d,h)=>{let g=n?.idGenerator?n.idGenerator(c):Qo(),v=new AbortController,O,A;function R(S){A=S,v.abort()}l&&(l.aborted?R(Hs):l.addEventListener("abort",()=>R(Hs),{once:!0}));let U=(async function(){let S;try{let E=n?.condition?.(c,{getState:d,extra:h});if(ea(E)&&(E=await E),E===!1)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};if(v.signal.aborted)throw{name:"AbortError",message:A||"Aborted"};let I=new Promise((C,N)=>{O=()=>{N({name:"AbortError",message:A||"Aborted"})},v.signal.addEventListener("abort",O,{once:!0})});u(i(g,c,n?.getPendingMeta?.({requestId:g,arg:c},{getState:d,extra:h}))),S=await Promise.race([I,Promise.resolve(r(c,{dispatch:u,getState:d,extra:h,requestId:g,signal:v.signal,abort:R,rejectWithValue:((C,N)=>new Nr(C,N)),fulfillWithValue:((C,N)=>new $s(C,N))})).then(C=>{if(C instanceof Nr)throw C;return C instanceof $s?s(C.payload,g,c,C.meta):s(C,g,c)})])}catch(E){S=E instanceof Nr?o(null,g,c,E.payload,E.meta):o(E,g,c)}finally{O&&v.signal.removeEventListener("abort",O)}return n&&!n.dispatchConditionRejection&&o.match(S)&&S.meta.condition||u(S),S})();return Object.assign(U,{abort:R,requestId:g,arg:c,unwrap(){return U.then(Zo)}})}}return Object.assign(a,{pending:i,rejected:o,fulfilled:s,settled:Wo(o,s),typePrefix:t})}return e.withTypes=()=>e,e})();function Zo(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function ea(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var qs=Symbol.for("rtk-slice-createasyncthunk"),Ic={[qs]:Jo};function ta(e,t){return`${e}/${t}`}function ra({creators:e}={}){let t=e?.asyncThunk?.[qs];return function(n){let{name:s,reducerPath:i=s}=n;if(!s)throw new Error(Q(11));typeof process<"u";let o=(typeof n.reducers=="function"?n.reducers(sa()):n.reducers)||{},a=Object.keys(o),c={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},l={addCase(S,E){let I=typeof S=="string"?S:S.type;if(!I)throw new Error(Q(12));if(I in c.sliceCaseReducersByType)throw new Error(Q(13));return c.sliceCaseReducersByType[I]=E,l},addMatcher(S,E){return c.sliceMatchers.push({matcher:S,reducer:E}),l},exposeAction(S,E){return c.actionCreators[S]=E,l},exposeCaseReducer(S,E){return c.sliceCaseReducersByName[S]=E,l}};a.forEach(S=>{let E=o[S],I={reducerName:S,type:ta(s,S),createNotation:typeof n.reducers=="function"};oa(E)?ca(I,E,l,t):ia(I,E,l)});function u(){let[S={},E=[],I=void 0]=typeof n.extraReducers=="function"?Vs(n.extraReducers):[n.extraReducers],C={...S,...c.sliceCaseReducersByType};return zo(n.initialState,N=>{for(let M in C)N.addCase(M,C[M]);for(let M of c.sliceMatchers)N.addMatcher(M.matcher,M.reducer);for(let M of E)N.addMatcher(M.matcher,M.reducer);I&&N.addDefaultCase(I)})}let d=S=>S,h=new Map,g=new WeakMap,v;function O(S,E){return v||(v=u()),v(S,E)}function A(){return v||(v=u()),v.getInitialState()}function R(S,E=!1){function I(N){let M=N[S];return typeof M>"u"&&E&&(M=Pt(g,I,A)),M}function C(N=d){return Pt(Pt(h,E,()=>new WeakMap),N,()=>{let M={};for(let[no,so]of Object.entries(n.selectors??{}))M[no]=na(so,N,()=>Pt(g,N,A),E);return M})}return{reducerPath:S,getSelectors:C,get selectors(){return C(I)},selectSlice:I}}let U={name:s,reducer:O,actions:c.actionCreators,caseReducers:c.sliceCaseReducersByName,getInitialState:A,...R(i),injectInto(S,{reducerPath:E,...I}={}){let C=E??i;return S.inject({reducerPath:C,reducer:O},I),{...U,...R(C,!0)}}};return U}}function na(e,t,r,n){function s(i,...o){let a=t(i);return typeof a>"u"&&n&&(a=r()),e(a,...o)}return s.unwrapped=e,s}var zs=ra();function sa(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function ia({type:e,reducerName:t,createNotation:r},n,s){let i,o;if("reducer"in n){if(r&&!aa(n))throw new Error(Q(17));i=n.reducer,o=n.prepare}else i=n;s.addCase(e,i).exposeCaseReducer(t,i).exposeAction(t,o?ne(e,o):ne(e))}function oa(e){return e._reducerDefinitionType==="asyncThunk"}function aa(e){return e._reducerDefinitionType==="reducerWithPrepare"}function ca({type:e,reducerName:t},r,n,s){if(!s)throw new Error(Q(18));let{payloadCreator:i,fulfilled:o,pending:a,rejected:c,settled:l,options:u}=r,d=s(e,i,u);n.exposeAction(t,d),o&&n.addCase(d.fulfilled,o),a&&n.addCase(d.pending,a),c&&n.addCase(d.rejected,c),l&&n.addMatcher(d.settled,l),n.exposeCaseReducer(t,{fulfilled:o||Ft,pending:a||Ft,rejected:c||Ft,settled:l||Ft})}function Ft(){}var Ks="listener",Ws="completed",Gs="cancelled",kc=`task-${Gs}`,Nc=`task-${Ws}`,Dc=`${Ks}-${Gs}`,Mc=`${Ks}-${Ws}`;var{assign:Qs}=Object;var Dr="listenerMiddleware";var la=Qs(ne(`${Dr}/add`),{withTypes:()=>la}),Lc=ne(`${Dr}/removeAll`),ua=Qs(ne(`${Dr}/remove`),{withTypes:()=>ua});function Q(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var da=pt(Symbol("withEventBus"),function(e,t){return class extends e{constructor(){super(...arguments),this.eventBus=t??document.createElement("span")}addEventListener(r,n,s){this.eventBus.addEventListener(r,n,s)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,n,s){this.eventBus.removeEventListener(r,n,s)}}}),Ut=class extends da(Object){};window.ftReduxStores||(window.ftReduxStores={});var Ys=class e extends Ut{static get(t){var r;let n=typeof t=="string"?t:t.name,s=typeof t=="string"?void 0:t,i=window.ftReduxStores[n];if(gt(i))return i;if(s==null)return;let o=zs({...s,reducers:(r=s.reducers)!==null&&r!==void 0?r:{}}),a=js({reducer:(c,l)=>{if(l.type==="CLEAR_FT_REDUX_STORE"){let u=Ke(o.getInitialState());for(let d of l.keeping)u[d]=(c??u)[d];return u}else if(typeof l.type=="string"&&l.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...c,...l.overwrites};return o.reducer(c,l)}});return window.ftReduxStores[s.name]=new e(o,a,s.eventBus,s.deprecatedKeys)}constructor(t,r,n,s){super(),this.reduxSlice=t,this.reduxStore=r,this.deprecatedKeys=s,this.isFtReduxStore=!0,this.commands=new ht,this.injectInto=(o,a)=>this.reduxSlice.injectInto(o,a),this.selectSlice=o=>this.reduxSlice.selectSlice(o);let i=o=>o!=null?JSON.parse(JSON.stringify(o)):o;this.actions=new Proxy(this.reduxSlice.actions,{get:(o,a,c)=>{let l=a,u=o[l];return u?(...d)=>{let h=u(...d.map(i));return this.reduxStore.dispatch(h),h}:d=>{let h=l,g=this.getState()[h];ke(g,d)||this.setState({[h]:i(d)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...t){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:t})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}get selectors(){return this.reduxSlice.selectors}get reducerPath(){return this.reduxSlice.reducerPath}getSelectors(){return this.reduxSlice.getSelectors()}};var $t=class{static format(t,r,n,s,i){return window.moment?window.moment(t).locale(r).format(this.getMomentDateFormat(n,s,!!i)):this.getIntlDateTime(t,r,n,s,!!i)}static getMomentDateFormat(t,r,n){return n?"LT":t?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(t,r,n,s,i){let o=typeof t=="string"?new Date(t):t,a=new Intl.DateTimeFormat(r,{dateStyle:n?"medium":"short"}).format(o),c=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(o);return i?c:s?`${a} ${c}`:a}static getTimezoneAsString(){let t=n=>String(Math.floor(n)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${t(Math.abs(r)/60)}:${t(Math.abs(r)%60)}`}};var Ht=m(x()),pa="ft-app-info",se=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};se.eventName="authentication-change";var rt=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};rt.eventName="ui-locale-changed";var ha={session:(e,t)=>{(0,Ht.deepEqual)(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>y.dispatchEvent(new se(t.payload)),0))}},y=Ht.FtReduxStore.get({name:pa,reducers:ha,initialState:{baseUrl:void 0,tenantId:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableContentLocales:[],localesConfiguration:void 0,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,noCustomCode:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1,stickyFilters:void 0}});var Xs=m(x()),Bt=function(e,t,r,n){var s=arguments.length,i=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(i=(s<3?o(i):s>3?o(t,r,i):o(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},dl=(0,Xs.applyMixinOnce)(Symbol("withDateFormat"),function(e){class t extends e{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(y)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var s,i;return((i=(s=this.metadataDescriptors.find(a=>a.key===n))===null||s===void 0?void 0:s.date)!==null&&i!==void 0?i:!1)?a=>$t.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Bt([(0,Mr.property)({type:Boolean})],t.prototype,"useLongDateFormat",void 0),Bt([(0,Mr.property)({type:Boolean})],t.prototype,"useDateTimeFormat",void 0),Bt([fr({store:y.name,selector:r=>{var n,s;return(s=(n=r.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&s!==void 0?s:[]}})],t.prototype,"metadataDescriptors",void 0),Bt([fr({store:y.name})],t.prototype,"uiLocale",void 0),t});var Kt=m(x());var Lr=m(x());var he=class e{static get(t){let{baseUrl:r,apiIntegrationIdentifier:n}=y.getState(),s=t??n;if(r&&s&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,s,!0)}static await(t){return new Promise(r=>{let n=e.get(t);if(n)r(n);else{let s=y.subscribe(()=>{n=e.get(t),n&&(s(),r(n))})}})}};var Pe=class{constructor(t){this.overrideApi=t}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:he.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):he.await()}};var F=class extends Pe{constructor(t=!0,r){var n;super(r),this.sortObjectFields=(i,o)=>typeof o!="object"||o==null||Array.isArray(o)?o:Object.fromEntries(Object.entries(o).sort(([a],[c])=>a.localeCompare(c)));let s=this.constructor;s.commonCache=(n=s.commonCache)!==null&&n!==void 0?n:new Lr.CacheRegistry,this.cache=t?s.commonCache:new Lr.CacheRegistry}clearCache(){this.cache.clearAll()}hash(t){return String(Array.from(JSON.stringify(t,this.sortObjectFields)).reduce((r,n)=>0|31*r+n.charCodeAt(0),0))}};var jt=class extends F{async listMySearches(){let{session:t}=y.getState();return dt(t,_.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),300*1e3):[]}};var Vt=class extends F{async listMyBookmarks(){let t=y.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),300*1e3):[]}};var qt=class extends F{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetCount(t){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${t}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(t){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${t}`),this.CACHE_DURATION)}isAuthenticated(){let t=y.getState().session;return!!t?.sessionAuthenticated}};var zt=class extends F{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let t=y.getState().session;return!!t?.sessionAuthenticated}};var fa="ft-user-assets",ya={setAssetCount:(e,t)=>{let{userAssetType:r,count:n}=t.payload.assetCount;e.assetCounts.allAsset[r]=n},clearAssetCount:e=>{Object.values(B).forEach(t=>{e.assetCounts.allAsset[t]=void 0})},setBookmarkCountByMap:(e,t)=>{let r=t.payload.mapId;e.assetCounts.bookmarkByMap[r]=t.payload.count},clearBookmarkCountByMap:e=>{e.assetCounts.bookmarkByMap={}},addAsset:(e,t)=>{let{assetType:r,mapId:n,asset:s}=t.payload;Fr(e,r,[...Pr(e,r),s]),Js(e,r,1,n),Zs(e,s)},editAsset:(e,t)=>{let{assetType:r,asset:n}=t.payload;Fr(e,r,Pr(e,r).map(s=>s.id===n.id?n:s)),Zs(e,n)},removeAsset:(e,t)=>{let{assetType:r,mapId:n,assetId:s}=t.payload;Fr(e,r,Pr(e,r).filter(i=>i.id!==s)),Js(e,r,-1,n)}},ei={[B.SEARCHES]:"savedSearches",[B.BOOKMARKS]:"bookmarks",[B.BOOKS]:void 0,[B.COLLECTIONS]:void 0},Pr=(e,t)=>{var r;let n=ei[t];return n?(r=e[n])!==null&&r!==void 0?r:[]:[]},Fr=(e,t,r)=>{let n=ei[t];n&&(e[n]=r)},Js=(e,t,r,n)=>{let s=e.assetCounts.allAsset[t];if(s!==void 0&&(e.assetCounts.allAsset[t]=Math.max(0,s+r),t===B.BOOKMARKS&&n)){let i=e.assetCounts.bookmarkByMap[n];e.assetCounts.bookmarkByMap[n]=Math.max(0,i+r)}},Zs=(e,t)=>{let r=e.assetLabels.map(s=>s.title),n=t.labels.filter(s=>!r.includes(s)).map(s=>({title:s}));e.assetLabels.push(...n)},L=Kt.FtReduxStore.get({name:fa,reducers:ya,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(B).map(e=>[e,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Ur=class{constructor(t=new qt,r=new zt){this.assetCountsService=t,this.assetLabelsService=r,this.currentSession=y.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Vt,this.savedSearchesService=new jt,y.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:r}=y.getState();(0,Kt.deepEqual)((t=this.currentSession)===null||t===void 0?void 0:t.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),L.actions.clearAssetCount(),L.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),L.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),L.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();L.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let t=await this.assetLabelsService.getUserAssetLabels();L.actions.assetLabels(t)}async loadAssetCount(t){let r=await this.assetCountsService.getUserAssetCount(t);r&&L.getState().assetCounts.allAsset[t]!==r.count&&L.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(t){let r=await this.assetCountsService.getUserBookmarkCountByMap(t);r&&L.getState().assetCounts.bookmarkByMap[t]!==r.count&&L.actions.setBookmarkCountByMap({count:r.count,mapId:t})}async reloadAssetCount(t){this.assetCountsService.clearCache();let r=Object.keys(L.getState().assetCounts.bookmarkByMap).length!==0;t===B.BOOKMARKS&&r&&L.actions.clearBookmarkCountByMap(),L.getState().assetCounts.allAsset[t]!==void 0&&await this.loadAssetCount(t)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){let r=!((t=this.currentSession)===null||t===void 0)&&t.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;L.actions.bookmarks(r)}}},ma=new Ur;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=ma);var $r=class{addCommand(t,r=!1){y.commands.add(t,r)}consumeCommand(t){return y.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new $r;var j=m(x());var ti,Fe=class extends CustomEvent{constructor(t){super("ft-i18n-context-loaded",{detail:t})}},ga=Symbol("clearAfterUnitTest"),Wt=class extends(0,j.withEventBus)(F){constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[ti]=()=>{this.defaultMessages={},this.cache=new j.CacheRegistry,this.listeners={}},this.currentUiLocale=y.getState().uiLocale,y.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=y.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){let r=t.name.toLowerCase();this.cache.setFinal(r,t),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,r){var n;if(t=t.toLowerCase(),r&&Object.keys(r).length>0){let s={...(n=this.defaultMessages[t])!==null&&n!==void 0?n:{},...r};(0,j.deepEqual)(this.defaultMessages[t],s)||(this.defaultMessages[t]=s,await this.notify(t))}return this.fetchContext(t)}resolveContext(t){var r,n;return this.fetchContext(t),(n=(r=this.cache.getNow(t))===null||r===void 0?void 0:r.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(t,r){let n=t.toLowerCase();return this.resolveContext(n)[r]}resolveMessage(t,r,...n){var s;let i=t.toLowerCase(),o=this.resolveContext(i);return new j.ParametrizedLabelResolver((s=this.defaultMessages[i])!==null&&s!==void 0?s:{},o).resolve(r,...n)}async fetchContext(t){let r=!this.cache.has(t),n;try{n=await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t)),r&&await this.notify(t)}catch(s){!(s instanceof j.CanceledPromiseError)&&r&&console.error(s)}return n}subscribe(t,r){var n;return t=t.toLowerCase(),this.listeners[t]=(n=this.listeners[t])!==null&&n!==void 0?n:new Set,this.listeners[t].add(r),()=>{var s;return(s=this.listeners[t])===null||s===void 0?void 0:s.delete(r)}}async notifyAll(){let t=Object.keys(this.listeners);document.body.dispatchEvent(new Fe({loadedContexts:t})),this.dispatchEvent(new Fe({loadedContexts:t})),await Promise.all(t.map(r=>this.notify(r,!1)))}async notify(t,r=!0){r&&(document.body.dispatchEvent(new Fe({loadedContexts:[t]})),this.dispatchEvent(new Fe({loadedContexts:[t]}))),this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(n=>(0,j.delay)(0).then(()=>n()).catch(()=>null)))}};ti=ga;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Wt{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Wt{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var Ue=window.FluidTopicsI18nService,Gt=window.FluidTopicsCustomI18nService;var ri=m(x()),Hr=class{highlightHtml(t,r,n){(0,ri.highlightHtml)(t,r,n)}};window.FluidTopicsHighlightHtmlService=new Hr;var ni=m(x());var Br=class{isDate(t){var r,n,s,i;return(i=(n=((s=(r=y.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&s!==void 0?s:[]).find(a=>a.key===t))===null||n===void 0?void 0:n.date)!==null&&i!==void 0?i:!1}format(t,r){var n,s,i,o;if(t==null)return"";try{return ni.DateFormatter.format(t,(n=r?.locale)!==null&&n!==void 0?n:y.getState().uiLocale,(s=r?.longFormat)!==null&&s!==void 0?s:!1,(i=r?.withTime)!==null&&i!==void 0?i:!1,(o=r?.onlyTime)!==null&&o!==void 0?o:!1)}catch(a){throw console.error(`Date ${JSON.stringify(t)} is not valid`,a),a}}};window.FluidTopicsDateService=new Br;var si=m(x());var nt=class{static get(t,r,{baseUrl:n,localesConfiguration:s,availableContentLocales:i}=y.getState()){var o;if(r==="all"&&s?.allLanguagesAllowed)r=void 0;else if(!r||i.length>0&&!i.some(a=>a.lang===r)){let a=s?.defaultLocales.defaultContentLocale;r=a?`${a.lang}-${a.region}`:(o=i[0])===null||o===void 0?void 0:o.lang}return new si.SearchPlaceConverter(n,t??20,s?.allLanguagesAllowed,r,i)}};var jr=class{urlToSearchRequest(t){return nt.get().parse(t)}searchRequestToUrl(t){return nt.get().serialize(t)}};window.FluidTopicsUrlService=new jr;var Z=m(x());var fe=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{nextLocation:t}})}};fe.eventName="before-location-change";var ye=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{currentItem:t}})}};ye.eventName="change";var Vr=class{itemName(t){return`fluid-topics-history-item-${t}`}get(t){let r=sessionStorage.getItem(this.itemName(t));return r?JSON.parse(r):void 0}set(t,r){sessionStorage.setItem(this.itemName(t),JSON.stringify(r))}},ii=new Vr;var Qt=class e extends Z.WithEventBus{static build(){return new e(window.history,ii,()=>window.location,!1)}constructor(t,r,n,s){var i,o;super(),this.history=t,this.historyStorage=r,this.windowLocation=n,this.states=[],this.realPushState=t.pushState,this.realReplaceState=t.replaceState,this.initialIndex=(o=(i=t.state)===null||i===void 0?void 0:i.index)!==null&&o!==void 0?o:t.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(s)}setCurrentState(t,r=!1){let n=r&&this.currentIndex===t.index-1;this.currentState={...this.buildCurrentState(),...t},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,n&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,Z.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,this.windowLocation().href]),setTimeout(()=>this.dispatchEvent(new ye(this.currentItem())),0)}installProxies(){let t=r=>(n,s,[i,o,a])=>{let c=new URL(typeof a=="string"?a:(a??this.windowLocation()).href,window.location.origin!=="null"?window.location.origin:void 0),l=new fe(c);this.dispatchEvent(l);let u=r(),d={...u===this.currentIndex?this.currentState:void 0,...i,index:u,href:l.detail.nextLocation.href};n.apply(s,[d,o,d.href]),this.setCurrentState(d,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:t(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:t(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",t=>this.setCurrentState(t.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(t){for(let r=this.history.length-1;r>=0;r--)t?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(t){var r;let n={...this.buildCurrentState(),...t,index:this.currentIndex,title:(r=t?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(n)}addBeforeLocationChangeListener(t){this.addEventListener(fe.eventName,t)}removeBeforeLocationChangeListener(t){this.removeEventListener(fe.eventName,t)}addHistoryChangeListener(t){this.addEventListener(ye.eventName,t)}removeHistoryChangeListener(t){this.removeEventListener(ye.eventName,t)}currentItem(){return(0,Z.deepCopy)(this.currentState)}back(){let t=this.previousDifferentMajorPosition();t>=0?this.history.go(t-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,Z.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(t){let r=this.states.filter(n=>!!n).filter(n=>n.index<this.currentIndex).reverse();return(0,Z.deepCopy)(r.find(n=>t(n)))}previousDifferentMajorPosition(){let t=this.currentIndex>0?this.currentIndex-1:0;for(;t>0&&!this.isDifferentMajorState(t);)t--;return t}forward(){let t=this.nextMajorPosition();t&&t<this.states.length?this.history.go(t-this.currentIndex):this.history.forward()}forwardItem(){let t=this.nextMajorPosition();if(t)return(0,Z.deepCopy)(this.states[t])}nextMajorPosition(){let t=this.currentIndex;if(!(t>=this.states.length)){do t++;while(t<this.states.length&&!this.isDifferentMajorState(t));return this.getHigherPositionInTheSameState(t)}}getHigherPositionInTheSameState(t){var r;let n=(r=this.states[t])===null||r===void 0?void 0:r.majorStateId;if(!n)return t;let s=t,i=t+1;for(;this.states.length>i&&!this.isDifferentMajorState(i,n);)this.hasState(i)&&(s=i),i++;return s}buildCurrentState(){var t,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(t=this.history.state)===null||t===void 0?void 0:t.title)!==null&&r!==void 0?r:document.title}}hasState(t){return this.states[t]!=null}isDifferentMajorState(t,r){var n;if(!this.hasState(t))return!1;let s=r??this.currentState.majorStateId,i=(n=this.states[t])===null||n===void 0?void 0:n.majorStateId;return i==null||i!=s}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Qt.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:e=>window.FluidTopicsInternalHistoryService.backwardItemMatching(e),addHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(e),removeHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(e),addBeforeLocationChangeListener:e=>window.FluidTopicsInternalHistoryService.addBeforeLocationChangeListener(e),removeBeforeLocationChangeListener:e=>window.FluidTopicsInternalHistoryService.removeBeforeLocationChangeListener(e)});var oi=m(X());var ai=oi.css`
|
|
4
|
-
`;var
|
|
3
|
+
`;var ie=m(v()),it=m(z());var qe;(function(t){t.CLUSTERED_SEARCH="CLUSTERED_SEARCH"})(qe||(qe={}));var se=m(v());var ao=m(v());var mn;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(mn||(mn={}));var gn;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(gn||(gn={}));var Sn;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(Sn||(Sn={}));var En;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(En||(En={}));var An;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(An||(An={}));var vn;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(vn||(vn={}));var xn;(function(t){t.PUBLISHED="PUBLISHED",t.AI="AI"})(xn||(xn={}));var bn;(function(t){t.BOOKMARK__CREATE="BOOKMARK__CREATE",t.BOOKMARK__DELETE="BOOKMARK__DELETE",t.CASE_DEFLECTION__START="CASE_DEFLECTION__START",t.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",t.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",t.CHATBOT__RATE="CHATBOT__RATE",t.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",t.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",t.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",t.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",t.DOCUMENT__PRINT="DOCUMENT__PRINT",t.DOCUMENT__PROCESS="DOCUMENT__PROCESS",t.DOCUMENT__RATE="DOCUMENT__RATE",t.DOCUMENT__SEARCH="DOCUMENT__SEARCH",t.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",t.DOCUMENT__UNRATE="DOCUMENT__UNRATE",t.FEEDBACK__SEND="FEEDBACK__SEND",t.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",t.AI__RATE="AI__RATE",t.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",t.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",t.KHUB__PROCESS="KHUB__PROCESS",t.KHUB__SEARCH="KHUB__SEARCH",t.LABELS__DOWNLOAD="LABELS__DOWNLOAD",t.LINK__SHARE="LINK__SHARE",t.PAGE__DISPLAY="PAGE__DISPLAY",t.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",t.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",t.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",t.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",t.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",t.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",t.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",t.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",t.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",t.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",t.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",t.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",t.TOPIC__RATE="TOPIC__RATE",t.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",t.TOPIC__UNRATE="TOPIC__UNRATE",t.USER__LOGIN="USER__LOGIN",t.USER__LOGOUT="USER__LOGOUT",t.HEARTBEAT="HEARTBEAT"})(bn||(bn={}));var _n;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(_n||(_n={}));var Cn;(function(t){t.METADATA_FILTER="METADATA_FILTER",t.ACCESS_RIGHTS_FILTER="ACCESS_RIGHTS_FILTER"})(Cn||(Cn={}));var wn;(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",t.DOC_DIFF="DOC_DIFF"})(wn||(wn={}));var Tn;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT",t.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",t.LINK_PREVIEW="LINK_PREVIEW",t.UD_VIEWER="UD_VIEWER",t.ASSET_VIEWER="ASSET_VIEWER"})(Tn||(Tn={}));var On;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(On||(On={}));var Rn;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Rn||(Rn={}));var In;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(In||(In={}));var kn;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(kn||(kn={}));var Nn;(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"})(Nn||(Nn={}));var ur;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(ur||(ur={}));var Dn;(function(t){t.ASC="ASC",t.DESC="DESC"})(Dn||(Dn={}));var Mn;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Mn||(Mn={}));var dr;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(dr||(dr={}));var Ln;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Ln||(Ln={}));var Pn;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Pn||(Pn={}));var Fn;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Fn||(Fn={}));var Un;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Un||(Un={}));var $n;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})($n||($n={}));var pr;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(pr||(pr={}));var Hn;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Hn||(Hn={}));var b;(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.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",t.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(b||(b={}));var U;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(U||(U={}));var Bn;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(Bn||(Bn={}));var jn;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(jn||(jn={}));var Vn;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Vn||(Vn={}));var qn;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(qn||(qn={}));var zn;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(zn||(zn={}));var Kn;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.SEMANTIC_SEARCH="SEMANTIC_SEARCH",t.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",t.DOCUMENTATION="DOCUMENTATION",t.OTHER="OTHER"})(Kn||(Kn={}));var Wn;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(Wn||(Wn={}));var Gn;(function(t){t.CHAT="CHAT",t.COMPLETION="COMPLETION",t.RAG="RAG",t.AGENT="AGENT"})(Gn||(Gn={}));var Qn;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Qn||(Qn={}));var Yn;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(Yn||(Yn={}));var Xn;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(Xn||(Xn={}));var Jn;(function(t){t.SOURCES="SOURCES",t.ENRICH_AND_CLEAN="ENRICH_AND_CLEAN",t.VOCABULARIES="VOCABULARIES",t.METADATA="METADATA",t.PRETTY_URL="PRETTY_URL",t.ACCESS_RULE="ACCESS_RULE",t.DESIGNED_PAGES="DESIGNED_PAGES",t.THEME_STUDIO="THEME_STUDIO",t.PORTAL_GENERAL="PORTAL_GENERAL",t.ASSETS="ASSETS",t.CODE_LIBRARY="CODE_LIBRARY",t.THEME="THEME",t.CONTENT_STYLES="CONTENT_STYLES",t.HOMEPAGE="HOMEPAGE",t.CLASSIC_SEARCH_PAGE="CLASSIC_SEARCH_PAGE",t.CLASSIC_READER_PAGE="CLASSIC_READER_PAGE",t.PORTAL_METADATA="PORTAL_METADATA",t.LANGUAGES="LANGUAGES",t.PRINT_TEMPLATES="PRINT_TEMPLATES",t.OFFLINE="OFFLINE",t.CUSTOM_JS="CUSTOM_JS",t.CONFIDENTIALITY="CONFIDENTIALITY",t.NOTIFICATIONS="NOTIFICATIONS"})(Jn||(Jn={}));var Zn;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(Zn||(Zn={}));var co={[b.PERSONAL_BOOK_SHARE_USER]:[b.PERSONAL_BOOK_USER],[b.HTML_EXPORT_USER]:[b.PERSONAL_BOOK_USER],[b.PDF_EXPORT_USER]:[b.PERSONAL_BOOK_USER],[b.KHUB_ADMIN]:[b.CONTENT_PUBLISHER],[b.ADMIN]:[b.KHUB_ADMIN,b.USERS_ADMIN,b.PORTAL_ADMIN,b.BEHAVIOR_DATA_USER],[b.GENERATIVE_AI_EXPORT_USER]:[b.GENERATIVE_AI_USER]};function es(t,e){return t===e||(co[t]??[]).some(r=>es(r,e))}function dt(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(n=>es(n,e))}function ts(t,...e){return t==null?!1:e.some(r=>dt(t,r))}var Dr=m(z());var rs=m(z(),1);var hr=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)},lo=t=>({fromAttribute:e=>{if(e==null)return ze(t);try{return JSON.parse(e)}catch{return ze(t)}},toAttribute:e=>JSON.stringify(e)});function ns(t,e){return(0,rs.property)({type:Object,converter:lo(t),hasChanged:Ke,...e??{}})}function uo(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;let r,n;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(n=r;n--!==0;)if(!Ie(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(!Ie(n[1],e.get(n[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let s=o=>Object.keys(o).filter(a=>o[a]!=null),i=s(t);if(r=i.length,r!==s(e).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(e,i[n]))return!1;for(n=r;n--!==0;){let o=i[n];if(!Ie(t[o],e[o]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function Ie(t,e){try{return uo(t,e)}catch{return!1}}function Ke(t,e){return!Ie(t,e)}function ze(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function pt(t,e){let r=n=>n[t]===!0;return n=>{if(r(n))return n;let s=e(n);return s[t]=!0,s}}var ss=m(z(),1);var fr=t=>{let e=t??{};return(r,n)=>{var s;let i={hasChanged:Ke,attribute:!1,...e};(0,ss.property)(i)(r,n);let o=r.constructor;o.reduxProperties=new Map(o.reduxProperties),o.reduxProperties.set(n,{selector:(s=e.selector)!==null&&s!==void 0?s:(a=>a[n]),store:e.store})}};var ht=class{constructor(){this.queue=[]}add(e,r=!1){r&&this.clear(e.type),this.queue.push(e)}consume(e){let r=this.queue.find(n=>n.type===e);return r&&(this.queue=this.queue.filter(n=>n!==r)),r}clear(e){typeof e=="string"?this.queue=this.queue.filter(r=>r.type!==e):this.queue=this.queue.filter(r=>!e.test(r.type))}};var le=m(z(),1);var ft=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,r){return this.callbacks=[e],this.debounce(r)}queue(e,r){return this.callbacks.push(e),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((r,n)=>{this.resolvePromise=r,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let n=[...this.callbacks];this.callbacks=[];let s=(e=this.rejectPromise)!==null&&e!==void 0?e:(()=>null),i=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let o of n)try{await o()}catch(a){s(a);return}i(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var mt=m(Y(),1);var yt=class extends mt.LitElement{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let e=this.scopedRegistryConstructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,e.defineScopedElements(e.elementDefinitions));let r={...e.shadowRootOptions,customElements:e.registry},n=this.renderOptions.creationScope=this.attachShadow(r);return(0,mt.adoptStyles)(n,e.elementStyles),n}static canDefineScopedElement(e){return!!this.registry&&!this.registry.get(e)}static defineScopedElements(e){Object.entries(e).forEach(([r,n])=>this.defineScopedElement(r,n))}static defineScopedElement(e,r){hr(e)(r),this.canDefineScopedElement(e)&&this.registry.define(e,r)}canDefineScopedElement(e){return this.scopedRegistryConstructor.canDefineScopedElement(e)}defineScopedElements(e){this.scopedRegistryConstructor.defineScopedElements(e)}defineScopedElement(e,r){this.scopedRegistryConstructor.defineScopedElement(e,r)}};function is(t,e,...r){var n;let s=t.querySelector(e);for(let i of r)s=(n=s?.shadowRoot)===null||n===void 0?void 0:n.querySelector(i);return s}var Ne=function(t,e,r,n){var s=arguments.length,i=s<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(i=(s<3?o(i):s>3?o(e,r,i):o(e,r))||i);return s>3&&i&&Object.defineProperty(e,r,i),i},ls,os=Symbol("constructorPrototype"),as=Symbol("constructorName"),us=Symbol("exportpartsDebouncer"),cs=Symbol("dynamicDependenciesLoaded"),ke=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};ke.eventName="exportparts-updated";var K=class extends yt{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[ls]=new ft(5),this.scheduleExportpartsUpdate=()=>{var e,r,n;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(n=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&n!==void 0&&n)&&this[us].run(()=>{var s,i;!((s=this.exportpartsPrefix)===null||s===void 0)&&s.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((i=this.exportpartsPrefixes)===null||i===void 0?void 0:i.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[as]=this.constructor.name,this[os]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[as]&&Object.setPrototypeOf(this,this[os])}connectedCallback(){var e;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(n){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",n)}let r=this.constructor;r[cs]||(r[cs]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(ke.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(ke.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate(),e.has("exportparts")&&this.dispatchEvent(new ke)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:n,shadowPath:s}=this.elementToFocus;if(n!=null){let i=[...s??[],n];r=is(this.shadowRoot,...i)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var r,n,s;if(((n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(i=>i.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((s=this.customStylesheet)!==null&&s!==void 0?s:"")}catch(i){console.error(i,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let i=document.createElement("style");i.classList.add("ft-lit-element--custom-stylesheet"),i.innerHTML=this.customStylesheet,this.shadowRoot.append(i)}}setExportpartsAttribute(e){var r,n,s,i,o,a;let c=h=>h!=null&&h.trim().length>0,l=e.filter(c).map(h=>h.trim());if(l.length===0){this.exportparts=void 0;return}let d=new Set;for(let h of(i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&i!==void 0?i:[]){let g=(o=(n=h.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&o!==void 0?o:[],_=(a=(s=h.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(S=>S.split(":")[1]))!==null&&a!==void 0?a:[],P=[...g,..._].filter(c).map(S=>S.trim());for(let S of P)d.add(S)}if(d.size===0){this.exportparts=void 0;return}let u=[...d.values()].flatMap(h=>l.map(g=>`${h}:${g}--${h}`));this.exportparts=[...this.part,...u].join(", ")}};ls=us;Ne([(0,le.property)()],K.prototype,"exportpartsPrefix",void 0);Ne([ns([])],K.prototype,"exportpartsPrefixes",void 0);Ne([(0,le.property)({reflect:!0})],K.prototype,"exportparts",void 0);Ne([(0,le.property)()],K.prototype,"customStylesheet",void 0);Ne([(0,le.property)()],K.prototype,"elementToFocus",void 0);Ne([(0,le.state)()],K.prototype,"useAdoptedStyleSheets",void 0);function gt(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var We=Symbol("internalReduxEventsUnsubscribers"),re=Symbol("internalStoresUnsubscribers"),ue=Symbol("internalStores"),po=pt(Symbol("withRedux"),function(t){var e,r,n;class s extends t{constructor(){super(...arguments),this[e]=new Map,this[r]=new Map,this[n]=new Map}get reduxConstructor(){return this.constructor}willUpdate(o){super.willUpdate(o),[...this.reduxConstructor.reduxReactiveProperties].some(a=>o.has(a))&&this.updateFromStores()}getUnnamedStore(){if(this[ue].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[ue].values()][0]}getStore(o){return o==null?this.getUnnamedStore():this[ue].get(o)}addStore(o,a){var c;a=(c=a??o.name)!==null&&c!==void 0?c:"default-store",this.unsubscribeFromStore(a),this[ue].set(a,o),this.subscribeToStore(a,o),this.updateFromStores()}removeStore(o){let a=typeof o=="string"?o:o.name;this.unsubscribeFromStore(a),this[ue].delete(a)}setupStores(){this.unsubscribeFromStores(),this[ue].forEach((o,a)=>this.subscribeToStore(a,o)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((o,a)=>{let c=this.constructor.getPropertyOptions(a);if(!c?.attribute||!this.hasAttribute(typeof c?.attribute=="string"?c.attribute:a)){let l=this.getStore(o.store);l&&(o.store?this[re].has(o.store):this[re].size>0)&&(this[a]=o.selector(l.getState(),this))}})}subscribeToStore(o,a){var c,l;this[re].set(o,a.subscribe(()=>this.updateFromStores())),this[We].set(o,[]),gt(a)&&(!((c=a.deprecatedKeys)===null||c===void 0)&&c.length&&this.reduxConstructor.reduxProperties.forEach((d,u)=>{this.getStore(d.store)===a&&a.deprecatedKeys.includes(u)&&console.warn("Element",this,"is subscribed to deprecated key",u,"in store",a.name)}),a.eventBus&&((l=this.reduxConstructor.reduxEventListeners)===null||l===void 0||l.forEach((d,u)=>{if(typeof this[u]=="function"&&(!d.store||a.name===d.store)){let h=g=>this[u](g);a.addEventListener(d.eventName,h),this[We].get(o).push(()=>a.removeEventListener(d.eventName,h))}}))),this.onStoreAvailable(o)}unsubscribeFromStores(){this[re].forEach((o,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(o){var a;this[re].has(o)&&this[re].get(o)(),this[re].delete(o),(a=this[We].get(o))===null||a===void 0||a.forEach(c=>c()),this[We].delete(o)}onStoreAvailable(o){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=re,r=ue,n=We,s.reduxProperties=new Map,s.reduxReactiveProperties=new Set,s.reduxEventListeners=new Map,s}),ds=class extends po(K){};function T(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 ho=typeof Symbol=="function"&&Symbol.observable||"@@observable",ps=ho,yr=()=>Math.random().toString(36).substring(7).split("").join("."),fo={INIT:`@@redux/INIT${yr()}`,REPLACE:`@@redux/REPLACE${yr()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${yr()}`},St=fo;function Et(t){if(typeof t!="object"||t===null)return!1;let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e||Object.getPrototypeOf(t)===null}function mr(t,e,r){if(typeof t!="function")throw new Error(T(2));if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(T(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(T(1));return r(mr)(t,e)}let n=t,s=e,i=new Map,o=i,a=0,c=!1;function l(){o===i&&(o=new Map,i.forEach((S,F)=>{o.set(F,S)}))}function d(){if(c)throw new Error(T(3));return s}function u(S){if(typeof S!="function")throw new Error(T(4));if(c)throw new Error(T(5));let F=!0;l();let V=a++;return o.set(V,S),function(){if(F){if(c)throw new Error(T(6));F=!1,l(),o.delete(V),i=null}}}function h(S){if(!Et(S))throw new Error(T(7));if(typeof S.type>"u")throw new Error(T(8));if(typeof S.type!="string")throw new Error(T(17));if(c)throw new Error(T(9));try{c=!0,s=n(s,S)}finally{c=!1}return(i=o).forEach(V=>{V()}),S}function g(S){if(typeof S!="function")throw new Error(T(10));n=S,h({type:St.REPLACE})}function _(){let S=u;return{subscribe(F){if(typeof F!="object"||F===null)throw new Error(T(11));function V(){let A=F;A.next&&A.next(d())}return V(),{unsubscribe:S(V)}},[ps](){return this}}}return h({type:St.INIT}),{dispatch:h,subscribe:u,getState:d,replaceReducer:g,[ps]:_}}function yo(t){Object.keys(t).forEach(e=>{let r=t[e];if(typeof r(void 0,{type:St.INIT})>"u")throw new Error(T(12));if(typeof r(void 0,{type:St.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(T(13))})}function gr(t){let e=Object.keys(t),r={};for(let o=0;o<e.length;o++){let a=e[o];typeof t[a]=="function"&&(r[a]=t[a])}let n=Object.keys(r),s,i;try{yo(r)}catch(o){i=o}return function(a={},c){if(i)throw i;let l=!1,d={};for(let u=0;u<n.length;u++){let h=n[u],g=r[h],_=a[h],P=g(_,c);if(typeof P>"u"){let S=c&&c.type;throw new Error(T(14))}d[h]=P,l=l||P!==_}return l=l||n.length!==Object.keys(a).length,l?d:a}}function Ge(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce((e,r)=>(...n)=>e(r(...n)))}function hs(...t){return e=>(r,n)=>{let s=e(r,n),i=()=>{throw new Error(T(15))},o={getState:s.getState,dispatch:(c,...l)=>i(c,...l)},a=t.map(c=>c(o));return i=Ge(...a)(s.dispatch),{...s,dispatch:i}}}function fs(t){return Et(t)&&"type"in t&&typeof t.type=="string"}var bs=Symbol.for("immer-nothing"),ys=Symbol.for("immer-draftable"),O=Symbol.for("immer-state");function j(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var M=Object,Me=M.getPrototypeOf,bt="constructor",Rt="prototype",vr="configurable",_t="enumerable",vt="writable",Qe="value",W=t=>!!t&&!!t[O];function L(t){return t?_s(t)||kt(t)||!!t[ys]||!!t[bt]?.[ys]||Nt(t)||Ze(t):!1}var mo=M[Rt][bt].toString(),ms=new WeakMap;function _s(t){if(!t||!Rr(t))return!1;let e=Me(t);if(e===null||e===M[Rt])return!0;let r=M.hasOwnProperty.call(e,bt)&&e[bt];if(r===Object)return!0;if(!De(r))return!1;let n=ms.get(r);return n===void 0&&(n=Function.toString.call(r),ms.set(r,n)),n===mo}function It(t,e,r=!0){Je(t)===0?(r?Reflect.ownKeys(t):M.keys(t)).forEach(s=>{e(s,t[s],t)}):t.forEach((n,s)=>e(s,n,t))}function Je(t){let e=t[O];return e?e.type_:kt(t)?1:Nt(t)?2:Ze(t)?3:0}var Sr=(t,e,r=Je(t))=>r===2?t.has(e):M[Rt].hasOwnProperty.call(t,e),xr=(t,e,r=Je(t))=>r===2?t.get(e):t[e],Ct=(t,e,r,n=Je(t))=>{n===2?t.set(e,r):n===3?t.add(r):t[e]=r};function go(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}var kt=Array.isArray,Nt=t=>t instanceof Map,Ze=t=>t instanceof Set,Rr=t=>typeof t=="object",De=t=>typeof t=="function",Er=t=>typeof t=="boolean";function So(t){let e=+t;return Number.isInteger(e)&&String(e)===t}var X=t=>t.copy_||t.base_;var Ir=t=>t.modified_?t.copy_:t.base_;function br(t,e){if(Nt(t))return new Map(t);if(Ze(t))return new Set(t);if(kt(t))return Array[Rt].slice.call(t);let r=_s(t);if(e===!0||e==="class_only"&&!r){let n=M.getOwnPropertyDescriptors(t);delete n[O];let s=Reflect.ownKeys(n);for(let i=0;i<s.length;i++){let o=s[i],a=n[o];a[vt]===!1&&(a[vt]=!0,a[vr]=!0),(a.get||a.set)&&(n[o]={[vr]:!0,[vt]:!0,[_t]:a[_t],[Qe]:t[o]})}return M.create(Me(t),n)}else{let n=Me(t);if(n!==null&&r)return{...t};let s=M.create(n);return M.assign(s,t)}}function Dt(t,e=!1){return Mt(t)||W(t)||!L(t)||(Je(t)>1&&M.defineProperties(t,{set:At,add:At,clear:At,delete:At}),M.freeze(t),e&&It(t,(r,n)=>{Dt(n,!0)},!1)),t}function Eo(){j(2)}var At={[Qe]:Eo};function Mt(t){return t===null||!Rr(t)?!0:M.isFrozen(t)}var wt="MapSet",_r="Patches",gs="ArrayMethods",Cs={};function de(t){let e=Cs[t];return e||j(0,t),e}var Ss=t=>!!Cs[t];var Ye,ws=()=>Ye,Ao=(t,e)=>({drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Ss(wt)?de(wt):void 0,arrayMethodsPlugin_:Ss(gs)?de(gs):void 0});function Es(t,e){e&&(t.patchPlugin_=de(_r),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function Cr(t){wr(t),t.drafts_.forEach(vo),t.drafts_=null}function wr(t){t===Ye&&(Ye=t.parent_)}var As=t=>Ye=Ao(Ye,t);function vo(t){let e=t[O];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function vs(t,e){e.unfinalizedDrafts_=e.drafts_.length;let r=e.drafts_[0];if(t!==void 0&&t!==r){r[O].modified_&&(Cr(e),j(4)),L(t)&&(t=xs(e,t));let{patchPlugin_:s}=e;s&&s.generateReplacementPatches_(r[O].base_,t,e)}else t=xs(e,r);return xo(e,t,!0),Cr(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==bs?t:void 0}function xs(t,e){if(Mt(e))return e;let r=e[O];if(!r)return Tt(e,t.handledSet_,t);if(!Lt(r,t))return e;if(!r.modified_)return r.base_;if(!r.finalized_){let{callbacks_:n}=r;if(n)for(;n.length>0;)n.pop()(t);Rs(r,t)}return r.copy_}function xo(t,e,r=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&Dt(e,r)}function Ts(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}var Lt=(t,e)=>t.scope_===e,bo=[];function Os(t,e,r,n){let s=X(t),i=t.type_;if(n!==void 0&&xr(s,n,i)===e){Ct(s,n,r,i);return}if(!t.draftLocations_){let a=t.draftLocations_=new Map;It(s,(c,l)=>{if(W(l)){let d=a.get(l)||[];d.push(c),a.set(l,d)}})}let o=t.draftLocations_.get(e)??bo;for(let a of o)Ct(s,a,r,i)}function _o(t,e,r){t.callbacks_.push(function(s){let i=e;if(!i||!Lt(i,s))return;s.mapSetPlugin_?.fixSetContents(i);let o=Ir(i);Os(t,i.draft_??i,o,r),Rs(i,s)})}function Rs(t,e){if(t.modified_&&!t.finalized_&&(t.type_===3||t.type_===1&&t.allIndicesReassigned_||(t.assigned_?.size??0)>0)){let{patchPlugin_:n}=e;if(n){let s=n.getPath(t);s&&n.generatePatches_(t,s,e)}Ts(t)}}function Co(t,e,r){let{scope_:n}=t;if(W(r)){let s=r[O];Lt(s,n)&&s.callbacks_.push(function(){xt(t);let o=Ir(s);Os(t,r,o,e)})}else L(r)&&t.callbacks_.push(function(){let i=X(t);t.type_===3?i.has(r)&&Tt(r,n.handledSet_,n):xr(i,e,t.type_)===r&&n.drafts_.length>1&&(t.assigned_.get(e)??!1)===!0&&t.copy_&&Tt(xr(t.copy_,e,t.type_),n.handledSet_,n)})}function Tt(t,e,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||W(t)||e.has(t)||!L(t)||Mt(t)||(e.add(t),It(t,(n,s)=>{if(W(s)){let i=s[O];if(Lt(i,r)){let o=Ir(i);Ct(t,n,o,t.type_),Ts(i)}}else L(s)&&Tt(s,e,r)})),t}function wo(t,e){let r=kt(t),n={type_:r?1:0,scope_:e?e.scope_:ws(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},s=n,i=Ot;r&&(s=[n],i=Xe);let{revoke:o,proxy:a}=Proxy.revocable(s,i);return n.draft_=a,n.revoke_=o,[a,n]}var Ot={get(t,e){if(e===O)return t;let r=t.scope_.arrayMethodsPlugin_,n=t.type_===1&&typeof e=="string";if(n&&r?.isArrayOperationMethod(e))return r.createMethodInterceptor(t,e);let s=X(t);if(!Sr(s,e,t.type_))return Oo(t,s,e);let i=s[e];if(t.finalized_||!L(i)||n&&t.operationMethod&&r?.isMutatingArrayMethod(t.operationMethod)&&So(e))return i;if(i===Ar(t.base_,e)||To(t,e,i)){xt(t);let o=t.type_===1?+e:e,a=Or(t.scope_,i,t,o);return t.copy_[o]=a}return i},has(t,e){return e in X(t)},ownKeys(t){return Reflect.ownKeys(X(t))},set(t,e,r){let n=Is(X(t),e);if(n?.set)return n.set.call(t.draft_,r),!0;if(!t.modified_){let s=Ar(X(t),e),i=s?.[O];if(i&&i.base_===r)return t.copy_[e]=r,t.assigned_.delete(e),!0;if(go(r,s)&&(r!==void 0||Sr(t.base_,e,t.type_)))return!0;xt(t),Tr(t)}return t.copy_[e]===r&&(r!==void 0||Sr(t.copy_,e,t.type_))||Number.isNaN(r)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=r,t.assigned_.set(e,!0),Co(t,e,r)),!0},deleteProperty(t,e){return xt(t),Ar(t.base_,e)!==void 0||e in t.base_?(t.assigned_.set(e,!1),Tr(t)):t.assigned_.delete(e),t.copy_&&delete t.copy_[e],!0},getOwnPropertyDescriptor(t,e){let r=X(t),n=Reflect.getOwnPropertyDescriptor(r,e);return n&&{[vt]:!0,[vr]:t.type_!==1||e!=="length",[_t]:n[_t],[Qe]:r[e]}},defineProperty(){j(11)},getPrototypeOf(t){return Me(t.base_)},setPrototypeOf(){j(12)}},Xe={};for(let t in Ot){let e=Ot[t];Xe[t]=function(){let r=arguments;return r[0]=r[0][0],e.apply(this,r)}}Xe.deleteProperty=function(t,e){return Xe.set.call(this,t,e,void 0)};Xe.set=function(t,e,r){return Ot.set.call(this,t[0],e,r,t[0])};function Ar(t,e){let r=t[O];return(r?X(r):t)[e]}function To(t,e,r){return t.type_!==1||!t.allIndicesReassigned_||!L(r)||r[O]?!1:t.baseRefs_.has(r)}function Oo(t,e,r){let n=Is(e,r);return n?Qe in n?n[Qe]:n.get?.call(t.draft_):void 0}function Is(t,e){if(!(e in t))return;let r=Me(t);for(;r;){let n=Object.getOwnPropertyDescriptor(r,e);if(n)return n;r=Me(r)}}function Tr(t){t.modified_||(t.modified_=!0,t.parent_&&Tr(t.parent_))}function xt(t){t.copy_||(t.assigned_=new Map,t.copy_=br(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var Ro=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,r,n)=>{if(De(e)&&!De(r)){let i=r;r=e;let o=this;return function(c=i,...l){return o.produce(c,d=>r.call(this,d,...l))}}De(r)||j(6),n!==void 0&&!De(n)&&j(7);let s;if(L(e)){let i=As(this),o=Or(i,e,void 0),a=!0;try{s=r(o),a=!1}finally{a?Cr(i):wr(i)}return Es(i,n),vs(s,i)}else if(!e||!Rr(e)){if(s=r(e),s===void 0&&(s=e),s===bs&&(s=void 0),this.autoFreeze_&&Dt(s,!0),n){let i=[],o=[];de(_r).generateReplacementPatches_(e,s,{patches_:i,inversePatches_:o}),n(i,o)}return s}else j(1,e)},this.produceWithPatches=(e,r)=>{if(De(e))return(o,...a)=>this.produceWithPatches(o,c=>e(c,...a));let n,s;return[this.produce(e,r,(o,a)=>{n=o,s=a}),n,s]},Er(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),Er(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),Er(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){L(t)||j(8),W(t)&&(t=ks(t));let e=As(this),r=Or(e,t,void 0);return r[O].isManual_=!0,wr(e),r}finishDraft(t,e){let r=t&&t[O];(!r||!r.isManual_)&&j(9);let{scope_:n}=r;return Es(n,e),vs(void 0,n)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,e){let r;for(r=e.length-1;r>=0;r--){let s=e[r];if(s.path.length===0&&s.op==="replace"){t=s.value;break}}r>-1&&(e=e.slice(r+1));let n=de(_r).applyPatches_;return W(t)?n(t,e):this.produce(t,s=>n(s,e))}};function Or(t,e,r,n){let[s,i]=Nt(e)?de(wt).proxyMap_(e,r):Ze(e)?de(wt).proxySet_(e,r):wo(e,r);return(r?.scope_??ws()).drafts_.push(s),i.callbacks_=r?.callbacks_??[],i.key_=n,r&&n!==void 0?_o(r,i,n):i.callbacks_.push(function(c){c.mapSetPlugin_?.fixSetContents(i);let{patchPlugin_:l}=c;i.modified_&&l&&l.generatePatches_(i,[],c)}),s}function ks(t){return W(t)||j(10,t),Ns(t)}function Ns(t){if(!L(t)||Mt(t))return t;let e=t[O],r,n=!0;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,r=br(t,e.scope_.immer_.useStrictShallowCopy_),n=e.scope_.immer_.shouldUseStrictIteration()}else r=br(t,!0);let s=r;return Ze(r)&&(r=new Set),It(s,(i,o)=>{Ct(r,i,Ns(o))},n),e&&(e.finalized_=!1),r}var Io=globalThis.Iterator,lc=typeof Io?.from=="function";var ko=new Ro,kr=ko.produce;function Ds(t){return({dispatch:r,getState:n})=>s=>i=>typeof i=="function"?i(r,n,t):s(i)}var Ms=Ds(),Ls=Ds;var No=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Ge:Ge.apply(null,arguments)};typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;function tt(t,e){function r(...n){if(e){let s=e(...n);if(!s)throw new Error(G(0));return{type:t,payload:s.payload,..."meta"in s&&{meta:s.meta},..."error"in s&&{error:s.error}}}return{type:t,payload:n[0]}}return r.toString=()=>`${t}`,r.type=t,r.match=n=>n!=null&&n.type===t&&fs(n),r}var Us=class et extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,et.prototype)}static get[Symbol.species](){return et}concat(...e){return super.concat.apply(this,e)}prepend(...e){return e.length===1&&Array.isArray(e[0])?new et(...e[0].concat(this)):new et(...e.concat(this))}};function Ps(t){return L(t)?kr(t,()=>{}):t}function Pt(t,e,r){return t.has(e)?t.get(e):t.set(e,r(e)).get(e)}function Do(t){return typeof t=="boolean"}var Mo=()=>function(e){let{thunk:r=!0,immutableCheck:n=!0,serializableCheck:s=!0,actionCreatorCheck:i=!0}=e??{},o=new Us;return r&&(Do(r)?o.push(Ms):o.push(Ls(r.extraArgument))),o},Lo="RTK_autoBatch";var Fs=t=>e=>{setTimeout(e,t)},Po=(t,e,r)=>n=>{let s=!1,i,o,a=()=>{s||(s=!0,e?.(i),clearTimeout(o),n())};i=t(a),o=setTimeout(a,r)},Fo=(t={type:"raf"})=>e=>(...r)=>{let n=e(...r),s=!0,i=!1,o=!1,a=new Set,c=t.type==="tick"?queueMicrotask:t.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?Po(window.requestAnimationFrame,window.cancelAnimationFrame,100):Fs(10):t.type==="callback"?t.queueNotification:Fs(t.timeout),l=()=>{o=!1,i&&(i=!1,a.forEach(d=>d()))};return Object.assign({},n,{subscribe(d){let u=()=>s&&d(),h=n.subscribe(u);return a.add(d),()=>{h(),a.delete(d)}},dispatch(d){try{return s=!d?.meta?.[Lo],i=!s,i&&(o||(o=!0,c(l))),n.dispatch(d)}finally{s=!0}}})},Uo=t=>function(r){let{autoBatch:n=!0}=r??{},s=new Us(t);return n&&s.push(Fo(typeof n=="object"?n:void 0)),s};function $s(t){let e=Mo(),{reducer:r=void 0,middleware:n,devTools:s=!0,duplicateMiddlewareCheck:i=!0,preloadedState:o=void 0,enhancers:a=void 0}=t||{},c;if(typeof r=="function")c=r;else if(Et(r))c=gr(r);else throw new Error(G(1));let l;typeof n=="function"?l=n(e):l=e();let d=Ge;s&&(d=No({trace:!1,...typeof s=="object"&&s}));let u=hs(...l),h=Uo(u),g=typeof a=="function"?a(h):h(),_=d(...g);return mr(c,o,_)}function Hs(t){let e={},r=[],n,s={addCase(i,o){let a=typeof i=="string"?i:i.type;if(!a)throw new Error(G(28));if(a in e)throw new Error(G(29));return e[a]=o,s},addAsyncThunk(i,o){return o.pending&&(e[i.pending.type]=o.pending),o.rejected&&(e[i.rejected.type]=o.rejected),o.fulfilled&&(e[i.fulfilled.type]=o.fulfilled),o.settled&&r.push({matcher:i.settled,reducer:o.settled}),s},addMatcher(i,o){return r.push({matcher:i,reducer:o}),s},addDefaultCase(i){return n=i,s}};return t(s),[e,r,n]}function $o(t){return typeof t=="function"}function Ho(t,e){let[r,n,s]=Hs(e),i;if($o(t))i=()=>Ps(t());else{let c=Ps(t);i=()=>c}function o(c,l,d){if(W(c)){let u=l(c,d);return u===void 0?c:u}else{if(L(c))return kr(c,u=>l(u,d));{let u=l(c,d);if(u===void 0){if(c===null)return c;throw new Error(G(9))}return u}}}function a(c=i(),l){let d=r[l.type],u;for(let{matcher:h,reducer:g}of n)h(l)&&g&&(u??=[]).push(g);if(!d&&!u)return s?o(c,s,l):c;if(d&&(c=o(c,d,l)),u)for(let h of u)c=o(c,h,l);return c}return a.getInitialState=i,a}var Bo=Symbol.for("rtk-slice-createasyncthunk");function jo(t,e){return`${t}/${e}`}function Vo({creators:t}={}){let e=t?.asyncThunk?.[Bo];return function(n){let{name:s,reducerPath:i=s}=n;if(!s)throw new Error(G(11));typeof process<"u";let o=(typeof n.reducers=="function"?n.reducers(zo()):n.reducers)||{},a=Object.keys(o),c={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},l={addCase(E,A){let R=typeof E=="string"?E:E.type;if(!R)throw new Error(G(12));if(R in c.sliceCaseReducersByType)throw new Error(G(13));return c.sliceCaseReducersByType[R]=A,l},addMatcher(E,A){return c.sliceMatchers.push({matcher:E,reducer:A}),l},exposeAction(E,A){return c.actionCreators[E]=A,l},exposeCaseReducer(E,A){return c.sliceCaseReducersByName[E]=A,l}};a.forEach(E=>{let A=o[E],R={reducerName:E,type:jo(s,E),createNotation:typeof n.reducers=="function"};Wo(A)?Qo(R,A,l,e):Ko(R,A,l)});function d(){let[E={},A=[],R=void 0]=typeof n.extraReducers=="function"?Hs(n.extraReducers):[n.extraReducers],te={...E,...c.sliceCaseReducersByType};return Ho(n.initialState,q=>{for(let I in te)q.addCase(I,te[I]);for(let I of c.sliceMatchers)q.addMatcher(I.matcher,I.reducer);for(let I of A)q.addMatcher(I.matcher,I.reducer);R&&q.addDefaultCase(R)})}let u=E=>E,h=new Map,g=new WeakMap,_;function P(E,A){return _||(_=d()),_(E,A)}function S(){return _||(_=d()),_.getInitialState()}function F(E,A=!1){function R(q){let I=q[E];return typeof I>"u"&&A&&(I=Pt(g,R,S)),I}function te(q=u){return Pt(Pt(h,A,()=>new WeakMap),q,()=>{let I={};for(let[Zi,eo]of Object.entries(n.selectors??{}))I[Zi]=qo(eo,q,()=>Pt(g,q,S),A);return I})}return{reducerPath:E,getSelectors:te,get selectors(){return te(R)},selectSlice:R}}let V={name:s,reducer:P,actions:c.actionCreators,caseReducers:c.sliceCaseReducersByName,getInitialState:S,...F(i),injectInto(E,{reducerPath:A,...R}={}){let te=A??i;return E.inject({reducerPath:te,reducer:P},R),{...V,...F(te,!0)}}};return V}}function qo(t,e,r,n){function s(i,...o){let a=e(i);return typeof a>"u"&&n&&(a=r()),t(a,...o)}return s.unwrapped=t,s}var Bs=Vo();function zo(){function t(e,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...r}}return t.withTypes=()=>t,{reducer(e){return Object.assign({[e.name](...r){return e(...r)}}[e.name],{_reducerDefinitionType:"reducer"})},preparedReducer(e,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:r}},asyncThunk:t}}function Ko({type:t,reducerName:e,createNotation:r},n,s){let i,o;if("reducer"in n){if(r&&!Go(n))throw new Error(G(17));i=n.reducer,o=n.prepare}else i=n;s.addCase(t,i).exposeCaseReducer(e,i).exposeAction(e,o?tt(t,o):tt(t))}function Wo(t){return t._reducerDefinitionType==="asyncThunk"}function Go(t){return t._reducerDefinitionType==="reducerWithPrepare"}function Qo({type:t,reducerName:e},r,n,s){if(!s)throw new Error(G(18));let{payloadCreator:i,fulfilled:o,pending:a,rejected:c,settled:l,options:d}=r,u=s(t,i,d);n.exposeAction(e,u),o&&n.addCase(u.fulfilled,o),a&&n.addCase(u.pending,a),c&&n.addCase(u.rejected,c),l&&n.addMatcher(u.settled,l),n.exposeCaseReducer(e,{fulfilled:o||Ft,pending:a||Ft,rejected:c||Ft,settled:l||Ft})}function Ft(){}var js="listener",Vs="completed",qs="cancelled",gc=`task-${qs}`,Sc=`task-${Vs}`,Ec=`${js}-${qs}`,Ac=`${js}-${Vs}`;var{assign:zs}=Object;var Nr="listenerMiddleware";var Yo=zs(tt(`${Nr}/add`),{withTypes:()=>Yo}),vc=tt(`${Nr}/removeAll`),Xo=zs(tt(`${Nr}/remove`),{withTypes:()=>Xo});function G(t){return`Minified Redux Toolkit error #${t}; visit https://redux-toolkit.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var Jo=pt(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(r,n,s){this.eventBus.addEventListener(r,n,s)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,n,s){this.eventBus.removeEventListener(r,n,s)}}}),Ut=class extends Jo(Object){};window.ftReduxStores||(window.ftReduxStores={});var Ks=class t extends Ut{static get(e){var r;let n=typeof e=="string"?e:e.name,s=typeof e=="string"?void 0:e,i=window.ftReduxStores[n];if(gt(i))return i;if(s==null)return;let o=Bs({...s,reducers:(r=s.reducers)!==null&&r!==void 0?r:{}}),a=$s({reducer:(c,l)=>{if(l.type==="CLEAR_FT_REDUX_STORE"){let d=ze(o.getInitialState());for(let u of l.keeping)d[u]=(c??d)[u];return d}else if(typeof l.type=="string"&&l.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...c,...l.overwrites};return o.reducer(c,l)}});return window.ftReduxStores[s.name]=new t(o,a,s.eventBus,s.deprecatedKeys)}constructor(e,r,n,s){super(),this.reduxSlice=e,this.reduxStore=r,this.deprecatedKeys=s,this.isFtReduxStore=!0,this.commands=new ht,this.injectInto=(o,a)=>this.reduxSlice.injectInto(o,a),this.selectSlice=o=>this.reduxSlice.selectSlice(o);let i=o=>o!=null?JSON.parse(JSON.stringify(o)):o;this.actions=new Proxy(this.reduxSlice.actions,{get:(o,a,c)=>{let l=a,d=o[l];return d?(...u)=>{let h=d(...u.map(i));return this.reduxStore.dispatch(h),h}:u=>{let h=l,g=this.getState()[h];Ie(g,u)||this.setState({[h]:i(u)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...e){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:e})}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()}get selectors(){return this.reduxSlice.selectors}get reducerPath(){return this.reduxSlice.reducerPath}getSelectors(){return this.reduxSlice.getSelectors()}};var $t=class{static format(e,r,n,s,i){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(n,s,!!i)):this.getIntlDateTime(e,r,n,s,!!i)}static getMomentDateFormat(e,r,n){return n?"LT":e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,n,s,i){let o=typeof e=="string"?new Date(e):e,a=new Intl.DateTimeFormat(r,{dateStyle:n?"medium":"short"}).format(o),c=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(o);return i?c:s?`${a} ${c}`:a}static getTimezoneAsString(){let e=n=>String(Math.floor(n)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${e(Math.abs(r)/60)}:${e(Math.abs(r)%60)}`}};var Ht=m(v()),Zo="ft-app-info",ne=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};ne.eventName="authentication-change";var rt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};rt.eventName="ui-locale-changed";var ea={session:(t,e)=>{(0,Ht.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>y.dispatchEvent(new ne(e.payload)),0))}},y=Ht.FtReduxStore.get({name:Zo,reducers:ea,initialState:{baseUrl:void 0,tenantId:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableContentLocales:[],localesConfiguration:void 0,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,noCustomCode:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1,stickyFilters:void 0}});var Ws=m(v()),Bt=function(t,e,r,n){var s=arguments.length,i=s<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(i=(s<3?o(i):s>3?o(e,r,i):o(e,r))||i);return s>3&&i&&Object.defineProperty(e,r,i),i},Qc=(0,Ws.applyMixinOnce)(Symbol("withDateFormat"),function(t){class e extends t{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(y)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var s,i;return((i=(s=this.metadataDescriptors.find(a=>a.key===n))===null||s===void 0?void 0:s.date)!==null&&i!==void 0?i:!1)?a=>$t.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Bt([(0,Dr.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),Bt([(0,Dr.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),Bt([fr({store:y.name,selector:r=>{var n,s;return(s=(n=r.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&s!==void 0?s:[]}})],e.prototype,"metadataDescriptors",void 0),Bt([fr({store:y.name})],e.prototype,"uiLocale",void 0),e});var Kt=m(v());var Mr=m(v());var pe=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:n}=y.getState(),s=e??n;if(r&&s&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,s,!0)}static await(e){return new Promise(r=>{let n=t.get(e);if(n)r(n);else{let s=y.subscribe(()=>{n=t.get(e),n&&(s(),r(n))})}})}};var Le=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:pe.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):pe.await()}};var D=class extends Le{constructor(e=!0,r){var n;super(r),this.sortObjectFields=(i,o)=>typeof o!="object"||o==null||Array.isArray(o)?o:Object.fromEntries(Object.entries(o).sort(([a],[c])=>a.localeCompare(c)));let s=this.constructor;s.commonCache=(n=s.commonCache)!==null&&n!==void 0?n:new Mr.CacheRegistry,this.cache=e?s.commonCache:new Mr.CacheRegistry}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((r,n)=>0|31*r+n.charCodeAt(0),0))}};var jt=class extends D{async listMySearches(){let{session:e}=y.getState();return dt(e,b.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var Vt=class extends D{async listMyBookmarks(){let e=y.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}};var qt=class extends D{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=y.getState().session;return!!e?.sessionAuthenticated}};var zt=class extends D{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let e=y.getState().session;return!!e?.sessionAuthenticated}};var ta="ft-user-assets",ra={setAssetCount:(t,e)=>{let{userAssetType:r,count:n}=e.payload.assetCount;t.assetCounts.allAsset[r]=n},clearAssetCount:t=>{Object.values(U).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let r=e.payload.mapId;t.assetCounts.bookmarkByMap[r]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:r,mapId:n,asset:s}=e.payload;Pr(t,r,[...Lr(t,r),s]),Gs(t,r,1,n),Qs(t,s)},editAsset:(t,e)=>{let{assetType:r,asset:n}=e.payload;Pr(t,r,Lr(t,r).map(s=>s.id===n.id?n:s)),Qs(t,n)},removeAsset:(t,e)=>{let{assetType:r,mapId:n,assetId:s}=e.payload;Pr(t,r,Lr(t,r).filter(i=>i.id!==s)),Gs(t,r,-1,n)}},Ys={[U.SEARCHES]:"savedSearches",[U.BOOKMARKS]:"bookmarks",[U.BOOKS]:void 0,[U.COLLECTIONS]:void 0},Lr=(t,e)=>{var r;let n=Ys[e];return n?(r=t[n])!==null&&r!==void 0?r:[]:[]},Pr=(t,e,r)=>{let n=Ys[e];n&&(t[n]=r)},Gs=(t,e,r,n)=>{let s=t.assetCounts.allAsset[e];if(s!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,s+r),e===U.BOOKMARKS&&n)){let i=t.assetCounts.bookmarkByMap[n];t.assetCounts.bookmarkByMap[n]=Math.max(0,i+r)}},Qs=(t,e)=>{let r=t.assetLabels.map(s=>s.title),n=e.labels.filter(s=>!r.includes(s)).map(s=>({title:s}));t.assetLabels.push(...n)},k=Kt.FtReduxStore.get({name:ta,reducers:ra,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(U).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Fr=class{constructor(e=new qt,r=new zt){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=y.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Vt,this.savedSearchesService=new jt,y.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=y.getState();(0,Kt.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),k.actions.clearAssetCount(),k.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),k.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),k.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();k.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();k.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&k.getState().assetCounts.allAsset[e]!==r.count&&k.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&k.getState().assetCounts.bookmarkByMap[e]!==r.count&&k.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(k.getState().assetCounts.bookmarkByMap).length!==0;e===U.BOOKMARKS&&r&&k.actions.clearBookmarkCountByMap(),k.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let r=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;k.actions.bookmarks(r)}}},na=new Fr;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=na);var Ur=class{addCommand(e,r=!1){y.commands.add(e,r)}consumeCommand(e){return y.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Ur;var $=m(v());var Xs,Pe=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},sa=Symbol("clearAfterUnitTest"),Wt=class extends(0,$.withEventBus)(D){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Xs]=()=>{this.defaultMessages={},this.cache=new $.CacheRegistry,this.listeners={}},this.currentUiLocale=y.getState().uiLocale,y.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=y.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let r=e.name.toLowerCase();this.cache.setFinal(r,e),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,r){var n;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let s={...(n=this.defaultMessages[e])!==null&&n!==void 0?n:{},...r};(0,$.deepEqual)(this.defaultMessages[e],s)||(this.defaultMessages[e]=s,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,n;return this.fetchContext(e),(n=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(e,r){let n=e.toLowerCase();return this.resolveContext(n)[r]}resolveMessage(e,r,...n){var s;let i=e.toLowerCase(),o=this.resolveContext(i);return new $.ParametrizedLabelResolver((s=this.defaultMessages[i])!==null&&s!==void 0?s:{},o).resolve(r,...n)}async fetchContext(e){let r=!this.cache.has(e),n;try{n=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(s){!(s instanceof $.CanceledPromiseError)&&r&&console.error(s)}return n}subscribe(e,r){var n;return e=e.toLowerCase(),this.listeners[e]=(n=this.listeners[e])!==null&&n!==void 0?n:new Set,this.listeners[e].add(r),()=>{var s;return(s=this.listeners[e])===null||s===void 0?void 0:s.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new Pe({loadedContexts:e})),this.dispatchEvent(new Pe({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new Pe({loadedContexts:[e]})),this.dispatchEvent(new Pe({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(n=>(0,$.delay)(0).then(()=>n()).catch(()=>null)))}};Xs=sa;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Wt{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Wt{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var Fe=window.FluidTopicsI18nService,Gt=window.FluidTopicsCustomI18nService;var Js=m(v()),$r=class{highlightHtml(e,r,n){(0,Js.highlightHtml)(e,r,n)}};window.FluidTopicsHighlightHtmlService=new $r;var Zs=m(v());var Hr=class{isDate(e){var r,n,s,i;return(i=(n=((s=(r=y.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&s!==void 0?s:[]).find(a=>a.key===e))===null||n===void 0?void 0:n.date)!==null&&i!==void 0?i:!1}format(e,r){var n,s,i,o;if(e==null)return"";try{return Zs.DateFormatter.format(e,(n=r?.locale)!==null&&n!==void 0?n:y.getState().uiLocale,(s=r?.longFormat)!==null&&s!==void 0?s:!1,(i=r?.withTime)!==null&&i!==void 0?i:!1,(o=r?.onlyTime)!==null&&o!==void 0?o:!1)}catch(a){throw console.error(`Date ${JSON.stringify(e)} is not valid`,a),a}}};window.FluidTopicsDateService=new Hr;var ei=m(v());var nt=class{static get(e,r,{baseUrl:n,localesConfiguration:s,availableContentLocales:i}=y.getState()){var o;if(r==="all"&&s?.allLanguagesAllowed)r=void 0;else if(!r||i.length>0&&!i.some(a=>a.lang===r)){let a=s?.defaultLocales.defaultContentLocale;r=a?`${a.lang}-${a.region}`:(o=i[0])===null||o===void 0?void 0:o.lang}return new ei.SearchPlaceConverter(n,e??20,s?.allLanguagesAllowed,r,i)}};var Br=class{urlToSearchRequest(e){return nt.get().parse(e)}searchRequestToUrl(e){return nt.get().serialize(e)}};window.FluidTopicsUrlService=new Br;var J=m(v());var he=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{nextLocation:e}})}};he.eventName="before-location-change";var fe=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};fe.eventName="change";var jr=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let r=sessionStorage.getItem(this.itemName(e));return r?JSON.parse(r):void 0}set(e,r){sessionStorage.setItem(this.itemName(e),JSON.stringify(r))}},ti=new jr;var Qt=class t extends J.WithEventBus{static build(){return new t(window.history,ti,()=>window.location,!1)}constructor(e,r,n,s){var i,o;super(),this.history=e,this.historyStorage=r,this.windowLocation=n,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(o=(i=e.state)===null||i===void 0?void 0:i.index)!==null&&o!==void 0?o:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(s)}setCurrentState(e,r=!1){let n=r&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,n&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,J.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,this.windowLocation().href]),setTimeout(()=>this.dispatchEvent(new fe(this.currentItem())),0)}installProxies(){let e=r=>(n,s,[i,o,a])=>{let c=new URL(typeof a=="string"?a:(a??this.windowLocation()).href,window.location.origin!=="null"?window.location.origin:void 0),l=new he(c);this.dispatchEvent(l);let d=r(),u={...d===this.currentIndex?this.currentState:void 0,...i,index:d,href:l.detail.nextLocation.href};n.apply(s,[u,o,u.href]),this.setCurrentState(u,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let r=this.history.length-1;r>=0;r--)e?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(e){var r;let n={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(n)}addBeforeLocationChangeListener(e){this.addEventListener(he.eventName,e)}removeBeforeLocationChangeListener(e){this.removeEventListener(he.eventName,e)}addHistoryChangeListener(e){this.addEventListener(fe.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(fe.eventName,e)}currentItem(){return(0,J.deepCopy)(this.currentState)}back(){let e=this.previousDifferentMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,J.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(n=>!!n).filter(n=>n.index<this.currentIndex).reverse();return(0,J.deepCopy)(r.find(n=>e(n)))}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return(0,J.deepCopy)(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var r;let n=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!n)return e;let s=e,i=e+1;for(;this.states.length>i&&!this.isDifferentMajorState(i,n);)this.hasState(i)&&(s=i),i++;return s}buildCurrentState(){var e,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&r!==void 0?r:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,r){var n;if(!this.hasState(e))return!1;let s=r??this.currentState.majorStateId,i=(n=this.states[e])===null||n===void 0?void 0:n.majorStateId;return i==null||i!=s}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Qt.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:t=>window.FluidTopicsInternalHistoryService.backwardItemMatching(t),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t),addBeforeLocationChangeListener:t=>window.FluidTopicsInternalHistoryService.addBeforeLocationChangeListener(t),removeBeforeLocationChangeListener:t=>window.FluidTopicsInternalHistoryService.removeBeforeLocationChangeListener(t)});var ri=m(Y());var ni=ri.css`
|
|
4
|
+
`;var ii=m(Y()),N=m(z()),me=m(v());var Q=m(v());function si(t,e){let{authenticationRequired:r,session:n}=y.getState();return r&&!n?.sessionAuthenticated?Promise.resolve(e):t()}var Yt=class extends Le{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}};var Vr=class t extends Q.FtStateManager{static build(e){return new t(y,e)}constructor(e,r){super(),this.store=e,this.cache=new Q.CacheRegistry,this.withManualResources=!0,this.userLocaleService=new Yt,this.knownContexts=new Q.AbstractRegistry,this.knownCustomComponents=new Q.AbstractRegistry,this.cleanSessionDebouncer=new Q.Debouncer,this.reloadConfiguration=()=>{var n;(n=this.cache)===null||n===void 0||n.clear("availableContentLocales"),this.updateAvailableContentLocales()},this.reloadDebouncer=new Q.Debouncer(500),this.apiProvider=r??(()=>pe.get())}setWithManualResources(e){this.withManualResources=e,this.updateIfNeeded()}addListeners(){this.store.addEventListener(ne.eventName,this.reloadConfiguration)}removeListeners(){this.store.removeEventListener(ne.eventName,this.reloadConfiguration)}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.store.getState().session==null&&this.updateSession(),this.store.getState().metadataConfiguration==null&&this.updateMetadataConfiguration()),this.store.getState().localesConfiguration==null&&this.updateLocalesConfiguration(),(this.store.getState().availableContentLocales==null||this.store.getState().availableContentLocales.length==0)&&this.updateAvailableContentLocales())}async updateSession(){let e=await this.cache.get("session",async()=>{let r=await this.apiProvider().getCurrentSession();return r.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.setSession(void 0)},r.idleTimeoutInMillis),r});this.setSession(e)}async updateMetadataConfiguration(){this.setMetadataConfiguration(await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration()))}async updateLocalesConfiguration(){this.setLocalesConfiguration(await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration()))}async updateAvailableContentLocales(){var e;let r=await this.cache.get("availableContentLocales",()=>si(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((e=r.contentLocales)!==null&&e!==void 0?e:[])}setStickyFilters(e){this.store.actions.stickyFilters(e)}setBaseUrl(e){this.store.actions.baseUrl(e),window.fluidTopicsBaseUrl=e}setTenantId(e){this.store.actions.tenantId(e)}setApiIntegrationIdentifier(e){this.store.actions.apiIntegrationIdentifier(e)}setApiIntegrationAppVersion(e){this.store.actions.apiIntegrationAppVersion(e)}setUiLocale(e){this.store.actions.uiLocale(e)}setLocalesConfiguration(e){this.store.actions.localesConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setAvailableContentLocales(e){this.store.actions.availableContentLocales(e),setTimeout(()=>this.updateIfNeeded())}stopReloadDebouncer(){this.reloadDebouncer.cancel()}requestUiLocaleUpdate(e,r){this.userLocaleService.updateUiLocale({uiLocale:e,contentLocale:r}).then(n=>{n.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new rt(n)))}).catch(()=>{})}setMetadataConfiguration(e){this.store.actions.metadataConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setNoCustom(e){this.store.actions.noCustom(e)}setEditorMode(e){this.store.actions.editorMode(e)}setNoCustomComponent(e){this.store.actions.noCustomComponent(e)}setNoCustomCode(e){this.store.actions.noCustomCode(e)}setSession(e){this.store.actions.session(e),setTimeout(()=>this.updateIfNeeded())}setOpenExternalDocumentInNewTab(e){this.store.actions.openExternalDocumentInNewTab(e)}setNavigatorOnline(e){this.store.actions.navigatorOnline(e)}setForcedOffline(e){this.store.actions.forcedOffline(e)}setAuthenticationRequired(e){this.store.actions.authenticationRequired(e)}userHasAnyRole(...e){return ts(y.getState().session,...e)}},qr=Vr.build();var ye=class extends Event{constructor(e,r,n,s){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=r,this.callback=n,this.subscribe=s??!1}};var st=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=e=>{let r=this.pendingContextRequests.get(e.context);if(r===void 0)return;this.pendingContextRequests.delete(e.context);let{requests:n}=r;for(let{elementRef:s,callbackRef:i}of n){let o=s.deref(),a=i.deref();o===void 0||a===void 0||o.dispatchEvent(new ye(e.context,o,a,!0))}},this.onContextRequest=e=>{if(e.subscribe!==!0)return;let r=e.contextTarget??e.composedPath()[0],n=e.callback,s=this.pendingContextRequests.get(e.context);s===void 0&&this.pendingContextRequests.set(e.context,s={callbacks:new WeakMap,requests:[]});let i=s.callbacks.get(r);i===void 0&&s.callbacks.set(r,i=new WeakSet),i.has(n)||(i.add(n),s.requests.push({elementRef:new WeakRef(r),callbackRef:new WeakRef(n)}))}}attach(e){e.addEventListener("context-request",this.onContextRequest),e.addEventListener("context-provider",this.onContextProvider)}detach(e){e.removeEventListener("context-request",this.onContextRequest),e.removeEventListener("context-provider",this.onContextProvider)}};var C=function(t,e,r,n){var s=arguments.length,i=s<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(i=(s<3?o(i):s>3?o(e,r,i):o(e,r))||i);return s>3&&i&&Object.defineProperty(e,r,i),i},x=class extends me.FtLitElementRedux{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.noCustomCode=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.authenticationRequired=!1,this.messageContexts=[],this.stateManager=qr,this.contextRoot=new st}render(){return ii.html`
|
|
5
5
|
<slot></slot>
|
|
6
|
-
`}connectedCallback(){super.connectedCallback(),this.stateManager.addListeners(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.removeListeners(),this.contextRoot.detach(document.body)}update(
|
|
7
|
-
`;var nr=m(
|
|
6
|
+
`}connectedCallback(){super.connectedCallback(),this.stateManager.addListeners(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.removeListeners(),this.contextRoot.detach(document.body)}update(e){var r;super.update(e),e.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),e.has("tenantId")&&this.stateManager.setTenantId(this.tenantId),e.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),e.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),e.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),e.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),e.has("noCustomCode")&&this.stateManager.setNoCustomCode(this.noCustomCode),e.has("session")&&this.stateManager.setSession(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(n=>Fe.addContext(n)),e.has("openExternalDocumentInNewTab")&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&this.stateManager.setNavigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&this.stateManager.setForcedOffline(this.forcedOffline),e.has("authenticationRequired")&&this.stateManager.setAuthenticationRequired(this.authenticationRequired),e.has("withManualResources")&&((r=this.stateManager)===null||r===void 0||r.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};x.elementDefinitions={};x.styles=ni;C([(0,N.property)()],x.prototype,"baseUrl",void 0);C([(0,N.property)()],x.prototype,"tenantId",void 0);C([(0,N.property)()],x.prototype,"apiIntegrationIdentifier",void 0);C([(0,N.property)()],x.prototype,"apiIntegrationAppVersion",void 0);C([(0,N.property)()],x.prototype,"uiLocale",void 0);C([(0,me.jsonProperty)(null)],x.prototype,"availableUiLocales",void 0);C([(0,me.jsonProperty)(null)],x.prototype,"metadataConfiguration",void 0);C([(0,N.property)({type:Boolean})],x.prototype,"editorMode",void 0);C([(0,N.property)({type:Boolean})],x.prototype,"noCustom",void 0);C([(0,N.property)({type:Boolean})],x.prototype,"openExternalDocumentInNewTab",void 0);C([(0,N.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],x.prototype,"noCustomComponent",void 0);C([(0,N.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],x.prototype,"noCustomCode",void 0);C([(0,N.property)({type:Boolean})],x.prototype,"withManualResources",void 0);C([(0,N.property)({type:Boolean})],x.prototype,"navigatorOnline",void 0);C([(0,N.property)({type:Boolean})],x.prototype,"forcedOffline",void 0);C([(0,N.property)({type:Boolean})],x.prototype,"authenticationRequired",void 0);C([(0,me.jsonProperty)([])],x.prototype,"messageContexts",void 0);C([(0,me.jsonProperty)(void 0)],x.prototype,"session",void 0);var ai=m(v());var oi={"ft-app-context":x};(0,ai.customElements)(oi);var Xt=class t extends Event{constructor(){super(t.eventName)}};Xt.eventName="search-context-clear-all-filters";var zr=function(t,e,r,n){var s=arguments.length,i=s<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(i=(s<3?o(i):s>3?o(e,r,i):o(e,r))||i);return s>3&&i&&Object.defineProperty(e,r,i),i},Wr=class extends ie.FtContextRegistrationEvent{constructor(e){super("register-ft-search-component",e)}},ci=Symbol("registerInterval"),Kr=Symbol("registerAttempts"),aa=40,ca=(0,ie.applyMixinOnce)(Symbol("toFtSearchComponent"),function(t){class e extends t{constructor(){super(...arguments),this.neededSearchRequests=[]}willUpdate(n){var s,i,o;super.willUpdate(n),n.has("neededSearchRequests")&&((s=this.stateManager)===null||s===void 0||s.unregisterComponent(this,(o=n.get("neededSearchRequests"))!==null&&o!==void 0?o:[]),(i=this.stateManager)===null||i===void 0||i.registerComponent(this,this.neededSearchRequests))}setSearchStateManager(n){this.clearStateManager(),this.stateManager=n,this.stateManager.registerComponent(this,this.neededSearchRequests),this.addStore(n.store,"search")}clearStateManager(){this.stateManager&&(this.stateManager.unregisterComponent(this,this.neededSearchRequests),this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[Kr]=0,this.tryToRegisterToContext(),this[ci]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[Kr]>aa?window.clearInterval(this[ci]):(this[Kr]++,this.dispatchEvent(new Wr({target:this,registrationId:this.searchRegistrationId})))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return zr([(0,it.state)()],e.prototype,"stateManager",void 0),zr([(0,it.state)({hasChanged:ie.hasChanged})],e.prototype,"neededSearchRequests",void 0),zr([(0,it.property)()],e.prototype,"searchRegistrationId",void 0),e}),Jt=class extends ca(ie.FtLitElementRedux){};var Zt=class t{static build(e){return new t(e)}static buildCustom(e){return new t(e,!0)}static fromGwt(e){return new t(e)}get service(){return this.custom?Gt:Fe}constructor(e,r=!1){this.name=e,this.custom=r,this.properties=new Proxy({},{get:(n,s)=>{let i=s;return o=>({context:this.name,key:i,custom:this.custom,args:typeof o=="function"?void 0:o,argsProvider:typeof o=="function"?o:void 0})}}),this.messages=new Proxy({},{get:(n,s)=>(...i)=>this.service.resolveMessage(this.name,s,...i)}),this.rawMessages=new Proxy({},{get:(n,s)=>this.service.resolveRawMessage(this.name,s)}),this.keys=new Proxy({},{get:(n,s)=>()=>s}),this.attributes=new Proxy({},{get:(n,s)=>()=>({context:this.name,key:s,message:this.service.resolveRawMessage(this.name,s)})})}};var Ue=m(v());var di=m(z());var Gr=class{fromLocalizableLabel(e){return e.type=="PLAIN_TEXT"?{message:e.text}:{key:e.key,custom:e.type=="LOCALIZED_CUSTOM",context:e.context,message:e.key}}fromAttribute(e){if(e!=null)try{return JSON.parse(e)}catch{if(this.isI18nKey(e)){let[r,n]=e.split(".");return{context:r,key:n,custom:r!=="officialContext",message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},li=new Gr;var la=function(t,e,r,n){var s=arguments.length,i=s<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(i=(s<3?o(i):s>3?o(e,r,i):o(e,r))||i);return s>3&&i&&Object.defineProperty(e,r,i),i},ua=Symbol("i18nAttributes"),da=Symbol("i18nListAttributes"),pi=Symbol("i18nProperties"),er=Symbol("i18nContexts"),ot=Symbol("i18nUnsubs"),rr=(0,Ue.applyMixinOnce)(Symbol("withI18n"),function(t){var e,r;class n extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[r]=new Map}getI18nService(i){return i??this.useCustomMessageContexts?Gt:Fe}i18n(i){let{context:o,key:a,message:c}=i,{custom:l,args:d,argsProvider:u}=i;if(o&&a){this.hasI18nContext(o)||this.addI18nContext(o,void 0,l);let h=d??(u?u(this):[]);return this.getI18nService(l).resolveMessage(o,a,...h)}return c}async awaitI18n(i){let{context:o,custom:a}=i;return o&&await this.getI18nService(a).prepareContext(o),this.i18n(i)}customI18n(i,o){if(li.isI18nKey(i)){let[a,c]=i.split(".");return this.i18n({custom:!0,context:a,key:c,...o})||i}return i}firstUpdated(i){super.firstUpdated(i),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(i){super.update(i),this.updateI18nAttributes((o,a,c)=>i.has(a)||typeof o.argsProvider=="function"),this.updateI18nProperties(o=>typeof o.argsProvider=="function")}onI18nUpdate(i){this.updateI18nAttributes((o,a,c)=>{var l;return((l=c?.context)===null||l===void 0?void 0:l.toLowerCase())===i}),this.updateI18nProperties(o=>o.context.toLowerCase()===i),this.requestUpdate()}updateI18nAttributes(i){var o,a;let c=this,l=(d,u,h)=>h?.context&&h.key&&i(d,u,h)?{...h,message:this.i18n({context:h.context,key:h.key,custom:h.custom,...d})}:h;(o=this[ua])===null||o===void 0||o.forEach((d,u)=>c[u]=l(d,u,c[u])),(a=this[da])===null||a===void 0||a.forEach((d,u)=>{var h;return c[u]=(h=c[u])===null||h===void 0?void 0:h.map(g=>l(d,u,g))})}updateI18nProperties(i){var o;(o=this[pi])===null||o===void 0||o.forEach((a,c)=>{i(a,c)&&(this[c]=this.i18n(a))})}addI18nMessages(i,o,a){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(i,o,a)}addI18nContext(i,o,a){let c=(typeof i=="string"?i:i.name).toLowerCase();a=typeof i=="string"?a:i.custom,this[er].set(c,{isCustomContext:a}),this[ot].has(c)||this[ot].set(c,this.getI18nService(a).subscribe(c,()=>this.onI18nUpdate(c))),this.getI18nService(a).prepareContext(c,o)}hasI18nContext(i){return this[er].has(i.toLowerCase())}connectedCallback(){super.connectedCallback(),this[er].forEach((i,o)=>this.addI18nContext(o,void 0,i.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[ot].forEach(i=>i()),this[ot].clear()}}return e=er,r=ot,la([(0,di.property)({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}),ui=class extends rr(Ue.FtLitElement){},tr=class extends rr(Ue.FtLitElementRedux){};var hi=m(Y());var fi=hi.css`
|
|
7
|
+
`;var nr=m(Y()),He=m(z()),sr=m(v());var $e=function(t,e,r,n){var s=arguments.length,i=s<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(i=(s<3?o(i):s>3?o(e,r,i):o(e,r))||i);return s>3&&i&&Object.defineProperty(e,r,i),i},H=class extends tr{constructor(){super(),this.editorMode=!1,this.editorMessage="Select a context and a label key.",this.addStore(y)}render(){return!this.key||!this.context?this.editorMode?this.editorMessage:nr.nothing:nr.html`
|
|
8
8
|
<span class="ft-i18n">
|
|
9
9
|
${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
|
|
10
10
|
</span>
|
|
11
|
-
`}update(
|
|
12
|
-
\f\r]`,at=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
|
13
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),wi=/'/g,Ti=/"/g,ki=/^(?:script|style|textarea|title)$/i,on=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),Ni=on(1),Di=on(2),Mi=on(3),lt=Symbol.for("lit-noChange"),T=Symbol.for("lit-nothing"),Oi=new WeakMap,Ee=Ae.createTreeWalker(Ae,129);function Li(e,t){if(!sn(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return bi!==void 0?bi.createHTML(t):t}var Ta=(e,t)=>{let r=e.length-1,n=[],s,i=t===2?"<svg>":t===3?"<math>":"",o=at;for(let a=0;a<r;a++){let c=e[a],l,u,d=-1,h=0;for(;h<c.length&&(o.lastIndex=h,u=o.exec(c),u!==null);)h=o.lastIndex,o===at?u[1]==="!--"?o=_i:u[1]!==void 0?o=Ci:u[2]!==void 0?(ki.test(u[2])&&(s=RegExp("</"+u[2],"g")),o=Se):u[3]!==void 0&&(o=Se):o===Se?u[0]===">"?(o=s??at,d=-1):u[1]===void 0?d=-2:(d=o.lastIndex-u[2].length,l=u[1],o=u[3]===void 0?Se:u[3]==='"'?Ti:wi):o===Ti||o===wi?o=Se:o===_i||o===Ci?o=at:(o=Se,s=void 0);let g=o===Se&&e[a+1].startsWith("/>")?" ":"";i+=o===at?c+Ca:d>=0?(n.push(l),c.slice(0,d)+Ri+c.slice(d)+ae+g):c+ae+(d===-2?a:g)}return[Li(e,i+(e[r]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]},ut=class e{constructor({strings:t,_$litType$:r},n){let s;this.parts=[];let i=0,o=0,a=t.length-1,c=this.parts,[l,u]=Ta(t,r);if(this.el=e.createElement(l,n),Ee.currentNode=this.el.content,r===2||r===3){let d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(s=Ee.nextNode())!==null&&c.length<a;){if(s.nodeType===1){if(s.hasAttributes())for(let d of s.getAttributeNames())if(d.endsWith(Ri)){let h=u[o++],g=s.getAttribute(d).split(ae),v=/([.?@])?(.*)/.exec(h);c.push({type:1,index:i,name:v[2],strings:g,ctor:v[1]==="."?Zr:v[1]==="?"?en:v[1]==="@"?tn:Ve}),s.removeAttribute(d)}else d.startsWith(ae)&&(c.push({type:6,index:i}),s.removeAttribute(d));if(ki.test(s.tagName)){let d=s.textContent.split(ae),h=d.length-1;if(h>0){s.textContent=ir?ir.emptyScript:"";for(let g=0;g<h;g++)s.append(d[g],or()),Ee.nextNode(),c.push({type:2,index:++i});s.append(d[h],or())}}}else if(s.nodeType===8)if(s.data===Ii)c.push({type:2,index:i});else{let d=-1;for(;(d=s.data.indexOf(ae,d+1))!==-1;)c.push({type:7,index:i}),d+=ae.length-1}i++}}static createElement(t,r){let n=Ae.createElement("template");return n.innerHTML=t,n}};function je(e,t,r=e,n){if(t===lt)return t;let s=n!==void 0?r._$Co?.[n]:r._$Cl,i=ct(t)?void 0:t._$litDirective$;return s?.constructor!==i&&(s?._$AO?.(!1),i===void 0?s=void 0:(s=new i(e),s._$AT(e,r,n)),n!==void 0?(r._$Co??=[])[n]=s:r._$Cl=s),s!==void 0&&(t=je(e,s._$AS(e,t.values),s,n)),t}var Jr=class{constructor(t,r){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:r},parts:n}=this._$AD,s=(t?.creationScope??Ae).importNode(r,!0);Ee.currentNode=s;let i=Ee.nextNode(),o=0,a=0,c=n[0];for(;c!==void 0;){if(o===c.index){let l;c.type===2?l=new ar(i,i.nextSibling,this,t):c.type===1?l=new c.ctor(i,c.name,c.strings,this,t):c.type===6&&(l=new rn(i,this,t)),this._$AV.push(l),c=n[++a]}o!==c?.index&&(i=Ee.nextNode(),o++)}return Ee.currentNode=Ae,s}p(t){let r=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(t,n,r),r+=n.strings.length-2):n._$AI(t[r])),r++}},ar=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,r,n,s){this.type=2,this._$AH=T,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=n,this.options=s,this._$Cv=s?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,r=this._$AM;return r!==void 0&&t?.nodeType===11&&(t=r.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,r=this){t=je(this,t,r),ct(t)?t===T||t==null||t===""?(this._$AH!==T&&this._$AR(),this._$AH=T):t!==this._$AH&&t!==lt&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):wa(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==T&&ct(this._$AH)?this._$AA.nextSibling.data=t:this.T(Ae.createTextNode(t)),this._$AH=t}$(t){let{values:r,_$litType$:n}=t,s=typeof n=="number"?this._$AC(t):(n.el===void 0&&(n.el=ut.createElement(Li(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===s)this._$AH.p(r);else{let i=new Jr(s,this),o=i.u(this.options);i.p(r),this.T(o),this._$AH=i}}_$AC(t){let r=Oi.get(t.strings);return r===void 0&&Oi.set(t.strings,r=new ut(t)),r}k(t){sn(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,s=0;for(let i of t)s===r.length?r.push(n=new e(this.O(or()),this.O(or()),this,this.options)):n=r[s],n._$AI(i),s++;s<r.length&&(this._$AR(n&&n._$AB.nextSibling,s),r.length=s)}_$AR(t=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);t!==this._$AB;){let n=xi(t).nextSibling;xi(t).remove(),t=n}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},Ve=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,n,s,i){this.type=1,this._$AH=T,this._$AN=void 0,this.element=t,this.name=r,this._$AM=s,this.options=i,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=T}_$AI(t,r=this,n,s){let i=this.strings,o=!1;if(i===void 0)t=je(this,t,r,0),o=!ct(t)||t!==this._$AH&&t!==lt,o&&(this._$AH=t);else{let a=t,c,l;for(t=i[0],c=0;c<i.length-1;c++)l=je(this,a[n+c],r,c),l===lt&&(l=this._$AH[c]),o||=!ct(l)||l!==this._$AH[c],l===T?t=T:t!==T&&(t+=(l??"")+i[c+1]),this._$AH[c]=l}o&&!s&&this.j(t)}j(t){t===T?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},Zr=class extends Ve{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===T?void 0:t}},en=class extends Ve{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==T)}},tn=class extends Ve{constructor(t,r,n,s,i){super(t,r,n,s,i),this.type=5}_$AI(t,r=this){if((t=je(this,t,r,0)??T)===lt)return;let n=this._$AH,s=t===T&&n!==T||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,i=t!==T&&(n===T||s);s&&this.element.removeEventListener(this.name,this,n),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},rn=class{constructor(t,r,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){je(this,t)}};var Oa=nn.litHtmlPolyfillSupport;Oa?.(ut,ar),(nn.litHtmlVersions??=[]).push("3.3.3");var Fi=Symbol.for(""),Ra=e=>{if(e?.r===Fi)return e?._$litStatic$},an=e=>({_$litStatic$:e,r:Fi});var Pi=new Map,cn=e=>(t,...r)=>{let n=r.length,s,i,o=[],a=[],c,l=0,u=!1;for(;l<n;){for(c=t[l];l<n&&(i=r[l],(s=Ra(i))!==void 0);)c+=s+t[++l],u=!0;l!==n&&a.push(i),o.push(c),l++}if(l===n&&o.push(t[n]),u){let d=o.join("$$lit$$");(t=Pi.get(d))===void 0&&(o.raw=o,Pi.set(d,t=o)),r=a}return e(t,...r)},ln=cn(Ni),Sp=cn(Di),Ep=cn(Mi);var un=m(K()),Xi=m(x());var qe;(function(e){e.title="title",e.title_dense="title-dense",e.subtitle1="subtitle1",e.subtitle2="subtitle2",e.body1="body1",e.body2="body2",e.caption="caption",e.breadcrumb="breadcrumb",e.overline="overline",e.button="button"})(qe||(qe={}));var q=m(X()),p=m(x()),Ui=p.FtCssVariableFactory.extend("--ft-typography-font-family","",p.designSystemVariables.titleFont),ee=p.FtCssVariableFactory.extend("--ft-typography-font-family","",p.designSystemVariables.contentFont),f={fontFamily:ee,fontSize:p.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:p.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:p.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:p.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:p.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit"),textDecoration:p.FtCssVariableFactory.create("--ft-typography-text-decoration","","UNKNOWN","inherit")},ve={fontFamily:p.FtCssVariableFactory.extend("--ft-typography-title-font-family","",Ui),fontSize:p.FtCssVariableFactory.extend("--ft-typography-title-font-size","",f.fontSize,"20px"),fontWeight:p.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",f.fontWeight,"normal"),letterSpacing:p.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",f.letterSpacing,"0.15px"),lineHeight:p.FtCssVariableFactory.extend("--ft-typography-title-line-height","",f.lineHeight,"1.2"),textTransform:p.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",f.textTransform,"inherit"),textDecoration:p.FtCssVariableFactory.extend("--ft-typography-title-text-decoration","",f.textDecoration,"inherit")},xe={fontFamily:p.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",Ui),fontSize:p.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",f.fontSize,"14px"),fontWeight:p.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",f.fontWeight,"normal"),letterSpacing:p.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",f.letterSpacing,"0.105px"),lineHeight:p.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",f.lineHeight,"1.7"),textTransform:p.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",f.textTransform,"inherit"),textDecoration:p.FtCssVariableFactory.extend("--ft-typography-title-dense-text-decoration","",f.textDecoration,"inherit")},be={fontFamily:p.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",ee),fontSize:p.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",f.fontSize,"16px"),fontWeight:p.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",f.fontWeight,"600"),letterSpacing:p.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",f.letterSpacing,"0.144px"),lineHeight:p.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",f.lineHeight,"1.5"),textTransform:p.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",f.textTransform,"inherit"),textDecoration:p.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-decoration","",f.textDecoration,"inherit")},_e={fontFamily:p.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",ee),fontSize:p.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",f.fontSize,"14px"),fontWeight:p.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",f.fontWeight,"normal"),letterSpacing:p.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",f.letterSpacing,"0.098px"),lineHeight:p.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",f.lineHeight,"1.7"),textTransform:p.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",f.textTransform,"inherit"),textDecoration:p.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-decoration","",f.textDecoration,"inherit")},Ce={fontFamily:p.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",ee),fontSize:p.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",f.fontSize,"16px"),fontWeight:p.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",f.fontWeight,"normal"),letterSpacing:p.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",f.letterSpacing,"0.496px"),lineHeight:p.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",f.lineHeight,"1.5"),textTransform:p.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",f.textTransform,"inherit"),textDecoration:p.FtCssVariableFactory.extend("--ft-typography-body1-text-decoration","",f.textDecoration,"inherit")},we={fontFamily:p.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",ee),fontSize:p.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",f.fontSize,"14px"),fontWeight:p.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",f.fontWeight,"normal"),letterSpacing:p.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",f.letterSpacing,"0.252px"),lineHeight:p.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",f.lineHeight,"1.4"),textTransform:p.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",f.textTransform,"inherit"),textDecoration:p.FtCssVariableFactory.extend("--ft-typography-body2-text-decoration","",f.textDecoration,"inherit")},Te={fontFamily:p.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",ee),fontSize:p.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",f.fontSize,"12px"),fontWeight:p.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",f.fontWeight,"normal"),letterSpacing:p.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",f.letterSpacing,"0.396px"),lineHeight:p.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",f.lineHeight,"1.33"),textTransform:p.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",f.textTransform,"inherit"),textDecoration:p.FtCssVariableFactory.extend("--ft-typography-caption-text-decoration","",f.textDecoration,"inherit")},Oe={fontFamily:p.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",ee),fontSize:p.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",f.fontSize,"10px"),fontWeight:p.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",f.fontWeight,"normal"),letterSpacing:p.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",f.letterSpacing,"0.33px"),lineHeight:p.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",f.lineHeight,"1.6"),textTransform:p.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",f.textTransform,"inherit"),textDecoration:p.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-decoration","",f.textDecoration,"inherit")},Re={fontFamily:p.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",ee),fontSize:p.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",f.fontSize,"10px"),fontWeight:p.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",f.fontWeight,"normal"),letterSpacing:p.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",f.letterSpacing,"1.5px"),lineHeight:p.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",f.lineHeight,"1.6"),textTransform:p.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",f.textTransform,"uppercase"),textDecoration:p.FtCssVariableFactory.extend("--ft-typography-overline-text-decoration","",f.textDecoration,"inherit")},Ie={fontFamily:p.FtCssVariableFactory.extend("--ft-typography-button-font-family","",ee),fontSize:p.FtCssVariableFactory.extend("--ft-typography-button-font-size","",f.fontSize,"14px"),fontWeight:p.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",f.fontWeight,"600"),letterSpacing:p.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",f.letterSpacing,"1.246px"),lineHeight:p.FtCssVariableFactory.extend("--ft-typography-button-line-height","",f.lineHeight,"1.15"),textTransform:p.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",f.textTransform,"uppercase"),textDecoration:p.FtCssVariableFactory.extend("--ft-typography-button-text-decoration","",f.textDecoration,"inherit")},$i=q.css`
|
|
11
|
+
`}update(e){var r;super.update(e),["context","key","defaultMessage"].some(n=>e.has(n))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};H.elementDefinitions={};H.styles=fi;$e([(0,sr.redux)()],H.prototype,"editorMode",void 0);$e([(0,He.property)()],H.prototype,"context",void 0);$e([(0,He.property)()],H.prototype,"key",void 0);$e([(0,sr.jsonProperty)([])],H.prototype,"args",void 0);$e([(0,He.property)()],H.prototype,"defaultMessage",void 0);$e([(0,He.state)()],H.prototype,"editorMessage",void 0);var mi=m(v());var yi={"ft-i18n":H};(0,mi.customElements)(yi);var Qr=Zt.build("searchResultsNumber"),gi={results:"{0} results","results[\\=1]":"1 result"};var rn=globalThis,Si=t=>t,ir=rn.trustedTypes,Ei=ir?ir.createPolicy("lit-html",{createHTML:t=>t}):void 0,Ci="$lit$",oe=`lit$${Math.random().toFixed(9).slice(2)}$`,wi="?"+oe,pa=`<${wi}>`,Ee=document,or=()=>Ee.createComment(""),ct=t=>t===null||typeof t!="object"&&typeof t!="function",nn=Array.isArray,ha=t=>nn(t)||typeof t?.[Symbol.iterator]=="function",Yr=`[
|
|
12
|
+
\f\r]`,at=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ai=/-->/g,vi=/>/g,ge=RegExp(`>|${Yr}(?:([^\\s"'>=/]+)(${Yr}*=${Yr}*(?:[^
|
|
13
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),xi=/'/g,bi=/"/g,Ti=/^(?:script|style|textarea|title)$/i,sn=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),Oi=sn(1),Ri=sn(2),Ii=sn(3),lt=Symbol.for("lit-noChange"),w=Symbol.for("lit-nothing"),_i=new WeakMap,Se=Ee.createTreeWalker(Ee,129);function ki(t,e){if(!nn(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ei!==void 0?Ei.createHTML(e):e}var fa=(t,e)=>{let r=t.length-1,n=[],s,i=e===2?"<svg>":e===3?"<math>":"",o=at;for(let a=0;a<r;a++){let c=t[a],l,d,u=-1,h=0;for(;h<c.length&&(o.lastIndex=h,d=o.exec(c),d!==null);)h=o.lastIndex,o===at?d[1]==="!--"?o=Ai:d[1]!==void 0?o=vi:d[2]!==void 0?(Ti.test(d[2])&&(s=RegExp("</"+d[2],"g")),o=ge):d[3]!==void 0&&(o=ge):o===ge?d[0]===">"?(o=s??at,u=-1):d[1]===void 0?u=-2:(u=o.lastIndex-d[2].length,l=d[1],o=d[3]===void 0?ge:d[3]==='"'?bi:xi):o===bi||o===xi?o=ge:o===Ai||o===vi?o=at:(o=ge,s=void 0);let g=o===ge&&t[a+1].startsWith("/>")?" ":"";i+=o===at?c+pa:u>=0?(n.push(l),c.slice(0,u)+Ci+c.slice(u)+oe+g):c+oe+(u===-2?a:g)}return[ki(t,i+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),n]},ut=class t{constructor({strings:e,_$litType$:r},n){let s;this.parts=[];let i=0,o=0,a=e.length-1,c=this.parts,[l,d]=fa(e,r);if(this.el=t.createElement(l,n),Se.currentNode=this.el.content,r===2||r===3){let u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(s=Se.nextNode())!==null&&c.length<a;){if(s.nodeType===1){if(s.hasAttributes())for(let u of s.getAttributeNames())if(u.endsWith(Ci)){let h=d[o++],g=s.getAttribute(u).split(oe),_=/([.?@])?(.*)/.exec(h);c.push({type:1,index:i,name:_[2],strings:g,ctor:_[1]==="."?Jr:_[1]==="?"?Zr:_[1]==="@"?en:je}),s.removeAttribute(u)}else u.startsWith(oe)&&(c.push({type:6,index:i}),s.removeAttribute(u));if(Ti.test(s.tagName)){let u=s.textContent.split(oe),h=u.length-1;if(h>0){s.textContent=ir?ir.emptyScript:"";for(let g=0;g<h;g++)s.append(u[g],or()),Se.nextNode(),c.push({type:2,index:++i});s.append(u[h],or())}}}else if(s.nodeType===8)if(s.data===wi)c.push({type:2,index:i});else{let u=-1;for(;(u=s.data.indexOf(oe,u+1))!==-1;)c.push({type:7,index:i}),u+=oe.length-1}i++}}static createElement(e,r){let n=Ee.createElement("template");return n.innerHTML=e,n}};function Be(t,e,r=t,n){if(e===lt)return e;let s=n!==void 0?r._$Co?.[n]:r._$Cl,i=ct(e)?void 0:e._$litDirective$;return s?.constructor!==i&&(s?._$AO?.(!1),i===void 0?s=void 0:(s=new i(t),s._$AT(t,r,n)),n!==void 0?(r._$Co??=[])[n]=s:r._$Cl=s),s!==void 0&&(e=Be(t,s._$AS(t,e.values),s,n)),e}var Xr=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:n}=this._$AD,s=(e?.creationScope??Ee).importNode(r,!0);Se.currentNode=s;let i=Se.nextNode(),o=0,a=0,c=n[0];for(;c!==void 0;){if(o===c.index){let l;c.type===2?l=new ar(i,i.nextSibling,this,e):c.type===1?l=new c.ctor(i,c.name,c.strings,this,e):c.type===6&&(l=new tn(i,this,e)),this._$AV.push(l),c=n[++a]}o!==c?.index&&(i=Se.nextNode(),o++)}return Se.currentNode=Ee,s}p(e){let r=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,r),r+=n.strings.length-2):n._$AI(e[r])),r++}},ar=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,n,s){this.type=2,this._$AH=w,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=n,this.options=s,this._$Cv=s?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=Be(this,e,r),ct(e)?e===w||e==null||e===""?(this._$AH!==w&&this._$AR(),this._$AH=w):e!==this._$AH&&e!==lt&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):ha(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==w&&ct(this._$AH)?this._$AA.nextSibling.data=e:this.T(Ee.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:n}=e,s=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=ut.createElement(ki(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===s)this._$AH.p(r);else{let i=new Xr(s,this),o=i.u(this.options);i.p(r),this.T(o),this._$AH=i}}_$AC(e){let r=_i.get(e.strings);return r===void 0&&_i.set(e.strings,r=new ut(e)),r}k(e){nn(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,s=0;for(let i of e)s===r.length?r.push(n=new t(this.O(or()),this.O(or()),this,this.options)):n=r[s],n._$AI(i),s++;s<r.length&&(this._$AR(n&&n._$AB.nextSibling,s),r.length=s)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e!==this._$AB;){let n=Si(e).nextSibling;Si(e).remove(),e=n}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},je=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,n,s,i){this.type=1,this._$AH=w,this._$AN=void 0,this.element=e,this.name=r,this._$AM=s,this.options=i,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=w}_$AI(e,r=this,n,s){let i=this.strings,o=!1;if(i===void 0)e=Be(this,e,r,0),o=!ct(e)||e!==this._$AH&&e!==lt,o&&(this._$AH=e);else{let a=e,c,l;for(e=i[0],c=0;c<i.length-1;c++)l=Be(this,a[n+c],r,c),l===lt&&(l=this._$AH[c]),o||=!ct(l)||l!==this._$AH[c],l===w?e=w:e!==w&&(e+=(l??"")+i[c+1]),this._$AH[c]=l}o&&!s&&this.j(e)}j(e){e===w?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Jr=class extends je{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===w?void 0:e}},Zr=class extends je{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==w)}},en=class extends je{constructor(e,r,n,s,i){super(e,r,n,s,i),this.type=5}_$AI(e,r=this){if((e=Be(this,e,r,0)??w)===lt)return;let n=this._$AH,s=e===w&&n!==w||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,i=e!==w&&(n===w||s);s&&this.element.removeEventListener(this.name,this,n),i&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},tn=class{constructor(e,r,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){Be(this,e)}};var ya=rn.litHtmlPolyfillSupport;ya?.(ut,ar),(rn.litHtmlVersions??=[]).push("3.3.3");var Di=Symbol.for(""),ma=t=>{if(t?.r===Di)return t?._$litStatic$},on=t=>({_$litStatic$:t,r:Di});var Ni=new Map,an=t=>(e,...r)=>{let n=r.length,s,i,o=[],a=[],c,l=0,d=!1;for(;l<n;){for(c=e[l];l<n&&(i=r[l],(s=ma(i))!==void 0);)c+=s+e[++l],d=!0;l!==n&&a.push(i),o.push(c),l++}if(l===n&&o.push(e[n]),d){let u=o.join("$$lit$$");(e=Ni.get(u))===void 0&&(o.raw=o,Ni.set(u,e=o)),r=a}return t(e,...r)},cn=an(Oi),rp=an(Ri),np=an(Ii);var ln=m(z()),Wi=m(v());var Ve;(function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"})(Ve||(Ve={}));var B=m(Y()),p=m(v()),Mi=p.FtCssVariableFactory.extend("--ft-typography-font-family","",p.designSystemVariables.titleFont),Z=p.FtCssVariableFactory.extend("--ft-typography-font-family","",p.designSystemVariables.contentFont),f={fontFamily:Z,fontSize:p.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:p.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:p.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:p.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:p.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit"),textDecoration:p.FtCssVariableFactory.create("--ft-typography-text-decoration","","UNKNOWN","inherit")},Ae={fontFamily:p.FtCssVariableFactory.extend("--ft-typography-title-font-family","",Mi),fontSize:p.FtCssVariableFactory.extend("--ft-typography-title-font-size","",f.fontSize,"20px"),fontWeight:p.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",f.fontWeight,"normal"),letterSpacing:p.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",f.letterSpacing,"0.15px"),lineHeight:p.FtCssVariableFactory.extend("--ft-typography-title-line-height","",f.lineHeight,"1.2"),textTransform:p.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",f.textTransform,"inherit"),textDecoration:p.FtCssVariableFactory.extend("--ft-typography-title-text-decoration","",f.textDecoration,"inherit")},ve={fontFamily:p.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",Mi),fontSize:p.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",f.fontSize,"14px"),fontWeight:p.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",f.fontWeight,"normal"),letterSpacing:p.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",f.letterSpacing,"0.105px"),lineHeight:p.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",f.lineHeight,"1.7"),textTransform:p.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",f.textTransform,"inherit"),textDecoration:p.FtCssVariableFactory.extend("--ft-typography-title-dense-text-decoration","",f.textDecoration,"inherit")},xe={fontFamily:p.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",Z),fontSize:p.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",f.fontSize,"16px"),fontWeight:p.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",f.fontWeight,"600"),letterSpacing:p.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",f.letterSpacing,"0.144px"),lineHeight:p.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",f.lineHeight,"1.5"),textTransform:p.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",f.textTransform,"inherit"),textDecoration:p.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-decoration","",f.textDecoration,"inherit")},be={fontFamily:p.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",Z),fontSize:p.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",f.fontSize,"14px"),fontWeight:p.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",f.fontWeight,"normal"),letterSpacing:p.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",f.letterSpacing,"0.098px"),lineHeight:p.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",f.lineHeight,"1.7"),textTransform:p.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",f.textTransform,"inherit"),textDecoration:p.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-decoration","",f.textDecoration,"inherit")},_e={fontFamily:p.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",Z),fontSize:p.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",f.fontSize,"16px"),fontWeight:p.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",f.fontWeight,"normal"),letterSpacing:p.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",f.letterSpacing,"0.496px"),lineHeight:p.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",f.lineHeight,"1.5"),textTransform:p.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",f.textTransform,"inherit"),textDecoration:p.FtCssVariableFactory.extend("--ft-typography-body1-text-decoration","",f.textDecoration,"inherit")},Ce={fontFamily:p.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",Z),fontSize:p.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",f.fontSize,"14px"),fontWeight:p.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",f.fontWeight,"normal"),letterSpacing:p.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",f.letterSpacing,"0.252px"),lineHeight:p.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",f.lineHeight,"1.4"),textTransform:p.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",f.textTransform,"inherit"),textDecoration:p.FtCssVariableFactory.extend("--ft-typography-body2-text-decoration","",f.textDecoration,"inherit")},we={fontFamily:p.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",Z),fontSize:p.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",f.fontSize,"12px"),fontWeight:p.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",f.fontWeight,"normal"),letterSpacing:p.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",f.letterSpacing,"0.396px"),lineHeight:p.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",f.lineHeight,"1.33"),textTransform:p.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",f.textTransform,"inherit"),textDecoration:p.FtCssVariableFactory.extend("--ft-typography-caption-text-decoration","",f.textDecoration,"inherit")},Te={fontFamily:p.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",Z),fontSize:p.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",f.fontSize,"10px"),fontWeight:p.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",f.fontWeight,"normal"),letterSpacing:p.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",f.letterSpacing,"0.33px"),lineHeight:p.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",f.lineHeight,"1.6"),textTransform:p.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",f.textTransform,"inherit"),textDecoration:p.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-decoration","",f.textDecoration,"inherit")},Oe={fontFamily:p.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",Z),fontSize:p.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",f.fontSize,"10px"),fontWeight:p.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",f.fontWeight,"normal"),letterSpacing:p.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",f.letterSpacing,"1.5px"),lineHeight:p.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",f.lineHeight,"1.6"),textTransform:p.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",f.textTransform,"uppercase"),textDecoration:p.FtCssVariableFactory.extend("--ft-typography-overline-text-decoration","",f.textDecoration,"inherit")},Re={fontFamily:p.FtCssVariableFactory.extend("--ft-typography-button-font-family","",Z),fontSize:p.FtCssVariableFactory.extend("--ft-typography-button-font-size","",f.fontSize,"14px"),fontWeight:p.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",f.fontWeight,"600"),letterSpacing:p.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",f.letterSpacing,"1.246px"),lineHeight:p.FtCssVariableFactory.extend("--ft-typography-button-line-height","",f.lineHeight,"1.15"),textTransform:p.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",f.textTransform,"uppercase"),textDecoration:p.FtCssVariableFactory.extend("--ft-typography-button-text-decoration","",f.textDecoration,"inherit")},Li=B.css`
|
|
14
14
|
.ft-typography--title {
|
|
15
|
+
font-family: ${Ae.fontFamily};
|
|
16
|
+
font-size: ${Ae.fontSize};
|
|
17
|
+
font-weight: ${Ae.fontWeight};
|
|
18
|
+
letter-spacing: ${Ae.letterSpacing};
|
|
19
|
+
line-height: ${Ae.lineHeight};
|
|
20
|
+
text-transform: ${Ae.textTransform};
|
|
21
|
+
text-decoration: ${Ae.textDecoration};
|
|
22
|
+
}
|
|
23
|
+
`,Pi=B.css`
|
|
24
|
+
.ft-typography--title-dense {
|
|
15
25
|
font-family: ${ve.fontFamily};
|
|
16
26
|
font-size: ${ve.fontSize};
|
|
17
27
|
font-weight: ${ve.fontWeight};
|
|
@@ -20,8 +30,8 @@
|
|
|
20
30
|
text-transform: ${ve.textTransform};
|
|
21
31
|
text-decoration: ${ve.textDecoration};
|
|
22
32
|
}
|
|
23
|
-
`,
|
|
24
|
-
.ft-typography--
|
|
33
|
+
`,Fi=B.css`
|
|
34
|
+
.ft-typography--subtitle1 {
|
|
25
35
|
font-family: ${xe.fontFamily};
|
|
26
36
|
font-size: ${xe.fontSize};
|
|
27
37
|
font-weight: ${xe.fontWeight};
|
|
@@ -30,8 +40,8 @@
|
|
|
30
40
|
text-transform: ${xe.textTransform};
|
|
31
41
|
text-decoration: ${xe.textDecoration};
|
|
32
42
|
}
|
|
33
|
-
`,
|
|
34
|
-
.ft-typography--
|
|
43
|
+
`,Ui=B.css`
|
|
44
|
+
.ft-typography--subtitle2 {
|
|
35
45
|
font-family: ${be.fontFamily};
|
|
36
46
|
font-size: ${be.fontSize};
|
|
37
47
|
font-weight: ${be.fontWeight};
|
|
@@ -40,8 +50,9 @@
|
|
|
40
50
|
text-transform: ${be.textTransform};
|
|
41
51
|
text-decoration: ${be.textDecoration};
|
|
42
52
|
}
|
|
43
|
-
|
|
44
|
-
|
|
53
|
+
|
|
54
|
+
`,$i=B.css`
|
|
55
|
+
.ft-typography--body1 {
|
|
45
56
|
font-family: ${_e.fontFamily};
|
|
46
57
|
font-size: ${_e.fontSize};
|
|
47
58
|
font-weight: ${_e.fontWeight};
|
|
@@ -50,9 +61,8 @@
|
|
|
50
61
|
text-transform: ${_e.textTransform};
|
|
51
62
|
text-decoration: ${_e.textDecoration};
|
|
52
63
|
}
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
.ft-typography--body1 {
|
|
64
|
+
`,Hi=B.css`
|
|
65
|
+
.ft-typography--body2 {
|
|
56
66
|
font-family: ${Ce.fontFamily};
|
|
57
67
|
font-size: ${Ce.fontSize};
|
|
58
68
|
font-weight: ${Ce.fontWeight};
|
|
@@ -61,8 +71,8 @@
|
|
|
61
71
|
text-transform: ${Ce.textTransform};
|
|
62
72
|
text-decoration: ${Ce.textDecoration};
|
|
63
73
|
}
|
|
64
|
-
`,
|
|
65
|
-
.ft-typography--
|
|
74
|
+
`,Bi=B.css`
|
|
75
|
+
.ft-typography--caption {
|
|
66
76
|
font-family: ${we.fontFamily};
|
|
67
77
|
font-size: ${we.fontSize};
|
|
68
78
|
font-weight: ${we.fontWeight};
|
|
@@ -71,8 +81,8 @@
|
|
|
71
81
|
text-transform: ${we.textTransform};
|
|
72
82
|
text-decoration: ${we.textDecoration};
|
|
73
83
|
}
|
|
74
|
-
`,
|
|
75
|
-
.ft-typography--
|
|
84
|
+
`,ji=B.css`
|
|
85
|
+
.ft-typography--breadcrumb {
|
|
76
86
|
font-family: ${Te.fontFamily};
|
|
77
87
|
font-size: ${Te.fontSize};
|
|
78
88
|
font-weight: ${Te.fontWeight};
|
|
@@ -81,8 +91,8 @@
|
|
|
81
91
|
text-transform: ${Te.textTransform};
|
|
82
92
|
text-decoration: ${Te.textDecoration};
|
|
83
93
|
}
|
|
84
|
-
`,
|
|
85
|
-
.ft-typography--
|
|
94
|
+
`,Vi=B.css`
|
|
95
|
+
.ft-typography--overline {
|
|
86
96
|
font-family: ${Oe.fontFamily};
|
|
87
97
|
font-size: ${Oe.fontSize};
|
|
88
98
|
font-weight: ${Oe.fontWeight};
|
|
@@ -91,8 +101,8 @@
|
|
|
91
101
|
text-transform: ${Oe.textTransform};
|
|
92
102
|
text-decoration: ${Oe.textDecoration};
|
|
93
103
|
}
|
|
94
|
-
`,
|
|
95
|
-
.ft-typography--
|
|
104
|
+
`,qi=B.css`
|
|
105
|
+
.ft-typography--button {
|
|
96
106
|
font-family: ${Re.fontFamily};
|
|
97
107
|
font-size: ${Re.fontSize};
|
|
98
108
|
font-weight: ${Re.fontWeight};
|
|
@@ -101,33 +111,23 @@
|
|
|
101
111
|
text-transform: ${Re.textTransform};
|
|
102
112
|
text-decoration: ${Re.textDecoration};
|
|
103
113
|
}
|
|
104
|
-
`,
|
|
105
|
-
.ft-typography--button {
|
|
106
|
-
font-family: ${Ie.fontFamily};
|
|
107
|
-
font-size: ${Ie.fontSize};
|
|
108
|
-
font-weight: ${Ie.fontWeight};
|
|
109
|
-
letter-spacing: ${Ie.letterSpacing};
|
|
110
|
-
line-height: ${Ie.lineHeight};
|
|
111
|
-
text-transform: ${Ie.textTransform};
|
|
112
|
-
text-decoration: ${Ie.textDecoration};
|
|
113
|
-
}
|
|
114
|
-
`,Qi=q.css`
|
|
114
|
+
`,zi=B.css`
|
|
115
115
|
.ft-typography {
|
|
116
116
|
vertical-align: inherit;
|
|
117
117
|
}
|
|
118
|
-
`;var
|
|
119
|
-
<${
|
|
118
|
+
`;var Ki=function(t,e,r,n){var s=arguments.length,i=s<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(i=(s<3?o(i):s>3?o(e,r,i):o(e,r))||i);return s>3&&i&&Object.defineProperty(e,r,i),i},ee=class extends Wi.FtLitElement{constructor(){super(...arguments),this.variant=Ve.body1}render(){return this.element?cn`
|
|
119
|
+
<${on(this.element)}
|
|
120
120
|
part="text"
|
|
121
121
|
class="ft-typography ft-typography--${this.variant}">
|
|
122
122
|
<slot></slot>
|
|
123
|
-
</${
|
|
124
|
-
`:
|
|
123
|
+
</${on(this.element)}>
|
|
124
|
+
`:cn`
|
|
125
125
|
<slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
|
|
126
|
-
`}};
|
|
127
|
-
<ft-typography variant="${
|
|
128
|
-
${
|
|
126
|
+
`}};ee.styles=[Li,Pi,Fi,Ui,$i,Hi,Bi,ji,Vi,qi,zi];Ki([(0,ln.property)()],ee.prototype,"element",void 0);Ki([(0,ln.property)()],ee.prototype,"variant",void 0);var Qi=m(v());var Gi={"ft-typography":ee};(0,Qi.customElements)(Gi);var Yi=function(t,e,r,n){var s=arguments.length,i=s<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(i=(s<3?o(i):s>3?o(e,r,i):o(e,r))||i);return s>3&&i&&Object.defineProperty(e,r,i),i},ae=class extends(0,ce.withAriaNotification)(rr(Jt)){constructor(){super(),this.ariaNotificationDebouncer=new ce.Debouncer(100),this.searchNumberOfResults={context:"officialContext",key:"searchNumberOfResults",message:""},this.neededSearchRequests=[qe.CLUSTERED_SEARCH],this.addI18nContext(Qr,gi)}render(){return this.paging==null?cr.nothing:cr.html`
|
|
127
|
+
<ft-typography variant="${Ve.body1}">
|
|
128
|
+
${Qr.messages.results(this.paging.totalClustersCount)}
|
|
129
129
|
</ft-typography>
|
|
130
|
-
`}willUpdate(
|
|
130
|
+
`}willUpdate(e){super.willUpdate(e),e.has("paging")&&this.ariaNotificationDebouncer.run(async()=>{if(this.paging!==void 0){let r=await this.awaitI18n({...this.searchNumberOfResults,args:[this.paging.totalClustersCount]});this.sendAriaNotification(r)}})}};ae.elementDefinitions={"ft-typography":ee};ae.styles=fn;Yi([(0,ce.jsonProperty)({context:"officialContext",key:"searchNumberOfResults"})],ae.prototype,"searchNumberOfResults",void 0);Yi([(0,ce.redux)()],ae.prototype,"paging",void 0);var Xi={"ft-search-results-number":ae};(0,Ji.customElements)(Xi);})();
|
|
131
131
|
/*! Bundled license information:
|
|
132
132
|
|
|
133
133
|
.store/@lit-context-npm-1.1.6-2c155157c6/package/lib/context-request-event.js:
|