@fluid-topics/ft-search-result-title 2.2.15 → 2.2.16
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,5 +1,5 @@
|
|
|
1
|
-
"use strict";(()=>{var Zi=Object.create;var nn=Object.defineProperty;var ea=Object.getOwnPropertyDescriptor;var ta=Object.getOwnPropertyNames;var ra=Object.getPrototypeOf,na=Object.prototype.hasOwnProperty;var nt=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}};var sa=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of ta(t))!na.call(e,s)&&s!==r&&nn(e,s,{get:()=>t[s],enumerable:!(n=ea(t,s))||n.enumerable});return e};var y=(e,t,r)=>(r=e!=null?Zi(ra(e)):{},sa(t||!e||!e.__esModule?nn(r,"default",{value:e,enumerable:!0}):r,e));var x=nt((Co,sn)=>{sn.exports=ftGlobals.wcUtils});var se=nt((To,an)=>{an.exports=ftGlobals.lit});var z=nt((wo,on)=>{on.exports=ftGlobals.litDecorators});var Bi=nt((up,Hi)=>{Hi.exports=ftGlobals.litUnsafeHTML});var Yi=y(x());var rt=y(se()),Ki=y(z()),Wi=y(x());var Yt=y(x());var Le=y(x()),$r=y(z());var er;(function(e){e.CLUSTERED_SEARCH="CLUSTERED_SEARCH"})(er||(er={}));var re=y(x());var ia=y(x());var cn;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(cn||(cn={}));var ln;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(ln||(ln={}));var un;(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"})(un||(un={}));var dn;(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"})(dn||(dn={}));var pn;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(pn||(pn={}));var hn;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})(hn||(hn={}));var fn;(function(e){e.OFFICIAL="OFFICIAL",e.AI="AI"})(fn||(fn={}));var yn;(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"})(yn||(yn={}));var mn;(function(e){e.STANDARD="STANDARD",e.STRUCTURAL="STRUCTURAL"})(mn||(mn={}));var gn;(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"})(gn||(gn={}));var Sn;(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"})(Sn||(Sn={}));var En;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(En||(En={}));var vn;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(vn||(vn={}));var An;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(An||(An={}));var bn;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(bn||(bn={}));var xn;(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"})(xn||(xn={}));var tr;(function(e){e.OPTIONAL="OPTIONAL",e.MANDATORY="MANDATORY"})(tr||(tr={}));var _n;(function(e){e.ASC="ASC",e.DESC="DESC"})(_n||(_n={}));var Cn;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(Cn||(Cn={}));var rr;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(rr||(rr={}));var Tn;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(Tn||(Tn={}));var st;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(st||(st={}));var wn;(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"})(wn||(wn={}));var On;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(On||(On={}));var Rn;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.HTML_PACKAGE="HTML_PACKAGE",e.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Rn||(Rn={}));var nr;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(nr||(nr={}));var In;(function(e){e.PLAIN_TEXT="PLAIN_TEXT",e.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",e.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(In||(In={}));var T;(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"})(T||(T={}));var H;(function(e){e.SEARCHES="SEARCHES",e.BOOKMARKS="BOOKMARKS",e.BOOKS="BOOKS",e.COLLECTIONS="COLLECTIONS"})(H||(H={}));var kn;(function(e){e.UNAUTHENTICATED="UNAUTHENTICATED",e.USER_INCOMPLETE="USER_INCOMPLETE",e.MFA_REQUIRED="MFA_REQUIRED",e.AUTHENTICATED="AUTHENTICATED"})(kn||(kn={}));var Mn;(function(e){e.UNREACHABLE="UNREACHABLE",e.UNAUTHORIZED="UNAUTHORIZED",e.FORBIDDEN="FORBIDDEN",e.INCOMPATIBLE="INCOMPATIBLE",e.FAILED="FAILED",e.OK="OK"})(Mn||(Mn={}));var Dn;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(Dn||(Dn={}));var Nn;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SUMMARY="SUMMARY",e.SEMANTIC_SEARCH="SEMANTIC_SEARCH",e.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",e.DOCUMENTATION="DOCUMENTATION",e.OTHER="OTHER"})(Nn||(Nn={}));var Ln;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SLOW="SLOW",e.OTHER="OTHER"})(Ln||(Ln={}));var Pn;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(Pn||(Pn={}));var Fn;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(Fn||(Fn={}));var Un;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(Un||(Un={}));var $n;(function(e){e.IN_PROGRESS="IN_PROGRESS",e.ERROR="ERROR",e.DONE="DONE"})($n||($n={}));var Hn;(function(e){e.HTML="HTML",e.MARKDOWN="MARKDOWN"})(Hn||(Hn={}));var Bn;(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"})(Bn||(Bn={}));var jn;(function(e){e.MAP="MAP",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(jn||(jn={}));var aa={[T.PERSONAL_BOOK_SHARE_USER]:[T.PERSONAL_BOOK_USER],[T.HTML_EXPORT_USER]:[T.PERSONAL_BOOK_USER],[T.PDF_EXPORT_USER]:[T.PERSONAL_BOOK_USER],[T.KHUB_ADMIN]:[T.CONTENT_PUBLISHER],[T.ADMIN]:[T.KHUB_ADMIN,T.USERS_ADMIN,T.PORTAL_ADMIN,T.BEHAVIOR_DATA_USER],[T.GENERATIVE_AI_EXPORT_USER]:[T.GENERATIVE_AI_USER]};function Vn(e,t){return e===t||(aa[e]??[]).some(r=>Vn(r,t))}function sr(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=>Vn(n,t))}var Tr=y(z());var qn=y(z(),1);var ir=e=>t=>{window.customElements.get(e)||window.customElements.define(e,t)};function zn(e,t){return(0,qn.property)({type:Object,converter:{fromAttribute:r=>{if(r==null)return $e(e);try{return JSON.parse(r)}catch{return $e(e)}},toAttribute:r=>JSON.stringify(r)},hasChanged:He,...t??{}})}function oa(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(!Oe(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(!Oe(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=a=>Object.keys(a).filter(o=>a[o]!=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 a=i[n];if(!Oe(e[a],t[a]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function Oe(e,t){try{return oa(e,t)}catch{return!1}}function He(e,t){return!Oe(e,t)}function $e(e){return typeof window.structuredClone=="function"?structuredClone(e):e!=null?JSON.parse(JSON.stringify(e)):e}function it(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 Kn=y(z(),1);var ar=e=>{let t=e??{};return(r,n)=>{var s;let i={hasChanged:He,attribute:!1,...t};(0,Kn.property)(i)(r,n);let a=r.constructor;a.reduxProperties=new Map(a.reduxProperties),a.reduxProperties.set(n,{selector:(s=t.selector)!==null&&s!==void 0?s:(o=>o[n]),store:t.store})}};var at=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 ie=y(z(),1);var ot=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 a of n)try{await a()}catch(o){s(o);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 Gn=y(se(),1);var ct=globalThis,ca=ct.ShadowRoot&&(ct.ShadyCSS===void 0||ct.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;var Wn=(e,t)=>{if(ca)e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of t){let n=document.createElement("style"),s=ct.litNonce;s!==void 0&&n.setAttribute("nonce",s),n.textContent=r.cssText,e.appendChild(n)}};var lt=class extends Gn.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 Wn(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){ir(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 Qn(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 Ie=function(e,t,r,n){var s=arguments.length,i=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(a=e[o])&&(i=(s<3?a(i):s>3?a(t,r,i):a(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},Zn,Yn=Symbol("constructorPrototype"),Xn=Symbol("constructorName"),es=Symbol("exportpartsDebouncer"),Jn=Symbol("dynamicDependenciesLoaded"),Re=class e extends CustomEvent{constructor(){super(e.eventName,{bubbles:!0})}};Re.eventName="exportparts-updated";var K=class extends lt{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Zn]=new ot(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[es].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[Xn]=this.constructor.name,this[Yn]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Xn]&&Object.setPrototypeOf(this,this[Yn])}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[Jn]||(r[Jn]=!0,this.importDynamicDependencies()),(t=this.shadowRoot)===null||t===void 0||t.addEventListener(Re.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.shadowRoot)===null||t===void 0||t.removeEventListener(Re.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 Re)})}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=Qn(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,a,o;let c=f=>f!=null&&f.trim().length>0,l=t.filter(c).map(f=>f.trim());if(l.length===0){this.exportparts=void 0;return}let u=new Set;for(let f of(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let S=(i=(s=f.getAttribute("part"))===null||s===void 0?void 0:s.split(" "))!==null&&i!==void 0?i:[],v=(o=(a=f.getAttribute("exportparts"))===null||a===void 0?void 0:a.split(",").map(E=>E.split(":")[1]))!==null&&o!==void 0?o:[],I=[...S,...v].filter(c).map(E=>E.trim());for(let E of I)u.add(E)}if(u.size===0){this.exportparts=void 0;return}let p=[...u.values()].flatMap(f=>l.map(S=>`${f}:${S}--${f}`));this.exportparts=[...this.part,...p].join(", ")}};Zn=es;Ie([(0,ie.property)()],K.prototype,"exportpartsPrefix",void 0);Ie([zn([])],K.prototype,"exportpartsPrefixes",void 0);Ie([(0,ie.property)({reflect:!0})],K.prototype,"exportparts",void 0);Ie([(0,ie.property)()],K.prototype,"customStylesheet",void 0);Ie([(0,ie.property)()],K.prototype,"elementToFocus",void 0);Ie([(0,ie.state)()],K.prototype,"useAdoptedStyleSheets",void 0);function ut(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var Be=Symbol("internalReduxEventsUnsubscribers"),Z=Symbol("internalStoresUnsubscribers"),ae=Symbol("internalStores"),la=it(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(a){super.willUpdate(a),[...this.reduxConstructor.reduxReactiveProperties].some(o=>a.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[ae].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[ae].values()][0]}getStore(a){return a==null?this.getUnnamedStore():this[ae].get(a)}addStore(a,o){var c;o=(c=o??a.name)!==null&&c!==void 0?c:"default-store",this.unsubscribeFromStore(o),this[ae].set(o,a),this.subscribeToStore(o,a),this.updateFromStores()}removeStore(a){let o=typeof a=="string"?a:a.name;this.unsubscribeFromStore(o),this[ae].delete(o)}setupStores(){this.unsubscribeFromStores(),this[ae].forEach((a,o)=>this.subscribeToStore(o,a)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((a,o)=>{let c=this.constructor.getPropertyOptions(o);if(!c?.attribute||!this.hasAttribute(typeof c?.attribute=="string"?c.attribute:o)){let l=this.getStore(a.store);l&&(a.store?this[Z].has(a.store):this[Z].size>0)&&(this[o]=a.selector(l.getState(),this))}})}subscribeToStore(a,o){var c;this[Z].set(a,o.subscribe(()=>this.updateFromStores())),this[Be].set(a,[]),ut(o)&&o.eventBus&&((c=this.reduxConstructor.reduxEventListeners)===null||c===void 0||c.forEach((l,u)=>{if(typeof this[u]=="function"&&(!l.store||o.name===l.store)){let p=f=>this[u](f);o.addEventListener(l.eventName,p),this[Be].get(a).push(()=>o.removeEventListener(l.eventName,p))}})),this.onStoreAvailable(a)}unsubscribeFromStores(){this[Z].forEach((a,o)=>this.unsubscribeFromStore(o))}unsubscribeFromStore(a){var o;this[Z].has(a)&&this[Z].get(a)(),this[Z].delete(a),(o=this[Be].get(a))===null||o===void 0||o.forEach(c=>c()),this[Be].delete(a)}onStoreAvailable(a){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return t=Z,r=ae,n=Be,s.reduxProperties=new Map,s.reduxReactiveProperties=new Set,s.reduxEventListeners=new Map,s}),ts=class extends la(K){};function M(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 ua=typeof Symbol=="function"&&Symbol.observable||"@@observable",rs=ua,or=()=>Math.random().toString(36).substring(7).split("").join("."),da={INIT:`@@redux/INIT${or()}`,REPLACE:`@@redux/REPLACE${or()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${or()}`},dt=da;function pt(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 cr(e,t,r){if(typeof e!="function")throw new Error(M(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(M(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(M(1));return r(cr)(e,t)}let n=e,s=t,i=new Map,a=i,o=0,c=!1;function l(){a===i&&(a=new Map,i.forEach((E,k)=>{a.set(k,E)}))}function u(){if(c)throw new Error(M(3));return s}function p(E){if(typeof E!="function")throw new Error(M(4));if(c)throw new Error(M(5));let k=!0;l();let F=o++;return a.set(F,E),function(){if(k){if(c)throw new Error(M(6));k=!1,l(),a.delete(F),i=null}}}function f(E){if(!pt(E))throw new Error(M(7));if(typeof E.type>"u")throw new Error(M(8));if(typeof E.type!="string")throw new Error(M(17));if(c)throw new Error(M(9));try{c=!0,s=n(s,E)}finally{c=!1}return(i=a).forEach(F=>{F()}),E}function S(E){if(typeof E!="function")throw new Error(M(10));n=E,f({type:dt.REPLACE})}function v(){let E=p;return{subscribe(k){if(typeof k!="object"||k===null)throw new Error(M(11));function F(){let A=k;A.next&&A.next(u())}return F(),{unsubscribe:E(F)}},[rs](){return this}}}return f({type:dt.INIT}),{dispatch:f,subscribe:p,getState:u,replaceReducer:S,[rs]:v}}function pa(e){Object.keys(e).forEach(t=>{let r=e[t];if(typeof r(void 0,{type:dt.INIT})>"u")throw new Error(M(12));if(typeof r(void 0,{type:dt.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(M(13))})}function ns(e){let t=Object.keys(e),r={};for(let a=0;a<t.length;a++){let o=t[a];typeof e[o]=="function"&&(r[o]=e[o])}let n=Object.keys(r),s,i;try{pa(r)}catch(a){i=a}return function(o={},c){if(i)throw i;let l=!1,u={};for(let p=0;p<n.length;p++){let f=n[p],S=r[f],v=o[f],I=S(v,c);if(typeof I>"u"){let E=c&&c.type;throw new Error(M(14))}u[f]=I,l=l||I!==v}return l=l||n.length!==Object.keys(o).length,l?u:o}}function je(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function ss(...e){return t=>(r,n)=>{let s=t(r,n),i=()=>{throw new Error(M(15))},a={getState:s.getState,dispatch:(c,...l)=>i(c,...l)},o=e.map(c=>c(a));return i=je(...o)(s.dispatch),{...s,dispatch:i}}}function is(e){return pt(e)&&"type"in e&&typeof e.type=="string"}var fs=Symbol.for("immer-nothing"),as=Symbol.for("immer-draftable"),D=Symbol.for("immer-state");function V(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var U=Object,Me=U.getPrototypeOf,mt="constructor",bt="prototype",pr="configurable",gt="enumerable",ft="writable",Ve="value",W=e=>!!e&&!!e[D];function $(e){return e?ys(e)||_t(e)||!!e[as]||!!e[mt]?.[as]||Ct(e)||Tt(e):!1}var ha=U[bt][mt].toString(),os=new WeakMap;function ys(e){if(!e||!vr(e))return!1;let t=Me(e);if(t===null||t===U[bt])return!0;let r=U.hasOwnProperty.call(t,mt)&&t[mt];if(r===Object)return!0;if(!ke(r))return!1;let n=os.get(r);return n===void 0&&(n=Function.toString.call(r),os.set(r,n)),n===ha}function xt(e,t,r=!0){Ke(e)===0?(r?Reflect.ownKeys(e):U.keys(e)).forEach(s=>{t(s,e[s],e)}):e.forEach((n,s)=>t(s,n,e))}function Ke(e){let t=e[D];return t?t.type_:_t(e)?1:Ct(e)?2:Tt(e)?3:0}var lr=(e,t,r=Ke(e))=>r===2?e.has(t):U[bt].hasOwnProperty.call(e,t),hr=(e,t,r=Ke(e))=>r===2?e.get(t):e[t],St=(e,t,r,n=Ke(e))=>{n===2?e.set(t,r):n===3?e.add(r):e[t]=r};function fa(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var _t=Array.isArray,Ct=e=>e instanceof Map,Tt=e=>e instanceof Set,vr=e=>typeof e=="object",ke=e=>typeof e=="function",ur=e=>typeof e=="boolean";function ya(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var G=e=>e.copy_||e.base_;var Ar=e=>e.modified_?e.copy_:e.base_;function fr(e,t){if(Ct(e))return new Map(e);if(Tt(e))return new Set(e);if(_t(e))return Array[bt].slice.call(e);let r=ys(e);if(t===!0||t==="class_only"&&!r){let n=U.getOwnPropertyDescriptors(e);delete n[D];let s=Reflect.ownKeys(n);for(let i=0;i<s.length;i++){let a=s[i],o=n[a];o[ft]===!1&&(o[ft]=!0,o[pr]=!0),(o.get||o.set)&&(n[a]={[pr]:!0,[ft]:!0,[gt]:o[gt],[Ve]:e[a]})}return U.create(Me(e),n)}else{let n=Me(e);if(n!==null&&r)return{...e};let s=U.create(n);return U.assign(s,e)}}function br(e,t=!1){return wt(e)||W(e)||!$(e)||(Ke(e)>1&&U.defineProperties(e,{set:ht,add:ht,clear:ht,delete:ht}),U.freeze(e),t&&xt(e,(r,n)=>{br(n,!0)},!1)),e}function ma(){V(2)}var ht={[Ve]:ma};function wt(e){return e===null||!vr(e)?!0:U.isFrozen(e)}var Et="MapSet",yr="Patches",cs="ArrayMethods",ms={};function oe(e){let t=ms[e];return t||V(0,e),t}var ls=e=>!!ms[e];var qe,gs=()=>qe,ga=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:ls(Et)?oe(Et):void 0,arrayMethodsPlugin_:ls(cs)?oe(cs):void 0});function us(e,t){t&&(e.patchPlugin_=oe(yr),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function mr(e){gr(e),e.drafts_.forEach(Sa),e.drafts_=null}function gr(e){e===qe&&(qe=e.parent_)}var ds=e=>qe=ga(qe,e);function Sa(e){let t=e[D];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function ps(e,t){t.unfinalizedDrafts_=t.drafts_.length;let r=t.drafts_[0];if(e!==void 0&&e!==r){r[D].modified_&&(mr(t),V(4)),$(e)&&(e=hs(t,e));let{patchPlugin_:s}=t;s&&s.generateReplacementPatches_(r[D].base_,e,t)}else e=hs(t,r);return Ea(t,e,!0),mr(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==fs?e:void 0}function hs(e,t){if(wt(t))return t;let r=t[D];if(!r)return vt(t,e.handledSet_,e);if(!Ot(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);vs(r,e)}return r.copy_}function Ea(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&br(t,r)}function Ss(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var Ot=(e,t)=>e.scope_===t,va=[];function Es(e,t,r,n){let s=G(e),i=e.type_;if(n!==void 0&&hr(s,n,i)===t){St(s,n,r,i);return}if(!e.draftLocations_){let o=e.draftLocations_=new Map;xt(s,(c,l)=>{if(W(l)){let u=o.get(l)||[];u.push(c),o.set(l,u)}})}let a=e.draftLocations_.get(t)??va;for(let o of a)St(s,o,r,i)}function Aa(e,t,r){e.callbacks_.push(function(s){let i=t;if(!i||!Ot(i,s))return;s.mapSetPlugin_?.fixSetContents(i);let a=Ar(i);Es(e,i.draft_??i,a,r),vs(i,s)})}function vs(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)}Ss(e)}}function ba(e,t,r){let{scope_:n}=e;if(W(r)){let s=r[D];Ot(s,n)&&s.callbacks_.push(function(){yt(e);let a=Ar(s);Es(e,r,a,t)})}else $(r)&&e.callbacks_.push(function(){let i=G(e);e.type_===3?i.has(r)&&vt(r,n.handledSet_,n):hr(i,t,e.type_)===r&&n.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&vt(hr(e.copy_,t,e.type_),n.handledSet_,n)})}function vt(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||W(e)||t.has(e)||!$(e)||wt(e)||(t.add(e),xt(e,(n,s)=>{if(W(s)){let i=s[D];if(Ot(i,r)){let a=Ar(i);St(e,n,a,e.type_),Ss(i)}}else $(s)&&vt(s,t,r)})),e}function xa(e,t){let r=_t(e),n={type_:r?1:0,scope_:t?t.scope_:gs(),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=At;r&&(s=[n],i=ze);let{revoke:a,proxy:o}=Proxy.revocable(s,i);return n.draft_=o,n.revoke_=a,[o,n]}var At={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=G(e);if(!lr(s,t,e.type_))return Ca(e,s,t);let i=s[t];if(e.finalized_||!$(i)||n&&e.operationMethod&&r?.isMutatingArrayMethod(e.operationMethod)&&ya(t))return i;if(i===dr(e.base_,t)||_a(e,t,i)){yt(e);let a=e.type_===1?+t:t,o=Er(e.scope_,i,e,a);return e.copy_[a]=o}return i},has(e,t){return t in G(e)},ownKeys(e){return Reflect.ownKeys(G(e))},set(e,t,r){let n=As(G(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){let s=dr(G(e),t),i=s?.[D];if(i&&i.base_===r)return e.copy_[t]=r,e.assigned_.set(t,!1),!0;if(fa(r,s)&&(r!==void 0||lr(e.base_,t,e.type_)))return!0;yt(e),Sr(e)}return e.copy_[t]===r&&(r!==void 0||lr(e.copy_,t,e.type_))||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_.set(t,!0),ba(e,t,r)),!0},deleteProperty(e,t){return yt(e),dr(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Sr(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let r=G(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{[ft]:!0,[pr]:e.type_!==1||t!=="length",[gt]:n[gt],[Ve]:r[t]}},defineProperty(){V(11)},getPrototypeOf(e){return Me(e.base_)},setPrototypeOf(){V(12)}},ze={};for(let e in At){let t=At[e];ze[e]=function(){let r=arguments;return r[0]=r[0][0],t.apply(this,r)}}ze.deleteProperty=function(e,t){return ze.set.call(this,e,t,void 0)};ze.set=function(e,t,r){return At.set.call(this,e[0],t,r,e[0])};function dr(e,t){let r=e[D];return(r?G(r):e)[t]}function _a(e,t,r){return e.type_!==1||!e.allIndicesReassigned_||e.assigned_?.get(t)||!$(r)||r[D]?!1:e.baseRefs_.has(r)}function Ca(e,t,r){let n=As(t,r);return n?Ve in n?n[Ve]:n.get?.call(e.draft_):void 0}function As(e,t){if(!(t in e))return;let r=Me(e);for(;r;){let n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Me(r)}}function Sr(e){e.modified_||(e.modified_=!0,e.parent_&&Sr(e.parent_))}function yt(e){e.copy_||(e.assigned_=new Map,e.copy_=fr(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Ta=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,r,n)=>{if(ke(t)&&!ke(r)){let i=r;r=t;let a=this;return function(c=i,...l){return a.produce(c,u=>r.call(this,u,...l))}}ke(r)||V(6),n!==void 0&&!ke(n)&&V(7);let s;if($(t)){let i=ds(this),a=Er(i,t,void 0),o=!0;try{s=r(a),o=!1}finally{o?mr(i):gr(i)}return us(i,n),ps(s,i)}else if(!t||!vr(t)){if(s=r(t),s===void 0&&(s=t),s===fs&&(s=void 0),this.autoFreeze_&&br(s,!0),n){let i=[],a=[];oe(yr).generateReplacementPatches_(t,s,{patches_:i,inversePatches_:a}),n(i,a)}return s}else V(1,t)},this.produceWithPatches=(t,r)=>{if(ke(t))return(a,...o)=>this.produceWithPatches(a,c=>t(c,...o));let n,s;return[this.produce(t,r,(a,o)=>{n=a,s=o}),n,s]},ur(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),ur(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),ur(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){$(e)||V(8),W(e)&&(e=bs(e));let t=ds(this),r=Er(t,e,void 0);return r[D].isManual_=!0,gr(t),r}finishDraft(e,t){let r=e&&e[D];(!r||!r.isManual_)&&V(9);let{scope_:n}=r;return us(n,t),ps(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=oe(yr).applyPatches_;return W(e)?n(e,t):this.produce(e,s=>n(s,t))}};function Er(e,t,r,n){let[s,i]=Ct(t)?oe(Et).proxyMap_(t,r):Tt(t)?oe(Et).proxySet_(t,r):xa(t,r);return(r?.scope_??gs()).drafts_.push(s),i.callbacks_=r?.callbacks_??[],i.key_=n,r&&n!==void 0?Aa(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 bs(e){return W(e)||V(10,e),xs(e)}function xs(e){if(!$(e)||wt(e))return e;let t=e[D],r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=fr(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=fr(e,!0);return xt(r,(s,i)=>{St(r,s,xs(i))},n),t&&(t.finalized_=!1),r}var wa=globalThis.Iterator,gc=typeof wa?.from=="function";var Oa=new Ta,xr=Oa.produce;function _s(e){return({dispatch:r,getState:n})=>s=>i=>typeof i=="function"?i(r,n,e):s(i)}var Cs=_s(),Ts=_s;var Ra=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?je:je.apply(null,arguments)},_c=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}},Ia=e=>e&&typeof e.match=="function";function ee(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=>is(n)&&n.type===e,r}var ks=class We extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,We.prototype)}static get[Symbol.species](){return We}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new We(...t[0].concat(this)):new We(...t.concat(this))}};function ws(e){return $(e)?xr(e,()=>{}):e}function Rt(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function ka(e){return typeof e=="boolean"}var Ma=()=>function(t){let{thunk:r=!0,immutableCheck:n=!0,serializableCheck:s=!0,actionCreatorCheck:i=!0}=t??{},a=new ks;return r&&(ka(r)?a.push(Cs):a.push(Ts(r.extraArgument))),a},Da="RTK_autoBatch";var Os=e=>t=>{setTimeout(t,e)},Na=(e,t)=>r=>{let n=!1,s=()=>{n||(n=!0,cancelAnimationFrame(i),clearTimeout(a),r())},i=e(s),a=setTimeout(s,t)},La=(e={type:"raf"})=>t=>(...r)=>{let n=t(...r),s=!0,i=!1,a=!1,o=new Set,c=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?Na(window.requestAnimationFrame,100):Os(10):e.type==="callback"?e.queueNotification:Os(e.timeout),l=()=>{a=!1,i&&(i=!1,o.forEach(u=>u()))};return Object.assign({},n,{subscribe(u){let p=()=>s&&u(),f=n.subscribe(p);return o.add(u),()=>{f(),o.delete(u)}},dispatch(u){try{return s=!u?.meta?.[Da],i=!s,i&&(a||(a=!0,c(l))),n.dispatch(u)}finally{s=!0}}})},Pa=e=>function(r){let{autoBatch:n=!0}=r??{},s=new ks(e);return n&&s.push(La(typeof n=="object"?n:void 0)),s};function Ms(e){let t=Ma(),{reducer:r=void 0,middleware:n,devTools:s=!0,duplicateMiddlewareCheck:i=!0,preloadedState:a=void 0,enhancers:o=void 0}=e||{},c;if(typeof r=="function")c=r;else if(pt(r))c=ns(r);else throw new Error(Q(1));let l;typeof n=="function"?l=n(t):l=t();let u=je;s&&(u=Ra({trace:!1,...typeof s=="object"&&s}));let p=ss(...l),f=Pa(p),S=typeof o=="function"?o(f):f(),v=u(...S);return cr(c,a,v)}function Ds(e){let t={},r=[],n,s={addCase(i,a){let o=typeof i=="string"?i:i.type;if(!o)throw new Error(Q(28));if(o in t)throw new Error(Q(29));return t[o]=a,s},addAsyncThunk(i,a){return a.pending&&(t[i.pending.type]=a.pending),a.rejected&&(t[i.rejected.type]=a.rejected),a.fulfilled&&(t[i.fulfilled.type]=a.fulfilled),a.settled&&r.push({matcher:i.settled,reducer:a.settled}),s},addMatcher(i,a){return r.push({matcher:i,reducer:a}),s},addDefaultCase(i){return n=i,s}};return e(s),[t,r,n]}function Fa(e){return typeof e=="function"}function Ua(e,t){let[r,n,s]=Ds(t),i;if(Fa(e))i=()=>ws(e());else{let o=ws(e);i=()=>o}function a(o=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,p)=>{if(p)if(W(u)){let S=p(u,c);return S===void 0?u:S}else{if($(u))return xr(u,f=>p(f,c));{let f=p(u,c);if(f===void 0){if(u===null)return u;throw Error("A case reducer on a non-draftable value must not return undefined")}return f}}return u},o)}return a.getInitialState=i,a}var $a=(e,t)=>Ia(e)?e.match(t):e(t);function Ha(...e){return t=>e.some(r=>$a(r,t))}var Ba="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",ja=(e=21)=>{let t="",r=e;for(;r--;)t+=Ba[Math.random()*64|0];return t},Va=["name","message","stack","code"],_r=class{constructor(e,t){this.payload=e,this.meta=t}payload;meta;_type},Rs=class{constructor(e,t){this.payload=e,this.meta=t}payload;meta;_type},qa=e=>{if(typeof e=="object"&&e!==null){let t={};for(let r of Va)typeof e[r]=="string"&&(t[r]=e[r]);return t}return{message:String(e)}},Is="External signal was aborted",za=(()=>{function e(t,r,n){let s=ee(t+"/fulfilled",(c,l,u,p)=>({payload:c,meta:{...p||{},arg:u,requestId:l,requestStatus:"fulfilled"}})),i=ee(t+"/pending",(c,l,u)=>({payload:void 0,meta:{...u||{},arg:l,requestId:c,requestStatus:"pending"}})),a=ee(t+"/rejected",(c,l,u,p,f)=>({payload:p,error:(n&&n.serializeError||qa)(c||"Rejected"),meta:{...f||{},arg:u,requestId:l,rejectedWithValue:!!p,requestStatus:"rejected",aborted:c?.name==="AbortError",condition:c?.name==="ConditionError"}}));function o(c,{signal:l}={}){return(u,p,f)=>{let S=n?.idGenerator?n.idGenerator(c):ja(),v=new AbortController,I,E;function k(g){E=g,v.abort()}l&&(l.aborted?k(Is):l.addEventListener("abort",()=>k(Is),{once:!0}));let F=(async function(){let g;try{let b=n?.condition?.(c,{getState:p,extra:f});if(Wa(b)&&(b=await b),b===!1||v.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};let q=new Promise((C,w)=>{I=()=>{w({name:"AbortError",message:E||"Aborted"})},v.signal.addEventListener("abort",I,{once:!0})});u(i(S,c,n?.getPendingMeta?.({requestId:S,arg:c},{getState:p,extra:f}))),g=await Promise.race([q,Promise.resolve(r(c,{dispatch:u,getState:p,extra:f,requestId:S,signal:v.signal,abort:k,rejectWithValue:((C,w)=>new _r(C,w)),fulfillWithValue:((C,w)=>new Rs(C,w))})).then(C=>{if(C instanceof _r)throw C;return C instanceof Rs?s(C.payload,S,c,C.meta):s(C,S,c)})])}catch(b){g=b instanceof _r?a(null,S,c,b.payload,b.meta):a(b,S,c)}finally{I&&v.signal.removeEventListener("abort",I)}return n&&!n.dispatchConditionRejection&&a.match(g)&&g.meta.condition||u(g),g})();return Object.assign(F,{abort:k,requestId:S,arg:c,unwrap(){return F.then(Ka)}})}}return Object.assign(o,{pending:i,rejected:a,fulfilled:s,settled:Ha(a,s),typePrefix:t})}return e.withTypes=()=>e,e})();function Ka(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Wa(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Ns=Symbol.for("rtk-slice-createasyncthunk"),Tc={[Ns]:za};function Ga(e,t){return`${e}/${t}`}function Qa({creators:e}={}){let t=e?.asyncThunk?.[Ns];return function(n){let{name:s,reducerPath:i=s}=n;if(!s)throw new Error(Q(11));typeof process<"u";let a=(typeof n.reducers=="function"?n.reducers(Xa()):n.reducers)||{},o=Object.keys(a),c={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},l={addCase(g,A){let b=typeof g=="string"?g:g.type;if(!b)throw new Error(Q(12));if(b in c.sliceCaseReducersByType)throw new Error(Q(13));return c.sliceCaseReducersByType[b]=A,l},addMatcher(g,A){return c.sliceMatchers.push({matcher:g,reducer:A}),l},exposeAction(g,A){return c.actionCreators[g]=A,l},exposeCaseReducer(g,A){return c.sliceCaseReducersByName[g]=A,l}};o.forEach(g=>{let A=a[g],b={reducerName:g,type:Ga(s,g),createNotation:typeof n.reducers=="function"};Za(A)?to(b,A,l,t):Ja(b,A,l)});function u(){let[g={},A=[],b=void 0]=typeof n.extraReducers=="function"?Ds(n.extraReducers):[n.extraReducers],q={...g,...c.sliceCaseReducersByType};return Ua(n.initialState,C=>{for(let w in q)C.addCase(w,q[w]);for(let w of c.sliceMatchers)C.addMatcher(w.matcher,w.reducer);for(let w of A)C.addMatcher(w.matcher,w.reducer);b&&C.addDefaultCase(b)})}let p=g=>g,f=new Map,S=new WeakMap,v;function I(g,A){return v||(v=u()),v(g,A)}function E(){return v||(v=u()),v.getInitialState()}function k(g,A=!1){function b(C){let w=C[g];return typeof w>"u"&&A&&(w=Rt(S,b,E)),w}function q(C=p){let w=Rt(f,A,()=>new WeakMap);return Rt(w,C,()=>{let rn={};for(let[Xi,Ji]of Object.entries(n.selectors??{}))rn[Xi]=Ya(Ji,C,()=>Rt(S,C,E),A);return rn})}return{reducerPath:g,getSelectors:q,get selectors(){return q(b)},selectSlice:b}}let F={name:s,reducer:I,actions:c.actionCreators,caseReducers:c.sliceCaseReducersByName,getInitialState:E,...k(i),injectInto(g,{reducerPath:A,...b}={}){let q=A??i;return g.inject({reducerPath:q,reducer:I},b),{...F,...k(q,!0)}}};return F}}function Ya(e,t,r,n){function s(i,...a){let o=t(i);return typeof o>"u"&&n&&(o=r()),e(o,...a)}return s.unwrapped=e,s}var Ls=Qa();function Xa(){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 Ja({type:e,reducerName:t,createNotation:r},n,s){let i,a;if("reducer"in n){if(r&&!eo(n))throw new Error(Q(17));i=n.reducer,a=n.prepare}else i=n;s.addCase(e,i).exposeCaseReducer(t,i).exposeAction(t,a?ee(e,a):ee(e))}function Za(e){return e._reducerDefinitionType==="asyncThunk"}function eo(e){return e._reducerDefinitionType==="reducerWithPrepare"}function to({type:e,reducerName:t},r,n,s){if(!s)throw new Error(Q(18));let{payloadCreator:i,fulfilled:a,pending:o,rejected:c,settled:l,options:u}=r,p=s(e,i,u);n.exposeAction(t,p),a&&n.addCase(p.fulfilled,a),o&&n.addCase(p.pending,o),c&&n.addCase(p.rejected,c),l&&n.addMatcher(p.settled,l),n.exposeCaseReducer(t,{fulfilled:a||It,pending:o||It,rejected:c||It,settled:l||It})}function It(){}var Ps="listener",Fs="completed",Us="cancelled",wc=`task-${Us}`,Oc=`task-${Fs}`,Rc=`${Ps}-${Us}`,Ic=`${Ps}-${Fs}`;var{assign:$s}=Object;var Cr="listenerMiddleware";var ro=$s(ee(`${Cr}/add`),{withTypes:()=>ro}),kc=ee(`${Cr}/removeAll`),no=$s(ee(`${Cr}/remove`),{withTypes:()=>no});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 so=it(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)}}}),kt=class extends so(Object){};window.ftReduxStores||(window.ftReduxStores={});var Hs=class e extends kt{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(ut(i))return i;if(s==null)return;let a=Ls({...s,reducers:(r=s.reducers)!==null&&r!==void 0?r:{}}),o=Ms({reducer:(c,l)=>{if(l.type==="CLEAR_FT_REDUX_STORE"){let u=$e(a.getInitialState());for(let p of l.keeping)u[p]=(c??u)[p];return u}else if(typeof l.type=="string"&&l.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...c,...l.overwrites};return a.reducer(c,l)}});return window.ftReduxStores[s.name]=new e(a,o,s.eventBus)}constructor(t,r,n){super(),this.reduxSlice=t,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new at,this.injectInto=(i,a)=>this.reduxSlice.injectInto(i,a),this.selectSlice=i=>this.reduxSlice.selectSlice(i);let s=i=>i!=null?JSON.parse(JSON.stringify(i)):i;this.actions=new Proxy(this.reduxSlice.actions,{get:(i,a,o)=>{let c=a,l=i[c];return l?(...u)=>{let p=l(...u.map(s));return this.reduxStore.dispatch(p),p}:u=>{let p=c,f=this.getState()[p];Oe(f,u)||this.setState({[p]:s(u)})}}}),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 Mt=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 a=typeof t=="string"?new Date(t):t,o=new Intl.DateTimeFormat(r,{dateStyle:n?"medium":"short"}).format(a),c=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(a);return i?c:s?`${o} ${c}`:o}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 Dt=y(x()),io="ft-app-info",te=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};te.eventName="authentication-change";var Ge=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};Ge.eventName="ui-locale-changed";var ao={session:(e,t)=>{(0,Dt.deepEqual)(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>m.dispatchEvent(new te(t.payload)),0))}},m=Dt.FtReduxStore.get({name:io,reducers:ao,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 Bs=y(x()),Nt=function(e,t,r,n){var s=arguments.length,i=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(a=e[o])&&(i=(s<3?a(i):s>3?a(t,r,i):a(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},ol=(0,Bs.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(m)}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(o=>o.key===n))===null||s===void 0?void 0:s.date)!==null&&i!==void 0?i:!1)?o=>Mt.format(o,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Nt([(0,Tr.property)({type:Boolean})],t.prototype,"useLongDateFormat",void 0),Nt([(0,Tr.property)({type:Boolean})],t.prototype,"useDateTimeFormat",void 0),Nt([ar({store:m.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),Nt([ar({store:m.name})],t.prototype,"uiLocale",void 0),t});var $t=y(x());var wr=y(x());var ce=class e{static get(t){let{baseUrl:r,apiIntegrationIdentifier:n}=m.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=m.subscribe(()=>{n=e.get(t),n&&(s(),r(n))})}})}};var De=class{constructor(t){this.overrideApi=t}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:ce.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):ce.await()}};var P=class extends De{constructor(t=!0,r){var n;super(r),this.sortObjectFields=(i,a)=>typeof a!="object"||a==null||Array.isArray(a)?a:Object.fromEntries(Object.entries(a).sort(([o],[c])=>o.localeCompare(c)));let s=this.constructor;s.commonCache=(n=s.commonCache)!==null&&n!==void 0?n:new wr.CacheRegistry,this.cache=t?s.commonCache:new wr.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 Lt=class extends P{async listMySearches(){let{session:t}=m.getState();return sr(t,T.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),300*1e3):[]}};var Pt=class extends P{async listMyBookmarks(){let t=m.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),300*1e3):[]}};var Ft=class extends P{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=m.getState().session;return!!t?.sessionAuthenticated}};var Ut=class extends P{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=m.getState().session;return!!t?.sessionAuthenticated}};var oo="ft-user-assets",co={setAssetCount:(e,t)=>{let{userAssetType:r,count:n}=t.payload.assetCount;e.assetCounts.allAsset[r]=n},clearAssetCount:e=>{Object.values(H).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;Rr(e,r,[...Or(e,r),s]),js(e,r,1,n),Vs(e,s)},editAsset:(e,t)=>{let{assetType:r,asset:n}=t.payload;Rr(e,r,Or(e,r).map(s=>s.id===n.id?n:s)),Vs(e,n)},removeAsset:(e,t)=>{let{assetType:r,mapId:n,assetId:s}=t.payload;Rr(e,r,Or(e,r).filter(i=>i.id!==s)),js(e,r,-1,n)}},qs={[H.SEARCHES]:"savedSearches",[H.BOOKMARKS]:"bookmarks",[H.BOOKS]:void 0,[H.COLLECTIONS]:void 0},Or=(e,t)=>{var r;let n=qs[t];return n?(r=e[n])!==null&&r!==void 0?r:[]:[]},Rr=(e,t,r)=>{let n=qs[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===H.BOOKMARKS&&n)){let i=e.assetCounts.bookmarkByMap[n];e.assetCounts.bookmarkByMap[n]=Math.max(0,i+r)}},Vs=(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)},N=$t.FtReduxStore.get({name:oo,reducers:co,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(H).map(e=>[e,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Ir=class{constructor(t=new Ft,r=new Ut){this.assetCountsService=t,this.assetLabelsService=r,this.currentSession=m.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Pt,this.savedSearchesService=new Lt,m.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:r}=m.getState();(0,$t.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(),N.actions.clearAssetCount(),N.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),N.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),N.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();N.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let t=await this.assetLabelsService.getUserAssetLabels();N.actions.assetLabels(t)}async loadAssetCount(t){let r=await this.assetCountsService.getUserAssetCount(t);r&&N.getState().assetCounts.allAsset[t]!==r.count&&N.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(t){let r=await this.assetCountsService.getUserBookmarkCountByMap(t);r&&N.getState().assetCounts.bookmarkByMap[t]!==r.count&&N.actions.setBookmarkCountByMap({count:r.count,mapId:t})}async reloadAssetCount(t){this.assetCountsService.clearCache();let r=Object.keys(N.getState().assetCounts.bookmarkByMap).length!==0;t===H.BOOKMARKS&&r&&N.actions.clearBookmarkCountByMap(),N.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;N.actions.bookmarks(r)}}},lo=new Ir;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=lo);var kr=class{addCommand(t,r=!1){m.commands.add(t,r)}consumeCommand(t){return m.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new kr;var B=y(x());var zs,Ne=class extends CustomEvent{constructor(t){super("ft-i18n-context-loaded",{detail:t})}},uo=Symbol("clearAfterUnitTest"),Ht=class extends(0,B.withEventBus)(P){constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[zs]=()=>{this.defaultMessages={},this.cache=new B.CacheRegistry,this.listeners={}},this.currentUiLocale=m.getState().uiLocale,m.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=m.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,B.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(),a=this.resolveContext(i);return new B.ParametrizedLabelResolver((s=this.defaultMessages[i])!==null&&s!==void 0?s:{},a).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 B.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 Ne({loadedContexts:t})),this.dispatchEvent(new Ne({loadedContexts:t})),await Promise.all(t.map(r=>this.notify(r,!1)))}async notify(t,r=!0){r&&(document.body.dispatchEvent(new Ne({loadedContexts:[t]})),this.dispatchEvent(new Ne({loadedContexts:[t]}))),this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(n=>(0,B.delay)(0).then(()=>n()).catch(()=>null)))}};zs=uo;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Ht{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Ht{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var Ks=window.FluidTopicsI18nService,jl=window.FluidTopicsCustomI18nService;var Ws=y(x()),Mr=class{highlightHtml(t,r,n){(0,Ws.highlightHtml)(t,r,n)}};window.FluidTopicsHighlightHtmlService=new Mr;var Gs=y(x());var Dr=class{isDate(t){var r,n,s,i;return(i=(s=((n=(r=m.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(o=>o.key===t))===null||s===void 0?void 0:s.date)!==null&&i!==void 0?i:!1}format(t,r){var n,s,i,a;if(t==null)return"";try{return Gs.DateFormatter.format(t,(n=r?.locale)!==null&&n!==void 0?n:m.getState().uiLocale,(s=r?.longFormat)!==null&&s!==void 0?s:!1,(i=r?.withTime)!==null&&i!==void 0?i:!1,(a=r?.onlyTime)!==null&&a!==void 0?a:!1)}catch(o){throw console.error(`Date ${JSON.stringify(t)} is not valid`,o),o}}};window.FluidTopicsDateService=new Dr;var Qs=y(x());var Qe=class{static get(t,r){var n,s,i,a;let o=m.getState(),{lang:c,region:l}=(i=(s=(n=o.localesConfiguration)===null||n===void 0?void 0:n.defaultLocales)===null||s===void 0?void 0:s.defaultContentLocale)!==null&&i!==void 0?i:{lang:"en",region:"US"};return new Qs.SearchPlaceConverter(o.baseUrl,t??20,(a=o.localesConfiguration)===null||a===void 0?void 0:a.allLanguagesAllowed,r??`${c}-${l}`)}};var Nr=class{urlToSearchRequest(t){return Qe.get().parse(t)}searchRequestToUrl(t){return Qe.get().serialize(t)}};window.FluidTopicsUrlService=new Nr;var Y=y(x());var le=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{nextLocation:t}})}};le.eventName="before-location-change";var ue=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{currentItem:t}})}};ue.eventName="change";var Lr=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))}},Ys=new Lr;var Bt=class e extends Y.WithEventBus{static build(){return new e(window.history,Ys,()=>window.location,!1)}constructor(t,r,n,s){var i,a;super(),this.history=t,this.historyStorage=r,this.windowLocation=n,this.states=[],this.realPushState=t.pushState,this.realReplaceState=t.replaceState,this.initialIndex=(a=(i=t.state)===null||i===void 0?void 0:i.index)!==null&&a!==void 0?a: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,Y.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,this.windowLocation().href]),setTimeout(()=>this.dispatchEvent(new ue(this.currentItem())),0)}installProxies(){let t=r=>(n,s,[i,a,o])=>{let c=new le(new URL(typeof o=="string"?o:(o??this.windowLocation()).href,window.location.origin));this.dispatchEvent(c);let l=r(),u={...l===this.currentIndex?this.currentState:void 0,...i,index:l,href:c.detail.nextLocation.href};n.apply(s,[u,a,u.href]),this.setCurrentState(u,!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(le.eventName,t)}removeBeforeLocationChangeListener(t){this.removeEventListener(le.eventName,t)}addHistoryChangeListener(t){this.addEventListener(ue.eventName,t)}removeHistoryChangeListener(t){this.removeEventListener(ue.eventName,t)}currentItem(){return(0,Y.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,Y.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(t){let r=this.states.filter(n=>!!n).filter(n=>n.index<this.currentIndex).reverse();return(0,Y.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,Y.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=Bt.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 Xs=y(se());var Js=Xs.css`
|
|
2
|
-
`;var ei=y(se()),L=y(z()),he=y(x());var de=y(x());function Zs(e,t){let{authenticationRequired:r,session:n}=m.getState();return r&&!n?.sessionAuthenticated?Promise.resolve(t):e()}var jt=class extends
|
|
1
|
+
"use strict";(()=>{var Zi=Object.create;var nn=Object.defineProperty;var ea=Object.getOwnPropertyDescriptor;var ta=Object.getOwnPropertyNames;var ra=Object.getPrototypeOf,na=Object.prototype.hasOwnProperty;var nt=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}};var sa=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of ta(t))!na.call(e,s)&&s!==r&&nn(e,s,{get:()=>t[s],enumerable:!(n=ea(t,s))||n.enumerable});return e};var y=(e,t,r)=>(r=e!=null?Zi(ra(e)):{},sa(t||!e||!e.__esModule?nn(r,"default",{value:e,enumerable:!0}):r,e));var x=nt((Co,sn)=>{sn.exports=ftGlobals.wcUtils});var se=nt((To,an)=>{an.exports=ftGlobals.lit});var z=nt((wo,on)=>{on.exports=ftGlobals.litDecorators});var Bi=nt((up,Hi)=>{Hi.exports=ftGlobals.litUnsafeHTML});var Yi=y(x());var rt=y(se()),Ki=y(z()),Wi=y(x());var Yt=y(x());var Le=y(x()),$r=y(z());var er;(function(e){e.CLUSTERED_SEARCH="CLUSTERED_SEARCH"})(er||(er={}));var re=y(x());var ia=y(x());var cn;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(cn||(cn={}));var ln;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(ln||(ln={}));var un;(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"})(un||(un={}));var dn;(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"})(dn||(dn={}));var pn;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(pn||(pn={}));var hn;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})(hn||(hn={}));var fn;(function(e){e.OFFICIAL="OFFICIAL",e.AI="AI"})(fn||(fn={}));var yn;(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"})(yn||(yn={}));var mn;(function(e){e.STANDARD="STANDARD",e.STRUCTURAL="STRUCTURAL"})(mn||(mn={}));var gn;(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"})(gn||(gn={}));var Sn;(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"})(Sn||(Sn={}));var vn;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(vn||(vn={}));var En;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(En||(En={}));var An;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(An||(An={}));var bn;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(bn||(bn={}));var xn;(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"})(xn||(xn={}));var tr;(function(e){e.OPTIONAL="OPTIONAL",e.MANDATORY="MANDATORY"})(tr||(tr={}));var _n;(function(e){e.ASC="ASC",e.DESC="DESC"})(_n||(_n={}));var Cn;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(Cn||(Cn={}));var rr;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(rr||(rr={}));var Tn;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(Tn||(Tn={}));var st;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(st||(st={}));var wn;(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"})(wn||(wn={}));var On;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(On||(On={}));var Rn;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.HTML_PACKAGE="HTML_PACKAGE",e.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Rn||(Rn={}));var nr;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(nr||(nr={}));var In;(function(e){e.PLAIN_TEXT="PLAIN_TEXT",e.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",e.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(In||(In={}));var T;(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"})(T||(T={}));var H;(function(e){e.SEARCHES="SEARCHES",e.BOOKMARKS="BOOKMARKS",e.BOOKS="BOOKS",e.COLLECTIONS="COLLECTIONS"})(H||(H={}));var kn;(function(e){e.UNAUTHENTICATED="UNAUTHENTICATED",e.USER_INCOMPLETE="USER_INCOMPLETE",e.MFA_REQUIRED="MFA_REQUIRED",e.AUTHENTICATED="AUTHENTICATED"})(kn||(kn={}));var Dn;(function(e){e.UNREACHABLE="UNREACHABLE",e.UNAUTHORIZED="UNAUTHORIZED",e.FORBIDDEN="FORBIDDEN",e.INCOMPATIBLE="INCOMPATIBLE",e.FAILED="FAILED",e.OK="OK"})(Dn||(Dn={}));var Mn;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(Mn||(Mn={}));var Nn;(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"})(Nn||(Nn={}));var Ln;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SLOW="SLOW",e.OTHER="OTHER"})(Ln||(Ln={}));var Pn;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(Pn||(Pn={}));var Fn;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(Fn||(Fn={}));var Un;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(Un||(Un={}));var $n;(function(e){e.IN_PROGRESS="IN_PROGRESS",e.ERROR="ERROR",e.DONE="DONE"})($n||($n={}));var Hn;(function(e){e.HTML="HTML",e.MARKDOWN="MARKDOWN"})(Hn||(Hn={}));var Bn;(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"})(Bn||(Bn={}));var jn;(function(e){e.MAP="MAP",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(jn||(jn={}));var aa={[T.PERSONAL_BOOK_SHARE_USER]:[T.PERSONAL_BOOK_USER],[T.HTML_EXPORT_USER]:[T.PERSONAL_BOOK_USER],[T.PDF_EXPORT_USER]:[T.PERSONAL_BOOK_USER],[T.KHUB_ADMIN]:[T.CONTENT_PUBLISHER],[T.ADMIN]:[T.KHUB_ADMIN,T.USERS_ADMIN,T.PORTAL_ADMIN,T.BEHAVIOR_DATA_USER],[T.GENERATIVE_AI_EXPORT_USER]:[T.GENERATIVE_AI_USER]};function Vn(e,t){return e===t||(aa[e]??[]).some(r=>Vn(r,t))}function sr(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=>Vn(n,t))}var Tr=y(z());var qn=y(z(),1);var ir=e=>t=>{window.customElements.get(e)||window.customElements.define(e,t)};function zn(e,t){return(0,qn.property)({type:Object,converter:{fromAttribute:r=>{if(r==null)return $e(e);try{return JSON.parse(r)}catch{return $e(e)}},toAttribute:r=>JSON.stringify(r)},hasChanged:He,...t??{}})}function oa(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(!Oe(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(!Oe(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=a=>Object.keys(a).filter(o=>a[o]!=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 a=i[n];if(!Oe(e[a],t[a]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function Oe(e,t){try{return oa(e,t)}catch{return!1}}function He(e,t){return!Oe(e,t)}function $e(e){return typeof window.structuredClone=="function"?structuredClone(e):e!=null?JSON.parse(JSON.stringify(e)):e}function it(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 Kn=y(z(),1);var ar=e=>{let t=e??{};return(r,n)=>{var s;let i={hasChanged:He,attribute:!1,...t};(0,Kn.property)(i)(r,n);let a=r.constructor;a.reduxProperties=new Map(a.reduxProperties),a.reduxProperties.set(n,{selector:(s=t.selector)!==null&&s!==void 0?s:(o=>o[n]),store:t.store})}};var at=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 ie=y(z(),1);var ot=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 a of n)try{await a()}catch(o){s(o);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 Gn=y(se(),1);var ct=globalThis,ca=ct.ShadowRoot&&(ct.ShadyCSS===void 0||ct.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;var Wn=(e,t)=>{if(ca)e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of t){let n=document.createElement("style"),s=ct.litNonce;s!==void 0&&n.setAttribute("nonce",s),n.textContent=r.cssText,e.appendChild(n)}};var lt=class extends Gn.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 Wn(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){ir(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 Qn(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 Ie=function(e,t,r,n){var s=arguments.length,i=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(a=e[o])&&(i=(s<3?a(i):s>3?a(t,r,i):a(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},Zn,Yn=Symbol("constructorPrototype"),Xn=Symbol("constructorName"),es=Symbol("exportpartsDebouncer"),Jn=Symbol("dynamicDependenciesLoaded"),Re=class e extends CustomEvent{constructor(){super(e.eventName,{bubbles:!0})}};Re.eventName="exportparts-updated";var K=class extends lt{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Zn]=new ot(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[es].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[Xn]=this.constructor.name,this[Yn]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Xn]&&Object.setPrototypeOf(this,this[Yn])}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[Jn]||(r[Jn]=!0,this.importDynamicDependencies()),(t=this.shadowRoot)===null||t===void 0||t.addEventListener(Re.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.shadowRoot)===null||t===void 0||t.removeEventListener(Re.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 Re)})}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=Qn(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,a,o;let c=f=>f!=null&&f.trim().length>0,l=t.filter(c).map(f=>f.trim());if(l.length===0){this.exportparts=void 0;return}let u=new Set;for(let f of(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let S=(i=(s=f.getAttribute("part"))===null||s===void 0?void 0:s.split(" "))!==null&&i!==void 0?i:[],E=(o=(a=f.getAttribute("exportparts"))===null||a===void 0?void 0:a.split(",").map(v=>v.split(":")[1]))!==null&&o!==void 0?o:[],I=[...S,...E].filter(c).map(v=>v.trim());for(let v of I)u.add(v)}if(u.size===0){this.exportparts=void 0;return}let p=[...u.values()].flatMap(f=>l.map(S=>`${f}:${S}--${f}`));this.exportparts=[...this.part,...p].join(", ")}};Zn=es;Ie([(0,ie.property)()],K.prototype,"exportpartsPrefix",void 0);Ie([zn([])],K.prototype,"exportpartsPrefixes",void 0);Ie([(0,ie.property)({reflect:!0})],K.prototype,"exportparts",void 0);Ie([(0,ie.property)()],K.prototype,"customStylesheet",void 0);Ie([(0,ie.property)()],K.prototype,"elementToFocus",void 0);Ie([(0,ie.state)()],K.prototype,"useAdoptedStyleSheets",void 0);function ut(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var Be=Symbol("internalReduxEventsUnsubscribers"),Z=Symbol("internalStoresUnsubscribers"),ae=Symbol("internalStores"),la=it(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(a){super.willUpdate(a),[...this.reduxConstructor.reduxReactiveProperties].some(o=>a.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[ae].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[ae].values()][0]}getStore(a){return a==null?this.getUnnamedStore():this[ae].get(a)}addStore(a,o){var c;o=(c=o??a.name)!==null&&c!==void 0?c:"default-store",this.unsubscribeFromStore(o),this[ae].set(o,a),this.subscribeToStore(o,a),this.updateFromStores()}removeStore(a){let o=typeof a=="string"?a:a.name;this.unsubscribeFromStore(o),this[ae].delete(o)}setupStores(){this.unsubscribeFromStores(),this[ae].forEach((a,o)=>this.subscribeToStore(o,a)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((a,o)=>{let c=this.constructor.getPropertyOptions(o);if(!c?.attribute||!this.hasAttribute(typeof c?.attribute=="string"?c.attribute:o)){let l=this.getStore(a.store);l&&(a.store?this[Z].has(a.store):this[Z].size>0)&&(this[o]=a.selector(l.getState(),this))}})}subscribeToStore(a,o){var c;this[Z].set(a,o.subscribe(()=>this.updateFromStores())),this[Be].set(a,[]),ut(o)&&o.eventBus&&((c=this.reduxConstructor.reduxEventListeners)===null||c===void 0||c.forEach((l,u)=>{if(typeof this[u]=="function"&&(!l.store||o.name===l.store)){let p=f=>this[u](f);o.addEventListener(l.eventName,p),this[Be].get(a).push(()=>o.removeEventListener(l.eventName,p))}})),this.onStoreAvailable(a)}unsubscribeFromStores(){this[Z].forEach((a,o)=>this.unsubscribeFromStore(o))}unsubscribeFromStore(a){var o;this[Z].has(a)&&this[Z].get(a)(),this[Z].delete(a),(o=this[Be].get(a))===null||o===void 0||o.forEach(c=>c()),this[Be].delete(a)}onStoreAvailable(a){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return t=Z,r=ae,n=Be,s.reduxProperties=new Map,s.reduxReactiveProperties=new Set,s.reduxEventListeners=new Map,s}),ts=class extends la(K){};function D(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 ua=typeof Symbol=="function"&&Symbol.observable||"@@observable",rs=ua,or=()=>Math.random().toString(36).substring(7).split("").join("."),da={INIT:`@@redux/INIT${or()}`,REPLACE:`@@redux/REPLACE${or()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${or()}`},dt=da;function pt(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 cr(e,t,r){if(typeof e!="function")throw new Error(D(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(D(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(D(1));return r(cr)(e,t)}let n=e,s=t,i=new Map,a=i,o=0,c=!1;function l(){a===i&&(a=new Map,i.forEach((v,k)=>{a.set(k,v)}))}function u(){if(c)throw new Error(D(3));return s}function p(v){if(typeof v!="function")throw new Error(D(4));if(c)throw new Error(D(5));let k=!0;l();let F=o++;return a.set(F,v),function(){if(k){if(c)throw new Error(D(6));k=!1,l(),a.delete(F),i=null}}}function f(v){if(!pt(v))throw new Error(D(7));if(typeof v.type>"u")throw new Error(D(8));if(typeof v.type!="string")throw new Error(D(17));if(c)throw new Error(D(9));try{c=!0,s=n(s,v)}finally{c=!1}return(i=a).forEach(F=>{F()}),v}function S(v){if(typeof v!="function")throw new Error(D(10));n=v,f({type:dt.REPLACE})}function E(){let v=p;return{subscribe(k){if(typeof k!="object"||k===null)throw new Error(D(11));function F(){let A=k;A.next&&A.next(u())}return F(),{unsubscribe:v(F)}},[rs](){return this}}}return f({type:dt.INIT}),{dispatch:f,subscribe:p,getState:u,replaceReducer:S,[rs]:E}}function pa(e){Object.keys(e).forEach(t=>{let r=e[t];if(typeof r(void 0,{type:dt.INIT})>"u")throw new Error(D(12));if(typeof r(void 0,{type:dt.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(D(13))})}function ns(e){let t=Object.keys(e),r={};for(let a=0;a<t.length;a++){let o=t[a];typeof e[o]=="function"&&(r[o]=e[o])}let n=Object.keys(r),s,i;try{pa(r)}catch(a){i=a}return function(o={},c){if(i)throw i;let l=!1,u={};for(let p=0;p<n.length;p++){let f=n[p],S=r[f],E=o[f],I=S(E,c);if(typeof I>"u"){let v=c&&c.type;throw new Error(D(14))}u[f]=I,l=l||I!==E}return l=l||n.length!==Object.keys(o).length,l?u:o}}function je(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function ss(...e){return t=>(r,n)=>{let s=t(r,n),i=()=>{throw new Error(D(15))},a={getState:s.getState,dispatch:(c,...l)=>i(c,...l)},o=e.map(c=>c(a));return i=je(...o)(s.dispatch),{...s,dispatch:i}}}function is(e){return pt(e)&&"type"in e&&typeof e.type=="string"}var fs=Symbol.for("immer-nothing"),as=Symbol.for("immer-draftable"),M=Symbol.for("immer-state");function V(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var U=Object,De=U.getPrototypeOf,mt="constructor",bt="prototype",pr="configurable",gt="enumerable",ft="writable",Ve="value",W=e=>!!e&&!!e[M];function $(e){return e?ys(e)||_t(e)||!!e[as]||!!e[mt]?.[as]||Ct(e)||Tt(e):!1}var ha=U[bt][mt].toString(),os=new WeakMap;function ys(e){if(!e||!Er(e))return!1;let t=De(e);if(t===null||t===U[bt])return!0;let r=U.hasOwnProperty.call(t,mt)&&t[mt];if(r===Object)return!0;if(!ke(r))return!1;let n=os.get(r);return n===void 0&&(n=Function.toString.call(r),os.set(r,n)),n===ha}function xt(e,t,r=!0){Ke(e)===0?(r?Reflect.ownKeys(e):U.keys(e)).forEach(s=>{t(s,e[s],e)}):e.forEach((n,s)=>t(s,n,e))}function Ke(e){let t=e[M];return t?t.type_:_t(e)?1:Ct(e)?2:Tt(e)?3:0}var lr=(e,t,r=Ke(e))=>r===2?e.has(t):U[bt].hasOwnProperty.call(e,t),hr=(e,t,r=Ke(e))=>r===2?e.get(t):e[t],St=(e,t,r,n=Ke(e))=>{n===2?e.set(t,r):n===3?e.add(r):e[t]=r};function fa(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var _t=Array.isArray,Ct=e=>e instanceof Map,Tt=e=>e instanceof Set,Er=e=>typeof e=="object",ke=e=>typeof e=="function",ur=e=>typeof e=="boolean";function ya(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var G=e=>e.copy_||e.base_;var Ar=e=>e.modified_?e.copy_:e.base_;function fr(e,t){if(Ct(e))return new Map(e);if(Tt(e))return new Set(e);if(_t(e))return Array[bt].slice.call(e);let r=ys(e);if(t===!0||t==="class_only"&&!r){let n=U.getOwnPropertyDescriptors(e);delete n[M];let s=Reflect.ownKeys(n);for(let i=0;i<s.length;i++){let a=s[i],o=n[a];o[ft]===!1&&(o[ft]=!0,o[pr]=!0),(o.get||o.set)&&(n[a]={[pr]:!0,[ft]:!0,[gt]:o[gt],[Ve]:e[a]})}return U.create(De(e),n)}else{let n=De(e);if(n!==null&&r)return{...e};let s=U.create(n);return U.assign(s,e)}}function br(e,t=!1){return wt(e)||W(e)||!$(e)||(Ke(e)>1&&U.defineProperties(e,{set:ht,add:ht,clear:ht,delete:ht}),U.freeze(e),t&&xt(e,(r,n)=>{br(n,!0)},!1)),e}function ma(){V(2)}var ht={[Ve]:ma};function wt(e){return e===null||!Er(e)?!0:U.isFrozen(e)}var vt="MapSet",yr="Patches",cs="ArrayMethods",ms={};function oe(e){let t=ms[e];return t||V(0,e),t}var ls=e=>!!ms[e];var qe,gs=()=>qe,ga=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:ls(vt)?oe(vt):void 0,arrayMethodsPlugin_:ls(cs)?oe(cs):void 0});function us(e,t){t&&(e.patchPlugin_=oe(yr),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function mr(e){gr(e),e.drafts_.forEach(Sa),e.drafts_=null}function gr(e){e===qe&&(qe=e.parent_)}var ds=e=>qe=ga(qe,e);function Sa(e){let t=e[M];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function ps(e,t){t.unfinalizedDrafts_=t.drafts_.length;let r=t.drafts_[0];if(e!==void 0&&e!==r){r[M].modified_&&(mr(t),V(4)),$(e)&&(e=hs(t,e));let{patchPlugin_:s}=t;s&&s.generateReplacementPatches_(r[M].base_,e,t)}else e=hs(t,r);return va(t,e,!0),mr(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==fs?e:void 0}function hs(e,t){if(wt(t))return t;let r=t[M];if(!r)return Et(t,e.handledSet_,e);if(!Ot(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);Es(r,e)}return r.copy_}function va(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&br(t,r)}function Ss(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var Ot=(e,t)=>e.scope_===t,Ea=[];function vs(e,t,r,n){let s=G(e),i=e.type_;if(n!==void 0&&hr(s,n,i)===t){St(s,n,r,i);return}if(!e.draftLocations_){let o=e.draftLocations_=new Map;xt(s,(c,l)=>{if(W(l)){let u=o.get(l)||[];u.push(c),o.set(l,u)}})}let a=e.draftLocations_.get(t)??Ea;for(let o of a)St(s,o,r,i)}function Aa(e,t,r){e.callbacks_.push(function(s){let i=t;if(!i||!Ot(i,s))return;s.mapSetPlugin_?.fixSetContents(i);let a=Ar(i);vs(e,i.draft_??i,a,r),Es(i,s)})}function Es(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)}Ss(e)}}function ba(e,t,r){let{scope_:n}=e;if(W(r)){let s=r[M];Ot(s,n)&&s.callbacks_.push(function(){yt(e);let a=Ar(s);vs(e,r,a,t)})}else $(r)&&e.callbacks_.push(function(){let i=G(e);e.type_===3?i.has(r)&&Et(r,n.handledSet_,n):hr(i,t,e.type_)===r&&n.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&Et(hr(e.copy_,t,e.type_),n.handledSet_,n)})}function Et(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||W(e)||t.has(e)||!$(e)||wt(e)||(t.add(e),xt(e,(n,s)=>{if(W(s)){let i=s[M];if(Ot(i,r)){let a=Ar(i);St(e,n,a,e.type_),Ss(i)}}else $(s)&&Et(s,t,r)})),e}function xa(e,t){let r=_t(e),n={type_:r?1:0,scope_:t?t.scope_:gs(),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=At;r&&(s=[n],i=ze);let{revoke:a,proxy:o}=Proxy.revocable(s,i);return n.draft_=o,n.revoke_=a,[o,n]}var At={get(e,t){if(t===M)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=G(e);if(!lr(s,t,e.type_))return Ca(e,s,t);let i=s[t];if(e.finalized_||!$(i)||n&&e.operationMethod&&r?.isMutatingArrayMethod(e.operationMethod)&&ya(t))return i;if(i===dr(e.base_,t)||_a(e,t,i)){yt(e);let a=e.type_===1?+t:t,o=vr(e.scope_,i,e,a);return e.copy_[a]=o}return i},has(e,t){return t in G(e)},ownKeys(e){return Reflect.ownKeys(G(e))},set(e,t,r){let n=As(G(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){let s=dr(G(e),t),i=s?.[M];if(i&&i.base_===r)return e.copy_[t]=r,e.assigned_.set(t,!1),!0;if(fa(r,s)&&(r!==void 0||lr(e.base_,t,e.type_)))return!0;yt(e),Sr(e)}return e.copy_[t]===r&&(r!==void 0||lr(e.copy_,t,e.type_))||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_.set(t,!0),ba(e,t,r)),!0},deleteProperty(e,t){return yt(e),dr(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Sr(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let r=G(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{[ft]:!0,[pr]:e.type_!==1||t!=="length",[gt]:n[gt],[Ve]:r[t]}},defineProperty(){V(11)},getPrototypeOf(e){return De(e.base_)},setPrototypeOf(){V(12)}},ze={};for(let e in At){let t=At[e];ze[e]=function(){let r=arguments;return r[0]=r[0][0],t.apply(this,r)}}ze.deleteProperty=function(e,t){return ze.set.call(this,e,t,void 0)};ze.set=function(e,t,r){return At.set.call(this,e[0],t,r,e[0])};function dr(e,t){let r=e[M];return(r?G(r):e)[t]}function _a(e,t,r){return e.type_!==1||!e.allIndicesReassigned_||e.assigned_?.get(t)||!$(r)||r[M]?!1:e.baseRefs_.has(r)}function Ca(e,t,r){let n=As(t,r);return n?Ve in n?n[Ve]:n.get?.call(e.draft_):void 0}function As(e,t){if(!(t in e))return;let r=De(e);for(;r;){let n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=De(r)}}function Sr(e){e.modified_||(e.modified_=!0,e.parent_&&Sr(e.parent_))}function yt(e){e.copy_||(e.assigned_=new Map,e.copy_=fr(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Ta=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,r,n)=>{if(ke(t)&&!ke(r)){let i=r;r=t;let a=this;return function(c=i,...l){return a.produce(c,u=>r.call(this,u,...l))}}ke(r)||V(6),n!==void 0&&!ke(n)&&V(7);let s;if($(t)){let i=ds(this),a=vr(i,t,void 0),o=!0;try{s=r(a),o=!1}finally{o?mr(i):gr(i)}return us(i,n),ps(s,i)}else if(!t||!Er(t)){if(s=r(t),s===void 0&&(s=t),s===fs&&(s=void 0),this.autoFreeze_&&br(s,!0),n){let i=[],a=[];oe(yr).generateReplacementPatches_(t,s,{patches_:i,inversePatches_:a}),n(i,a)}return s}else V(1,t)},this.produceWithPatches=(t,r)=>{if(ke(t))return(a,...o)=>this.produceWithPatches(a,c=>t(c,...o));let n,s;return[this.produce(t,r,(a,o)=>{n=a,s=o}),n,s]},ur(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),ur(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),ur(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){$(e)||V(8),W(e)&&(e=bs(e));let t=ds(this),r=vr(t,e,void 0);return r[M].isManual_=!0,gr(t),r}finishDraft(e,t){let r=e&&e[M];(!r||!r.isManual_)&&V(9);let{scope_:n}=r;return us(n,t),ps(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=oe(yr).applyPatches_;return W(e)?n(e,t):this.produce(e,s=>n(s,t))}};function vr(e,t,r,n){let[s,i]=Ct(t)?oe(vt).proxyMap_(t,r):Tt(t)?oe(vt).proxySet_(t,r):xa(t,r);return(r?.scope_??gs()).drafts_.push(s),i.callbacks_=r?.callbacks_??[],i.key_=n,r&&n!==void 0?Aa(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 bs(e){return W(e)||V(10,e),xs(e)}function xs(e){if(!$(e)||wt(e))return e;let t=e[M],r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=fr(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=fr(e,!0);return xt(r,(s,i)=>{St(r,s,xs(i))},n),t&&(t.finalized_=!1),r}var wa=globalThis.Iterator,gc=typeof wa?.from=="function";var Oa=new Ta,xr=Oa.produce;function _s(e){return({dispatch:r,getState:n})=>s=>i=>typeof i=="function"?i(r,n,e):s(i)}var Cs=_s(),Ts=_s;var Ra=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?je:je.apply(null,arguments)},_c=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}},Ia=e=>e&&typeof e.match=="function";function ee(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=>is(n)&&n.type===e,r}var ks=class We extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,We.prototype)}static get[Symbol.species](){return We}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new We(...t[0].concat(this)):new We(...t.concat(this))}};function ws(e){return $(e)?xr(e,()=>{}):e}function Rt(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function ka(e){return typeof e=="boolean"}var Da=()=>function(t){let{thunk:r=!0,immutableCheck:n=!0,serializableCheck:s=!0,actionCreatorCheck:i=!0}=t??{},a=new ks;return r&&(ka(r)?a.push(Cs):a.push(Ts(r.extraArgument))),a},Ma="RTK_autoBatch";var Os=e=>t=>{setTimeout(t,e)},Na=(e,t)=>r=>{let n=!1,s=()=>{n||(n=!0,cancelAnimationFrame(i),clearTimeout(a),r())},i=e(s),a=setTimeout(s,t)},La=(e={type:"raf"})=>t=>(...r)=>{let n=t(...r),s=!0,i=!1,a=!1,o=new Set,c=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?Na(window.requestAnimationFrame,100):Os(10):e.type==="callback"?e.queueNotification:Os(e.timeout),l=()=>{a=!1,i&&(i=!1,o.forEach(u=>u()))};return Object.assign({},n,{subscribe(u){let p=()=>s&&u(),f=n.subscribe(p);return o.add(u),()=>{f(),o.delete(u)}},dispatch(u){try{return s=!u?.meta?.[Ma],i=!s,i&&(a||(a=!0,c(l))),n.dispatch(u)}finally{s=!0}}})},Pa=e=>function(r){let{autoBatch:n=!0}=r??{},s=new ks(e);return n&&s.push(La(typeof n=="object"?n:void 0)),s};function Ds(e){let t=Da(),{reducer:r=void 0,middleware:n,devTools:s=!0,duplicateMiddlewareCheck:i=!0,preloadedState:a=void 0,enhancers:o=void 0}=e||{},c;if(typeof r=="function")c=r;else if(pt(r))c=ns(r);else throw new Error(Q(1));let l;typeof n=="function"?l=n(t):l=t();let u=je;s&&(u=Ra({trace:!1,...typeof s=="object"&&s}));let p=ss(...l),f=Pa(p),S=typeof o=="function"?o(f):f(),E=u(...S);return cr(c,a,E)}function Ms(e){let t={},r=[],n,s={addCase(i,a){let o=typeof i=="string"?i:i.type;if(!o)throw new Error(Q(28));if(o in t)throw new Error(Q(29));return t[o]=a,s},addAsyncThunk(i,a){return a.pending&&(t[i.pending.type]=a.pending),a.rejected&&(t[i.rejected.type]=a.rejected),a.fulfilled&&(t[i.fulfilled.type]=a.fulfilled),a.settled&&r.push({matcher:i.settled,reducer:a.settled}),s},addMatcher(i,a){return r.push({matcher:i,reducer:a}),s},addDefaultCase(i){return n=i,s}};return e(s),[t,r,n]}function Fa(e){return typeof e=="function"}function Ua(e,t){let[r,n,s]=Ms(t),i;if(Fa(e))i=()=>ws(e());else{let o=ws(e);i=()=>o}function a(o=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,p)=>{if(p)if(W(u)){let S=p(u,c);return S===void 0?u:S}else{if($(u))return xr(u,f=>p(f,c));{let f=p(u,c);if(f===void 0){if(u===null)return u;throw Error("A case reducer on a non-draftable value must not return undefined")}return f}}return u},o)}return a.getInitialState=i,a}var $a=(e,t)=>Ia(e)?e.match(t):e(t);function Ha(...e){return t=>e.some(r=>$a(r,t))}var Ba="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",ja=(e=21)=>{let t="",r=e;for(;r--;)t+=Ba[Math.random()*64|0];return t},Va=["name","message","stack","code"],_r=class{constructor(e,t){this.payload=e,this.meta=t}payload;meta;_type},Rs=class{constructor(e,t){this.payload=e,this.meta=t}payload;meta;_type},qa=e=>{if(typeof e=="object"&&e!==null){let t={};for(let r of Va)typeof e[r]=="string"&&(t[r]=e[r]);return t}return{message:String(e)}},Is="External signal was aborted",za=(()=>{function e(t,r,n){let s=ee(t+"/fulfilled",(c,l,u,p)=>({payload:c,meta:{...p||{},arg:u,requestId:l,requestStatus:"fulfilled"}})),i=ee(t+"/pending",(c,l,u)=>({payload:void 0,meta:{...u||{},arg:l,requestId:c,requestStatus:"pending"}})),a=ee(t+"/rejected",(c,l,u,p,f)=>({payload:p,error:(n&&n.serializeError||qa)(c||"Rejected"),meta:{...f||{},arg:u,requestId:l,rejectedWithValue:!!p,requestStatus:"rejected",aborted:c?.name==="AbortError",condition:c?.name==="ConditionError"}}));function o(c,{signal:l}={}){return(u,p,f)=>{let S=n?.idGenerator?n.idGenerator(c):ja(),E=new AbortController,I,v;function k(g){v=g,E.abort()}l&&(l.aborted?k(Is):l.addEventListener("abort",()=>k(Is),{once:!0}));let F=(async function(){let g;try{let b=n?.condition?.(c,{getState:p,extra:f});if(Wa(b)&&(b=await b),b===!1||E.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};let q=new Promise((C,w)=>{I=()=>{w({name:"AbortError",message:v||"Aborted"})},E.signal.addEventListener("abort",I,{once:!0})});u(i(S,c,n?.getPendingMeta?.({requestId:S,arg:c},{getState:p,extra:f}))),g=await Promise.race([q,Promise.resolve(r(c,{dispatch:u,getState:p,extra:f,requestId:S,signal:E.signal,abort:k,rejectWithValue:((C,w)=>new _r(C,w)),fulfillWithValue:((C,w)=>new Rs(C,w))})).then(C=>{if(C instanceof _r)throw C;return C instanceof Rs?s(C.payload,S,c,C.meta):s(C,S,c)})])}catch(b){g=b instanceof _r?a(null,S,c,b.payload,b.meta):a(b,S,c)}finally{I&&E.signal.removeEventListener("abort",I)}return n&&!n.dispatchConditionRejection&&a.match(g)&&g.meta.condition||u(g),g})();return Object.assign(F,{abort:k,requestId:S,arg:c,unwrap(){return F.then(Ka)}})}}return Object.assign(o,{pending:i,rejected:a,fulfilled:s,settled:Ha(a,s),typePrefix:t})}return e.withTypes=()=>e,e})();function Ka(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Wa(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Ns=Symbol.for("rtk-slice-createasyncthunk"),Tc={[Ns]:za};function Ga(e,t){return`${e}/${t}`}function Qa({creators:e}={}){let t=e?.asyncThunk?.[Ns];return function(n){let{name:s,reducerPath:i=s}=n;if(!s)throw new Error(Q(11));typeof process<"u";let a=(typeof n.reducers=="function"?n.reducers(Xa()):n.reducers)||{},o=Object.keys(a),c={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},l={addCase(g,A){let b=typeof g=="string"?g:g.type;if(!b)throw new Error(Q(12));if(b in c.sliceCaseReducersByType)throw new Error(Q(13));return c.sliceCaseReducersByType[b]=A,l},addMatcher(g,A){return c.sliceMatchers.push({matcher:g,reducer:A}),l},exposeAction(g,A){return c.actionCreators[g]=A,l},exposeCaseReducer(g,A){return c.sliceCaseReducersByName[g]=A,l}};o.forEach(g=>{let A=a[g],b={reducerName:g,type:Ga(s,g),createNotation:typeof n.reducers=="function"};Za(A)?to(b,A,l,t):Ja(b,A,l)});function u(){let[g={},A=[],b=void 0]=typeof n.extraReducers=="function"?Ms(n.extraReducers):[n.extraReducers],q={...g,...c.sliceCaseReducersByType};return Ua(n.initialState,C=>{for(let w in q)C.addCase(w,q[w]);for(let w of c.sliceMatchers)C.addMatcher(w.matcher,w.reducer);for(let w of A)C.addMatcher(w.matcher,w.reducer);b&&C.addDefaultCase(b)})}let p=g=>g,f=new Map,S=new WeakMap,E;function I(g,A){return E||(E=u()),E(g,A)}function v(){return E||(E=u()),E.getInitialState()}function k(g,A=!1){function b(C){let w=C[g];return typeof w>"u"&&A&&(w=Rt(S,b,v)),w}function q(C=p){let w=Rt(f,A,()=>new WeakMap);return Rt(w,C,()=>{let rn={};for(let[Xi,Ji]of Object.entries(n.selectors??{}))rn[Xi]=Ya(Ji,C,()=>Rt(S,C,v),A);return rn})}return{reducerPath:g,getSelectors:q,get selectors(){return q(b)},selectSlice:b}}let F={name:s,reducer:I,actions:c.actionCreators,caseReducers:c.sliceCaseReducersByName,getInitialState:v,...k(i),injectInto(g,{reducerPath:A,...b}={}){let q=A??i;return g.inject({reducerPath:q,reducer:I},b),{...F,...k(q,!0)}}};return F}}function Ya(e,t,r,n){function s(i,...a){let o=t(i);return typeof o>"u"&&n&&(o=r()),e(o,...a)}return s.unwrapped=e,s}var Ls=Qa();function Xa(){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 Ja({type:e,reducerName:t,createNotation:r},n,s){let i,a;if("reducer"in n){if(r&&!eo(n))throw new Error(Q(17));i=n.reducer,a=n.prepare}else i=n;s.addCase(e,i).exposeCaseReducer(t,i).exposeAction(t,a?ee(e,a):ee(e))}function Za(e){return e._reducerDefinitionType==="asyncThunk"}function eo(e){return e._reducerDefinitionType==="reducerWithPrepare"}function to({type:e,reducerName:t},r,n,s){if(!s)throw new Error(Q(18));let{payloadCreator:i,fulfilled:a,pending:o,rejected:c,settled:l,options:u}=r,p=s(e,i,u);n.exposeAction(t,p),a&&n.addCase(p.fulfilled,a),o&&n.addCase(p.pending,o),c&&n.addCase(p.rejected,c),l&&n.addMatcher(p.settled,l),n.exposeCaseReducer(t,{fulfilled:a||It,pending:o||It,rejected:c||It,settled:l||It})}function It(){}var Ps="listener",Fs="completed",Us="cancelled",wc=`task-${Us}`,Oc=`task-${Fs}`,Rc=`${Ps}-${Us}`,Ic=`${Ps}-${Fs}`;var{assign:$s}=Object;var Cr="listenerMiddleware";var ro=$s(ee(`${Cr}/add`),{withTypes:()=>ro}),kc=ee(`${Cr}/removeAll`),no=$s(ee(`${Cr}/remove`),{withTypes:()=>no});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 so=it(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)}}}),kt=class extends so(Object){};window.ftReduxStores||(window.ftReduxStores={});var Hs=class e extends kt{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(ut(i))return i;if(s==null)return;let a=Ls({...s,reducers:(r=s.reducers)!==null&&r!==void 0?r:{}}),o=Ds({reducer:(c,l)=>{if(l.type==="CLEAR_FT_REDUX_STORE"){let u=$e(a.getInitialState());for(let p of l.keeping)u[p]=(c??u)[p];return u}else if(typeof l.type=="string"&&l.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...c,...l.overwrites};return a.reducer(c,l)}});return window.ftReduxStores[s.name]=new e(a,o,s.eventBus)}constructor(t,r,n){super(),this.reduxSlice=t,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new at,this.injectInto=(i,a)=>this.reduxSlice.injectInto(i,a),this.selectSlice=i=>this.reduxSlice.selectSlice(i);let s=i=>i!=null?JSON.parse(JSON.stringify(i)):i;this.actions=new Proxy(this.reduxSlice.actions,{get:(i,a,o)=>{let c=a,l=i[c];return l?(...u)=>{let p=l(...u.map(s));return this.reduxStore.dispatch(p),p}:u=>{let p=c,f=this.getState()[p];Oe(f,u)||this.setState({[p]:s(u)})}}}),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 Dt=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 a=typeof t=="string"?new Date(t):t,o=new Intl.DateTimeFormat(r,{dateStyle:n?"medium":"short"}).format(a),c=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(a);return i?c:s?`${o} ${c}`:o}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 Mt=y(x()),io="ft-app-info",te=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};te.eventName="authentication-change";var Ge=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};Ge.eventName="ui-locale-changed";var ao={session:(e,t)=>{(0,Mt.deepEqual)(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>m.dispatchEvent(new te(t.payload)),0))}},m=Mt.FtReduxStore.get({name:io,reducers:ao,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 Bs=y(x()),Nt=function(e,t,r,n){var s=arguments.length,i=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(a=e[o])&&(i=(s<3?a(i):s>3?a(t,r,i):a(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},ol=(0,Bs.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(m)}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(o=>o.key===n))===null||s===void 0?void 0:s.date)!==null&&i!==void 0?i:!1)?o=>Dt.format(o,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Nt([(0,Tr.property)({type:Boolean})],t.prototype,"useLongDateFormat",void 0),Nt([(0,Tr.property)({type:Boolean})],t.prototype,"useDateTimeFormat",void 0),Nt([ar({store:m.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),Nt([ar({store:m.name})],t.prototype,"uiLocale",void 0),t});var $t=y(x());var wr=y(x());var ce=class e{static get(t){let{baseUrl:r,apiIntegrationIdentifier:n}=m.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=m.subscribe(()=>{n=e.get(t),n&&(s(),r(n))})}})}};var Me=class{constructor(t){this.overrideApi=t}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:ce.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):ce.await()}};var P=class extends Me{constructor(t=!0,r){var n;super(r),this.sortObjectFields=(i,a)=>typeof a!="object"||a==null||Array.isArray(a)?a:Object.fromEntries(Object.entries(a).sort(([o],[c])=>o.localeCompare(c)));let s=this.constructor;s.commonCache=(n=s.commonCache)!==null&&n!==void 0?n:new wr.CacheRegistry,this.cache=t?s.commonCache:new wr.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 Lt=class extends P{async listMySearches(){let{session:t}=m.getState();return sr(t,T.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),300*1e3):[]}};var Pt=class extends P{async listMyBookmarks(){let t=m.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),300*1e3):[]}};var Ft=class extends P{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=m.getState().session;return!!t?.sessionAuthenticated}};var Ut=class extends P{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=m.getState().session;return!!t?.sessionAuthenticated}};var oo="ft-user-assets",co={setAssetCount:(e,t)=>{let{userAssetType:r,count:n}=t.payload.assetCount;e.assetCounts.allAsset[r]=n},clearAssetCount:e=>{Object.values(H).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;Rr(e,r,[...Or(e,r),s]),js(e,r,1,n),Vs(e,s)},editAsset:(e,t)=>{let{assetType:r,asset:n}=t.payload;Rr(e,r,Or(e,r).map(s=>s.id===n.id?n:s)),Vs(e,n)},removeAsset:(e,t)=>{let{assetType:r,mapId:n,assetId:s}=t.payload;Rr(e,r,Or(e,r).filter(i=>i.id!==s)),js(e,r,-1,n)}},qs={[H.SEARCHES]:"savedSearches",[H.BOOKMARKS]:"bookmarks",[H.BOOKS]:void 0,[H.COLLECTIONS]:void 0},Or=(e,t)=>{var r;let n=qs[t];return n?(r=e[n])!==null&&r!==void 0?r:[]:[]},Rr=(e,t,r)=>{let n=qs[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===H.BOOKMARKS&&n)){let i=e.assetCounts.bookmarkByMap[n];e.assetCounts.bookmarkByMap[n]=Math.max(0,i+r)}},Vs=(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)},N=$t.FtReduxStore.get({name:oo,reducers:co,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(H).map(e=>[e,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Ir=class{constructor(t=new Ft,r=new Ut){this.assetCountsService=t,this.assetLabelsService=r,this.currentSession=m.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Pt,this.savedSearchesService=new Lt,m.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:r}=m.getState();(0,$t.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(),N.actions.clearAssetCount(),N.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),N.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),N.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();N.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let t=await this.assetLabelsService.getUserAssetLabels();N.actions.assetLabels(t)}async loadAssetCount(t){let r=await this.assetCountsService.getUserAssetCount(t);r&&N.getState().assetCounts.allAsset[t]!==r.count&&N.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(t){let r=await this.assetCountsService.getUserBookmarkCountByMap(t);r&&N.getState().assetCounts.bookmarkByMap[t]!==r.count&&N.actions.setBookmarkCountByMap({count:r.count,mapId:t})}async reloadAssetCount(t){this.assetCountsService.clearCache();let r=Object.keys(N.getState().assetCounts.bookmarkByMap).length!==0;t===H.BOOKMARKS&&r&&N.actions.clearBookmarkCountByMap(),N.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;N.actions.bookmarks(r)}}},lo=new Ir;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=lo);var kr=class{addCommand(t,r=!1){m.commands.add(t,r)}consumeCommand(t){return m.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new kr;var B=y(x());var zs,Ne=class extends CustomEvent{constructor(t){super("ft-i18n-context-loaded",{detail:t})}},uo=Symbol("clearAfterUnitTest"),Ht=class extends(0,B.withEventBus)(P){constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[zs]=()=>{this.defaultMessages={},this.cache=new B.CacheRegistry,this.listeners={}},this.currentUiLocale=m.getState().uiLocale,m.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=m.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,B.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(),a=this.resolveContext(i);return new B.ParametrizedLabelResolver((s=this.defaultMessages[i])!==null&&s!==void 0?s:{},a).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 B.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 Ne({loadedContexts:t})),this.dispatchEvent(new Ne({loadedContexts:t})),await Promise.all(t.map(r=>this.notify(r,!1)))}async notify(t,r=!0){r&&(document.body.dispatchEvent(new Ne({loadedContexts:[t]})),this.dispatchEvent(new Ne({loadedContexts:[t]}))),this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(n=>(0,B.delay)(0).then(()=>n()).catch(()=>null)))}};zs=uo;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Ht{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Ht{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var Ks=window.FluidTopicsI18nService,jl=window.FluidTopicsCustomI18nService;var Ws=y(x()),Dr=class{highlightHtml(t,r,n){(0,Ws.highlightHtml)(t,r,n)}};window.FluidTopicsHighlightHtmlService=new Dr;var Gs=y(x());var Mr=class{isDate(t){var r,n,s,i;return(i=(s=((n=(r=m.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(o=>o.key===t))===null||s===void 0?void 0:s.date)!==null&&i!==void 0?i:!1}format(t,r){var n,s,i,a;if(t==null)return"";try{return Gs.DateFormatter.format(t,(n=r?.locale)!==null&&n!==void 0?n:m.getState().uiLocale,(s=r?.longFormat)!==null&&s!==void 0?s:!1,(i=r?.withTime)!==null&&i!==void 0?i:!1,(a=r?.onlyTime)!==null&&a!==void 0?a:!1)}catch(o){throw console.error(`Date ${JSON.stringify(t)} is not valid`,o),o}}};window.FluidTopicsDateService=new Mr;var Qs=y(x());var Qe=class{static get(t,r){var n,s,i,a;let o=m.getState(),{lang:c,region:l}=(i=(s=(n=o.localesConfiguration)===null||n===void 0?void 0:n.defaultLocales)===null||s===void 0?void 0:s.defaultContentLocale)!==null&&i!==void 0?i:{lang:"en",region:"US"};return new Qs.SearchPlaceConverter(o.baseUrl,t??20,(a=o.localesConfiguration)===null||a===void 0?void 0:a.allLanguagesAllowed,r??`${c}-${l}`)}};var Nr=class{urlToSearchRequest(t){return Qe.get().parse(t)}searchRequestToUrl(t){return Qe.get().serialize(t)}};window.FluidTopicsUrlService=new Nr;var Y=y(x());var le=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{nextLocation:t}})}};le.eventName="before-location-change";var ue=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{currentItem:t}})}};ue.eventName="change";var Lr=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))}},Ys=new Lr;var Bt=class e extends Y.WithEventBus{static build(){return new e(window.history,Ys,()=>window.location,!1)}constructor(t,r,n,s){var i,a;super(),this.history=t,this.historyStorage=r,this.windowLocation=n,this.states=[],this.realPushState=t.pushState,this.realReplaceState=t.replaceState,this.initialIndex=(a=(i=t.state)===null||i===void 0?void 0:i.index)!==null&&a!==void 0?a: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,Y.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,this.windowLocation().href]),setTimeout(()=>this.dispatchEvent(new ue(this.currentItem())),0)}installProxies(){let t=r=>(n,s,[i,a,o])=>{let c=new le(new URL(typeof o=="string"?o:(o??this.windowLocation()).href,window.location.origin));this.dispatchEvent(c);let l=r(),u={...l===this.currentIndex?this.currentState:void 0,...i,index:l,href:c.detail.nextLocation.href};n.apply(s,[u,a,u.href]),this.setCurrentState(u,!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(le.eventName,t)}removeBeforeLocationChangeListener(t){this.removeEventListener(le.eventName,t)}addHistoryChangeListener(t){this.addEventListener(ue.eventName,t)}removeHistoryChangeListener(t){this.removeEventListener(ue.eventName,t)}currentItem(){return(0,Y.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,Y.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(t){let r=this.states.filter(n=>!!n).filter(n=>n.index<this.currentIndex).reverse();return(0,Y.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,Y.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=Bt.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 Xs=y(se());var Js=Xs.css`
|
|
2
|
+
`;var ei=y(se()),L=y(z()),he=y(x());var de=y(x());function Zs(e,t){let{authenticationRequired:r,session:n}=m.getState();return r&&!n?.sessionAuthenticated?Promise.resolve(t):e()}var jt=class extends Me{async updateUiLocale(t){return(await this.awaitApi).updateUiLocale(t)}};var Pr=class e extends de.FtStateManager{static build(t){return new e(m,t)}constructor(t,r){super(),this.store=t,this.cache=new de.CacheRegistry,this.withManualResources=!0,this.userLocaleService=new jt,this.cleanSessionDebouncer=new de.Debouncer,this.reloadConfiguration=()=>{var n;(n=this.cache)===null||n===void 0||n.clear("availableContentLocales"),this.updateAvailableContentLocales()},this.reloadDebouncer=new de.Debouncer(500),this.apiProvider=r??(()=>ce.get())}setWithManualResources(t){this.withManualResources=t,this.updateIfNeeded()}addListeners(){this.store.addEventListener(te.eventName,this.reloadConfiguration)}removeListeners(){this.store.removeEventListener(te.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 t=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(t)}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 t;let r=await this.cache.get("availableContentLocales",()=>Zs(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((t=r.contentLocales)!==null&&t!==void 0?t:[])}setStickyFilters(t){this.store.actions.stickyFilters(t)}setBaseUrl(t){this.store.actions.baseUrl(t),window.fluidTopicsBaseUrl=t}setTenantId(t){this.store.actions.tenantId(t)}setApiIntegrationIdentifier(t){this.store.actions.apiIntegrationIdentifier(t)}setApiIntegrationAppVersion(t){this.store.actions.apiIntegrationAppVersion(t)}setUiLocale(t){this.store.actions.uiLocale(t)}setLocalesConfiguration(t){this.store.actions.localesConfiguration(t),setTimeout(()=>this.updateIfNeeded())}setAvailableContentLocales(t){this.store.actions.availableContentLocales(t),setTimeout(()=>this.updateIfNeeded())}stopReloadDebouncer(){this.reloadDebouncer.cancel()}requestUiLocaleUpdate(t,r){this.userLocaleService.updateUiLocale({uiLocale:t,contentLocale:r}).then(n=>{n.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new Ge(n)))}).catch(()=>{})}setMetadataConfiguration(t){this.store.actions.metadataConfiguration(t),setTimeout(()=>this.updateIfNeeded())}setNoCustom(t){this.store.actions.noCustom(t)}setEditorMode(t){this.store.actions.editorMode(t)}setNoCustomComponent(t){this.store.actions.noCustomComponent(t)}setNoCustomCode(t){this.store.actions.noCustomCode(t)}setSession(t){this.store.actions.session(t),setTimeout(()=>this.updateIfNeeded())}setOpenExternalDocumentInNewTab(t){this.store.actions.openExternalDocumentInNewTab(t)}setNavigatorOnline(t){this.store.actions.navigatorOnline(t)}setForcedOffline(t){this.store.actions.forcedOffline(t)}setAuthenticationRequired(t){this.store.actions.authenticationRequired(t)}},Fr=Pr.build();var pe=class extends Event{constructor(t,r,n,s){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=r,this.callback=n,this.subscribe=s??!1}};var Ye=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=t=>{let r=this.pendingContextRequests.get(t.context);if(r===void 0)return;this.pendingContextRequests.delete(t.context);let{requests:n}=r;for(let{elementRef:s,callbackRef:i}of n){let a=s.deref(),o=i.deref();a===void 0||o===void 0||a.dispatchEvent(new pe(t.context,a,o,!0))}},this.onContextRequest=t=>{if(t.subscribe!==!0)return;let r=t.contextTarget??t.composedPath()[0],n=t.callback,s=this.pendingContextRequests.get(t.context);s===void 0&&this.pendingContextRequests.set(t.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(t){t.addEventListener("context-request",this.onContextRequest),t.addEventListener("context-provider",this.onContextProvider)}detach(t){t.removeEventListener("context-request",this.onContextRequest),t.removeEventListener("context-provider",this.onContextProvider)}};var R=function(e,t,r,n){var s=arguments.length,i=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(a=e[o])&&(i=(s<3?a(i):s>3?a(t,r,i):a(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},_=class extends he.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=Fr,this.contextRoot=new Ye}render(){return ei.html`
|
|
3
3
|
<slot></slot>
|
|
4
4
|
`}connectedCallback(){super.connectedCallback(),this.stateManager.addListeners(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.removeListeners(),this.contextRoot.detach(document.body)}update(t){var r;super.update(t),t.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),t.has("tenantId")&&this.stateManager.setTenantId(this.tenantId),t.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),t.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),t.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),t.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),t.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),t.has("noCustomCode")&&this.stateManager.setNoCustomCode(this.noCustomCode),t.has("session")&&this.stateManager.setSession(this.session),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(n=>Ks.addContext(n)),t.has("openExternalDocumentInNewTab")&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&this.stateManager.setNavigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&this.stateManager.setForcedOffline(this.forcedOffline),t.has("authenticationRequired")&&this.stateManager.setAuthenticationRequired(this.authenticationRequired),t.has("withManualResources")&&((r=this.stateManager)===null||r===void 0||r.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};_.elementDefinitions={};_.styles=Js;R([(0,L.property)()],_.prototype,"baseUrl",void 0);R([(0,L.property)()],_.prototype,"tenantId",void 0);R([(0,L.property)()],_.prototype,"apiIntegrationIdentifier",void 0);R([(0,L.property)()],_.prototype,"apiIntegrationAppVersion",void 0);R([(0,L.property)()],_.prototype,"uiLocale",void 0);R([(0,he.jsonProperty)(null)],_.prototype,"availableUiLocales",void 0);R([(0,he.jsonProperty)(null)],_.prototype,"metadataConfiguration",void 0);R([(0,L.property)({type:Boolean})],_.prototype,"editorMode",void 0);R([(0,L.property)({type:Boolean})],_.prototype,"noCustom",void 0);R([(0,L.property)({type:Boolean})],_.prototype,"openExternalDocumentInNewTab",void 0);R([(0,L.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],_.prototype,"noCustomComponent",void 0);R([(0,L.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],_.prototype,"noCustomCode",void 0);R([(0,L.property)({type:Boolean})],_.prototype,"withManualResources",void 0);R([(0,L.property)({type:Boolean})],_.prototype,"navigatorOnline",void 0);R([(0,L.property)({type:Boolean})],_.prototype,"forcedOffline",void 0);R([(0,L.property)({type:Boolean})],_.prototype,"authenticationRequired",void 0);R([(0,he.jsonProperty)([])],_.prototype,"messageContexts",void 0);R([(0,he.jsonProperty)(void 0)],_.prototype,"session",void 0);var ri=y(x());var ti={"ft-app-context":_};(0,ri.customElements)(ti);var Vt=class extends CustomEvent{constructor(t,r){super("ft-search-result-click",{detail:{result:t,rank:r},bubbles:!0,composed:!0})}},qt=class extends CustomEvent{constructor(t,r){super("ft-search-result-open-context-menu",{detail:{result:t,rank:r},bubbles:!0,composed:!0})}};var zt=class e extends Event{constructor(){super(e.eventName)}};zt.eventName="search-context-clear-all-filters";var ni=function(e,t,r,n){var s=arguments.length,i=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(a=e[o])&&(i=(s<3?a(i):s>3?a(t,r,i):a(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},Hr=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},si=Symbol("registerInterval"),Ur=Symbol("registerAttempts"),fo=40,yo=(0,Le.applyMixinOnce)(Symbol("toFtSearchComponent"),function(e){class t extends e{constructor(){super(...arguments),this.neededSearchRequests=[]}willUpdate(n){var s,i,a;super.willUpdate(n),n.has("neededSearchRequests")&&((s=this.stateManager)===null||s===void 0||s.unregisterComponent(this,(i=n.get("neededSearchRequests"))!==null&&i!==void 0?i:[]),(a=this.stateManager)===null||a===void 0||a.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[Ur]=0,this.tryToRegisterToContext(),this[si]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[Ur]>fo?window.clearInterval(this[si]):(this[Ur]++,this.dispatchEvent(new Hr))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return ni([(0,$r.state)()],t.prototype,"stateManager",void 0),ni([(0,$r.state)({hasChanged:Le.hasChanged})],t.prototype,"neededSearchRequests",void 0),t}),Kt=class extends yo(Le.FtLitElementRedux){};var Gt=y(z()),Wt=function(e,t,r,n){var s=arguments.length,i=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(a=e[o])&&(i=(s<3?a(i):s>3?a(t,r,i):a(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},jr=class extends Event{constructor(){super("register-ft-search-result-component",{bubbles:!0,composed:!0})}},Br=Symbol("registerInterval"),mo=(0,Yt.applyMixinOnce)(Symbol("toFtSearchResultComponent"),function(e){var t;class r extends e{constructor(){super(...arguments),this[t]=0}setResultStateManager(s){this.resultStateManager=s}unregisterResultStateManager(){this.resultStateManager&&(this.resultStateManager.unregisterComponent(this),this.resultStateManager=void 0)}connectedCallback(){super.connectedCallback(),this[Br]=window.setInterval(()=>this.tryToRegisterToResultContext(),50)}tryToRegisterToResultContext(){this.result!=null?window.clearInterval(this[Br]):this.dispatchEvent(new jr)}disconnectedCallback(){super.disconnectedCallback(),this.unregisterResultStateManager()}}return t=Br,Wt([(0,Gt.property)({attribute:!1})],r.prototype,"cluster",void 0),Wt([(0,Gt.property)({attribute:!1})],r.prototype,"result",void 0),Wt([(0,Yt.numberProperty)()],r.prototype,"rank",void 0),Wt([(0,Gt.property)({attribute:!1,type:Boolean})],r.prototype,"openResultInNewTab",void 0),r}),Qt=class extends mo(Kt){};var ii=y(se()),ai=y(x()),go={highlightBackgroundColor:ai.FtCssVariableFactory.create("--ft-srt-highlight-background-color","","COLOR","transparent")},oi=ii.css`
|
|
5
5
|
.kwicmatch {
|
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
a:focus {
|
|
16
16
|
outline: revert;
|
|
17
17
|
}
|
|
18
|
-
`;var Qr=globalThis,ci=e=>e,Xt=Qr.trustedTypes,li=Xt?Xt.createPolicy("lit-html",{createHTML:e=>e}):void 0,yi="$lit$",ne=`lit$${Math.random().toFixed(9).slice(2)}$`,mi="?"+ne,So=`<${mi}>`,me=document,Jt=()=>me.createComment(""),Je=e=>e===null||typeof e!="object"&&typeof e!="function",Yr=Array.isArray,
|
|
18
|
+
`;var Qr=globalThis,ci=e=>e,Xt=Qr.trustedTypes,li=Xt?Xt.createPolicy("lit-html",{createHTML:e=>e}):void 0,yi="$lit$",ne=`lit$${Math.random().toFixed(9).slice(2)}$`,mi="?"+ne,So=`<${mi}>`,me=document,Jt=()=>me.createComment(""),Je=e=>e===null||typeof e!="object"&&typeof e!="function",Yr=Array.isArray,vo=e=>Yr(e)||typeof e?.[Symbol.iterator]=="function",Vr=`[
|
|
19
19
|
\f\r]`,Xe=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ui=/-->/g,di=/>/g,fe=RegExp(`>|${Vr}(?:([^\\s"'>=/]+)(${Vr}*=${Vr}*(?:[^
|
|
20
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),pi=/'/g,hi=/"/g,gi=/^(?:script|style|textarea|title)$/i,Xr=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),Si=Xr(1),Ei=Xr(2),vi=Xr(3),Ze=Symbol.for("lit-noChange"),O=Symbol.for("lit-nothing"),fi=new WeakMap,ye=me.createTreeWalker(me,129);function Ai(e,t){if(!Yr(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return li!==void 0?li.createHTML(t):t}var vo=(e,t)=>{let r=e.length-1,n=[],s,i=t===2?"<svg>":t===3?"<math>":"",a=Xe;for(let o=0;o<r;o++){let c=e[o],l,u,p=-1,f=0;for(;f<c.length&&(a.lastIndex=f,u=a.exec(c),u!==null);)f=a.lastIndex,a===Xe?u[1]==="!--"?a=ui:u[1]!==void 0?a=di:u[2]!==void 0?(gi.test(u[2])&&(s=RegExp("</"+u[2],"g")),a=fe):u[3]!==void 0&&(a=fe):a===fe?u[0]===">"?(a=s??Xe,p=-1):u[1]===void 0?p=-2:(p=a.lastIndex-u[2].length,l=u[1],a=u[3]===void 0?fe:u[3]==='"'?hi:pi):a===hi||a===pi?a=fe:a===ui||a===di?a=Xe:(a=fe,s=void 0);let S=a===fe&&e[o+1].startsWith("/>")?" ":"";i+=a===Xe?c+So:p>=0?(n.push(l),c.slice(0,p)+yi+c.slice(p)+ne+S):c+ne+(p===-2?o:S)}return[Ai(e,i+(e[r]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]},et=class e{constructor({strings:t,_$litType$:r},n){let s;this.parts=[];let i=0,a=0,o=t.length-1,c=this.parts,[l,u]=vo(t,r);if(this.el=e.createElement(l,n),ye.currentNode=this.el.content,r===2||r===3){let p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(s=ye.nextNode())!==null&&c.length<o;){if(s.nodeType===1){if(s.hasAttributes())for(let p of s.getAttributeNames())if(p.endsWith(yi)){let f=u[a++],S=s.getAttribute(p).split(ne),v=/([.?@])?(.*)/.exec(f);c.push({type:1,index:i,name:v[2],strings:S,ctor:v[1]==="."?zr:v[1]==="?"?Kr:v[1]==="@"?Wr:Fe}),s.removeAttribute(p)}else p.startsWith(ne)&&(c.push({type:6,index:i}),s.removeAttribute(p));if(gi.test(s.tagName)){let p=s.textContent.split(ne),f=p.length-1;if(f>0){s.textContent=Xt?Xt.emptyScript:"";for(let S=0;S<f;S++)s.append(p[S],Jt()),ye.nextNode(),c.push({type:2,index:++i});s.append(p[f],Jt())}}}else if(s.nodeType===8)if(s.data===mi)c.push({type:2,index:i});else{let p=-1;for(;(p=s.data.indexOf(ne,p+1))!==-1;)c.push({type:7,index:i}),p+=ne.length-1}i++}}static createElement(t,r){let n=me.createElement("template");return n.innerHTML=t,n}};function Pe(e,t,r=e,n){if(t===Ze)return t;let s=n!==void 0?r._$Co?.[n]:r._$Cl,i=Je(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=Pe(e,s._$AS(e,t.values),s,n)),t}var qr=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??me).importNode(r,!0);ye.currentNode=s;let i=ye.nextNode(),a=0,o=0,c=n[0];for(;c!==void 0;){if(a===c.index){let l;c.type===2?l=new Zt(i,i.nextSibling,this,t):c.type===1?l=new c.ctor(i,c.name,c.strings,this,t):c.type===6&&(l=new Gr(i,this,t)),this._$AV.push(l),c=n[++o]}a!==c?.index&&(i=ye.nextNode(),a++)}return ye.currentNode=me,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++}},Zt=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,r,n,s){this.type=2,this._$AH=O,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=Pe(this,t,r),Je(t)?t===O||t==null||t===""?(this._$AH!==O&&this._$AR(),this._$AH=O):t!==this._$AH&&t!==Ze&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Eo(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!==O&&Je(this._$AH)?this._$AA.nextSibling.data=t:this.T(me.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=et.createElement(Ai(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===s)this._$AH.p(r);else{let i=new qr(s,this),a=i.u(this.options);i.p(r),this.T(a),this._$AH=i}}_$AC(t){let r=fi.get(t.strings);return r===void 0&&fi.set(t.strings,r=new et(t)),r}k(t){Yr(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(Jt()),this.O(Jt()),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=ci(t).nextSibling;ci(t).remove(),t=n}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},Fe=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,n,s,i){this.type=1,this._$AH=O,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=O}_$AI(t,r=this,n,s){let i=this.strings,a=!1;if(i===void 0)t=Pe(this,t,r,0),a=!Je(t)||t!==this._$AH&&t!==Ze,a&&(this._$AH=t);else{let o=t,c,l;for(t=i[0],c=0;c<i.length-1;c++)l=Pe(this,o[n+c],r,c),l===Ze&&(l=this._$AH[c]),a||=!Je(l)||l!==this._$AH[c],l===O?t=O:t!==O&&(t+=(l??"")+i[c+1]),this._$AH[c]=l}a&&!s&&this.j(t)}j(t){t===O?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},zr=class extends Fe{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===O?void 0:t}},Kr=class extends Fe{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==O)}},Wr=class extends Fe{constructor(t,r,n,s,i){super(t,r,n,s,i),this.type=5}_$AI(t,r=this){if((t=Pe(this,t,r,0)??O)===Ze)return;let n=this._$AH,s=t===O&&n!==O||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,i=t!==O&&(n===O||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)}},Gr=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){Pe(this,t)}};var Ao=Qr.litHtmlPolyfillSupport;Ao?.(et,Zt),(Qr.litHtmlVersions??=[]).push("3.3.3");var xi=Symbol.for(""),bo=e=>{if(e?.r===xi)return e?._$litStatic$},Jr=e=>({_$litStatic$:e,r:xi});var bi=new Map,Zr=e=>(t,...r)=>{let n=r.length,s,i,a=[],o=[],c,l=0,u=!1;for(;l<n;){for(c=t[l];l<n&&(i=r[l],(s=bo(i))!==void 0);)c+=s+t[++l],u=!0;l!==n&&o.push(i),a.push(c),l++}if(l===n&&a.push(t[n]),u){let p=a.join("$$lit$$");(t=bi.get(p))===void 0&&(a.raw=a,bi.set(p,t=a)),r=o}return e(t,...r)},en=Zr(Si),zd=Zr(Ei),Kd=Zr(vi);var tn=y(z()),Fi=y(x());var Ue;(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"})(Ue||(Ue={}));var j=y(se()),d=y(x()),_i=d.FtCssVariableFactory.extend("--ft-typography-font-family","",d.designSystemVariables.titleFont),X=d.FtCssVariableFactory.extend("--ft-typography-font-family","",d.designSystemVariables.contentFont),h={fontFamily:X,fontSize:d.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:d.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:d.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:d.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:d.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit"),textDecoration:d.FtCssVariableFactory.create("--ft-typography-text-decoration","","UNKNOWN","inherit")},ge={fontFamily:d.FtCssVariableFactory.extend("--ft-typography-title-font-family","",_i),fontSize:d.FtCssVariableFactory.extend("--ft-typography-title-font-size","",h.fontSize,"20px"),fontWeight:d.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",h.fontWeight,"normal"),letterSpacing:d.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",h.letterSpacing,"0.15px"),lineHeight:d.FtCssVariableFactory.extend("--ft-typography-title-line-height","",h.lineHeight,"1.2"),textTransform:d.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",h.textTransform,"inherit"),textDecoration:d.FtCssVariableFactory.extend("--ft-typography-title-text-decoration","",h.textDecoration,"inherit")},Se={fontFamily:d.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",_i),fontSize:d.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",h.fontSize,"14px"),fontWeight:d.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",h.fontWeight,"normal"),letterSpacing:d.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",h.letterSpacing,"0.105px"),lineHeight:d.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",h.lineHeight,"1.7"),textTransform:d.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",h.textTransform,"inherit"),textDecoration:d.FtCssVariableFactory.extend("--ft-typography-title-dense-text-decoration","",h.textDecoration,"inherit")},Ee={fontFamily:d.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",X),fontSize:d.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",h.fontSize,"16px"),fontWeight:d.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",h.fontWeight,"600"),letterSpacing:d.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",h.letterSpacing,"0.144px"),lineHeight:d.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",h.lineHeight,"1.5"),textTransform:d.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",h.textTransform,"inherit"),textDecoration:d.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-decoration","",h.textDecoration,"inherit")},ve={fontFamily:d.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",X),fontSize:d.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",h.fontSize,"14px"),fontWeight:d.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",h.fontWeight,"normal"),letterSpacing:d.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",h.letterSpacing,"0.098px"),lineHeight:d.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",h.lineHeight,"1.7"),textTransform:d.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",h.textTransform,"inherit"),textDecoration:d.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-decoration","",h.textDecoration,"inherit")},Ae={fontFamily:d.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",X),fontSize:d.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",h.fontSize,"16px"),fontWeight:d.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",h.fontWeight,"normal"),letterSpacing:d.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",h.letterSpacing,"0.496px"),lineHeight:d.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",h.lineHeight,"1.5"),textTransform:d.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",h.textTransform,"inherit"),textDecoration:d.FtCssVariableFactory.extend("--ft-typography-body1-text-decoration","",h.textDecoration,"inherit")},be={fontFamily:d.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",X),fontSize:d.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",h.fontSize,"14px"),fontWeight:d.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",h.fontWeight,"normal"),letterSpacing:d.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",h.letterSpacing,"0.252px"),lineHeight:d.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",h.lineHeight,"1.4"),textTransform:d.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",h.textTransform,"inherit"),textDecoration:d.FtCssVariableFactory.extend("--ft-typography-body2-text-decoration","",h.textDecoration,"inherit")},xe={fontFamily:d.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",X),fontSize:d.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",h.fontSize,"12px"),fontWeight:d.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",h.fontWeight,"normal"),letterSpacing:d.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",h.letterSpacing,"0.396px"),lineHeight:d.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",h.lineHeight,"1.33"),textTransform:d.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",h.textTransform,"inherit"),textDecoration:d.FtCssVariableFactory.extend("--ft-typography-caption-text-decoration","",h.textDecoration,"inherit")},_e={fontFamily:d.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",X),fontSize:d.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",h.fontSize,"10px"),fontWeight:d.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",h.fontWeight,"normal"),letterSpacing:d.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",h.letterSpacing,"0.33px"),lineHeight:d.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",h.lineHeight,"1.6"),textTransform:d.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",h.textTransform,"inherit"),textDecoration:d.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-decoration","",h.textDecoration,"inherit")},Ce={fontFamily:d.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",X),fontSize:d.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",h.fontSize,"10px"),fontWeight:d.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",h.fontWeight,"normal"),letterSpacing:d.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",h.letterSpacing,"1.5px"),lineHeight:d.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",h.lineHeight,"1.6"),textTransform:d.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",h.textTransform,"uppercase"),textDecoration:d.FtCssVariableFactory.extend("--ft-typography-overline-text-decoration","",h.textDecoration,"inherit")},Te={fontFamily:d.FtCssVariableFactory.extend("--ft-typography-button-font-family","",X),fontSize:d.FtCssVariableFactory.extend("--ft-typography-button-font-size","",h.fontSize,"14px"),fontWeight:d.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",h.fontWeight,"600"),letterSpacing:d.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",h.letterSpacing,"1.246px"),lineHeight:d.FtCssVariableFactory.extend("--ft-typography-button-line-height","",h.lineHeight,"1.15"),textTransform:d.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",h.textTransform,"uppercase"),textDecoration:d.FtCssVariableFactory.extend("--ft-typography-button-text-decoration","",h.textDecoration,"inherit")},Ci=j.css`
|
|
20
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),pi=/'/g,hi=/"/g,gi=/^(?:script|style|textarea|title)$/i,Xr=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),Si=Xr(1),vi=Xr(2),Ei=Xr(3),Ze=Symbol.for("lit-noChange"),O=Symbol.for("lit-nothing"),fi=new WeakMap,ye=me.createTreeWalker(me,129);function Ai(e,t){if(!Yr(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return li!==void 0?li.createHTML(t):t}var Eo=(e,t)=>{let r=e.length-1,n=[],s,i=t===2?"<svg>":t===3?"<math>":"",a=Xe;for(let o=0;o<r;o++){let c=e[o],l,u,p=-1,f=0;for(;f<c.length&&(a.lastIndex=f,u=a.exec(c),u!==null);)f=a.lastIndex,a===Xe?u[1]==="!--"?a=ui:u[1]!==void 0?a=di:u[2]!==void 0?(gi.test(u[2])&&(s=RegExp("</"+u[2],"g")),a=fe):u[3]!==void 0&&(a=fe):a===fe?u[0]===">"?(a=s??Xe,p=-1):u[1]===void 0?p=-2:(p=a.lastIndex-u[2].length,l=u[1],a=u[3]===void 0?fe:u[3]==='"'?hi:pi):a===hi||a===pi?a=fe:a===ui||a===di?a=Xe:(a=fe,s=void 0);let S=a===fe&&e[o+1].startsWith("/>")?" ":"";i+=a===Xe?c+So:p>=0?(n.push(l),c.slice(0,p)+yi+c.slice(p)+ne+S):c+ne+(p===-2?o:S)}return[Ai(e,i+(e[r]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]},et=class e{constructor({strings:t,_$litType$:r},n){let s;this.parts=[];let i=0,a=0,o=t.length-1,c=this.parts,[l,u]=Eo(t,r);if(this.el=e.createElement(l,n),ye.currentNode=this.el.content,r===2||r===3){let p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(s=ye.nextNode())!==null&&c.length<o;){if(s.nodeType===1){if(s.hasAttributes())for(let p of s.getAttributeNames())if(p.endsWith(yi)){let f=u[a++],S=s.getAttribute(p).split(ne),E=/([.?@])?(.*)/.exec(f);c.push({type:1,index:i,name:E[2],strings:S,ctor:E[1]==="."?zr:E[1]==="?"?Kr:E[1]==="@"?Wr:Fe}),s.removeAttribute(p)}else p.startsWith(ne)&&(c.push({type:6,index:i}),s.removeAttribute(p));if(gi.test(s.tagName)){let p=s.textContent.split(ne),f=p.length-1;if(f>0){s.textContent=Xt?Xt.emptyScript:"";for(let S=0;S<f;S++)s.append(p[S],Jt()),ye.nextNode(),c.push({type:2,index:++i});s.append(p[f],Jt())}}}else if(s.nodeType===8)if(s.data===mi)c.push({type:2,index:i});else{let p=-1;for(;(p=s.data.indexOf(ne,p+1))!==-1;)c.push({type:7,index:i}),p+=ne.length-1}i++}}static createElement(t,r){let n=me.createElement("template");return n.innerHTML=t,n}};function Pe(e,t,r=e,n){if(t===Ze)return t;let s=n!==void 0?r._$Co?.[n]:r._$Cl,i=Je(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=Pe(e,s._$AS(e,t.values),s,n)),t}var qr=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??me).importNode(r,!0);ye.currentNode=s;let i=ye.nextNode(),a=0,o=0,c=n[0];for(;c!==void 0;){if(a===c.index){let l;c.type===2?l=new Zt(i,i.nextSibling,this,t):c.type===1?l=new c.ctor(i,c.name,c.strings,this,t):c.type===6&&(l=new Gr(i,this,t)),this._$AV.push(l),c=n[++o]}a!==c?.index&&(i=ye.nextNode(),a++)}return ye.currentNode=me,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++}},Zt=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,r,n,s){this.type=2,this._$AH=O,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=Pe(this,t,r),Je(t)?t===O||t==null||t===""?(this._$AH!==O&&this._$AR(),this._$AH=O):t!==this._$AH&&t!==Ze&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):vo(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!==O&&Je(this._$AH)?this._$AA.nextSibling.data=t:this.T(me.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=et.createElement(Ai(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===s)this._$AH.p(r);else{let i=new qr(s,this),a=i.u(this.options);i.p(r),this.T(a),this._$AH=i}}_$AC(t){let r=fi.get(t.strings);return r===void 0&&fi.set(t.strings,r=new et(t)),r}k(t){Yr(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(Jt()),this.O(Jt()),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=ci(t).nextSibling;ci(t).remove(),t=n}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},Fe=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,n,s,i){this.type=1,this._$AH=O,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=O}_$AI(t,r=this,n,s){let i=this.strings,a=!1;if(i===void 0)t=Pe(this,t,r,0),a=!Je(t)||t!==this._$AH&&t!==Ze,a&&(this._$AH=t);else{let o=t,c,l;for(t=i[0],c=0;c<i.length-1;c++)l=Pe(this,o[n+c],r,c),l===Ze&&(l=this._$AH[c]),a||=!Je(l)||l!==this._$AH[c],l===O?t=O:t!==O&&(t+=(l??"")+i[c+1]),this._$AH[c]=l}a&&!s&&this.j(t)}j(t){t===O?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},zr=class extends Fe{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===O?void 0:t}},Kr=class extends Fe{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==O)}},Wr=class extends Fe{constructor(t,r,n,s,i){super(t,r,n,s,i),this.type=5}_$AI(t,r=this){if((t=Pe(this,t,r,0)??O)===Ze)return;let n=this._$AH,s=t===O&&n!==O||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,i=t!==O&&(n===O||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)}},Gr=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){Pe(this,t)}};var Ao=Qr.litHtmlPolyfillSupport;Ao?.(et,Zt),(Qr.litHtmlVersions??=[]).push("3.3.3");var xi=Symbol.for(""),bo=e=>{if(e?.r===xi)return e?._$litStatic$},Jr=e=>({_$litStatic$:e,r:xi});var bi=new Map,Zr=e=>(t,...r)=>{let n=r.length,s,i,a=[],o=[],c,l=0,u=!1;for(;l<n;){for(c=t[l];l<n&&(i=r[l],(s=bo(i))!==void 0);)c+=s+t[++l],u=!0;l!==n&&o.push(i),a.push(c),l++}if(l===n&&a.push(t[n]),u){let p=a.join("$$lit$$");(t=bi.get(p))===void 0&&(a.raw=a,bi.set(p,t=a)),r=o}return e(t,...r)},en=Zr(Si),zd=Zr(vi),Kd=Zr(Ei);var tn=y(z()),Fi=y(x());var Ue;(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"})(Ue||(Ue={}));var j=y(se()),d=y(x()),_i=d.FtCssVariableFactory.extend("--ft-typography-font-family","",d.designSystemVariables.titleFont),X=d.FtCssVariableFactory.extend("--ft-typography-font-family","",d.designSystemVariables.contentFont),h={fontFamily:X,fontSize:d.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:d.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:d.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:d.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:d.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit"),textDecoration:d.FtCssVariableFactory.create("--ft-typography-text-decoration","","UNKNOWN","inherit")},ge={fontFamily:d.FtCssVariableFactory.extend("--ft-typography-title-font-family","",_i),fontSize:d.FtCssVariableFactory.extend("--ft-typography-title-font-size","",h.fontSize,"20px"),fontWeight:d.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",h.fontWeight,"normal"),letterSpacing:d.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",h.letterSpacing,"0.15px"),lineHeight:d.FtCssVariableFactory.extend("--ft-typography-title-line-height","",h.lineHeight,"1.2"),textTransform:d.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",h.textTransform,"inherit"),textDecoration:d.FtCssVariableFactory.extend("--ft-typography-title-text-decoration","",h.textDecoration,"inherit")},Se={fontFamily:d.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",_i),fontSize:d.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",h.fontSize,"14px"),fontWeight:d.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",h.fontWeight,"normal"),letterSpacing:d.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",h.letterSpacing,"0.105px"),lineHeight:d.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",h.lineHeight,"1.7"),textTransform:d.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",h.textTransform,"inherit"),textDecoration:d.FtCssVariableFactory.extend("--ft-typography-title-dense-text-decoration","",h.textDecoration,"inherit")},ve={fontFamily:d.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",X),fontSize:d.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",h.fontSize,"16px"),fontWeight:d.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",h.fontWeight,"600"),letterSpacing:d.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",h.letterSpacing,"0.144px"),lineHeight:d.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",h.lineHeight,"1.5"),textTransform:d.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",h.textTransform,"inherit"),textDecoration:d.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-decoration","",h.textDecoration,"inherit")},Ee={fontFamily:d.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",X),fontSize:d.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",h.fontSize,"14px"),fontWeight:d.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",h.fontWeight,"normal"),letterSpacing:d.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",h.letterSpacing,"0.098px"),lineHeight:d.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",h.lineHeight,"1.7"),textTransform:d.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",h.textTransform,"inherit"),textDecoration:d.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-decoration","",h.textDecoration,"inherit")},Ae={fontFamily:d.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",X),fontSize:d.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",h.fontSize,"16px"),fontWeight:d.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",h.fontWeight,"normal"),letterSpacing:d.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",h.letterSpacing,"0.496px"),lineHeight:d.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",h.lineHeight,"1.5"),textTransform:d.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",h.textTransform,"inherit"),textDecoration:d.FtCssVariableFactory.extend("--ft-typography-body1-text-decoration","",h.textDecoration,"inherit")},be={fontFamily:d.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",X),fontSize:d.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",h.fontSize,"14px"),fontWeight:d.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",h.fontWeight,"normal"),letterSpacing:d.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",h.letterSpacing,"0.252px"),lineHeight:d.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",h.lineHeight,"1.4"),textTransform:d.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",h.textTransform,"inherit"),textDecoration:d.FtCssVariableFactory.extend("--ft-typography-body2-text-decoration","",h.textDecoration,"inherit")},xe={fontFamily:d.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",X),fontSize:d.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",h.fontSize,"12px"),fontWeight:d.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",h.fontWeight,"normal"),letterSpacing:d.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",h.letterSpacing,"0.396px"),lineHeight:d.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",h.lineHeight,"1.33"),textTransform:d.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",h.textTransform,"inherit"),textDecoration:d.FtCssVariableFactory.extend("--ft-typography-caption-text-decoration","",h.textDecoration,"inherit")},_e={fontFamily:d.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",X),fontSize:d.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",h.fontSize,"10px"),fontWeight:d.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",h.fontWeight,"normal"),letterSpacing:d.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",h.letterSpacing,"0.33px"),lineHeight:d.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",h.lineHeight,"1.6"),textTransform:d.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",h.textTransform,"inherit"),textDecoration:d.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-decoration","",h.textDecoration,"inherit")},Ce={fontFamily:d.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",X),fontSize:d.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",h.fontSize,"10px"),fontWeight:d.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",h.fontWeight,"normal"),letterSpacing:d.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",h.letterSpacing,"1.5px"),lineHeight:d.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",h.lineHeight,"1.6"),textTransform:d.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",h.textTransform,"uppercase"),textDecoration:d.FtCssVariableFactory.extend("--ft-typography-overline-text-decoration","",h.textDecoration,"inherit")},Te={fontFamily:d.FtCssVariableFactory.extend("--ft-typography-button-font-family","",X),fontSize:d.FtCssVariableFactory.extend("--ft-typography-button-font-size","",h.fontSize,"14px"),fontWeight:d.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",h.fontWeight,"600"),letterSpacing:d.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",h.letterSpacing,"1.246px"),lineHeight:d.FtCssVariableFactory.extend("--ft-typography-button-line-height","",h.lineHeight,"1.15"),textTransform:d.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",h.textTransform,"uppercase"),textDecoration:d.FtCssVariableFactory.extend("--ft-typography-button-text-decoration","",h.textDecoration,"inherit")},Ci=j.css`
|
|
21
21
|
.ft-typography--title {
|
|
22
22
|
font-family: ${ge.fontFamily};
|
|
23
23
|
font-size: ${ge.fontSize};
|
|
@@ -39,16 +39,6 @@
|
|
|
39
39
|
}
|
|
40
40
|
`,wi=j.css`
|
|
41
41
|
.ft-typography--subtitle1 {
|
|
42
|
-
font-family: ${Ee.fontFamily};
|
|
43
|
-
font-size: ${Ee.fontSize};
|
|
44
|
-
font-weight: ${Ee.fontWeight};
|
|
45
|
-
letter-spacing: ${Ee.letterSpacing};
|
|
46
|
-
line-height: ${Ee.lineHeight};
|
|
47
|
-
text-transform: ${Ee.textTransform};
|
|
48
|
-
text-decoration: ${Ee.textDecoration};
|
|
49
|
-
}
|
|
50
|
-
`,Oi=j.css`
|
|
51
|
-
.ft-typography--subtitle2 {
|
|
52
42
|
font-family: ${ve.fontFamily};
|
|
53
43
|
font-size: ${ve.fontSize};
|
|
54
44
|
font-weight: ${ve.fontWeight};
|
|
@@ -57,6 +47,16 @@
|
|
|
57
47
|
text-transform: ${ve.textTransform};
|
|
58
48
|
text-decoration: ${ve.textDecoration};
|
|
59
49
|
}
|
|
50
|
+
`,Oi=j.css`
|
|
51
|
+
.ft-typography--subtitle2 {
|
|
52
|
+
font-family: ${Ee.fontFamily};
|
|
53
|
+
font-size: ${Ee.fontSize};
|
|
54
|
+
font-weight: ${Ee.fontWeight};
|
|
55
|
+
letter-spacing: ${Ee.letterSpacing};
|
|
56
|
+
line-height: ${Ee.lineHeight};
|
|
57
|
+
text-transform: ${Ee.textTransform};
|
|
58
|
+
text-decoration: ${Ee.textDecoration};
|
|
59
|
+
}
|
|
60
60
|
|
|
61
61
|
`,Ri=j.css`
|
|
62
62
|
.ft-typography--body1 {
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
text-transform: ${xe.textTransform};
|
|
89
89
|
text-decoration: ${xe.textDecoration};
|
|
90
90
|
}
|
|
91
|
-
`,
|
|
91
|
+
`,Di=j.css`
|
|
92
92
|
.ft-typography--breadcrumb {
|
|
93
93
|
font-family: ${_e.fontFamily};
|
|
94
94
|
font-size: ${_e.fontSize};
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
text-transform: ${_e.textTransform};
|
|
99
99
|
text-decoration: ${_e.textDecoration};
|
|
100
100
|
}
|
|
101
|
-
`,
|
|
101
|
+
`,Mi=j.css`
|
|
102
102
|
.ft-typography--overline {
|
|
103
103
|
font-family: ${Ce.fontFamily};
|
|
104
104
|
font-size: ${Ce.fontSize};
|
|
@@ -130,7 +130,7 @@
|
|
|
130
130
|
</${Jr(this.element)}>
|
|
131
131
|
`:en`
|
|
132
132
|
<slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
|
|
133
|
-
`}};J.styles=[Ci,Ti,wi,Oi,Ri,Ii,ki,Mi,
|
|
133
|
+
`}};J.styles=[Ci,Ti,wi,Oi,Ri,Ii,ki,Di,Mi,Ni,Li];Pi([(0,tn.property)()],J.prototype,"element",void 0);Pi([(0,tn.property)()],J.prototype,"variant",void 0);var $i=y(x());var Ui={"ft-typography":J};(0,$i.customElements)(Ui);var Gi=y(Bi());var ji=e=>e??O;var tt=y(x());function Vi(e){var t;return((t=(0,tt.accessResult)(e))===null||t===void 0?void 0:t.openMode)===st.EXTERNAL}function qi(e){return Vi(e)?(0,tt.accessResult)(e).originUrl:(0,tt.accessResultUrl)(e)}function zi(e,t){return ji(t&&Vi(e)?"_blank":void 0)}var xo=function(e,t,r,n){var s=arguments.length,i=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(a=e[o])&&(i=(s<3?a(i):s>3?a(t,r,i):a(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},we=class extends Qt{constructor(){super(...arguments),this.withoutLink=!1}render(){var t;return this.result?this.withoutLink?this.renderTitle():rt.html`
|
|
134
134
|
<a href="${qi(this.result)}"
|
|
135
135
|
@click=${this.onResultClick}
|
|
136
136
|
@auxclick=${r=>this.onAuxClick(r)}
|
|
@@ -44,7 +44,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
44
44
|
input::-webkit-search-results-decoration {
|
|
45
45
|
display: none;
|
|
46
46
|
}
|
|
47
|
-
`;var Ls={};var jn={};P(jn,{ParametrizedLabelResolver:()=>pr});var pr=class t{constructor(e,o){this.defaultLabels=e,this.labels=o}resolve(e,...o){var n,i;e=this.resolvePluralKey(e,o);let a=(i=(n=this.labels[e])!==null&&n!==void 0?n:this.defaultLabels[e])!==null&&i!==void 0?i:"";return t.replaceParameters(a,...o)}static replaceParameters(e,...o){return o.forEach((n,i)=>e=e.replace(new RegExp(`\\{${i}([^}]*)\\}`,"g"),(a,s)=>t.formatValue(n,s))),e}resolvePluralKey(e,o){for(let n of o)if(typeof n=="number"){let i=`${String(e)}[\\=${n}]`;if(i in this.labels||i in this.defaultLabels)return i}return e}static formatValue(e,o){return e instanceof Date?t.formatDate(e,o):e??""}static formatDate(e,o){let n=i=>o?.includes("date")?e.toLocaleDateString(i):o?.includes("time")?e.toLocaleTimeString(i):e.toLocaleString(i);try{return n(document.documentElement.lang)}catch{return n()}}};var pi={};P(pi,{FtCommandQueue:()=>fr,FtLitElementRedux:()=>et,FtReduxStore:()=>Ue,FtStateManager:()=>Dt,ReduxWatcher:()=>vr,clearAllStores:()=>zp,isFtReduxStore:()=>Pt,redux:()=>Zr,reduxEventListener:()=>Ku,reduxReactive:()=>ju,watch:()=>Wp,withRedux:()=>Ns});var ju=()=>(t,e)=>{var o;let n=t.constructor;n.reduxReactiveProperties=new Set(n.reduxReactiveProperties),(o=n.reduxReactiveProperties)===null||o===void 0||o.add(e)},Zr=t=>{let e=t??{};return(o,n)=>{var i;let a={hasChanged:ve,attribute:!1,...e};A(a)(o,n);let s=o.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(n,{selector:(i=e.selector)!==null&&i!==void 0?i:(l=>l[n]),store:e.store})}},Ku=t=>(e,o)=>{let n=e.constructor;n.reduxEventListeners=new Map(n.reduxEventListeners),n.reduxEventListeners.set(o,t)};var fr=class{constructor(){this.queue=[]}add(e,o=!1){o&&this.clear(e.type),this.queue.push(e)}consume(e){let o=this.queue.find(n=>n.type===e);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}clear(e){typeof e=="string"?this.queue=this.queue.filter(o=>o.type!==e):this.queue=this.queue.filter(o=>!e.test(o.type))}};function Pt(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var hr=Symbol("internalReduxEventsUnsubscribers"),Me=Symbol("internalStoresUnsubscribers"),Xe=Symbol("internalStores"),Ns=z(Symbol("withRedux"),function(t){var e,o,n;class i extends t{constructor(){super(...arguments),this[e]=new Map,this[o]=new Map,this[n]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(l=>s.has(l))&&this.updateFromStores()}getUnnamedStore(){if(this[Xe].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Xe].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[Xe].get(s)}addStore(s,l){var d;l=(d=l??s.name)!==null&&d!==void 0?d:"default-store",this.unsubscribeFromStore(l),this[Xe].set(l,s),this.subscribeToStore(l,s),this.updateFromStores()}removeStore(s){let l=typeof s=="string"?s:s.name;this.unsubscribeFromStore(l),this[Xe].delete(l)}setupStores(){this.unsubscribeFromStores(),this[Xe].forEach((s,l)=>this.subscribeToStore(l,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,l)=>{let d=this.constructor.getPropertyOptions(l);if(!d?.attribute||!this.hasAttribute(typeof d?.attribute=="string"?d.attribute:l)){let p=this.getStore(s.store);p&&(s.store?this[Me].has(s.store):this[Me].size>0)&&(this[l]=s.selector(p.getState(),this))}})}subscribeToStore(s,l){var d;this[Me].set(s,l.subscribe(()=>this.updateFromStores())),this[hr].set(s,[]),Pt(l)&&l.eventBus&&((d=this.reduxConstructor.reduxEventListeners)===null||d===void 0||d.forEach((p,h)=>{if(typeof this[h]=="function"&&(!p.store||l.name===p.store)){let f=m=>this[h](m);l.addEventListener(p.eventName,f),this[hr].get(s).push(()=>l.removeEventListener(p.eventName,f))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[Me].forEach((s,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(s){var l;this[Me].has(s)&&this[Me].get(s)(),this[Me].delete(s),(l=this[hr].get(s))===null||l===void 0||l.forEach(d=>d()),this[hr].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=Me,o=Xe,n=hr,i.reduxProperties=new Map,i.reduxReactiveProperties=new Set,i.reduxEventListeners=new Map,i}),et=class extends Ns(Z){};function V(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 qu=typeof Symbol=="function"&&Symbol.observable||"@@observable",Ps=qu,Kn=()=>Math.random().toString(36).substring(7).split("").join("."),Zu={INIT:`@@redux/INIT${Kn()}`,REPLACE:`@@redux/REPLACE${Kn()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Kn()}`},Yr=Zu;function Qr(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 qn(t,e,o){if(typeof t!="function")throw new Error(V(2));if(typeof e=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(V(0));if(typeof e=="function"&&typeof o>"u"&&(o=e,e=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(V(1));return o(qn)(t,e)}let n=t,i=e,a=new Map,s=a,l=0,d=!1;function p(){s===a&&(s=new Map,a.forEach((v,C)=>{s.set(C,v)}))}function h(){if(d)throw new Error(V(3));return i}function f(v){if(typeof v!="function")throw new Error(V(4));if(d)throw new Error(V(5));let C=!0;p();let L=l++;return s.set(L,v),function(){if(C){if(d)throw new Error(V(6));C=!1,p(),s.delete(L),a=null}}}function m(v){if(!Qr(v))throw new Error(V(7));if(typeof v.type>"u")throw new Error(V(8));if(typeof v.type!="string")throw new Error(V(17));if(d)throw new Error(V(9));try{d=!0,i=n(i,v)}finally{d=!1}return(a=s).forEach(L=>{L()}),v}function b(v){if(typeof v!="function")throw new Error(V(10));n=v,m({type:Yr.REPLACE})}function S(){let v=f;return{subscribe(C){if(typeof C!="object"||C===null)throw new Error(V(11));function L(){let y=C;y.next&&y.next(h())}return L(),{unsubscribe:v(L)}},[Ps](){return this}}}return m({type:Yr.INIT}),{dispatch:m,subscribe:f,getState:h,replaceReducer:b,[Ps]:S}}function Yu(t){Object.keys(t).forEach(e=>{let o=t[e];if(typeof o(void 0,{type:Yr.INIT})>"u")throw new Error(V(12));if(typeof o(void 0,{type:Yr.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(V(13))})}function Fs(t){let e=Object.keys(t),o={};for(let s=0;s<e.length;s++){let l=e[s];typeof t[l]=="function"&&(o[l]=t[l])}let n=Object.keys(o),i,a;try{Yu(o)}catch(s){a=s}return function(l={},d){if(a)throw a;let p=!1,h={};for(let f=0;f<n.length;f++){let m=n[f],b=o[m],S=l[m],E=b(S,d);if(typeof E>"u"){let v=d&&d.type;throw new Error(V(14))}h[m]=E,p=p||E!==S}return p=p||n.length!==Object.keys(l).length,p?h:l}}function mr(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce((e,o)=>(...n)=>e(o(...n)))}function Ms(...t){return e=>(o,n)=>{let i=e(o,n),a=()=>{throw new Error(V(15))},s={getState:i.getState,dispatch:(d,...p)=>a(d,...p)},l=t.map(d=>d(s));return a=mr(...l)(i.dispatch),{...i,dispatch:a}}}function Ds(t){return Qr(t)&&"type"in t&&typeof t.type=="string"}var js=Symbol.for("immer-nothing"),Us=Symbol.for("immer-draftable"),j=Symbol.for("immer-state");function de(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var te=Object,Mt=te.getPrototypeOf,to="constructor",so="prototype",Jn="configurable",ro="enumerable",Xr="writable",gr="value",be=t=>!!t&&!!t[j];function re(t){return t?Ks(t)||lo(t)||!!t[Us]||!!t[to]?.[Us]||uo(t)||po(t):!1}var Qu=te[so][to].toString(),Bs=new WeakMap;function Ks(t){if(!t||!ai(t))return!1;let e=Mt(t);if(e===null||e===te[so])return!0;let o=te.hasOwnProperty.call(e,to)&&e[to];if(o===Object)return!0;if(!Ft(o))return!1;let n=Bs.get(o);return n===void 0&&(n=Function.toString.call(o),Bs.set(o,n)),n===Qu}function co(t,e,o=!0){xr(t)===0?(o?Reflect.ownKeys(t):te.keys(t)).forEach(i=>{e(i,t[i],t)}):t.forEach((n,i)=>e(i,n,t))}function xr(t){let e=t[j];return e?e.type_:lo(t)?1:uo(t)?2:po(t)?3:0}var Zn=(t,e,o=xr(t))=>o===2?t.has(e):te[so].hasOwnProperty.call(t,e),Xn=(t,e,o=xr(t))=>o===2?t.get(e):t[e],oo=(t,e,o,n=xr(t))=>{n===2?t.set(e,o):n===3?t.add(o):t[e]=o};function Ju(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}var lo=Array.isArray,uo=t=>t instanceof Map,po=t=>t instanceof Set,ai=t=>typeof t=="object",Ft=t=>typeof t=="function",Yn=t=>typeof t=="boolean";function Xu(t){let e=+t;return Number.isInteger(e)&&String(e)===t}var Ae=t=>t.copy_||t.base_;var si=t=>t.modified_?t.copy_:t.base_;function ei(t,e){if(uo(t))return new Map(t);if(po(t))return new Set(t);if(lo(t))return Array[so].slice.call(t);let o=Ks(t);if(e===!0||e==="class_only"&&!o){let n=te.getOwnPropertyDescriptors(t);delete n[j];let i=Reflect.ownKeys(n);for(let a=0;a<i.length;a++){let s=i[a],l=n[s];l[Xr]===!1&&(l[Xr]=!0,l[Jn]=!0),(l.get||l.set)&&(n[s]={[Jn]:!0,[Xr]:!0,[ro]:l[ro],[gr]:t[s]})}return te.create(Mt(t),n)}else{let n=Mt(t);if(n!==null&&o)return{...t};let i=te.create(n);return te.assign(i,t)}}function ci(t,e=!1){return fo(t)||be(t)||!re(t)||(xr(t)>1&&te.defineProperties(t,{set:Jr,add:Jr,clear:Jr,delete:Jr}),te.freeze(t),e&&co(t,(o,n)=>{ci(n,!0)},!1)),t}function ep(){de(2)}var Jr={[gr]:ep};function fo(t){return t===null||!ai(t)?!0:te.isFrozen(t)}var no="MapSet",ti="Patches",$s="ArrayMethods",qs={};function tt(t){let e=qs[t];return e||de(0,t),e}var Hs=t=>!!qs[t];var yr,Zs=()=>yr,tp=(t,e)=>({drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Hs(no)?tt(no):void 0,arrayMethodsPlugin_:Hs($s)?tt($s):void 0});function zs(t,e){e&&(t.patchPlugin_=tt(ti),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function ri(t){oi(t),t.drafts_.forEach(rp),t.drafts_=null}function oi(t){t===yr&&(yr=t.parent_)}var Ws=t=>yr=tp(yr,t);function rp(t){let e=t[j];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function Vs(t,e){e.unfinalizedDrafts_=e.drafts_.length;let o=e.drafts_[0];if(t!==void 0&&t!==o){o[j].modified_&&(ri(e),de(4)),re(t)&&(t=Gs(e,t));let{patchPlugin_:i}=e;i&&i.generateReplacementPatches_(o[j].base_,t,e)}else t=Gs(e,o);return op(e,t,!0),ri(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==js?t:void 0}function Gs(t,e){if(fo(e))return e;let o=e[j];if(!o)return io(e,t.handledSet_,t);if(!ho(o,t))return e;if(!o.modified_)return o.base_;if(!o.finalized_){let{callbacks_:n}=o;if(n)for(;n.length>0;)n.pop()(t);Js(o,t)}return o.copy_}function op(t,e,o=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&ci(e,o)}function Ys(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}var ho=(t,e)=>t.scope_===e,np=[];function Qs(t,e,o,n){let i=Ae(t),a=t.type_;if(n!==void 0&&Xn(i,n,a)===e){oo(i,n,o,a);return}if(!t.draftLocations_){let l=t.draftLocations_=new Map;co(i,(d,p)=>{if(be(p)){let h=l.get(p)||[];h.push(d),l.set(p,h)}})}let s=t.draftLocations_.get(e)??np;for(let l of s)oo(i,l,o,a)}function ip(t,e,o){t.callbacks_.push(function(i){let a=e;if(!a||!ho(a,i))return;i.mapSetPlugin_?.fixSetContents(a);let s=si(a);Qs(t,a.draft_??a,s,o),Js(a,i)})}function Js(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 i=n.getPath(t);i&&n.generatePatches_(t,i,e)}Ys(t)}}function ap(t,e,o){let{scope_:n}=t;if(be(o)){let i=o[j];ho(i,n)&&i.callbacks_.push(function(){eo(t);let s=si(i);Qs(t,o,s,e)})}else re(o)&&t.callbacks_.push(function(){let a=Ae(t);t.type_===3?a.has(o)&&io(o,n.handledSet_,n):Xn(a,e,t.type_)===o&&n.drafts_.length>1&&(t.assigned_.get(e)??!1)===!0&&t.copy_&&io(Xn(t.copy_,e,t.type_),n.handledSet_,n)})}function io(t,e,o){return!o.immer_.autoFreeze_&&o.unfinalizedDrafts_<1||be(t)||e.has(t)||!re(t)||fo(t)||(e.add(t),co(t,(n,i)=>{if(be(i)){let a=i[j];if(ho(a,o)){let s=si(a);oo(t,n,s,t.type_),Ys(a)}}else re(i)&&io(i,e,o)})),t}function sp(t,e){let o=lo(t),n={type_:o?1:0,scope_:e?e.scope_:Zs(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},i=n,a=ao;o&&(i=[n],a=br);let{revoke:s,proxy:l}=Proxy.revocable(i,a);return n.draft_=l,n.revoke_=s,[l,n]}var ao={get(t,e){if(e===j)return t;let o=t.scope_.arrayMethodsPlugin_,n=t.type_===1&&typeof e=="string";if(n&&o?.isArrayOperationMethod(e))return o.createMethodInterceptor(t,e);let i=Ae(t);if(!Zn(i,e,t.type_))return lp(t,i,e);let a=i[e];if(t.finalized_||!re(a)||n&&t.operationMethod&&o?.isMutatingArrayMethod(t.operationMethod)&&Xu(e))return a;if(a===Qn(t.base_,e)||cp(t,e,a)){eo(t);let s=t.type_===1?+e:e,l=ii(t.scope_,a,t,s);return t.copy_[s]=l}return a},has(t,e){return e in Ae(t)},ownKeys(t){return Reflect.ownKeys(Ae(t))},set(t,e,o){let n=Xs(Ae(t),e);if(n?.set)return n.set.call(t.draft_,o),!0;if(!t.modified_){let i=Qn(Ae(t),e),a=i?.[j];if(a&&a.base_===o)return t.copy_[e]=o,t.assigned_.set(e,!1),!0;if(Ju(o,i)&&(o!==void 0||Zn(t.base_,e,t.type_)))return!0;eo(t),ni(t)}return t.copy_[e]===o&&(o!==void 0||Zn(t.copy_,e,t.type_))||Number.isNaN(o)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=o,t.assigned_.set(e,!0),ap(t,e,o)),!0},deleteProperty(t,e){return eo(t),Qn(t.base_,e)!==void 0||e in t.base_?(t.assigned_.set(e,!1),ni(t)):t.assigned_.delete(e),t.copy_&&delete t.copy_[e],!0},getOwnPropertyDescriptor(t,e){let o=Ae(t),n=Reflect.getOwnPropertyDescriptor(o,e);return n&&{[Xr]:!0,[Jn]:t.type_!==1||e!=="length",[ro]:n[ro],[gr]:o[e]}},defineProperty(){de(11)},getPrototypeOf(t){return Mt(t.base_)},setPrototypeOf(){de(12)}},br={};for(let t in ao){let e=ao[t];br[t]=function(){let o=arguments;return o[0]=o[0][0],e.apply(this,o)}}br.deleteProperty=function(t,e){return br.set.call(this,t,e,void 0)};br.set=function(t,e,o){return ao.set.call(this,t[0],e,o,t[0])};function Qn(t,e){let o=t[j];return(o?Ae(o):t)[e]}function cp(t,e,o){return t.type_!==1||!t.allIndicesReassigned_||t.assigned_?.get(e)||!re(o)||o[j]?!1:t.baseRefs_.has(o)}function lp(t,e,o){let n=Xs(e,o);return n?gr in n?n[gr]:n.get?.call(t.draft_):void 0}function Xs(t,e){if(!(e in t))return;let o=Mt(t);for(;o;){let n=Object.getOwnPropertyDescriptor(o,e);if(n)return n;o=Mt(o)}}function ni(t){t.modified_||(t.modified_=!0,t.parent_&&ni(t.parent_))}function eo(t){t.copy_||(t.assigned_=new Map,t.copy_=ei(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var dp=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,o,n)=>{if(Ft(e)&&!Ft(o)){let a=o;o=e;let s=this;return function(d=a,...p){return s.produce(d,h=>o.call(this,h,...p))}}Ft(o)||de(6),n!==void 0&&!Ft(n)&&de(7);let i;if(re(e)){let a=Ws(this),s=ii(a,e,void 0),l=!0;try{i=o(s),l=!1}finally{l?ri(a):oi(a)}return zs(a,n),Vs(i,a)}else if(!e||!ai(e)){if(i=o(e),i===void 0&&(i=e),i===js&&(i=void 0),this.autoFreeze_&&ci(i,!0),n){let a=[],s=[];tt(ti).generateReplacementPatches_(e,i,{patches_:a,inversePatches_:s}),n(a,s)}return i}else de(1,e)},this.produceWithPatches=(e,o)=>{if(Ft(e))return(s,...l)=>this.produceWithPatches(s,d=>e(d,...l));let n,i;return[this.produce(e,o,(s,l)=>{n=s,i=l}),n,i]},Yn(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),Yn(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),Yn(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){re(t)||de(8),be(t)&&(t=ec(t));let e=Ws(this),o=ii(e,t,void 0);return o[j].isManual_=!0,oi(e),o}finishDraft(t,e){let o=t&&t[j];(!o||!o.isManual_)&&de(9);let{scope_:n}=o;return zs(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 o;for(o=e.length-1;o>=0;o--){let i=e[o];if(i.path.length===0&&i.op==="replace"){t=i.value;break}}o>-1&&(e=e.slice(o+1));let n=tt(ti).applyPatches_;return be(t)?n(t,e):this.produce(t,i=>n(i,e))}};function ii(t,e,o,n){let[i,a]=uo(e)?tt(no).proxyMap_(e,o):po(e)?tt(no).proxySet_(e,o):sp(e,o);return(o?.scope_??Zs()).drafts_.push(i),a.callbacks_=o?.callbacks_??[],a.key_=n,o&&n!==void 0?ip(o,a,n):a.callbacks_.push(function(d){d.mapSetPlugin_?.fixSetContents(a);let{patchPlugin_:p}=d;a.modified_&&p&&p.generatePatches_(a,[],d)}),i}function ec(t){return be(t)||de(10,t),tc(t)}function tc(t){if(!re(t)||fo(t))return t;let e=t[j],o,n=!0;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,o=ei(t,e.scope_.immer_.useStrictShallowCopy_),n=e.scope_.immer_.shouldUseStrictIteration()}else o=ei(t,!0);return co(o,(i,a)=>{oo(o,i,tc(a))},n),e&&(e.finalized_=!1),o}var up=globalThis.Iterator,xx=typeof up?.from=="function";var pp=new dp,li=pp.produce;function rc(t){return({dispatch:o,getState:n})=>i=>a=>typeof a=="function"?a(o,n,t):i(a)}var oc=rc(),nc=rc;var fp=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?mr:mr.apply(null,arguments)},Ax=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}},hp=t=>t&&typeof t.match=="function";function De(t,e){function o(...n){if(e){let i=e(...n);if(!i)throw new Error(Re(0));return{type:t,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:t,payload:n[0]}}return o.toString=()=>`${t}`,o.type=t,o.match=n=>Ds(n)&&n.type===t,o}var lc=class Sr extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,Sr.prototype)}static get[Symbol.species](){return Sr}concat(...e){return super.concat.apply(this,e)}prepend(...e){return e.length===1&&Array.isArray(e[0])?new Sr(...e[0].concat(this)):new Sr(...e.concat(this))}};function ic(t){return re(t)?li(t,()=>{}):t}function mo(t,e,o){return t.has(e)?t.get(e):t.set(e,o(e)).get(e)}function mp(t){return typeof t=="boolean"}var gp=()=>function(e){let{thunk:o=!0,immutableCheck:n=!0,serializableCheck:i=!0,actionCreatorCheck:a=!0}=e??{},s=new lc;return o&&(mp(o)?s.push(oc):s.push(nc(o.extraArgument))),s},yp="RTK_autoBatch";var ac=t=>e=>{setTimeout(e,t)},bp=(t,e)=>o=>{let n=!1,i=()=>{n||(n=!0,cancelAnimationFrame(a),clearTimeout(s),o())},a=t(i),s=setTimeout(i,e)},xp=(t={type:"raf"})=>e=>(...o)=>{let n=e(...o),i=!0,a=!1,s=!1,l=new Set,d=t.type==="tick"?queueMicrotask:t.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?bp(window.requestAnimationFrame,100):ac(10):t.type==="callback"?t.queueNotification:ac(t.timeout),p=()=>{s=!1,a&&(a=!1,l.forEach(h=>h()))};return Object.assign({},n,{subscribe(h){let f=()=>i&&h(),m=n.subscribe(f);return l.add(h),()=>{m(),l.delete(h)}},dispatch(h){try{return i=!h?.meta?.[yp],a=!i,a&&(s||(s=!0,d(p))),n.dispatch(h)}finally{i=!0}}})},Sp=t=>function(o){let{autoBatch:n=!0}=o??{},i=new lc(t);return n&&i.push(xp(typeof n=="object"?n:void 0)),i};function dc(t){let e=gp(),{reducer:o=void 0,middleware:n,devTools:i=!0,duplicateMiddlewareCheck:a=!0,preloadedState:s=void 0,enhancers:l=void 0}=t||{},d;if(typeof o=="function")d=o;else if(Qr(o))d=Fs(o);else throw new Error(Re(1));let p;typeof n=="function"?p=n(e):p=e();let h=mr;i&&(h=fp({trace:!1,...typeof i=="object"&&i}));let f=Ms(...p),m=Sp(f),b=typeof l=="function"?l(m):m(),S=h(...b);return qn(d,s,S)}function uc(t){let e={},o=[],n,i={addCase(a,s){let l=typeof a=="string"?a:a.type;if(!l)throw new Error(Re(28));if(l in e)throw new Error(Re(29));return e[l]=s,i},addAsyncThunk(a,s){return s.pending&&(e[a.pending.type]=s.pending),s.rejected&&(e[a.rejected.type]=s.rejected),s.fulfilled&&(e[a.fulfilled.type]=s.fulfilled),s.settled&&o.push({matcher:a.settled,reducer:s.settled}),i},addMatcher(a,s){return o.push({matcher:a,reducer:s}),i},addDefaultCase(a){return n=a,i}};return t(i),[e,o,n]}function vp(t){return typeof t=="function"}function Ep(t,e){let[o,n,i]=uc(e),a;if(vp(t))a=()=>ic(t());else{let l=ic(t);a=()=>l}function s(l=a(),d){let p=[o[d.type],...n.filter(({matcher:h})=>h(d)).map(({reducer:h})=>h)];return p.filter(h=>!!h).length===0&&(p=[i]),p.reduce((h,f)=>{if(f)if(be(h)){let b=f(h,d);return b===void 0?h:b}else{if(re(h))return li(h,m=>f(m,d));{let m=f(h,d);if(m===void 0){if(h===null)return h;throw Error("A case reducer on a non-draftable value must not return undefined")}return m}}return h},l)}return s.getInitialState=a,s}var Cp=(t,e)=>hp(t)?t.match(e):t(e);function wp(...t){return e=>t.some(o=>Cp(o,e))}var Op="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Ap=(t=21)=>{let e="",o=t;for(;o--;)e+=Op[Math.random()*64|0];return e},Rp=["name","message","stack","code"],di=class{constructor(t,e){this.payload=t,this.meta=e}payload;meta;_type},sc=class{constructor(t,e){this.payload=t,this.meta=e}payload;meta;_type},_p=t=>{if(typeof t=="object"&&t!==null){let e={};for(let o of Rp)typeof t[o]=="string"&&(e[o]=t[o]);return e}return{message:String(t)}},cc="External signal was aborted",Ip=(()=>{function t(e,o,n){let i=De(e+"/fulfilled",(d,p,h,f)=>({payload:d,meta:{...f||{},arg:h,requestId:p,requestStatus:"fulfilled"}})),a=De(e+"/pending",(d,p,h)=>({payload:void 0,meta:{...h||{},arg:p,requestId:d,requestStatus:"pending"}})),s=De(e+"/rejected",(d,p,h,f,m)=>({payload:f,error:(n&&n.serializeError||_p)(d||"Rejected"),meta:{...m||{},arg:h,requestId:p,rejectedWithValue:!!f,requestStatus:"rejected",aborted:d?.name==="AbortError",condition:d?.name==="ConditionError"}}));function l(d,{signal:p}={}){return(h,f,m)=>{let b=n?.idGenerator?n.idGenerator(d):Ap(),S=new AbortController,E,v;function C(g){v=g,S.abort()}p&&(p.aborted?C(cc):p.addEventListener("abort",()=>C(cc),{once:!0}));let L=(async function(){let g;try{let x=n?.condition?.(d,{getState:f,extra:m});if(kp(x)&&(x=await x),x===!1||S.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};let _=new Promise((I,R)=>{E=()=>{R({name:"AbortError",message:v||"Aborted"})},S.signal.addEventListener("abort",E,{once:!0})});h(a(b,d,n?.getPendingMeta?.({requestId:b,arg:d},{getState:f,extra:m}))),g=await Promise.race([_,Promise.resolve(o(d,{dispatch:h,getState:f,extra:m,requestId:b,signal:S.signal,abort:C,rejectWithValue:((I,R)=>new di(I,R)),fulfillWithValue:((I,R)=>new sc(I,R))})).then(I=>{if(I instanceof di)throw I;return I instanceof sc?i(I.payload,b,d,I.meta):i(I,b,d)})])}catch(x){g=x instanceof di?s(null,b,d,x.payload,x.meta):s(x,b,d)}finally{E&&S.signal.removeEventListener("abort",E)}return n&&!n.dispatchConditionRejection&&s.match(g)&&g.meta.condition||h(g),g})();return Object.assign(L,{abort:C,requestId:b,arg:d,unwrap(){return L.then(Tp)}})}}return Object.assign(l,{pending:a,rejected:s,fulfilled:i,settled:wp(s,i),typePrefix:e})}return t.withTypes=()=>t,t})();function Tp(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function kp(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var pc=Symbol.for("rtk-slice-createasyncthunk"),_x={[pc]:Ip};function Lp(t,e){return`${t}/${e}`}function Np({creators:t}={}){let e=t?.asyncThunk?.[pc];return function(n){let{name:i,reducerPath:a=i}=n;if(!i)throw new Error(Re(11));typeof process<"u";let s=(typeof n.reducers=="function"?n.reducers(Fp()):n.reducers)||{},l=Object.keys(s),d={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},p={addCase(g,y){let x=typeof g=="string"?g:g.type;if(!x)throw new Error(Re(12));if(x in d.sliceCaseReducersByType)throw new Error(Re(13));return d.sliceCaseReducersByType[x]=y,p},addMatcher(g,y){return d.sliceMatchers.push({matcher:g,reducer:y}),p},exposeAction(g,y){return d.actionCreators[g]=y,p},exposeCaseReducer(g,y){return d.sliceCaseReducersByName[g]=y,p}};l.forEach(g=>{let y=s[g],x={reducerName:g,type:Lp(i,g),createNotation:typeof n.reducers=="function"};Dp(y)?Bp(x,y,p,e):Mp(x,y,p)});function h(){let[g={},y=[],x=void 0]=typeof n.extraReducers=="function"?uc(n.extraReducers):[n.extraReducers],_={...g,...d.sliceCaseReducersByType};return Ep(n.initialState,I=>{for(let R in _)I.addCase(R,_[R]);for(let R of d.sliceMatchers)I.addMatcher(R.matcher,R.reducer);for(let R of y)I.addMatcher(R.matcher,R.reducer);x&&I.addDefaultCase(x)})}let f=g=>g,m=new Map,b=new WeakMap,S;function E(g,y){return S||(S=h()),S(g,y)}function v(){return S||(S=h()),S.getInitialState()}function C(g,y=!1){function x(I){let R=I[g];return typeof R>"u"&&y&&(R=mo(b,x,v)),R}function _(I=f){let R=mo(m,y,()=>new WeakMap);return mo(R,I,()=>{let F={};for(let[O,T]of Object.entries(n.selectors??{}))F[O]=Pp(T,I,()=>mo(b,I,v),y);return F})}return{reducerPath:g,getSelectors:_,get selectors(){return _(x)},selectSlice:x}}let L={name:i,reducer:E,actions:d.actionCreators,caseReducers:d.sliceCaseReducersByName,getInitialState:v,...C(a),injectInto(g,{reducerPath:y,...x}={}){let _=y??a;return g.inject({reducerPath:_,reducer:E},x),{...L,...C(_,!0)}}};return L}}function Pp(t,e,o,n){function i(a,...s){let l=e(a);return typeof l>"u"&&n&&(l=o()),t(l,...s)}return i.unwrapped=t,i}var fc=Np();function Fp(){function t(e,o){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...o}}return t.withTypes=()=>t,{reducer(e){return Object.assign({[e.name](...o){return e(...o)}}[e.name],{_reducerDefinitionType:"reducer"})},preparedReducer(e,o){return{_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:o}},asyncThunk:t}}function Mp({type:t,reducerName:e,createNotation:o},n,i){let a,s;if("reducer"in n){if(o&&!Up(n))throw new Error(Re(17));a=n.reducer,s=n.prepare}else a=n;i.addCase(t,a).exposeCaseReducer(e,a).exposeAction(e,s?De(t,s):De(t))}function Dp(t){return t._reducerDefinitionType==="asyncThunk"}function Up(t){return t._reducerDefinitionType==="reducerWithPrepare"}function Bp({type:t,reducerName:e},o,n,i){if(!i)throw new Error(Re(18));let{payloadCreator:a,fulfilled:s,pending:l,rejected:d,settled:p,options:h}=o,f=i(t,a,h);n.exposeAction(e,f),s&&n.addCase(f.fulfilled,s),l&&n.addCase(f.pending,l),d&&n.addCase(f.rejected,d),p&&n.addMatcher(f.settled,p),n.exposeCaseReducer(e,{fulfilled:s||go,pending:l||go,rejected:d||go,settled:p||go})}function go(){}var hc="listener",mc="completed",gc="cancelled",Ix=`task-${gc}`,Tx=`task-${mc}`,kx=`${hc}-${gc}`,Lx=`${hc}-${mc}`;var{assign:yc}=Object;var ui="listenerMiddleware";var $p=yc(De(`${ui}/add`),{withTypes:()=>$p}),Nx=De(`${ui}/removeAll`),Hp=yc(De(`${ui}/remove`),{withTypes:()=>Hp});function Re(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. `}window.ftReduxStores||(window.ftReduxStores={});var Ue=class t extends Ee{static get(e){var o;let n=typeof e=="string"?e:e.name,i=typeof e=="string"?void 0:e,a=window.ftReduxStores[n];if(Pt(a))return a;if(i==null)return;let s=fc({...i,reducers:(o=i.reducers)!==null&&o!==void 0?o:{}}),l=dc({reducer:(d,p)=>{if(p.type==="CLEAR_FT_REDUX_STORE"){let h=ie(s.getInitialState());for(let f of p.keeping)h[f]=(d??h)[f];return h}else if(typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...d,...p.overwrites};return s.reducer(d,p)}});return window.ftReduxStores[i.name]=new t(s,l,i.eventBus)}constructor(e,o,n){super(),this.reduxSlice=e,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new fr,this.injectInto=(a,s)=>this.reduxSlice.injectInto(a,s),this.selectSlice=a=>this.reduxSlice.selectSlice(a);let i=a=>a!=null?JSON.parse(JSON.stringify(a)):a;this.actions=new Proxy(this.reduxSlice.actions,{get:(a,s,l)=>{let d=s,p=a[d];return p?(...h)=>{let f=p(...h.map(i));return this.reduxStore.dispatch(f),f}:h=>{let f=d,m=this.getState()[f];q(m,h)||this.setState({[f]:i(h)})}}}),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()}};function zp(){var t;for(let e of Object.values((t=window.ftReduxStores)!==null&&t!==void 0?t:{}))Pt(e)&&e.clear()}var vr=class{constructor(e,o,n){this.store=e,this.valueSelector=o,this.callback=n}watch(){return this.stop(),this.lastValue=this.valueSelector(this.store.getState()),this.unsubscribe=this.store.subscribe(()=>{let e=this.store.getState(),o=this.valueSelector(e);ve(this.lastValue,o)&&(this.callback(o,e),this.lastValue=o)}),this}stop(){return this.unsubscribe!=null&&(this.unsubscribe(),this.unsubscribe=void 0),this.lastValue=void 0,this}};function Wp(t,e,o){return new vr(t,e,o).watch()}var Dt=class{constructor(){this.requestConsumers=new Map}getOrCreateRequestConsumers(e){var o;return(o=this.requestConsumers.get(e))!==null&&o!==void 0?o:this.requestConsumers.set(e,new Set).get(e)}registerComponent(e,o){for(let n of o)this.getOrCreateRequestConsumers(n).add(e).size==1&&this.onNewNeededRequest(n)}unregisterComponent(e,o){for(let n of o)this.getOrCreateRequestConsumers(n).delete(e)}isRequestNeeded(e){return this.getOrCreateRequestConsumers(e).size>0}};var mi={};P(mi,{scrollHelper:()=>Vp});var fi,yo=new Map,hi=class{lock(e,o){if(o){let n=yo.get(o);if(n==null||n===e)return yo.set(o,e),o}}release(e,o){o&&yo.get(o)===e&&yo.delete(o)}findFirstScrollableParent(e){var o;let n,i;for(let a of an(e)){let s=a,l=this.elementCanScroll(s);if(l&&s.clientHeight&&s.clientHeight<s.scrollHeight){n=s;break}else l&&i==null&&(i=s)}return(o=n??i)!==null&&o!==void 0?o:document.body}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)&&!["contents"].includes(getComputedStyle(e).display)}catch{return!1}}getAbsoluteScrollOffset(e,o){var n,i;let a=0;for(;o&&o.offsetParent!==e.offsetParent;)a+=(n=o.offsetTop)!==null&&n!==void 0?n:0,o=o.offsetParent;return a+((i=o?.offsetTop)!==null&&i!==void 0?i:0)-e.offsetTop}computeTopOffsetRatio(e,o){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return o;default:return 0}}scrollIntoViewIfPossible(e,o){let n=this.findFirstScrollableParent(e);if(e&&this.lock(this,n)){let i=this.getAbsoluteScrollOffset(n,e),a=i-n.clientHeight+e.clientHeight,s=i,l=Le(0,(s-n.scrollTop)/(s-a),1),d=this.computeTopOffsetRatio(o?.position,l)*(a-s)+s;n.scrollTo({behavior:o?.behavior,top:d})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,n);this.release(this,n)}};window.FluidTopicsScrollHelper=(fi=window.FluidTopicsScrollHelper)!==null&&fi!==void 0?fi:new hi;var Vp=window.FluidTopicsScrollHelper;var bi={};P(bi,{SearchPlaceConverter:()=>Bt,SearchPlaceQueryParams:()=>k,isSearchPlaceQueryParams:()=>ol,serializeRequest:()=>Zp});var Gp=t=>typeof t=="object"&&t!=null;var jp=t=>typeof t=="number",bo=t=>typeof t=="string",Hc=t=>Gp(t)&&bo(t.endpoint)&&bo(t.method)&&bo(t.statusText)&&bo(t.body)&&jp(t.status),bc;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(bc||(bc={}));var xc;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(xc||(xc={}));var Sc;(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"})(Sc||(Sc={}));var vc;(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"})(vc||(vc={}));var Ec;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Ec||(Ec={}));var Cc;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(Cc||(Cc={}));var wc;(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(wc||(wc={}));var Oc;(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"})(Oc||(Oc={}));var Ac;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(Ac||(Ac={}));var Rc;(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"})(Rc||(Rc={}));var _c;(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"})(_c||(_c={}));var Ic;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Ic||(Ic={}));var Tc;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Tc||(Tc={}));var kc;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(kc||(kc={}));var Lc;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Lc||(Lc={}));var Nc;(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"})(Nc||(Nc={}));var rt;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(rt||(rt={}));var Pc;(function(t){t.ASC="ASC",t.DESC="DESC"})(Pc||(Pc={}));var Fc;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Fc||(Fc={}));var xo;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(xo||(xo={}));var zc=t=>Object.keys(xo).includes(t);var Mc;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Mc||(Mc={}));var So;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(So||(So={}));var Dc;(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"})(Dc||(Dc={}));var Ut;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Ut||(Ut={}));var Wc=t=>Object.keys(Ut).includes(t);var Uc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Uc||(Uc={}));var gi;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(gi||(gi={}));var Bc;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Bc||(Bc={}));var $;(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"})($||($={}));var ae;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(ae||(ae={}));var $c;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})($c||($c={}));var Vc;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(Vc||(Vc={}));var Gc;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Gc||(Gc={}));var jc;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SUMMARY="SUMMARY",t.SEMANTIC_SEARCH="SEMANTIC_SEARCH",t.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",t.DOCUMENTATION="DOCUMENTATION",t.OTHER="OTHER"})(jc||(jc={}));var Kc;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(Kc||(Kc={}));var qc;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(qc||(qc={}));var Zc;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Zc||(Zc={}));var Yc;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Yc||(Yc={}));var Qc;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(Qc||(Qc={}));var Jc;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(Jc||(Jc={}));var Xc;(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"})(Xc||(Xc={}));var el;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(el||(el={}));var Kp={[$.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 tl(t,e){return t===e||(Kp[t]??[]).some(o=>tl(o,e))}function yi(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=>tl(n,e))}function qp(t){return`"${t}"`}function rl(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function Zp(t,e){return new Bt(t).serialize(e)}var k;(function(t){t.LOCALE="content-lang",t.QUERY="query",t.SCOPE="scope",t.FILTERS="filters",t.VIRTUAL_FIELD="virtual-field",t.PERIOD="period",t.VALUE_FILTERS="value-filters",t.NEGATIVE_VALUE_FILTERS="negative-value-filters",t.DATE_FILTERS="date-filters",t.RANGE_FILTERS="range-filters",t.SORT="sort",t.PER_PAGE="per-page",t.KEYWORD_MATCH="keyword-match"})(k||(k={}));var Yp=new Set(Object.values(k));function ol(t){return Yp.has(t)}var Bt=class{constructor(e,o=20,n=!1,i="en-US"){this.baseUrl=e,this.defaultPerPage=o,this.allLanguagesAllowed=n,this.defaultContentLocale=i,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"},this.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]]}serialize(e,o){return this.serializeToCurrentPageIfPossible(e,o??"/search")}serializeToCurrentPageIfPossible(e,o){let n=o==null||o.trim().length===0,i=new URL(n?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${o}`);return i.search=this.toURLSearchParams(e),i.toString()}toURLSearchParams(e,o=!1){var n,i,a,s,l,d,p,h,f,m,b,S,E;let v=new URLSearchParams;e.contentLocale?(!o||e.contentLocale!==this.defaultContentLocale)&&v.append(k.LOCALE,e.contentLocale):v.append(k.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((n=e.query)===null||n===void 0?void 0:n.length)>0&&v.append(k.QUERY,e.query);let C=R=>{var F,O;let T=((O=(F=R.valueFilter)===null||F===void 0?void 0:F.values)!==null&&O!==void 0?O:[]).map(B=>this.escapeFilters(B)).map(B=>qp(rl(B))).join("_");return`${R.key}~${T}`},L=(a=(i=e.metadataFilters)===null||i===void 0?void 0:i.filter(R=>R.valueFilter&&!R.valueFilter.negative))!==null&&a!==void 0?a:[];L.length>0&&v.append(k.VALUE_FILTERS,L.map(C).join("*"));let g=(l=(s=e.metadataFilters)===null||s===void 0?void 0:s.filter(R=>R.valueFilter&&R.valueFilter.negative))!==null&&l!==void 0?l:[];g.length>0&&v.append(k.NEGATIVE_VALUE_FILTERS,g.map(C).join("*"));let y=(p=(d=e.metadataFilters)===null||d===void 0?void 0:d.filter(R=>R.dateFilter))!==null&&p!==void 0?p:[];if(y.length>0){let R=y.map(F=>{var O;return`${F.key}~${(O=F.dateFilter)===null||O===void 0?void 0:O.type.toLowerCase()}`}).join("*");v.append(k.DATE_FILTERS,R)}let x=(f=(h=e.metadataFilters)===null||h===void 0?void 0:h.filter(R=>R.rangeFilter))!==null&&f!==void 0?f:[];if(x.length>0){let R=x.map(F=>{var O,T;return`${F.key}~${(O=F.rangeFilter)===null||O===void 0?void 0:O.from}_${(T=F.rangeFilter)===null||T===void 0?void 0:T.to}`}).join("*");v.append(k.RANGE_FILTERS,R)}e.virtualField&&e.virtualField!=="EVERYWHERE"&&v.append(k.VIRTUAL_FIELD,e.virtualField.toLowerCase()),e.scope&&e.scope!=="DEFAULT"&&v.append(k.SCOPE,e.scope.toLowerCase()),e.sortId!=null&&v.append(k.SORT,e.sortId),!((m=e.paging)===null||m===void 0)&&m.perPage&&((S=(b=e.paging)===null||b===void 0?void 0:b.perPage)!==null&&S!==void 0?S:this.defaultPerPage)!=this.defaultPerPage&&v.append(k.PER_PAGE,String(e.paging.perPage)),e.keywordMatch!=null&&v.append(k.KEYWORD_MATCH,e.keywordMatch.toLowerCase());let _=(E=e.otherQueryParams)!==null&&E!==void 0?E:{};for(let R in _)v.append(R,_[R]);let I=new Array;return v.forEach((R,F)=>{I.push(this.encodeQueryString(F)+"="+this.encodeQueryString(R))}),encodeURI(I.join("&")).replace(/#/g,"%23")}encodeQueryString(e){return encodeURIComponent(e).replace(/%20/g,"+")}parse(e){var o;let n=e.split("?"),i=this.fromURLSearchParams(n.slice(1).join("?")),a=n[0].split("/search/")[1];return a==null?i:{...i,scope:(o=this.scopeMapping[a])!==null&&o!==void 0?o:i.scope}}fromURLSearchParams(e){var o,n,i,a,s,l;try{e=decodeURI(e).replace(/%23/g,"#")}catch(C){console.warn("Could not decode search request query params, fallback on raw value",C)}let d=new URLSearchParams(e),p=d.get(k.LOCALE)==="all"?void 0:d.get(k.LOCALE),h=((o=d.get(k.VIRTUAL_FIELD))!==null&&o!==void 0?o:"EVERYWHERE").toUpperCase(),f=(n=d.get(k.SORT))===null||n===void 0?void 0:n.toLowerCase(),m=(i=d.get(k.SCOPE))!==null&&i!==void 0?i:"default",b=+((a=d.get(k.PER_PAGE))!==null&&a!==void 0?a:this.defaultPerPage),S=d.get(k.KEYWORD_MATCH),E=S?S.toUpperCase()===rt.MANDATORY?rt.MANDATORY:rt.OPTIONAL:void 0,v={};for(let C of d.keys())ol(C)||(v[C]=d.get(C));return{contentLocale:p??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:(s=d.get(k.QUERY))!==null&&s!==void 0?s:"",scope:(l=this.scopeMapping[m])!==null&&l!==void 0?l:"DEFAULT",virtualField:zc(h)?h:"EVERYWHERE",sortId:f,metadataFilters:this.parseCompatFilters(d),facets:[],paging:{page:1,perPage:Le(1,isNaN(b)?this.defaultPerPage:b,1e3)},keywordMatch:E,otherQueryParams:v}}parseCompatFilters(e){var o,n,i,a,s,l,d;let p=[];return e.has(k.FILTERS)&&(p=this.parseValueFilters((o=e.get(k.FILTERS))!==null&&o!==void 0?o:"")),(n=e.has(k.PERIOD))!==null&&n!==void 0&&n&&(p=[...p,...this.parseLegacyPeriodFilter(((i=e.get(k.PERIOD))!==null&&i!==void 0?i:"").toUpperCase())]),[...p,...this.parseValueFilters((a=e.get(k.VALUE_FILTERS))!==null&&a!==void 0?a:""),...this.parseValueFilters((s=e.get(k.NEGATIVE_VALUE_FILTERS))!==null&&s!==void 0?s:"",!0),...this.parseDateFilters((l=e.get(k.DATE_FILTERS))!==null&&l!==void 0?l:""),...this.parseRangeFilters((d=e.get(k.RANGE_FILTERS))!==null&&d!==void 0?d:"")]}splitUnknownFilter(e){return this.superEscapeFilters(e).split("*").map(o=>o.split("~"))}parseValueFilters(e,o=!1){return e.length===0?[]:this.splitUnknownFilter(e).map(n=>({key:n[0],valueFilter:{values:n[1].split("_").map(rl).map(i=>this.unescapeFilterValue(i)),negative:o}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],dateFilter:{type:Ut[o[1].toUpperCase()]}}))}parseRangeFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],rangeFilter:{from:o[1].split("_")[0],to:o[1].split("_")[1]}}))}escapeFilters(e){for(let[o,n,i]of this.filtersEscapeMapping)e=e.replaceAll(o,n);return e}superEscapeFilters(e){for(let[o,n,i]of this.filtersEscapeMapping)e=e.replaceAll(n,i);return e}unescapeFilterValue(e){for(let[o,n,i]of this.filtersEscapeMapping)e=e.replaceAll(i,o);return e}parseLegacyPeriodFilter(e){if(Wc(e))return[{key:"ft:lastEdition",dateFilter:{type:Ut[e]}}];if(e.startsWith("CUSTOM_")){let[o,n,i]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:n,to:i}}]}return[]}static clearSearchParamsInUrl(e){let o=new URL(e);return[k.LOCALE,k.FILTERS,k.VALUE_FILTERS,k.NEGATIVE_VALUE_FILTERS,k.DATE_FILTERS,k.RANGE_FILTERS].forEach(i=>{o.searchParams.delete(i)}),o.toString()}static updateLocaleParamInUrl(e,o){let n=new URL(e);return n.searchParams.delete(k.LOCALE),o!==void 0&&n.searchParams.append(k.LOCALE,o),n.toString()}};var Si={};P(Si,{toFtFormComponent:()=>Qp});var xi=Symbol("elementInternals"),Qp=z(Symbol("toFtFormComponent"),function(t){class e extends t{static get formAssociated(){return!0}get form(){return this[xi].form}constructor(...n){super(n),this[xi]=this.attachInternals()}setFormValue(n){this[xi].setFormValue(n)}}return e});var vi={};P(vi,{DateFormatter:()=>ot});var ot=class{static format(e,o,n,i,a){return window.moment?window.moment(e).locale(o).format(this.getMomentDateFormat(n,i,!!a)):this.getIntlDateTime(e,o,n,i,!!a)}static getMomentDateFormat(e,o,n){return n?"LT":e?o?"lll":"ll":o?"L LT":"L"}static getIntlDateTime(e,o,n,i,a){let s=typeof e=="string"?new Date(e):e,l=new Intl.DateTimeFormat(o,{dateStyle:n?"medium":"short"}).format(s),d=new Intl.DateTimeFormat(o,{timeStyle:"short"}).format(s);return a?d:i?`${l} ${d}`:l}static getTimezoneAsString(){let e=n=>String(Math.floor(n)).padStart(2,"0"),o=new Date().getTimezoneOffset();return`${o<0?"+":"-"}${e(Math.abs(o)/60)}:${e(Math.abs(o)%60)}`}};var Ci={};P(Ci,{ALL_KEYS_VALUE:()=>Ei,SameWindowStorageEvent:()=>$t});var Ei="__all__",$t=class extends CustomEvent{constructor(e,o,n){super("same-window-storage",{detail:{key:e,oldValue:o,newValue:n}})}keyMatch(e){return this.detail.key.includes(e)||this.detail.key==Ei}};Storage.prototype.setItem=new Proxy(Storage.prototype.setItem,{apply(t,e,o){let n=e.getItem(o[0]);Reflect.apply(t,e,o),window.dispatchEvent(new $t(o[0],n,o[1]))}});Storage.prototype.removeItem=new Proxy(Storage.prototype.removeItem,{apply(t,e,o){let n=e.getItem(o[0]);Reflect.apply(t,e,o),window.dispatchEvent(new $t(o[0],n))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(t,e,o){Reflect.apply(t,e,o),window.dispatchEvent(new $t(Ei))}});var Oi={};P(Oi,{FocusMainContentEvent:()=>wi});var wi=class extends Event{constructor(){super("ft-focus-main-content",{composed:!0,bubbles:!0})}};var nl={};window.FluidTopicsA11yHints={isKeyboardNavigation:!1,lastPressedKey:""};function Jp(t){(t.key==="Enter"||t.key===" "||t.key==="Tab")&&(window.FluidTopicsA11yHints.isKeyboardNavigation=!0),window.FluidTopicsA11yHints.lastPressedKey=t.key}function Xp(t){window.FluidTopicsA11yHints.isKeyboardNavigation=t.detail==0}document.addEventListener("keydown",Jp);document.addEventListener("click",Xp);var il=M`
|
|
47
|
+
`;var Ls={};var jn={};P(jn,{ParametrizedLabelResolver:()=>pr});var pr=class t{constructor(e,o){this.defaultLabels=e,this.labels=o}resolve(e,...o){var n,i;e=this.resolvePluralKey(e,o);let a=(i=(n=this.labels[e])!==null&&n!==void 0?n:this.defaultLabels[e])!==null&&i!==void 0?i:"";return t.replaceParameters(a,...o)}static replaceParameters(e,...o){return o.forEach((n,i)=>e=e.replace(new RegExp(`\\{${i}([^}]*)\\}`,"g"),(a,s)=>t.formatValue(n,s))),e}resolvePluralKey(e,o){for(let n of o)if(typeof n=="number"){let i=`${String(e)}[\\=${n}]`;if(i in this.labels||i in this.defaultLabels)return i}return e}static formatValue(e,o){return e instanceof Date?t.formatDate(e,o):e??""}static formatDate(e,o){let n=i=>o?.includes("date")?e.toLocaleDateString(i):o?.includes("time")?e.toLocaleTimeString(i):e.toLocaleString(i);try{return n(document.documentElement.lang)}catch{return n()}}};var pi={};P(pi,{FtCommandQueue:()=>fr,FtLitElementRedux:()=>et,FtReduxStore:()=>Ue,FtStateManager:()=>Dt,ReduxWatcher:()=>vr,clearAllStores:()=>zp,isFtReduxStore:()=>Pt,redux:()=>Zr,reduxEventListener:()=>Ku,reduxReactive:()=>ju,watch:()=>Wp,withRedux:()=>Ns});var ju=()=>(t,e)=>{var o;let n=t.constructor;n.reduxReactiveProperties=new Set(n.reduxReactiveProperties),(o=n.reduxReactiveProperties)===null||o===void 0||o.add(e)},Zr=t=>{let e=t??{};return(o,n)=>{var i;let a={hasChanged:ve,attribute:!1,...e};A(a)(o,n);let s=o.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(n,{selector:(i=e.selector)!==null&&i!==void 0?i:(l=>l[n]),store:e.store})}},Ku=t=>(e,o)=>{let n=e.constructor;n.reduxEventListeners=new Map(n.reduxEventListeners),n.reduxEventListeners.set(o,t)};var fr=class{constructor(){this.queue=[]}add(e,o=!1){o&&this.clear(e.type),this.queue.push(e)}consume(e){let o=this.queue.find(n=>n.type===e);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}clear(e){typeof e=="string"?this.queue=this.queue.filter(o=>o.type!==e):this.queue=this.queue.filter(o=>!e.test(o.type))}};function Pt(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var hr=Symbol("internalReduxEventsUnsubscribers"),Me=Symbol("internalStoresUnsubscribers"),Xe=Symbol("internalStores"),Ns=z(Symbol("withRedux"),function(t){var e,o,n;class i extends t{constructor(){super(...arguments),this[e]=new Map,this[o]=new Map,this[n]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(l=>s.has(l))&&this.updateFromStores()}getUnnamedStore(){if(this[Xe].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Xe].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[Xe].get(s)}addStore(s,l){var d;l=(d=l??s.name)!==null&&d!==void 0?d:"default-store",this.unsubscribeFromStore(l),this[Xe].set(l,s),this.subscribeToStore(l,s),this.updateFromStores()}removeStore(s){let l=typeof s=="string"?s:s.name;this.unsubscribeFromStore(l),this[Xe].delete(l)}setupStores(){this.unsubscribeFromStores(),this[Xe].forEach((s,l)=>this.subscribeToStore(l,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,l)=>{let d=this.constructor.getPropertyOptions(l);if(!d?.attribute||!this.hasAttribute(typeof d?.attribute=="string"?d.attribute:l)){let p=this.getStore(s.store);p&&(s.store?this[Me].has(s.store):this[Me].size>0)&&(this[l]=s.selector(p.getState(),this))}})}subscribeToStore(s,l){var d;this[Me].set(s,l.subscribe(()=>this.updateFromStores())),this[hr].set(s,[]),Pt(l)&&l.eventBus&&((d=this.reduxConstructor.reduxEventListeners)===null||d===void 0||d.forEach((p,h)=>{if(typeof this[h]=="function"&&(!p.store||l.name===p.store)){let f=m=>this[h](m);l.addEventListener(p.eventName,f),this[hr].get(s).push(()=>l.removeEventListener(p.eventName,f))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[Me].forEach((s,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(s){var l;this[Me].has(s)&&this[Me].get(s)(),this[Me].delete(s),(l=this[hr].get(s))===null||l===void 0||l.forEach(d=>d()),this[hr].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=Me,o=Xe,n=hr,i.reduxProperties=new Map,i.reduxReactiveProperties=new Set,i.reduxEventListeners=new Map,i}),et=class extends Ns(Z){};function V(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 qu=typeof Symbol=="function"&&Symbol.observable||"@@observable",Ps=qu,Kn=()=>Math.random().toString(36).substring(7).split("").join("."),Zu={INIT:`@@redux/INIT${Kn()}`,REPLACE:`@@redux/REPLACE${Kn()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Kn()}`},Yr=Zu;function Qr(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 qn(t,e,o){if(typeof t!="function")throw new Error(V(2));if(typeof e=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(V(0));if(typeof e=="function"&&typeof o>"u"&&(o=e,e=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(V(1));return o(qn)(t,e)}let n=t,i=e,a=new Map,s=a,l=0,d=!1;function p(){s===a&&(s=new Map,a.forEach((v,C)=>{s.set(C,v)}))}function h(){if(d)throw new Error(V(3));return i}function f(v){if(typeof v!="function")throw new Error(V(4));if(d)throw new Error(V(5));let C=!0;p();let L=l++;return s.set(L,v),function(){if(C){if(d)throw new Error(V(6));C=!1,p(),s.delete(L),a=null}}}function m(v){if(!Qr(v))throw new Error(V(7));if(typeof v.type>"u")throw new Error(V(8));if(typeof v.type!="string")throw new Error(V(17));if(d)throw new Error(V(9));try{d=!0,i=n(i,v)}finally{d=!1}return(a=s).forEach(L=>{L()}),v}function b(v){if(typeof v!="function")throw new Error(V(10));n=v,m({type:Yr.REPLACE})}function S(){let v=f;return{subscribe(C){if(typeof C!="object"||C===null)throw new Error(V(11));function L(){let y=C;y.next&&y.next(h())}return L(),{unsubscribe:v(L)}},[Ps](){return this}}}return m({type:Yr.INIT}),{dispatch:m,subscribe:f,getState:h,replaceReducer:b,[Ps]:S}}function Yu(t){Object.keys(t).forEach(e=>{let o=t[e];if(typeof o(void 0,{type:Yr.INIT})>"u")throw new Error(V(12));if(typeof o(void 0,{type:Yr.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(V(13))})}function Fs(t){let e=Object.keys(t),o={};for(let s=0;s<e.length;s++){let l=e[s];typeof t[l]=="function"&&(o[l]=t[l])}let n=Object.keys(o),i,a;try{Yu(o)}catch(s){a=s}return function(l={},d){if(a)throw a;let p=!1,h={};for(let f=0;f<n.length;f++){let m=n[f],b=o[m],S=l[m],E=b(S,d);if(typeof E>"u"){let v=d&&d.type;throw new Error(V(14))}h[m]=E,p=p||E!==S}return p=p||n.length!==Object.keys(l).length,p?h:l}}function mr(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce((e,o)=>(...n)=>e(o(...n)))}function Ms(...t){return e=>(o,n)=>{let i=e(o,n),a=()=>{throw new Error(V(15))},s={getState:i.getState,dispatch:(d,...p)=>a(d,...p)},l=t.map(d=>d(s));return a=mr(...l)(i.dispatch),{...i,dispatch:a}}}function Ds(t){return Qr(t)&&"type"in t&&typeof t.type=="string"}var js=Symbol.for("immer-nothing"),Us=Symbol.for("immer-draftable"),j=Symbol.for("immer-state");function de(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var te=Object,Mt=te.getPrototypeOf,to="constructor",so="prototype",Jn="configurable",ro="enumerable",Xr="writable",gr="value",be=t=>!!t&&!!t[j];function re(t){return t?Ks(t)||lo(t)||!!t[Us]||!!t[to]?.[Us]||uo(t)||po(t):!1}var Qu=te[so][to].toString(),Bs=new WeakMap;function Ks(t){if(!t||!ai(t))return!1;let e=Mt(t);if(e===null||e===te[so])return!0;let o=te.hasOwnProperty.call(e,to)&&e[to];if(o===Object)return!0;if(!Ft(o))return!1;let n=Bs.get(o);return n===void 0&&(n=Function.toString.call(o),Bs.set(o,n)),n===Qu}function co(t,e,o=!0){xr(t)===0?(o?Reflect.ownKeys(t):te.keys(t)).forEach(i=>{e(i,t[i],t)}):t.forEach((n,i)=>e(i,n,t))}function xr(t){let e=t[j];return e?e.type_:lo(t)?1:uo(t)?2:po(t)?3:0}var Zn=(t,e,o=xr(t))=>o===2?t.has(e):te[so].hasOwnProperty.call(t,e),Xn=(t,e,o=xr(t))=>o===2?t.get(e):t[e],oo=(t,e,o,n=xr(t))=>{n===2?t.set(e,o):n===3?t.add(o):t[e]=o};function Ju(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}var lo=Array.isArray,uo=t=>t instanceof Map,po=t=>t instanceof Set,ai=t=>typeof t=="object",Ft=t=>typeof t=="function",Yn=t=>typeof t=="boolean";function Xu(t){let e=+t;return Number.isInteger(e)&&String(e)===t}var Ae=t=>t.copy_||t.base_;var si=t=>t.modified_?t.copy_:t.base_;function ei(t,e){if(uo(t))return new Map(t);if(po(t))return new Set(t);if(lo(t))return Array[so].slice.call(t);let o=Ks(t);if(e===!0||e==="class_only"&&!o){let n=te.getOwnPropertyDescriptors(t);delete n[j];let i=Reflect.ownKeys(n);for(let a=0;a<i.length;a++){let s=i[a],l=n[s];l[Xr]===!1&&(l[Xr]=!0,l[Jn]=!0),(l.get||l.set)&&(n[s]={[Jn]:!0,[Xr]:!0,[ro]:l[ro],[gr]:t[s]})}return te.create(Mt(t),n)}else{let n=Mt(t);if(n!==null&&o)return{...t};let i=te.create(n);return te.assign(i,t)}}function ci(t,e=!1){return fo(t)||be(t)||!re(t)||(xr(t)>1&&te.defineProperties(t,{set:Jr,add:Jr,clear:Jr,delete:Jr}),te.freeze(t),e&&co(t,(o,n)=>{ci(n,!0)},!1)),t}function ep(){de(2)}var Jr={[gr]:ep};function fo(t){return t===null||!ai(t)?!0:te.isFrozen(t)}var no="MapSet",ti="Patches",$s="ArrayMethods",qs={};function tt(t){let e=qs[t];return e||de(0,t),e}var Hs=t=>!!qs[t];var yr,Zs=()=>yr,tp=(t,e)=>({drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Hs(no)?tt(no):void 0,arrayMethodsPlugin_:Hs($s)?tt($s):void 0});function zs(t,e){e&&(t.patchPlugin_=tt(ti),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function ri(t){oi(t),t.drafts_.forEach(rp),t.drafts_=null}function oi(t){t===yr&&(yr=t.parent_)}var Ws=t=>yr=tp(yr,t);function rp(t){let e=t[j];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function Vs(t,e){e.unfinalizedDrafts_=e.drafts_.length;let o=e.drafts_[0];if(t!==void 0&&t!==o){o[j].modified_&&(ri(e),de(4)),re(t)&&(t=Gs(e,t));let{patchPlugin_:i}=e;i&&i.generateReplacementPatches_(o[j].base_,t,e)}else t=Gs(e,o);return op(e,t,!0),ri(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==js?t:void 0}function Gs(t,e){if(fo(e))return e;let o=e[j];if(!o)return io(e,t.handledSet_,t);if(!ho(o,t))return e;if(!o.modified_)return o.base_;if(!o.finalized_){let{callbacks_:n}=o;if(n)for(;n.length>0;)n.pop()(t);Js(o,t)}return o.copy_}function op(t,e,o=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&ci(e,o)}function Ys(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}var ho=(t,e)=>t.scope_===e,np=[];function Qs(t,e,o,n){let i=Ae(t),a=t.type_;if(n!==void 0&&Xn(i,n,a)===e){oo(i,n,o,a);return}if(!t.draftLocations_){let l=t.draftLocations_=new Map;co(i,(d,p)=>{if(be(p)){let h=l.get(p)||[];h.push(d),l.set(p,h)}})}let s=t.draftLocations_.get(e)??np;for(let l of s)oo(i,l,o,a)}function ip(t,e,o){t.callbacks_.push(function(i){let a=e;if(!a||!ho(a,i))return;i.mapSetPlugin_?.fixSetContents(a);let s=si(a);Qs(t,a.draft_??a,s,o),Js(a,i)})}function Js(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 i=n.getPath(t);i&&n.generatePatches_(t,i,e)}Ys(t)}}function ap(t,e,o){let{scope_:n}=t;if(be(o)){let i=o[j];ho(i,n)&&i.callbacks_.push(function(){eo(t);let s=si(i);Qs(t,o,s,e)})}else re(o)&&t.callbacks_.push(function(){let a=Ae(t);t.type_===3?a.has(o)&&io(o,n.handledSet_,n):Xn(a,e,t.type_)===o&&n.drafts_.length>1&&(t.assigned_.get(e)??!1)===!0&&t.copy_&&io(Xn(t.copy_,e,t.type_),n.handledSet_,n)})}function io(t,e,o){return!o.immer_.autoFreeze_&&o.unfinalizedDrafts_<1||be(t)||e.has(t)||!re(t)||fo(t)||(e.add(t),co(t,(n,i)=>{if(be(i)){let a=i[j];if(ho(a,o)){let s=si(a);oo(t,n,s,t.type_),Ys(a)}}else re(i)&&io(i,e,o)})),t}function sp(t,e){let o=lo(t),n={type_:o?1:0,scope_:e?e.scope_:Zs(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},i=n,a=ao;o&&(i=[n],a=br);let{revoke:s,proxy:l}=Proxy.revocable(i,a);return n.draft_=l,n.revoke_=s,[l,n]}var ao={get(t,e){if(e===j)return t;let o=t.scope_.arrayMethodsPlugin_,n=t.type_===1&&typeof e=="string";if(n&&o?.isArrayOperationMethod(e))return o.createMethodInterceptor(t,e);let i=Ae(t);if(!Zn(i,e,t.type_))return lp(t,i,e);let a=i[e];if(t.finalized_||!re(a)||n&&t.operationMethod&&o?.isMutatingArrayMethod(t.operationMethod)&&Xu(e))return a;if(a===Qn(t.base_,e)||cp(t,e,a)){eo(t);let s=t.type_===1?+e:e,l=ii(t.scope_,a,t,s);return t.copy_[s]=l}return a},has(t,e){return e in Ae(t)},ownKeys(t){return Reflect.ownKeys(Ae(t))},set(t,e,o){let n=Xs(Ae(t),e);if(n?.set)return n.set.call(t.draft_,o),!0;if(!t.modified_){let i=Qn(Ae(t),e),a=i?.[j];if(a&&a.base_===o)return t.copy_[e]=o,t.assigned_.set(e,!1),!0;if(Ju(o,i)&&(o!==void 0||Zn(t.base_,e,t.type_)))return!0;eo(t),ni(t)}return t.copy_[e]===o&&(o!==void 0||Zn(t.copy_,e,t.type_))||Number.isNaN(o)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=o,t.assigned_.set(e,!0),ap(t,e,o)),!0},deleteProperty(t,e){return eo(t),Qn(t.base_,e)!==void 0||e in t.base_?(t.assigned_.set(e,!1),ni(t)):t.assigned_.delete(e),t.copy_&&delete t.copy_[e],!0},getOwnPropertyDescriptor(t,e){let o=Ae(t),n=Reflect.getOwnPropertyDescriptor(o,e);return n&&{[Xr]:!0,[Jn]:t.type_!==1||e!=="length",[ro]:n[ro],[gr]:o[e]}},defineProperty(){de(11)},getPrototypeOf(t){return Mt(t.base_)},setPrototypeOf(){de(12)}},br={};for(let t in ao){let e=ao[t];br[t]=function(){let o=arguments;return o[0]=o[0][0],e.apply(this,o)}}br.deleteProperty=function(t,e){return br.set.call(this,t,e,void 0)};br.set=function(t,e,o){return ao.set.call(this,t[0],e,o,t[0])};function Qn(t,e){let o=t[j];return(o?Ae(o):t)[e]}function cp(t,e,o){return t.type_!==1||!t.allIndicesReassigned_||t.assigned_?.get(e)||!re(o)||o[j]?!1:t.baseRefs_.has(o)}function lp(t,e,o){let n=Xs(e,o);return n?gr in n?n[gr]:n.get?.call(t.draft_):void 0}function Xs(t,e){if(!(e in t))return;let o=Mt(t);for(;o;){let n=Object.getOwnPropertyDescriptor(o,e);if(n)return n;o=Mt(o)}}function ni(t){t.modified_||(t.modified_=!0,t.parent_&&ni(t.parent_))}function eo(t){t.copy_||(t.assigned_=new Map,t.copy_=ei(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var dp=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,o,n)=>{if(Ft(e)&&!Ft(o)){let a=o;o=e;let s=this;return function(d=a,...p){return s.produce(d,h=>o.call(this,h,...p))}}Ft(o)||de(6),n!==void 0&&!Ft(n)&&de(7);let i;if(re(e)){let a=Ws(this),s=ii(a,e,void 0),l=!0;try{i=o(s),l=!1}finally{l?ri(a):oi(a)}return zs(a,n),Vs(i,a)}else if(!e||!ai(e)){if(i=o(e),i===void 0&&(i=e),i===js&&(i=void 0),this.autoFreeze_&&ci(i,!0),n){let a=[],s=[];tt(ti).generateReplacementPatches_(e,i,{patches_:a,inversePatches_:s}),n(a,s)}return i}else de(1,e)},this.produceWithPatches=(e,o)=>{if(Ft(e))return(s,...l)=>this.produceWithPatches(s,d=>e(d,...l));let n,i;return[this.produce(e,o,(s,l)=>{n=s,i=l}),n,i]},Yn(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),Yn(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),Yn(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){re(t)||de(8),be(t)&&(t=ec(t));let e=Ws(this),o=ii(e,t,void 0);return o[j].isManual_=!0,oi(e),o}finishDraft(t,e){let o=t&&t[j];(!o||!o.isManual_)&&de(9);let{scope_:n}=o;return zs(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 o;for(o=e.length-1;o>=0;o--){let i=e[o];if(i.path.length===0&&i.op==="replace"){t=i.value;break}}o>-1&&(e=e.slice(o+1));let n=tt(ti).applyPatches_;return be(t)?n(t,e):this.produce(t,i=>n(i,e))}};function ii(t,e,o,n){let[i,a]=uo(e)?tt(no).proxyMap_(e,o):po(e)?tt(no).proxySet_(e,o):sp(e,o);return(o?.scope_??Zs()).drafts_.push(i),a.callbacks_=o?.callbacks_??[],a.key_=n,o&&n!==void 0?ip(o,a,n):a.callbacks_.push(function(d){d.mapSetPlugin_?.fixSetContents(a);let{patchPlugin_:p}=d;a.modified_&&p&&p.generatePatches_(a,[],d)}),i}function ec(t){return be(t)||de(10,t),tc(t)}function tc(t){if(!re(t)||fo(t))return t;let e=t[j],o,n=!0;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,o=ei(t,e.scope_.immer_.useStrictShallowCopy_),n=e.scope_.immer_.shouldUseStrictIteration()}else o=ei(t,!0);return co(o,(i,a)=>{oo(o,i,tc(a))},n),e&&(e.finalized_=!1),o}var up=globalThis.Iterator,xx=typeof up?.from=="function";var pp=new dp,li=pp.produce;function rc(t){return({dispatch:o,getState:n})=>i=>a=>typeof a=="function"?a(o,n,t):i(a)}var oc=rc(),nc=rc;var fp=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?mr:mr.apply(null,arguments)},Ax=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}},hp=t=>t&&typeof t.match=="function";function De(t,e){function o(...n){if(e){let i=e(...n);if(!i)throw new Error(Re(0));return{type:t,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:t,payload:n[0]}}return o.toString=()=>`${t}`,o.type=t,o.match=n=>Ds(n)&&n.type===t,o}var lc=class Sr extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,Sr.prototype)}static get[Symbol.species](){return Sr}concat(...e){return super.concat.apply(this,e)}prepend(...e){return e.length===1&&Array.isArray(e[0])?new Sr(...e[0].concat(this)):new Sr(...e.concat(this))}};function ic(t){return re(t)?li(t,()=>{}):t}function mo(t,e,o){return t.has(e)?t.get(e):t.set(e,o(e)).get(e)}function mp(t){return typeof t=="boolean"}var gp=()=>function(e){let{thunk:o=!0,immutableCheck:n=!0,serializableCheck:i=!0,actionCreatorCheck:a=!0}=e??{},s=new lc;return o&&(mp(o)?s.push(oc):s.push(nc(o.extraArgument))),s},yp="RTK_autoBatch";var ac=t=>e=>{setTimeout(e,t)},bp=(t,e)=>o=>{let n=!1,i=()=>{n||(n=!0,cancelAnimationFrame(a),clearTimeout(s),o())},a=t(i),s=setTimeout(i,e)},xp=(t={type:"raf"})=>e=>(...o)=>{let n=e(...o),i=!0,a=!1,s=!1,l=new Set,d=t.type==="tick"?queueMicrotask:t.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?bp(window.requestAnimationFrame,100):ac(10):t.type==="callback"?t.queueNotification:ac(t.timeout),p=()=>{s=!1,a&&(a=!1,l.forEach(h=>h()))};return Object.assign({},n,{subscribe(h){let f=()=>i&&h(),m=n.subscribe(f);return l.add(h),()=>{m(),l.delete(h)}},dispatch(h){try{return i=!h?.meta?.[yp],a=!i,a&&(s||(s=!0,d(p))),n.dispatch(h)}finally{i=!0}}})},Sp=t=>function(o){let{autoBatch:n=!0}=o??{},i=new lc(t);return n&&i.push(xp(typeof n=="object"?n:void 0)),i};function dc(t){let e=gp(),{reducer:o=void 0,middleware:n,devTools:i=!0,duplicateMiddlewareCheck:a=!0,preloadedState:s=void 0,enhancers:l=void 0}=t||{},d;if(typeof o=="function")d=o;else if(Qr(o))d=Fs(o);else throw new Error(Re(1));let p;typeof n=="function"?p=n(e):p=e();let h=mr;i&&(h=fp({trace:!1,...typeof i=="object"&&i}));let f=Ms(...p),m=Sp(f),b=typeof l=="function"?l(m):m(),S=h(...b);return qn(d,s,S)}function uc(t){let e={},o=[],n,i={addCase(a,s){let l=typeof a=="string"?a:a.type;if(!l)throw new Error(Re(28));if(l in e)throw new Error(Re(29));return e[l]=s,i},addAsyncThunk(a,s){return s.pending&&(e[a.pending.type]=s.pending),s.rejected&&(e[a.rejected.type]=s.rejected),s.fulfilled&&(e[a.fulfilled.type]=s.fulfilled),s.settled&&o.push({matcher:a.settled,reducer:s.settled}),i},addMatcher(a,s){return o.push({matcher:a,reducer:s}),i},addDefaultCase(a){return n=a,i}};return t(i),[e,o,n]}function vp(t){return typeof t=="function"}function Ep(t,e){let[o,n,i]=uc(e),a;if(vp(t))a=()=>ic(t());else{let l=ic(t);a=()=>l}function s(l=a(),d){let p=[o[d.type],...n.filter(({matcher:h})=>h(d)).map(({reducer:h})=>h)];return p.filter(h=>!!h).length===0&&(p=[i]),p.reduce((h,f)=>{if(f)if(be(h)){let b=f(h,d);return b===void 0?h:b}else{if(re(h))return li(h,m=>f(m,d));{let m=f(h,d);if(m===void 0){if(h===null)return h;throw Error("A case reducer on a non-draftable value must not return undefined")}return m}}return h},l)}return s.getInitialState=a,s}var Cp=(t,e)=>hp(t)?t.match(e):t(e);function wp(...t){return e=>t.some(o=>Cp(o,e))}var Op="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Ap=(t=21)=>{let e="",o=t;for(;o--;)e+=Op[Math.random()*64|0];return e},Rp=["name","message","stack","code"],di=class{constructor(t,e){this.payload=t,this.meta=e}payload;meta;_type},sc=class{constructor(t,e){this.payload=t,this.meta=e}payload;meta;_type},_p=t=>{if(typeof t=="object"&&t!==null){let e={};for(let o of Rp)typeof t[o]=="string"&&(e[o]=t[o]);return e}return{message:String(t)}},cc="External signal was aborted",Ip=(()=>{function t(e,o,n){let i=De(e+"/fulfilled",(d,p,h,f)=>({payload:d,meta:{...f||{},arg:h,requestId:p,requestStatus:"fulfilled"}})),a=De(e+"/pending",(d,p,h)=>({payload:void 0,meta:{...h||{},arg:p,requestId:d,requestStatus:"pending"}})),s=De(e+"/rejected",(d,p,h,f,m)=>({payload:f,error:(n&&n.serializeError||_p)(d||"Rejected"),meta:{...m||{},arg:h,requestId:p,rejectedWithValue:!!f,requestStatus:"rejected",aborted:d?.name==="AbortError",condition:d?.name==="ConditionError"}}));function l(d,{signal:p}={}){return(h,f,m)=>{let b=n?.idGenerator?n.idGenerator(d):Ap(),S=new AbortController,E,v;function C(g){v=g,S.abort()}p&&(p.aborted?C(cc):p.addEventListener("abort",()=>C(cc),{once:!0}));let L=(async function(){let g;try{let x=n?.condition?.(d,{getState:f,extra:m});if(kp(x)&&(x=await x),x===!1||S.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};let _=new Promise((I,R)=>{E=()=>{R({name:"AbortError",message:v||"Aborted"})},S.signal.addEventListener("abort",E,{once:!0})});h(a(b,d,n?.getPendingMeta?.({requestId:b,arg:d},{getState:f,extra:m}))),g=await Promise.race([_,Promise.resolve(o(d,{dispatch:h,getState:f,extra:m,requestId:b,signal:S.signal,abort:C,rejectWithValue:((I,R)=>new di(I,R)),fulfillWithValue:((I,R)=>new sc(I,R))})).then(I=>{if(I instanceof di)throw I;return I instanceof sc?i(I.payload,b,d,I.meta):i(I,b,d)})])}catch(x){g=x instanceof di?s(null,b,d,x.payload,x.meta):s(x,b,d)}finally{E&&S.signal.removeEventListener("abort",E)}return n&&!n.dispatchConditionRejection&&s.match(g)&&g.meta.condition||h(g),g})();return Object.assign(L,{abort:C,requestId:b,arg:d,unwrap(){return L.then(Tp)}})}}return Object.assign(l,{pending:a,rejected:s,fulfilled:i,settled:wp(s,i),typePrefix:e})}return t.withTypes=()=>t,t})();function Tp(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function kp(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var pc=Symbol.for("rtk-slice-createasyncthunk"),_x={[pc]:Ip};function Lp(t,e){return`${t}/${e}`}function Np({creators:t}={}){let e=t?.asyncThunk?.[pc];return function(n){let{name:i,reducerPath:a=i}=n;if(!i)throw new Error(Re(11));typeof process<"u";let s=(typeof n.reducers=="function"?n.reducers(Fp()):n.reducers)||{},l=Object.keys(s),d={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},p={addCase(g,y){let x=typeof g=="string"?g:g.type;if(!x)throw new Error(Re(12));if(x in d.sliceCaseReducersByType)throw new Error(Re(13));return d.sliceCaseReducersByType[x]=y,p},addMatcher(g,y){return d.sliceMatchers.push({matcher:g,reducer:y}),p},exposeAction(g,y){return d.actionCreators[g]=y,p},exposeCaseReducer(g,y){return d.sliceCaseReducersByName[g]=y,p}};l.forEach(g=>{let y=s[g],x={reducerName:g,type:Lp(i,g),createNotation:typeof n.reducers=="function"};Dp(y)?Bp(x,y,p,e):Mp(x,y,p)});function h(){let[g={},y=[],x=void 0]=typeof n.extraReducers=="function"?uc(n.extraReducers):[n.extraReducers],_={...g,...d.sliceCaseReducersByType};return Ep(n.initialState,I=>{for(let R in _)I.addCase(R,_[R]);for(let R of d.sliceMatchers)I.addMatcher(R.matcher,R.reducer);for(let R of y)I.addMatcher(R.matcher,R.reducer);x&&I.addDefaultCase(x)})}let f=g=>g,m=new Map,b=new WeakMap,S;function E(g,y){return S||(S=h()),S(g,y)}function v(){return S||(S=h()),S.getInitialState()}function C(g,y=!1){function x(I){let R=I[g];return typeof R>"u"&&y&&(R=mo(b,x,v)),R}function _(I=f){let R=mo(m,y,()=>new WeakMap);return mo(R,I,()=>{let F={};for(let[O,T]of Object.entries(n.selectors??{}))F[O]=Pp(T,I,()=>mo(b,I,v),y);return F})}return{reducerPath:g,getSelectors:_,get selectors(){return _(x)},selectSlice:x}}let L={name:i,reducer:E,actions:d.actionCreators,caseReducers:d.sliceCaseReducersByName,getInitialState:v,...C(a),injectInto(g,{reducerPath:y,...x}={}){let _=y??a;return g.inject({reducerPath:_,reducer:E},x),{...L,...C(_,!0)}}};return L}}function Pp(t,e,o,n){function i(a,...s){let l=e(a);return typeof l>"u"&&n&&(l=o()),t(l,...s)}return i.unwrapped=t,i}var fc=Np();function Fp(){function t(e,o){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...o}}return t.withTypes=()=>t,{reducer(e){return Object.assign({[e.name](...o){return e(...o)}}[e.name],{_reducerDefinitionType:"reducer"})},preparedReducer(e,o){return{_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:o}},asyncThunk:t}}function Mp({type:t,reducerName:e,createNotation:o},n,i){let a,s;if("reducer"in n){if(o&&!Up(n))throw new Error(Re(17));a=n.reducer,s=n.prepare}else a=n;i.addCase(t,a).exposeCaseReducer(e,a).exposeAction(e,s?De(t,s):De(t))}function Dp(t){return t._reducerDefinitionType==="asyncThunk"}function Up(t){return t._reducerDefinitionType==="reducerWithPrepare"}function Bp({type:t,reducerName:e},o,n,i){if(!i)throw new Error(Re(18));let{payloadCreator:a,fulfilled:s,pending:l,rejected:d,settled:p,options:h}=o,f=i(t,a,h);n.exposeAction(e,f),s&&n.addCase(f.fulfilled,s),l&&n.addCase(f.pending,l),d&&n.addCase(f.rejected,d),p&&n.addMatcher(f.settled,p),n.exposeCaseReducer(e,{fulfilled:s||go,pending:l||go,rejected:d||go,settled:p||go})}function go(){}var hc="listener",mc="completed",gc="cancelled",Ix=`task-${gc}`,Tx=`task-${mc}`,kx=`${hc}-${gc}`,Lx=`${hc}-${mc}`;var{assign:yc}=Object;var ui="listenerMiddleware";var $p=yc(De(`${ui}/add`),{withTypes:()=>$p}),Nx=De(`${ui}/removeAll`),Hp=yc(De(`${ui}/remove`),{withTypes:()=>Hp});function Re(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. `}window.ftReduxStores||(window.ftReduxStores={});var Ue=class t extends Ee{static get(e){var o;let n=typeof e=="string"?e:e.name,i=typeof e=="string"?void 0:e,a=window.ftReduxStores[n];if(Pt(a))return a;if(i==null)return;let s=fc({...i,reducers:(o=i.reducers)!==null&&o!==void 0?o:{}}),l=dc({reducer:(d,p)=>{if(p.type==="CLEAR_FT_REDUX_STORE"){let h=ie(s.getInitialState());for(let f of p.keeping)h[f]=(d??h)[f];return h}else if(typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...d,...p.overwrites};return s.reducer(d,p)}});return window.ftReduxStores[i.name]=new t(s,l,i.eventBus)}constructor(e,o,n){super(),this.reduxSlice=e,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new fr,this.injectInto=(a,s)=>this.reduxSlice.injectInto(a,s),this.selectSlice=a=>this.reduxSlice.selectSlice(a);let i=a=>a!=null?JSON.parse(JSON.stringify(a)):a;this.actions=new Proxy(this.reduxSlice.actions,{get:(a,s,l)=>{let d=s,p=a[d];return p?(...h)=>{let f=p(...h.map(i));return this.reduxStore.dispatch(f),f}:h=>{let f=d,m=this.getState()[f];q(m,h)||this.setState({[f]:i(h)})}}}),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()}};function zp(){var t;for(let e of Object.values((t=window.ftReduxStores)!==null&&t!==void 0?t:{}))Pt(e)&&e.clear()}var vr=class{constructor(e,o,n){this.store=e,this.valueSelector=o,this.callback=n}watch(){return this.stop(),this.lastValue=this.valueSelector(this.store.getState()),this.unsubscribe=this.store.subscribe(()=>{let e=this.store.getState(),o=this.valueSelector(e);ve(this.lastValue,o)&&(this.callback(o,e),this.lastValue=o)}),this}stop(){return this.unsubscribe!=null&&(this.unsubscribe(),this.unsubscribe=void 0),this.lastValue=void 0,this}};function Wp(t,e,o){return new vr(t,e,o).watch()}var Dt=class{constructor(){this.requestConsumers=new Map}getOrCreateRequestConsumers(e){var o;return(o=this.requestConsumers.get(e))!==null&&o!==void 0?o:this.requestConsumers.set(e,new Set).get(e)}registerComponent(e,o){for(let n of o)this.getOrCreateRequestConsumers(n).add(e).size==1&&this.onNewNeededRequest(n)}unregisterComponent(e,o){for(let n of o)this.getOrCreateRequestConsumers(n).delete(e)}isRequestNeeded(e){return this.getOrCreateRequestConsumers(e).size>0}};var mi={};P(mi,{scrollHelper:()=>Vp});var fi,yo=new Map,hi=class{lock(e,o){if(o){let n=yo.get(o);if(n==null||n===e)return yo.set(o,e),o}}release(e,o){o&&yo.get(o)===e&&yo.delete(o)}findFirstScrollableParent(e){var o;let n,i;for(let a of an(e)){let s=a,l=this.elementCanScroll(s);if(l&&s.clientHeight&&s.clientHeight<s.scrollHeight){n=s;break}else l&&i==null&&(i=s)}return(o=n??i)!==null&&o!==void 0?o:document.body}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)&&!["contents"].includes(getComputedStyle(e).display)}catch{return!1}}getAbsoluteScrollOffset(e,o){var n,i;let a=0;for(;o&&o.offsetParent!==e.offsetParent;)a+=(n=o.offsetTop)!==null&&n!==void 0?n:0,o=o.offsetParent;return a+((i=o?.offsetTop)!==null&&i!==void 0?i:0)-e.offsetTop}computeTopOffsetRatio(e,o){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return o;default:return 0}}scrollIntoViewIfPossible(e,o){let n=this.findFirstScrollableParent(e);if(e&&this.lock(this,n)){let i=this.getAbsoluteScrollOffset(n,e),a=i-n.clientHeight+e.clientHeight,s=i,l=Le(0,(s-n.scrollTop)/(s-a),1),d=this.computeTopOffsetRatio(o?.position,l)*(a-s)+s;n.scrollTo({behavior:o?.behavior,top:d})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,n);this.release(this,n)}};window.FluidTopicsScrollHelper=(fi=window.FluidTopicsScrollHelper)!==null&&fi!==void 0?fi:new hi;var Vp=window.FluidTopicsScrollHelper;var bi={};P(bi,{SearchPlaceConverter:()=>Bt,SearchPlaceQueryParams:()=>k,isSearchPlaceQueryParams:()=>ol,serializeRequest:()=>Zp});var Gp=t=>typeof t=="object"&&t!=null;var jp=t=>typeof t=="number",bo=t=>typeof t=="string",Hc=t=>Gp(t)&&bo(t.endpoint)&&bo(t.method)&&bo(t.statusText)&&bo(t.body)&&jp(t.status),bc;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(bc||(bc={}));var xc;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(xc||(xc={}));var Sc;(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"})(Sc||(Sc={}));var vc;(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"})(vc||(vc={}));var Ec;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Ec||(Ec={}));var Cc;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(Cc||(Cc={}));var wc;(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(wc||(wc={}));var Oc;(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"})(Oc||(Oc={}));var Ac;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(Ac||(Ac={}));var Rc;(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"})(Rc||(Rc={}));var _c;(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"})(_c||(_c={}));var Ic;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Ic||(Ic={}));var Tc;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Tc||(Tc={}));var kc;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(kc||(kc={}));var Lc;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Lc||(Lc={}));var Nc;(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"})(Nc||(Nc={}));var rt;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(rt||(rt={}));var Pc;(function(t){t.ASC="ASC",t.DESC="DESC"})(Pc||(Pc={}));var Fc;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Fc||(Fc={}));var xo;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(xo||(xo={}));var zc=t=>Object.keys(xo).includes(t);var Mc;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Mc||(Mc={}));var So;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(So||(So={}));var Dc;(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"})(Dc||(Dc={}));var Ut;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Ut||(Ut={}));var Wc=t=>Object.keys(Ut).includes(t);var Uc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Uc||(Uc={}));var gi;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(gi||(gi={}));var Bc;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Bc||(Bc={}));var $;(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"})($||($={}));var ae;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(ae||(ae={}));var $c;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})($c||($c={}));var Vc;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(Vc||(Vc={}));var Gc;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Gc||(Gc={}));var jc;(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"})(jc||(jc={}));var Kc;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(Kc||(Kc={}));var qc;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(qc||(qc={}));var Zc;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Zc||(Zc={}));var Yc;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Yc||(Yc={}));var Qc;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(Qc||(Qc={}));var Jc;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(Jc||(Jc={}));var Xc;(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"})(Xc||(Xc={}));var el;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(el||(el={}));var Kp={[$.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 tl(t,e){return t===e||(Kp[t]??[]).some(o=>tl(o,e))}function yi(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=>tl(n,e))}function qp(t){return`"${t}"`}function rl(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function Zp(t,e){return new Bt(t).serialize(e)}var k;(function(t){t.LOCALE="content-lang",t.QUERY="query",t.SCOPE="scope",t.FILTERS="filters",t.VIRTUAL_FIELD="virtual-field",t.PERIOD="period",t.VALUE_FILTERS="value-filters",t.NEGATIVE_VALUE_FILTERS="negative-value-filters",t.DATE_FILTERS="date-filters",t.RANGE_FILTERS="range-filters",t.SORT="sort",t.PER_PAGE="per-page",t.KEYWORD_MATCH="keyword-match"})(k||(k={}));var Yp=new Set(Object.values(k));function ol(t){return Yp.has(t)}var Bt=class{constructor(e,o=20,n=!1,i="en-US"){this.baseUrl=e,this.defaultPerPage=o,this.allLanguagesAllowed=n,this.defaultContentLocale=i,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"},this.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]]}serialize(e,o){return this.serializeToCurrentPageIfPossible(e,o??"/search")}serializeToCurrentPageIfPossible(e,o){let n=o==null||o.trim().length===0,i=new URL(n?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${o}`);return i.search=this.toURLSearchParams(e),i.toString()}toURLSearchParams(e,o=!1){var n,i,a,s,l,d,p,h,f,m,b,S,E;let v=new URLSearchParams;e.contentLocale?(!o||e.contentLocale!==this.defaultContentLocale)&&v.append(k.LOCALE,e.contentLocale):v.append(k.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((n=e.query)===null||n===void 0?void 0:n.length)>0&&v.append(k.QUERY,e.query);let C=R=>{var F,O;let T=((O=(F=R.valueFilter)===null||F===void 0?void 0:F.values)!==null&&O!==void 0?O:[]).map(B=>this.escapeFilters(B)).map(B=>qp(rl(B))).join("_");return`${R.key}~${T}`},L=(a=(i=e.metadataFilters)===null||i===void 0?void 0:i.filter(R=>R.valueFilter&&!R.valueFilter.negative))!==null&&a!==void 0?a:[];L.length>0&&v.append(k.VALUE_FILTERS,L.map(C).join("*"));let g=(l=(s=e.metadataFilters)===null||s===void 0?void 0:s.filter(R=>R.valueFilter&&R.valueFilter.negative))!==null&&l!==void 0?l:[];g.length>0&&v.append(k.NEGATIVE_VALUE_FILTERS,g.map(C).join("*"));let y=(p=(d=e.metadataFilters)===null||d===void 0?void 0:d.filter(R=>R.dateFilter))!==null&&p!==void 0?p:[];if(y.length>0){let R=y.map(F=>{var O;return`${F.key}~${(O=F.dateFilter)===null||O===void 0?void 0:O.type.toLowerCase()}`}).join("*");v.append(k.DATE_FILTERS,R)}let x=(f=(h=e.metadataFilters)===null||h===void 0?void 0:h.filter(R=>R.rangeFilter))!==null&&f!==void 0?f:[];if(x.length>0){let R=x.map(F=>{var O,T;return`${F.key}~${(O=F.rangeFilter)===null||O===void 0?void 0:O.from}_${(T=F.rangeFilter)===null||T===void 0?void 0:T.to}`}).join("*");v.append(k.RANGE_FILTERS,R)}e.virtualField&&e.virtualField!=="EVERYWHERE"&&v.append(k.VIRTUAL_FIELD,e.virtualField.toLowerCase()),e.scope&&e.scope!=="DEFAULT"&&v.append(k.SCOPE,e.scope.toLowerCase()),e.sortId!=null&&v.append(k.SORT,e.sortId),!((m=e.paging)===null||m===void 0)&&m.perPage&&((S=(b=e.paging)===null||b===void 0?void 0:b.perPage)!==null&&S!==void 0?S:this.defaultPerPage)!=this.defaultPerPage&&v.append(k.PER_PAGE,String(e.paging.perPage)),e.keywordMatch!=null&&v.append(k.KEYWORD_MATCH,e.keywordMatch.toLowerCase());let _=(E=e.otherQueryParams)!==null&&E!==void 0?E:{};for(let R in _)v.append(R,_[R]);let I=new Array;return v.forEach((R,F)=>{I.push(this.encodeQueryString(F)+"="+this.encodeQueryString(R))}),encodeURI(I.join("&")).replace(/#/g,"%23")}encodeQueryString(e){return encodeURIComponent(e).replace(/%20/g,"+")}parse(e){var o;let n=e.split("?"),i=this.fromURLSearchParams(n.slice(1).join("?")),a=n[0].split("/search/")[1];return a==null?i:{...i,scope:(o=this.scopeMapping[a])!==null&&o!==void 0?o:i.scope}}fromURLSearchParams(e){var o,n,i,a,s,l;try{e=decodeURI(e).replace(/%23/g,"#")}catch(C){console.warn("Could not decode search request query params, fallback on raw value",C)}let d=new URLSearchParams(e),p=d.get(k.LOCALE)==="all"?void 0:d.get(k.LOCALE),h=((o=d.get(k.VIRTUAL_FIELD))!==null&&o!==void 0?o:"EVERYWHERE").toUpperCase(),f=(n=d.get(k.SORT))===null||n===void 0?void 0:n.toLowerCase(),m=(i=d.get(k.SCOPE))!==null&&i!==void 0?i:"default",b=+((a=d.get(k.PER_PAGE))!==null&&a!==void 0?a:this.defaultPerPage),S=d.get(k.KEYWORD_MATCH),E=S?S.toUpperCase()===rt.MANDATORY?rt.MANDATORY:rt.OPTIONAL:void 0,v={};for(let C of d.keys())ol(C)||(v[C]=d.get(C));return{contentLocale:p??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:(s=d.get(k.QUERY))!==null&&s!==void 0?s:"",scope:(l=this.scopeMapping[m])!==null&&l!==void 0?l:"DEFAULT",virtualField:zc(h)?h:"EVERYWHERE",sortId:f,metadataFilters:this.parseCompatFilters(d),facets:[],paging:{page:1,perPage:Le(1,isNaN(b)?this.defaultPerPage:b,1e3)},keywordMatch:E,otherQueryParams:v}}parseCompatFilters(e){var o,n,i,a,s,l,d;let p=[];return e.has(k.FILTERS)&&(p=this.parseValueFilters((o=e.get(k.FILTERS))!==null&&o!==void 0?o:"")),(n=e.has(k.PERIOD))!==null&&n!==void 0&&n&&(p=[...p,...this.parseLegacyPeriodFilter(((i=e.get(k.PERIOD))!==null&&i!==void 0?i:"").toUpperCase())]),[...p,...this.parseValueFilters((a=e.get(k.VALUE_FILTERS))!==null&&a!==void 0?a:""),...this.parseValueFilters((s=e.get(k.NEGATIVE_VALUE_FILTERS))!==null&&s!==void 0?s:"",!0),...this.parseDateFilters((l=e.get(k.DATE_FILTERS))!==null&&l!==void 0?l:""),...this.parseRangeFilters((d=e.get(k.RANGE_FILTERS))!==null&&d!==void 0?d:"")]}splitUnknownFilter(e){return this.superEscapeFilters(e).split("*").map(o=>o.split("~"))}parseValueFilters(e,o=!1){return e.length===0?[]:this.splitUnknownFilter(e).map(n=>({key:n[0],valueFilter:{values:n[1].split("_").map(rl).map(i=>this.unescapeFilterValue(i)),negative:o}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],dateFilter:{type:Ut[o[1].toUpperCase()]}}))}parseRangeFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],rangeFilter:{from:o[1].split("_")[0],to:o[1].split("_")[1]}}))}escapeFilters(e){for(let[o,n,i]of this.filtersEscapeMapping)e=e.replaceAll(o,n);return e}superEscapeFilters(e){for(let[o,n,i]of this.filtersEscapeMapping)e=e.replaceAll(n,i);return e}unescapeFilterValue(e){for(let[o,n,i]of this.filtersEscapeMapping)e=e.replaceAll(i,o);return e}parseLegacyPeriodFilter(e){if(Wc(e))return[{key:"ft:lastEdition",dateFilter:{type:Ut[e]}}];if(e.startsWith("CUSTOM_")){let[o,n,i]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:n,to:i}}]}return[]}static clearSearchParamsInUrl(e){let o=new URL(e);return[k.LOCALE,k.FILTERS,k.VALUE_FILTERS,k.NEGATIVE_VALUE_FILTERS,k.DATE_FILTERS,k.RANGE_FILTERS].forEach(i=>{o.searchParams.delete(i)}),o.toString()}static updateLocaleParamInUrl(e,o){let n=new URL(e);return n.searchParams.delete(k.LOCALE),o!==void 0&&n.searchParams.append(k.LOCALE,o),n.toString()}};var Si={};P(Si,{toFtFormComponent:()=>Qp});var xi=Symbol("elementInternals"),Qp=z(Symbol("toFtFormComponent"),function(t){class e extends t{static get formAssociated(){return!0}get form(){return this[xi].form}constructor(...n){super(n),this[xi]=this.attachInternals()}setFormValue(n){this[xi].setFormValue(n)}}return e});var vi={};P(vi,{DateFormatter:()=>ot});var ot=class{static format(e,o,n,i,a){return window.moment?window.moment(e).locale(o).format(this.getMomentDateFormat(n,i,!!a)):this.getIntlDateTime(e,o,n,i,!!a)}static getMomentDateFormat(e,o,n){return n?"LT":e?o?"lll":"ll":o?"L LT":"L"}static getIntlDateTime(e,o,n,i,a){let s=typeof e=="string"?new Date(e):e,l=new Intl.DateTimeFormat(o,{dateStyle:n?"medium":"short"}).format(s),d=new Intl.DateTimeFormat(o,{timeStyle:"short"}).format(s);return a?d:i?`${l} ${d}`:l}static getTimezoneAsString(){let e=n=>String(Math.floor(n)).padStart(2,"0"),o=new Date().getTimezoneOffset();return`${o<0?"+":"-"}${e(Math.abs(o)/60)}:${e(Math.abs(o)%60)}`}};var Ci={};P(Ci,{ALL_KEYS_VALUE:()=>Ei,SameWindowStorageEvent:()=>$t});var Ei="__all__",$t=class extends CustomEvent{constructor(e,o,n){super("same-window-storage",{detail:{key:e,oldValue:o,newValue:n}})}keyMatch(e){return this.detail.key.includes(e)||this.detail.key==Ei}};Storage.prototype.setItem=new Proxy(Storage.prototype.setItem,{apply(t,e,o){let n=e.getItem(o[0]);Reflect.apply(t,e,o),window.dispatchEvent(new $t(o[0],n,o[1]))}});Storage.prototype.removeItem=new Proxy(Storage.prototype.removeItem,{apply(t,e,o){let n=e.getItem(o[0]);Reflect.apply(t,e,o),window.dispatchEvent(new $t(o[0],n))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(t,e,o){Reflect.apply(t,e,o),window.dispatchEvent(new $t(Ei))}});var Oi={};P(Oi,{FocusMainContentEvent:()=>wi});var wi=class extends Event{constructor(){super("ft-focus-main-content",{composed:!0,bubbles:!0})}};var nl={};window.FluidTopicsA11yHints={isKeyboardNavigation:!1,lastPressedKey:""};function Jp(t){(t.key==="Enter"||t.key===" "||t.key==="Tab")&&(window.FluidTopicsA11yHints.isKeyboardNavigation=!0),window.FluidTopicsA11yHints.lastPressedKey=t.key}function Xp(t){window.FluidTopicsA11yHints.isKeyboardNavigation=t.detail==0}document.addEventListener("keydown",Jp);document.addEventListener("click",Xp);var il=M`
|
|
48
48
|
.sr-only {
|
|
49
49
|
position:absolute;
|
|
50
50
|
left:-10000px;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-search-result-title",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.16",
|
|
4
4
|
"description": "Search result title for integrated search component",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,13 +19,13 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-search-result-context": "2.2.
|
|
23
|
-
"@fluid-topics/ft-typography": "2.2.
|
|
24
|
-
"@fluid-topics/ft-wc-utils": "2.2.
|
|
22
|
+
"@fluid-topics/ft-search-result-context": "2.2.16",
|
|
23
|
+
"@fluid-topics/ft-typography": "2.2.16",
|
|
24
|
+
"@fluid-topics/ft-wc-utils": "2.2.16",
|
|
25
25
|
"lit": "3.3.3"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@fluid-topics/public-api": "1.0.
|
|
28
|
+
"@fluid-topics/public-api": "1.0.142"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "c461a5d4f16255f9dd084cb26b2f988702693e2f"
|
|
31
31
|
}
|