@fluid-topics/ft-search-selected-facets 2.2.32 → 2.2.34

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,4 +1,4 @@
1
- "use strict";(()=>{var nd=Object.create;var oo=Object.defineProperty;var sd=Object.getOwnPropertyDescriptor;var od=Object.getOwnPropertyNames;var ad=Object.getPrototypeOf,ld=Object.prototype.hasOwnProperty;var gr=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}};var cd=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of od(e))!ld.call(t,n)&&n!==r&&oo(t,n,{get:()=>e[n],enumerable:!(i=sd(e,n))||i.enumerable});return t};var d=(t,e,r)=>(r=t!=null?nd(ad(t)):{},cd(e||!t||!t.__esModule?oo(r,"default",{value:t,enumerable:!0}):r,t));var v=gr((Qp,ao)=>{ao.exports=ftGlobals.wcUtils});var R=gr((Zp,lo)=>{lo.exports=ftGlobals.lit});var U=gr((Jp,co)=>{co.exports=ftGlobals.litDecorators});var Kn=gr((ef,uo)=>{uo.exports=ftGlobals.litRepeat});var Gt=gr((dg,ul)=>{ul.exports=ftGlobals.litClassMap});var rc=gr((Kg,tc)=>{tc.exports=ftGlobals.litUnsafeHTML});var td=d(v());var ee=d(R()),qn=d(U()),jn=d(Kn()),W=d(v());var po=d(R()),fo=d(v()),ud={spacing:fo.FtCssVariableFactory.create("--ft-search-selected-facets-spacing","","SIZE","8px")},ho=po.css`
1
+ "use strict";(()=>{var nd=Object.create;var oo=Object.defineProperty;var sd=Object.getOwnPropertyDescriptor;var od=Object.getOwnPropertyNames;var ad=Object.getPrototypeOf,ld=Object.prototype.hasOwnProperty;var xr=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}};var cd=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of od(e))!ld.call(t,n)&&n!==r&&oo(t,n,{get:()=>e[n],enumerable:!(i=sd(e,n))||i.enumerable});return t};var d=(t,e,r)=>(r=t!=null?nd(ad(t)):{},cd(e||!t||!t.__esModule?oo(r,"default",{value:t,enumerable:!0}):r,t));var v=xr((Qp,ao)=>{ao.exports=ftGlobals.wcUtils});var R=xr((Zp,lo)=>{lo.exports=ftGlobals.lit});var B=xr((Jp,co)=>{co.exports=ftGlobals.litDecorators});var Kn=xr((ef,uo)=>{uo.exports=ftGlobals.litRepeat});var Xt=xr((dg,ul)=>{ul.exports=ftGlobals.litClassMap});var rc=xr((Kg,tc)=>{tc.exports=ftGlobals.litUnsafeHTML});var td=d(v());var ne=d(R()),br=d(B()),Br=d(Kn()),q=d(v());var po=d(R()),fo=d(v()),ud={spacing:fo.FtCssVariableFactory.create("--ft-search-selected-facets-spacing","","SIZE","8px")},ho=po.css`
2
2
  .ft-search-selected-facets--container {
3
3
  display: flex;
4
4
  flex-wrap: wrap;
@@ -8,10 +8,10 @@
8
8
  .ft-search-selected-facets--container > * {
9
9
  min-width: 0;
10
10
  }
11
- `;var wr=d(v()),Zr=d(U());var Ur;(function(t){t.CLUSTERED_SEARCH="CLUSTERED_SEARCH"})(Ur||(Ur={}));var Et=d(v());var dd=d(v());var mo;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(mo||(mo={}));var yo;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(yo||(yo={}));var go;(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"})(go||(go={}));var vo;(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"})(vo||(vo={}));var bo;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(bo||(bo={}));var xo;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(xo||(xo={}));var So;(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(So||(So={}));var Eo;(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"})(Eo||(Eo={}));var Ao;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(Ao||(Ao={}));var _o;(function(t){t.METADATA_FILTER="METADATA_FILTER",t.ACCESS_RIGHTS_FILTER="ACCESS_RIGHTS_FILTER"})(_o||(_o={}));var Co;(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"})(Co||(Co={}));var wo;(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"})(wo||(wo={}));var Oo;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Oo||(Oo={}));var To;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(To||(To={}));var Ro;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Ro||(Ro={}));var Lo;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Lo||(Lo={}));var ko;(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"})(ko||(ko={}));var pt;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(pt||(pt={}));var Do;(function(t){t.ASC="ASC",t.DESC="DESC"})(Do||(Do={}));var No;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(No||(No={}));var _i;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(_i||(_i={}));var Po;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Po||(Po={}));var Io;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Io||(Io={}));var Mo;(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"})(Mo||(Mo={}));var Ci;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Ci||(Ci={}));var $o;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})($o||($o={}));var wi;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(wi||(wi={}));var Fo;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Fo||(Fo={}));var G;(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"})(G||(G={}));var Fe;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(Fe||(Fe={}));var Uo;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(Uo||(Uo={}));var Bo;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(Bo||(Bo={}));var Vo;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Vo||(Vo={}));var Ho;(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"})(Ho||(Ho={}));var zo;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(zo||(zo={}));var jo;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(jo||(jo={}));var qo;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(qo||(qo={}));var Ko;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Ko||(Ko={}));var Wo;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(Wo||(Wo={}));var Go;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(Go||(Go={}));var Yo;(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"})(Yo||(Yo={}));var Xo;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(Xo||(Xo={}));var pd={[G.PERSONAL_BOOK_SHARE_USER]:[G.PERSONAL_BOOK_USER],[G.HTML_EXPORT_USER]:[G.PERSONAL_BOOK_USER],[G.PDF_EXPORT_USER]:[G.PERSONAL_BOOK_USER],[G.KHUB_ADMIN]:[G.CONTENT_PUBLISHER],[G.ADMIN]:[G.KHUB_ADMIN,G.USERS_ADMIN,G.PORTAL_ADMIN,G.BEHAVIOR_DATA_USER],[G.GENERATIVE_AI_EXPORT_USER]:[G.GENERATIVE_AI_USER]};function Qo(t,e){return t===e||(pd[t]??[]).some(r=>Qo(r,e))}function Oi(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(i=>Qo(i,e))}function Zo(t,...e){return t==null?!1:e.some(r=>Oi(t,r))}var hs=d(U());var Jo=d(U(),1);var Wn=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)},fd=t=>({fromAttribute:e=>{if(e==null)return Br(t);try{return JSON.parse(e)}catch{return Br(t)}},toAttribute:e=>JSON.stringify(e)});function ea(t,e){return(0,Jo.property)({type:Object,converter:fd(t),hasChanged:Vr,...e??{}})}function hd(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;let r,i;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(i=r;i--!==0;)if(!vr(t[i],e[i]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;for(i of t.entries())if(!vr(i[1],e.get(i[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let n=o=>Object.keys(o).filter(a=>o[a]!=null),s=n(t);if(r=s.length,r!==n(e).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,s[i]))return!1;for(i=r;i--!==0;){let o=s[i];if(!vr(t[o],e[o]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function vr(t,e){try{return hd(t,e)}catch{return!1}}function Vr(t,e){return!vr(t,e)}function Br(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function Ti(t,e){let r=i=>i[t]===!0;return i=>{if(r(i))return i;let n=e(i);return n[t]=!0,n}}var ta=d(U(),1);var Gn=t=>{let e=t??{};return(r,i)=>{var n;let s={hasChanged:Vr,attribute:!1,...e};(0,ta.property)(s)(r,i);let o=r.constructor;o.reduxProperties=new Map(o.reduxProperties),o.reduxProperties.set(i,{selector:(n=e.selector)!==null&&n!==void 0?n:(a=>a[i]),store:e.store})}};var Ri=class{constructor(){this.queue=[]}add(e,r=!1){r&&this.clear(e.type),this.queue.push(e)}consume(e){let r=this.queue.find(i=>i.type===e);return r&&(this.queue=this.queue.filter(i=>i!==r)),r}clear(e){typeof e=="string"?this.queue=this.queue.filter(r=>r.type!==e):this.queue=this.queue.filter(r=>!e.test(r.type))}};var Ut=d(U(),1);var Li=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,r){return this.callbacks=[e],this.debounce(r)}queue(e,r){return this.callbacks.push(e),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((r,i)=>{this.resolvePromise=r,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let i=[...this.callbacks];this.callbacks=[];let n=(e=this.rejectPromise)!==null&&e!==void 0?e:(()=>null),s=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let o of i)try{await o()}catch(a){n(a);return}s(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Di=d(R(),1);var ki=class extends Di.LitElement{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let e=this.scopedRegistryConstructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,e.defineScopedElements(e.elementDefinitions));let r={...e.shadowRootOptions,customElements:e.registry},i=this.renderOptions.creationScope=this.attachShadow(r);return(0,Di.adoptStyles)(i,e.elementStyles),i}static canDefineScopedElement(e){return!!this.registry&&!this.registry.get(e)}static defineScopedElements(e){Object.entries(e).forEach(([r,i])=>this.defineScopedElement(r,i))}static defineScopedElement(e,r){Wn(e)(r),this.canDefineScopedElement(e)&&this.registry.define(e,r)}canDefineScopedElement(e){return this.scopedRegistryConstructor.canDefineScopedElement(e)}defineScopedElements(e){this.scopedRegistryConstructor.defineScopedElements(e)}defineScopedElement(e,r){this.scopedRegistryConstructor.defineScopedElement(e,r)}};function ra(t,e,...r){var i;let n=t.querySelector(e);for(let s of r)n=(i=n?.shadowRoot)===null||i===void 0?void 0:i.querySelector(s);return n}var xr=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},oa,ia=Symbol("constructorPrototype"),na=Symbol("constructorName"),aa=Symbol("exportpartsDebouncer"),sa=Symbol("dynamicDependenciesLoaded"),br=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};br.eventName="exportparts-updated";var it=class extends ki{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[oa]=new Li(5),this.scheduleExportpartsUpdate=()=>{var e,r,i;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(i=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&i!==void 0&&i)&&this[aa].run(()=>{var n,s;!((n=this.exportpartsPrefix)===null||n===void 0)&&n.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((s=this.exportpartsPrefixes)===null||s===void 0?void 0:s.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[na]=this.constructor.name,this[ia]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[na]&&Object.setPrototypeOf(this,this[ia])}connectedCallback(){var e;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(i){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",i)}let r=this.constructor;r[sa]||(r[sa]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(br.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(br.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate(),e.has("exportparts")&&this.dispatchEvent(new br)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:i,shadowPath:n}=this.elementToFocus;if(i!=null){let s=[...n??[],i];r=ra(this.shadowRoot,...s)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var r,i,n;if(((i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(s=>s.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}catch(s){console.error(s,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let s=document.createElement("style");s.classList.add("ft-lit-element--custom-stylesheet"),s.innerHTML=this.customStylesheet,this.shadowRoot.append(s)}}setExportpartsAttribute(e){var r,i,n,s,o,a;let l=f=>f!=null&&f.trim().length>0,c=e.filter(l).map(f=>f.trim());if(c.length===0){this.exportparts=void 0;return}let u=new Set;for(let f of(s=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&s!==void 0?s:[]){let y=(o=(i=f.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&o!==void 0?o:[],x=(a=(n=f.getAttribute("exportparts"))===null||n===void 0?void 0:n.split(",").map(b=>b.split(":")[1]))!==null&&a!==void 0?a:[],_=[...y,...x].filter(l).map(b=>b.trim());for(let b of _)u.add(b)}if(u.size===0){this.exportparts=void 0;return}let p=[...u.values()].flatMap(f=>c.map(y=>`${f}:${y}--${f}`));this.exportparts=[...this.part,...p].join(", ")}};oa=aa;xr([(0,Ut.property)()],it.prototype,"exportpartsPrefix",void 0);xr([ea([])],it.prototype,"exportpartsPrefixes",void 0);xr([(0,Ut.property)({reflect:!0})],it.prototype,"exportparts",void 0);xr([(0,Ut.property)()],it.prototype,"customStylesheet",void 0);xr([(0,Ut.property)()],it.prototype,"elementToFocus",void 0);xr([(0,Ut.state)()],it.prototype,"useAdoptedStyleSheets",void 0);function Ni(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Hr=Symbol("internalReduxEventsUnsubscribers"),bt=Symbol("internalStoresUnsubscribers"),Bt=Symbol("internalStores"),md=Ti(Symbol("withRedux"),function(t){var e,r,i;class n extends t{constructor(){super(...arguments),this[e]=new Map,this[r]=new Map,this[i]=new Map}get reduxConstructor(){return this.constructor}willUpdate(o){super.willUpdate(o),[...this.reduxConstructor.reduxReactiveProperties].some(a=>o.has(a))&&this.updateFromStores()}getUnnamedStore(){if(this[Bt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Bt].values()][0]}getStore(o){return o==null?this.getUnnamedStore():this[Bt].get(o)}addStore(o,a){var l;a=(l=a??o.name)!==null&&l!==void 0?l:"default-store",this.unsubscribeFromStore(a),this[Bt].set(a,o),this.subscribeToStore(a,o),this.updateFromStores()}removeStore(o){let a=typeof o=="string"?o:o.name;this.unsubscribeFromStore(a),this[Bt].delete(a)}setupStores(){this.unsubscribeFromStores(),this[Bt].forEach((o,a)=>this.subscribeToStore(a,o)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((o,a)=>{let l=this.constructor.getPropertyOptions(a);if(!l?.attribute||!this.hasAttribute(typeof l?.attribute=="string"?l.attribute:a)){let c=this.getStore(o.store);c&&(o.store?this[bt].has(o.store):this[bt].size>0)&&(this[a]=o.selector(c.getState(),this))}})}subscribeToStore(o,a){var l,c;this[bt].set(o,a.subscribe(()=>this.updateFromStores())),this[Hr].set(o,[]),Ni(a)&&(!((l=a.deprecatedKeys)===null||l===void 0)&&l.length&&this.reduxConstructor.reduxProperties.forEach((u,p)=>{this.getStore(u.store)===a&&a.deprecatedKeys.includes(p)&&console.warn("Element",this,"is subscribed to deprecated key",p,"in store",a.name)}),a.eventBus&&((c=this.reduxConstructor.reduxEventListeners)===null||c===void 0||c.forEach((u,p)=>{if(typeof this[p]=="function"&&(!u.store||a.name===u.store)){let f=y=>this[p](y);a.addEventListener(u.eventName,f),this[Hr].get(o).push(()=>a.removeEventListener(u.eventName,f))}}))),this.onStoreAvailable(o)}unsubscribeFromStores(){this[bt].forEach((o,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(o){var a;this[bt].has(o)&&this[bt].get(o)(),this[bt].delete(o),(a=this[Hr].get(o))===null||a===void 0||a.forEach(l=>l()),this[Hr].delete(o)}onStoreAvailable(o){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=bt,r=Bt,i=Hr,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}),la=class extends md(it){};function ce(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 yd=typeof Symbol=="function"&&Symbol.observable||"@@observable",ca=yd,Yn=()=>Math.random().toString(36).substring(7).split("").join("."),gd={INIT:`@@redux/INIT${Yn()}`,REPLACE:`@@redux/REPLACE${Yn()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Yn()}`},Pi=gd;function Ii(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 Xn(t,e,r){if(typeof t!="function")throw new Error(ce(2));if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(ce(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(ce(1));return r(Xn)(t,e)}let i=t,n=e,s=new Map,o=s,a=0,l=!1;function c(){o===s&&(o=new Map,s.forEach((b,w)=>{o.set(w,b)}))}function u(){if(l)throw new Error(ce(3));return n}function p(b){if(typeof b!="function")throw new Error(ce(4));if(l)throw new Error(ce(5));let w=!0;c();let N=a++;return o.set(N,b),function(){if(w){if(l)throw new Error(ce(6));w=!1,c(),o.delete(N),s=null}}}function f(b){if(!Ii(b))throw new Error(ce(7));if(typeof b.type>"u")throw new Error(ce(8));if(typeof b.type!="string")throw new Error(ce(17));if(l)throw new Error(ce(9));try{l=!0,n=i(n,b)}finally{l=!1}return(s=o).forEach(N=>{N()}),b}function y(b){if(typeof b!="function")throw new Error(ce(10));i=b,f({type:Pi.REPLACE})}function x(){let b=p;return{subscribe(w){if(typeof w!="object"||w===null)throw new Error(ce(11));function N(){let E=w;E.next&&E.next(u())}return N(),{unsubscribe:b(N)}},[ca](){return this}}}return f({type:Pi.INIT}),{dispatch:f,subscribe:p,getState:u,replaceReducer:y,[ca]:x}}function vd(t){Object.keys(t).forEach(e=>{let r=t[e];if(typeof r(void 0,{type:Pi.INIT})>"u")throw new Error(ce(12));if(typeof r(void 0,{type:Pi.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ce(13))})}function Qn(t){let e=Object.keys(t),r={};for(let o=0;o<e.length;o++){let a=e[o];typeof t[a]=="function"&&(r[a]=t[a])}let i=Object.keys(r),n,s;try{vd(r)}catch(o){s=o}return function(a={},l){if(s)throw s;let c=!1,u={};for(let p=0;p<i.length;p++){let f=i[p],y=r[f],x=a[f],_=y(x,l);if(typeof _>"u"){let b=l&&l.type;throw new Error(ce(14))}u[f]=_,c=c||_!==x}return c=c||i.length!==Object.keys(a).length,c?u:a}}function zr(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce((e,r)=>(...i)=>e(r(...i)))}function ua(...t){return e=>(r,i)=>{let n=e(r,i),s=()=>{throw new Error(ce(15))},o={getState:n.getState,dispatch:(l,...c)=>s(l,...c)},a=t.map(l=>l(o));return s=zr(...a)(n.dispatch),{...n,dispatch:s}}}function da(t){return Ii(t)&&"type"in t&&typeof t.type=="string"}var xa=Symbol.for("immer-nothing"),pa=Symbol.for("immer-draftable"),ye=Symbol.for("immer-state");function je(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var Le=Object,Er=Le.getPrototypeOf,Ui="constructor",qi="prototype",ts="configurable",Bi="enumerable",$i="writable",jr="value",nt=t=>!!t&&!!t[ye];function ke(t){return t?Sa(t)||Wi(t)||!!t[pa]||!!t[Ui]?.[pa]||Gi(t)||Yi(t):!1}var bd=Le[qi][Ui].toString(),fa=new WeakMap;function Sa(t){if(!t||!cs(t))return!1;let e=Er(t);if(e===null||e===Le[qi])return!0;let r=Le.hasOwnProperty.call(e,Ui)&&e[Ui];if(r===Object)return!0;if(!Sr(r))return!1;let i=fa.get(r);return i===void 0&&(i=Function.toString.call(r),fa.set(r,i)),i===bd}function Ki(t,e,r=!0){Wr(t)===0?(r?Reflect.ownKeys(t):Le.keys(t)).forEach(n=>{e(n,t[n],t)}):t.forEach((i,n)=>e(n,i,t))}function Wr(t){let e=t[ye];return e?e.type_:Wi(t)?1:Gi(t)?2:Yi(t)?3:0}var Zn=(t,e,r=Wr(t))=>r===2?t.has(e):Le[qi].hasOwnProperty.call(t,e),rs=(t,e,r=Wr(t))=>r===2?t.get(e):t[e],Vi=(t,e,r,i=Wr(t))=>{i===2?t.set(e,r):i===3?t.add(r):t[e]=r};function xd(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}var Wi=Array.isArray,Gi=t=>t instanceof Map,Yi=t=>t instanceof Set,cs=t=>typeof t=="object",Sr=t=>typeof t=="function",Jn=t=>typeof t=="boolean";function Sd(t){let e=+t;return Number.isInteger(e)&&String(e)===t}var ft=t=>t.copy_||t.base_;var us=t=>t.modified_?t.copy_:t.base_;function is(t,e){if(Gi(t))return new Map(t);if(Yi(t))return new Set(t);if(Wi(t))return Array[qi].slice.call(t);let r=Sa(t);if(e===!0||e==="class_only"&&!r){let i=Le.getOwnPropertyDescriptors(t);delete i[ye];let n=Reflect.ownKeys(i);for(let s=0;s<n.length;s++){let o=n[s],a=i[o];a[$i]===!1&&(a[$i]=!0,a[ts]=!0),(a.get||a.set)&&(i[o]={[ts]:!0,[$i]:!0,[Bi]:a[Bi],[jr]:t[o]})}return Le.create(Er(t),i)}else{let i=Er(t);if(i!==null&&r)return{...t};let n=Le.create(i);return Le.assign(n,t)}}function Xi(t,e=!1){return Qi(t)||nt(t)||!ke(t)||(Wr(t)>1&&Le.defineProperties(t,{set:Mi,add:Mi,clear:Mi,delete:Mi}),Le.freeze(t),e&&Ki(t,(r,i)=>{Xi(i,!0)},!1)),t}function Ed(){je(2)}var Mi={[jr]:Ed};function Qi(t){return t===null||!cs(t)?!0:Le.isFrozen(t)}var Hi="MapSet",ns="Patches",ha="ArrayMethods",Ea={};function Vt(t){let e=Ea[t];return e||je(0,t),e}var ma=t=>!!Ea[t];var qr,Aa=()=>qr,Ad=(t,e)=>({drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:ma(Hi)?Vt(Hi):void 0,arrayMethodsPlugin_:ma(ha)?Vt(ha):void 0});function ya(t,e){e&&(t.patchPlugin_=Vt(ns),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function ss(t){os(t),t.drafts_.forEach(_d),t.drafts_=null}function os(t){t===qr&&(qr=t.parent_)}var ga=t=>qr=Ad(qr,t);function _d(t){let e=t[ye];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function va(t,e){e.unfinalizedDrafts_=e.drafts_.length;let r=e.drafts_[0];if(t!==void 0&&t!==r){r[ye].modified_&&(ss(e),je(4)),ke(t)&&(t=ba(e,t));let{patchPlugin_:n}=e;n&&n.generateReplacementPatches_(r[ye].base_,t,e)}else t=ba(e,r);return Cd(e,t,!0),ss(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==xa?t:void 0}function ba(t,e){if(Qi(e))return e;let r=e[ye];if(!r)return zi(e,t.handledSet_,t);if(!Zi(r,t))return e;if(!r.modified_)return r.base_;if(!r.finalized_){let{callbacks_:i}=r;if(i)for(;i.length>0;)i.pop()(t);wa(r,t)}return r.copy_}function Cd(t,e,r=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&Xi(e,r)}function _a(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}var Zi=(t,e)=>t.scope_===e,wd=[];function Ca(t,e,r,i){let n=ft(t),s=t.type_;if(i!==void 0&&rs(n,i,s)===e){Vi(n,i,r,s);return}if(!t.draftLocations_){let a=t.draftLocations_=new Map;Ki(n,(l,c)=>{if(nt(c)){let u=a.get(c)||[];u.push(l),a.set(c,u)}})}let o=t.draftLocations_.get(e)??wd;for(let a of o)Vi(n,a,r,s)}function Od(t,e,r){t.callbacks_.push(function(n){let s=e;if(!s||!Zi(s,n))return;n.mapSetPlugin_?.fixSetContents(s);let o=us(s);Ca(t,s.draft_??s,o,r),wa(s,n)})}function wa(t,e){if(t.modified_&&!t.finalized_&&(t.type_===3||t.type_===1&&t.allIndicesReassigned_||(t.assigned_?.size??0)>0)){let{patchPlugin_:i}=e;if(i){let n=i.getPath(t);n&&i.generatePatches_(t,n,e)}_a(t)}}function Td(t,e,r){let{scope_:i}=t;if(nt(r)){let n=r[ye];Zi(n,i)&&n.callbacks_.push(function(){Fi(t);let o=us(n);Ca(t,r,o,e)})}else ke(r)&&t.callbacks_.push(function(){let s=ft(t);t.type_===3?s.has(r)&&zi(r,i.handledSet_,i):rs(s,e,t.type_)===r&&i.drafts_.length>1&&(t.assigned_.get(e)??!1)===!0&&t.copy_&&zi(rs(t.copy_,e,t.type_),i.handledSet_,i)})}function zi(t,e,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||nt(t)||e.has(t)||!ke(t)||Qi(t)||(e.add(t),Ki(t,(i,n)=>{if(nt(n)){let s=n[ye];if(Zi(s,r)){let o=us(s);Vi(t,i,o,t.type_),_a(s)}}else ke(n)&&zi(n,e,r)})),t}function Rd(t,e){let r=Wi(t),i={type_:r?1:0,scope_:e?e.scope_:Aa(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},n=i,s=ji;r&&(n=[i],s=Kr);let{revoke:o,proxy:a}=Proxy.revocable(n,s);return i.draft_=a,i.revoke_=o,[a,i]}var ji={get(t,e){if(e===ye)return t;let r=t.scope_.arrayMethodsPlugin_,i=t.type_===1&&typeof e=="string";if(i&&r?.isArrayOperationMethod(e))return r.createMethodInterceptor(t,e);let n=ft(t);if(!Zn(n,e,t.type_))return kd(t,n,e);let s=n[e];if(t.finalized_||!ke(s)||i&&t.operationMethod&&r?.isMutatingArrayMethod(t.operationMethod)&&Sd(e))return s;if(s===es(t.base_,e)||Ld(t,e,s)){Fi(t);let o=t.type_===1?+e:e,a=ls(t.scope_,s,t,o);return t.copy_[o]=a}return s},has(t,e){return e in ft(t)},ownKeys(t){return Reflect.ownKeys(ft(t))},set(t,e,r){let i=Oa(ft(t),e);if(i?.set)return i.set.call(t.draft_,r),!0;if(!t.modified_){let n=es(ft(t),e),s=n?.[ye];if(s&&s.base_===r)return t.copy_[e]=r,t.assigned_.delete(e),!0;if(xd(r,n)&&(r!==void 0||Zn(t.base_,e,t.type_)))return!0;Fi(t),as(t)}return t.copy_[e]===r&&(r!==void 0||Zn(t.copy_,e,t.type_))||Number.isNaN(r)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=r,t.assigned_.set(e,!0),Td(t,e,r)),!0},deleteProperty(t,e){return Fi(t),es(t.base_,e)!==void 0||e in t.base_?(t.assigned_.set(e,!1),as(t)):t.assigned_.delete(e),t.copy_&&delete t.copy_[e],!0},getOwnPropertyDescriptor(t,e){let r=ft(t),i=Reflect.getOwnPropertyDescriptor(r,e);return i&&{[$i]:!0,[ts]:t.type_!==1||e!=="length",[Bi]:i[Bi],[jr]:r[e]}},defineProperty(){je(11)},getPrototypeOf(t){return Er(t.base_)},setPrototypeOf(){je(12)}},Kr={};for(let t in ji){let e=ji[t];Kr[t]=function(){let r=arguments;return r[0]=r[0][0],e.apply(this,r)}}Kr.deleteProperty=function(t,e){return Kr.set.call(this,t,e,void 0)};Kr.set=function(t,e,r){return ji.set.call(this,t[0],e,r,t[0])};function es(t,e){let r=t[ye];return(r?ft(r):t)[e]}function Ld(t,e,r){return t.type_!==1||!t.allIndicesReassigned_||t.assigned_?.get(e)||!ke(r)||r[ye]?!1:t.baseRefs_.has(r)}function kd(t,e,r){let i=Oa(e,r);return i?jr in i?i[jr]:i.get?.call(t.draft_):void 0}function Oa(t,e){if(!(e in t))return;let r=Er(t);for(;r;){let i=Object.getOwnPropertyDescriptor(r,e);if(i)return i;r=Er(r)}}function as(t){t.modified_||(t.modified_=!0,t.parent_&&as(t.parent_))}function Fi(t){t.copy_||(t.assigned_=new Map,t.copy_=is(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var Dd=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,r,i)=>{if(Sr(e)&&!Sr(r)){let s=r;r=e;let o=this;return function(l=s,...c){return o.produce(l,u=>r.call(this,u,...c))}}Sr(r)||je(6),i!==void 0&&!Sr(i)&&je(7);let n;if(ke(e)){let s=ga(this),o=ls(s,e,void 0),a=!0;try{n=r(o),a=!1}finally{a?ss(s):os(s)}return ya(s,i),va(n,s)}else if(!e||!cs(e)){if(n=r(e),n===void 0&&(n=e),n===xa&&(n=void 0),this.autoFreeze_&&Xi(n,!0),i){let s=[],o=[];Vt(ns).generateReplacementPatches_(e,n,{patches_:s,inversePatches_:o}),i(s,o)}return n}else je(1,e)},this.produceWithPatches=(e,r)=>{if(Sr(e))return(o,...a)=>this.produceWithPatches(o,l=>e(l,...a));let i,n;return[this.produce(e,r,(o,a)=>{i=o,n=a}),i,n]},Jn(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),Jn(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),Jn(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){ke(t)||je(8),nt(t)&&(t=Ta(t));let e=ga(this),r=ls(e,t,void 0);return r[ye].isManual_=!0,os(e),r}finishDraft(t,e){let r=t&&t[ye];(!r||!r.isManual_)&&je(9);let{scope_:i}=r;return ya(i,e),va(void 0,i)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,e){let r;for(r=e.length-1;r>=0;r--){let n=e[r];if(n.path.length===0&&n.op==="replace"){t=n.value;break}}r>-1&&(e=e.slice(r+1));let i=Vt(ns).applyPatches_;return nt(t)?i(t,e):this.produce(t,n=>i(n,e))}};function ls(t,e,r,i){let[n,s]=Gi(e)?Vt(Hi).proxyMap_(e,r):Yi(e)?Vt(Hi).proxySet_(e,r):Rd(e,r);return(r?.scope_??Aa()).drafts_.push(n),s.callbacks_=r?.callbacks_??[],s.key_=i,r&&i!==void 0?Od(r,s,i):s.callbacks_.push(function(l){l.mapSetPlugin_?.fixSetContents(s);let{patchPlugin_:c}=l;s.modified_&&c&&c.generatePatches_(s,[],l)}),n}function Ta(t){return nt(t)||je(10,t),Ra(t)}function Ra(t){if(!ke(t)||Qi(t))return t;let e=t[ye],r,i=!0;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,r=is(t,e.scope_.immer_.useStrictShallowCopy_),i=e.scope_.immer_.shouldUseStrictIteration()}else r=is(t,!0);return Ki(r,(n,s)=>{Vi(r,n,Ra(s))},i),e&&(e.finalized_=!1),r}var Nd=globalThis.Iterator,jf=typeof Nd?.from=="function";var Pd=new Dd,ds=Pd.produce;function La(t){return({dispatch:r,getState:i})=>n=>s=>typeof s=="function"?s(r,i,t):n(s)}var ka=La(),Da=La;var Id=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?zr:zr.apply(null,arguments)};typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;var Md=t=>t&&typeof t.match=="function";function xt(t,e){function r(...i){if(e){let n=e(...i);if(!n)throw new Error(st(0));return{type:t,payload:n.payload,..."meta"in n&&{meta:n.meta},..."error"in n&&{error:n.error}}}return{type:t,payload:i[0]}}return r.toString=()=>`${t}`,r.type=t,r.match=i=>da(i)&&i.type===t,r}var $a=class Gr extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,Gr.prototype)}static get[Symbol.species](){return Gr}concat(...e){return super.concat.apply(this,e)}prepend(...e){return e.length===1&&Array.isArray(e[0])?new Gr(...e[0].concat(this)):new Gr(...e.concat(this))}};function Na(t){return ke(t)?ds(t,()=>{}):t}function Ji(t,e,r){return t.has(e)?t.get(e):t.set(e,r(e)).get(e)}function $d(t){return typeof t=="boolean"}var Fd=()=>function(e){let{thunk:r=!0,immutableCheck:i=!0,serializableCheck:n=!0,actionCreatorCheck:s=!0}=e??{},o=new $a;return r&&($d(r)?o.push(ka):o.push(Da(r.extraArgument))),o},Ud="RTK_autoBatch";var Pa=t=>e=>{setTimeout(e,t)},Bd=(t,e)=>r=>{let i=!1,n,s,o=()=>{i||(i=!0,cancelAnimationFrame(n),clearTimeout(s),r())};n=t(o),s=setTimeout(o,e)},Vd=(t={type:"raf"})=>e=>(...r)=>{let i=e(...r),n=!0,s=!1,o=!1,a=new Set,l=t.type==="tick"?queueMicrotask:t.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?Bd(window.requestAnimationFrame,100):Pa(10):t.type==="callback"?t.queueNotification:Pa(t.timeout),c=()=>{o=!1,s&&(s=!1,a.forEach(u=>u()))};return Object.assign({},i,{subscribe(u){let p=()=>n&&u(),f=i.subscribe(p);return a.add(u),()=>{f(),a.delete(u)}},dispatch(u){try{return n=!u?.meta?.[Ud],s=!n,s&&(o||(o=!0,l(c))),i.dispatch(u)}finally{n=!0}}})},Hd=t=>function(r){let{autoBatch:i=!0}=r??{},n=new $a(t);return i&&n.push(Vd(typeof i=="object"?i:void 0)),n};function Fa(t){let e=Fd(),{reducer:r=void 0,middleware:i,devTools:n=!0,duplicateMiddlewareCheck:s=!0,preloadedState:o=void 0,enhancers:a=void 0}=t||{},l;if(typeof r=="function")l=r;else if(Ii(r))l=Qn(r);else throw new Error(st(1));let c;typeof i=="function"?c=i(e):c=e();let u=zr;n&&(u=Id({trace:!1,...typeof n=="object"&&n}));let p=ua(...c),f=Hd(p),y=typeof a=="function"?a(f):f(),x=u(...y);return Xn(l,o,x)}function Ua(t){let e={},r=[],i,n={addCase(s,o){let a=typeof s=="string"?s:s.type;if(!a)throw new Error(st(28));if(a in e)throw new Error(st(29));return e[a]=o,n},addAsyncThunk(s,o){return o.pending&&(e[s.pending.type]=o.pending),o.rejected&&(e[s.rejected.type]=o.rejected),o.fulfilled&&(e[s.fulfilled.type]=o.fulfilled),o.settled&&r.push({matcher:s.settled,reducer:o.settled}),n},addMatcher(s,o){return r.push({matcher:s,reducer:o}),n},addDefaultCase(s){return i=s,n}};return t(n),[e,r,i]}function zd(t){return typeof t=="function"}function jd(t,e){let[r,i,n]=Ua(e),s;if(zd(t))s=()=>Na(t());else{let a=Na(t);s=()=>a}function o(a=s(),l){let c=[r[l.type],...i.filter(({matcher:u})=>u(l)).map(({reducer:u})=>u)];return c.filter(u=>!!u).length===0&&(c=[n]),c.reduce((u,p)=>{if(p)if(nt(u)){let f=p(u,l);return f===void 0?u:f}else{if(ke(u))return ds(u,f=>p(f,l));{let f=p(u,l);if(f===void 0){if(u===null)return u;throw new Error(st(9))}return f}}return u},a)}return o.getInitialState=s,o}var qd=(t,e)=>Md(t)?t.match(e):t(e);function Kd(...t){return e=>t.some(r=>qd(r,e))}var Wd="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Gd=(t=21)=>{let e="",r=t;for(;r--;)e+=Wd[Math.random()*64|0];return e},Yd=["name","message","stack","code"],ps=class{payload;meta;_type;constructor(t,e){this.payload=t,this.meta=e}},Ia=class{payload;meta;_type;constructor(t,e){this.payload=t,this.meta=e}},Xd=t=>{if(typeof t=="object"&&t!==null){let e={};for(let r of Yd)typeof t[r]=="string"&&(e[r]=t[r]);return e}return{message:String(t)}},Ma="External signal was aborted",Qd=(()=>{function t(e,r,i){let n=xt(e+"/fulfilled",(l,c,u,p)=>({payload:l,meta:{...p||{},arg:u,requestId:c,requestStatus:"fulfilled"}})),s=xt(e+"/pending",(l,c,u)=>({payload:void 0,meta:{...u||{},arg:c,requestId:l,requestStatus:"pending"}})),o=xt(e+"/rejected",(l,c,u,p,f)=>({payload:p,error:(i&&i.serializeError||Xd)(l||"Rejected"),meta:{...f||{},arg:u,requestId:c,rejectedWithValue:p!==void 0,requestStatus:"rejected",aborted:l?.name==="AbortError",condition:l?.name==="ConditionError"}}));function a(l,{signal:c}={}){return(u,p,f)=>{let y=i?.idGenerator?i.idGenerator(l):Gd(),x=new AbortController,_,b;function w(S){b=S,x.abort()}c&&(c.aborted?w(Ma):c.addEventListener("abort",()=>w(Ma),{once:!0}));let N=(async function(){let S;try{let E=i?.condition?.(l,{getState:p,extra:f});if(Jd(E)&&(E=await E),E===!1)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};if(x.signal.aborted)throw{name:"AbortError",message:b||"Aborted"};let I=new Promise((D,te)=>{_=()=>{te({name:"AbortError",message:b||"Aborted"})},x.signal.addEventListener("abort",_,{once:!0})});u(s(y,l,i?.getPendingMeta?.({requestId:y,arg:l},{getState:p,extra:f}))),S=await Promise.race([I,Promise.resolve(r(l,{dispatch:u,getState:p,extra:f,requestId:y,signal:x.signal,abort:w,rejectWithValue:((D,te)=>new ps(D,te)),fulfillWithValue:((D,te)=>new Ia(D,te))})).then(D=>{if(D instanceof ps)throw D;return D instanceof Ia?n(D.payload,y,l,D.meta):n(D,y,l)})])}catch(E){S=E instanceof ps?o(null,y,l,E.payload,E.meta):o(E,y,l)}finally{_&&x.signal.removeEventListener("abort",_)}return i&&!i.dispatchConditionRejection&&o.match(S)&&S.meta.condition||u(S),S})();return Object.assign(N,{abort:w,requestId:y,arg:l,unwrap(){return N.then(Zd)}})}}return Object.assign(a,{pending:s,rejected:o,fulfilled:n,settled:Kd(o,n),typePrefix:e})}return t.withTypes=()=>t,t})();function Zd(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Jd(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Ba=Symbol.for("rtk-slice-createasyncthunk"),Zf={[Ba]:Qd};function ep(t,e){return`${t}/${e}`}function tp({creators:t}={}){let e=t?.asyncThunk?.[Ba];return function(i){let{name:n,reducerPath:s=n}=i;if(!n)throw new Error(st(11));typeof process<"u";let o=(typeof i.reducers=="function"?i.reducers(ip()):i.reducers)||{},a=Object.keys(o),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(S,E){let I=typeof S=="string"?S:S.type;if(!I)throw new Error(st(12));if(I in l.sliceCaseReducersByType)throw new Error(st(13));return l.sliceCaseReducersByType[I]=E,c},addMatcher(S,E){return l.sliceMatchers.push({matcher:S,reducer:E}),c},exposeAction(S,E){return l.actionCreators[S]=E,c},exposeCaseReducer(S,E){return l.sliceCaseReducersByName[S]=E,c}};a.forEach(S=>{let E=o[S],I={reducerName:S,type:ep(n,S),createNotation:typeof i.reducers=="function"};sp(E)?ap(I,E,c,e):np(I,E,c)});function u(){let[S={},E=[],I=void 0]=typeof i.extraReducers=="function"?Ua(i.extraReducers):[i.extraReducers],D={...S,...l.sliceCaseReducersByType};return jd(i.initialState,te=>{for(let me in D)te.addCase(me,D[me]);for(let me of l.sliceMatchers)te.addMatcher(me.matcher,me.reducer);for(let me of E)te.addMatcher(me.matcher,me.reducer);I&&te.addDefaultCase(I)})}let p=S=>S,f=new Map,y=new WeakMap,x;function _(S,E){return x||(x=u()),x(S,E)}function b(){return x||(x=u()),x.getInitialState()}function w(S,E=!1){function I(te){let me=te[S];return typeof me>"u"&&E&&(me=Ji(y,I,b)),me}function D(te=p){return Ji(Ji(f,E,()=>new WeakMap),te,()=>{let me={};for(let[Ai,$e]of Object.entries(i.selectors??{}))me[Ai]=rp($e,te,()=>Ji(y,te,b),E);return me})}return{reducerPath:S,getSelectors:D,get selectors(){return D(I)},selectSlice:I}}let N={name:n,reducer:_,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:b,...w(s),injectInto(S,{reducerPath:E,...I}={}){let D=E??s;return S.inject({reducerPath:D,reducer:_},I),{...N,...w(D,!0)}}};return N}}function rp(t,e,r,i){function n(s,...o){let a=e(s);return typeof a>"u"&&i&&(a=r()),t(a,...o)}return n.unwrapped=t,n}var Va=tp();function ip(){function t(e,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...r}}return t.withTypes=()=>t,{reducer(e){return Object.assign({[e.name](...r){return e(...r)}}[e.name],{_reducerDefinitionType:"reducer"})},preparedReducer(e,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:r}},asyncThunk:t}}function np({type:t,reducerName:e,createNotation:r},i,n){let s,o;if("reducer"in i){if(r&&!op(i))throw new Error(st(17));s=i.reducer,o=i.prepare}else s=i;n.addCase(t,s).exposeCaseReducer(e,s).exposeAction(e,o?xt(t,o):xt(t))}function sp(t){return t._reducerDefinitionType==="asyncThunk"}function op(t){return t._reducerDefinitionType==="reducerWithPrepare"}function ap({type:t,reducerName:e},r,i,n){if(!n)throw new Error(st(18));let{payloadCreator:s,fulfilled:o,pending:a,rejected:l,settled:c,options:u}=r,p=n(t,s,u);i.exposeAction(e,p),o&&i.addCase(p.fulfilled,o),a&&i.addCase(p.pending,a),l&&i.addCase(p.rejected,l),c&&i.addMatcher(p.settled,c),i.exposeCaseReducer(e,{fulfilled:o||en,pending:a||en,rejected:l||en,settled:c||en})}function en(){}var Ha="listener",za="completed",ja="cancelled",Jf=`task-${ja}`,eh=`task-${za}`,th=`${Ha}-${ja}`,rh=`${Ha}-${za}`;var{assign:qa}=Object;var fs="listenerMiddleware";var lp=qa(xt(`${fs}/add`),{withTypes:()=>lp}),ih=xt(`${fs}/removeAll`),cp=qa(xt(`${fs}/remove`),{withTypes:()=>cp});function st(t){return`Minified Redux Toolkit error #${t}; visit https://redux-toolkit.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var up=Ti(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(r,i,n){this.eventBus.addEventListener(r,i,n)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,i,n){this.eventBus.removeEventListener(r,i,n)}}}),tn=class extends up(Object){};window.ftReduxStores||(window.ftReduxStores={});var Ka=class t extends tn{static get(e){var r;let i=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,s=window.ftReduxStores[i];if(Ni(s))return s;if(n==null)return;let o=Va({...n,reducers:(r=n.reducers)!==null&&r!==void 0?r:{}}),a=Fa({reducer:(l,c)=>{if(c.type==="CLEAR_FT_REDUX_STORE"){let u=Br(o.getInitialState());for(let p of c.keeping)u[p]=(l??u)[p];return u}else if(typeof c.type=="string"&&c.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...l,...c.overwrites};return o.reducer(l,c)}});return window.ftReduxStores[n.name]=new t(o,a,n.eventBus,n.deprecatedKeys)}constructor(e,r,i,n){super(),this.reduxSlice=e,this.reduxStore=r,this.deprecatedKeys=n,this.isFtReduxStore=!0,this.commands=new Ri,this.injectInto=(o,a)=>this.reduxSlice.injectInto(o,a),this.selectSlice=o=>this.reduxSlice.selectSlice(o);let s=o=>o!=null?JSON.parse(JSON.stringify(o)):o;this.actions=new Proxy(this.reduxSlice.actions,{get:(o,a,l)=>{let c=a,u=o[c];return u?(...p)=>{let f=u(...p.map(s));return this.reduxStore.dispatch(f),f}:p=>{let f=c,y=this.getState()[f];vr(y,p)||this.setState({[f]:s(p)})}}}),this.eventBus=i??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...e){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:e})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}get selectors(){return this.reduxSlice.selectors}get reducerPath(){return this.reduxSlice.reducerPath}getSelectors(){return this.reduxSlice.getSelectors()}};var rn=class{static format(e,r,i,n,s){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(i,n,!!s)):this.getIntlDateTime(e,r,i,n,!!s)}static getMomentDateFormat(e,r,i){return i?"LT":e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,i,n,s){let o=typeof e=="string"?new Date(e):e,a=new Intl.DateTimeFormat(r,{dateStyle:i?"medium":"short"}).format(o),l=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(o);return s?l:n?`${a} ${l}`:a}static getTimezoneAsString(){let e=i=>String(Math.floor(i)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${e(Math.abs(r)/60)}:${e(Math.abs(r)%60)}`}};var nn=d(v()),dp="ft-app-info",St=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};St.eventName="authentication-change";var Yr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Yr.eventName="ui-locale-changed";var pp={session:(t,e)=>{(0,nn.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>A.dispatchEvent(new St(e.payload)),0))}},A=nn.FtReduxStore.get({name:dp,reducers:pp,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 Wa=d(v()),sn=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Ga=(0,Wa.applyMixinOnce)(Symbol("withDateFormat"),function(t){class e extends t{constructor(...i){super(i),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(A)}dateFormatOptionsChanged(i){return i.has("metadataDescriptors")||i.has("useLongDateFormat")||i.has("useDateTimeFormat")||i.has("uiLocale")}getDateFormatter(i){var n,s;return((s=(n=this.metadataDescriptors.find(a=>a.key===i))===null||n===void 0?void 0:n.date)!==null&&s!==void 0?s:!1)?a=>rn.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return sn([(0,hs.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),sn([(0,hs.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),sn([Gn({store:A.name,selector:r=>{var i,n;return(n=(i=r.metadataConfiguration)===null||i===void 0?void 0:i.descriptors)!==null&&n!==void 0?n:[]}})],e.prototype,"metadataDescriptors",void 0),sn([Gn({store:A.name})],e.prototype,"uiLocale",void 0),e});var un=d(v());var ms=d(v());var Ht=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:i}=A.getState(),n=e??i;if(r&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,n,!0)}static await(e){return new Promise(r=>{let i=t.get(e);if(i)r(i);else{let n=A.subscribe(()=>{i=t.get(e),i&&(n(),r(i))})}})}};var Ar=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Ht.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Ht.await()}};var Ee=class extends Ar{constructor(e=!0,r){var i;super(r),this.sortObjectFields=(s,o)=>typeof o!="object"||o==null||Array.isArray(o)?o:Object.fromEntries(Object.entries(o).sort(([a],[l])=>a.localeCompare(l)));let n=this.constructor;n.commonCache=(i=n.commonCache)!==null&&i!==void 0?i:new ms.CacheRegistry,this.cache=e?n.commonCache:new ms.CacheRegistry}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((r,i)=>0|31*r+i.charCodeAt(0),0))}};var on=class extends Ee{async listMySearches(){let{session:e}=A.getState();return Oi(e,G.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var an=class extends Ee{async listMyBookmarks(){let e=A.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}};var ln=class extends Ee{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=A.getState().session;return!!e?.sessionAuthenticated}};var cn=class extends Ee{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let e=A.getState().session;return!!e?.sessionAuthenticated}};var fp="ft-user-assets",hp={setAssetCount:(t,e)=>{let{userAssetType:r,count:i}=e.payload.assetCount;t.assetCounts.allAsset[r]=i},clearAssetCount:t=>{Object.values(Fe).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let r=e.payload.mapId;t.assetCounts.bookmarkByMap[r]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:r,mapId:i,asset:n}=e.payload;gs(t,r,[...ys(t,r),n]),Ya(t,r,1,i),Xa(t,n)},editAsset:(t,e)=>{let{assetType:r,asset:i}=e.payload;gs(t,r,ys(t,r).map(n=>n.id===i.id?i:n)),Xa(t,i)},removeAsset:(t,e)=>{let{assetType:r,mapId:i,assetId:n}=e.payload;gs(t,r,ys(t,r).filter(s=>s.id!==n)),Ya(t,r,-1,i)}},Qa={[Fe.SEARCHES]:"savedSearches",[Fe.BOOKMARKS]:"bookmarks",[Fe.BOOKS]:void 0,[Fe.COLLECTIONS]:void 0},ys=(t,e)=>{var r;let i=Qa[e];return i?(r=t[i])!==null&&r!==void 0?r:[]:[]},gs=(t,e,r)=>{let i=Qa[e];i&&(t[i]=r)},Ya=(t,e,r,i)=>{let n=t.assetCounts.allAsset[e];if(n!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,n+r),e===Fe.BOOKMARKS&&i)){let s=t.assetCounts.bookmarkByMap[i];t.assetCounts.bookmarkByMap[i]=Math.max(0,s+r)}},Xa=(t,e)=>{let r=t.assetLabels.map(n=>n.title),i=e.labels.filter(n=>!r.includes(n)).map(n=>({title:n}));t.assetLabels.push(...i)},xe=un.FtReduxStore.get({name:fp,reducers:hp,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Fe).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),vs=class{constructor(e=new ln,r=new cn){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=A.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new an,this.savedSearchesService=new on,A.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=A.getState();(0,un.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),xe.actions.clearAssetCount(),xe.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),xe.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),xe.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();xe.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();xe.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&xe.getState().assetCounts.allAsset[e]!==r.count&&xe.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&xe.getState().assetCounts.bookmarkByMap[e]!==r.count&&xe.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(xe.getState().assetCounts.bookmarkByMap).length!==0;e===Fe.BOOKMARKS&&r&&xe.actions.clearBookmarkCountByMap(),xe.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let r=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;xe.actions.bookmarks(r)}}},mp=new vs;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=mp);var bs=class{addCommand(e,r=!1){A.commands.add(e,r)}consumeCommand(e){return A.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new bs;var Ue=d(v());var Za,_r=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},yp=Symbol("clearAfterUnitTest"),dn=class extends(0,Ue.withEventBus)(Ee){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Za]=()=>{this.defaultMessages={},this.cache=new Ue.CacheRegistry,this.listeners={}},this.currentUiLocale=A.getState().uiLocale,A.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=A.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let r=e.name.toLowerCase();this.cache.setFinal(r,e),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,r){var i;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let n={...(i=this.defaultMessages[e])!==null&&i!==void 0?i:{},...r};(0,Ue.deepEqual)(this.defaultMessages[e],n)||(this.defaultMessages[e]=n,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,i;return this.fetchContext(e),(i=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&i!==void 0?i:{}}resolveRawMessage(e,r){let i=e.toLowerCase();return this.resolveContext(i)[r]}resolveMessage(e,r,...i){var n;let s=e.toLowerCase(),o=this.resolveContext(s);return new Ue.ParametrizedLabelResolver((n=this.defaultMessages[s])!==null&&n!==void 0?n:{},o).resolve(r,...i)}async fetchContext(e){let r=!this.cache.has(e),i;try{i=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(n){!(n instanceof Ue.CanceledPromiseError)&&r&&console.error(n)}return i}subscribe(e,r){var i;return e=e.toLowerCase(),this.listeners[e]=(i=this.listeners[e])!==null&&i!==void 0?i:new Set,this.listeners[e].add(r),()=>{var n;return(n=this.listeners[e])===null||n===void 0?void 0:n.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new _r({loadedContexts:e})),this.dispatchEvent(new _r({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new _r({loadedContexts:[e]})),this.dispatchEvent(new _r({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(i=>(0,Ue.delay)(0).then(()=>i()).catch(()=>null)))}};Za=yp;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends dn{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends dn{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var Cr=window.FluidTopicsI18nService,pn=window.FluidTopicsCustomI18nService;var Ja=d(v()),xs=class{highlightHtml(e,r,i){(0,Ja.highlightHtml)(e,r,i)}};window.FluidTopicsHighlightHtmlService=new xs;var el=d(v());var Ss=class{isDate(e){var r,i,n,s;return(s=(i=((n=(r=A.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(a=>a.key===e))===null||i===void 0?void 0:i.date)!==null&&s!==void 0?s:!1}format(e,r){var i,n,s,o;if(e==null)return"";try{return el.DateFormatter.format(e,(i=r?.locale)!==null&&i!==void 0?i:A.getState().uiLocale,(n=r?.longFormat)!==null&&n!==void 0?n:!1,(s=r?.withTime)!==null&&s!==void 0?s:!1,(o=r?.onlyTime)!==null&&o!==void 0?o:!1)}catch(a){throw console.error(`Date ${JSON.stringify(e)} is not valid`,a),a}}};window.FluidTopicsDateService=new Ss;var tl=d(v());var Xr=class{static get(e,r,{baseUrl:i,localesConfiguration:n,availableContentLocales:s}=A.getState()){var o;if(!r||s.length>0&&!s.some(a=>a.lang===r)){let a=n?.defaultLocales.defaultContentLocale;r=a?`${a.lang}-${a.region}`:(o=s[0])===null||o===void 0?void 0:o.lang}return new tl.SearchPlaceConverter(i,e??20,n?.allLanguagesAllowed,r,s)}};var Es=class{urlToSearchRequest(e){return Xr.get().parse(e)}searchRequestToUrl(e){return Xr.get().serialize(e)}};window.FluidTopicsUrlService=new Es;var ht=d(v());var zt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{nextLocation:e}})}};zt.eventName="before-location-change";var jt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};jt.eventName="change";var As=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let r=sessionStorage.getItem(this.itemName(e));return r?JSON.parse(r):void 0}set(e,r){sessionStorage.setItem(this.itemName(e),JSON.stringify(r))}},rl=new As;var fn=class t extends ht.WithEventBus{static build(){return new t(window.history,rl,()=>window.location,!1)}constructor(e,r,i,n){var s,o;super(),this.history=e,this.historyStorage=r,this.windowLocation=i,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(o=(s=e.state)===null||s===void 0?void 0:s.index)!==null&&o!==void 0?o:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(n)}setCurrentState(e,r=!1){let i=r&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,i&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,ht.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,this.windowLocation().href]),setTimeout(()=>this.dispatchEvent(new jt(this.currentItem())),0)}installProxies(){let e=r=>(i,n,[s,o,a])=>{let l=new zt(new URL(typeof a=="string"?a:(a??this.windowLocation()).href,window.location.origin));this.dispatchEvent(l);let c=r(),u={...c===this.currentIndex?this.currentState:void 0,...s,index:c,href:l.detail.nextLocation.href};i.apply(n,[u,o,u.href]),this.setCurrentState(u,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let r=this.history.length-1;r>=0;r--)e?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(e){var r;let i={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(i)}addBeforeLocationChangeListener(e){this.addEventListener(zt.eventName,e)}removeBeforeLocationChangeListener(e){this.removeEventListener(zt.eventName,e)}addHistoryChangeListener(e){this.addEventListener(jt.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(jt.eventName,e)}currentItem(){return(0,ht.deepCopy)(this.currentState)}back(){let e=this.previousDifferentMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,ht.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(i=>!!i).filter(i=>i.index<this.currentIndex).reverse();return(0,ht.deepCopy)(r.find(i=>e(i)))}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return(0,ht.deepCopy)(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var r;let i=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!i)return e;let n=e,s=e+1;for(;this.states.length>s&&!this.isDifferentMajorState(s,i);)this.hasState(s)&&(n=s),s++;return n}buildCurrentState(){var e,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&r!==void 0?r:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,r){var i;if(!this.hasState(e))return!1;let n=r??this.currentState.majorStateId,s=(i=this.states[e])===null||i===void 0?void 0:i.majorStateId;return s==null||s!=n}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=fn.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:t=>window.FluidTopicsInternalHistoryService.backwardItemMatching(t),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t),addBeforeLocationChangeListener:t=>window.FluidTopicsInternalHistoryService.addBeforeLocationChangeListener(t),removeBeforeLocationChangeListener:t=>window.FluidTopicsInternalHistoryService.removeBeforeLocationChangeListener(t)});var il=d(R());var nl=il.css`
12
- `;var ol=d(R()),Se=d(U()),Wt=d(v());var qt=d(v());function sl(t,e){let{authenticationRequired:r,session:i}=A.getState();return r&&!i?.sessionAuthenticated?Promise.resolve(e):t()}var hn=class extends Ar{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}};var _s=class t extends qt.FtStateManager{static build(e){return new t(A,e)}constructor(e,r){super(),this.store=e,this.cache=new qt.CacheRegistry,this.withManualResources=!0,this.userLocaleService=new hn,this.cleanSessionDebouncer=new qt.Debouncer,this.reloadConfiguration=()=>{var i;(i=this.cache)===null||i===void 0||i.clear("availableContentLocales"),this.updateAvailableContentLocales()},this.reloadDebouncer=new qt.Debouncer(500),this.apiProvider=r??(()=>Ht.get())}setWithManualResources(e){this.withManualResources=e,this.updateIfNeeded()}addListeners(){this.store.addEventListener(St.eventName,this.reloadConfiguration)}removeListeners(){this.store.removeEventListener(St.eventName,this.reloadConfiguration)}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.store.getState().session==null&&this.updateSession(),this.store.getState().metadataConfiguration==null&&this.updateMetadataConfiguration()),this.store.getState().localesConfiguration==null&&this.updateLocalesConfiguration(),(this.store.getState().availableContentLocales==null||this.store.getState().availableContentLocales.length==0)&&this.updateAvailableContentLocales())}async updateSession(){let e=await this.cache.get("session",async()=>{let r=await this.apiProvider().getCurrentSession();return r.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.setSession(void 0)},r.idleTimeoutInMillis),r});this.setSession(e)}async updateMetadataConfiguration(){this.setMetadataConfiguration(await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration()))}async updateLocalesConfiguration(){this.setLocalesConfiguration(await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration()))}async updateAvailableContentLocales(){var e;let r=await this.cache.get("availableContentLocales",()=>sl(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((e=r.contentLocales)!==null&&e!==void 0?e:[])}setStickyFilters(e){this.store.actions.stickyFilters(e)}setBaseUrl(e){this.store.actions.baseUrl(e),window.fluidTopicsBaseUrl=e}setTenantId(e){this.store.actions.tenantId(e)}setApiIntegrationIdentifier(e){this.store.actions.apiIntegrationIdentifier(e)}setApiIntegrationAppVersion(e){this.store.actions.apiIntegrationAppVersion(e)}setUiLocale(e){this.store.actions.uiLocale(e)}setLocalesConfiguration(e){this.store.actions.localesConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setAvailableContentLocales(e){this.store.actions.availableContentLocales(e),setTimeout(()=>this.updateIfNeeded())}stopReloadDebouncer(){this.reloadDebouncer.cancel()}requestUiLocaleUpdate(e,r){this.userLocaleService.updateUiLocale({uiLocale:e,contentLocale:r}).then(i=>{i.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new Yr(i)))}).catch(()=>{})}setMetadataConfiguration(e){this.store.actions.metadataConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setNoCustom(e){this.store.actions.noCustom(e)}setEditorMode(e){this.store.actions.editorMode(e)}setNoCustomComponent(e){this.store.actions.noCustomComponent(e)}setNoCustomCode(e){this.store.actions.noCustomCode(e)}setSession(e){this.store.actions.session(e),setTimeout(()=>this.updateIfNeeded())}setOpenExternalDocumentInNewTab(e){this.store.actions.openExternalDocumentInNewTab(e)}setNavigatorOnline(e){this.store.actions.navigatorOnline(e)}setForcedOffline(e){this.store.actions.forcedOffline(e)}setAuthenticationRequired(e){this.store.actions.authenticationRequired(e)}userHasAnyRole(...e){return Zo(A.getState().session,...e)}},Cs=_s.build();var Kt=class extends Event{constructor(e,r,i,n){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=r,this.callback=i,this.subscribe=n??!1}};var Qr=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=e=>{let r=this.pendingContextRequests.get(e.context);if(r===void 0)return;this.pendingContextRequests.delete(e.context);let{requests:i}=r;for(let{elementRef:n,callbackRef:s}of i){let o=n.deref(),a=s.deref();o===void 0||a===void 0||o.dispatchEvent(new Kt(e.context,o,a,!0))}},this.onContextRequest=e=>{if(e.subscribe!==!0)return;let r=e.contextTarget??e.composedPath()[0],i=e.callback,n=this.pendingContextRequests.get(e.context);n===void 0&&this.pendingContextRequests.set(e.context,n={callbacks:new WeakMap,requests:[]});let s=n.callbacks.get(r);s===void 0&&n.callbacks.set(r,s=new WeakSet),s.has(i)||(s.add(i),n.requests.push({elementRef:new WeakRef(r),callbackRef:new WeakRef(i)}))}}attach(e){e.addEventListener("context-request",this.onContextRequest),e.addEventListener("context-provider",this.onContextProvider)}detach(e){e.removeEventListener("context-request",this.onContextRequest),e.removeEventListener("context-provider",this.onContextProvider)}};var ne=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},z=class extends Wt.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=Cs,this.contextRoot=new Qr}render(){return ol.html`
11
+ `;var Ct=d(v()),ti=d(B());var Hr;(function(t){t.CLUSTERED_SEARCH="CLUSTERED_SEARCH"})(Hr||(Hr={}));var At=d(v());var dd=d(v());var mo;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(mo||(mo={}));var yo;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(yo||(yo={}));var go;(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"})(go||(go={}));var vo;(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"})(vo||(vo={}));var bo;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(bo||(bo={}));var xo;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(xo||(xo={}));var So;(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(So||(So={}));var Eo;(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"})(Eo||(Eo={}));var Ao;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(Ao||(Ao={}));var _o;(function(t){t.METADATA_FILTER="METADATA_FILTER",t.ACCESS_RIGHTS_FILTER="ACCESS_RIGHTS_FILTER"})(_o||(_o={}));var Co;(function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER",t.DOC_DIFF="DOC_DIFF"})(Co||(Co={}));var wo;(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"})(wo||(wo={}));var Oo;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Oo||(Oo={}));var To;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(To||(To={}));var Ro;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Ro||(Ro={}));var ko;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(ko||(ko={}));var Lo;(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"})(Lo||(Lo={}));var ht;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(ht||(ht={}));var Do;(function(t){t.ASC="ASC",t.DESC="DESC"})(Do||(Do={}));var No;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(No||(No={}));var wi;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(wi||(wi={}));var Po;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Po||(Po={}));var Io;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Io||(Io={}));var Mo;(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"})(Mo||(Mo={}));var Oi;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Oi||(Oi={}));var $o;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})($o||($o={}));var Ti;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Ti||(Ti={}));var Fo;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Fo||(Fo={}));var G;(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"})(G||(G={}));var Ue;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(Ue||(Ue={}));var Uo;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(Uo||(Uo={}));var Bo;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(Bo||(Bo={}));var Vo;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Vo||(Vo={}));var Ho;(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"})(Ho||(Ho={}));var zo;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(zo||(zo={}));var jo;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(jo||(jo={}));var qo;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(qo||(qo={}));var Ko;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Ko||(Ko={}));var Wo;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(Wo||(Wo={}));var Go;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(Go||(Go={}));var Yo;(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"})(Yo||(Yo={}));var Xo;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(Xo||(Xo={}));var pd={[G.PERSONAL_BOOK_SHARE_USER]:[G.PERSONAL_BOOK_USER],[G.HTML_EXPORT_USER]:[G.PERSONAL_BOOK_USER],[G.PDF_EXPORT_USER]:[G.PERSONAL_BOOK_USER],[G.KHUB_ADMIN]:[G.CONTENT_PUBLISHER],[G.ADMIN]:[G.KHUB_ADMIN,G.USERS_ADMIN,G.PORTAL_ADMIN,G.BEHAVIOR_DATA_USER],[G.GENERATIVE_AI_EXPORT_USER]:[G.GENERATIVE_AI_USER]};function Qo(t,e){return t===e||(pd[t]??[]).some(r=>Qo(r,e))}function Ri(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(i=>Qo(i,e))}function Zo(t,...e){return t==null?!1:e.some(r=>Ri(t,r))}var hs=d(B());var Jo=d(B(),1);var Wn=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)},fd=t=>({fromAttribute:e=>{if(e==null)return zr(t);try{return JSON.parse(e)}catch{return zr(t)}},toAttribute:e=>JSON.stringify(e)});function ea(t,e){return(0,Jo.property)({type:Object,converter:fd(t),hasChanged:jr,...e??{}})}function hd(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;let r,i;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(i=r;i--!==0;)if(!Sr(t[i],e[i]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;for(i of t.entries())if(!Sr(i[1],e.get(i[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let n=o=>Object.keys(o).filter(a=>o[a]!=null),s=n(t);if(r=s.length,r!==n(e).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,s[i]))return!1;for(i=r;i--!==0;){let o=s[i];if(!Sr(t[o],e[o]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function Sr(t,e){try{return hd(t,e)}catch{return!1}}function jr(t,e){return!Sr(t,e)}function zr(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function ki(t,e){let r=i=>i[t]===!0;return i=>{if(r(i))return i;let n=e(i);return n[t]=!0,n}}var ta=d(B(),1);var Gn=t=>{let e=t??{};return(r,i)=>{var n;let s={hasChanged:jr,attribute:!1,...e};(0,ta.property)(s)(r,i);let o=r.constructor;o.reduxProperties=new Map(o.reduxProperties),o.reduxProperties.set(i,{selector:(n=e.selector)!==null&&n!==void 0?n:(a=>a[i]),store:e.store})}};var Li=class{constructor(){this.queue=[]}add(e,r=!1){r&&this.clear(e.type),this.queue.push(e)}consume(e){let r=this.queue.find(i=>i.type===e);return r&&(this.queue=this.queue.filter(i=>i!==r)),r}clear(e){typeof e=="string"?this.queue=this.queue.filter(r=>r.type!==e):this.queue=this.queue.filter(r=>!e.test(r.type))}};var Ht=d(B(),1);var Di=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,r){return this.callbacks=[e],this.debounce(r)}queue(e,r){return this.callbacks.push(e),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((r,i)=>{this.resolvePromise=r,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let i=[...this.callbacks];this.callbacks=[];let n=(e=this.rejectPromise)!==null&&e!==void 0?e:(()=>null),s=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let o of i)try{await o()}catch(a){n(a);return}s(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Pi=d(R(),1);var Ni=class extends Pi.LitElement{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let e=this.scopedRegistryConstructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,e.defineScopedElements(e.elementDefinitions));let r={...e.shadowRootOptions,customElements:e.registry},i=this.renderOptions.creationScope=this.attachShadow(r);return(0,Pi.adoptStyles)(i,e.elementStyles),i}static canDefineScopedElement(e){return!!this.registry&&!this.registry.get(e)}static defineScopedElements(e){Object.entries(e).forEach(([r,i])=>this.defineScopedElement(r,i))}static defineScopedElement(e,r){Wn(e)(r),this.canDefineScopedElement(e)&&this.registry.define(e,r)}canDefineScopedElement(e){return this.scopedRegistryConstructor.canDefineScopedElement(e)}defineScopedElements(e){this.scopedRegistryConstructor.defineScopedElements(e)}defineScopedElement(e,r){this.scopedRegistryConstructor.defineScopedElement(e,r)}};function ra(t,e,...r){var i;let n=t.querySelector(e);for(let s of r)n=(i=n?.shadowRoot)===null||i===void 0?void 0:i.querySelector(s);return n}var Ar=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},oa,ia=Symbol("constructorPrototype"),na=Symbol("constructorName"),aa=Symbol("exportpartsDebouncer"),sa=Symbol("dynamicDependenciesLoaded"),Er=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};Er.eventName="exportparts-updated";var nt=class extends Ni{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[oa]=new Di(5),this.scheduleExportpartsUpdate=()=>{var e,r,i;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(i=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&i!==void 0&&i)&&this[aa].run(()=>{var n,s;!((n=this.exportpartsPrefix)===null||n===void 0)&&n.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((s=this.exportpartsPrefixes)===null||s===void 0?void 0:s.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[na]=this.constructor.name,this[ia]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[na]&&Object.setPrototypeOf(this,this[ia])}connectedCallback(){var e;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(i){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",i)}let r=this.constructor;r[sa]||(r[sa]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(Er.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(Er.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate(),e.has("exportparts")&&this.dispatchEvent(new Er)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:i,shadowPath:n}=this.elementToFocus;if(i!=null){let s=[...n??[],i];r=ra(this.shadowRoot,...s)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var r,i,n;if(((i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(s=>s.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}catch(s){console.error(s,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let s=document.createElement("style");s.classList.add("ft-lit-element--custom-stylesheet"),s.innerHTML=this.customStylesheet,this.shadowRoot.append(s)}}setExportpartsAttribute(e){var r,i,n,s,o,a;let l=f=>f!=null&&f.trim().length>0,c=e.filter(l).map(f=>f.trim());if(c.length===0){this.exportparts=void 0;return}let u=new Set;for(let f of(s=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&s!==void 0?s:[]){let y=(o=(i=f.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&o!==void 0?o:[],x=(a=(n=f.getAttribute("exportparts"))===null||n===void 0?void 0:n.split(",").map(b=>b.split(":")[1]))!==null&&a!==void 0?a:[],_=[...y,...x].filter(l).map(b=>b.trim());for(let b of _)u.add(b)}if(u.size===0){this.exportparts=void 0;return}let p=[...u.values()].flatMap(f=>c.map(y=>`${f}:${y}--${f}`));this.exportparts=[...this.part,...p].join(", ")}};oa=aa;Ar([(0,Ht.property)()],nt.prototype,"exportpartsPrefix",void 0);Ar([ea([])],nt.prototype,"exportpartsPrefixes",void 0);Ar([(0,Ht.property)({reflect:!0})],nt.prototype,"exportparts",void 0);Ar([(0,Ht.property)()],nt.prototype,"customStylesheet",void 0);Ar([(0,Ht.property)()],nt.prototype,"elementToFocus",void 0);Ar([(0,Ht.state)()],nt.prototype,"useAdoptedStyleSheets",void 0);function Ii(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var qr=Symbol("internalReduxEventsUnsubscribers"),xt=Symbol("internalStoresUnsubscribers"),zt=Symbol("internalStores"),md=ki(Symbol("withRedux"),function(t){var e,r,i;class n extends t{constructor(){super(...arguments),this[e]=new Map,this[r]=new Map,this[i]=new Map}get reduxConstructor(){return this.constructor}willUpdate(o){super.willUpdate(o),[...this.reduxConstructor.reduxReactiveProperties].some(a=>o.has(a))&&this.updateFromStores()}getUnnamedStore(){if(this[zt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[zt].values()][0]}getStore(o){return o==null?this.getUnnamedStore():this[zt].get(o)}addStore(o,a){var l;a=(l=a??o.name)!==null&&l!==void 0?l:"default-store",this.unsubscribeFromStore(a),this[zt].set(a,o),this.subscribeToStore(a,o),this.updateFromStores()}removeStore(o){let a=typeof o=="string"?o:o.name;this.unsubscribeFromStore(a),this[zt].delete(a)}setupStores(){this.unsubscribeFromStores(),this[zt].forEach((o,a)=>this.subscribeToStore(a,o)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((o,a)=>{let l=this.constructor.getPropertyOptions(a);if(!l?.attribute||!this.hasAttribute(typeof l?.attribute=="string"?l.attribute:a)){let c=this.getStore(o.store);c&&(o.store?this[xt].has(o.store):this[xt].size>0)&&(this[a]=o.selector(c.getState(),this))}})}subscribeToStore(o,a){var l,c;this[xt].set(o,a.subscribe(()=>this.updateFromStores())),this[qr].set(o,[]),Ii(a)&&(!((l=a.deprecatedKeys)===null||l===void 0)&&l.length&&this.reduxConstructor.reduxProperties.forEach((u,p)=>{this.getStore(u.store)===a&&a.deprecatedKeys.includes(p)&&console.warn("Element",this,"is subscribed to deprecated key",p,"in store",a.name)}),a.eventBus&&((c=this.reduxConstructor.reduxEventListeners)===null||c===void 0||c.forEach((u,p)=>{if(typeof this[p]=="function"&&(!u.store||a.name===u.store)){let f=y=>this[p](y);a.addEventListener(u.eventName,f),this[qr].get(o).push(()=>a.removeEventListener(u.eventName,f))}}))),this.onStoreAvailable(o)}unsubscribeFromStores(){this[xt].forEach((o,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(o){var a;this[xt].has(o)&&this[xt].get(o)(),this[xt].delete(o),(a=this[qr].get(o))===null||a===void 0||a.forEach(l=>l()),this[qr].delete(o)}onStoreAvailable(o){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=xt,r=zt,i=qr,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}),la=class extends md(nt){};function de(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 yd=typeof Symbol=="function"&&Symbol.observable||"@@observable",ca=yd,Yn=()=>Math.random().toString(36).substring(7).split("").join("."),gd={INIT:`@@redux/INIT${Yn()}`,REPLACE:`@@redux/REPLACE${Yn()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Yn()}`},Mi=gd;function $i(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 Xn(t,e,r){if(typeof t!="function")throw new Error(de(2));if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(de(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(de(1));return r(Xn)(t,e)}let i=t,n=e,s=new Map,o=s,a=0,l=!1;function c(){o===s&&(o=new Map,s.forEach((b,O)=>{o.set(O,b)}))}function u(){if(l)throw new Error(de(3));return n}function p(b){if(typeof b!="function")throw new Error(de(4));if(l)throw new Error(de(5));let O=!0;c();let N=a++;return o.set(N,b),function(){if(O){if(l)throw new Error(de(6));O=!1,c(),o.delete(N),s=null}}}function f(b){if(!$i(b))throw new Error(de(7));if(typeof b.type>"u")throw new Error(de(8));if(typeof b.type!="string")throw new Error(de(17));if(l)throw new Error(de(9));try{l=!0,n=i(n,b)}finally{l=!1}return(s=o).forEach(N=>{N()}),b}function y(b){if(typeof b!="function")throw new Error(de(10));i=b,f({type:Mi.REPLACE})}function x(){let b=p;return{subscribe(O){if(typeof O!="object"||O===null)throw new Error(de(11));function N(){let E=O;E.next&&E.next(u())}return N(),{unsubscribe:b(N)}},[ca](){return this}}}return f({type:Mi.INIT}),{dispatch:f,subscribe:p,getState:u,replaceReducer:y,[ca]:x}}function vd(t){Object.keys(t).forEach(e=>{let r=t[e];if(typeof r(void 0,{type:Mi.INIT})>"u")throw new Error(de(12));if(typeof r(void 0,{type:Mi.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(de(13))})}function Qn(t){let e=Object.keys(t),r={};for(let o=0;o<e.length;o++){let a=e[o];typeof t[a]=="function"&&(r[a]=t[a])}let i=Object.keys(r),n,s;try{vd(r)}catch(o){s=o}return function(a={},l){if(s)throw s;let c=!1,u={};for(let p=0;p<i.length;p++){let f=i[p],y=r[f],x=a[f],_=y(x,l);if(typeof _>"u"){let b=l&&l.type;throw new Error(de(14))}u[f]=_,c=c||_!==x}return c=c||i.length!==Object.keys(a).length,c?u:a}}function Kr(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce((e,r)=>(...i)=>e(r(...i)))}function ua(...t){return e=>(r,i)=>{let n=e(r,i),s=()=>{throw new Error(de(15))},o={getState:n.getState,dispatch:(l,...c)=>s(l,...c)},a=t.map(l=>l(o));return s=Kr(...a)(n.dispatch),{...n,dispatch:s}}}function da(t){return $i(t)&&"type"in t&&typeof t.type=="string"}var xa=Symbol.for("immer-nothing"),pa=Symbol.for("immer-draftable"),ge=Symbol.for("immer-state");function Ke(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var Le=Object,Cr=Le.getPrototypeOf,Vi="constructor",Wi="prototype",ts="configurable",Hi="enumerable",Ui="writable",Wr="value",st=t=>!!t&&!!t[ge];function De(t){return t?Sa(t)||Yi(t)||!!t[pa]||!!t[Vi]?.[pa]||Xi(t)||Qi(t):!1}var bd=Le[Wi][Vi].toString(),fa=new WeakMap;function Sa(t){if(!t||!cs(t))return!1;let e=Cr(t);if(e===null||e===Le[Wi])return!0;let r=Le.hasOwnProperty.call(e,Vi)&&e[Vi];if(r===Object)return!0;if(!_r(r))return!1;let i=fa.get(r);return i===void 0&&(i=Function.toString.call(r),fa.set(r,i)),i===bd}function Gi(t,e,r=!0){Xr(t)===0?(r?Reflect.ownKeys(t):Le.keys(t)).forEach(n=>{e(n,t[n],t)}):t.forEach((i,n)=>e(n,i,t))}function Xr(t){let e=t[ge];return e?e.type_:Yi(t)?1:Xi(t)?2:Qi(t)?3:0}var Zn=(t,e,r=Xr(t))=>r===2?t.has(e):Le[Wi].hasOwnProperty.call(t,e),rs=(t,e,r=Xr(t))=>r===2?t.get(e):t[e],zi=(t,e,r,i=Xr(t))=>{i===2?t.set(e,r):i===3?t.add(r):t[e]=r};function xd(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}var Yi=Array.isArray,Xi=t=>t instanceof Map,Qi=t=>t instanceof Set,cs=t=>typeof t=="object",_r=t=>typeof t=="function",Jn=t=>typeof t=="boolean";function Sd(t){let e=+t;return Number.isInteger(e)&&String(e)===t}var mt=t=>t.copy_||t.base_;var us=t=>t.modified_?t.copy_:t.base_;function is(t,e){if(Xi(t))return new Map(t);if(Qi(t))return new Set(t);if(Yi(t))return Array[Wi].slice.call(t);let r=Sa(t);if(e===!0||e==="class_only"&&!r){let i=Le.getOwnPropertyDescriptors(t);delete i[ge];let n=Reflect.ownKeys(i);for(let s=0;s<n.length;s++){let o=n[s],a=i[o];a[Ui]===!1&&(a[Ui]=!0,a[ts]=!0),(a.get||a.set)&&(i[o]={[ts]:!0,[Ui]:!0,[Hi]:a[Hi],[Wr]:t[o]})}return Le.create(Cr(t),i)}else{let i=Cr(t);if(i!==null&&r)return{...t};let n=Le.create(i);return Le.assign(n,t)}}function Zi(t,e=!1){return Ji(t)||st(t)||!De(t)||(Xr(t)>1&&Le.defineProperties(t,{set:Fi,add:Fi,clear:Fi,delete:Fi}),Le.freeze(t),e&&Gi(t,(r,i)=>{Zi(i,!0)},!1)),t}function Ed(){Ke(2)}var Fi={[Wr]:Ed};function Ji(t){return t===null||!cs(t)?!0:Le.isFrozen(t)}var ji="MapSet",ns="Patches",ha="ArrayMethods",Ea={};function jt(t){let e=Ea[t];return e||Ke(0,t),e}var ma=t=>!!Ea[t];var Gr,Aa=()=>Gr,Ad=(t,e)=>({drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:ma(ji)?jt(ji):void 0,arrayMethodsPlugin_:ma(ha)?jt(ha):void 0});function ya(t,e){e&&(t.patchPlugin_=jt(ns),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function ss(t){os(t),t.drafts_.forEach(_d),t.drafts_=null}function os(t){t===Gr&&(Gr=t.parent_)}var ga=t=>Gr=Ad(Gr,t);function _d(t){let e=t[ge];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function va(t,e){e.unfinalizedDrafts_=e.drafts_.length;let r=e.drafts_[0];if(t!==void 0&&t!==r){r[ge].modified_&&(ss(e),Ke(4)),De(t)&&(t=ba(e,t));let{patchPlugin_:n}=e;n&&n.generateReplacementPatches_(r[ge].base_,t,e)}else t=ba(e,r);return Cd(e,t,!0),ss(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==xa?t:void 0}function ba(t,e){if(Ji(e))return e;let r=e[ge];if(!r)return qi(e,t.handledSet_,t);if(!en(r,t))return e;if(!r.modified_)return r.base_;if(!r.finalized_){let{callbacks_:i}=r;if(i)for(;i.length>0;)i.pop()(t);wa(r,t)}return r.copy_}function Cd(t,e,r=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&Zi(e,r)}function _a(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}var en=(t,e)=>t.scope_===e,wd=[];function Ca(t,e,r,i){let n=mt(t),s=t.type_;if(i!==void 0&&rs(n,i,s)===e){zi(n,i,r,s);return}if(!t.draftLocations_){let a=t.draftLocations_=new Map;Gi(n,(l,c)=>{if(st(c)){let u=a.get(c)||[];u.push(l),a.set(c,u)}})}let o=t.draftLocations_.get(e)??wd;for(let a of o)zi(n,a,r,s)}function Od(t,e,r){t.callbacks_.push(function(n){let s=e;if(!s||!en(s,n))return;n.mapSetPlugin_?.fixSetContents(s);let o=us(s);Ca(t,s.draft_??s,o,r),wa(s,n)})}function wa(t,e){if(t.modified_&&!t.finalized_&&(t.type_===3||t.type_===1&&t.allIndicesReassigned_||(t.assigned_?.size??0)>0)){let{patchPlugin_:i}=e;if(i){let n=i.getPath(t);n&&i.generatePatches_(t,n,e)}_a(t)}}function Td(t,e,r){let{scope_:i}=t;if(st(r)){let n=r[ge];en(n,i)&&n.callbacks_.push(function(){Bi(t);let o=us(n);Ca(t,r,o,e)})}else De(r)&&t.callbacks_.push(function(){let s=mt(t);t.type_===3?s.has(r)&&qi(r,i.handledSet_,i):rs(s,e,t.type_)===r&&i.drafts_.length>1&&(t.assigned_.get(e)??!1)===!0&&t.copy_&&qi(rs(t.copy_,e,t.type_),i.handledSet_,i)})}function qi(t,e,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||st(t)||e.has(t)||!De(t)||Ji(t)||(e.add(t),Gi(t,(i,n)=>{if(st(n)){let s=n[ge];if(en(s,r)){let o=us(s);zi(t,i,o,t.type_),_a(s)}}else De(n)&&qi(n,e,r)})),t}function Rd(t,e){let r=Yi(t),i={type_:r?1:0,scope_:e?e.scope_:Aa(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},n=i,s=Ki;r&&(n=[i],s=Yr);let{revoke:o,proxy:a}=Proxy.revocable(n,s);return i.draft_=a,i.revoke_=o,[a,i]}var Ki={get(t,e){if(e===ge)return t;let r=t.scope_.arrayMethodsPlugin_,i=t.type_===1&&typeof e=="string";if(i&&r?.isArrayOperationMethod(e))return r.createMethodInterceptor(t,e);let n=mt(t);if(!Zn(n,e,t.type_))return Ld(t,n,e);let s=n[e];if(t.finalized_||!De(s)||i&&t.operationMethod&&r?.isMutatingArrayMethod(t.operationMethod)&&Sd(e))return s;if(s===es(t.base_,e)||kd(t,e,s)){Bi(t);let o=t.type_===1?+e:e,a=ls(t.scope_,s,t,o);return t.copy_[o]=a}return s},has(t,e){return e in mt(t)},ownKeys(t){return Reflect.ownKeys(mt(t))},set(t,e,r){let i=Oa(mt(t),e);if(i?.set)return i.set.call(t.draft_,r),!0;if(!t.modified_){let n=es(mt(t),e),s=n?.[ge];if(s&&s.base_===r)return t.copy_[e]=r,t.assigned_.delete(e),!0;if(xd(r,n)&&(r!==void 0||Zn(t.base_,e,t.type_)))return!0;Bi(t),as(t)}return t.copy_[e]===r&&(r!==void 0||Zn(t.copy_,e,t.type_))||Number.isNaN(r)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=r,t.assigned_.set(e,!0),Td(t,e,r)),!0},deleteProperty(t,e){return Bi(t),es(t.base_,e)!==void 0||e in t.base_?(t.assigned_.set(e,!1),as(t)):t.assigned_.delete(e),t.copy_&&delete t.copy_[e],!0},getOwnPropertyDescriptor(t,e){let r=mt(t),i=Reflect.getOwnPropertyDescriptor(r,e);return i&&{[Ui]:!0,[ts]:t.type_!==1||e!=="length",[Hi]:i[Hi],[Wr]:r[e]}},defineProperty(){Ke(11)},getPrototypeOf(t){return Cr(t.base_)},setPrototypeOf(){Ke(12)}},Yr={};for(let t in Ki){let e=Ki[t];Yr[t]=function(){let r=arguments;return r[0]=r[0][0],e.apply(this,r)}}Yr.deleteProperty=function(t,e){return Yr.set.call(this,t,e,void 0)};Yr.set=function(t,e,r){return Ki.set.call(this,t[0],e,r,t[0])};function es(t,e){let r=t[ge];return(r?mt(r):t)[e]}function kd(t,e,r){return t.type_!==1||!t.allIndicesReassigned_||t.assigned_?.get(e)||!De(r)||r[ge]?!1:t.baseRefs_.has(r)}function Ld(t,e,r){let i=Oa(e,r);return i?Wr in i?i[Wr]:i.get?.call(t.draft_):void 0}function Oa(t,e){if(!(e in t))return;let r=Cr(t);for(;r;){let i=Object.getOwnPropertyDescriptor(r,e);if(i)return i;r=Cr(r)}}function as(t){t.modified_||(t.modified_=!0,t.parent_&&as(t.parent_))}function Bi(t){t.copy_||(t.assigned_=new Map,t.copy_=is(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var Dd=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,r,i)=>{if(_r(e)&&!_r(r)){let s=r;r=e;let o=this;return function(l=s,...c){return o.produce(l,u=>r.call(this,u,...c))}}_r(r)||Ke(6),i!==void 0&&!_r(i)&&Ke(7);let n;if(De(e)){let s=ga(this),o=ls(s,e,void 0),a=!0;try{n=r(o),a=!1}finally{a?ss(s):os(s)}return ya(s,i),va(n,s)}else if(!e||!cs(e)){if(n=r(e),n===void 0&&(n=e),n===xa&&(n=void 0),this.autoFreeze_&&Zi(n,!0),i){let s=[],o=[];jt(ns).generateReplacementPatches_(e,n,{patches_:s,inversePatches_:o}),i(s,o)}return n}else Ke(1,e)},this.produceWithPatches=(e,r)=>{if(_r(e))return(o,...a)=>this.produceWithPatches(o,l=>e(l,...a));let i,n;return[this.produce(e,r,(o,a)=>{i=o,n=a}),i,n]},Jn(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),Jn(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),Jn(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){De(t)||Ke(8),st(t)&&(t=Ta(t));let e=ga(this),r=ls(e,t,void 0);return r[ge].isManual_=!0,os(e),r}finishDraft(t,e){let r=t&&t[ge];(!r||!r.isManual_)&&Ke(9);let{scope_:i}=r;return ya(i,e),va(void 0,i)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,e){let r;for(r=e.length-1;r>=0;r--){let n=e[r];if(n.path.length===0&&n.op==="replace"){t=n.value;break}}r>-1&&(e=e.slice(r+1));let i=jt(ns).applyPatches_;return st(t)?i(t,e):this.produce(t,n=>i(n,e))}};function ls(t,e,r,i){let[n,s]=Xi(e)?jt(ji).proxyMap_(e,r):Qi(e)?jt(ji).proxySet_(e,r):Rd(e,r);return(r?.scope_??Aa()).drafts_.push(n),s.callbacks_=r?.callbacks_??[],s.key_=i,r&&i!==void 0?Od(r,s,i):s.callbacks_.push(function(l){l.mapSetPlugin_?.fixSetContents(s);let{patchPlugin_:c}=l;s.modified_&&c&&c.generatePatches_(s,[],l)}),n}function Ta(t){return st(t)||Ke(10,t),Ra(t)}function Ra(t){if(!De(t)||Ji(t))return t;let e=t[ge],r,i=!0;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,r=is(t,e.scope_.immer_.useStrictShallowCopy_),i=e.scope_.immer_.shouldUseStrictIteration()}else r=is(t,!0);return Gi(r,(n,s)=>{zi(r,n,Ra(s))},i),e&&(e.finalized_=!1),r}var Nd=globalThis.Iterator,jf=typeof Nd?.from=="function";var Pd=new Dd,ds=Pd.produce;function ka(t){return({dispatch:r,getState:i})=>n=>s=>typeof s=="function"?s(r,i,t):n(s)}var La=ka(),Da=ka;var Id=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Kr:Kr.apply(null,arguments)};typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;var Md=t=>t&&typeof t.match=="function";function St(t,e){function r(...i){if(e){let n=e(...i);if(!n)throw new Error(ot(0));return{type:t,payload:n.payload,..."meta"in n&&{meta:n.meta},..."error"in n&&{error:n.error}}}return{type:t,payload:i[0]}}return r.toString=()=>`${t}`,r.type=t,r.match=i=>da(i)&&i.type===t,r}var $a=class Qr extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,Qr.prototype)}static get[Symbol.species](){return Qr}concat(...e){return super.concat.apply(this,e)}prepend(...e){return e.length===1&&Array.isArray(e[0])?new Qr(...e[0].concat(this)):new Qr(...e.concat(this))}};function Na(t){return De(t)?ds(t,()=>{}):t}function tn(t,e,r){return t.has(e)?t.get(e):t.set(e,r(e)).get(e)}function $d(t){return typeof t=="boolean"}var Fd=()=>function(e){let{thunk:r=!0,immutableCheck:i=!0,serializableCheck:n=!0,actionCreatorCheck:s=!0}=e??{},o=new $a;return r&&($d(r)?o.push(La):o.push(Da(r.extraArgument))),o},Ud="RTK_autoBatch";var Pa=t=>e=>{setTimeout(e,t)},Bd=(t,e)=>r=>{let i=!1,n,s,o=()=>{i||(i=!0,cancelAnimationFrame(n),clearTimeout(s),r())};n=t(o),s=setTimeout(o,e)},Vd=(t={type:"raf"})=>e=>(...r)=>{let i=e(...r),n=!0,s=!1,o=!1,a=new Set,l=t.type==="tick"?queueMicrotask:t.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?Bd(window.requestAnimationFrame,100):Pa(10):t.type==="callback"?t.queueNotification:Pa(t.timeout),c=()=>{o=!1,s&&(s=!1,a.forEach(u=>u()))};return Object.assign({},i,{subscribe(u){let p=()=>n&&u(),f=i.subscribe(p);return a.add(u),()=>{f(),a.delete(u)}},dispatch(u){try{return n=!u?.meta?.[Ud],s=!n,s&&(o||(o=!0,l(c))),i.dispatch(u)}finally{n=!0}}})},Hd=t=>function(r){let{autoBatch:i=!0}=r??{},n=new $a(t);return i&&n.push(Vd(typeof i=="object"?i:void 0)),n};function Fa(t){let e=Fd(),{reducer:r=void 0,middleware:i,devTools:n=!0,duplicateMiddlewareCheck:s=!0,preloadedState:o=void 0,enhancers:a=void 0}=t||{},l;if(typeof r=="function")l=r;else if($i(r))l=Qn(r);else throw new Error(ot(1));let c;typeof i=="function"?c=i(e):c=e();let u=Kr;n&&(u=Id({trace:!1,...typeof n=="object"&&n}));let p=ua(...c),f=Hd(p),y=typeof a=="function"?a(f):f(),x=u(...y);return Xn(l,o,x)}function Ua(t){let e={},r=[],i,n={addCase(s,o){let a=typeof s=="string"?s:s.type;if(!a)throw new Error(ot(28));if(a in e)throw new Error(ot(29));return e[a]=o,n},addAsyncThunk(s,o){return o.pending&&(e[s.pending.type]=o.pending),o.rejected&&(e[s.rejected.type]=o.rejected),o.fulfilled&&(e[s.fulfilled.type]=o.fulfilled),o.settled&&r.push({matcher:s.settled,reducer:o.settled}),n},addMatcher(s,o){return r.push({matcher:s,reducer:o}),n},addDefaultCase(s){return i=s,n}};return t(n),[e,r,i]}function zd(t){return typeof t=="function"}function jd(t,e){let[r,i,n]=Ua(e),s;if(zd(t))s=()=>Na(t());else{let a=Na(t);s=()=>a}function o(a=s(),l){let c=[r[l.type],...i.filter(({matcher:u})=>u(l)).map(({reducer:u})=>u)];return c.filter(u=>!!u).length===0&&(c=[n]),c.reduce((u,p)=>{if(p)if(st(u)){let f=p(u,l);return f===void 0?u:f}else{if(De(u))return ds(u,f=>p(f,l));{let f=p(u,l);if(f===void 0){if(u===null)return u;throw new Error(ot(9))}return f}}return u},a)}return o.getInitialState=s,o}var qd=(t,e)=>Md(t)?t.match(e):t(e);function Kd(...t){return e=>t.some(r=>qd(r,e))}var Wd="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Gd=(t=21)=>{let e="",r=t;for(;r--;)e+=Wd[Math.random()*64|0];return e},Yd=["name","message","stack","code"],ps=class{payload;meta;_type;constructor(t,e){this.payload=t,this.meta=e}},Ia=class{payload;meta;_type;constructor(t,e){this.payload=t,this.meta=e}},Xd=t=>{if(typeof t=="object"&&t!==null){let e={};for(let r of Yd)typeof t[r]=="string"&&(e[r]=t[r]);return e}return{message:String(t)}},Ma="External signal was aborted",Qd=(()=>{function t(e,r,i){let n=St(e+"/fulfilled",(l,c,u,p)=>({payload:l,meta:{...p||{},arg:u,requestId:c,requestStatus:"fulfilled"}})),s=St(e+"/pending",(l,c,u)=>({payload:void 0,meta:{...u||{},arg:c,requestId:l,requestStatus:"pending"}})),o=St(e+"/rejected",(l,c,u,p,f)=>({payload:p,error:(i&&i.serializeError||Xd)(l||"Rejected"),meta:{...f||{},arg:u,requestId:c,rejectedWithValue:p!==void 0,requestStatus:"rejected",aborted:l?.name==="AbortError",condition:l?.name==="ConditionError"}}));function a(l,{signal:c}={}){return(u,p,f)=>{let y=i?.idGenerator?i.idGenerator(l):Gd(),x=new AbortController,_,b;function O(S){b=S,x.abort()}c&&(c.aborted?O(Ma):c.addEventListener("abort",()=>O(Ma),{once:!0}));let N=(async function(){let S;try{let E=i?.condition?.(l,{getState:p,extra:f});if(Jd(E)&&(E=await E),E===!1)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};if(x.signal.aborted)throw{name:"AbortError",message:b||"Aborted"};let M=new Promise((D,te)=>{_=()=>{te({name:"AbortError",message:b||"Aborted"})},x.signal.addEventListener("abort",_,{once:!0})});u(s(y,l,i?.getPendingMeta?.({requestId:y,arg:l},{getState:p,extra:f}))),S=await Promise.race([M,Promise.resolve(r(l,{dispatch:u,getState:p,extra:f,requestId:y,signal:x.signal,abort:O,rejectWithValue:((D,te)=>new ps(D,te)),fulfillWithValue:((D,te)=>new Ia(D,te))})).then(D=>{if(D instanceof ps)throw D;return D instanceof Ia?n(D.payload,y,l,D.meta):n(D,y,l)})])}catch(E){S=E instanceof ps?o(null,y,l,E.payload,E.meta):o(E,y,l)}finally{_&&x.signal.removeEventListener("abort",_)}return i&&!i.dispatchConditionRejection&&o.match(S)&&S.meta.condition||u(S),S})();return Object.assign(N,{abort:O,requestId:y,arg:l,unwrap(){return N.then(Zd)}})}}return Object.assign(a,{pending:s,rejected:o,fulfilled:n,settled:Kd(o,n),typePrefix:e})}return t.withTypes=()=>t,t})();function Zd(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Jd(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Ba=Symbol.for("rtk-slice-createasyncthunk"),Zf={[Ba]:Qd};function ep(t,e){return`${t}/${e}`}function tp({creators:t}={}){let e=t?.asyncThunk?.[Ba];return function(i){let{name:n,reducerPath:s=n}=i;if(!n)throw new Error(ot(11));typeof process<"u";let o=(typeof i.reducers=="function"?i.reducers(ip()):i.reducers)||{},a=Object.keys(o),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(S,E){let M=typeof S=="string"?S:S.type;if(!M)throw new Error(ot(12));if(M in l.sliceCaseReducersByType)throw new Error(ot(13));return l.sliceCaseReducersByType[M]=E,c},addMatcher(S,E){return l.sliceMatchers.push({matcher:S,reducer:E}),c},exposeAction(S,E){return l.actionCreators[S]=E,c},exposeCaseReducer(S,E){return l.sliceCaseReducersByName[S]=E,c}};a.forEach(S=>{let E=o[S],M={reducerName:S,type:ep(n,S),createNotation:typeof i.reducers=="function"};sp(E)?ap(M,E,c,e):np(M,E,c)});function u(){let[S={},E=[],M=void 0]=typeof i.extraReducers=="function"?Ua(i.extraReducers):[i.extraReducers],D={...S,...l.sliceCaseReducersByType};return jd(i.initialState,te=>{for(let ye in D)te.addCase(ye,D[ye]);for(let ye of l.sliceMatchers)te.addMatcher(ye.matcher,ye.reducer);for(let ye of E)te.addMatcher(ye.matcher,ye.reducer);M&&te.addDefaultCase(M)})}let p=S=>S,f=new Map,y=new WeakMap,x;function _(S,E){return x||(x=u()),x(S,E)}function b(){return x||(x=u()),x.getInitialState()}function O(S,E=!1){function M(te){let ye=te[S];return typeof ye>"u"&&E&&(ye=tn(y,M,b)),ye}function D(te=p){return tn(tn(f,E,()=>new WeakMap),te,()=>{let ye={};for(let[Ci,Fe]of Object.entries(i.selectors??{}))ye[Ci]=rp(Fe,te,()=>tn(y,te,b),E);return ye})}return{reducerPath:S,getSelectors:D,get selectors(){return D(M)},selectSlice:M}}let N={name:n,reducer:_,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:b,...O(s),injectInto(S,{reducerPath:E,...M}={}){let D=E??s;return S.inject({reducerPath:D,reducer:_},M),{...N,...O(D,!0)}}};return N}}function rp(t,e,r,i){function n(s,...o){let a=e(s);return typeof a>"u"&&i&&(a=r()),t(a,...o)}return n.unwrapped=t,n}var Va=tp();function ip(){function t(e,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...r}}return t.withTypes=()=>t,{reducer(e){return Object.assign({[e.name](...r){return e(...r)}}[e.name],{_reducerDefinitionType:"reducer"})},preparedReducer(e,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:r}},asyncThunk:t}}function np({type:t,reducerName:e,createNotation:r},i,n){let s,o;if("reducer"in i){if(r&&!op(i))throw new Error(ot(17));s=i.reducer,o=i.prepare}else s=i;n.addCase(t,s).exposeCaseReducer(e,s).exposeAction(e,o?St(t,o):St(t))}function sp(t){return t._reducerDefinitionType==="asyncThunk"}function op(t){return t._reducerDefinitionType==="reducerWithPrepare"}function ap({type:t,reducerName:e},r,i,n){if(!n)throw new Error(ot(18));let{payloadCreator:s,fulfilled:o,pending:a,rejected:l,settled:c,options:u}=r,p=n(t,s,u);i.exposeAction(e,p),o&&i.addCase(p.fulfilled,o),a&&i.addCase(p.pending,a),l&&i.addCase(p.rejected,l),c&&i.addMatcher(p.settled,c),i.exposeCaseReducer(e,{fulfilled:o||rn,pending:a||rn,rejected:l||rn,settled:c||rn})}function rn(){}var Ha="listener",za="completed",ja="cancelled",Jf=`task-${ja}`,eh=`task-${za}`,th=`${Ha}-${ja}`,rh=`${Ha}-${za}`;var{assign:qa}=Object;var fs="listenerMiddleware";var lp=qa(St(`${fs}/add`),{withTypes:()=>lp}),ih=St(`${fs}/removeAll`),cp=qa(St(`${fs}/remove`),{withTypes:()=>cp});function ot(t){return`Minified Redux Toolkit error #${t}; visit https://redux-toolkit.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var up=ki(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(r,i,n){this.eventBus.addEventListener(r,i,n)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,i,n){this.eventBus.removeEventListener(r,i,n)}}}),nn=class extends up(Object){};window.ftReduxStores||(window.ftReduxStores={});var Ka=class t extends nn{static get(e){var r;let i=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,s=window.ftReduxStores[i];if(Ii(s))return s;if(n==null)return;let o=Va({...n,reducers:(r=n.reducers)!==null&&r!==void 0?r:{}}),a=Fa({reducer:(l,c)=>{if(c.type==="CLEAR_FT_REDUX_STORE"){let u=zr(o.getInitialState());for(let p of c.keeping)u[p]=(l??u)[p];return u}else if(typeof c.type=="string"&&c.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...l,...c.overwrites};return o.reducer(l,c)}});return window.ftReduxStores[n.name]=new t(o,a,n.eventBus,n.deprecatedKeys)}constructor(e,r,i,n){super(),this.reduxSlice=e,this.reduxStore=r,this.deprecatedKeys=n,this.isFtReduxStore=!0,this.commands=new Li,this.injectInto=(o,a)=>this.reduxSlice.injectInto(o,a),this.selectSlice=o=>this.reduxSlice.selectSlice(o);let s=o=>o!=null?JSON.parse(JSON.stringify(o)):o;this.actions=new Proxy(this.reduxSlice.actions,{get:(o,a,l)=>{let c=a,u=o[c];return u?(...p)=>{let f=u(...p.map(s));return this.reduxStore.dispatch(f),f}:p=>{let f=c,y=this.getState()[f];Sr(y,p)||this.setState({[f]:s(p)})}}}),this.eventBus=i??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...e){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:e})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}get selectors(){return this.reduxSlice.selectors}get reducerPath(){return this.reduxSlice.reducerPath}getSelectors(){return this.reduxSlice.getSelectors()}};var sn=class{static format(e,r,i,n,s){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(i,n,!!s)):this.getIntlDateTime(e,r,i,n,!!s)}static getMomentDateFormat(e,r,i){return i?"LT":e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,i,n,s){let o=typeof e=="string"?new Date(e):e,a=new Intl.DateTimeFormat(r,{dateStyle:i?"medium":"short"}).format(o),l=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(o);return s?l:n?`${a} ${l}`:a}static getTimezoneAsString(){let e=i=>String(Math.floor(i)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${e(Math.abs(r)/60)}:${e(Math.abs(r)%60)}`}};var on=d(v()),dp="ft-app-info",Et=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Et.eventName="authentication-change";var Zr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Zr.eventName="ui-locale-changed";var pp={session:(t,e)=>{(0,on.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>A.dispatchEvent(new Et(e.payload)),0))}},A=on.FtReduxStore.get({name:dp,reducers:pp,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 Wa=d(v()),an=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Ga=(0,Wa.applyMixinOnce)(Symbol("withDateFormat"),function(t){class e extends t{constructor(...i){super(i),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(A)}dateFormatOptionsChanged(i){return i.has("metadataDescriptors")||i.has("useLongDateFormat")||i.has("useDateTimeFormat")||i.has("uiLocale")}getDateFormatter(i){var n,s;return((s=(n=this.metadataDescriptors.find(a=>a.key===i))===null||n===void 0?void 0:n.date)!==null&&s!==void 0?s:!1)?a=>sn.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return an([(0,hs.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),an([(0,hs.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),an([Gn({store:A.name,selector:r=>{var i,n;return(n=(i=r.metadataConfiguration)===null||i===void 0?void 0:i.descriptors)!==null&&n!==void 0?n:[]}})],e.prototype,"metadataDescriptors",void 0),an([Gn({store:A.name})],e.prototype,"uiLocale",void 0),e});var pn=d(v());var ms=d(v());var qt=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:i}=A.getState(),n=e??i;if(r&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,n,!0)}static await(e){return new Promise(r=>{let i=t.get(e);if(i)r(i);else{let n=A.subscribe(()=>{i=t.get(e),i&&(n(),r(i))})}})}};var wr=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:qt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):qt.await()}};var Ee=class extends wr{constructor(e=!0,r){var i;super(r),this.sortObjectFields=(s,o)=>typeof o!="object"||o==null||Array.isArray(o)?o:Object.fromEntries(Object.entries(o).sort(([a],[l])=>a.localeCompare(l)));let n=this.constructor;n.commonCache=(i=n.commonCache)!==null&&i!==void 0?i:new ms.CacheRegistry,this.cache=e?n.commonCache:new ms.CacheRegistry}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((r,i)=>0|31*r+i.charCodeAt(0),0))}};var ln=class extends Ee{async listMySearches(){let{session:e}=A.getState();return Ri(e,G.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var cn=class extends Ee{async listMyBookmarks(){let e=A.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}};var un=class extends Ee{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=A.getState().session;return!!e?.sessionAuthenticated}};var dn=class extends Ee{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let e=A.getState().session;return!!e?.sessionAuthenticated}};var fp="ft-user-assets",hp={setAssetCount:(t,e)=>{let{userAssetType:r,count:i}=e.payload.assetCount;t.assetCounts.allAsset[r]=i},clearAssetCount:t=>{Object.values(Ue).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let r=e.payload.mapId;t.assetCounts.bookmarkByMap[r]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:r,mapId:i,asset:n}=e.payload;gs(t,r,[...ys(t,r),n]),Ya(t,r,1,i),Xa(t,n)},editAsset:(t,e)=>{let{assetType:r,asset:i}=e.payload;gs(t,r,ys(t,r).map(n=>n.id===i.id?i:n)),Xa(t,i)},removeAsset:(t,e)=>{let{assetType:r,mapId:i,assetId:n}=e.payload;gs(t,r,ys(t,r).filter(s=>s.id!==n)),Ya(t,r,-1,i)}},Qa={[Ue.SEARCHES]:"savedSearches",[Ue.BOOKMARKS]:"bookmarks",[Ue.BOOKS]:void 0,[Ue.COLLECTIONS]:void 0},ys=(t,e)=>{var r;let i=Qa[e];return i?(r=t[i])!==null&&r!==void 0?r:[]:[]},gs=(t,e,r)=>{let i=Qa[e];i&&(t[i]=r)},Ya=(t,e,r,i)=>{let n=t.assetCounts.allAsset[e];if(n!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,n+r),e===Ue.BOOKMARKS&&i)){let s=t.assetCounts.bookmarkByMap[i];t.assetCounts.bookmarkByMap[i]=Math.max(0,s+r)}},Xa=(t,e)=>{let r=t.assetLabels.map(n=>n.title),i=e.labels.filter(n=>!r.includes(n)).map(n=>({title:n}));t.assetLabels.push(...i)},xe=pn.FtReduxStore.get({name:fp,reducers:hp,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Ue).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),vs=class{constructor(e=new un,r=new dn){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=A.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new cn,this.savedSearchesService=new ln,A.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=A.getState();(0,pn.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),xe.actions.clearAssetCount(),xe.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),xe.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),xe.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();xe.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();xe.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&xe.getState().assetCounts.allAsset[e]!==r.count&&xe.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&xe.getState().assetCounts.bookmarkByMap[e]!==r.count&&xe.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(xe.getState().assetCounts.bookmarkByMap).length!==0;e===Ue.BOOKMARKS&&r&&xe.actions.clearBookmarkCountByMap(),xe.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let r=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;xe.actions.bookmarks(r)}}},mp=new vs;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=mp);var bs=class{addCommand(e,r=!1){A.commands.add(e,r)}consumeCommand(e){return A.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new bs;var Be=d(v());var Za,Or=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},yp=Symbol("clearAfterUnitTest"),fn=class extends(0,Be.withEventBus)(Ee){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Za]=()=>{this.defaultMessages={},this.cache=new Be.CacheRegistry,this.listeners={}},this.currentUiLocale=A.getState().uiLocale,A.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=A.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let r=e.name.toLowerCase();this.cache.setFinal(r,e),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,r){var i;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let n={...(i=this.defaultMessages[e])!==null&&i!==void 0?i:{},...r};(0,Be.deepEqual)(this.defaultMessages[e],n)||(this.defaultMessages[e]=n,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,i;return this.fetchContext(e),(i=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&i!==void 0?i:{}}resolveRawMessage(e,r){let i=e.toLowerCase();return this.resolveContext(i)[r]}resolveMessage(e,r,...i){var n;let s=e.toLowerCase(),o=this.resolveContext(s);return new Be.ParametrizedLabelResolver((n=this.defaultMessages[s])!==null&&n!==void 0?n:{},o).resolve(r,...i)}async fetchContext(e){let r=!this.cache.has(e),i;try{i=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(n){!(n instanceof Be.CanceledPromiseError)&&r&&console.error(n)}return i}subscribe(e,r){var i;return e=e.toLowerCase(),this.listeners[e]=(i=this.listeners[e])!==null&&i!==void 0?i:new Set,this.listeners[e].add(r),()=>{var n;return(n=this.listeners[e])===null||n===void 0?void 0:n.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new Or({loadedContexts:e})),this.dispatchEvent(new Or({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new Or({loadedContexts:[e]})),this.dispatchEvent(new Or({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(i=>(0,Be.delay)(0).then(()=>i()).catch(()=>null)))}};Za=yp;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends fn{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends fn{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var Tr=window.FluidTopicsI18nService,hn=window.FluidTopicsCustomI18nService;var Ja=d(v()),xs=class{highlightHtml(e,r,i){(0,Ja.highlightHtml)(e,r,i)}};window.FluidTopicsHighlightHtmlService=new xs;var el=d(v());var Ss=class{isDate(e){var r,i,n,s;return(s=(i=((n=(r=A.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(a=>a.key===e))===null||i===void 0?void 0:i.date)!==null&&s!==void 0?s:!1}format(e,r){var i,n,s,o;if(e==null)return"";try{return el.DateFormatter.format(e,(i=r?.locale)!==null&&i!==void 0?i:A.getState().uiLocale,(n=r?.longFormat)!==null&&n!==void 0?n:!1,(s=r?.withTime)!==null&&s!==void 0?s:!1,(o=r?.onlyTime)!==null&&o!==void 0?o:!1)}catch(a){throw console.error(`Date ${JSON.stringify(e)} is not valid`,a),a}}};window.FluidTopicsDateService=new Ss;var tl=d(v());var Jr=class{static get(e,r,{baseUrl:i,localesConfiguration:n,availableContentLocales:s}=A.getState()){var o;if(!r||s.length>0&&!s.some(a=>a.lang===r)){let a=n?.defaultLocales.defaultContentLocale;r=a?`${a.lang}-${a.region}`:(o=s[0])===null||o===void 0?void 0:o.lang}return new tl.SearchPlaceConverter(i,e??20,n?.allLanguagesAllowed,r,s)}};var Es=class{urlToSearchRequest(e){return Jr.get().parse(e)}searchRequestToUrl(e){return Jr.get().serialize(e)}};window.FluidTopicsUrlService=new Es;var yt=d(v());var Kt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{nextLocation:e}})}};Kt.eventName="before-location-change";var Wt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Wt.eventName="change";var As=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let r=sessionStorage.getItem(this.itemName(e));return r?JSON.parse(r):void 0}set(e,r){sessionStorage.setItem(this.itemName(e),JSON.stringify(r))}},rl=new As;var mn=class t extends yt.WithEventBus{static build(){return new t(window.history,rl,()=>window.location,!1)}constructor(e,r,i,n){var s,o;super(),this.history=e,this.historyStorage=r,this.windowLocation=i,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(o=(s=e.state)===null||s===void 0?void 0:s.index)!==null&&o!==void 0?o:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(n)}setCurrentState(e,r=!1){let i=r&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,i&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,yt.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,this.windowLocation().href]),setTimeout(()=>this.dispatchEvent(new Wt(this.currentItem())),0)}installProxies(){let e=r=>(i,n,[s,o,a])=>{let l=new Kt(new URL(typeof a=="string"?a:(a??this.windowLocation()).href,window.location.origin));this.dispatchEvent(l);let c=r(),u={...c===this.currentIndex?this.currentState:void 0,...s,index:c,href:l.detail.nextLocation.href};i.apply(n,[u,o,u.href]),this.setCurrentState(u,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let r=this.history.length-1;r>=0;r--)e?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(e){var r;let i={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(i)}addBeforeLocationChangeListener(e){this.addEventListener(Kt.eventName,e)}removeBeforeLocationChangeListener(e){this.removeEventListener(Kt.eventName,e)}addHistoryChangeListener(e){this.addEventListener(Wt.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Wt.eventName,e)}currentItem(){return(0,yt.deepCopy)(this.currentState)}back(){let e=this.previousDifferentMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,yt.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(i=>!!i).filter(i=>i.index<this.currentIndex).reverse();return(0,yt.deepCopy)(r.find(i=>e(i)))}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return(0,yt.deepCopy)(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var r;let i=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!i)return e;let n=e,s=e+1;for(;this.states.length>s&&!this.isDifferentMajorState(s,i);)this.hasState(s)&&(n=s),s++;return n}buildCurrentState(){var e,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&r!==void 0?r:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,r){var i;if(!this.hasState(e))return!1;let n=r??this.currentState.majorStateId,s=(i=this.states[e])===null||i===void 0?void 0:i.majorStateId;return s==null||s!=n}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=mn.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:t=>window.FluidTopicsInternalHistoryService.backwardItemMatching(t),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t),addBeforeLocationChangeListener:t=>window.FluidTopicsInternalHistoryService.addBeforeLocationChangeListener(t),removeBeforeLocationChangeListener:t=>window.FluidTopicsInternalHistoryService.removeBeforeLocationChangeListener(t)});var il=d(R());var nl=il.css`
12
+ `;var ol=d(R()),Se=d(B()),Yt=d(v());var at=d(v());function sl(t,e){let{authenticationRequired:r,session:i}=A.getState();return r&&!i?.sessionAuthenticated?Promise.resolve(e):t()}var yn=class extends wr{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}};var _s=class t extends at.FtStateManager{static build(e){return new t(A,e)}constructor(e,r){super(),this.store=e,this.cache=new at.CacheRegistry,this.withManualResources=!0,this.userLocaleService=new yn,this.knownContexts=new at.AbstractRegistry,this.knownCustomComponents=new at.AbstractRegistry,this.cleanSessionDebouncer=new at.Debouncer,this.reloadConfiguration=()=>{var i;(i=this.cache)===null||i===void 0||i.clear("availableContentLocales"),this.updateAvailableContentLocales()},this.reloadDebouncer=new at.Debouncer(500),this.apiProvider=r??(()=>qt.get())}setWithManualResources(e){this.withManualResources=e,this.updateIfNeeded()}addListeners(){this.store.addEventListener(Et.eventName,this.reloadConfiguration)}removeListeners(){this.store.removeEventListener(Et.eventName,this.reloadConfiguration)}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.store.getState().session==null&&this.updateSession(),this.store.getState().metadataConfiguration==null&&this.updateMetadataConfiguration()),this.store.getState().localesConfiguration==null&&this.updateLocalesConfiguration(),(this.store.getState().availableContentLocales==null||this.store.getState().availableContentLocales.length==0)&&this.updateAvailableContentLocales())}async updateSession(){let e=await this.cache.get("session",async()=>{let r=await this.apiProvider().getCurrentSession();return r.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.setSession(void 0)},r.idleTimeoutInMillis),r});this.setSession(e)}async updateMetadataConfiguration(){this.setMetadataConfiguration(await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration()))}async updateLocalesConfiguration(){this.setLocalesConfiguration(await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration()))}async updateAvailableContentLocales(){var e;let r=await this.cache.get("availableContentLocales",()=>sl(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((e=r.contentLocales)!==null&&e!==void 0?e:[])}setStickyFilters(e){this.store.actions.stickyFilters(e)}setBaseUrl(e){this.store.actions.baseUrl(e),window.fluidTopicsBaseUrl=e}setTenantId(e){this.store.actions.tenantId(e)}setApiIntegrationIdentifier(e){this.store.actions.apiIntegrationIdentifier(e)}setApiIntegrationAppVersion(e){this.store.actions.apiIntegrationAppVersion(e)}setUiLocale(e){this.store.actions.uiLocale(e)}setLocalesConfiguration(e){this.store.actions.localesConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setAvailableContentLocales(e){this.store.actions.availableContentLocales(e),setTimeout(()=>this.updateIfNeeded())}stopReloadDebouncer(){this.reloadDebouncer.cancel()}requestUiLocaleUpdate(e,r){this.userLocaleService.updateUiLocale({uiLocale:e,contentLocale:r}).then(i=>{i.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new Zr(i)))}).catch(()=>{})}setMetadataConfiguration(e){this.store.actions.metadataConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setNoCustom(e){this.store.actions.noCustom(e)}setEditorMode(e){this.store.actions.editorMode(e)}setNoCustomComponent(e){this.store.actions.noCustomComponent(e)}setNoCustomCode(e){this.store.actions.noCustomCode(e)}setSession(e){this.store.actions.session(e),setTimeout(()=>this.updateIfNeeded())}setOpenExternalDocumentInNewTab(e){this.store.actions.openExternalDocumentInNewTab(e)}setNavigatorOnline(e){this.store.actions.navigatorOnline(e)}setForcedOffline(e){this.store.actions.forcedOffline(e)}setAuthenticationRequired(e){this.store.actions.authenticationRequired(e)}userHasAnyRole(...e){return Zo(A.getState().session,...e)}},Cs=_s.build();var Gt=class extends Event{constructor(e,r,i,n){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=r,this.callback=i,this.subscribe=n??!1}};var ei=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=e=>{let r=this.pendingContextRequests.get(e.context);if(r===void 0)return;this.pendingContextRequests.delete(e.context);let{requests:i}=r;for(let{elementRef:n,callbackRef:s}of i){let o=n.deref(),a=s.deref();o===void 0||a===void 0||o.dispatchEvent(new Gt(e.context,o,a,!0))}},this.onContextRequest=e=>{if(e.subscribe!==!0)return;let r=e.contextTarget??e.composedPath()[0],i=e.callback,n=this.pendingContextRequests.get(e.context);n===void 0&&this.pendingContextRequests.set(e.context,n={callbacks:new WeakMap,requests:[]});let s=n.callbacks.get(r);s===void 0&&n.callbacks.set(r,s=new WeakSet),s.has(i)||(s.add(i),n.requests.push({elementRef:new WeakRef(r),callbackRef:new WeakRef(i)}))}}attach(e){e.addEventListener("context-request",this.onContextRequest),e.addEventListener("context-provider",this.onContextProvider)}detach(e){e.removeEventListener("context-request",this.onContextRequest),e.removeEventListener("context-provider",this.onContextProvider)}};var se=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},z=class extends Yt.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=Cs,this.contextRoot=new ei}render(){return ol.html`
13
13
  <slot></slot>
14
- `}connectedCallback(){super.connectedCallback(),this.stateManager.addListeners(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.removeListeners(),this.contextRoot.detach(document.body)}update(e){var r;super.update(e),e.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),e.has("tenantId")&&this.stateManager.setTenantId(this.tenantId),e.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),e.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),e.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),e.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),e.has("noCustomCode")&&this.stateManager.setNoCustomCode(this.noCustomCode),e.has("session")&&this.stateManager.setSession(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(i=>Cr.addContext(i)),e.has("openExternalDocumentInNewTab")&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&this.stateManager.setNavigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&this.stateManager.setForcedOffline(this.forcedOffline),e.has("authenticationRequired")&&this.stateManager.setAuthenticationRequired(this.authenticationRequired),e.has("withManualResources")&&((r=this.stateManager)===null||r===void 0||r.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};z.elementDefinitions={};z.styles=nl;ne([(0,Se.property)()],z.prototype,"baseUrl",void 0);ne([(0,Se.property)()],z.prototype,"tenantId",void 0);ne([(0,Se.property)()],z.prototype,"apiIntegrationIdentifier",void 0);ne([(0,Se.property)()],z.prototype,"apiIntegrationAppVersion",void 0);ne([(0,Se.property)()],z.prototype,"uiLocale",void 0);ne([(0,Wt.jsonProperty)(null)],z.prototype,"availableUiLocales",void 0);ne([(0,Wt.jsonProperty)(null)],z.prototype,"metadataConfiguration",void 0);ne([(0,Se.property)({type:Boolean})],z.prototype,"editorMode",void 0);ne([(0,Se.property)({type:Boolean})],z.prototype,"noCustom",void 0);ne([(0,Se.property)({type:Boolean})],z.prototype,"openExternalDocumentInNewTab",void 0);ne([(0,Se.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],z.prototype,"noCustomComponent",void 0);ne([(0,Se.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],z.prototype,"noCustomCode",void 0);ne([(0,Se.property)({type:Boolean})],z.prototype,"withManualResources",void 0);ne([(0,Se.property)({type:Boolean})],z.prototype,"navigatorOnline",void 0);ne([(0,Se.property)({type:Boolean})],z.prototype,"forcedOffline",void 0);ne([(0,Se.property)({type:Boolean})],z.prototype,"authenticationRequired",void 0);ne([(0,Wt.jsonProperty)([])],z.prototype,"messageContexts",void 0);ne([(0,Wt.jsonProperty)(void 0)],z.prototype,"session",void 0);var ll=d(v());var al={"ft-app-context":z};(0,ll.customElements)(al);var mn=class t extends Event{constructor(){super(t.eventName)}};mn.eventName="search-context-clear-all-filters";var yn=t=>t.request.virtualField===_i.TITLE_ONLY&&t.request.scope===wi.DOCUMENTS,gn=t=>t.request.keywordMatch==pt.MANDATORY;var ws=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Ts=class extends CustomEvent{constructor(e){super("register-ft-search-component",{bubbles:!0,composed:!0,detail:{registrationId:e}})}},cl=Symbol("registerInterval"),Os=Symbol("registerAttempts"),bp=40,xp=(0,wr.applyMixinOnce)(Symbol("toFtSearchComponent"),function(t){class e extends t{constructor(){super(...arguments),this.neededSearchRequests=[]}willUpdate(i){var n,s,o;super.willUpdate(i),i.has("neededSearchRequests")&&((n=this.stateManager)===null||n===void 0||n.unregisterComponent(this,(o=i.get("neededSearchRequests"))!==null&&o!==void 0?o:[]),(s=this.stateManager)===null||s===void 0||s.registerComponent(this,this.neededSearchRequests))}setSearchStateManager(i){this.clearStateManager(),this.stateManager=i,this.stateManager.registerComponent(this,this.neededSearchRequests),this.addStore(i.store,"search")}clearStateManager(){this.stateManager&&(this.stateManager.unregisterComponent(this,this.neededSearchRequests),this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[Os]=0,this.tryToRegisterToContext(),this[cl]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[Os]>bp?window.clearInterval(this[cl]):(this[Os]++,this.dispatchEvent(new Ts(this.searchRegistrationId)))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return ws([(0,Zr.state)()],e.prototype,"stateManager",void 0),ws([(0,Zr.state)({hasChanged:wr.hasChanged})],e.prototype,"neededSearchRequests",void 0),ws([(0,Zr.property)()],e.prototype,"searchRegistrationId",void 0),e}),At=class extends xp(wr.FtLitElementRedux){};var dr=d(R()),se=d(U()),uu=d(Gt()),Mr=d(v());var vl=d(R()),ue=d(U()),bl=d(Gt()),Jr=d(v());var yl=d(R()),Q=d(v()),dl=Q.FtCssVariableFactory.extend("--ft-ripple-color","",Q.designSystemVariables.colorContent),re={color:dl,backgroundColor:Q.FtCssVariableFactory.extend("--ft-ripple-background-color","",dl),opacityContentOnSurfacePressed:Q.FtCssVariableFactory.external(Q.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:Q.FtCssVariableFactory.external(Q.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:Q.FtCssVariableFactory.external(Q.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:Q.FtCssVariableFactory.external(Q.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:Q.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},pl=Q.FtCssVariableFactory.extend("--ft-ripple-color","",Q.designSystemVariables.colorPrimary),fl={color:pl,backgroundColor:Q.FtCssVariableFactory.extend("--ft-ripple-background-color","",pl)},hl=Q.FtCssVariableFactory.extend("--ft-ripple-color","",Q.designSystemVariables.colorSecondary),ml={color:hl,backgroundColor:Q.FtCssVariableFactory.extend("--ft-ripple-background-color","",hl)},gl=yl.css`
14
+ `}connectedCallback(){super.connectedCallback(),this.stateManager.addListeners(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.removeListeners(),this.contextRoot.detach(document.body)}update(e){var r;super.update(e),e.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),e.has("tenantId")&&this.stateManager.setTenantId(this.tenantId),e.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),e.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),e.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),e.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),e.has("noCustomCode")&&this.stateManager.setNoCustomCode(this.noCustomCode),e.has("session")&&this.stateManager.setSession(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(i=>Tr.addContext(i)),e.has("openExternalDocumentInNewTab")&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&this.stateManager.setNavigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&this.stateManager.setForcedOffline(this.forcedOffline),e.has("authenticationRequired")&&this.stateManager.setAuthenticationRequired(this.authenticationRequired),e.has("withManualResources")&&((r=this.stateManager)===null||r===void 0||r.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};z.elementDefinitions={};z.styles=nl;se([(0,Se.property)()],z.prototype,"baseUrl",void 0);se([(0,Se.property)()],z.prototype,"tenantId",void 0);se([(0,Se.property)()],z.prototype,"apiIntegrationIdentifier",void 0);se([(0,Se.property)()],z.prototype,"apiIntegrationAppVersion",void 0);se([(0,Se.property)()],z.prototype,"uiLocale",void 0);se([(0,Yt.jsonProperty)(null)],z.prototype,"availableUiLocales",void 0);se([(0,Yt.jsonProperty)(null)],z.prototype,"metadataConfiguration",void 0);se([(0,Se.property)({type:Boolean})],z.prototype,"editorMode",void 0);se([(0,Se.property)({type:Boolean})],z.prototype,"noCustom",void 0);se([(0,Se.property)({type:Boolean})],z.prototype,"openExternalDocumentInNewTab",void 0);se([(0,Se.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],z.prototype,"noCustomComponent",void 0);se([(0,Se.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],z.prototype,"noCustomCode",void 0);se([(0,Se.property)({type:Boolean})],z.prototype,"withManualResources",void 0);se([(0,Se.property)({type:Boolean})],z.prototype,"navigatorOnline",void 0);se([(0,Se.property)({type:Boolean})],z.prototype,"forcedOffline",void 0);se([(0,Se.property)({type:Boolean})],z.prototype,"authenticationRequired",void 0);se([(0,Yt.jsonProperty)([])],z.prototype,"messageContexts",void 0);se([(0,Yt.jsonProperty)(void 0)],z.prototype,"session",void 0);var ll=d(v());var al={"ft-app-context":z};(0,ll.customElements)(al);var gn=class t extends Event{constructor(){super(t.eventName)}};gn.eventName="search-context-clear-all-filters";var vn=t=>t.request.virtualField===wi.TITLE_ONLY&&t.request.scope===Ti.DOCUMENTS,bn=t=>t.request.keywordMatch==ht.MANDATORY;var ws=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Ts=class extends Ct.FtContextRegistrationEvent{constructor(e){super("register-ft-search-component",e)}},cl=Symbol("registerInterval"),Os=Symbol("registerAttempts"),bp=40,xp=(0,Ct.applyMixinOnce)(Symbol("toFtSearchComponent"),function(t){class e extends t{constructor(){super(...arguments),this.neededSearchRequests=[]}willUpdate(i){var n,s,o;super.willUpdate(i),i.has("neededSearchRequests")&&((n=this.stateManager)===null||n===void 0||n.unregisterComponent(this,(o=i.get("neededSearchRequests"))!==null&&o!==void 0?o:[]),(s=this.stateManager)===null||s===void 0||s.registerComponent(this,this.neededSearchRequests))}setSearchStateManager(i){this.clearStateManager(),this.stateManager=i,this.stateManager.registerComponent(this,this.neededSearchRequests),this.addStore(i.store,"search")}clearStateManager(){this.stateManager&&(this.stateManager.unregisterComponent(this,this.neededSearchRequests),this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[Os]=0,this.tryToRegisterToContext(),this[cl]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[Os]>bp?window.clearInterval(this[cl]):(this[Os]++,this.dispatchEvent(new Ts({target:this,registrationId:this.searchRegistrationId})))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return ws([(0,ti.state)()],e.prototype,"stateManager",void 0),ws([(0,ti.state)({hasChanged:Ct.hasChanged})],e.prototype,"neededSearchRequests",void 0),ws([(0,ti.property)()],e.prototype,"searchRegistrationId",void 0),e}),_t=class extends xp(Ct.FtLitElementRedux){};var fr=d(R()),oe=d(B()),uu=d(Xt()),Fr=d(v());var vl=d(R()),pe=d(B()),bl=d(Xt()),ri=d(v());var yl=d(R()),Q=d(v()),dl=Q.FtCssVariableFactory.extend("--ft-ripple-color","",Q.designSystemVariables.colorContent),re={color:dl,backgroundColor:Q.FtCssVariableFactory.extend("--ft-ripple-background-color","",dl),opacityContentOnSurfacePressed:Q.FtCssVariableFactory.external(Q.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:Q.FtCssVariableFactory.external(Q.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:Q.FtCssVariableFactory.external(Q.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:Q.FtCssVariableFactory.external(Q.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:Q.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},pl=Q.FtCssVariableFactory.extend("--ft-ripple-color","",Q.designSystemVariables.colorPrimary),fl={color:pl,backgroundColor:Q.FtCssVariableFactory.extend("--ft-ripple-background-color","",pl)},hl=Q.FtCssVariableFactory.extend("--ft-ripple-color","",Q.designSystemVariables.colorSecondary),ml={color:hl,backgroundColor:Q.FtCssVariableFactory.extend("--ft-ripple-background-color","",hl)},gl=yl.css`
15
15
  :host {
16
16
  display: contents;
17
17
  }
@@ -123,7 +123,7 @@
123
123
  opacity: ${re.opacityContentOnSurfacePressed};
124
124
  transform: translate(-50%, -50%) scale(1);
125
125
  }
126
- `;var Ae=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},P=class extends Jr.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new Jr.Debouncer(1e3),this.onTransitionStart=e=>{e.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=e=>{e.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new Jr.Debouncer(10),this.moveRipple=e=>{var r,i;let{x:n,y:s}=this.getCoordinates(e),o=(i=(r=this.ripple)===null||r===void 0?void 0:r.getBoundingClientRect())!==null&&i!==void 0?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(n!=null?n-o.x:o.width/2),this.originY=Math.round(s!=null?s-o.y:o.height/2)},this.startPress=e=>{this.moveRipple(e),this.pressed=!this.isIgnored(e)},this.endPress=()=>{this.pressed=!1},this.startHover=e=>{this.hovered=!this.isIgnored(e)},this.endHover=()=>{this.hovered=!1},this.startFocus=e=>{this.focused=this.isFocusVisible(e?.target)&&!this.isIgnored(e)},this.endFocus=()=>{this.focused=!1}}render(){let e={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return vl.html`
126
+ `;var Ae=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},P=class extends ri.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new ri.Debouncer(1e3),this.onTransitionStart=e=>{e.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=e=>{e.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new ri.Debouncer(10),this.moveRipple=e=>{var r,i;let{x:n,y:s}=this.getCoordinates(e),o=(i=(r=this.ripple)===null||r===void 0?void 0:r.getBoundingClientRect())!==null&&i!==void 0?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(n!=null?n-o.x:o.width/2),this.originY=Math.round(s!=null?s-o.y:o.height/2)},this.startPress=e=>{this.moveRipple(e),this.pressed=!this.isIgnored(e)},this.endPress=()=>{this.pressed=!1},this.startHover=e=>{this.hovered=!this.isIgnored(e)},this.endHover=()=>{this.hovered=!1},this.startFocus=e=>{this.focused=this.isFocusVisible(e?.target)&&!this.isIgnored(e)},this.endFocus=()=>{this.focused=!1}}render(){let e={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return vl.html`
127
127
  <style>
128
128
  .ft-ripple .ft-ripple--effect {
129
129
  left: ${this.originX}px;
@@ -134,30 +134,10 @@
134
134
  <div class="ft-ripple--background"></div>
135
135
  <div class="ft-ripple--effect"></div>
136
136
  </div>
137
- `}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var r,i;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(i=this.target)===null||i===void 0||i.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var e,r;let i=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;i&&this.setupFor((r=this.target)!==null&&r!==void 0?r:i)}forceFocusUpdate(){var e;!((e=this.target)===null||e===void 0)&&e.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let r=(...a)=>l=>{a.forEach(c=>window.addEventListener(c,this.endPress,{once:!0})),this.startPress(l)},i=r("mouseup","contextmenu"),n=r("touchend","touchcancel"),s=a=>{["Enter"," "].includes(a.key)&&r("keyup")(a)},o={passive:!0};e.addEventListener("mouseover",this.startHover,o),e.addEventListener("mousemove",this.moveRipple,o),e.addEventListener("mouseleave",this.endHover,o),e.addEventListener("mousedown",i,o),e.addEventListener("touchstart",n,o),e.addEventListener("touchmove",this.moveRipple,o),e.addEventListener("keydown",s,o),e.addEventListener("focus",this.startFocus,o),e.addEventListener("blur",this.endFocus,o),e.addEventListener("focusin",this.startFocus,o),e.addEventListener("focusout",this.endFocus,o),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,o),e.removeEventListener("mousemove",this.moveRipple,o),e.removeEventListener("mouseleave",this.endHover,o),e.removeEventListener("mousedown",i,o),e.removeEventListener("touchstart",n,o),e.removeEventListener("touchmove",this.moveRipple,o),e.removeEventListener("keydown",s,o),e.removeEventListener("focus",this.startFocus,o),e.removeEventListener("blur",this.endFocus,o),e.removeEventListener("focusin",this.startFocus,o),e.removeEventListener("focusout",this.endFocus,o),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let r=e,i=e,n,s;return r.x!=null?{x:n,y:s}=r:i.touches!=null&&(n=i.touches[0].clientX,s=i.touches[0].clientY),{x:n,y:s}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let r of e.composedPath()){if(r===this.target)break;if("hasAttribute"in r&&r.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};P.elementDefinitions={};P.styles=gl;Ae([(0,ue.property)({type:Boolean})],P.prototype,"primary",void 0);Ae([(0,ue.property)({type:Boolean})],P.prototype,"secondary",void 0);Ae([(0,ue.property)({type:Boolean})],P.prototype,"unbounded",void 0);Ae([(0,ue.property)({type:Boolean})],P.prototype,"activated",void 0);Ae([(0,ue.property)({type:Boolean})],P.prototype,"selected",void 0);Ae([(0,ue.property)({type:Boolean})],P.prototype,"disabled",void 0);Ae([(0,ue.state)()],P.prototype,"hovered",void 0);Ae([(0,ue.state)()],P.prototype,"focused",void 0);Ae([(0,ue.state)()],P.prototype,"pressed",void 0);Ae([(0,ue.state)()],P.prototype,"rippling",void 0);Ae([(0,ue.state)()],P.prototype,"originX",void 0);Ae([(0,ue.state)()],P.prototype,"originY",void 0);Ae([(0,ue.query)(".ft-ripple")],P.prototype,"ripple",void 0);Ae([(0,ue.query)(".ft-ripple--effect")],P.prototype,"rippleEffect",void 0);var Sl=d(v());var xl={"ft-ripple":P};(0,Sl.customElements)(xl);var Is=globalThis,El=t=>t,vn=Is.trustedTypes,Al=vn?vn.createPolicy("lit-html",{createHTML:t=>t}):void 0,Rl="$lit$",_t=`lit$${Math.random().toFixed(9).slice(2)}$`,Ll="?"+_t,Sp=`<${Ll}>`,Qt=document,bn=()=>Qt.createComment(""),ti=t=>t===null||typeof t!="object"&&typeof t!="function",Ms=Array.isArray,Ep=t=>Ms(t)||typeof t?.[Symbol.iterator]=="function",Rs=`[
138
- \f\r]`,ei=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,_l=/-->/g,Cl=/>/g,Yt=RegExp(`>|${Rs}(?:([^\\s"'>=/]+)(${Rs}*=${Rs}*(?:[^
139
- \f\r"'\`<>=]|("|')|))|$)`,"g"),wl=/'/g,Ol=/"/g,kl=/^(?:script|style|textarea|title)$/i,$s=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),Dl=$s(1),Nl=$s(2),Pl=$s(3),ri=Symbol.for("lit-noChange"),Z=Symbol.for("lit-nothing"),Tl=new WeakMap,Xt=Qt.createTreeWalker(Qt,129);function Il(t,e){if(!Ms(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Al!==void 0?Al.createHTML(e):e}var Ap=(t,e)=>{let r=t.length-1,i=[],n,s=e===2?"<svg>":e===3?"<math>":"",o=ei;for(let a=0;a<r;a++){let l=t[a],c,u,p=-1,f=0;for(;f<l.length&&(o.lastIndex=f,u=o.exec(l),u!==null);)f=o.lastIndex,o===ei?u[1]==="!--"?o=_l:u[1]!==void 0?o=Cl:u[2]!==void 0?(kl.test(u[2])&&(n=RegExp("</"+u[2],"g")),o=Yt):u[3]!==void 0&&(o=Yt):o===Yt?u[0]===">"?(o=n??ei,p=-1):u[1]===void 0?p=-2:(p=o.lastIndex-u[2].length,c=u[1],o=u[3]===void 0?Yt:u[3]==='"'?Ol:wl):o===Ol||o===wl?o=Yt:o===_l||o===Cl?o=ei:(o=Yt,n=void 0);let y=o===Yt&&t[a+1].startsWith("/>")?" ":"";s+=o===ei?l+Sp:p>=0?(i.push(c),l.slice(0,p)+Rl+l.slice(p)+_t+y):l+_t+(p===-2?a:y)}return[Il(t,s+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},ii=class t{constructor({strings:e,_$litType$:r},i){let n;this.parts=[];let s=0,o=0,a=e.length-1,l=this.parts,[c,u]=Ap(e,r);if(this.el=t.createElement(c,i),Xt.currentNode=this.el.content,r===2||r===3){let p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(n=Xt.nextNode())!==null&&l.length<a;){if(n.nodeType===1){if(n.hasAttributes())for(let p of n.getAttributeNames())if(p.endsWith(Rl)){let f=u[o++],y=n.getAttribute(p).split(_t),x=/([.?@])?(.*)/.exec(f);l.push({type:1,index:s,name:x[2],strings:y,ctor:x[1]==="."?ks:x[1]==="?"?Ds:x[1]==="@"?Ns:Tr}),n.removeAttribute(p)}else p.startsWith(_t)&&(l.push({type:6,index:s}),n.removeAttribute(p));if(kl.test(n.tagName)){let p=n.textContent.split(_t),f=p.length-1;if(f>0){n.textContent=vn?vn.emptyScript:"";for(let y=0;y<f;y++)n.append(p[y],bn()),Xt.nextNode(),l.push({type:2,index:++s});n.append(p[f],bn())}}}else if(n.nodeType===8)if(n.data===Ll)l.push({type:2,index:s});else{let p=-1;for(;(p=n.data.indexOf(_t,p+1))!==-1;)l.push({type:7,index:s}),p+=_t.length-1}s++}}static createElement(e,r){let i=Qt.createElement("template");return i.innerHTML=e,i}};function Or(t,e,r=t,i){if(e===ri)return e;let n=i!==void 0?r._$Co?.[i]:r._$Cl,s=ti(e)?void 0:e._$litDirective$;return n?.constructor!==s&&(n?._$AO?.(!1),s===void 0?n=void 0:(n=new s(t),n._$AT(t,r,i)),i!==void 0?(r._$Co??=[])[i]=n:r._$Cl=n),n!==void 0&&(e=Or(t,n._$AS(t,e.values),n,i)),e}var Ls=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:i}=this._$AD,n=(e?.creationScope??Qt).importNode(r,!0);Xt.currentNode=n;let s=Xt.nextNode(),o=0,a=0,l=i[0];for(;l!==void 0;){if(o===l.index){let c;l.type===2?c=new xn(s,s.nextSibling,this,e):l.type===1?c=new l.ctor(s,l.name,l.strings,this,e):l.type===6&&(c=new Ps(s,this,e)),this._$AV.push(c),l=i[++a]}o!==l?.index&&(s=Xt.nextNode(),o++)}return Xt.currentNode=Qt,n}p(e){let r=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,r),r+=i.strings.length-2):i._$AI(e[r])),r++}},xn=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,i,n){this.type=2,this._$AH=Z,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=i,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=Or(this,e,r),ti(e)?e===Z||e==null||e===""?(this._$AH!==Z&&this._$AR(),this._$AH=Z):e!==this._$AH&&e!==ri&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Ep(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==Z&&ti(this._$AH)?this._$AA.nextSibling.data=e:this.T(Qt.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:i}=e,n=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=ii.createElement(Il(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(r);else{let s=new Ls(n,this),o=s.u(this.options);s.p(r),this.T(o),this._$AH=s}}_$AC(e){let r=Tl.get(e.strings);return r===void 0&&Tl.set(e.strings,r=new ii(e)),r}k(e){Ms(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,n=0;for(let s of e)n===r.length?r.push(i=new t(this.O(bn()),this.O(bn()),this,this.options)):i=r[n],i._$AI(s),n++;n<r.length&&(this._$AR(i&&i._$AB.nextSibling,n),r.length=n)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e!==this._$AB;){let i=El(e).nextSibling;El(e).remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Tr=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,i,n,s){this.type=1,this._$AH=Z,this._$AN=void 0,this.element=e,this.name=r,this._$AM=n,this.options=s,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Z}_$AI(e,r=this,i,n){let s=this.strings,o=!1;if(s===void 0)e=Or(this,e,r,0),o=!ti(e)||e!==this._$AH&&e!==ri,o&&(this._$AH=e);else{let a=e,l,c;for(e=s[0],l=0;l<s.length-1;l++)c=Or(this,a[i+l],r,l),c===ri&&(c=this._$AH[l]),o||=!ti(c)||c!==this._$AH[l],c===Z?e=Z:e!==Z&&(e+=(c??"")+s[l+1]),this._$AH[l]=c}o&&!n&&this.j(e)}j(e){e===Z?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},ks=class extends Tr{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Z?void 0:e}},Ds=class extends Tr{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==Z)}},Ns=class extends Tr{constructor(e,r,i,n,s){super(e,r,i,n,s),this.type=5}_$AI(e,r=this){if((e=Or(this,e,r,0)??Z)===ri)return;let i=this._$AH,n=e===Z&&i!==Z||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,s=e!==Z&&(i===Z||n);n&&this.element.removeEventListener(this.name,this,i),s&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},Ps=class{constructor(e,r,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){Or(this,e)}};var _p=Is.litHtmlPolyfillSupport;_p?.(ii,xn),(Is.litHtmlVersions??=[]).push("3.3.3");var $l=Symbol.for(""),Cp=t=>{if(t?.r===$l)return t?._$litStatic$},Fs=t=>({_$litStatic$:t,r:$l});var Ml=new Map,Us=t=>(e,...r)=>{let i=r.length,n,s,o=[],a=[],l,c=0,u=!1;for(;c<i;){for(l=e[c];c<i&&(s=r[c],(n=Cp(s))!==void 0);)l+=n+e[++c],u=!0;c!==i&&a.push(s),o.push(l),c++}if(c===i&&o.push(e[i]),u){let p=o.join("$$lit$$");(e=Ml.get(p))===void 0&&(o.raw=o,Ml.set(p,e=o)),r=a}return t(e,...r)},Bs=Us(Dl),Cg=Us(Nl),wg=Us(Pl);var Vs=d(U()),Xl=d(v());var de;(function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"})(de||(de={}));var Be=d(R()),h=d(v()),Fl=h.FtCssVariableFactory.extend("--ft-typography-font-family","",h.designSystemVariables.titleFont),mt=h.FtCssVariableFactory.extend("--ft-typography-font-family","",h.designSystemVariables.contentFont),g={fontFamily:mt,fontSize:h.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:h.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:h.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:h.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:h.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit"),textDecoration:h.FtCssVariableFactory.create("--ft-typography-text-decoration","","UNKNOWN","inherit")},Zt={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-title-font-family","",Fl),fontSize:h.FtCssVariableFactory.extend("--ft-typography-title-font-size","",g.fontSize,"20px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",g.letterSpacing,"0.15px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-title-line-height","",g.lineHeight,"1.2"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-title-text-decoration","",g.textDecoration,"inherit")},Jt={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",Fl),fontSize:h.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",g.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",g.letterSpacing,"0.105px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",g.lineHeight,"1.7"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-title-dense-text-decoration","",g.textDecoration,"inherit")},er={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",mt),fontSize:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",g.fontSize,"16px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",g.fontWeight,"600"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",g.letterSpacing,"0.144px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",g.lineHeight,"1.5"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-decoration","",g.textDecoration,"inherit")},tr={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",mt),fontSize:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",g.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",g.letterSpacing,"0.098px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",g.lineHeight,"1.7"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-decoration","",g.textDecoration,"inherit")},rr={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",mt),fontSize:h.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",g.fontSize,"16px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",g.letterSpacing,"0.496px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",g.lineHeight,"1.5"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-body1-text-decoration","",g.textDecoration,"inherit")},J={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",mt),fontSize:h.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",g.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",g.letterSpacing,"0.252px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",g.lineHeight,"1.4"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-body2-text-decoration","",g.textDecoration,"inherit")},ir={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",mt),fontSize:h.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",g.fontSize,"12px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",g.letterSpacing,"0.396px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",g.lineHeight,"1.33"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-caption-text-decoration","",g.textDecoration,"inherit")},nr={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",mt),fontSize:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",g.fontSize,"10px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",g.letterSpacing,"0.33px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",g.lineHeight,"1.6"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-decoration","",g.textDecoration,"inherit")},sr={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",mt),fontSize:h.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",g.fontSize,"10px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",g.letterSpacing,"1.5px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",g.lineHeight,"1.6"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",g.textTransform,"uppercase"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-overline-text-decoration","",g.textDecoration,"inherit")},qe={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-button-font-family","",mt),fontSize:h.FtCssVariableFactory.extend("--ft-typography-button-font-size","",g.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",g.fontWeight,"600"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",g.letterSpacing,"1.246px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-button-line-height","",g.lineHeight,"1.15"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",g.textTransform,"uppercase"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-button-text-decoration","",g.textDecoration,"inherit")},Ul=Be.css`
137
+ `}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var r,i;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(i=this.target)===null||i===void 0||i.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var e,r;let i=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;i&&this.setupFor((r=this.target)!==null&&r!==void 0?r:i)}forceFocusUpdate(){var e;!((e=this.target)===null||e===void 0)&&e.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let r=(...a)=>l=>{a.forEach(c=>window.addEventListener(c,this.endPress,{once:!0})),this.startPress(l)},i=r("mouseup","contextmenu"),n=r("touchend","touchcancel"),s=a=>{["Enter"," "].includes(a.key)&&r("keyup")(a)},o={passive:!0};e.addEventListener("mouseover",this.startHover,o),e.addEventListener("mousemove",this.moveRipple,o),e.addEventListener("mouseleave",this.endHover,o),e.addEventListener("mousedown",i,o),e.addEventListener("touchstart",n,o),e.addEventListener("touchmove",this.moveRipple,o),e.addEventListener("keydown",s,o),e.addEventListener("focus",this.startFocus,o),e.addEventListener("blur",this.endFocus,o),e.addEventListener("focusin",this.startFocus,o),e.addEventListener("focusout",this.endFocus,o),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,o),e.removeEventListener("mousemove",this.moveRipple,o),e.removeEventListener("mouseleave",this.endHover,o),e.removeEventListener("mousedown",i,o),e.removeEventListener("touchstart",n,o),e.removeEventListener("touchmove",this.moveRipple,o),e.removeEventListener("keydown",s,o),e.removeEventListener("focus",this.startFocus,o),e.removeEventListener("blur",this.endFocus,o),e.removeEventListener("focusin",this.startFocus,o),e.removeEventListener("focusout",this.endFocus,o),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let r=e,i=e,n,s;return r.x!=null?{x:n,y:s}=r:i.touches!=null&&(n=i.touches[0].clientX,s=i.touches[0].clientY),{x:n,y:s}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let r of e.composedPath()){if(r===this.target)break;if("hasAttribute"in r&&r.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};P.elementDefinitions={};P.styles=gl;Ae([(0,pe.property)({type:Boolean})],P.prototype,"primary",void 0);Ae([(0,pe.property)({type:Boolean})],P.prototype,"secondary",void 0);Ae([(0,pe.property)({type:Boolean})],P.prototype,"unbounded",void 0);Ae([(0,pe.property)({type:Boolean})],P.prototype,"activated",void 0);Ae([(0,pe.property)({type:Boolean})],P.prototype,"selected",void 0);Ae([(0,pe.property)({type:Boolean})],P.prototype,"disabled",void 0);Ae([(0,pe.state)()],P.prototype,"hovered",void 0);Ae([(0,pe.state)()],P.prototype,"focused",void 0);Ae([(0,pe.state)()],P.prototype,"pressed",void 0);Ae([(0,pe.state)()],P.prototype,"rippling",void 0);Ae([(0,pe.state)()],P.prototype,"originX",void 0);Ae([(0,pe.state)()],P.prototype,"originY",void 0);Ae([(0,pe.query)(".ft-ripple")],P.prototype,"ripple",void 0);Ae([(0,pe.query)(".ft-ripple--effect")],P.prototype,"rippleEffect",void 0);var Sl=d(v());var xl={"ft-ripple":P};(0,Sl.customElements)(xl);var Is=globalThis,El=t=>t,xn=Is.trustedTypes,Al=xn?xn.createPolicy("lit-html",{createHTML:t=>t}):void 0,Rl="$lit$",wt=`lit$${Math.random().toFixed(9).slice(2)}$`,kl="?"+wt,Sp=`<${kl}>`,Jt=document,Sn=()=>Jt.createComment(""),ni=t=>t===null||typeof t!="object"&&typeof t!="function",Ms=Array.isArray,Ep=t=>Ms(t)||typeof t?.[Symbol.iterator]=="function",Rs=`[
138
+ \f\r]`,ii=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,_l=/-->/g,Cl=/>/g,Qt=RegExp(`>|${Rs}(?:([^\\s"'>=/]+)(${Rs}*=${Rs}*(?:[^
139
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),wl=/'/g,Ol=/"/g,Ll=/^(?:script|style|textarea|title)$/i,$s=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),Dl=$s(1),Nl=$s(2),Pl=$s(3),si=Symbol.for("lit-noChange"),Z=Symbol.for("lit-nothing"),Tl=new WeakMap,Zt=Jt.createTreeWalker(Jt,129);function Il(t,e){if(!Ms(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Al!==void 0?Al.createHTML(e):e}var Ap=(t,e)=>{let r=t.length-1,i=[],n,s=e===2?"<svg>":e===3?"<math>":"",o=ii;for(let a=0;a<r;a++){let l=t[a],c,u,p=-1,f=0;for(;f<l.length&&(o.lastIndex=f,u=o.exec(l),u!==null);)f=o.lastIndex,o===ii?u[1]==="!--"?o=_l:u[1]!==void 0?o=Cl:u[2]!==void 0?(Ll.test(u[2])&&(n=RegExp("</"+u[2],"g")),o=Qt):u[3]!==void 0&&(o=Qt):o===Qt?u[0]===">"?(o=n??ii,p=-1):u[1]===void 0?p=-2:(p=o.lastIndex-u[2].length,c=u[1],o=u[3]===void 0?Qt:u[3]==='"'?Ol:wl):o===Ol||o===wl?o=Qt:o===_l||o===Cl?o=ii:(o=Qt,n=void 0);let y=o===Qt&&t[a+1].startsWith("/>")?" ":"";s+=o===ii?l+Sp:p>=0?(i.push(c),l.slice(0,p)+Rl+l.slice(p)+wt+y):l+wt+(p===-2?a:y)}return[Il(t,s+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},oi=class t{constructor({strings:e,_$litType$:r},i){let n;this.parts=[];let s=0,o=0,a=e.length-1,l=this.parts,[c,u]=Ap(e,r);if(this.el=t.createElement(c,i),Zt.currentNode=this.el.content,r===2||r===3){let p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(n=Zt.nextNode())!==null&&l.length<a;){if(n.nodeType===1){if(n.hasAttributes())for(let p of n.getAttributeNames())if(p.endsWith(Rl)){let f=u[o++],y=n.getAttribute(p).split(wt),x=/([.?@])?(.*)/.exec(f);l.push({type:1,index:s,name:x[2],strings:y,ctor:x[1]==="."?Ls:x[1]==="?"?Ds:x[1]==="@"?Ns:kr}),n.removeAttribute(p)}else p.startsWith(wt)&&(l.push({type:6,index:s}),n.removeAttribute(p));if(Ll.test(n.tagName)){let p=n.textContent.split(wt),f=p.length-1;if(f>0){n.textContent=xn?xn.emptyScript:"";for(let y=0;y<f;y++)n.append(p[y],Sn()),Zt.nextNode(),l.push({type:2,index:++s});n.append(p[f],Sn())}}}else if(n.nodeType===8)if(n.data===kl)l.push({type:2,index:s});else{let p=-1;for(;(p=n.data.indexOf(wt,p+1))!==-1;)l.push({type:7,index:s}),p+=wt.length-1}s++}}static createElement(e,r){let i=Jt.createElement("template");return i.innerHTML=e,i}};function Rr(t,e,r=t,i){if(e===si)return e;let n=i!==void 0?r._$Co?.[i]:r._$Cl,s=ni(e)?void 0:e._$litDirective$;return n?.constructor!==s&&(n?._$AO?.(!1),s===void 0?n=void 0:(n=new s(t),n._$AT(t,r,i)),i!==void 0?(r._$Co??=[])[i]=n:r._$Cl=n),n!==void 0&&(e=Rr(t,n._$AS(t,e.values),n,i)),e}var ks=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:i}=this._$AD,n=(e?.creationScope??Jt).importNode(r,!0);Zt.currentNode=n;let s=Zt.nextNode(),o=0,a=0,l=i[0];for(;l!==void 0;){if(o===l.index){let c;l.type===2?c=new En(s,s.nextSibling,this,e):l.type===1?c=new l.ctor(s,l.name,l.strings,this,e):l.type===6&&(c=new Ps(s,this,e)),this._$AV.push(c),l=i[++a]}o!==l?.index&&(s=Zt.nextNode(),o++)}return Zt.currentNode=Jt,n}p(e){let r=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,r),r+=i.strings.length-2):i._$AI(e[r])),r++}},En=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,i,n){this.type=2,this._$AH=Z,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=i,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=Rr(this,e,r),ni(e)?e===Z||e==null||e===""?(this._$AH!==Z&&this._$AR(),this._$AH=Z):e!==this._$AH&&e!==si&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Ep(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==Z&&ni(this._$AH)?this._$AA.nextSibling.data=e:this.T(Jt.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:i}=e,n=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=oi.createElement(Il(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(r);else{let s=new ks(n,this),o=s.u(this.options);s.p(r),this.T(o),this._$AH=s}}_$AC(e){let r=Tl.get(e.strings);return r===void 0&&Tl.set(e.strings,r=new oi(e)),r}k(e){Ms(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,n=0;for(let s of e)n===r.length?r.push(i=new t(this.O(Sn()),this.O(Sn()),this,this.options)):i=r[n],i._$AI(s),n++;n<r.length&&(this._$AR(i&&i._$AB.nextSibling,n),r.length=n)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e!==this._$AB;){let i=El(e).nextSibling;El(e).remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},kr=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,i,n,s){this.type=1,this._$AH=Z,this._$AN=void 0,this.element=e,this.name=r,this._$AM=n,this.options=s,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Z}_$AI(e,r=this,i,n){let s=this.strings,o=!1;if(s===void 0)e=Rr(this,e,r,0),o=!ni(e)||e!==this._$AH&&e!==si,o&&(this._$AH=e);else{let a=e,l,c;for(e=s[0],l=0;l<s.length-1;l++)c=Rr(this,a[i+l],r,l),c===si&&(c=this._$AH[l]),o||=!ni(c)||c!==this._$AH[l],c===Z?e=Z:e!==Z&&(e+=(c??"")+s[l+1]),this._$AH[l]=c}o&&!n&&this.j(e)}j(e){e===Z?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Ls=class extends kr{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Z?void 0:e}},Ds=class extends kr{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==Z)}},Ns=class extends kr{constructor(e,r,i,n,s){super(e,r,i,n,s),this.type=5}_$AI(e,r=this){if((e=Rr(this,e,r,0)??Z)===si)return;let i=this._$AH,n=e===Z&&i!==Z||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,s=e!==Z&&(i===Z||n);n&&this.element.removeEventListener(this.name,this,i),s&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},Ps=class{constructor(e,r,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){Rr(this,e)}};var _p=Is.litHtmlPolyfillSupport;_p?.(oi,En),(Is.litHtmlVersions??=[]).push("3.3.3");var $l=Symbol.for(""),Cp=t=>{if(t?.r===$l)return t?._$litStatic$},Fs=t=>({_$litStatic$:t,r:$l});var Ml=new Map,Us=t=>(e,...r)=>{let i=r.length,n,s,o=[],a=[],l,c=0,u=!1;for(;c<i;){for(l=e[c];c<i&&(s=r[c],(n=Cp(s))!==void 0);)l+=n+e[++c],u=!0;c!==i&&a.push(s),o.push(l),c++}if(c===i&&o.push(e[i]),u){let p=o.join("$$lit$$");(e=Ml.get(p))===void 0&&(o.raw=o,Ml.set(p,e=o)),r=a}return t(e,...r)},Bs=Us(Dl),Cg=Us(Nl),wg=Us(Pl);var Vs=d(B()),Xl=d(v());var fe;(function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"})(fe||(fe={}));var Ve=d(R()),h=d(v()),Fl=h.FtCssVariableFactory.extend("--ft-typography-font-family","",h.designSystemVariables.titleFont),gt=h.FtCssVariableFactory.extend("--ft-typography-font-family","",h.designSystemVariables.contentFont),g={fontFamily:gt,fontSize:h.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:h.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:h.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:h.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:h.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit"),textDecoration:h.FtCssVariableFactory.create("--ft-typography-text-decoration","","UNKNOWN","inherit")},er={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-title-font-family","",Fl),fontSize:h.FtCssVariableFactory.extend("--ft-typography-title-font-size","",g.fontSize,"20px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",g.letterSpacing,"0.15px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-title-line-height","",g.lineHeight,"1.2"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-title-text-decoration","",g.textDecoration,"inherit")},tr={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",Fl),fontSize:h.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",g.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",g.letterSpacing,"0.105px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",g.lineHeight,"1.7"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-title-dense-text-decoration","",g.textDecoration,"inherit")},rr={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",gt),fontSize:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",g.fontSize,"16px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",g.fontWeight,"600"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",g.letterSpacing,"0.144px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",g.lineHeight,"1.5"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-decoration","",g.textDecoration,"inherit")},ir={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",gt),fontSize:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",g.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",g.letterSpacing,"0.098px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",g.lineHeight,"1.7"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-decoration","",g.textDecoration,"inherit")},nr={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",gt),fontSize:h.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",g.fontSize,"16px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",g.letterSpacing,"0.496px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",g.lineHeight,"1.5"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-body1-text-decoration","",g.textDecoration,"inherit")},J={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",gt),fontSize:h.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",g.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",g.letterSpacing,"0.252px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",g.lineHeight,"1.4"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-body2-text-decoration","",g.textDecoration,"inherit")},sr={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",gt),fontSize:h.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",g.fontSize,"12px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",g.letterSpacing,"0.396px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",g.lineHeight,"1.33"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-caption-text-decoration","",g.textDecoration,"inherit")},or={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",gt),fontSize:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",g.fontSize,"10px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",g.letterSpacing,"0.33px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",g.lineHeight,"1.6"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-decoration","",g.textDecoration,"inherit")},ar={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",gt),fontSize:h.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",g.fontSize,"10px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",g.letterSpacing,"1.5px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",g.lineHeight,"1.6"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",g.textTransform,"uppercase"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-overline-text-decoration","",g.textDecoration,"inherit")},We={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-button-font-family","",gt),fontSize:h.FtCssVariableFactory.extend("--ft-typography-button-font-size","",g.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",g.fontWeight,"600"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",g.letterSpacing,"1.246px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-button-line-height","",g.lineHeight,"1.15"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",g.textTransform,"uppercase"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-button-text-decoration","",g.textDecoration,"inherit")},Ul=Ve.css`
140
140
  .ft-typography--title {
141
- font-family: ${Zt.fontFamily};
142
- font-size: ${Zt.fontSize};
143
- font-weight: ${Zt.fontWeight};
144
- letter-spacing: ${Zt.letterSpacing};
145
- line-height: ${Zt.lineHeight};
146
- text-transform: ${Zt.textTransform};
147
- text-decoration: ${Zt.textDecoration};
148
- }
149
- `,Bl=Be.css`
150
- .ft-typography--title-dense {
151
- font-family: ${Jt.fontFamily};
152
- font-size: ${Jt.fontSize};
153
- font-weight: ${Jt.fontWeight};
154
- letter-spacing: ${Jt.letterSpacing};
155
- line-height: ${Jt.lineHeight};
156
- text-transform: ${Jt.textTransform};
157
- text-decoration: ${Jt.textDecoration};
158
- }
159
- `,Vl=Be.css`
160
- .ft-typography--subtitle1 {
161
141
  font-family: ${er.fontFamily};
162
142
  font-size: ${er.fontSize};
163
143
  font-weight: ${er.fontWeight};
@@ -166,8 +146,8 @@
166
146
  text-transform: ${er.textTransform};
167
147
  text-decoration: ${er.textDecoration};
168
148
  }
169
- `,Hl=Be.css`
170
- .ft-typography--subtitle2 {
149
+ `,Bl=Ve.css`
150
+ .ft-typography--title-dense {
171
151
  font-family: ${tr.fontFamily};
172
152
  font-size: ${tr.fontSize};
173
153
  font-weight: ${tr.fontWeight};
@@ -176,9 +156,8 @@
176
156
  text-transform: ${tr.textTransform};
177
157
  text-decoration: ${tr.textDecoration};
178
158
  }
179
-
180
- `,zl=Be.css`
181
- .ft-typography--body1 {
159
+ `,Vl=Ve.css`
160
+ .ft-typography--subtitle1 {
182
161
  font-family: ${rr.fontFamily};
183
162
  font-size: ${rr.fontSize};
184
163
  font-weight: ${rr.fontWeight};
@@ -187,18 +166,8 @@
187
166
  text-transform: ${rr.textTransform};
188
167
  text-decoration: ${rr.textDecoration};
189
168
  }
190
- `,jl=Be.css`
191
- .ft-typography--body2 {
192
- font-family: ${J.fontFamily};
193
- font-size: ${J.fontSize};
194
- font-weight: ${J.fontWeight};
195
- letter-spacing: ${J.letterSpacing};
196
- line-height: ${J.lineHeight};
197
- text-transform: ${J.textTransform};
198
- text-decoration: ${J.textDecoration};
199
- }
200
- `,Sn=Be.css`
201
- .ft-typography--caption {
169
+ `,Hl=Ve.css`
170
+ .ft-typography--subtitle2 {
202
171
  font-family: ${ir.fontFamily};
203
172
  font-size: ${ir.fontSize};
204
173
  font-weight: ${ir.fontWeight};
@@ -207,8 +176,9 @@
207
176
  text-transform: ${ir.textTransform};
208
177
  text-decoration: ${ir.textDecoration};
209
178
  }
210
- `,ql=Be.css`
211
- .ft-typography--breadcrumb {
179
+
180
+ `,zl=Ve.css`
181
+ .ft-typography--body1 {
212
182
  font-family: ${nr.fontFamily};
213
183
  font-size: ${nr.fontSize};
214
184
  font-weight: ${nr.fontWeight};
@@ -217,8 +187,18 @@
217
187
  text-transform: ${nr.textTransform};
218
188
  text-decoration: ${nr.textDecoration};
219
189
  }
220
- `,Kl=Be.css`
221
- .ft-typography--overline {
190
+ `,jl=Ve.css`
191
+ .ft-typography--body2 {
192
+ font-family: ${J.fontFamily};
193
+ font-size: ${J.fontSize};
194
+ font-weight: ${J.fontWeight};
195
+ letter-spacing: ${J.letterSpacing};
196
+ line-height: ${J.lineHeight};
197
+ text-transform: ${J.textTransform};
198
+ text-decoration: ${J.textDecoration};
199
+ }
200
+ `,An=Ve.css`
201
+ .ft-typography--caption {
222
202
  font-family: ${sr.fontFamily};
223
203
  font-size: ${sr.fontSize};
224
204
  font-weight: ${sr.fontWeight};
@@ -227,21 +207,41 @@
227
207
  text-transform: ${sr.textTransform};
228
208
  text-decoration: ${sr.textDecoration};
229
209
  }
230
- `,Wl=Be.css`
210
+ `,ql=Ve.css`
211
+ .ft-typography--breadcrumb {
212
+ font-family: ${or.fontFamily};
213
+ font-size: ${or.fontSize};
214
+ font-weight: ${or.fontWeight};
215
+ letter-spacing: ${or.letterSpacing};
216
+ line-height: ${or.lineHeight};
217
+ text-transform: ${or.textTransform};
218
+ text-decoration: ${or.textDecoration};
219
+ }
220
+ `,Kl=Ve.css`
221
+ .ft-typography--overline {
222
+ font-family: ${ar.fontFamily};
223
+ font-size: ${ar.fontSize};
224
+ font-weight: ${ar.fontWeight};
225
+ letter-spacing: ${ar.letterSpacing};
226
+ line-height: ${ar.lineHeight};
227
+ text-transform: ${ar.textTransform};
228
+ text-decoration: ${ar.textDecoration};
229
+ }
230
+ `,Wl=Ve.css`
231
231
  .ft-typography--button {
232
- font-family: ${qe.fontFamily};
233
- font-size: ${qe.fontSize};
234
- font-weight: ${qe.fontWeight};
235
- letter-spacing: ${qe.letterSpacing};
236
- line-height: ${qe.lineHeight};
237
- text-transform: ${qe.textTransform};
238
- text-decoration: ${qe.textDecoration};
239
- }
240
- `,Gl=Be.css`
232
+ font-family: ${We.fontFamily};
233
+ font-size: ${We.fontSize};
234
+ font-weight: ${We.fontWeight};
235
+ letter-spacing: ${We.letterSpacing};
236
+ line-height: ${We.lineHeight};
237
+ text-transform: ${We.textTransform};
238
+ text-decoration: ${We.textDecoration};
239
+ }
240
+ `,Gl=Ve.css`
241
241
  .ft-typography {
242
242
  vertical-align: inherit;
243
243
  }
244
- `;var Yl=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},q=class extends Xl.FtLitElement{constructor(){super(...arguments),this.variant=de.body1}render(){return this.element?Bs`
244
+ `;var Yl=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},K=class extends Xl.FtLitElement{constructor(){super(...arguments),this.variant=fe.body1}render(){return this.element?Bs`
245
245
  <${Fs(this.element)}
246
246
  part="text"
247
247
  class="ft-typography ft-typography--${this.variant}">
@@ -249,7 +249,7 @@
249
249
  </${Fs(this.element)}>
250
250
  `:Bs`
251
251
  <slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
252
- `}};q.styles=[Ul,Bl,Vl,Hl,zl,jl,Sn,ql,Kl,Wl,Gl];Yl([(0,Vs.property)()],q.prototype,"element",void 0);Yl([(0,Vs.property)()],q.prototype,"variant",void 0);var Zl=d(v());var Ql={"ft-typography":q};(0,Zl.customElements)(Ql);var Jl=d(R()),Ke=d(v()),De={size:Ke.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:Ke.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",Ke.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:Ke.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",Ke.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:Ke.FtCssVariableFactory.extend("--ft-icon-material-font-family","",Ke.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:Ke.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},ec=[Jl.css`
252
+ `}};K.styles=[Ul,Bl,Vl,Hl,zl,jl,An,ql,Kl,Wl,Gl];Yl([(0,Vs.property)()],K.prototype,"element",void 0);Yl([(0,Vs.property)()],K.prototype,"variant",void 0);var Zl=d(v());var Ql={"ft-typography":K};(0,Zl.customElements)(Ql);var Jl=d(R()),Ge=d(v()),Ne={size:Ge.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:Ge.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",Ge.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:Ge.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",Ge.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:Ge.FtCssVariableFactory.extend("--ft-icon-material-font-family","",Ge.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:Ge.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},ec=[Jl.css`
253
253
  :host, i.ft-icon {
254
254
  display: inline-flex;
255
255
  align-items: center;
@@ -258,14 +258,14 @@
258
258
  }
259
259
 
260
260
  :host {
261
- width: ${De.size};
262
- height: ${De.size};
261
+ width: ${Ne.size};
262
+ height: ${Ne.size};
263
263
  }
264
264
 
265
265
  i.ft-icon {
266
266
  width: 100%;
267
267
  height: 100%;
268
- font-size: ${De.size};
268
+ font-size: ${Ne.size};
269
269
  line-height: 1;
270
270
  font-weight: normal;
271
271
  text-transform: none;
@@ -276,33 +276,33 @@
276
276
  text-rendering: auto;
277
277
  -webkit-font-smoothing: antialiased;
278
278
  -moz-osx-font-smoothing: grayscale;
279
- vertical-align: ${De.verticalAlign};
279
+ vertical-align: ${Ne.verticalAlign};
280
280
  }
281
281
 
282
282
  i.ft-icon.ft-icon--fluid-topics {
283
- font-family: ${De.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
283
+ font-family: ${Ne.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
284
284
 
285
285
  /* Ugly fix because font is broken */
286
- font-size: calc(0.75 * ${De.size});
287
- line-height: ${De.size};
286
+ font-size: calc(0.75 * ${Ne.size});
287
+ line-height: ${Ne.size};
288
288
  position: relative;
289
289
  top: -4%;
290
290
  justify-content: center;
291
291
  }
292
292
 
293
293
  .ft-icon--file-format {
294
- font-family: ${De.fileFormatFontFamily}, ft-mime, sans-serif;
294
+ font-family: ${Ne.fileFormatFontFamily}, ft-mime, sans-serif;
295
295
  }
296
296
 
297
297
  .ft-icon--material {
298
- font-family: ${De.materialFontFamily}, "Material Icons", sans-serif;
298
+ font-family: ${Ne.materialFontFamily}, "Material Icons", sans-serif;
299
299
  }
300
- `,Ke.noTextSelect];var Ct;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(Ct||(Ct={}));var ni=d(R()),wt=d(U()),ic=d(v()),nc=d(rc());var En;(function(t){t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.BOOKS="&#xe806;",t.MENU="&#xe807;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.HOME="&#xe80b;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.EXPORT="&#xe80f;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.USER="&#xe813;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.OFFLINE="&#xe816;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.STAR_PLAIN="&#xe900;",t.TOPICS="&#xe901;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN="&#xe90f;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_THEME="&#xe911;",t.ADMIN_USERS="&#xe912;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.INFO="&#xe919;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.THIN_ARROW="&#xe921;",t.SIGN_IN="&#xe922;",t.LOGOUT="&#xe923;",t.TRANSLATE="&#xe924;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.ARTICLE="&#xe927;",t.COLUMNS="&#xe928;",t.ANALYTICS="&#xe929;",t.COLLECTIONS="&#xe92a;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.COPY_TO_CLIPBOARD="&#xe930;",t.SHARED_PBK="&#xe931;",t.ATTACHMENTS="&#xe932;",t.STRIPE_ARROW_LEFT="&#xe933;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.FILTERS="&#xe935;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.SAVE="&#xe93a;",t.LOCKER="&#xe93b;",t.ADMIN_INTEGRATION="&#xe93c;",t.SYNC="&#xe93d;",t.TAG="&#xe93e;",t.BOOK_PLAIN="&#xe93f;",t.UPLOAD="&#xe940;",t.ONLINE="&#xe941;",t.TAG_PLAIN="&#xe942;",t.ACCOUNT_SETTINGS="&#xe943;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.SHORTCUT_MENU="&#xe946;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.ADMIN_PORTAL="&#xe94b;",t.STAR="&#xe94c;",t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.FEEDBACK_PLAIN="&#xe951;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_COLLECTIONS="&#xe955;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.RESET="&#xe958;",t.MY_LIBRARY="&#xe959;",t.UNSTRUCTURED_DOC="&#xe95a;",t.CONTEXTUAL="&#xe95b;",t.THIN_ARROW_UP="&#xe95c;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.DESKTOP="&#xe95e;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.CHART_BAR_STACKED="&#xe96e;",t.CHART_BAR_GROUPED="&#xe96f;",t.EYE_SLASH="&#xe970;",t.X_MARK="&#xe971;",t.EXPAND_WIDE="&#xe972;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.EXTLINK_LIGHT="&#xe978;",t.CLONE="&#xe979;",t.CLONE_LINK_SIMPLE="&#xe97a;",t.CHART_BAR_NORMALIZED="&#xe97b;",t.CONSUMER="&#xe97c;",t.OCTAGON_XMARK="&#xe97d;",t.HOURGLASS_HALF="&#xe97e;",t.CLOCK="&#xe97f;",t.CLOCK_THREE="&#xe97f;",t.CALENDAR_DAY="&#xe980;",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",t.WAND_MAGIC_SPARKLES="&#xe982;",t.PAPER_PLANE="&#xe983;",t.CIRCLE_STOP="&#xe984;",t.ARROW_ROTATE_RIGHT="&#xe985;",t.ARROWS_ROTATE="&#xe986;",t.ALIGN_RIGHT="&#xe987;",t.FORMAT_CLEAR="&#xe988;",t.ALIGN_CENTER="&#xe989;",t.ALIGN_LEFT="&#xe98a;",t.PALETTE="&#xe98b;",t.BOLD="&#xe98c;",t.ITALIC="&#xe98d;",t.UNDERLINE="&#xe98e;",t.STRIKETHROUGH="&#xe98f;",t.LINK_SIMPLE_SLASH="&#xe990;",t.LINK_SIMPLE="&#xe991;",t.ROUTE="&#xe992;",t.CIRCLE_USER_SLASH="&#xe993;",t.CIRCLE_USER_CHECK="&#xe994;",t.LIST_MAGNIFYING_GLASS="&#xe995;",t.MEDAL="&#xe996;",t.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",t.ARROW_TURN_DOWN_RIGHT="&#xe998;",t.FLASK="&#xe999;",t.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",t.HOURGLASS_END="&#xe99b;",t.CIRCLE_QUESTION="&#xe99c;",t.GRIP_LINES_SOLID="&#xe99d;",t.TRANSLATE_SPARKLE_SOLID="&#xe99e;",t.CODE="&#xe99f;",t.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="&#xe9a0;",t.PAPER_PLANE_SLASH="&#xe9a1;",t.COMPRESS="&#xe9a2;",t.EXPAND="&#xe9a3;",t.ARROW_ROTATE_LEFT="&#xe9a4;",t.MOBILE_SMALL="&#xe9a5;",t.SPARKLES="&#xe9a6;",t.HAND_SOLID="&#xe9a7;",t.CLOCK_SOLID="&#xe9a8;",t.CONTEXT_MENU_CURSOR="&#xe9a9;",t.LANGUAGE_SLASH="&#xe9aa;",t.MAGNIFYING_GLASS_FLOPPY_DISK="&#xe9ab;",t.CABINET_FILING_FLOPPY_DISK="&#xe9ac;",t.BOOKMARK_SLASH="&#xe9ad;",t.CIRCLE_PAUSE="&#xe9ae;",t.CIRCLE_PLAY="&#xe9af;",t.CIRCLE_STOP_PLAIN="&#xe9b0;",t.CIRCLE_ARROW_DOWN="&#xe9b1;",t.SHARE_NODES="&#xe9b2;",t.BELL="&#xe9b3;",t.BELL_SLASH="&#xe9b4;",t.FILE="&#xe9b5;",t.HAND="&#xe9b6;",t.SQUARE_INFO_SOLID="&#xe9b7;",t.FILE_CODE="&#xe9b8;",t.BOX_CODE="&#xe9b9;",t.TOPICS_SOLID="&#xe9ba;",t.PHOTO_FILM="&#xe9bb;",t.HYPHEN_SOLID="&#xe9bc;",t.CROSSHAIRS="&#xe9bd;",t.PERSON_CHALKBOARD="&#xe9be;",t.CIRCLE_ARROW_DOWN_SLASH="&#xe9bf;",t.BOOK_OPEN_COVER="&#xe9c0;",t.LIGHTBULB="&#xe9c1;",t.MESSAGE_BOT_AGENTIC_SOLID="&#xe9c2;",t.CHART_LINE_USER="&#xe9c3;",t.SERVER_CIRCLE_ARROW_DOWN="&#xe9c4;",t.EYE="&#xf06e;",t.SHARE="&#xe80f1;"})(En||(En={}));var m;(function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"})(m||(m={}));var Wg=new Map([...["abw"].map(t=>[t,m.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(t=>[t,m.AUDIO]),...["avi"].map(t=>[t,m.AVI]),...["chm","xhs"].map(t=>[t,m.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(t=>[t,m.CODE]),...["csv"].map(t=>[t,m.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,m.DITA]),...["epub"].map(t=>[t,m.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,m.EXCEL]),...["flac"].map(t=>[t,m.FLAC]),...["gif"].map(t=>[t,m.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,m.GZIP]),...["html","htm","xhtml"].map(t=>[t,m.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(t=>[t,m.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,m.JPEG]),...["json"].map(t=>[t,m.JSON]),...["m4a","m4p"].map(t=>[t,m.M4A]),...["mov","qt"].map(t=>[t,m.MOV]),...["mp3"].map(t=>[t,m.MP3]),...["mp4","m4v"].map(t=>[t,m.MP4]),...["ogg","oga"].map(t=>[t,m.OGG]),...["pdf","ps"].map(t=>[t,m.PDF]),...["png"].map(t=>[t,m.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,m.POWERPOINT]),...["rar"].map(t=>[t,m.RAR]),...["stp"].map(t=>[t,m.STP]),...["txt","rtf","md","mdown"].map(t=>[t,m.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(t=>[t,m.VIDEO]),...["wav"].map(t=>[t,m.WAV]),...["wma"].map(t=>[t,m.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,m.WORD]),...["xml","xsl","rdf"].map(t=>[t,m.XML]),...["yaml","yml","x-yaml"].map(t=>[t,m.YAML]),...["zip"].map(t=>[t,m.ZIP])]);var Gg={[m.ABW]:"#91ABC6",[m.AUDIO]:"#1795E3",[m.AVI]:"#E63324",[m.CHM]:"#71C3EB",[m.CODE]:"#71C3EB",[m.CSV]:"#1F7345",[m.DITA]:"#71C3EB",[m.EPUB]:"#85B926",[m.EXCEL]:"#1F7345",[m.FLAC]:"#1795E3",[m.GIF]:"#59B031",[m.GZIP]:"#F8AB36",[m.HTML]:"#71C3EB",[m.IMAGE]:"#59B031",[m.JPEG]:"#59B031",[m.JSON]:"#71C3EB",[m.M4A]:"#1795E3",[m.MOV]:"#E63324",[m.MP3]:"#1795E3",[m.MP4]:"#E63324",[m.OGG]:"#1795E3",[m.PDF]:"#E44948",[m.PNG]:"#59B031",[m.POWERPOINT]:"#B54A2B",[m.RAR]:"#F8AB36",[m.STP]:"#3764B1",[m.TEXT]:"#3162AB",[m.UNKNOWN]:"#999999",[m.VIDEO]:"#E63324",[m.WAV]:"#1795E3",[m.WMA]:"#1795E3",[m.WORD]:"#3162AB",[m.XML]:"#71C3EB",[m.YAML]:"#71C3EB",[m.ZIP]:"#F8AB36"};var si=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},pe=class extends ic.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=ni.nothing}render(){let e=this.variant&&Object.values(Ct).includes(this.variant)?this.variant:Ct.fluid_topics,r=e!==Ct.material||!!this.value;return ni.html`
300
+ `,Ge.noTextSelect];var Ot;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(Ot||(Ot={}));var ai=d(R()),Tt=d(B()),ic=d(v()),nc=d(rc());var _n;(function(t){t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.BOOKS="&#xe806;",t.MENU="&#xe807;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.HOME="&#xe80b;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.EXPORT="&#xe80f;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.USER="&#xe813;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.OFFLINE="&#xe816;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.STAR_PLAIN="&#xe900;",t.TOPICS="&#xe901;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN="&#xe90f;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_THEME="&#xe911;",t.ADMIN_USERS="&#xe912;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.INFO="&#xe919;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.THIN_ARROW="&#xe921;",t.SIGN_IN="&#xe922;",t.LOGOUT="&#xe923;",t.TRANSLATE="&#xe924;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.ARTICLE="&#xe927;",t.COLUMNS="&#xe928;",t.ANALYTICS="&#xe929;",t.COLLECTIONS="&#xe92a;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.COPY_TO_CLIPBOARD="&#xe930;",t.SHARED_PBK="&#xe931;",t.ATTACHMENTS="&#xe932;",t.STRIPE_ARROW_LEFT="&#xe933;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.FILTERS="&#xe935;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.SAVE="&#xe93a;",t.LOCKER="&#xe93b;",t.ADMIN_INTEGRATION="&#xe93c;",t.SYNC="&#xe93d;",t.TAG="&#xe93e;",t.BOOK_PLAIN="&#xe93f;",t.UPLOAD="&#xe940;",t.ONLINE="&#xe941;",t.TAG_PLAIN="&#xe942;",t.ACCOUNT_SETTINGS="&#xe943;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.SHORTCUT_MENU="&#xe946;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.ADMIN_PORTAL="&#xe94b;",t.STAR="&#xe94c;",t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.FEEDBACK_PLAIN="&#xe951;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_COLLECTIONS="&#xe955;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.RESET="&#xe958;",t.MY_LIBRARY="&#xe959;",t.UNSTRUCTURED_DOC="&#xe95a;",t.CONTEXTUAL="&#xe95b;",t.THIN_ARROW_UP="&#xe95c;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.DESKTOP="&#xe95e;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.CHART_BAR_STACKED="&#xe96e;",t.CHART_BAR_GROUPED="&#xe96f;",t.EYE_SLASH="&#xe970;",t.X_MARK="&#xe971;",t.EXPAND_WIDE="&#xe972;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.EXTLINK_LIGHT="&#xe978;",t.CLONE="&#xe979;",t.CLONE_LINK_SIMPLE="&#xe97a;",t.CHART_BAR_NORMALIZED="&#xe97b;",t.CONSUMER="&#xe97c;",t.OCTAGON_XMARK="&#xe97d;",t.HOURGLASS_HALF="&#xe97e;",t.CLOCK="&#xe97f;",t.CLOCK_THREE="&#xe97f;",t.CALENDAR_DAY="&#xe980;",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",t.WAND_MAGIC_SPARKLES="&#xe982;",t.PAPER_PLANE="&#xe983;",t.CIRCLE_STOP="&#xe984;",t.ARROW_ROTATE_RIGHT="&#xe985;",t.ARROWS_ROTATE="&#xe986;",t.ALIGN_RIGHT="&#xe987;",t.FORMAT_CLEAR="&#xe988;",t.ALIGN_CENTER="&#xe989;",t.ALIGN_LEFT="&#xe98a;",t.PALETTE="&#xe98b;",t.BOLD="&#xe98c;",t.ITALIC="&#xe98d;",t.UNDERLINE="&#xe98e;",t.STRIKETHROUGH="&#xe98f;",t.LINK_SIMPLE_SLASH="&#xe990;",t.LINK_SIMPLE="&#xe991;",t.ROUTE="&#xe992;",t.CIRCLE_USER_SLASH="&#xe993;",t.CIRCLE_USER_CHECK="&#xe994;",t.LIST_MAGNIFYING_GLASS="&#xe995;",t.MEDAL="&#xe996;",t.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",t.ARROW_TURN_DOWN_RIGHT="&#xe998;",t.FLASK="&#xe999;",t.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",t.HOURGLASS_END="&#xe99b;",t.CIRCLE_QUESTION="&#xe99c;",t.GRIP_LINES_SOLID="&#xe99d;",t.TRANSLATE_SPARKLE_SOLID="&#xe99e;",t.CODE="&#xe99f;",t.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="&#xe9a0;",t.PAPER_PLANE_SLASH="&#xe9a1;",t.COMPRESS="&#xe9a2;",t.EXPAND="&#xe9a3;",t.ARROW_ROTATE_LEFT="&#xe9a4;",t.MOBILE_SMALL="&#xe9a5;",t.SPARKLES="&#xe9a6;",t.HAND_SOLID="&#xe9a7;",t.CLOCK_SOLID="&#xe9a8;",t.CONTEXT_MENU_CURSOR="&#xe9a9;",t.LANGUAGE_SLASH="&#xe9aa;",t.MAGNIFYING_GLASS_FLOPPY_DISK="&#xe9ab;",t.CABINET_FILING_FLOPPY_DISK="&#xe9ac;",t.BOOKMARK_SLASH="&#xe9ad;",t.CIRCLE_PAUSE="&#xe9ae;",t.CIRCLE_PLAY="&#xe9af;",t.CIRCLE_STOP_PLAIN="&#xe9b0;",t.CIRCLE_ARROW_DOWN="&#xe9b1;",t.SHARE_NODES="&#xe9b2;",t.BELL="&#xe9b3;",t.BELL_SLASH="&#xe9b4;",t.FILE="&#xe9b5;",t.HAND="&#xe9b6;",t.SQUARE_INFO_SOLID="&#xe9b7;",t.FILE_CODE="&#xe9b8;",t.BOX_CODE="&#xe9b9;",t.TOPICS_SOLID="&#xe9ba;",t.PHOTO_FILM="&#xe9bb;",t.HYPHEN_SOLID="&#xe9bc;",t.CROSSHAIRS="&#xe9bd;",t.PERSON_CHALKBOARD="&#xe9be;",t.CIRCLE_ARROW_DOWN_SLASH="&#xe9bf;",t.BOOK_OPEN_COVER="&#xe9c0;",t.LIGHTBULB="&#xe9c1;",t.MESSAGE_BOT_AGENTIC_SOLID="&#xe9c2;",t.CHART_LINE_USER="&#xe9c3;",t.SERVER_CIRCLE_ARROW_DOWN="&#xe9c4;",t.EYE="&#xf06e;",t.SHARE="&#xe80f1;"})(_n||(_n={}));var m;(function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"})(m||(m={}));var Wg=new Map([...["abw"].map(t=>[t,m.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(t=>[t,m.AUDIO]),...["avi"].map(t=>[t,m.AVI]),...["chm","xhs"].map(t=>[t,m.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(t=>[t,m.CODE]),...["csv"].map(t=>[t,m.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,m.DITA]),...["epub"].map(t=>[t,m.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,m.EXCEL]),...["flac"].map(t=>[t,m.FLAC]),...["gif"].map(t=>[t,m.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,m.GZIP]),...["html","htm","xhtml"].map(t=>[t,m.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(t=>[t,m.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,m.JPEG]),...["json"].map(t=>[t,m.JSON]),...["m4a","m4p"].map(t=>[t,m.M4A]),...["mov","qt"].map(t=>[t,m.MOV]),...["mp3"].map(t=>[t,m.MP3]),...["mp4","m4v"].map(t=>[t,m.MP4]),...["ogg","oga"].map(t=>[t,m.OGG]),...["pdf","ps"].map(t=>[t,m.PDF]),...["png"].map(t=>[t,m.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,m.POWERPOINT]),...["rar"].map(t=>[t,m.RAR]),...["stp"].map(t=>[t,m.STP]),...["txt","rtf","md","mdown"].map(t=>[t,m.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(t=>[t,m.VIDEO]),...["wav"].map(t=>[t,m.WAV]),...["wma"].map(t=>[t,m.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,m.WORD]),...["xml","xsl","rdf"].map(t=>[t,m.XML]),...["yaml","yml","x-yaml"].map(t=>[t,m.YAML]),...["zip"].map(t=>[t,m.ZIP])]);var Gg={[m.ABW]:"#91ABC6",[m.AUDIO]:"#1795E3",[m.AVI]:"#E63324",[m.CHM]:"#71C3EB",[m.CODE]:"#71C3EB",[m.CSV]:"#1F7345",[m.DITA]:"#71C3EB",[m.EPUB]:"#85B926",[m.EXCEL]:"#1F7345",[m.FLAC]:"#1795E3",[m.GIF]:"#59B031",[m.GZIP]:"#F8AB36",[m.HTML]:"#71C3EB",[m.IMAGE]:"#59B031",[m.JPEG]:"#59B031",[m.JSON]:"#71C3EB",[m.M4A]:"#1795E3",[m.MOV]:"#E63324",[m.MP3]:"#1795E3",[m.MP4]:"#E63324",[m.OGG]:"#1795E3",[m.PDF]:"#E44948",[m.PNG]:"#59B031",[m.POWERPOINT]:"#B54A2B",[m.RAR]:"#F8AB36",[m.STP]:"#3764B1",[m.TEXT]:"#3162AB",[m.UNKNOWN]:"#999999",[m.VIDEO]:"#E63324",[m.WAV]:"#1795E3",[m.WMA]:"#1795E3",[m.WORD]:"#3162AB",[m.XML]:"#71C3EB",[m.YAML]:"#71C3EB",[m.ZIP]:"#F8AB36"};var li=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},he=class extends ic.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=ai.nothing}render(){let e=this.variant&&Object.values(Ot).includes(this.variant)?this.variant:Ot.fluid_topics,r=e!==Ot.material||!!this.value;return ai.html`
301
301
  <i class="ft-icon ft-icon--${e} ft-no-text-select" part="icon icon-${e}">
302
302
  ${(0,nc.unsafeHTML)(this.resolvedIcon)}
303
303
  <slot ?hidden=${r}></slot>
304
304
  </i>
305
- `}getTextContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&r!==void 0?r:""}update(e){super.update(e),["value","variant"].some(r=>e.has(r))&&this.resolveIcon()}resolveIcon(){var e,r;let i=this.value||this.getTextContent();switch(this.variant){case Ct.file_format:this.resolvedIcon=(e=m[i.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:i;break;case Ct.material:this.resolvedIcon=this.value||ni.nothing;break;default:this.resolvedIcon=(r=En[i.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:i;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};pe.elementDefinitions={};pe.styles=ec;si([(0,wt.property)()],pe.prototype,"variant",void 0);si([(0,wt.property)()],pe.prototype,"value",void 0);si([(0,wt.property)({reflect:!0,attribute:"aria-hidden"})],pe.prototype,"ariaHidden",void 0);si([(0,wt.state)()],pe.prototype,"resolvedIcon",void 0);si([(0,wt.query)("slot")],pe.prototype,"slottedContent",void 0);var oc=d(v());var sc={"ft-icon":pe};(0,oc.customElements)(sc);var vi=d(R()),T=d(v());var lt=d(v());var Kc=d(R()),ze=d(U()),He=d(v());var ac=d(R()),Ot=d(v()),oi={distance:Ot.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:Ot.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:Ot.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),borderRadiusS:Ot.FtCssVariableFactory.extend("--ft-tooltip-border-radius","",Ot.designSystemVariables.borderRadiusS),maxWidth:Ot.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},lc=ac.css`
305
+ `}getTextContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&r!==void 0?r:""}update(e){super.update(e),["value","variant"].some(r=>e.has(r))&&this.resolveIcon()}resolveIcon(){var e,r;let i=this.value||this.getTextContent();switch(this.variant){case Ot.file_format:this.resolvedIcon=(e=m[i.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:i;break;case Ot.material:this.resolvedIcon=this.value||ai.nothing;break;default:this.resolvedIcon=(r=_n[i.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:i;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};he.elementDefinitions={};he.styles=ec;li([(0,Tt.property)()],he.prototype,"variant",void 0);li([(0,Tt.property)()],he.prototype,"value",void 0);li([(0,Tt.property)({reflect:!0,attribute:"aria-hidden"})],he.prototype,"ariaHidden",void 0);li([(0,Tt.state)()],he.prototype,"resolvedIcon",void 0);li([(0,Tt.query)("slot")],he.prototype,"slottedContent",void 0);var oc=d(v());var sc={"ft-icon":he};(0,oc.customElements)(sc);var xi=d(R()),T=d(v());var ut=d(v());var Kc=d(R()),je=d(B()),ze=d(v());var ac=d(R()),Rt=d(v()),ci={distance:Rt.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:Rt.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:Rt.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),borderRadiusS:Rt.FtCssVariableFactory.extend("--ft-tooltip-border-radius","",Rt.designSystemVariables.borderRadiusS),maxWidth:Rt.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},lc=ac.css`
306
306
  .ft-tooltip--container {
307
307
  display: block;
308
308
  }
@@ -320,25 +320,25 @@
320
320
  box-sizing: border-box;
321
321
  overflow: hidden;
322
322
  width: max-content;
323
- max-width: ${oi.maxWidth};
323
+ max-width: ${ci.maxWidth};
324
324
  text-align: center;
325
- padding: ${oi.distance};
325
+ padding: ${ci.distance};
326
326
  }
327
327
 
328
328
  .ft-tooltip--content {
329
329
  padding: 4px 8px;
330
- border-radius: ${oi.borderRadiusS};
331
- background-color: ${oi.backgroundColor};
332
- color: ${oi.color};
330
+ border-radius: ${ci.borderRadiusS};
331
+ background-color: ${ci.backgroundColor};
332
+ color: ${ci.color};
333
333
  position: relative;
334
334
  word-break: break-word;
335
335
  }
336
- `;var uc=["top","right","bottom","left"],cc=["start","end"],zs=uc.reduce((t,e)=>t.concat(e,e+"-"+cc[0],e+"-"+cc[1]),[]),ai=Math.min,Tt=Math.max,li=Math.round;var ot=t=>({x:t,y:t}),wp={left:"right",right:"left",bottom:"top",top:"bottom"};function dc(t,e,r){return Tt(t,ai(e,r))}function An(t,e){return typeof t=="function"?t(e):t}function ci(t){return t.split("-")[0]}function Rt(t){return t.split("-")[1]}function js(t){return t==="x"?"y":"x"}function qs(t){return t==="y"?"height":"width"}function _n(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function Ks(t){return js(_n(t))}function pc(t,e,r){r===void 0&&(r=!1);let i=Rt(t),n=Ks(t),s=qs(n),o=n==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(o=Hs(o)),[o,Hs(o)]}function fc(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function Hs(t){let e=ci(t);return wp[e]+t.slice(e.length)}function Op(t){var e,r,i,n;return{top:(e=t.top)!=null?e:0,right:(r=t.right)!=null?r:0,bottom:(i=t.bottom)!=null?i:0,left:(n=t.left)!=null?n:0}}function hc(t){return typeof t!="number"?Op(t):{top:t,right:t,bottom:t,left:t}}function or(t){let{x:e,y:r,width:i,height:n}=t;return{width:i,height:n,top:r,left:e,right:e+i,bottom:r+n,x:e,y:r}}function mc(t,e,r){let{reference:i,floating:n}=t,s=_n(e),o=Ks(e),a=qs(o),l=ci(e),c=s==="y",u=i.x+i.width/2-n.width/2,p=i.y+i.height/2-n.height/2,f=i[a]/2-n[a]/2,y;switch(l){case"top":y={x:u,y:i.y-n.height};break;case"bottom":y={x:u,y:i.y+i.height};break;case"right":y={x:i.x+i.width,y:p};break;case"left":y={x:i.x-n.width,y:p};break;default:y={x:i.x,y:i.y}}let x=Rt(e);return x&&(y[o]+=f*(x==="end"?1:-1)*(r&&c?-1:1)),y}async function yc(t,e){var r;e===void 0&&(e={});let{x:i,y:n,platform:s,rects:o,elements:a,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:p="floating",altBoundary:f=!1,padding:y=0}=An(e,t),x=hc(y),b=a[f?p==="floating"?"reference":"floating":p],w=or(await s.getClippingRect({element:(r=await(s.isElement==null?void 0:s.isElement(b)))==null||r?b:b.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),N=p==="floating"?{x:i,y:n,width:o.floating.width,height:o.floating.height}:o.reference,S=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),E=await(s.isElement==null?void 0:s.isElement(S))&&await(s.getScale==null?void 0:s.getScale(S))||{x:1,y:1},I=or(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:N,offsetParent:S,strategy:l}):N);return{top:(w.top-I.top+x.top)/E.y,bottom:(I.bottom-w.bottom+x.bottom)/E.y,left:(w.left-I.left+x.left)/E.x,right:(I.right-w.right+x.right)/E.x}}var Tp=50,gc=async(t,e,r)=>{let{placement:i="bottom",strategy:n="absolute",middleware:s=[],platform:o}=r,a=o.detectOverflow?o:{...o,detectOverflow:yc},l=await(o.isRTL==null?void 0:o.isRTL(e)),c=await o.getElementRects({reference:t,floating:e,strategy:n}),{x:u,y:p}=mc(c,i,l),f=i,y=0,x={};for(let _=0;_<s.length;_++){let b=s[_];if(!b)continue;let{name:w,fn:N}=b,{x:S,y:E,data:I,reset:D}=await N({x:u,y:p,initialPlacement:i,placement:f,strategy:n,middlewareData:x,rects:c,platform:a,elements:{reference:t,floating:e}});u=S??u,p=E??p,x[w]={...x[w],...I},D&&y<Tp&&(y++,typeof D=="object"&&(D.placement&&(f=D.placement),D.rects&&(c=D.rects===!0?await o.getElementRects({reference:t,floating:e,strategy:n}):D.rects),{x:u,y:p}=mc(c,f,l)),_=-1)}return{x:u,y:p,placement:f,strategy:n,middlewareData:x}};function Rp(t,e,r){return(t?[...r.filter(n=>Rt(n)===t),...r.filter(n=>Rt(n)!==t)]:r.filter(n=>ci(n)===n)).filter(n=>t?Rt(n)===t||(e?fc(n)!==n:!1):!0)}var vc=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,i,n;let{rects:s,middlewareData:o,placement:a,platform:l,elements:c}=e,{crossAxis:u=!1,alignment:p,allowedPlacements:f=zs,autoAlignment:y=!0,...x}=An(t,e),_=p!==void 0||f===zs?Rp(p||null,y,f):f,b=((r=o.autoPlacement)==null?void 0:r.index)||0,w=_[b];if(w==null)return{};if(a!==w)return{reset:{placement:_[0]}};let N=await l.detectOverflow(e,x),S=pc(w,s,await(l.isRTL==null?void 0:l.isRTL(c.floating))),E=[N[ci(w)],N[S[0]],N[S[1]]],I=[...((i=o.autoPlacement)==null?void 0:i.overflows)||[],{placement:w,overflows:E}],D=_[b+1];if(D)return{data:{index:b+1,overflows:I},reset:{placement:D}};let te=I.map($e=>{let Fr=Rt($e.placement);return[$e.placement,Fr&&u?$e.overflows.slice(0,2).reduce((rd,id)=>rd+id,0):$e.overflows[0],$e.overflows]}).sort(($e,Fr)=>$e[1]-Fr[1]),Ai=((n=te.filter($e=>$e[2].slice(0,Rt($e[0])?2:3).every(Fr=>Fr<=0))[0])==null?void 0:n[0])||te[0][0];return Ai!==a?{data:{index:b+1,overflows:I},reset:{placement:Ai}}:{}}}};var bc=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:i,placement:n,platform:s}=e,{mainAxis:o=!0,crossAxis:a=!1,limiter:l={fn:N=>{let{x:S,y:E}=N;return{x:S,y:E}}},...c}=An(t,e),u={x:r,y:i},p=await s.detectOverflow(e,c),f=_n(n),y=js(f),x=u[y],_=u[f],b=(N,S)=>dc(S+p[N==="y"?"top":"left"],S,S-p[N==="y"?"bottom":"right"]);o&&(x=b(y,x)),a&&(_=b(f,_));let w=l.fn({...e,[y]:x,[f]:_});return{...w,data:{x:w.x-r,y:w.y-i,enabled:{[y]:o,[f]:a}}}}}};function wn(){return typeof window<"u"}function lr(t){return Sc(t)?(t.nodeName||"").toLowerCase():"#document"}function _e(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function yt(t){var e;return(e=(Sc(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Sc(t){return wn()?t instanceof Node||t instanceof _e(t).Node:!1}function We(t){return wn()?t instanceof Element||t instanceof _e(t).Element:!1}function gt(t){return wn()?t instanceof HTMLElement||t instanceof _e(t).HTMLElement:!1}function xc(t){return!wn()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof _e(t).ShadowRoot}function ui(t){let{overflow:e,overflowX:r,overflowY:i,display:n}=Ge(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&n!=="inline"&&n!=="contents"}function Ec(t){return/^(table|td|th)$/.test(lr(t))}function di(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var Lp=/transform|translate|scale|rotate|perspective|filter/,kp=/paint|layout|strict|content/,ar=t=>!!t&&t!=="none",Ws;function Rr(t){let e=We(t)?Ge(t):t;return ar(e.transform)||ar(e.translate)||ar(e.scale)||ar(e.rotate)||ar(e.perspective)||!On()&&(ar(e.backdropFilter)||ar(e.filter))||Lp.test(e.willChange||"")||kp.test(e.contain||"")}function Ac(t){let e=Lt(t);for(;gt(e)&&!Lr(e);){if(Rr(e))return e;if(di(e))return null;e=Lt(e)}return null}function On(){return Ws==null&&(Ws=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Ws}function Lr(t){return/^(html|body|#document)$/.test(lr(t))}function Ge(t){return _e(t).getComputedStyle(t)}function pi(t){return We(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Lt(t){if(lr(t)==="html")return t;let e=t.assignedSlot||t.parentNode||xc(t)&&t.host||yt(t);return xc(e)?e.host:e}function _c(t){let e=Lt(t);return Lr(e)?(t.ownerDocument||t).body:gt(e)&&ui(e)?e:_c(e)}function Cn(t,e,r){var i;e===void 0&&(e=[]),r===void 0&&(r=!0);let n=_c(t),s=n===((i=t.ownerDocument)==null?void 0:i.body),o=_e(n);if(s){let a=Tn(o);return e.concat(o,o.visualViewport||[],ui(n)?n:[],a&&r?Cn(a):[])}else return e.concat(n,Cn(n,[],r))}function Tn(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Oc(t){let e=Ge(t),r=parseFloat(e.width)||0,i=parseFloat(e.height)||0,n=gt(t),s=n?t.offsetWidth:r,o=n?t.offsetHeight:i,a=li(r)!==s||li(i)!==o;return a&&(r=s,i=o),{width:r,height:i,$:a}}function Tc(t){return We(t)?t:t.contextElement}function kr(t){let e=Tc(t);if(!gt(e))return ot(1);let r=e.getBoundingClientRect(),{width:i,height:n,$:s}=Oc(e),o=(s?li(r.width):r.width)/i,a=(s?li(r.height):r.height)/n;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}var Dp=ot(0);function Rc(t){let e=_e(t);return!On()||!e.visualViewport?Dp:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Np(t,e,r){return e===void 0&&(e=!1),!!r&&e&&r===_e(t)}function fi(t,e,r,i){e===void 0&&(e=!1),r===void 0&&(r=!1);let n=t.getBoundingClientRect(),s=Tc(t),o=ot(1);e&&(i?We(i)&&(o=kr(i)):o=kr(t));let a=Np(s,r,i)?Rc(s):ot(0),l=(n.left+a.x)/o.x,c=(n.top+a.y)/o.y,u=n.width/o.x,p=n.height/o.y;if(s&&i){let f=_e(s),y=We(i)?_e(i):i,x=f,_=Tn(x);for(;_&&y!==x;){let b=kr(_),w=_.getBoundingClientRect(),N=Ge(_),S=w.left+(_.clientLeft+parseFloat(N.paddingLeft))*b.x,E=w.top+(_.clientTop+parseFloat(N.paddingTop))*b.y;l*=b.x,c*=b.y,u*=b.x,p*=b.y,l+=S,c+=E,x=_e(_),_=Tn(x)}}return or({width:u,height:p,x:l,y:c})}function Rn(t,e){let r=pi(t).scrollLeft;return e?e.left+r:fi(yt(t)).left+r}function Lc(t,e){let r=t.getBoundingClientRect(),i=r.left+e.scrollLeft-Rn(t,r),n=r.top+e.scrollTop;return{x:i,y:n}}function Pp(t){let{elements:e,rect:r,offsetParent:i,strategy:n}=t,s=n==="fixed",o=yt(i),a=e?di(e.floating):!1;if(i===o||a&&s)return r;let l={scrollLeft:0,scrollTop:0},c=ot(1),u=ot(0),p=gt(i);if((p||!s)&&((lr(i)!=="body"||ui(o))&&(l=pi(i)),p)){let y=fi(i);c=kr(i),u.x=y.x+i.clientLeft,u.y=y.y+i.clientTop}let f=o&&!p&&!s?Lc(o,l):ot(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+u.x+f.x,y:r.y*c.y-l.scrollTop*c.y+u.y+f.y}}function Ip(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function Mp(t){let e=pi(t),r=t.ownerDocument.body,i=Tt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),n=Tt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),s=-e.scrollLeft+Rn(t),o=-e.scrollTop;return Ge(r).direction==="rtl"&&(s+=Tt(t.clientWidth,r.clientWidth)-i),{width:i,height:n,x:s,y:o}}var $p=25;function Fp(t,e,r){r===void 0&&(r="viewport");let i=r==="layoutViewport",n=_e(t),s=yt(t),o=n.visualViewport,a=s.clientWidth,l=s.clientHeight,c=0,u=0;if(o){let f=!On()||e==="fixed";i?f||(c=-o.offsetLeft,u=-o.offsetTop):(a=o.width,l=o.height,f&&(c=o.offsetLeft,u=o.offsetTop))}if(Rn(s)<=0){let f=s.ownerDocument,y=f.body,x=getComputedStyle(y),_=f.compatMode==="CSS1Compat"&&parseFloat(x.marginLeft)+parseFloat(x.marginRight)||0,b=Math.abs(s.clientWidth-y.clientWidth-_),w=getComputedStyle(s).scrollbarGutter==="stable both-edges"?b/2:b;w<=$p&&(a-=w)}return{width:a,height:l,x:c,y:u}}function Up(t,e){let r=fi(t,!0,e==="fixed"),i=r.top+t.clientTop,n=r.left+t.clientLeft,s=kr(t),o=t.clientWidth*s.x,a=t.clientHeight*s.y,l=n*s.x,c=i*s.y;return{width:o,height:a,x:l,y:c}}function Cc(t,e,r){let i;if(e==="viewport"||e==="layoutViewport")i=Fp(t,r,e);else if(e==="document")i=Mp(yt(t));else if(We(e))i=Up(e,r);else{let n=Rc(t);i={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return or(i)}function Bp(t,e){let r=e.get(t);if(r)return r;let i=Cn(t,[],!1).filter(a=>We(a)&&lr(a)!=="body"),n=null,s=Ge(t).position==="fixed",o=s?Lt(t):t;for(;We(o)&&!Lr(o);){let a=Ge(o),l=Rr(o),c=n?n.position:s?"fixed":"";!l&&(c==="fixed"||c==="absolute"&&a.position==="static")?i=i.filter(p=>p!==o):n=a,o=Lt(o)}return e.set(t,i),i}function Vp(t){let{element:e,boundary:r,rootBoundary:i,strategy:n}=t,o=[...r==="clippingAncestors"?di(e)?[]:Bp(e,this._c):[].concat(r),i],a=Cc(e,o[0],n),l=a.top,c=a.right,u=a.bottom,p=a.left;for(let f=1;f<o.length;f++){let y=Cc(e,o[f],n);l=Tt(y.top,l),c=ai(y.right,c),u=ai(y.bottom,u),p=Tt(y.left,p)}return{width:c-p,height:u-l,x:p,y:l}}function Hp(t){let{width:e,height:r}=Oc(t);return{width:e,height:r}}function zp(t,e,r){let i=gt(e),n=yt(e),s=r==="fixed",o=fi(t,!0,s,e),a={scrollLeft:0,scrollTop:0},l=ot(0);if((i||!s)&&((lr(e)!=="body"||ui(n))&&(a=pi(e)),i)){let f=fi(e,!0,s,e);l.x=f.x+e.clientLeft,l.y=f.y+e.clientTop}!i&&n&&(l.x=Rn(n));let c=n&&!i&&!s?Lc(n,a):ot(0),u=o.left+a.scrollLeft-l.x-c.x,p=o.top+a.scrollTop-l.y-c.y;return{x:u,y:p,width:o.width,height:o.height}}function Gs(t){return Ge(t).position==="static"}function wc(t,e){if(!gt(t)||Ge(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return yt(t)===r&&(r=r.ownerDocument.body),r}function kc(t,e){let r=_e(t);if(di(t))return r;if(!gt(t)){let n=Lt(t);for(;n&&!Lr(n);){if(We(n)&&!Gs(n))return n;n=Lt(n)}return r}let i=wc(t,e);for(;i&&Ec(i)&&Gs(i);)i=wc(i,e);return i&&Lr(i)&&Gs(i)&&!Rr(i)?r:i||Ac(t)||r}var jp=async function(t){let e=this.getOffsetParent||kc,r=this.getDimensions,i=await r(t.floating);return{reference:zp(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function qp(t){return Ge(t).direction==="rtl"}var Ln={convertOffsetParentRelativeRectToViewportRelativeRect:Pp,getDocumentElement:yt,getClippingRect:Vp,getOffsetParent:kc,getElementRects:jp,getClientRects:Ip,getDimensions:Hp,getScale:kr,isElement:We,isRTL:qp};var Dc=vc,Nc=bc;var Pc=(t,e,r)=>{let i=new Map,n=r??{},s={...Ln,...n.platform,_c:i};return gc(t,e,{...n,platform:s})};function Ic(t){return Kp(t)}function Ys(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Kp(t){for(let e=t;e;e=Ys(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Ys(t);e;e=Ys(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||Rr(r)||e.tagName==="BODY"))return e}return null}async function Mc(t,e,r){let i;return typeof r=="object"?i=r:i={placement:r},Pc(t,e,{strategy:i.strategy,platform:{...Ln,getOffsetParent:n=>Ln.getOffsetParent(n,Ic)},middleware:[Nc({crossAxis:!0}),Dc({allowedPlacements:[i.placement]})]})}var Nr=d(v());var $c=d(U());var Xs=class{fromLocalizableLabel(e){return e.type=="PLAIN_TEXT"?{message:e.text}:{key:e.key,custom:e.type=="LOCALIZED_CUSTOM",context:e.context,message:e.key}}fromAttribute(e){if(e!=null)try{return JSON.parse(e)}catch{if(this.isI18nKey(e)){let[r,i]=e.split(".");return{context:r,key:i,custom:r!=="officialContext",message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},Dr=new Xs;var Wp=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},mi=Symbol("i18nAttributes"),Fc=Symbol("i18nListAttributes"),Uc=Symbol("i18nProperties"),kn=Symbol("i18nContexts"),hi=Symbol("i18nUnsubs"),at=(0,Nr.applyMixinOnce)(Symbol("withI18n"),function(t){var e,r;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[r]=new Map}getI18nService(s){return s??this.useCustomMessageContexts?pn:Cr}i18n(s){let{context:o,key:a,message:l}=s,{custom:c,args:u,argsProvider:p}=s;if(o&&a){this.hasI18nContext(o)||this.addI18nContext(o,void 0,c);let f=u??(p?p(this):[]);return this.getI18nService(c).resolveMessage(o,a,...f)}return l}async awaitI18n(s){let{context:o,custom:a}=s;return o&&await this.getI18nService(a).prepareContext(o),this.i18n(s)}customI18n(s,o){if(Dr.isI18nKey(s)){let[a,l]=s.split(".");return this.i18n({custom:!0,context:a,key:l,...o})||s}return s}firstUpdated(s){super.firstUpdated(s),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(s){super.update(s),this.updateI18nAttributes((o,a,l)=>s.has(a)||typeof o.argsProvider=="function"),this.updateI18nProperties(o=>typeof o.argsProvider=="function")}onI18nUpdate(s){this.updateI18nAttributes((o,a,l)=>{var c;return((c=l?.context)===null||c===void 0?void 0:c.toLowerCase())===s}),this.updateI18nProperties(o=>o.context.toLowerCase()===s),this.requestUpdate()}updateI18nAttributes(s){var o,a;let l=this,c=(u,p,f)=>f?.context&&f.key&&s(u,p,f)?{...f,message:this.i18n({context:f.context,key:f.key,custom:f.custom,...u})}:f;(o=this[mi])===null||o===void 0||o.forEach((u,p)=>l[p]=c(u,p,l[p])),(a=this[Fc])===null||a===void 0||a.forEach((u,p)=>{var f;return l[p]=(f=l[p])===null||f===void 0?void 0:f.map(y=>c(u,p,y))})}updateI18nProperties(s){var o;(o=this[Uc])===null||o===void 0||o.forEach((a,l)=>{s(a,l)&&(this[l]=this.i18n(a))})}addI18nMessages(s,o,a){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(s,o,a)}addI18nContext(s,o,a){let l=(typeof s=="string"?s:s.name).toLowerCase();a=typeof s=="string"?a:s.custom,this[kn].set(l,{isCustomContext:a}),this[hi].has(l)||this[hi].set(l,this.getI18nService(a).subscribe(l,()=>this.onI18nUpdate(l))),this.getI18nService(a).prepareContext(l,o)}hasI18nContext(s){return this[kn].has(s.toLowerCase())}connectedCallback(){super.connectedCallback(),this[kn].forEach((s,o)=>this.addI18nContext(o,void 0,s.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[hi].forEach(s=>s()),this[hi].clear()}}return e=kn,r=hi,Wp([(0,$c.property)({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}),Dn=class extends at(Nr.FtLitElement){},Nn=class extends at(Nr.FtLitElementRedux){};var Bc=d(v());var Qs=class{fromAttribute(e){if(!e)return[];try{let r=JSON.parse(e);return Array.isArray(r)?r.map(i=>typeof i=="string"?Dr.fromAttribute(i):i):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},Gp=new Qs;var Vc=(t,e)=>(r,i)=>{var n;r.constructor.createProperty(i,{type:Object,hasChanged:Bc.hasChanged,converter:Dr,...e}),r[mi]=(n=r[mi])!==null&&n!==void 0?n:new Map,r[mi].set(i,t??{})};var kt=class t{static build(e){return new t(e)}static buildCustom(e){return new t(e,!0)}static fromGwt(e){return new t(e)}get service(){return this.custom?pn:Cr}constructor(e,r=!1){this.name=e,this.custom=r,this.properties=new Proxy({},{get:(i,n)=>{let s=n;return o=>({context:this.name,key:s,custom:this.custom,args:typeof o=="function"?void 0:o,argsProvider:typeof o=="function"?o:void 0})}}),this.messages=new Proxy({},{get:(i,n)=>(...s)=>this.service.resolveMessage(this.name,n,...s)}),this.rawMessages=new Proxy({},{get:(i,n)=>this.service.resolveRawMessage(this.name,n)}),this.keys=new Proxy({},{get:(i,n)=>()=>n}),this.attributes=new Proxy({},{get:(i,n)=>()=>({context:this.name,key:n,message:this.service.resolveRawMessage(this.name,n)})})}};var Hc=d(R());var zc=Hc.css`
337
- `;var Pn=d(R()),Ir=d(U()),In=d(v());var Pr=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Ve=class extends Nn{constructor(){super(),this.editorMode=!1,this.editorMessage="Select a context and a label key.",this.addStore(A)}render(){return!this.key||!this.context?this.editorMode?this.editorMessage:Pn.nothing:Pn.html`
336
+ `;var uc=["top","right","bottom","left"],cc=["start","end"],zs=uc.reduce((t,e)=>t.concat(e,e+"-"+cc[0],e+"-"+cc[1]),[]),ui=Math.min,kt=Math.max,di=Math.round;var lt=t=>({x:t,y:t}),wp={left:"right",right:"left",bottom:"top",top:"bottom"};function dc(t,e,r){return kt(t,ui(e,r))}function Cn(t,e){return typeof t=="function"?t(e):t}function pi(t){return t.split("-")[0]}function Lt(t){return t.split("-")[1]}function js(t){return t==="x"?"y":"x"}function qs(t){return t==="y"?"height":"width"}function wn(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function Ks(t){return js(wn(t))}function pc(t,e,r){r===void 0&&(r=!1);let i=Lt(t),n=Ks(t),s=qs(n),o=n==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(o=Hs(o)),[o,Hs(o)]}function fc(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function Hs(t){let e=pi(t);return wp[e]+t.slice(e.length)}function Op(t){var e,r,i,n;return{top:(e=t.top)!=null?e:0,right:(r=t.right)!=null?r:0,bottom:(i=t.bottom)!=null?i:0,left:(n=t.left)!=null?n:0}}function hc(t){return typeof t!="number"?Op(t):{top:t,right:t,bottom:t,left:t}}function lr(t){let{x:e,y:r,width:i,height:n}=t;return{width:i,height:n,top:r,left:e,right:e+i,bottom:r+n,x:e,y:r}}function mc(t,e,r){let{reference:i,floating:n}=t,s=wn(e),o=Ks(e),a=qs(o),l=pi(e),c=s==="y",u=i.x+i.width/2-n.width/2,p=i.y+i.height/2-n.height/2,f=i[a]/2-n[a]/2,y;switch(l){case"top":y={x:u,y:i.y-n.height};break;case"bottom":y={x:u,y:i.y+i.height};break;case"right":y={x:i.x+i.width,y:p};break;case"left":y={x:i.x-n.width,y:p};break;default:y={x:i.x,y:i.y}}let x=Lt(e);return x&&(y[o]+=f*(x==="end"?1:-1)*(r&&c?-1:1)),y}async function yc(t,e){var r;e===void 0&&(e={});let{x:i,y:n,platform:s,rects:o,elements:a,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:p="floating",altBoundary:f=!1,padding:y=0}=Cn(e,t),x=hc(y),b=a[f?p==="floating"?"reference":"floating":p],O=lr(await s.getClippingRect({element:(r=await(s.isElement==null?void 0:s.isElement(b)))==null||r?b:b.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),N=p==="floating"?{x:i,y:n,width:o.floating.width,height:o.floating.height}:o.reference,S=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),E=await(s.isElement==null?void 0:s.isElement(S))&&await(s.getScale==null?void 0:s.getScale(S))||{x:1,y:1},M=lr(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:N,offsetParent:S,strategy:l}):N);return{top:(O.top-M.top+x.top)/E.y,bottom:(M.bottom-O.bottom+x.bottom)/E.y,left:(O.left-M.left+x.left)/E.x,right:(M.right-O.right+x.right)/E.x}}var Tp=50,gc=async(t,e,r)=>{let{placement:i="bottom",strategy:n="absolute",middleware:s=[],platform:o}=r,a=o.detectOverflow?o:{...o,detectOverflow:yc},l=await(o.isRTL==null?void 0:o.isRTL(e)),c=await o.getElementRects({reference:t,floating:e,strategy:n}),{x:u,y:p}=mc(c,i,l),f=i,y=0,x={};for(let _=0;_<s.length;_++){let b=s[_];if(!b)continue;let{name:O,fn:N}=b,{x:S,y:E,data:M,reset:D}=await N({x:u,y:p,initialPlacement:i,placement:f,strategy:n,middlewareData:x,rects:c,platform:a,elements:{reference:t,floating:e}});u=S??u,p=E??p,x[O]={...x[O],...M},D&&y<Tp&&(y++,typeof D=="object"&&(D.placement&&(f=D.placement),D.rects&&(c=D.rects===!0?await o.getElementRects({reference:t,floating:e,strategy:n}):D.rects),{x:u,y:p}=mc(c,f,l)),_=-1)}return{x:u,y:p,placement:f,strategy:n,middlewareData:x}};function Rp(t,e,r){return(t?[...r.filter(n=>Lt(n)===t),...r.filter(n=>Lt(n)!==t)]:r.filter(n=>pi(n)===n)).filter(n=>t?Lt(n)===t||(e?fc(n)!==n:!1):!0)}var vc=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,i,n;let{rects:s,middlewareData:o,placement:a,platform:l,elements:c}=e,{crossAxis:u=!1,alignment:p,allowedPlacements:f=zs,autoAlignment:y=!0,...x}=Cn(t,e),_=p!==void 0||f===zs?Rp(p||null,y,f):f,b=((r=o.autoPlacement)==null?void 0:r.index)||0,O=_[b];if(O==null)return{};if(a!==O)return{reset:{placement:_[0]}};let N=await l.detectOverflow(e,x),S=pc(O,s,await(l.isRTL==null?void 0:l.isRTL(c.floating))),E=[N[pi(O)],N[S[0]],N[S[1]]],M=[...((i=o.autoPlacement)==null?void 0:i.overflows)||[],{placement:O,overflows:E}],D=_[b+1];if(D)return{data:{index:b+1,overflows:M},reset:{placement:D}};let te=M.map(Fe=>{let Vr=Lt(Fe.placement);return[Fe.placement,Vr&&u?Fe.overflows.slice(0,2).reduce((rd,id)=>rd+id,0):Fe.overflows[0],Fe.overflows]}).sort((Fe,Vr)=>Fe[1]-Vr[1]),Ci=((n=te.filter(Fe=>Fe[2].slice(0,Lt(Fe[0])?2:3).every(Vr=>Vr<=0))[0])==null?void 0:n[0])||te[0][0];return Ci!==a?{data:{index:b+1,overflows:M},reset:{placement:Ci}}:{}}}};var bc=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:i,placement:n,platform:s}=e,{mainAxis:o=!0,crossAxis:a=!1,limiter:l={fn:N=>{let{x:S,y:E}=N;return{x:S,y:E}}},...c}=Cn(t,e),u={x:r,y:i},p=await s.detectOverflow(e,c),f=wn(n),y=js(f),x=u[y],_=u[f],b=(N,S)=>dc(S+p[N==="y"?"top":"left"],S,S-p[N==="y"?"bottom":"right"]);o&&(x=b(y,x)),a&&(_=b(f,_));let O=l.fn({...e,[y]:x,[f]:_});return{...O,data:{x:O.x-r,y:O.y-i,enabled:{[y]:o,[f]:a}}}}}};function Tn(){return typeof window<"u"}function ur(t){return Sc(t)?(t.nodeName||"").toLowerCase():"#document"}function _e(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function vt(t){var e;return(e=(Sc(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Sc(t){return Tn()?t instanceof Node||t instanceof _e(t).Node:!1}function Ye(t){return Tn()?t instanceof Element||t instanceof _e(t).Element:!1}function bt(t){return Tn()?t instanceof HTMLElement||t instanceof _e(t).HTMLElement:!1}function xc(t){return!Tn()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof _e(t).ShadowRoot}function fi(t){let{overflow:e,overflowX:r,overflowY:i,display:n}=Xe(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&n!=="inline"&&n!=="contents"}function Ec(t){return/^(table|td|th)$/.test(ur(t))}function hi(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var kp=/transform|translate|scale|rotate|perspective|filter/,Lp=/paint|layout|strict|content/,cr=t=>!!t&&t!=="none",Ws;function Lr(t){let e=Ye(t)?Xe(t):t;return cr(e.transform)||cr(e.translate)||cr(e.scale)||cr(e.rotate)||cr(e.perspective)||!Rn()&&(cr(e.backdropFilter)||cr(e.filter))||kp.test(e.willChange||"")||Lp.test(e.contain||"")}function Ac(t){let e=Dt(t);for(;bt(e)&&!Dr(e);){if(Lr(e))return e;if(hi(e))return null;e=Dt(e)}return null}function Rn(){return Ws==null&&(Ws=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Ws}function Dr(t){return/^(html|body|#document)$/.test(ur(t))}function Xe(t){return _e(t).getComputedStyle(t)}function mi(t){return Ye(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Dt(t){if(ur(t)==="html")return t;let e=t.assignedSlot||t.parentNode||xc(t)&&t.host||vt(t);return xc(e)?e.host:e}function _c(t){let e=Dt(t);return Dr(e)?(t.ownerDocument||t).body:bt(e)&&fi(e)?e:_c(e)}function On(t,e,r){var i;e===void 0&&(e=[]),r===void 0&&(r=!0);let n=_c(t),s=n===((i=t.ownerDocument)==null?void 0:i.body),o=_e(n);if(s){let a=kn(o);return e.concat(o,o.visualViewport||[],fi(n)?n:[],a&&r?On(a):[])}else return e.concat(n,On(n,[],r))}function kn(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Oc(t){let e=Xe(t),r=parseFloat(e.width)||0,i=parseFloat(e.height)||0,n=bt(t),s=n?t.offsetWidth:r,o=n?t.offsetHeight:i,a=di(r)!==s||di(i)!==o;return a&&(r=s,i=o),{width:r,height:i,$:a}}function Tc(t){return Ye(t)?t:t.contextElement}function Nr(t){let e=Tc(t);if(!bt(e))return lt(1);let r=e.getBoundingClientRect(),{width:i,height:n,$:s}=Oc(e),o=(s?di(r.width):r.width)/i,a=(s?di(r.height):r.height)/n;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}var Dp=lt(0);function Rc(t){let e=_e(t);return!Rn()||!e.visualViewport?Dp:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Np(t,e,r){return e===void 0&&(e=!1),!!r&&e&&r===_e(t)}function yi(t,e,r,i){e===void 0&&(e=!1),r===void 0&&(r=!1);let n=t.getBoundingClientRect(),s=Tc(t),o=lt(1);e&&(i?Ye(i)&&(o=Nr(i)):o=Nr(t));let a=Np(s,r,i)?Rc(s):lt(0),l=(n.left+a.x)/o.x,c=(n.top+a.y)/o.y,u=n.width/o.x,p=n.height/o.y;if(s&&i){let f=_e(s),y=Ye(i)?_e(i):i,x=f,_=kn(x);for(;_&&y!==x;){let b=Nr(_),O=_.getBoundingClientRect(),N=Xe(_),S=O.left+(_.clientLeft+parseFloat(N.paddingLeft))*b.x,E=O.top+(_.clientTop+parseFloat(N.paddingTop))*b.y;l*=b.x,c*=b.y,u*=b.x,p*=b.y,l+=S,c+=E,x=_e(_),_=kn(x)}}return lr({width:u,height:p,x:l,y:c})}function Ln(t,e){let r=mi(t).scrollLeft;return e?e.left+r:yi(vt(t)).left+r}function kc(t,e){let r=t.getBoundingClientRect(),i=r.left+e.scrollLeft-Ln(t,r),n=r.top+e.scrollTop;return{x:i,y:n}}function Pp(t){let{elements:e,rect:r,offsetParent:i,strategy:n}=t,s=n==="fixed",o=vt(i),a=e?hi(e.floating):!1;if(i===o||a&&s)return r;let l={scrollLeft:0,scrollTop:0},c=lt(1),u=lt(0),p=bt(i);if((p||!s)&&((ur(i)!=="body"||fi(o))&&(l=mi(i)),p)){let y=yi(i);c=Nr(i),u.x=y.x+i.clientLeft,u.y=y.y+i.clientTop}let f=o&&!p&&!s?kc(o,l):lt(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+u.x+f.x,y:r.y*c.y-l.scrollTop*c.y+u.y+f.y}}function Ip(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function Mp(t){let e=mi(t),r=t.ownerDocument.body,i=kt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),n=kt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),s=-e.scrollLeft+Ln(t),o=-e.scrollTop;return Xe(r).direction==="rtl"&&(s+=kt(t.clientWidth,r.clientWidth)-i),{width:i,height:n,x:s,y:o}}var $p=25;function Fp(t,e,r){r===void 0&&(r="viewport");let i=r==="layoutViewport",n=_e(t),s=vt(t),o=n.visualViewport,a=s.clientWidth,l=s.clientHeight,c=0,u=0;if(o){let f=!Rn()||e==="fixed";i?f||(c=-o.offsetLeft,u=-o.offsetTop):(a=o.width,l=o.height,f&&(c=o.offsetLeft,u=o.offsetTop))}if(Ln(s)<=0){let f=s.ownerDocument,y=f.body,x=getComputedStyle(y),_=f.compatMode==="CSS1Compat"&&parseFloat(x.marginLeft)+parseFloat(x.marginRight)||0,b=Math.abs(s.clientWidth-y.clientWidth-_),O=getComputedStyle(s).scrollbarGutter==="stable both-edges"?b/2:b;O<=$p&&(a-=O)}return{width:a,height:l,x:c,y:u}}function Up(t,e){let r=yi(t,!0,e==="fixed"),i=r.top+t.clientTop,n=r.left+t.clientLeft,s=Nr(t),o=t.clientWidth*s.x,a=t.clientHeight*s.y,l=n*s.x,c=i*s.y;return{width:o,height:a,x:l,y:c}}function Cc(t,e,r){let i;if(e==="viewport"||e==="layoutViewport")i=Fp(t,r,e);else if(e==="document")i=Mp(vt(t));else if(Ye(e))i=Up(e,r);else{let n=Rc(t);i={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return lr(i)}function Bp(t,e){let r=e.get(t);if(r)return r;let i=On(t,[],!1).filter(a=>Ye(a)&&ur(a)!=="body"),n=null,s=Xe(t).position==="fixed",o=s?Dt(t):t;for(;Ye(o)&&!Dr(o);){let a=Xe(o),l=Lr(o),c=n?n.position:s?"fixed":"";!l&&(c==="fixed"||c==="absolute"&&a.position==="static")?i=i.filter(p=>p!==o):n=a,o=Dt(o)}return e.set(t,i),i}function Vp(t){let{element:e,boundary:r,rootBoundary:i,strategy:n}=t,o=[...r==="clippingAncestors"?hi(e)?[]:Bp(e,this._c):[].concat(r),i],a=Cc(e,o[0],n),l=a.top,c=a.right,u=a.bottom,p=a.left;for(let f=1;f<o.length;f++){let y=Cc(e,o[f],n);l=kt(y.top,l),c=ui(y.right,c),u=ui(y.bottom,u),p=kt(y.left,p)}return{width:c-p,height:u-l,x:p,y:l}}function Hp(t){let{width:e,height:r}=Oc(t);return{width:e,height:r}}function zp(t,e,r){let i=bt(e),n=vt(e),s=r==="fixed",o=yi(t,!0,s,e),a={scrollLeft:0,scrollTop:0},l=lt(0);if((i||!s)&&((ur(e)!=="body"||fi(n))&&(a=mi(e)),i)){let f=yi(e,!0,s,e);l.x=f.x+e.clientLeft,l.y=f.y+e.clientTop}!i&&n&&(l.x=Ln(n));let c=n&&!i&&!s?kc(n,a):lt(0),u=o.left+a.scrollLeft-l.x-c.x,p=o.top+a.scrollTop-l.y-c.y;return{x:u,y:p,width:o.width,height:o.height}}function Gs(t){return Xe(t).position==="static"}function wc(t,e){if(!bt(t)||Xe(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return vt(t)===r&&(r=r.ownerDocument.body),r}function Lc(t,e){let r=_e(t);if(hi(t))return r;if(!bt(t)){let n=Dt(t);for(;n&&!Dr(n);){if(Ye(n)&&!Gs(n))return n;n=Dt(n)}return r}let i=wc(t,e);for(;i&&Ec(i)&&Gs(i);)i=wc(i,e);return i&&Dr(i)&&Gs(i)&&!Lr(i)?r:i||Ac(t)||r}var jp=async function(t){let e=this.getOffsetParent||Lc,r=this.getDimensions,i=await r(t.floating);return{reference:zp(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function qp(t){return Xe(t).direction==="rtl"}var Dn={convertOffsetParentRelativeRectToViewportRelativeRect:Pp,getDocumentElement:vt,getClippingRect:Vp,getOffsetParent:Lc,getElementRects:jp,getClientRects:Ip,getDimensions:Hp,getScale:Nr,isElement:Ye,isRTL:qp};var Dc=vc,Nc=bc;var Pc=(t,e,r)=>{let i=new Map,n=r??{},s={...Dn,...n.platform,_c:i};return gc(t,e,{...n,platform:s})};function Ic(t){return Kp(t)}function Ys(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Kp(t){for(let e=t;e;e=Ys(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Ys(t);e;e=Ys(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||Lr(r)||e.tagName==="BODY"))return e}return null}async function Mc(t,e,r){let i;return typeof r=="object"?i=r:i={placement:r},Pc(t,e,{strategy:i.strategy,platform:{...Dn,getOffsetParent:n=>Dn.getOffsetParent(n,Ic)},middleware:[Nc({crossAxis:!0}),Dc({allowedPlacements:[i.placement]})]})}var Ir=d(v());var $c=d(B());var Xs=class{fromLocalizableLabel(e){return e.type=="PLAIN_TEXT"?{message:e.text}:{key:e.key,custom:e.type=="LOCALIZED_CUSTOM",context:e.context,message:e.key}}fromAttribute(e){if(e!=null)try{return JSON.parse(e)}catch{if(this.isI18nKey(e)){let[r,i]=e.split(".");return{context:r,key:i,custom:r!=="officialContext",message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},Pr=new Xs;var Wp=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},vi=Symbol("i18nAttributes"),Fc=Symbol("i18nListAttributes"),Uc=Symbol("i18nProperties"),Nn=Symbol("i18nContexts"),gi=Symbol("i18nUnsubs"),ct=(0,Ir.applyMixinOnce)(Symbol("withI18n"),function(t){var e,r;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[r]=new Map}getI18nService(s){return s??this.useCustomMessageContexts?hn:Tr}i18n(s){let{context:o,key:a,message:l}=s,{custom:c,args:u,argsProvider:p}=s;if(o&&a){this.hasI18nContext(o)||this.addI18nContext(o,void 0,c);let f=u??(p?p(this):[]);return this.getI18nService(c).resolveMessage(o,a,...f)}return l}async awaitI18n(s){let{context:o,custom:a}=s;return o&&await this.getI18nService(a).prepareContext(o),this.i18n(s)}customI18n(s,o){if(Pr.isI18nKey(s)){let[a,l]=s.split(".");return this.i18n({custom:!0,context:a,key:l,...o})||s}return s}firstUpdated(s){super.firstUpdated(s),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(s){super.update(s),this.updateI18nAttributes((o,a,l)=>s.has(a)||typeof o.argsProvider=="function"),this.updateI18nProperties(o=>typeof o.argsProvider=="function")}onI18nUpdate(s){this.updateI18nAttributes((o,a,l)=>{var c;return((c=l?.context)===null||c===void 0?void 0:c.toLowerCase())===s}),this.updateI18nProperties(o=>o.context.toLowerCase()===s),this.requestUpdate()}updateI18nAttributes(s){var o,a;let l=this,c=(u,p,f)=>f?.context&&f.key&&s(u,p,f)?{...f,message:this.i18n({context:f.context,key:f.key,custom:f.custom,...u})}:f;(o=this[vi])===null||o===void 0||o.forEach((u,p)=>l[p]=c(u,p,l[p])),(a=this[Fc])===null||a===void 0||a.forEach((u,p)=>{var f;return l[p]=(f=l[p])===null||f===void 0?void 0:f.map(y=>c(u,p,y))})}updateI18nProperties(s){var o;(o=this[Uc])===null||o===void 0||o.forEach((a,l)=>{s(a,l)&&(this[l]=this.i18n(a))})}addI18nMessages(s,o,a){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(s,o,a)}addI18nContext(s,o,a){let l=(typeof s=="string"?s:s.name).toLowerCase();a=typeof s=="string"?a:s.custom,this[Nn].set(l,{isCustomContext:a}),this[gi].has(l)||this[gi].set(l,this.getI18nService(a).subscribe(l,()=>this.onI18nUpdate(l))),this.getI18nService(a).prepareContext(l,o)}hasI18nContext(s){return this[Nn].has(s.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Nn].forEach((s,o)=>this.addI18nContext(o,void 0,s.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[gi].forEach(s=>s()),this[gi].clear()}}return e=Nn,r=gi,Wp([(0,$c.property)({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}),Pn=class extends ct(Ir.FtLitElement){},In=class extends ct(Ir.FtLitElementRedux){};var Bc=d(v());var Qs=class{fromAttribute(e){if(!e)return[];try{let r=JSON.parse(e);return Array.isArray(r)?r.map(i=>typeof i=="string"?Pr.fromAttribute(i):i):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},Gp=new Qs;var Vc=(t,e)=>(r,i)=>{var n;r.constructor.createProperty(i,{type:Object,hasChanged:Bc.hasChanged,converter:Pr,...e}),r[vi]=(n=r[vi])!==null&&n!==void 0?n:new Map,r[vi].set(i,t??{})};var Nt=class t{static build(e){return new t(e)}static buildCustom(e){return new t(e,!0)}static fromGwt(e){return new t(e)}get service(){return this.custom?hn:Tr}constructor(e,r=!1){this.name=e,this.custom=r,this.properties=new Proxy({},{get:(i,n)=>{let s=n;return o=>({context:this.name,key:s,custom:this.custom,args:typeof o=="function"?void 0:o,argsProvider:typeof o=="function"?o:void 0})}}),this.messages=new Proxy({},{get:(i,n)=>(...s)=>this.service.resolveMessage(this.name,n,...s)}),this.rawMessages=new Proxy({},{get:(i,n)=>this.service.resolveRawMessage(this.name,n)}),this.keys=new Proxy({},{get:(i,n)=>()=>n}),this.attributes=new Proxy({},{get:(i,n)=>()=>({context:this.name,key:n,message:this.service.resolveRawMessage(this.name,n)})})}};var Hc=d(R());var zc=Hc.css`
337
+ `;var Mn=d(R()),$r=d(B()),$n=d(v());var Mr=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},He=class extends In{constructor(){super(),this.editorMode=!1,this.editorMessage="Select a context and a label key.",this.addStore(A)}render(){return!this.key||!this.context?this.editorMode?this.editorMessage:Mn.nothing:Mn.html`
338
338
  <span class="ft-i18n">
339
339
  ${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
340
340
  </span>
341
- `}update(e){var r;super.update(e),["context","key","defaultMessage"].some(i=>e.has(i))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};Ve.elementDefinitions={};Ve.styles=zc;Pr([(0,In.redux)()],Ve.prototype,"editorMode",void 0);Pr([(0,Ir.property)()],Ve.prototype,"context",void 0);Pr([(0,Ir.property)()],Ve.prototype,"key",void 0);Pr([(0,In.jsonProperty)([])],Ve.prototype,"args",void 0);Pr([(0,Ir.property)()],Ve.prototype,"defaultMessage",void 0);Pr([(0,Ir.state)()],Ve.prototype,"editorMessage",void 0);var qc=d(v());var jc={"ft-i18n":Ve};(0,qc.customElements)(jc);var Ye=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Y=class extends Dn{constructor(){super(...arguments),this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.ignoreMatchingElements=[],this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new He.Debouncer,this.revealDebouncer=new He.Debouncer,this.onTouch=e=>{this.isIgnored(e)||(this.show(),setTimeout(()=>window.addEventListener("touchstart",r=>{r.composedPath().includes(this.container)||this.onOut(r)},{once:!0}),100))},this.onHover=e=>{this.isIgnored(e)?this.matchesIgnored(e)&&this.hide():this.show()},this.onFocusIn=e=>{!this.isIgnored(e)&&window.FluidTopicsA11yHints.isKeyboardNavigation&&window.FluidTopicsA11yHints.lastPressedKey==="Tab"&&this.show()},this.onOut=e=>{this.isIgnored(e)||(this.revealDebouncer.cancel(),this.hide())},this.onClick=e=>{this.isIgnored(e)||(this.revealDebouncer.cancel(),this.hide())}}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){var e,r;return Kc.html`
341
+ `}update(e){var r;super.update(e),["context","key","defaultMessage"].some(i=>e.has(i))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};He.elementDefinitions={};He.styles=zc;Mr([(0,$n.redux)()],He.prototype,"editorMode",void 0);Mr([(0,$r.property)()],He.prototype,"context",void 0);Mr([(0,$r.property)()],He.prototype,"key",void 0);Mr([(0,$n.jsonProperty)([])],He.prototype,"args",void 0);Mr([(0,$r.property)()],He.prototype,"defaultMessage",void 0);Mr([(0,$r.state)()],He.prototype,"editorMessage",void 0);var qc=d(v());var jc={"ft-i18n":He};(0,qc.customElements)(jc);var Qe=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Y=class extends Pn{constructor(){super(...arguments),this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.ignoreMatchingElements=[],this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new ze.Debouncer,this.revealDebouncer=new ze.Debouncer,this.onTouch=e=>{this.isIgnored(e)||(this.show(),setTimeout(()=>window.addEventListener("touchstart",r=>{r.composedPath().includes(this.container)||this.onOut(r)},{once:!0}),100))},this.onHover=e=>{this.isIgnored(e)?this.matchesIgnored(e)&&this.hide():this.show()},this.onFocusIn=e=>{!this.isIgnored(e)&&window.FluidTopicsA11yHints.isKeyboardNavigation&&window.FluidTopicsA11yHints.lastPressedKey==="Tab"&&this.show()},this.onOut=e=>{this.isIgnored(e)||(this.revealDebouncer.cancel(),this.hide())},this.onClick=e=>{this.isIgnored(e)||(this.revealDebouncer.cancel(),this.hide())}}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){var e,r;return Kc.html`
342
342
  <div part="container"
343
343
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}">
344
344
  <slot part="slot"></slot>
@@ -347,13 +347,13 @@
347
347
  popover="manual">
348
348
  <div part="tooltip-content" class="ft-tooltip--content">
349
349
  <slot name="text"></slot>
350
- <ft-typography variant="${de.caption}" ?hidden=${!(!((e=this.text)===null||e===void 0)&&e.message)}>
350
+ <ft-typography variant="${fe.caption}" ?hidden=${!(!((e=this.text)===null||e===void 0)&&e.message)}>
351
351
  ${(r=this.text)===null||r===void 0?void 0:r.message}
352
352
  </ft-typography>
353
353
  </div>
354
354
  </div>
355
355
  </div>
356
- `}setupFor(e){this.eventsTarget!==e&&(this.removeHandlers(),this.eventsTarget=e,this.eventsTarget.addEventListener("mouseover",this.onHover,{passive:!0}),this.eventsTarget.addEventListener("mouseleave",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("focusin",this.onFocusIn,{passive:!0}),this.eventsTarget.addEventListener("focusout",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("touchstart",this.onTouch,{passive:!0}),this.eventsTarget.addEventListener("click",this.onClick,{passive:!0}))}removeHandlers(){this.eventsTarget&&(this.eventsTarget.removeEventListener("mouseover",this.onHover),this.eventsTarget.removeEventListener("mouseleave",this.onOut),this.eventsTarget.removeEventListener("focusin",this.onFocusIn),this.eventsTarget.removeEventListener("focusout",this.onOut),this.eventsTarget.removeEventListener("touchstart",this.onTouch),this.eventsTarget.removeEventListener("click",this.onClick),this.eventsTarget=void 0)}defaultSetup(){this.container&&this.setupFor(this.container)}updated(e){var r,i;e.has("visible")&&(this.visible?(this.resetTooltipContent(),(r=this.tooltip)===null||r===void 0||r.showPopover()):(i=this.tooltip)===null||i===void 0||i.hidePopover()),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(r=>e.has(r))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}async showTemporaryText(e,r){let i=this.manual;this.manual=!0;let n=this.text;this.text={message:e},await this.show(r),this.text=n,this.manual=i}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&Mc(this.slottedElement,this.tooltip,{placement:this.position,strategy:"fixed"}).then(({x:e,y:r})=>{this.tooltip&&(this.tooltip.style.transform=`translate(${e}px,${r}px)`)}),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${He.designSystemVariables.transitionDuration}, left ${He.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}matchesIgnored(e){return(0,He.eventPathContainsMatchingElement)(e,this.ignoreMatchingElements,this.eventsTarget)}isIgnored(e){return this.manual||this.matchesIgnored(e)}};Y.elementDefinitions={"ft-typography":q};Y.styles=lc;Ye([Vc()],Y.prototype,"text",void 0);Ye([(0,ze.property)({type:Boolean})],Y.prototype,"manual",void 0);Ye([(0,ze.property)({type:Boolean})],Y.prototype,"inline",void 0);Ye([(0,He.numberProperty)()],Y.prototype,"delay",void 0);Ye([(0,ze.property)()],Y.prototype,"position",void 0);Ye([(0,He.jsonProperty)([])],Y.prototype,"ignoreMatchingElements",void 0);Ye([(0,ze.queryAssignedNodes)()],Y.prototype,"slotNodes",void 0);Ye([(0,ze.query)(".ft-tooltip--container")],Y.prototype,"container",void 0);Ye([(0,ze.query)(".ft-tooltip")],Y.prototype,"tooltip",void 0);Ye([(0,ze.query)(".ft-tooltip--content")],Y.prototype,"tooltipContent",void 0);Ye([(0,ze.state)()],Y.prototype,"visible",void 0);var Gc=d(v());var Wc={"ft-tooltip":Y};(0,Gc.customElements)(Wc);var Yc=d(R()),yi=d(v()),cr={color:yi.FtCssVariableFactory.extend("--ft-loader-color","",yi.designSystemVariables.colorPrimary),size:yi.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},Xc=Yc.css`
356
+ `}setupFor(e){this.eventsTarget!==e&&(this.removeHandlers(),this.eventsTarget=e,this.eventsTarget.addEventListener("mouseover",this.onHover,{passive:!0}),this.eventsTarget.addEventListener("mouseleave",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("focusin",this.onFocusIn,{passive:!0}),this.eventsTarget.addEventListener("focusout",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("touchstart",this.onTouch,{passive:!0}),this.eventsTarget.addEventListener("click",this.onClick,{passive:!0}))}removeHandlers(){this.eventsTarget&&(this.eventsTarget.removeEventListener("mouseover",this.onHover),this.eventsTarget.removeEventListener("mouseleave",this.onOut),this.eventsTarget.removeEventListener("focusin",this.onFocusIn),this.eventsTarget.removeEventListener("focusout",this.onOut),this.eventsTarget.removeEventListener("touchstart",this.onTouch),this.eventsTarget.removeEventListener("click",this.onClick),this.eventsTarget=void 0)}defaultSetup(){this.container&&this.setupFor(this.container)}updated(e){var r,i;e.has("visible")&&(this.visible?(this.resetTooltipContent(),(r=this.tooltip)===null||r===void 0||r.showPopover()):(i=this.tooltip)===null||i===void 0||i.hidePopover()),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(r=>e.has(r))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}async showTemporaryText(e,r){let i=this.manual;this.manual=!0;let n=this.text;this.text={message:e},await this.show(r),this.text=n,this.manual=i}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&Mc(this.slottedElement,this.tooltip,{placement:this.position,strategy:"fixed"}).then(({x:e,y:r})=>{this.tooltip&&(this.tooltip.style.transform=`translate(${e}px,${r}px)`)}),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${ze.designSystemVariables.transitionDuration}, left ${ze.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}matchesIgnored(e){return(0,ze.eventPathContainsMatchingElement)(e,this.ignoreMatchingElements,this.eventsTarget)}isIgnored(e){return this.manual||this.matchesIgnored(e)}};Y.elementDefinitions={"ft-typography":K};Y.styles=lc;Qe([Vc()],Y.prototype,"text",void 0);Qe([(0,je.property)({type:Boolean})],Y.prototype,"manual",void 0);Qe([(0,je.property)({type:Boolean})],Y.prototype,"inline",void 0);Qe([(0,ze.numberProperty)()],Y.prototype,"delay",void 0);Qe([(0,je.property)()],Y.prototype,"position",void 0);Qe([(0,ze.jsonProperty)([])],Y.prototype,"ignoreMatchingElements",void 0);Qe([(0,je.queryAssignedNodes)()],Y.prototype,"slotNodes",void 0);Qe([(0,je.query)(".ft-tooltip--container")],Y.prototype,"container",void 0);Qe([(0,je.query)(".ft-tooltip")],Y.prototype,"tooltip",void 0);Qe([(0,je.query)(".ft-tooltip--content")],Y.prototype,"tooltipContent",void 0);Qe([(0,je.state)()],Y.prototype,"visible",void 0);var Gc=d(v());var Wc={"ft-tooltip":Y};(0,Gc.customElements)(Wc);var Yc=d(R()),bi=d(v()),dr={color:bi.FtCssVariableFactory.extend("--ft-loader-color","",bi.designSystemVariables.colorPrimary),size:bi.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},Xc=Yc.css`
357
357
  :host {
358
358
  line-height: 0;
359
359
  }
@@ -362,8 +362,8 @@
362
362
  display: inline-block;
363
363
  position: relative;
364
364
 
365
- width: ${cr.size};
366
- height: ${cr.size};
365
+ width: ${dr.size};
366
+ height: ${dr.size};
367
367
  }
368
368
 
369
369
  .ft-loader div {
@@ -372,7 +372,7 @@
372
372
  width: 25%;
373
373
  height: 25%;
374
374
  border-radius: 50%;
375
- background: ${cr.color};
375
+ background: ${dr.color};
376
376
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
377
377
  }
378
378
 
@@ -419,17 +419,17 @@
419
419
  transform: translate(0, 0);
420
420
  }
421
421
  100% {
422
- transform: translate(calc(0.35 * ${cr.size}), 0);
422
+ transform: translate(calc(0.35 * ${dr.size}), 0);
423
423
  }
424
424
  }
425
- `;var Qc=d(R()),Zc=d(v());var ur=class extends Zc.FtLitElement{render(){return Qc.html`
425
+ `;var Qc=d(R()),Zc=d(v());var pr=class extends Zc.FtLitElement{render(){return Qc.html`
426
426
  <div class="ft-loader">
427
427
  <div></div>
428
428
  <div></div>
429
429
  <div></div>
430
430
  <div></div>
431
431
  </div>
432
- `}};ur.styles=Xc;var eu=d(v());var Jc={"ft-loader":ur};(0,eu.customElements)(Jc);var Dt=d(R()),$n=d(Gt()),M=d(U());var gi=t=>t??Z;var Mn=d(R()),C=d(v());var tu=C.FtCssVariableFactory.extend("--ft-button-color","",C.designSystemVariables.colorPrimary),k={backgroundColor:C.FtCssVariableFactory.extend("--ft-button-background-color","",C.designSystemVariables.colorSurface),borderRadius:C.FtCssVariableFactory.extend("--ft-button-border-radius","",C.designSystemVariables.borderRadiusL),color:tu,fontSize:C.FtCssVariableFactory.extend("--ft-button-font-size","",qe.fontSize),iconSize:C.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:C.FtCssVariableFactory.extend("--ft-button-ripple-color","",tu),verticalPadding:C.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:C.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:C.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:C.FtCssVariableFactory.external(C.designSystemVariables.colorOpacityDisabled,"Design system")},ru=C.FtCssVariableFactory.extend("--ft-button-primary-color","",C.FtCssVariableFactory.extend("--ft-button-color","",C.designSystemVariables.colorOnPrimary)),Zs={backgroundColor:C.FtCssVariableFactory.extend("--ft-button-primary-background-color","",C.FtCssVariableFactory.extend("--ft-button-background-color","",C.designSystemVariables.colorPrimary)),color:ru,rippleColor:C.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",ru)},Xe={borderRadius:C.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",C.FtCssVariableFactory.extend("--ft-button-border-radius","",C.designSystemVariables.borderRadiusM)),verticalPadding:C.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:C.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:C.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},iu=Mn.css`
432
+ `}};pr.styles=Xc;var eu=d(v());var Jc={"ft-loader":pr};(0,eu.customElements)(Jc);var It=d(R()),Un=d(Xt()),I=d(B());var Pt=t=>t??Z;var Fn=d(R()),C=d(v());var tu=C.FtCssVariableFactory.extend("--ft-button-color","",C.designSystemVariables.colorPrimary),L={backgroundColor:C.FtCssVariableFactory.extend("--ft-button-background-color","",C.designSystemVariables.colorSurface),borderRadius:C.FtCssVariableFactory.extend("--ft-button-border-radius","",C.designSystemVariables.borderRadiusL),color:tu,fontSize:C.FtCssVariableFactory.extend("--ft-button-font-size","",We.fontSize),iconSize:C.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:C.FtCssVariableFactory.extend("--ft-button-ripple-color","",tu),verticalPadding:C.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:C.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:C.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:C.FtCssVariableFactory.external(C.designSystemVariables.colorOpacityDisabled,"Design system")},ru=C.FtCssVariableFactory.extend("--ft-button-primary-color","",C.FtCssVariableFactory.extend("--ft-button-color","",C.designSystemVariables.colorOnPrimary)),Zs={backgroundColor:C.FtCssVariableFactory.extend("--ft-button-primary-background-color","",C.FtCssVariableFactory.extend("--ft-button-background-color","",C.designSystemVariables.colorPrimary)),color:ru,rippleColor:C.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",ru)},Ze={borderRadius:C.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",C.FtCssVariableFactory.extend("--ft-button-border-radius","",C.designSystemVariables.borderRadiusM)),verticalPadding:C.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:C.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:C.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},iu=Fn.css`
433
433
  :host {
434
434
  display: inline-block;
435
435
  max-width: 100%;
@@ -439,7 +439,7 @@
439
439
  .ft-button {
440
440
  box-shadow: 0px 0px 0px transparent;
441
441
  text-shadow: 0px 0px 0px transparent;
442
- font-size: ${k.fontSize};
442
+ font-size: ${L.fontSize};
443
443
  text-decoration: none;
444
444
  position: relative;
445
445
  display: flex;
@@ -450,15 +450,15 @@
450
450
  border: none;
451
451
  pointer-events: auto;
452
452
 
453
- --button-internal-line-height: max(calc(${k.fontSize} + 2px), ${k.iconSize});
454
- --button-internal-color: ${k.color};
455
- ${(0,C.setVariable)(De.size,k.iconSize)};
456
- ${(0,C.setVariable)(re.color,k.rippleColor)};
457
- ${(0,C.setVariable)(re.borderRadius,k.borderRadius)};
453
+ --button-internal-line-height: max(calc(${L.fontSize} + 2px), ${L.iconSize});
454
+ --button-internal-color: ${L.color};
455
+ ${(0,C.setVariable)(Ne.size,L.iconSize)};
456
+ ${(0,C.setVariable)(re.color,L.rippleColor)};
457
+ ${(0,C.setVariable)(re.borderRadius,L.borderRadius)};
458
458
 
459
- border-radius: ${k.borderRadius};
460
- padding: ${k.verticalPadding} ${k.horizontalPadding};
461
- background-color: ${k.backgroundColor};
459
+ border-radius: ${L.borderRadius};
460
+ padding: ${L.verticalPadding} ${L.horizontalPadding};
461
+ background-color: ${L.backgroundColor};
462
462
  color: var(--button-internal-color);
463
463
 
464
464
  .ft-button--label {
@@ -467,9 +467,9 @@
467
467
  white-space: nowrap;
468
468
  text-overflow: ellipsis;
469
469
  display: block;
470
- margin: 0 ${k.iconPadding};
471
- ${(0,C.setVariable)(qe.fontSize,"1em")};
472
- ${(0,C.setVariable)(qe.lineHeight,"var(--button-internal-line-height)")};
470
+ margin: 0 ${L.iconPadding};
471
+ ${(0,C.setVariable)(We.fontSize,"1em")};
472
+ ${(0,C.setVariable)(We.lineHeight,"var(--button-internal-line-height)")};
473
473
  }
474
474
 
475
475
  [part="icon"] {
@@ -504,7 +504,7 @@
504
504
 
505
505
  &[disabled] {
506
506
  filter: grayscale(1);
507
- opacity: ${k.opacityDisabled};
507
+ opacity: ${L.opacityDisabled};
508
508
  }
509
509
 
510
510
  &.ft-button--primary {
@@ -515,31 +515,31 @@
515
515
 
516
516
  &.ft-button--outlined {
517
517
  border: 1px solid var(--button-internal-color);
518
- padding: calc(${k.verticalPadding} - 1px) calc(${k.horizontalPadding} - 1px);
518
+ padding: calc(${L.verticalPadding} - 1px) calc(${L.horizontalPadding} - 1px);
519
519
  }
520
520
 
521
521
  &.ft-button--dense {
522
- padding: ${Xe.verticalPadding} ${Xe.horizontalPadding};
523
- border-radius: ${Xe.borderRadius};
524
- ${(0,C.setVariable)(re.borderRadius,Xe.borderRadius)};
522
+ padding: ${Ze.verticalPadding} ${Ze.horizontalPadding};
523
+ border-radius: ${Ze.borderRadius};
524
+ ${(0,C.setVariable)(re.borderRadius,Ze.borderRadius)};
525
525
 
526
526
  .ft-button--label {
527
- margin: 0 ${Xe.iconPadding};
527
+ margin: 0 ${Ze.iconPadding};
528
528
  }
529
529
  }
530
530
 
531
531
  &.ft-button--dense.ft-button--outlined {
532
- padding: calc(${Xe.verticalPadding} - 1px) calc(${Xe.horizontalPadding} - 1px);
532
+ padding: calc(${Ze.verticalPadding} - 1px) calc(${Ze.horizontalPadding} - 1px);
533
533
  }
534
534
 
535
535
  &.ft-button--round {
536
- border-radius: calc(var(--button-internal-line-height) / 2 + ${k.verticalPadding});
537
- ${(0,C.setVariable)(re.borderRadius,Mn.css`calc(var(--button-internal-line-height) / 2 + ${k.verticalPadding})`)};
536
+ border-radius: calc(var(--button-internal-line-height) / 2 + ${L.verticalPadding});
537
+ ${(0,C.setVariable)(re.borderRadius,Fn.css`calc(var(--button-internal-line-height) / 2 + ${L.verticalPadding})`)};
538
538
  }
539
539
 
540
540
  &.ft-button--round.ft-button--dense {
541
- border-radius: calc(var(--button-internal-line-height) / 2 + ${Xe.verticalPadding});
542
- ${(0,C.setVariable)(re.borderRadius,Mn.css`calc(var(--button-internal-line-height) / 2 + ${Xe.verticalPadding})`)};
541
+ border-radius: calc(var(--button-internal-line-height) / 2 + ${Ze.verticalPadding});
542
+ ${(0,C.setVariable)(re.borderRadius,Fn.css`calc(var(--button-internal-line-height) / 2 + ${Ze.verticalPadding})`)};
543
543
  }
544
544
 
545
545
  &.ft-button--no-text {
@@ -547,18 +547,18 @@
547
547
  margin: 0;
548
548
  }
549
549
 
550
- padding: ${k.verticalPadding};
550
+ padding: ${L.verticalPadding};
551
551
 
552
552
  &.ft-button--dense {
553
- padding: ${Xe.verticalPadding};
553
+ padding: ${Ze.verticalPadding};
554
554
  }
555
555
 
556
556
  &.ft-button--outlined {
557
- padding: calc(${k.verticalPadding} - 1px);
557
+ padding: calc(${L.verticalPadding} - 1px);
558
558
  }
559
559
 
560
560
  &.ft-button--outlined.ft-button--dense {
561
- padding: calc(${Xe.verticalPadding} - 1px);
561
+ padding: calc(${Ze.verticalPadding} - 1px);
562
562
  }
563
563
  }
564
564
 
@@ -568,51 +568,52 @@
568
568
  }
569
569
 
570
570
  ft-loader {
571
- ${(0,C.setVariable)(cr.size,k.iconSize)};
572
- ${(0,C.setVariable)(cr.color,"var(--button-internal-color)")};
571
+ ${(0,C.setVariable)(dr.size,L.iconSize)};
572
+ ${(0,C.setVariable)(dr.color,"var(--button-internal-color)")};
573
573
  }
574
- `;var B=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},O=class t extends(0,lt.toFtFormComponent)(lt.FtLitElement){get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-button--no-text":!this.hasTextContent,"ft-no-text-select":!0}}constructor(){super(),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1,this.disabled=!1,this.icon=void 0,this.trailingIcon=!1,this.type="button",this.href=void 0,this.target=void 0,this.loading=!1,this.ariaLabel=null,this.ariaHasPopup=null,this.ariaPressed=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.activated=!1,this.hasTextContent=!1,this.addEventListener("click",e=>{var r;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((r=this.form)===null||r===void 0||r.requestSubmit())})}render(){var e,r,i;let n={"ft-button--label":!0,"ft-safari-ellipsis-fix":lt.isSafari},s=Dt.html`
574
+ `;var F=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},w=class t extends(0,ut.toFtFormComponent)(ut.FtLitElement){get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-button--no-text":!this.hasTextContent,"ft-no-text-select":!0}}constructor(){super(),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1,this.disabled=!1,this.icon=void 0,this.trailingIcon=!1,this.type="button",this.href=void 0,this.target=void 0,this.loading=!1,this.ariaLabel=null,this.ariaHasPopup=null,this.ariaPressed=null,this.ariaExpanded=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.activated=!1,this.hasTextContent=!1,this.addEventListener("click",e=>{var r;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((r=this.form)===null||r===void 0||r.requestSubmit())})}render(){var e,r,i;let n={"ft-button--label":!0,"ft-safari-ellipsis-fix":ut.isSafari},s=It.html`
575
575
  <ft-ripple part="ripple"
576
576
  ?disabled=${this.isDisabled()}
577
577
  ?activated=${this.activated}
578
578
  ></ft-ripple>
579
579
  <ft-typography part="label"
580
- variant="${de.button}"
580
+ variant="${fe.button}"
581
581
  element="span"
582
- class="${(0,$n.classMap)(n)}">
582
+ class="${(0,Un.classMap)(n)}">
583
583
  <slot></slot>
584
584
  </ft-typography>
585
585
  ${this.resolveIcon()}
586
- `,o=this.href!=null&&this.href.trim().length>0?this.href:void 0;return this.addTooltipIfNeeded(o?Dt.html`
586
+ `,o=this.href!=null&&this.href.trim().length>0?this.href:void 0;return this.addTooltipIfNeeded(o?It.html`
587
587
  <a href="${o}"
588
588
  target="${(e=this.target)!==null&&e!==void 0?e:"_self"}"
589
589
  part="button"
590
- class="${(0,$n.classMap)(this.buttonClasses)}"
591
- aria-label="${gi((r=this.ariaLabel)!==null&&r!==void 0?r:this.label)}"
590
+ class="${(0,Un.classMap)(this.buttonClasses)}"
591
+ aria-label="${Pt((r=this.ariaLabel)!==null&&r!==void 0?r:this.label)}"
592
592
  ?disabled=${this.isDisabled()}>
593
593
  ${s}
594
594
  </a>
595
- `:Dt.html`
595
+ `:It.html`
596
596
  <button part="button"
597
- class="${(0,$n.classMap)(this.buttonClasses)}"
598
- aria-label="${gi((i=this.ariaLabel)!==null&&i!==void 0?i:this.label)}"
599
- aria-haspopup="${gi(this.ariaHasPopup)}"
600
- aria-pressed="${gi(this.ariaPressed)}"
597
+ class="${(0,Un.classMap)(this.buttonClasses)}"
598
+ aria-label="${Pt((i=this.ariaLabel)!==null&&i!==void 0?i:this.label)}"
599
+ aria-haspopup="${Pt(this.ariaHasPopup)}"
600
+ aria-pressed="${Pt(this.ariaPressed)}"
601
+ aria-expanded="${Pt(this.ariaExpanded)}"
601
602
  ?disabled=${this.isDisabled()}>
602
603
  ${s}
603
604
  </button>
604
- `)}addTooltipIfNeeded(e){return this.label&&this.label.trim().length>0&&(this.forceTooltip||!this.hasTextContent&&!this.hideTooltip)?Dt.html`
605
+ `)}addTooltipIfNeeded(e){return this.label&&this.label.trim().length>0&&(this.forceTooltip||!this.hasTextContent&&!this.hideTooltip)?It.html`
605
606
  <ft-tooltip part="tooltip"
606
607
  text="${this.label}"
607
608
  position="${this.tooltipPosition}">
608
609
  ${e}
609
610
  </ft-tooltip>
610
- `:e}resolveIcon(){return this.loading?Dt.html`
611
- <ft-loader part="loader icon"></ft-loader> `:this.icon?Dt.html`
611
+ `:e}resolveIcon(){return this.loading?It.html`
612
+ <ft-loader part="loader icon"></ft-loader> `:this.icon?It.html`
612
613
  <ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
613
- `:Dt.html`
614
+ `:It.html`
614
615
  <slot part="icon" name="icon"></slot>
615
- `}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}showTooltip(){var e;(e=this.tooltip)===null||e===void 0||e.show()}showTemporaryTooltip(e,r){var i;return(i=this.tooltip)===null||i===void 0?void 0:i.showTemporaryText(e,r)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}isDisabled(){return this.disabled||this.loading}contentAvailableCallback(e){super.contentAvailableCallback(e),this.labelContainer&&t.labelsObserver.observe(this.labelContainer)}disconnectedCallback(){super.disconnectedCallback(),this.labelContainer&&t.labelsObserver.unobserve(this.labelContainer)}};O.elementDefinitions={"ft-ripple":P,"ft-tooltip":Y,"ft-icon":pe,"ft-loader":ur,"ft-typography":q};O.styles=[lt.safariEllipsisFix,iu,lt.noTextSelect];O.labelsObserver=new IntersectionObserver(t=>{for(let e of t){let r=e.target.getRootNode();r instanceof ShadowRoot&&r.host?r.host.hasTextContent=e.boundingClientRect.width>0:O.labelsObserver.unobserve(e.target)}});B([(0,M.property)({type:Boolean})],O.prototype,"primary",void 0);B([(0,M.property)({type:Boolean})],O.prototype,"outlined",void 0);B([(0,M.property)({type:Boolean})],O.prototype,"dense",void 0);B([(0,M.property)({type:Boolean})],O.prototype,"round",void 0);B([(0,M.property)({type:Boolean})],O.prototype,"disabled",void 0);B([(0,M.property)()],O.prototype,"icon",void 0);B([(0,M.property)()],O.prototype,"iconVariant",void 0);B([(0,M.property)({type:Boolean})],O.prototype,"trailingIcon",void 0);B([(0,M.property)()],O.prototype,"label",void 0);B([(0,M.property)()],O.prototype,"type",void 0);B([(0,M.property)()],O.prototype,"href",void 0);B([(0,M.property)()],O.prototype,"target",void 0);B([(0,M.property)({type:Boolean})],O.prototype,"loading",void 0);B([(0,M.property)({attribute:"aria-label"})],O.prototype,"ariaLabel",void 0);B([(0,M.property)()],O.prototype,"ariaHasPopup",void 0);B([(0,M.property)({attribute:"aria-pressed"})],O.prototype,"ariaPressed",void 0);B([(0,M.property)()],O.prototype,"tooltipPosition",void 0);B([(0,M.property)({type:Boolean})],O.prototype,"hideTooltip",void 0);B([(0,M.property)({type:Boolean})],O.prototype,"forceTooltip",void 0);B([(0,M.property)({type:Boolean})],O.prototype,"activated",void 0);B([(0,M.query)(".ft-button")],O.prototype,"button",void 0);B([(0,M.query)(".ft-button--label")],O.prototype,"labelContainer",void 0);B([(0,M.state)()],O.prototype,"hasTextContent",void 0);B([(0,M.query)(".ft-button--label slot")],O.prototype,"slottedContent",void 0);B([(0,M.query)("[part=tooltip]")],O.prototype,"tooltip",void 0);var su=d(v());var nu={"ft-button":O};(0,su.customElements)(nu);var ou=T.FtCssVariableFactory.extend("--ft-chip-color","",T.designSystemVariables.colorOnSurface),Ce={backgroundColor:T.FtCssVariableFactory.extend("--ft-chip-background-color","",T.designSystemVariables.colorSurface),color:ou,fontSize:T.FtCssVariableFactory.extend("--ft-chip-font-size","",J.fontSize),fontWeight:T.FtCssVariableFactory.extend("--ft-chip-font-weight","",J.fontWeight),iconSize:T.FtCssVariableFactory.create("--ft-chip-icon-size","","SIZE","18px"),borderRadius:T.FtCssVariableFactory.create("--ft-chip-border-radius","","SIZE",""),rippleColor:T.FtCssVariableFactory.extend("--ft-chip-ripple-color","",ou),horizontalPadding:T.FtCssVariableFactory.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:T.FtCssVariableFactory.create("--ft-chip-vertical-padding","","SIZE","6px"),borderColor:T.FtCssVariableFactory.extend("--ft-chip-border-color","",T.designSystemVariables.colorOutline),opacityDisabled:T.FtCssVariableFactory.external(T.designSystemVariables.colorOpacityDisabled,"Design system")},au=T.FtCssVariableFactory.extend("--ft-chip-highlighted-color","",T.FtCssVariableFactory.extend("--ft-chip-color","",T.designSystemVariables.colorOnPrimary)),Js={backgroundColor:T.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color","",T.FtCssVariableFactory.extend("--ft-chip-background-color","",T.designSystemVariables.colorPrimary)),color:au,rippleColor:T.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color","",au)},lu={horizontalPadding:T.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:T.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},cu=[T.noTextSelect,vi.css`
616
+ `}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}showTooltip(){var e;(e=this.tooltip)===null||e===void 0||e.show()}showTemporaryTooltip(e,r){var i;return(i=this.tooltip)===null||i===void 0?void 0:i.showTemporaryText(e,r)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}isDisabled(){return this.disabled||this.loading}contentAvailableCallback(e){super.contentAvailableCallback(e),this.labelContainer&&t.labelsObserver.observe(this.labelContainer)}disconnectedCallback(){super.disconnectedCallback(),this.labelContainer&&t.labelsObserver.unobserve(this.labelContainer)}};w.elementDefinitions={"ft-ripple":P,"ft-tooltip":Y,"ft-icon":he,"ft-loader":pr,"ft-typography":K};w.styles=[ut.safariEllipsisFix,iu,ut.noTextSelect];w.labelsObserver=new IntersectionObserver(t=>{for(let e of t){let r=e.target.getRootNode();r instanceof ShadowRoot&&r.host?r.host.hasTextContent=e.boundingClientRect.width>0:w.labelsObserver.unobserve(e.target)}});F([(0,I.property)({type:Boolean})],w.prototype,"primary",void 0);F([(0,I.property)({type:Boolean})],w.prototype,"outlined",void 0);F([(0,I.property)({type:Boolean})],w.prototype,"dense",void 0);F([(0,I.property)({type:Boolean})],w.prototype,"round",void 0);F([(0,I.property)({type:Boolean})],w.prototype,"disabled",void 0);F([(0,I.property)()],w.prototype,"icon",void 0);F([(0,I.property)()],w.prototype,"iconVariant",void 0);F([(0,I.property)({type:Boolean})],w.prototype,"trailingIcon",void 0);F([(0,I.property)()],w.prototype,"label",void 0);F([(0,I.property)()],w.prototype,"type",void 0);F([(0,I.property)()],w.prototype,"href",void 0);F([(0,I.property)()],w.prototype,"target",void 0);F([(0,I.property)({type:Boolean})],w.prototype,"loading",void 0);F([(0,I.property)({attribute:"aria-label"})],w.prototype,"ariaLabel",void 0);F([(0,I.property)()],w.prototype,"ariaHasPopup",void 0);F([(0,I.property)({attribute:"aria-pressed"})],w.prototype,"ariaPressed",void 0);F([(0,I.property)({attribute:"aria-expanded"})],w.prototype,"ariaExpanded",void 0);F([(0,I.property)()],w.prototype,"tooltipPosition",void 0);F([(0,I.property)({type:Boolean})],w.prototype,"hideTooltip",void 0);F([(0,I.property)({type:Boolean})],w.prototype,"forceTooltip",void 0);F([(0,I.property)({type:Boolean})],w.prototype,"activated",void 0);F([(0,I.query)(".ft-button")],w.prototype,"button",void 0);F([(0,I.query)(".ft-button--label")],w.prototype,"labelContainer",void 0);F([(0,I.state)()],w.prototype,"hasTextContent",void 0);F([(0,I.query)(".ft-button--label slot")],w.prototype,"slottedContent",void 0);F([(0,I.query)("[part=tooltip]")],w.prototype,"tooltip",void 0);var su=d(v());var nu={"ft-button":w};(0,su.customElements)(nu);var ou=T.FtCssVariableFactory.extend("--ft-chip-color","",T.designSystemVariables.colorOnSurface),Ce={backgroundColor:T.FtCssVariableFactory.extend("--ft-chip-background-color","",T.designSystemVariables.colorSurface),color:ou,fontSize:T.FtCssVariableFactory.extend("--ft-chip-font-size","",J.fontSize),fontWeight:T.FtCssVariableFactory.extend("--ft-chip-font-weight","",J.fontWeight),iconSize:T.FtCssVariableFactory.create("--ft-chip-icon-size","","SIZE","18px"),borderRadius:T.FtCssVariableFactory.create("--ft-chip-border-radius","","SIZE",""),rippleColor:T.FtCssVariableFactory.extend("--ft-chip-ripple-color","",ou),horizontalPadding:T.FtCssVariableFactory.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:T.FtCssVariableFactory.create("--ft-chip-vertical-padding","","SIZE","6px"),borderColor:T.FtCssVariableFactory.extend("--ft-chip-border-color","",T.designSystemVariables.colorOutline),opacityDisabled:T.FtCssVariableFactory.external(T.designSystemVariables.colorOpacityDisabled,"Design system")},au=T.FtCssVariableFactory.extend("--ft-chip-highlighted-color","",T.FtCssVariableFactory.extend("--ft-chip-color","",T.designSystemVariables.colorOnPrimary)),Js={backgroundColor:T.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color","",T.FtCssVariableFactory.extend("--ft-chip-background-color","",T.designSystemVariables.colorPrimary)),color:au,rippleColor:T.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color","",au)},lu={horizontalPadding:T.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:T.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},cu=[T.noTextSelect,xi.css`
616
617
  :host {
617
618
  display: inline-block;
618
619
  max-width: 100%;
@@ -631,7 +632,7 @@
631
632
  --chip-internal-font-size: ${Ce.fontSize};
632
633
  --chip-internal-font-weight: ${Ce.fontWeight};
633
634
  --chip-internal-line-height: max(20px, calc(var(--chip-internal-font-size) + 2px));
634
- ${(0,T.setVariable)(De.size,Ce.iconSize)};
635
+ ${(0,T.setVariable)(Ne.size,Ce.iconSize)};
635
636
  --chip-internal-vertical-padding: ${Ce.verticalPadding};
636
637
  --chip-internal-horizontal-padding: ${Ce.horizontalPadding};
637
638
  --chip-internal-icon-padding: 3px;
@@ -640,7 +641,7 @@
640
641
  border: 1px solid ${Ce.borderColor};
641
642
  color: ${Ce.color};
642
643
  ${(0,T.setVariable)(re.color,Ce.rippleColor)};
643
- border-radius: var(${(0,vi.unsafeCSS)(Ce.borderRadius.name)}, calc(var(--chip-internal-content-height) / 2 + var(--chip-internal-vertical-padding)));
644
+ border-radius: var(${(0,xi.unsafeCSS)(Ce.borderRadius.name)}, calc(var(--chip-internal-content-height) / 2 + var(--chip-internal-vertical-padding)));
644
645
  padding: calc(var(--chip-internal-vertical-padding) - 1px) calc(var(--chip-internal-horizontal-padding) - 1px);
645
646
  background-color: ${Ce.backgroundColor};
646
647
  line-height: var(--chip-internal-content-height);
@@ -658,7 +659,7 @@
658
659
  }
659
660
 
660
661
  .ft-chip--no-content {
661
- --chip-internal-horizontal-padding: ${Ce.horizontalPadding.get(vi.css`var(--chip-internal-vertical-padding)`)};
662
+ --chip-internal-horizontal-padding: ${Ce.horizontalPadding.get(xi.css`var(--chip-internal-vertical-padding)`)};
662
663
  }
663
664
 
664
665
  .ft-chip--disabled {
@@ -704,9 +705,9 @@
704
705
  }
705
706
 
706
707
  .ft-chip--icon-button {
707
- ${(0,T.setVariable)(k.iconSize,Ce.iconSize)};
708
- ${(0,T.setVariable)(k.horizontalPadding,"var(--chip-internal-icon-padding)")};
709
- ${(0,T.setVariable)(k.verticalPadding,"var(--chip-internal-icon-padding)")};
708
+ ${(0,T.setVariable)(L.iconSize,Ce.iconSize)};
709
+ ${(0,T.setVariable)(L.horizontalPadding,"var(--chip-internal-icon-padding)")};
710
+ ${(0,T.setVariable)(L.verticalPadding,"var(--chip-internal-icon-padding)")};
710
711
  margin: calc((-1) * var(--chip-internal-icon-padding));
711
712
  }
712
713
 
@@ -752,20 +753,20 @@
752
753
  .ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-button {
753
754
  order: -1;
754
755
  }
755
- `];var ge=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Fn=class extends CustomEvent{constructor(){super("icon-click")}},j=class extends Mr.FtLitElement{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.iconLabel="",this.hideIconTooltip=!1,this.accessibleLabelOnIcon=!1,this.icon=void 0,this.trailingIcon=!1}render(){var e;let r={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":Mr.isSafari};return dr.html`
756
+ `];var ve=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Bn=class extends CustomEvent{constructor(){super("icon-click")}},j=class extends Fr.FtLitElement{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.iconLabel="",this.hideIconTooltip=!1,this.accessibleLabelOnIcon=!1,this.icon=void 0,this.trailingIcon=!1}render(){var e;let r={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":Fr.isSafari};return fr.html`
756
757
  <div class="${(0,uu.classMap)(r)}"
757
- aria-label="${this.labelOnIconOnly?dr.nothing:this.getLabel()}"
758
+ aria-label="${this.labelOnIconOnly?fr.nothing:this.getLabel()}"
758
759
  tabindex="${this.interactionsOnChip?0:-1}"
759
760
  @keyup=${this.onKeyUp}
760
761
  part="chip">
761
762
  <ft-ripple ?disabled=${!this.interactionsOnChip}></ft-ripple>
762
763
  <ft-typography variant="${(e=this.typographyVariant)!==null&&e!==void 0?e:"body2"}" element="span" class="ft-chip--label" part="label"
763
- aria-hidden="${this.labelOnIconOnly?"true":dr.nothing}">
764
+ aria-hidden="${this.labelOnIconOnly?"true":fr.nothing}">
764
765
  <slot @slotchange=${this.onSlotchange}></slot>
765
766
  </ft-typography>
766
767
  ${this.internalIcon?this.renderIcon():null}
767
768
  </div>
768
- `}get interactionsOnChip(){return this.clickable&&!this.disabled}get interactionsOnIcon(){return(this.iconClickable||this.removable)&&!this.disabled}get labelOnIconOnly(){return this.accessibleLabelOnIcon&&this.interactionsOnIcon}renderIcon(){return this.interactionsOnIcon?dr.html`
769
+ `}get interactionsOnChip(){return this.clickable&&!this.disabled}get interactionsOnIcon(){return(this.iconClickable||this.removable)&&!this.disabled}get labelOnIconOnly(){return this.accessibleLabelOnIcon&&this.interactionsOnIcon}renderIcon(){return this.interactionsOnIcon?fr.html`
769
770
  <ft-button round
770
771
  class="ft-chip--icon-button"
771
772
  @click=${this.onIconClick}
@@ -776,12 +777,12 @@
776
777
  part="icon-button"
777
778
  ?hideTooltip=${this.hideIconTooltip}
778
779
  ></ft-button>
779
- `:dr.html`
780
+ `:fr.html`
780
781
  <div class="ft-chip--icon-container ft-no-text-select" part="icon-container">
781
782
  <ft-icon .variant=${this.iconVariant} .value=${this.internalIcon} part="icon"></ft-icon>
782
783
  </div>
783
- `}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new Fn))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new Fn))}getLabel(){return this.label||this.getTextContent()}getTextContent(){return(0,Mr.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};j.elementDefinitions={"ft-ripple":P,"ft-typography":q,"ft-icon":pe,"ft-button":O};j.styles=cu;ge([(0,se.property)({type:Boolean})],j.prototype,"highlighted",void 0);ge([(0,se.property)({type:Boolean})],j.prototype,"removable",void 0);ge([(0,se.property)({type:Boolean})],j.prototype,"disabled",void 0);ge([(0,se.property)({type:Boolean})],j.prototype,"clickable",void 0);ge([(0,se.property)({type:Boolean})],j.prototype,"iconClickable",void 0);ge([(0,se.property)({type:Boolean})],j.prototype,"dense",void 0);ge([(0,se.property)({type:Boolean})],j.prototype,"multiLine",void 0);ge([(0,se.property)()],j.prototype,"label",void 0);ge([(0,se.property)()],j.prototype,"iconLabel",void 0);ge([(0,se.property)({type:Boolean})],j.prototype,"hideIconTooltip",void 0);ge([(0,se.property)({type:Boolean})],j.prototype,"accessibleLabelOnIcon",void 0);ge([(0,se.property)()],j.prototype,"icon",void 0);ge([(0,se.property)()],j.prototype,"iconVariant",void 0);ge([(0,se.property)({type:Boolean})],j.prototype,"trailingIcon",void 0);ge([(0,se.property)()],j.prototype,"typographyVariant",void 0);ge([(0,se.query)("ft-typography slot")],j.prototype,"slottedContent",void 0);var pu=d(v());var du={"ft-chip":j};(0,pu.customElements)(du);var fu=d(R());var hu=fu.css`
784
- `;var Ku=d(R()),no=d(v());var mu=d(R()),$=d(v());var bi={buttonMoreColor:$.FtCssVariableFactory.extend("--ft-filter-level-button-more-color","",$.designSystemVariables.colorOnSurface),borderRadiusM:$.FtCssVariableFactory.external($.designSystemVariables.borderRadiusM,"Design system"),colorOutline:$.FtCssVariableFactory.external($.designSystemVariables.colorOutline,"Design system"),colorOnSurface:$.FtCssVariableFactory.external($.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:$.FtCssVariableFactory.external($.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:$.FtCssVariableFactory.external($.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:$.FtCssVariableFactory.external($.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:$.FtCssVariableFactory.external($.designSystemVariables.colorOnPrimary,"Design system"),fontFamily:$.FtCssVariableFactory.external(J.fontFamily,"Body2 typography"),fontSize:$.FtCssVariableFactory.external(J.fontSize,"Body2 typography"),fontWeight:$.FtCssVariableFactory.external(J.fontWeight,"Body2 typography"),letterSpacing:$.FtCssVariableFactory.external(J.letterSpacing,"Body2 typography"),lineHeight:$.FtCssVariableFactory.external(J.lineHeight,"Body2 typography"),textTransform:$.FtCssVariableFactory.external(J.textTransform,"Body2 typography")},yu=mu.css`
784
+ `}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new Bn))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new Bn))}getLabel(){return this.label||this.getTextContent()}getTextContent(){return(0,Fr.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};j.elementDefinitions={"ft-ripple":P,"ft-typography":K,"ft-icon":he,"ft-button":w};j.styles=cu;ve([(0,oe.property)({type:Boolean})],j.prototype,"highlighted",void 0);ve([(0,oe.property)({type:Boolean})],j.prototype,"removable",void 0);ve([(0,oe.property)({type:Boolean})],j.prototype,"disabled",void 0);ve([(0,oe.property)({type:Boolean})],j.prototype,"clickable",void 0);ve([(0,oe.property)({type:Boolean})],j.prototype,"iconClickable",void 0);ve([(0,oe.property)({type:Boolean})],j.prototype,"dense",void 0);ve([(0,oe.property)({type:Boolean})],j.prototype,"multiLine",void 0);ve([(0,oe.property)()],j.prototype,"label",void 0);ve([(0,oe.property)()],j.prototype,"iconLabel",void 0);ve([(0,oe.property)({type:Boolean})],j.prototype,"hideIconTooltip",void 0);ve([(0,oe.property)({type:Boolean})],j.prototype,"accessibleLabelOnIcon",void 0);ve([(0,oe.property)()],j.prototype,"icon",void 0);ve([(0,oe.property)()],j.prototype,"iconVariant",void 0);ve([(0,oe.property)({type:Boolean})],j.prototype,"trailingIcon",void 0);ve([(0,oe.property)()],j.prototype,"typographyVariant",void 0);ve([(0,oe.query)("ft-typography slot")],j.prototype,"slottedContent",void 0);var pu=d(v());var du={"ft-chip":j};(0,pu.customElements)(du);var fu=d(R());var hu=fu.css`
785
+ `;var Ku=d(R()),no=d(v());var mu=d(R()),$=d(v());var Si={buttonMoreColor:$.FtCssVariableFactory.extend("--ft-filter-level-button-more-color","",$.designSystemVariables.colorOnSurface),borderRadiusM:$.FtCssVariableFactory.external($.designSystemVariables.borderRadiusM,"Design system"),colorOutline:$.FtCssVariableFactory.external($.designSystemVariables.colorOutline,"Design system"),colorOnSurface:$.FtCssVariableFactory.external($.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:$.FtCssVariableFactory.external($.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:$.FtCssVariableFactory.external($.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:$.FtCssVariableFactory.external($.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:$.FtCssVariableFactory.external($.designSystemVariables.colorOnPrimary,"Design system"),fontFamily:$.FtCssVariableFactory.external(J.fontFamily,"Body2 typography"),fontSize:$.FtCssVariableFactory.external(J.fontSize,"Body2 typography"),fontWeight:$.FtCssVariableFactory.external(J.fontWeight,"Body2 typography"),letterSpacing:$.FtCssVariableFactory.external(J.letterSpacing,"Body2 typography"),lineHeight:$.FtCssVariableFactory.external(J.lineHeight,"Body2 typography"),textTransform:$.FtCssVariableFactory.external(J.textTransform,"Body2 typography")},yu=mu.css`
785
786
  .ft-filter-level--container {
786
787
  display: flex;
787
788
  flex-direction: column;
@@ -796,14 +797,14 @@
796
797
  flex-shrink: 0;
797
798
  text-decoration: none;
798
799
  position: relative;
799
- border-radius: ${bi.borderRadiusM};
800
+ border-radius: ${Si.borderRadiusM};
800
801
  overflow: hidden;
801
802
  display: flex;
802
803
  align-items: center;
803
804
  padding: 4px 4px;
804
805
  gap: 4px;
805
806
  cursor: pointer;
806
- color: ${bi.colorOnSurface};
807
+ color: ${Si.colorOnSurface};
807
808
  }
808
809
 
809
810
  .ft-filter-level--go-back:focus {
@@ -832,11 +833,11 @@
832
833
  }
833
834
 
834
835
  ft-button {
835
- ${(0,$.setVariable)(k.color,bi.colorOnSurface)};
836
+ ${(0,$.setVariable)(L.color,Si.colorOnSurface)};
836
837
  }
837
838
 
838
839
  ft-button.ft-filter-level--display-more {
839
- ${(0,$.setVariable)(k.color,bi.buttonMoreColor)};
840
+ ${(0,$.setVariable)(L.color,Si.buttonMoreColor)};
840
841
  }
841
842
 
842
843
  ft-radio, ft-checkbox {
@@ -850,17 +851,17 @@
850
851
 
851
852
  .ft-filter-level--no-values {
852
853
  margin: 10px 0;
853
- color: ${bi.colorOnSurfaceMedium};
854
+ color: ${Si.colorOnSurfaceMedium};
854
855
  }
855
- `;var fr=d(R()),F=d(U()),X=d(v());var Ie=d(R()),ie=d(U()),Pu=d(Kn()),Oe=d(v());var Un=d(R()),Qe=d(U()),bu=d(v()),xu=d(Gt());var oe=d(v()),gu=d(R());var Ne={textColor:oe.FtCssVariableFactory.extend("--ft-checkbox-text-color","",oe.designSystemVariables.colorOnSurfaceHigh),fontSize:oe.FtCssVariableFactory.extend("--ft-checkbox-font-size","",g.fontSize),activeColor:oe.FtCssVariableFactory.extend("--ft-checkbox-active-color","",oe.designSystemVariables.colorPrimary),checkColor:oe.FtCssVariableFactory.extend("--ft-checkbox-check-color","",oe.designSystemVariables.colorOnPrimary),borderColor:oe.FtCssVariableFactory.extend("--ft-checkbox-border-color","",oe.designSystemVariables.colorOnSurfaceMedium),disabledColor:oe.FtCssVariableFactory.extend("--ft-checkbox-disabled-color","",oe.designSystemVariables.colorOnSurfaceDisabled),errorColor:oe.FtCssVariableFactory.extend("--ft-checkbox-error-color","",oe.designSystemVariables.colorError)},vu=gu.css`
856
+ `;var mr=d(R()),U=d(B()),X=d(v());var Me=d(R()),ie=d(B()),Pu=d(Kn()),Oe=d(v());var Vn=d(R()),qe=d(B()),bu=d(v()),xu=d(Xt());var ae=d(v()),gu=d(R());var Pe={textColor:ae.FtCssVariableFactory.extend("--ft-checkbox-text-color","",ae.designSystemVariables.colorOnSurfaceHigh),fontSize:ae.FtCssVariableFactory.extend("--ft-checkbox-font-size","",g.fontSize),activeColor:ae.FtCssVariableFactory.extend("--ft-checkbox-active-color","",ae.designSystemVariables.colorPrimary),checkColor:ae.FtCssVariableFactory.extend("--ft-checkbox-check-color","",ae.designSystemVariables.colorOnPrimary),borderColor:ae.FtCssVariableFactory.extend("--ft-checkbox-border-color","",ae.designSystemVariables.colorOnSurfaceMedium),disabledColor:ae.FtCssVariableFactory.extend("--ft-checkbox-disabled-color","",ae.designSystemVariables.colorOnSurfaceDisabled),errorColor:ae.FtCssVariableFactory.extend("--ft-checkbox-error-color","",ae.designSystemVariables.colorError)},vu=gu.css`
856
857
  * {
857
858
  box-sizing: border-box;
858
859
  }
859
860
 
860
861
  .ft-checkbox {
861
862
  box-sizing: border-box;
862
- color: ${Ne.textColor};
863
- font-size: ${Ne.fontSize};
863
+ color: ${Pe.textColor};
864
+ font-size: ${Pe.fontSize};
864
865
 
865
866
  display: inline-flex;
866
867
  align-items: center;
@@ -868,7 +869,7 @@
868
869
  }
869
870
 
870
871
  .ft-checkbox--disabled {
871
- color: ${Ne.disabledColor};
872
+ color: ${Pe.disabledColor};
872
873
  }
873
874
 
874
875
  input {
@@ -892,26 +893,26 @@
892
893
 
893
894
  .ft-checkbox--box {
894
895
  display: flex;
895
- border: 2px solid ${Ne.borderColor};
896
+ border: 2px solid ${Pe.borderColor};
896
897
  border-radius: 2px;
897
898
 
898
899
  width: 18px;
899
900
  height: 18px;
900
901
 
901
- color: ${Ne.checkColor};
902
+ color: ${Pe.checkColor};
902
903
  }
903
904
 
904
905
 
905
906
  .ft-checkbox--checked .ft-checkbox--box,
906
907
  .ft-checkbox--indeterminate .ft-checkbox--box {
907
- border-color: ${Ne.activeColor};
908
- background-color: ${Ne.activeColor};
908
+ border-color: ${Pe.activeColor};
909
+ background-color: ${Pe.activeColor};
909
910
  }
910
911
 
911
912
  .ft-checkbox--disabled .ft-checkbox--box {
912
- border-color: ${Ne.disabledColor};
913
+ border-color: ${Pe.disabledColor};
913
914
  background-color: transparent;
914
- color: ${Ne.disabledColor};
915
+ color: ${Pe.disabledColor};
915
916
  }
916
917
 
917
918
  .ft-checkbox--checkmark {
@@ -932,29 +933,29 @@
932
933
  }
933
934
 
934
935
  .ft-checkbox.ft-checkbox--error {
935
- color: ${Ne.errorColor};
936
- ${(0,oe.setVariable)(re.color,Ne.errorColor)};
936
+ color: ${Pe.errorColor};
937
+ ${(0,ae.setVariable)(re.color,Pe.errorColor)};
937
938
 
938
939
  .ft-checkbox--box {
939
- border-color: ${Ne.errorColor};
940
+ border-color: ${Pe.errorColor};
940
941
  }
941
942
 
942
943
  &.ft-checkbox--checked, &.ft-checkbox--indeterminate {
943
944
  .ft-checkbox--box {
944
- background-color: ${Ne.errorColor};
945
+ background-color: ${Pe.errorColor};
945
946
  }
946
947
  }
947
948
  }
948
949
 
949
950
  .ft-checkbox:has(:focus-visible) {
950
- outline: 2px solid ${oe.designSystemVariables.colorPrimary};
951
+ outline: 2px solid ${ae.designSystemVariables.colorPrimary};
951
952
  outline-offset: -2px;
952
953
  }
953
954
 
954
955
  .ft-checkbox ft-typography {
955
956
  padding-right: 2px;
956
957
  }
957
- `;var vt=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},eo=class extends CustomEvent{constructor(e){super("change",{detail:e})}},fe=class extends bu.FtLitElement{constructor(){super(...arguments),this.name="",this.value="",this.checked=!1,this.indeterminate=!1,this.disabled=!1,this.error=!1}get checkboxClasses(){return{"ft-checkbox":!0,"ft-checkbox--error":this.error,"ft-checkbox--checked":this.indeterminate?!1:this.checked,"ft-checkbox--indeterminate":this.indeterminate,"ft-checkbox--disabled":this.disabled}}renderBoxContainer(){return Un.html`
958
+ `;var dt=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},eo=class extends CustomEvent{constructor(e){super("change",{detail:e})}},le=class extends bu.FtLitElement{constructor(){super(...arguments),this.name="",this.value="",this.checked=!1,this.indeterminate=!1,this.disabled=!1,this.error=!1,this.ariaLabel=null}get checkboxClasses(){return{"ft-checkbox":!0,"ft-checkbox--error":this.error,"ft-checkbox--checked":this.indeterminate?!1:this.checked,"ft-checkbox--indeterminate":this.indeterminate,"ft-checkbox--disabled":this.disabled}}renderBoxContainer(){return Vn.html`
958
959
  <div class="ft-checkbox--box-container" part="checkbox-box-container">
959
960
  <ft-ripple part="checkbox-ripple"
960
961
  ?disabled=${this.disabled}
@@ -970,33 +971,34 @@
970
971
  name="${this.name}"
971
972
  aria-checked="${this.indeterminate?"mixed":this.checked?"true":"false"}"
972
973
  role="checkbox"
974
+ aria-label="${Pt(this.ariaLabel)}"
973
975
  .checked=${this.indeterminate?!1:this.checked}
974
976
  .indeterminate=${this.indeterminate}
975
977
  .disabled=${this.disabled}
976
978
  @change=${this.onChange}
977
979
  >
978
980
  </div>
979
- `}render(){return Un.html`
981
+ `}render(){return Vn.html`
980
982
  <label class="${(0,xu.classMap)(this.checkboxClasses)}" for="checkbox-input" part="checkbox-label">
981
983
  ${this.renderBoxContainer()}
982
- <ft-typography variant="${de.body2}" part="checkbox-body">
984
+ <ft-typography variant="${fe.body2}" part="checkbox-body">
983
985
  <slot @slotchange=${this.onSlotchange}></slot>
984
986
  </ft-typography>
985
987
  </label>
986
- `}renderBoxIcon(){return Un.html`
988
+ `}renderBoxIcon(){return Vn.html`
987
989
  <svg class="ft-checkbox--checkmark" viewBox="0 0 24 24" part="checkbox-check" aria-hidden="true">
988
990
  <path class="ft-checkbox--checkmark-path" fill="none"
989
991
  d="${this.indeterminate&&!this.checked?"M2,12 22,12":"M1.73,12.91 8.1,19.28 22.79,4.59"}"></path>
990
992
  </svg>
991
- `}onSlotchange(){this.requestUpdate()}willUpdate(e){super.willUpdate(e),e.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.indeterminate=!1,this.dispatchEvent(new eo(this.checked))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),(r=this.ripple)===null||r===void 0||r.setupFor(this.container)}click(){this.input.click()}focus(){this.input.focus(),setTimeout(()=>{var e;(e=this.ripple)===null||e===void 0||e.forceFocusUpdate()},0)}};fe.elementDefinitions={"ft-ripple":P,"ft-typography":q};fe.styles=vu;vt([(0,Qe.property)()],fe.prototype,"name",void 0);vt([(0,Qe.property)()],fe.prototype,"value",void 0);vt([(0,Qe.property)({type:Boolean,reflect:!0})],fe.prototype,"checked",void 0);vt([(0,Qe.property)({type:Boolean})],fe.prototype,"indeterminate",void 0);vt([(0,Qe.property)({type:Boolean})],fe.prototype,"disabled",void 0);vt([(0,Qe.property)({type:Boolean})],fe.prototype,"error",void 0);vt([(0,Qe.query)(".ft-checkbox")],fe.prototype,"container",void 0);vt([(0,Qe.query)("ft-ripple")],fe.prototype,"ripple",void 0);vt([(0,Qe.query)("input")],fe.prototype,"input",void 0);var Eu=d(v());var Su={"ft-checkbox":fe};(0,Eu.customElements)(Su);var Cu=d(R()),ct=d(U()),wu=d(v()),Ou=d(Gt());var Au=d(R()),we=d(v());var Nt={textColor:we.FtCssVariableFactory.extend("--ft-radio-text-color","",we.designSystemVariables.colorOnSurfaceHigh),fontSize:we.FtCssVariableFactory.extend("--ft-radio-font-size","",g.fontSize),colorPrimary:we.FtCssVariableFactory.external(we.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:we.FtCssVariableFactory.external(we.designSystemVariables.colorOnPrimary,"Design system"),borderColor:we.FtCssVariableFactory.extend("--ft-radio-border-color","",we.designSystemVariables.colorOnSurfaceMedium),colorOnSurfaceDisabled:we.FtCssVariableFactory.external(we.designSystemVariables.colorOnSurfaceDisabled,"Design system")},_u=Au.css`
993
+ `}onSlotchange(){this.requestUpdate()}willUpdate(e){super.willUpdate(e),e.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.indeterminate=!1,this.dispatchEvent(new eo(this.checked))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),(r=this.ripple)===null||r===void 0||r.setupFor(this.container)}click(){this.input.click()}focus(){this.input.focus(),setTimeout(()=>{var e;(e=this.ripple)===null||e===void 0||e.forceFocusUpdate()},0)}};le.elementDefinitions={"ft-ripple":P,"ft-typography":K};le.styles=vu;dt([(0,qe.property)()],le.prototype,"name",void 0);dt([(0,qe.property)()],le.prototype,"value",void 0);dt([(0,qe.property)({type:Boolean,reflect:!0})],le.prototype,"checked",void 0);dt([(0,qe.property)({type:Boolean})],le.prototype,"indeterminate",void 0);dt([(0,qe.property)({type:Boolean})],le.prototype,"disabled",void 0);dt([(0,qe.property)({type:Boolean})],le.prototype,"error",void 0);dt([(0,qe.property)({attribute:"aria-label"})],le.prototype,"ariaLabel",void 0);dt([(0,qe.query)(".ft-checkbox")],le.prototype,"container",void 0);dt([(0,qe.query)("ft-ripple")],le.prototype,"ripple",void 0);dt([(0,qe.query)("input")],le.prototype,"input",void 0);var Eu=d(v());var Su={"ft-checkbox":le};(0,Eu.customElements)(Su);var Cu=d(R()),pt=d(B()),wu=d(v()),Ou=d(Xt());var Au=d(R()),we=d(v());var Mt={textColor:we.FtCssVariableFactory.extend("--ft-radio-text-color","",we.designSystemVariables.colorOnSurfaceHigh),fontSize:we.FtCssVariableFactory.extend("--ft-radio-font-size","",g.fontSize),colorPrimary:we.FtCssVariableFactory.external(we.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:we.FtCssVariableFactory.external(we.designSystemVariables.colorOnPrimary,"Design system"),borderColor:we.FtCssVariableFactory.extend("--ft-radio-border-color","",we.designSystemVariables.colorOnSurfaceMedium),colorOnSurfaceDisabled:we.FtCssVariableFactory.external(we.designSystemVariables.colorOnSurfaceDisabled,"Design system")},_u=Au.css`
992
994
  * {
993
995
  box-sizing: border-box;
994
996
  }
995
997
 
996
998
  .ft-radio {
997
999
  box-sizing: border-box;
998
- color: ${Nt.textColor};
999
- font-size: ${Nt.fontSize};
1000
+ color: ${Mt.textColor};
1001
+ font-size: ${Mt.fontSize};
1000
1002
 
1001
1003
  display: inline-flex;
1002
1004
  align-items: center;
@@ -1004,7 +1006,7 @@
1004
1006
  }
1005
1007
 
1006
1008
  .ft-radio--disabled {
1007
- color: ${Nt.colorOnSurfaceDisabled};
1009
+ color: ${Mt.colorOnSurfaceDisabled};
1008
1010
  }
1009
1011
 
1010
1012
  input {
@@ -1027,7 +1029,7 @@
1027
1029
  }
1028
1030
 
1029
1031
  .ft-radio--box {
1030
- border: 2px solid ${Nt.borderColor};
1032
+ border: 2px solid ${Mt.borderColor};
1031
1033
  border-radius: 50%;
1032
1034
 
1033
1035
  display: flex;
@@ -1040,7 +1042,7 @@
1040
1042
 
1041
1043
  .ft-radio--box:after {
1042
1044
  content: " ";
1043
- background-color: ${Nt.colorPrimary};
1045
+ background-color: ${Mt.colorPrimary};
1044
1046
 
1045
1047
  border-radius: 50%;
1046
1048
 
@@ -1052,7 +1054,7 @@
1052
1054
  }
1053
1055
 
1054
1056
  .ft-radio--checked .ft-radio--box {
1055
- border-color: ${Nt.colorPrimary};
1057
+ border-color: ${Mt.colorPrimary};
1056
1058
  }
1057
1059
 
1058
1060
 
@@ -1061,12 +1063,12 @@
1061
1063
  }
1062
1064
 
1063
1065
  .ft-radio--disabled .ft-radio--box {
1064
- border-color: ${Nt.colorOnSurfaceDisabled};
1066
+ border-color: ${Mt.colorOnSurfaceDisabled};
1065
1067
  background-color: transparent;
1066
1068
  }
1067
1069
 
1068
1070
  .ft-radio--disabled .ft-radio--box:after {
1069
- background-color: ${Nt.colorOnSurfaceDisabled};
1071
+ background-color: ${Mt.colorOnSurfaceDisabled};
1070
1072
  }
1071
1073
 
1072
1074
  .ft-radio:has(:focus-visible) {
@@ -1077,7 +1079,7 @@
1077
1079
  .ft-radio ft-typography {
1078
1080
  padding-right: 2px;
1079
1081
  }
1080
- `;var Pt=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Bn=class extends CustomEvent{constructor(e,r){super("change",{detail:{value:e,checked:r},bubbles:!0,composed:!0})}},ae=class extends wu.FtLitElement{constructor(){super(...arguments),this.name="",this.value="",this.checked=!1,this.ariaChecked="false",this.disabled=!1}get radioClasses(){return{"ft-radio":!0,"ft-radio--checked":this.checked,"ft-radio--disabled":this.disabled}}render(){return Cu.html`
1082
+ `;var $t=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Hn=class extends CustomEvent{constructor(e,r){super("change",{detail:{value:e,checked:r},bubbles:!0,composed:!0})}},ce=class extends wu.FtLitElement{constructor(){super(...arguments),this.name="",this.value="",this.checked=!1,this.ariaChecked="false",this.disabled=!1}get radioClasses(){return{"ft-radio":!0,"ft-radio--checked":this.checked,"ft-radio--disabled":this.disabled}}render(){return Cu.html`
1081
1083
  <div class="${(0,Ou.classMap)(this.radioClasses)}"
1082
1084
  @click=${this.onClick}>
1083
1085
  <div class="ft-radio--box-container">
@@ -1098,12 +1100,12 @@
1098
1100
  >
1099
1101
  </div>
1100
1102
  <label for="radio-button" inert>
1101
- <ft-typography variant="${de.body2}">
1103
+ <ft-typography variant="${fe.body2}">
1102
1104
  <slot></slot>
1103
1105
  </ft-typography>
1104
1106
  </label>
1105
1107
  </div>
1106
- `}willUpdate(e){super.willUpdate(e),e.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.dispatchEvent(new Bn(this.value,this.checked))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),(r=this.ripple)===null||r===void 0||r.setupFor(this.container)}select(){this.checked=!0,this.dispatchEvent(new Bn(this.value,this.checked))}setInputTabIndex(e){this.input&&(this.input.tabIndex=e)}focus(){var e;(e=this.input)===null||e===void 0||e.focus(),setTimeout(()=>{var r;return(r=this.ripple)===null||r===void 0?void 0:r.forceFocusUpdate()},0)}onClick(e){var r;e.target!==this.input&&(e.stopPropagation(),e.preventDefault(),(r=this.input)===null||r===void 0||r.click())}};ae.elementDefinitions={"ft-ripple":P,"ft-typography":q};ae.styles=_u;Pt([(0,ct.property)()],ae.prototype,"name",void 0);Pt([(0,ct.property)()],ae.prototype,"value",void 0);Pt([(0,ct.property)({type:Boolean,reflect:!0})],ae.prototype,"checked",void 0);Pt([(0,ct.property)({attribute:"aria-checked",reflect:!0})],ae.prototype,"ariaChecked",void 0);Pt([(0,ct.property)({type:Boolean})],ae.prototype,"disabled",void 0);Pt([(0,ct.query)(".ft-radio")],ae.prototype,"container",void 0);Pt([(0,ct.query)("ft-ripple")],ae.prototype,"ripple",void 0);Pt([(0,ct.query)("input")],ae.prototype,"input",void 0);var Lu=d(v()),It=d(U()),ku=d(R());var Tu=d(R());var Ru=Tu.css`
1108
+ `}willUpdate(e){super.willUpdate(e),e.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.dispatchEvent(new Hn(this.value,this.checked))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),(r=this.ripple)===null||r===void 0||r.setupFor(this.container)}select(){this.checked=!0,this.dispatchEvent(new Hn(this.value,this.checked))}setInputTabIndex(e){this.input&&(this.input.tabIndex=e)}focus(){var e;(e=this.input)===null||e===void 0||e.focus(),setTimeout(()=>{var r;return(r=this.ripple)===null||r===void 0?void 0:r.forceFocusUpdate()},0)}onClick(e){var r;e.target!==this.input&&(e.stopPropagation(),e.preventDefault(),(r=this.input)===null||r===void 0||r.click())}};ce.elementDefinitions={"ft-ripple":P,"ft-typography":K};ce.styles=_u;$t([(0,pt.property)()],ce.prototype,"name",void 0);$t([(0,pt.property)()],ce.prototype,"value",void 0);$t([(0,pt.property)({type:Boolean,reflect:!0})],ce.prototype,"checked",void 0);$t([(0,pt.property)({attribute:"aria-checked",reflect:!0})],ce.prototype,"ariaChecked",void 0);$t([(0,pt.property)({type:Boolean})],ce.prototype,"disabled",void 0);$t([(0,pt.query)(".ft-radio")],ce.prototype,"container",void 0);$t([(0,pt.query)("ft-ripple")],ce.prototype,"ripple",void 0);$t([(0,pt.query)("input")],ce.prototype,"input",void 0);var ku=d(v()),Ft=d(B()),Lu=d(R());var Tu=d(R());var Ru=Tu.css`
1107
1109
  :host {
1108
1110
  display: block;
1109
1111
  }
@@ -1111,14 +1113,14 @@
1111
1113
  :host(:focus-visible) {
1112
1114
  outline: none;
1113
1115
  }
1114
- `;var xi=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Pe=class extends Lu.FtLitElement{constructor(){super(...arguments),this.name="",this.role="radiogroup",this.ariaLabelledBy="",this.currentSelectedIndex=0,this.onFocus=()=>{setTimeout(()=>this.focusCurrentChecked(),100)}}get radioButtons(){var e,r;return(r=(e=this.assignedElements)===null||e===void 0?void 0:e.flatMap(i=>i.matches("ft-radio,ftds-radio")?[i]:[...i.querySelectorAll("ft-radio,ftds-radio")]))!==null&&r!==void 0?r:[]}render(){return ku.html`
1116
+ `;var Ei=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Ie=class extends ku.FtLitElement{constructor(){super(...arguments),this.name="",this.role="radiogroup",this.ariaLabelledBy="",this.currentSelectedIndex=0,this.onFocus=()=>{setTimeout(()=>this.focusCurrentChecked(),100)}}get radioButtons(){var e,r;return(r=(e=this.assignedElements)===null||e===void 0?void 0:e.flatMap(i=>i.matches("ft-radio,ftds-radio")?[i]:[...i.querySelectorAll("ft-radio,ftds-radio")]))!==null&&r!==void 0?r:[]}render(){return Lu.html`
1115
1117
  <slot @slotchange=${this.onSlotChange}
1116
1118
  @change=${this.onChange}
1117
1119
  @keydown=${this.onKeyDown}
1118
1120
  ></slot>
1119
- `}connectedCallback(){super.connectedCallback(),this.addEventListener("focus",this.onFocus)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this.onFocus)}onSlotChange(){this.radioButtons.forEach(e=>e.name=this.name)}contentAvailableCallback(e){super.contentAvailableCallback(e),this.radioButtons.forEach(r=>r.setInputTabIndex(-1)),this.resolveCurrentSelectedIndex()}onChange(e){e.stopPropagation(),this.radioButtons.forEach(r=>r.checked=e.detail.value===r.value),this.dispatchEvent(new CustomEvent("change",{detail:e.detail.value})),this.resolveCurrentSelectedIndex()}onKeyDown(e){let r=!1;switch(e.key){case"ArrowUp":case"ArrowLeft":{r=!0;let i=this.currentSelectedIndex-1;this.radioButtons[i<0?this.radioButtons.length-1:i].select(),this.radioButtons[i<0?this.radioButtons.length-1:i].focus();break}case"ArrowDown":case"ArrowRight":{r=!0;let i=this.currentSelectedIndex+1;this.radioButtons[i>this.radioButtons.length-1?0:i].select(),this.radioButtons[i>this.radioButtons.length-1?0:i].focus();break}case"Enter":this.radioButtons[this.currentSelectedIndex].select()}r&&(e.stopPropagation(),e.preventDefault())}resolveCurrentSelectedIndex(){let e=this.radioButtons.findIndex(r=>r.checked);e==-1?(this.currentSelectedIndex=0,this.radioButtons[0].select()):this.currentSelectedIndex=e,this.radioButtons[this.currentSelectedIndex].setInputTabIndex(0)}focusCurrentChecked(){this.radioButtons[this.currentSelectedIndex].focus()}};Pe.elementDefinitions={};Pe.styles=Ru;xi([(0,It.property)()],Pe.prototype,"name",void 0);xi([(0,It.property)({reflect:!0,attribute:"role"})],Pe.prototype,"role",void 0);xi([(0,It.property)({reflect:!0,attribute:"aria-labelledby"})],Pe.prototype,"ariaLabelledBy",void 0);xi([(0,It.queryAssignedElements)()],Pe.prototype,"assignedElements",void 0);xi([(0,It.state)()],Pe.prototype,"currentSelectedIndex",void 0);var Nu=d(v());var Du={"ft-radio":ae,"ft-radio-group":Pe};(0,Nu.customElements)(Du);var he=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},to={"more-filters-button-pressed":{label:"Revealing more filters",defaultEventName:"filters-click_see_more",defaultComponentId:"ft-filter-level"}},K=class extends(0,Oe.withAnalytics)(at((0,Oe.withAriaNotification)(Oe.FtLitElement)),to){constructor(){super(...arguments),this.filterId="",this.options=[],this.multivalued=!1,this.disabled=!1,this.hideSelectedOptions=!1,this.displayCount=!1,this.preventNavigation=!1,this.filter="",this.moreValuesButtonLabel="More",this.displayedValuesLimit=0,this.displayedPages=1,this.filteredOptions=[],this.ariaNotificationDebouncer=new Oe.Debouncer(500)}get hasHiddenValues(){let e=this.limit;return e!=null&&e<this.options.length}get limit(){return this.displayedValuesLimit>0?this.displayedPages*this.displayedValuesLimit:void 0}get height(){var e,r;return(r=(e=this.container)===null||e===void 0?void 0:e.scrollHeight)!==null&&r!==void 0?r:0}focusOnBackButton(){this.elementToFocus={selector:".ft-filter-level--go-back"}}focusOnExpandButton(e){this.elementToFocus={selector:`.ft-filter-level--option ft-button[part="controls navigate-hierarchy"][data-value="${e}"]`}}focusOnFirstOption(){this.elementToFocus={selector:'.ft-filter-level--option [part~="option"]'}}willUpdate(e){super.willUpdate(e),(e.has("options")||e.has("hideSelectedOptions")||e.has("filter"))&&this.updateFilteredOptions()}updateFilteredOptions(){let e=[...this.options];this.hideSelectedOptions&&(e=e.filter(r=>!r.selected)),this.filter&&(e=e.filter(r=>r.label.toLowerCase().includes(this.filter.toLowerCase()))),this.filteredOptions=e}render(){let e=this.filteredOptions.slice(0,this.limit);return Ie.html`
1121
+ `}connectedCallback(){super.connectedCallback(),this.addEventListener("focus",this.onFocus)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this.onFocus)}onSlotChange(){this.radioButtons.forEach(e=>e.name=this.name)}contentAvailableCallback(e){super.contentAvailableCallback(e),this.radioButtons.forEach(r=>r.setInputTabIndex(-1)),this.resolveCurrentSelectedIndex()}onChange(e){e.stopPropagation(),this.radioButtons.forEach(r=>r.checked=e.detail.value===r.value),this.dispatchEvent(new CustomEvent("change",{detail:e.detail.value})),this.resolveCurrentSelectedIndex()}onKeyDown(e){let r=!1;switch(e.key){case"ArrowUp":case"ArrowLeft":{r=!0;let i=this.currentSelectedIndex-1;this.radioButtons[i<0?this.radioButtons.length-1:i].select(),this.radioButtons[i<0?this.radioButtons.length-1:i].focus();break}case"ArrowDown":case"ArrowRight":{r=!0;let i=this.currentSelectedIndex+1;this.radioButtons[i>this.radioButtons.length-1?0:i].select(),this.radioButtons[i>this.radioButtons.length-1?0:i].focus();break}case"Enter":this.radioButtons[this.currentSelectedIndex].select()}r&&(e.stopPropagation(),e.preventDefault())}resolveCurrentSelectedIndex(){let e=this.radioButtons.findIndex(r=>r.checked);e==-1?(this.currentSelectedIndex=0,this.radioButtons[0].select()):this.currentSelectedIndex=e,this.radioButtons[this.currentSelectedIndex].setInputTabIndex(0)}focusCurrentChecked(){this.radioButtons[this.currentSelectedIndex].focus()}};Ie.elementDefinitions={};Ie.styles=Ru;Ei([(0,Ft.property)()],Ie.prototype,"name",void 0);Ei([(0,Ft.property)({reflect:!0,attribute:"role"})],Ie.prototype,"role",void 0);Ei([(0,Ft.property)({reflect:!0,attribute:"aria-labelledby"})],Ie.prototype,"ariaLabelledBy",void 0);Ei([(0,Ft.queryAssignedElements)()],Ie.prototype,"assignedElements",void 0);Ei([(0,Ft.state)()],Ie.prototype,"currentSelectedIndex",void 0);var Nu=d(v());var Du={"ft-radio":ce,"ft-radio-group":Ie};(0,Nu.customElements)(Du);var me=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},to={"more-filters-button-pressed":{label:"Revealing more filters",defaultEventName:"filters-click_see_more",defaultComponentId:"ft-filter-level"}},W=class extends(0,Oe.withAnalytics)(ct((0,Oe.withAriaNotification)(Oe.FtLitElement)),to){constructor(){super(...arguments),this.filterId="",this.options=[],this.multivalued=!1,this.disabled=!1,this.hideSelectedOptions=!1,this.displayCount=!1,this.preventNavigation=!1,this.filter="",this.moreValuesButtonLabel="More",this.displayedValuesLimit=0,this.displayedPages=1,this.filteredOptions=[],this.ariaNotificationDebouncer=new Oe.Debouncer(500)}get hasHiddenValues(){let e=this.limit;return e!=null&&e<this.options.length}get limit(){return this.displayedValuesLimit>0?this.displayedPages*this.displayedValuesLimit:void 0}get height(){var e,r;return(r=(e=this.container)===null||e===void 0?void 0:e.scrollHeight)!==null&&r!==void 0?r:0}focusOnBackButton(){this.elementToFocus={selector:".ft-filter-level--go-back"}}focusOnExpandButton(e){this.elementToFocus={selector:`.ft-filter-level--option ft-button[part="controls navigate-hierarchy"][data-value="${e}"]`}}focusOnFirstOption(){this.elementToFocus={selector:'.ft-filter-level--option [part~="option"]'}}willUpdate(e){super.willUpdate(e),(e.has("options")||e.has("hideSelectedOptions")||e.has("filter"))&&this.updateFilteredOptions()}updateFilteredOptions(){let e=[...this.options];this.hideSelectedOptions&&(e=e.filter(r=>!r.selected)),this.filter&&(e=e.filter(r=>r.label.toLowerCase().includes(this.filter.toLowerCase()))),this.filteredOptions=e}render(){let e=this.filteredOptions.slice(0,this.limit);return Me.html`
1120
1122
  <div class="ft-filter-level--container ${this.disabled?"ft-filter--disabled":""}">
1121
- ${this.parent==null?null:Ie.html`
1123
+ ${this.parent==null?null:Me.html`
1122
1124
  <div tabindex="0"
1123
1125
  part="controls go-back"
1124
1126
  class="ft-filter-level--go-back"
@@ -1129,18 +1131,18 @@
1129
1131
  @click=${this.goBackOnClick}>
1130
1132
  <ft-ripple></ft-ripple>
1131
1133
  <ft-icon>thin_arrow_left</ft-icon>
1132
- <ft-typography variant="${de.body2}">${this.parent.label}</ft-typography>
1134
+ <ft-typography variant="${fe.body2}">${this.parent.label}</ft-typography>
1133
1135
  </div>
1134
1136
  `}
1135
- ${this.filteredOptions.length===0&&this.noValuesLabel?Ie.html`
1136
- <ft-typography class="ft-filter-level--no-values" element="span" variant="${de.body2}">
1137
+ ${this.filteredOptions.length===0&&this.noValuesLabel?Me.html`
1138
+ <ft-typography class="ft-filter-level--no-values" element="span" variant="${fe.body2}">
1137
1139
  ${this.noValuesLabel}
1138
1140
  </ft-typography>
1139
- `:Ie.nothing}
1140
- ${(0,Pu.repeat)(e,r=>r.value,r=>{var i;return Ie.html`
1141
+ `:Me.nothing}
1142
+ ${(0,Pu.repeat)(e,r=>r.value,r=>{var i;return Me.html`
1141
1143
  <div class="ft-filter-level--option" part="options" tabindex="-1">
1142
1144
  ${this.multivalued?this.buildMultiValuedOption(r):this.buildMonoValuedOption(r)}
1143
- ${this.preventNavigation||r.selected||((i=r.subOptions)!==null&&i!==void 0?i:[]).length===0?Ie.nothing:Ie.html`
1145
+ ${this.preventNavigation||r.selected||((i=r.subOptions)!==null&&i!==void 0?i:[]).length===0?Me.nothing:Me.html`
1144
1146
  <ft-button icon="thin_arrow_right"
1145
1147
  part="controls navigate-hierarchy"
1146
1148
  aria-label="Expand node"
@@ -1151,7 +1153,7 @@
1151
1153
  `}
1152
1154
  </div>
1153
1155
  `})}
1154
- ${e.length<this.filteredOptions.length?Ie.html`
1156
+ ${e.length<this.filteredOptions.length?Me.html`
1155
1157
  <ft-button
1156
1158
  class="ft-filter-level--display-more"
1157
1159
  icon="thin_arrow"
@@ -1160,9 +1162,9 @@
1160
1162
  @click=${()=>{this.emitAnalyticsAction("more-filters-button-pressed",{}),this.displayMore()}}>
1161
1163
  ${this.moreValuesButtonLabel}
1162
1164
  </ft-button>
1163
- `:Ie.nothing}
1165
+ `:Me.nothing}
1164
1166
  </div>
1165
- `}goBackOnKeyPress(e){(e.key==="Enter"||e.key===" ")&&this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}goBackOnClick(e){e.stopPropagation(),e.preventDefault(),this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}displayMore(){var e;let r=(e=this.limit)!==null&&e!==void 0?e:0,i=this.parent!=null;this.displayedPages++,this.elementToFocus={selector:`.ft-filter-level--option:nth-child(${r+(i?2:1)}) [part~="option"]`}}buildMultiValuedOption(e){var r;return Ie.html`
1167
+ `}goBackOnKeyPress(e){(e.key==="Enter"||e.key===" ")&&this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}goBackOnClick(e){e.stopPropagation(),e.preventDefault(),this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}displayMore(){var e;let r=(e=this.limit)!==null&&e!==void 0?e:0,i=this.parent!=null;this.displayedPages++,this.elementToFocus={selector:`.ft-filter-level--option:nth-child(${r+(i?2:1)}) [part~="option"]`}}buildMultiValuedOption(e){var r;return Me.html`
1166
1168
  <ft-checkbox name="${this.filterId}"
1167
1169
  part="multivalued-option option"
1168
1170
  .exportpartsPrefixes=${["multivalued-option","option"]}
@@ -1173,7 +1175,7 @@
1173
1175
  @change=${i=>this.optionsChanged(i,e)}>
1174
1176
  ${e.renderOption?e.renderOption:e.label}${this.displayCount?` (${e.count})`:""}
1175
1177
  </ft-checkbox>
1176
- `}buildMonoValuedOption(e){return Ie.html`
1178
+ `}buildMonoValuedOption(e){return Me.html`
1177
1179
  <ft-radio name="${this.filterId+Math.round(Math.random()*1e6)}"
1178
1180
  part="monovalued-option option"
1179
1181
  data-value="${e.value}"
@@ -1184,7 +1186,7 @@
1184
1186
  @change=${r=>this.optionsChanged(r,e)}>
1185
1187
  ${e.renderOption?e.renderOption:e.label}${this.displayCount?` (${e.count})`:""}
1186
1188
  </ft-radio>
1187
- `}onRadioKeyDown(e,r){e.stopPropagation(),(e.key===" "||e.key==="Enter")&&(e.preventDefault(),this.optionsChanged(e,r))}optionsChanged(e,r){e.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:r}))}displayLevel(e){this.dispatchEvent(new CustomEvent("display-level",{detail:e}))}updated(e){super.updated(e),e.has("filter")&&e.has("filteredOptions")&&e.get("filteredOptions")!==void 0&&e.get("filter")!==void 0&&this.ariaNotificationDebouncer.run(async()=>{if(this.filteredOptionsNumberAriaNotification==null)return;let r=await this.awaitI18n({...this.filteredOptionsNumberAriaNotification,args:[this.filteredOptions.length]});this.sendAriaNotification(r)})}};K.elementDefinitions={"ft-button":O,"ft-ripple":P,"ft-typography":q,"ft-checkbox":fe,"ft-icon":pe,"ft-radio":ae};K.styles=yu;he([(0,ie.property)({type:String})],K.prototype,"filterId",void 0);he([(0,ie.property)({type:Object})],K.prototype,"parent",void 0);he([(0,ie.property)({type:Array,hasChanged:Oe.hasChanged})],K.prototype,"options",void 0);he([(0,ie.property)({type:Boolean})],K.prototype,"multivalued",void 0);he([(0,ie.property)({type:Boolean})],K.prototype,"disabled",void 0);he([(0,ie.property)({type:Boolean})],K.prototype,"hideSelectedOptions",void 0);he([(0,ie.property)({type:Boolean})],K.prototype,"displayCount",void 0);he([(0,ie.property)({type:Boolean})],K.prototype,"preventNavigation",void 0);he([(0,ie.property)({type:String})],K.prototype,"filter",void 0);he([(0,ie.property)({type:String})],K.prototype,"moreValuesButtonLabel",void 0);he([(0,ie.property)({type:String})],K.prototype,"noValuesLabel",void 0);he([(0,ie.property)()],K.prototype,"filteredOptionsNumberAriaNotification",void 0);he([(0,Oe.numberProperty)()],K.prototype,"displayedValuesLimit",void 0);he([(0,ie.query)(".ft-filter-level--container")],K.prototype,"container",void 0);he([(0,ie.state)()],K.prototype,"radios",void 0);he([(0,ie.state)()],K.prototype,"displayedPages",void 0);he([(0,ie.state)()],K.prototype,"filteredOptions",void 0);var $u=d(R()),Me=d(U()),pr=d(v());var Fu=d(Gt());var Iu=d(R()),Ze=d(v());var Mt={buttonsColor:Ze.FtCssVariableFactory.extend("--ft-snap-scroll-buttons-color","",Ze.designSystemVariables.colorPrimary),buttonsZIndex:Ze.FtCssVariableFactory.create("--ft-snap-scroll-buttons-z-index","","NUMBER","1"),gap:Ze.FtCssVariableFactory.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:Ze.FtCssVariableFactory.external(Ze.designSystemVariables.colorSurface,"Design system")},Mu=Iu.css`
1189
+ `}onRadioKeyDown(e,r){e.stopPropagation(),(e.key===" "||e.key==="Enter")&&(e.preventDefault(),this.optionsChanged(e,r))}optionsChanged(e,r){e.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:r}))}displayLevel(e){this.dispatchEvent(new CustomEvent("display-level",{detail:e}))}updated(e){super.updated(e),e.has("filter")&&e.has("filteredOptions")&&e.get("filteredOptions")!==void 0&&e.get("filter")!==void 0&&this.ariaNotificationDebouncer.run(async()=>{if(this.filteredOptionsNumberAriaNotification==null)return;let r=await this.awaitI18n({...this.filteredOptionsNumberAriaNotification,args:[this.filteredOptions.length]});this.sendAriaNotification(r)})}};W.elementDefinitions={"ft-button":w,"ft-ripple":P,"ft-typography":K,"ft-checkbox":le,"ft-icon":he,"ft-radio":ce};W.styles=yu;me([(0,ie.property)({type:String})],W.prototype,"filterId",void 0);me([(0,ie.property)({type:Object})],W.prototype,"parent",void 0);me([(0,ie.property)({type:Array,hasChanged:Oe.hasChanged})],W.prototype,"options",void 0);me([(0,ie.property)({type:Boolean})],W.prototype,"multivalued",void 0);me([(0,ie.property)({type:Boolean})],W.prototype,"disabled",void 0);me([(0,ie.property)({type:Boolean})],W.prototype,"hideSelectedOptions",void 0);me([(0,ie.property)({type:Boolean})],W.prototype,"displayCount",void 0);me([(0,ie.property)({type:Boolean})],W.prototype,"preventNavigation",void 0);me([(0,ie.property)({type:String})],W.prototype,"filter",void 0);me([(0,ie.property)({type:String})],W.prototype,"moreValuesButtonLabel",void 0);me([(0,ie.property)({type:String})],W.prototype,"noValuesLabel",void 0);me([(0,ie.property)()],W.prototype,"filteredOptionsNumberAriaNotification",void 0);me([(0,Oe.numberProperty)()],W.prototype,"displayedValuesLimit",void 0);me([(0,ie.query)(".ft-filter-level--container")],W.prototype,"container",void 0);me([(0,ie.state)()],W.prototype,"radios",void 0);me([(0,ie.state)()],W.prototype,"displayedPages",void 0);me([(0,ie.state)()],W.prototype,"filteredOptions",void 0);var $u=d(R()),$e=d(B()),hr=d(v());var Fu=d(Xt());var Iu=d(R()),Je=d(v());var Ut={buttonsColor:Je.FtCssVariableFactory.extend("--ft-snap-scroll-buttons-color","",Je.designSystemVariables.colorPrimary),buttonsZIndex:Je.FtCssVariableFactory.create("--ft-snap-scroll-buttons-z-index","","NUMBER","1"),gap:Je.FtCssVariableFactory.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:Je.FtCssVariableFactory.external(Je.designSystemVariables.colorSurface,"Design system")},Mu=Iu.css`
1188
1190
  .ft-snap-scroll {
1189
1191
  box-sizing: border-box;
1190
1192
  position: relative;
@@ -1219,7 +1221,7 @@
1219
1221
  flex-wrap: nowrap;
1220
1222
  align-items: flex-start;
1221
1223
  justify-content: flex-start;
1222
- gap: ${Mt.gap};
1224
+ gap: ${Ut.gap};
1223
1225
  }
1224
1226
 
1225
1227
  .ft-snap-scroll--hide-scrollbar .ft-snap-scroll--content::-webkit-scrollbar {
@@ -1262,11 +1264,11 @@
1262
1264
  .ft-snap-scroll--next {
1263
1265
  position: absolute;
1264
1266
  display: flex;
1265
- z-index: ${Mt.buttonsZIndex};
1267
+ z-index: ${Ut.buttonsZIndex};
1266
1268
  opacity: 1;
1267
1269
  transition: background-color .5s ease-in-out, opacity .5s ease-in-out, z-index .5s ease-in-out;
1268
- ${(0,Ze.setVariable)(k.backgroundColor,"transparent")};
1269
- ${(0,Ze.setVariable)(k.color,Mt.buttonsColor)};
1270
+ ${(0,Je.setVariable)(L.backgroundColor,"transparent")};
1271
+ ${(0,Je.setVariable)(L.color,Ut.buttonsColor)};
1270
1272
  }
1271
1273
 
1272
1274
  .ft-snap-scroll--previous[hidden],
@@ -1279,37 +1281,37 @@
1279
1281
  top: 0;
1280
1282
  left: -1px;
1281
1283
  bottom: 0;
1282
- background: linear-gradient(to right, ${Mt.colorSurface} 50%, var(--snap-scroll-transparent-color));
1284
+ background: linear-gradient(to right, ${Ut.colorSurface} 50%, var(--snap-scroll-transparent-color));
1283
1285
  }
1284
1286
 
1285
1287
  .ft-snap-scroll--vertical .ft-snap-scroll--previous {
1286
1288
  top: -1px;
1287
1289
  left: 0;
1288
1290
  right: 0;
1289
- background: linear-gradient(to bottom, ${Mt.colorSurface} 50%, var(--snap-scroll-transparent-color));
1291
+ background: linear-gradient(to bottom, ${Ut.colorSurface} 50%, var(--snap-scroll-transparent-color));
1290
1292
  }
1291
1293
 
1292
1294
  .ft-snap-scroll--horizontal .ft-snap-scroll--next {
1293
1295
  top: 0;
1294
1296
  right: -1px;
1295
1297
  bottom: 0;
1296
- background: linear-gradient(to left, ${Mt.colorSurface} 50%, var(--snap-scroll-transparent-color));
1298
+ background: linear-gradient(to left, ${Ut.colorSurface} 50%, var(--snap-scroll-transparent-color));
1297
1299
  }
1298
1300
 
1299
1301
  .ft-snap-scroll--vertical .ft-snap-scroll--next {
1300
1302
  left: 0;
1301
1303
  right: 0;
1302
1304
  bottom: -1px;
1303
- background: linear-gradient(to top, ${Mt.colorSurface} 50%, var(--snap-scroll-transparent-color));
1305
+ background: linear-gradient(to top, ${Ut.colorSurface} 50%, var(--snap-scroll-transparent-color));
1304
1306
  }
1305
1307
 
1306
1308
  .ft-snap-scroll--horizontal .ft-snap-scroll--previous:hover,
1307
1309
  .ft-snap-scroll--horizontal .ft-snap-scroll--next:hover,
1308
1310
  .ft-snap-scroll--vertical .ft-snap-scroll--previous:hover,
1309
1311
  .ft-snap-scroll--vertical .ft-snap-scroll--next:hover {
1310
- background-color: ${Mt.colorSurface};
1312
+ background-color: ${Ut.colorSurface};
1311
1313
  }
1312
- `;var ut=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},ro=class extends CustomEvent{constructor(e,r){super("current-element-change",{detail:{index:e,element:r}})}},le=class extends pr.FtLitElement{constructor(){super(...arguments),this.horizontal=!1,this.hideScrollbar=!1,this.controls=!1,this.limitSize=!1,this.elements=[],this.currentElement=0,this.withScroll=!1,this.startReached=!0,this.endReached=!0,this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight",this.updateScrollCallback=()=>this.onScroll(),this.resizeObserver=new ResizeObserver(()=>this.scheduleUpdateScroll()),this.scrollDebouncer=new pr.Debouncer(200),this.updateScrollDebouncer=new pr.Debouncer(100)}scrollToIndex(e){this.scrollToElement(this.elements[e])}scrollIndexIntoView(e){let r=this.elements[e];if(r){let i=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.nextSize,n=this.contentSlot[this.scrollAttribute]+this.prevSize;(r[this.offsetAttribute]<n||r[this.offsetAttribute]+r[this.sizeAttribute]>i)&&this.scrollToElement(r)}}previous(){this.scrollToElement(this.elements[Math.max(0,this.closestIndexFromStart()-1)])}next(){this.scrollToElement(this.elements[Math.min(this.closestIndexFromStart()+1,this.elements.length-1)])}render(){let e=(0,Fu.classMap)({"ft-snap-scroll":!0,"ft-snap-scroll--horizontal":this.horizontal,"ft-snap-scroll--vertical":!this.horizontal,"ft-snap-scroll--hide-scrollbar":this.hideScrollbar,"ft-snap-scroll--limit-size":this.limitSize,"ft-snap-scroll--safari-fix":pr.isSafari}),r=this.controls&&this.withScroll;return $u.html`
1314
+ `;var ft=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},ro=class extends CustomEvent{constructor(e,r){super("current-element-change",{detail:{index:e,element:r}})}},ue=class extends hr.FtLitElement{constructor(){super(...arguments),this.horizontal=!1,this.hideScrollbar=!1,this.controls=!1,this.limitSize=!1,this.elements=[],this.currentElement=0,this.withScroll=!1,this.startReached=!0,this.endReached=!0,this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight",this.updateScrollCallback=()=>this.onScroll(),this.resizeObserver=new ResizeObserver(()=>this.scheduleUpdateScroll()),this.scrollDebouncer=new hr.Debouncer(200),this.updateScrollDebouncer=new hr.Debouncer(100)}scrollToIndex(e){this.scrollToElement(this.elements[e])}scrollIndexIntoView(e){let r=this.elements[e];if(r){let i=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.nextSize,n=this.contentSlot[this.scrollAttribute]+this.prevSize;(r[this.offsetAttribute]<n||r[this.offsetAttribute]+r[this.sizeAttribute]>i)&&this.scrollToElement(r)}}previous(){this.scrollToElement(this.elements[Math.max(0,this.closestIndexFromStart()-1)])}next(){this.scrollToElement(this.elements[Math.min(this.closestIndexFromStart()+1,this.elements.length-1)])}render(){let e=(0,Fu.classMap)({"ft-snap-scroll":!0,"ft-snap-scroll--horizontal":this.horizontal,"ft-snap-scroll--vertical":!this.horizontal,"ft-snap-scroll--hide-scrollbar":this.hideScrollbar,"ft-snap-scroll--limit-size":this.limitSize,"ft-snap-scroll--safari-fix":hr.isSafari}),r=this.controls&&this.withScroll;return $u.html`
1313
1315
  <div part="container" class="${e}">
1314
1316
  <ft-button
1315
1317
  class="ft-snap-scroll--previous"
@@ -1333,7 +1335,7 @@
1333
1335
  @click=${this.next}
1334
1336
  ></ft-button>
1335
1337
  </div>
1336
- `}update(e){super.update(e),e.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),e.has("currentElement")&&this.dispatchEvent(new ro(this.currentElement,this.elements[this.currentElement]))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),this.contentSlot&&this.listenedContainer!==this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,(r=this.listenedContainer)===null||r===void 0||r.addEventListener("scroll",this.updateScrollCallback))}onScroll(){this.scrollDebouncer.run(()=>this.snap()),this.scheduleUpdateScroll()}snap(){let e=this.closestElementFromStart();if(e!=null){let r=this.getDistanceFromStart(e);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<r&&(e=this.lastElement),this.scrollToElement(e)}}scrollToElement(e){var r,i;e&&(this.horizontal?(r=this.contentSlot)===null||r===void 0||r.scrollTo({left:this.getOffset(e)-this.controlsSize,behavior:"smooth"}):(i=this.contentSlot)===null||i===void 0||i.scrollTo({top:this.getOffset(e)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(e))}onSlotChange(){var e,r;this.elements=(r=(e=this.contentSlot)===null||e===void 0?void 0:e.assignedElements().map(i=>i))!==null&&r!==void 0?r:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let e=-1;for(let r=0;r<this.elements.length;r++)(e<0||this.getDistanceFromStart(this.elements[r])<this.getDistanceFromStart(this.elements[e]))&&(e=r);return e}scheduleUpdateScroll(){this.updateScrollDebouncer.run(()=>this.updateScroll())}updateScroll(){this.contentSlot!=null?(this.withScroll=this.contentSlot[this.scrollSizeAttribute]>this.contentSlot[this.sizeAttribute],this.startReached=this.contentSlot[this.scrollAttribute]===0,this.endReached=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]+1>=this.contentSlot[this.scrollSizeAttribute]):(this.withScroll=!1,this.startReached=!0,this.endReached=!0)}get lastElement(){return this.elements[this.elements.length-1]}get firstElementOffset(){let e=this.elements[0];return e?e[this.offsetAttribute]:0}get controlsSize(){return this.controls?36:0}get nextSize(){return this.endReached?0:this.controlsSize}get prevSize(){return this.startReached?0:this.controlsSize}getOffset(e){return e[this.offsetAttribute]-this.firstElementOffset}getDistanceFromStart(e){let r=e===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(e)-this.contentSlot[this.scrollAttribute]-r)}};le.elementDefinitions={"ft-button":O};le.styles=Mu;ut([(0,Me.property)({type:Boolean})],le.prototype,"horizontal",void 0);ut([(0,Me.property)({type:Boolean})],le.prototype,"hideScrollbar",void 0);ut([(0,Me.property)({type:Boolean})],le.prototype,"controls",void 0);ut([(0,Me.property)({type:Boolean})],le.prototype,"limitSize",void 0);ut([(0,Me.state)()],le.prototype,"elements",void 0);ut([(0,Me.state)()],le.prototype,"currentElement",void 0);ut([(0,Me.state)()],le.prototype,"withScroll",void 0);ut([(0,Me.state)()],le.prototype,"startReached",void 0);ut([(0,Me.state)()],le.prototype,"endReached",void 0);ut([(0,Me.query)(".ft-snap-scroll--content")],le.prototype,"contentSlot",void 0);var Bu=d(v());var Uu={"ft-snap-scroll":le};(0,Bu.customElements)(Uu);var Vu=d(R()),V=d(v());var Te={colorOutline:V.FtCssVariableFactory.external(V.designSystemVariables.colorOutline,"Design system"),colorOnSurface:V.FtCssVariableFactory.external(V.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:V.FtCssVariableFactory.external(V.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorPrimary:V.FtCssVariableFactory.external(V.designSystemVariables.colorPrimary,"Design system"),colorSurface:V.FtCssVariableFactory.external(V.designSystemVariables.colorSurface,"Design system"),transitionDuration:V.FtCssVariableFactory.external(V.designSystemVariables.transitionDuration,"Design system"),transitionTimingFunction:V.FtCssVariableFactory.external(V.designSystemVariables.transitionTimingFunction,"Design system"),labelColor:V.FtCssVariableFactory.extend("--ft-filter-label-color","",V.designSystemVariables.colorOnSurface),labelFontSize:V.FtCssVariableFactory.extend("--ft-filter-label-font-size","",g.fontSize,"16px")},Hu=[Sn,V.noTextInputDefaultClearButton,Vu.css`
1338
+ `}update(e){super.update(e),e.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),e.has("currentElement")&&this.dispatchEvent(new ro(this.currentElement,this.elements[this.currentElement]))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),this.contentSlot&&this.listenedContainer!==this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,(r=this.listenedContainer)===null||r===void 0||r.addEventListener("scroll",this.updateScrollCallback))}onScroll(){this.scrollDebouncer.run(()=>this.snap()),this.scheduleUpdateScroll()}snap(){let e=this.closestElementFromStart();if(e!=null){let r=this.getDistanceFromStart(e);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<r&&(e=this.lastElement),this.scrollToElement(e)}}scrollToElement(e){var r,i;e&&(this.horizontal?(r=this.contentSlot)===null||r===void 0||r.scrollTo({left:this.getOffset(e)-this.controlsSize,behavior:"smooth"}):(i=this.contentSlot)===null||i===void 0||i.scrollTo({top:this.getOffset(e)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(e))}onSlotChange(){var e,r;this.elements=(r=(e=this.contentSlot)===null||e===void 0?void 0:e.assignedElements().map(i=>i))!==null&&r!==void 0?r:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let e=-1;for(let r=0;r<this.elements.length;r++)(e<0||this.getDistanceFromStart(this.elements[r])<this.getDistanceFromStart(this.elements[e]))&&(e=r);return e}scheduleUpdateScroll(){this.updateScrollDebouncer.run(()=>this.updateScroll())}updateScroll(){this.contentSlot!=null?(this.withScroll=this.contentSlot[this.scrollSizeAttribute]>this.contentSlot[this.sizeAttribute],this.startReached=this.contentSlot[this.scrollAttribute]===0,this.endReached=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]+1>=this.contentSlot[this.scrollSizeAttribute]):(this.withScroll=!1,this.startReached=!0,this.endReached=!0)}get lastElement(){return this.elements[this.elements.length-1]}get firstElementOffset(){let e=this.elements[0];return e?e[this.offsetAttribute]:0}get controlsSize(){return this.controls?36:0}get nextSize(){return this.endReached?0:this.controlsSize}get prevSize(){return this.startReached?0:this.controlsSize}getOffset(e){return e[this.offsetAttribute]-this.firstElementOffset}getDistanceFromStart(e){let r=e===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(e)-this.contentSlot[this.scrollAttribute]-r)}};ue.elementDefinitions={"ft-button":w};ue.styles=Mu;ft([(0,$e.property)({type:Boolean})],ue.prototype,"horizontal",void 0);ft([(0,$e.property)({type:Boolean})],ue.prototype,"hideScrollbar",void 0);ft([(0,$e.property)({type:Boolean})],ue.prototype,"controls",void 0);ft([(0,$e.property)({type:Boolean})],ue.prototype,"limitSize",void 0);ft([(0,$e.state)()],ue.prototype,"elements",void 0);ft([(0,$e.state)()],ue.prototype,"currentElement",void 0);ft([(0,$e.state)()],ue.prototype,"withScroll",void 0);ft([(0,$e.state)()],ue.prototype,"startReached",void 0);ft([(0,$e.state)()],ue.prototype,"endReached",void 0);ft([(0,$e.query)(".ft-snap-scroll--content")],ue.prototype,"contentSlot",void 0);var Bu=d(v());var Uu={"ft-snap-scroll":ue};(0,Bu.customElements)(Uu);var Vu=d(R()),V=d(v());var Te={colorOutline:V.FtCssVariableFactory.external(V.designSystemVariables.colorOutline,"Design system"),colorOnSurface:V.FtCssVariableFactory.external(V.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:V.FtCssVariableFactory.external(V.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorPrimary:V.FtCssVariableFactory.external(V.designSystemVariables.colorPrimary,"Design system"),colorSurface:V.FtCssVariableFactory.external(V.designSystemVariables.colorSurface,"Design system"),transitionDuration:V.FtCssVariableFactory.external(V.designSystemVariables.transitionDuration,"Design system"),transitionTimingFunction:V.FtCssVariableFactory.external(V.designSystemVariables.transitionTimingFunction,"Design system"),labelColor:V.FtCssVariableFactory.extend("--ft-filter-label-color","",V.designSystemVariables.colorOnSurface),labelFontSize:V.FtCssVariableFactory.extend("--ft-filter-label-font-size","",g.fontSize,"16px")},Hu=[An,V.noTextInputDefaultClearButton,Vu.css`
1337
1339
  :host {
1338
1340
  display: flex;
1339
1341
  max-height: 100%;
@@ -1361,7 +1363,7 @@
1361
1363
  .ft-filter--header ft-button {
1362
1364
  flex-shrink: 0;
1363
1365
  margin-left: auto;
1364
- ${(0,V.setVariable)(k.iconSize,"18px")};
1366
+ ${(0,V.setVariable)(L.iconSize,"18px")};
1365
1367
  }
1366
1368
 
1367
1369
  .filter-label {
@@ -1450,19 +1452,19 @@
1450
1452
  slot:not([name]) {
1451
1453
  display: none;
1452
1454
  }
1453
- `];var H=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},io=class extends CustomEvent{constructor(e){super("change",{detail:e})}},L=class extends(0,X.withAnalytics)(X.FtLitElement,to){constructor(){super(...arguments),this.id="",this.label="",this.filterPlaceHolder="Filter {0}",this.clearButtonLabel="Clear",this.moreValuesButtonLabel="More",this.noValuesLabel="No values available",this.options=[],this.multivalued=!1,this.disabled=!1,this.raiseSelectedOptions=!1,this.displayCount=!1,this.displayedValuesLimit=0,this.hideClearButton=!1,this.lastLevelHasHiddenvalues=!1,this.withScroll=!1,this.filter="",this.displayedLevels=[],this.scrollResizeObserver=new ResizeObserver(()=>this.updateScroll()),this.levelsScrollDebouncer=new X.Debouncer(300),this.changeDebouncer=new X.Debouncer(10),this.lastDispatchedValues=[]}get flatOptions(){return(0,X.flatDeep)(this.options,e=>{var r;return(r=e.subOptions)!==null&&r!==void 0?r:[]})}get childrenFilteredFlatOptions(){return(0,X.flatDeep)(this.options,e=>{var r;return e.selected?[]:(r=e.subOptions)!==null&&r!==void 0?r:[]})}get selectedValues(){return this.childrenFilteredFlatOptions.filter(e=>e.selected).map(e=>e.value)}render(){let e=this.flatOptions.some(n=>n.selected),r=this.withScroll||this.filter||this.lastLevelHasHiddenvalues,i=this.filterPlaceHolder.replace("{0}",this.label);return fr.html`
1455
+ `];var H=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},io=class extends CustomEvent{constructor(e){super("change",{detail:e})}},k=class extends(0,X.withAnalytics)(X.FtLitElement,to){constructor(){super(...arguments),this.id="",this.label="",this.filterPlaceHolder="Filter {0}",this.clearButtonLabel="Clear",this.moreValuesButtonLabel="More",this.noValuesLabel="No values available",this.options=[],this.multivalued=!1,this.disabled=!1,this.raiseSelectedOptions=!1,this.displayCount=!1,this.displayedValuesLimit=0,this.hideClearButton=!1,this.lastLevelHasHiddenvalues=!1,this.withScroll=!1,this.filter="",this.displayedLevels=[],this.scrollResizeObserver=new ResizeObserver(()=>this.updateScroll()),this.levelsScrollDebouncer=new X.Debouncer(300),this.changeDebouncer=new X.Debouncer(10),this.lastDispatchedValues=[]}get flatOptions(){return(0,X.flatDeep)(this.options,e=>{var r;return(r=e.subOptions)!==null&&r!==void 0?r:[]})}get childrenFilteredFlatOptions(){return(0,X.flatDeep)(this.options,e=>{var r;return e.selected?[]:(r=e.subOptions)!==null&&r!==void 0?r:[]})}get selectedValues(){return this.childrenFilteredFlatOptions.filter(e=>e.selected).map(e=>e.value)}render(){let e=this.flatOptions.some(n=>n.selected),r=this.withScroll||this.filter||this.lastLevelHasHiddenvalues,i=this.filterPlaceHolder.replace("{0}",this.label);return mr.html`
1454
1456
  <div class="ft-filter--container ${this.disabled?"ft-filter--disabled":""}"
1455
1457
  part="container">
1456
- ${!this.label&&!e?null:fr.html`
1458
+ ${!this.label&&!e?null:mr.html`
1457
1459
 
1458
1460
  <div class="ft-filter--header" part="header">
1459
1461
  <div class="filter-label" id="id-group-${this.id}">
1460
- <ft-typography class="ft-filter--label" variant="${de.overline}" part="label">
1462
+ <ft-typography class="ft-filter--label" variant="${fe.overline}" part="label">
1461
1463
  ${this.label}
1462
1464
  </ft-typography>
1463
1465
  <slot name="label"></slot>
1464
1466
  </div>
1465
- ${e&&!this.hideClearButton?fr.html`
1467
+ ${e&&!this.hideClearButton?mr.html`
1466
1468
  <ft-button icon="close"
1467
1469
  aria-label="${this.clearButtonLabel+" "+this.label}"
1468
1470
  dense
@@ -1490,8 +1492,8 @@
1490
1492
  @slotchange=${this.updateOptionsFromSlot}
1491
1493
  @option-change=${this.optionsChanged}></slot>
1492
1494
  </div>
1493
- `}update(e){if(super.update(e),e.has("options")){let r=new Set(this.flatOptions.map(i=>i.value));this.displayedLevels=this.displayedLevels.filter(i=>r.has(i)),this.lastDispatchedValues=this.selectedValues}}contentAvailableCallback(e){var r,i,n,s,o,a;super.contentAvailableCallback(e),this.valuesContainer&&this.scrollResizeObserver.observe(this.valuesContainer),this.container&&this.scrollResizeObserver.observe(this.container),e.has("options")&&(this.updateScroll(),(r=this.levelsContainer)===null||r===void 0||r.scrollToIndex(this.displayedLevels.length)),e.has("slideIn")&&this.slideIn&&((i=this.levelsContainer)===null||i===void 0||i.next(),setTimeout(()=>{this.slideIn=void 0},300)),e.has("slideOut")&&this.slideOut&&((n=this.levelsContainer)===null||n===void 0||n.previous(),setTimeout(()=>{this.displayedLevels.pop(),this.slideOut=void 0},300)),this.lastLevelHasHiddenvalues=(a=(o=(s=this.shadowRoot)===null||s===void 0?void 0:s.querySelector(".ft-filter--levels ft-filter-level:last-child"))===null||o===void 0?void 0:o.hasHiddenValues)!==null&&a!==void 0?a:!1}renderLevels(){let e=this.flatOptions,r=e.filter(s=>s.selected),i=this.slideIn||this.slideOut?this.displayedLevels.length-2:this.displayedLevels.length-1,n=i<0?"ft-filter--level-center":"ft-filter--level-left";return fr.html`
1494
- ${this.raiseSelectedOptions&&r.length>0?fr.html`
1495
+ `}update(e){if(super.update(e),e.has("options")){let r=new Set(this.flatOptions.map(i=>i.value));this.displayedLevels=this.displayedLevels.filter(i=>r.has(i)),this.lastDispatchedValues=this.selectedValues}}contentAvailableCallback(e){var r,i,n,s,o,a;super.contentAvailableCallback(e),this.valuesContainer&&this.scrollResizeObserver.observe(this.valuesContainer),this.container&&this.scrollResizeObserver.observe(this.container),e.has("options")&&(this.updateScroll(),(r=this.levelsContainer)===null||r===void 0||r.scrollToIndex(this.displayedLevels.length)),e.has("slideIn")&&this.slideIn&&((i=this.levelsContainer)===null||i===void 0||i.next(),setTimeout(()=>{this.slideIn=void 0},300)),e.has("slideOut")&&this.slideOut&&((n=this.levelsContainer)===null||n===void 0||n.previous(),setTimeout(()=>{this.displayedLevels.pop(),this.slideOut=void 0},300)),this.lastLevelHasHiddenvalues=(a=(o=(s=this.shadowRoot)===null||s===void 0?void 0:s.querySelector(".ft-filter--levels ft-filter-level:last-child"))===null||o===void 0?void 0:o.hasHiddenValues)!==null&&a!==void 0?a:!1}renderLevels(){let e=this.flatOptions,r=e.filter(s=>s.selected),i=this.slideIn||this.slideOut?this.displayedLevels.length-2:this.displayedLevels.length-1,n=i<0?"ft-filter--level-center":"ft-filter--level-left";return mr.html`
1496
+ ${this.raiseSelectedOptions&&r.length>0?mr.html`
1495
1497
  <ft-filter-level
1496
1498
  filterId="${this.id}"
1497
1499
  ?multivalued=${this.multivalued}
@@ -1512,7 +1514,7 @@
1512
1514
  ${this.renderLevel(n,this.options)}
1513
1515
  ${this.displayedLevels.map(s=>e.find(o=>o.value===s)).map((s,o)=>{var a;let l=s?.value===this.slideIn||s?.value===this.slideOut?"ft-filter--level-right":o===i?"ft-filter--level-center":"ft-filter--level-left";return this.renderLevel(l,(a=s?.subOptions)!==null&&a!==void 0?a:[],s)})}
1514
1516
  </ft-snap-scroll>
1515
- `}renderLevel(e,r,i){return fr.html`
1517
+ `}renderLevel(e,r,i){return mr.html`
1516
1518
  <ft-filter-level
1517
1519
  class="${e}"
1518
1520
  filterId="${this.id}"
@@ -1534,20 +1536,20 @@
1534
1536
  noValuesLabel="${this.noValuesLabel}"
1535
1537
  .filteredOptionsNumberAriaNotification=${this.filteredOptionsNumberAriaNotification}
1536
1538
  ></ft-filter-level>
1537
- `}goBack(e){this.slideOut=e.detail.value,(0,X.waitUntil)(()=>this.slideOut===void 0).then(()=>{var r;let i=(r=this.levelsContainer)===null||r===void 0?void 0:r.querySelector(".ft-filter--level-center");i?.focusOnExpandButton(e.detail.value)})}onDisplayLevel(e){this.displayedLevels.push(e.detail.value),this.slideIn=e.detail.value,(0,X.waitUntil)(()=>this.slideIn===void 0).then(()=>{var r;let i=(r=this.levelsContainer)===null||r===void 0?void 0:r.querySelector(".ft-filter--level-center");i?.focusOnBackButton()})}focusOnFirstOption(){(0,X.waitUntil)(()=>this.slideOut===void 0).then(()=>{var e;let r=(e=this.levelsContainer)===null||e===void 0?void 0:e.querySelector(".ft-filter--level-center");r?.focusOnFirstOption()})}clear(){if(this.flatOptions.forEach(e=>e.selected=!1),this.displayedLevels.length>0){let e=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[e],this.slideOut=e}this.optionsChanged()}onChange(e){var r;e.stopPropagation();let i=this.flatOptions.find(s=>s.value===e.detail.value);i.selected=!i.selected;let n=s=>{var o;s!==i&&(s.selected=!1),(o=s.subOptions)===null||o===void 0||o.forEach(n)};this.multivalued?(r=i.subOptions)===null||r===void 0||r.forEach(n):this.options.forEach(n),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run(()=>{var e;this.sendEventIfValuesChanged(),this.requestUpdate(),(e=this.levels)===null||e===void 0||e.forEach(r=>r.updateFilteredOptions())})}sendEventIfValuesChanged(){let e=this.selectedValues;(0,X.deepEqual)(this.lastDispatchedValues,e)||(this.dispatchEvent(new io(e)),this.lastDispatchedValues=e)}updateOptionsFromSlot(e){e.stopPropagation(),this.options=this.slotElement.assignedElements().map(r=>r),this.optionsChanged()}onFilterChange(){var e,r;this.filter=(r=(e=this.filterInput)===null||e===void 0?void 0:e.value)!==null&&r!==void 0?r:""}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}};L.elementDefinitions={"ft-button":O,"ft-filter-level":K,"ft-snap-scroll":le,"ft-typography":q};L.styles=Hu;H([(0,F.property)({type:String})],L.prototype,"id",void 0);H([(0,F.property)({type:String})],L.prototype,"label",void 0);H([(0,F.property)({type:String})],L.prototype,"filterPlaceHolder",void 0);H([(0,F.property)({type:String})],L.prototype,"clearButtonLabel",void 0);H([(0,F.property)({type:String})],L.prototype,"moreValuesButtonLabel",void 0);H([(0,F.property)({type:String})],L.prototype,"noValuesLabel",void 0);H([(0,X.jsonProperty)([])],L.prototype,"options",void 0);H([(0,F.property)({type:Boolean})],L.prototype,"multivalued",void 0);H([(0,F.property)({type:Boolean})],L.prototype,"disabled",void 0);H([(0,F.property)({type:Boolean})],L.prototype,"raiseSelectedOptions",void 0);H([(0,F.property)({type:Boolean})],L.prototype,"displayCount",void 0);H([(0,X.numberProperty)()],L.prototype,"displayedValuesLimit",void 0);H([(0,X.jsonProperty)(void 0)],L.prototype,"filteredOptionsNumberAriaNotification",void 0);H([(0,F.property)({type:Boolean})],L.prototype,"hideClearButton",void 0);H([(0,F.query)(".ft-filter--slot")],L.prototype,"slotElement",void 0);H([(0,F.query)(".ft-filter--container")],L.prototype,"container",void 0);H([(0,F.query)(".ft-filter--values")],L.prototype,"valuesContainer",void 0);H([(0,F.query)(".ft-filter--levels")],L.prototype,"levelsContainer",void 0);H([(0,F.state)()],L.prototype,"lastLevelHasHiddenvalues",void 0);H([(0,F.query)(".ft-filter--filter input")],L.prototype,"filterInput",void 0);H([(0,F.queryAll)(".ft-filter--levels ft-filter-level")],L.prototype,"levels",void 0);H([(0,F.state)()],L.prototype,"withScroll",void 0);H([(0,F.state)()],L.prototype,"filter",void 0);H([(0,F.state)()],L.prototype,"slideIn",void 0);H([(0,F.state)()],L.prototype,"slideOut",void 0);var Vn=d(v()),hr=d(U()),zu=d(R()),$r=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Je=class extends Vn.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return zu.html`
1539
+ `}goBack(e){this.slideOut=e.detail.value,(0,X.waitUntil)(()=>this.slideOut===void 0).then(()=>{var r;let i=(r=this.levelsContainer)===null||r===void 0?void 0:r.querySelector(".ft-filter--level-center");i?.focusOnExpandButton(e.detail.value)})}onDisplayLevel(e){this.displayedLevels.push(e.detail.value),this.slideIn=e.detail.value,(0,X.waitUntil)(()=>this.slideIn===void 0).then(()=>{var r;let i=(r=this.levelsContainer)===null||r===void 0?void 0:r.querySelector(".ft-filter--level-center");i?.focusOnBackButton()})}focusOnFirstOption(){(0,X.waitUntil)(()=>this.slideOut===void 0).then(()=>{var e;let r=(e=this.levelsContainer)===null||e===void 0?void 0:e.querySelector(".ft-filter--level-center");r?.focusOnFirstOption()})}clear(){if(this.flatOptions.forEach(e=>e.selected=!1),this.displayedLevels.length>0){let e=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[e],this.slideOut=e}this.optionsChanged()}onChange(e){var r;e.stopPropagation();let i=this.flatOptions.find(s=>s.value===e.detail.value);i.selected=!i.selected;let n=s=>{var o;s!==i&&(s.selected=!1),(o=s.subOptions)===null||o===void 0||o.forEach(n)};this.multivalued?(r=i.subOptions)===null||r===void 0||r.forEach(n):this.options.forEach(n),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run(()=>{var e;this.sendEventIfValuesChanged(),this.requestUpdate(),(e=this.levels)===null||e===void 0||e.forEach(r=>r.updateFilteredOptions())})}sendEventIfValuesChanged(){let e=this.selectedValues;(0,X.deepEqual)(this.lastDispatchedValues,e)||(this.dispatchEvent(new io(e)),this.lastDispatchedValues=e)}updateOptionsFromSlot(e){e.stopPropagation(),this.options=this.slotElement.assignedElements().map(r=>r),this.optionsChanged()}onFilterChange(){var e,r;this.filter=(r=(e=this.filterInput)===null||e===void 0?void 0:e.value)!==null&&r!==void 0?r:""}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}};k.elementDefinitions={"ft-button":w,"ft-filter-level":W,"ft-snap-scroll":ue,"ft-typography":K};k.styles=Hu;H([(0,U.property)({type:String})],k.prototype,"id",void 0);H([(0,U.property)({type:String})],k.prototype,"label",void 0);H([(0,U.property)({type:String})],k.prototype,"filterPlaceHolder",void 0);H([(0,U.property)({type:String})],k.prototype,"clearButtonLabel",void 0);H([(0,U.property)({type:String})],k.prototype,"moreValuesButtonLabel",void 0);H([(0,U.property)({type:String})],k.prototype,"noValuesLabel",void 0);H([(0,X.jsonProperty)([])],k.prototype,"options",void 0);H([(0,U.property)({type:Boolean})],k.prototype,"multivalued",void 0);H([(0,U.property)({type:Boolean})],k.prototype,"disabled",void 0);H([(0,U.property)({type:Boolean})],k.prototype,"raiseSelectedOptions",void 0);H([(0,U.property)({type:Boolean})],k.prototype,"displayCount",void 0);H([(0,X.numberProperty)()],k.prototype,"displayedValuesLimit",void 0);H([(0,X.jsonProperty)(void 0)],k.prototype,"filteredOptionsNumberAriaNotification",void 0);H([(0,U.property)({type:Boolean})],k.prototype,"hideClearButton",void 0);H([(0,U.query)(".ft-filter--slot")],k.prototype,"slotElement",void 0);H([(0,U.query)(".ft-filter--container")],k.prototype,"container",void 0);H([(0,U.query)(".ft-filter--values")],k.prototype,"valuesContainer",void 0);H([(0,U.query)(".ft-filter--levels")],k.prototype,"levelsContainer",void 0);H([(0,U.state)()],k.prototype,"lastLevelHasHiddenvalues",void 0);H([(0,U.query)(".ft-filter--filter input")],k.prototype,"filterInput",void 0);H([(0,U.queryAll)(".ft-filter--levels ft-filter-level")],k.prototype,"levels",void 0);H([(0,U.state)()],k.prototype,"withScroll",void 0);H([(0,U.state)()],k.prototype,"filter",void 0);H([(0,U.state)()],k.prototype,"slideIn",void 0);H([(0,U.state)()],k.prototype,"slideOut",void 0);var zn=d(v()),yr=d(B()),zu=d(R()),Ur=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},et=class extends zn.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return zu.html`
1538
1540
  <slot class="ft-filter-option--slot" @slotchange=${this.updateSubOptionsFromSlot}></slot>
1539
- `}updateSubOptionsFromSlot(e){e.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map(r=>r)}update(e){super.update(e),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};Je.elementDefinitions={};$r([(0,hr.property)({type:String})],Je.prototype,"label",void 0);$r([(0,hr.property)({type:Object,converter:t=>t})],Je.prototype,"value",void 0);$r([(0,hr.property)({type:Boolean,reflect:!0})],Je.prototype,"selected",void 0);$r([(0,hr.property)({type:Object})],Je.prototype,"subOptions",void 0);$r([(0,Vn.jsonProperty)({})],Je.prototype,"renderOption",void 0);$r([(0,hr.query)(".ft-filter-option--slot")],Je.prototype,"slotElement",void 0);var qu=d(v());var ju={"ft-filter":L,"ft-filter-option":Je};(0,qu.customElements)(ju);var et=kt.build("designedSearchType"),Hn={label:"Search scope",documentTitlesOnly:"Search in document titles only",matchAllKeywords:"Match all search terms",clear:"Clear",noFilterValuesAvailable:"No values available"};var Ei=d(U());var Si=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},tt=class extends at(At){constructor(){super(),this.options={searchInDocumentTitlesOnly:{label:()=>et.messages.documentTitlesOnly(),selected:()=>!!this.searchInDocumentTitlesOnly,onChange:e=>{var r;return(r=this.stateManager)===null||r===void 0?void 0:r.setSearchInDocumentTitlesOnly(e)},display:()=>!this.hideSearchInDocumentTitlesOnly},matchAllKeywords:{label:()=>et.messages.matchAllKeywords(),selected:()=>!!this.matchAllKeywords,onChange:e=>{var r;return(r=this.stateManager)===null||r===void 0?void 0:r.setKeywordMatch(e?pt.MANDATORY:pt.OPTIONAL)},display:()=>!!this.displayMatchAllKeywords}},this.addI18nContext(et,Hn)}render(){let e=Object.keys(this.options).filter(r=>this.options[r].display()).map(r=>({value:r,label:this.options[r].label(),selected:this.options[r].selected()}));return Ku.html`
1541
+ `}updateSubOptionsFromSlot(e){e.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map(r=>r)}update(e){super.update(e),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};et.elementDefinitions={};Ur([(0,yr.property)({type:String})],et.prototype,"label",void 0);Ur([(0,yr.property)({type:Object,converter:t=>t})],et.prototype,"value",void 0);Ur([(0,yr.property)({type:Boolean,reflect:!0})],et.prototype,"selected",void 0);Ur([(0,yr.property)({type:Object})],et.prototype,"subOptions",void 0);Ur([(0,zn.jsonProperty)({})],et.prototype,"renderOption",void 0);Ur([(0,yr.query)(".ft-filter-option--slot")],et.prototype,"slotElement",void 0);var qu=d(v());var ju={"ft-filter":k,"ft-filter-option":et};(0,qu.customElements)(ju);var tt=Nt.build("designedSearchType"),jn={label:"Search scope",documentTitlesOnly:"Search in document titles only",matchAllKeywords:"Match all search terms",clear:"Clear",noFilterValuesAvailable:"No values available"};var _i=d(B());var Ai=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},rt=class extends ct(_t){constructor(){super(),this.options={searchInDocumentTitlesOnly:{label:()=>tt.messages.documentTitlesOnly(),selected:()=>!!this.searchInDocumentTitlesOnly,onChange:e=>{var r;return(r=this.stateManager)===null||r===void 0?void 0:r.setSearchInDocumentTitlesOnly(e)},display:()=>!this.hideSearchInDocumentTitlesOnly},matchAllKeywords:{label:()=>tt.messages.matchAllKeywords(),selected:()=>!!this.matchAllKeywords,onChange:e=>{var r;return(r=this.stateManager)===null||r===void 0?void 0:r.setKeywordMatch(e?ht.MANDATORY:ht.OPTIONAL)},display:()=>!!this.displayMatchAllKeywords}},this.addI18nContext(tt,jn)}render(){let e=Object.keys(this.options).filter(r=>this.options[r].display()).map(r=>({value:r,label:this.options[r].label(),selected:this.options[r].selected()}));return Ku.html`
1540
1542
  <ft-filter
1541
- label="${et.messages.label()}"
1542
- clearButtonLabel="${et.messages.clear()}"
1543
- noValuesLabel="${et.messages.noFilterValuesAvailable()}"
1543
+ label="${tt.messages.label()}"
1544
+ clearButtonLabel="${tt.messages.clear()}"
1545
+ noValuesLabel="${tt.messages.noFilterValuesAvailable()}"
1544
1546
  .options=${e}
1545
1547
  part="filter"
1546
1548
  .exportpartsPrefixes=${["filter"]}
1547
1549
  multivalued
1548
1550
  @change=${()=>this.onSelectionChange()}
1549
1551
  ></ft-filter>
1550
- `}onSelectionChange(){var e;(e=this.filter)===null||e===void 0||e.options.forEach(r=>this.options[r.value].onChange(!!r.selected))}};tt.elementDefinitions={"ft-filter":L};tt.styles=hu;Si([(0,no.redux)({selector:yn})],tt.prototype,"searchInDocumentTitlesOnly",void 0);Si([(0,Ei.property)({type:Boolean})],tt.prototype,"hideSearchInDocumentTitlesOnly",void 0);Si([(0,no.redux)({selector:gn})],tt.prototype,"matchAllKeywords",void 0);Si([(0,Ei.property)({type:Boolean})],tt.prototype,"displayMatchAllKeywords",void 0);Si([(0,Ei.query)("ft-filter")],tt.prototype,"filter",void 0);var Gu=d(v());var Wu={"ft-search-type":tt};(0,Gu.customElements)(Wu);var Yu=d(R()),mr=d(v());var Yp={headerColor:mr.FtCssVariableFactory.extend("--ft-search-period-filter-header-color","",mr.designSystemVariables.colorOnSurface)},Xu=Yu.css`
1552
+ `}onSelectionChange(){var e;(e=this.filter)===null||e===void 0||e.options.forEach(r=>this.options[r.value].onChange(!!r.selected))}};rt.elementDefinitions={"ft-filter":k};rt.styles=hu;Ai([(0,no.redux)({selector:vn})],rt.prototype,"searchInDocumentTitlesOnly",void 0);Ai([(0,_i.property)({type:Boolean})],rt.prototype,"hideSearchInDocumentTitlesOnly",void 0);Ai([(0,no.redux)({selector:bn})],rt.prototype,"matchAllKeywords",void 0);Ai([(0,_i.property)({type:Boolean})],rt.prototype,"displayMatchAllKeywords",void 0);Ai([(0,_i.query)("ft-filter")],rt.prototype,"filter",void 0);var Gu=d(v());var Wu={"ft-search-type":rt};(0,Gu.customElements)(Wu);var Yu=d(R()),gr=d(v());var Yp={headerColor:gr.FtCssVariableFactory.extend("--ft-search-period-filter-header-color","",gr.designSystemVariables.colorOnSurface)},Xu=Yu.css`
1551
1553
  [part="container"] {
1552
1554
  flex-grow: 1;
1553
1555
  display: flex;
@@ -1562,7 +1564,7 @@
1562
1564
  overflow: auto;
1563
1565
  display: flex;
1564
1566
  flex-direction: column;
1565
- ${(0,mr.setVariable)(g.lineHeight,"22px")};
1567
+ ${(0,gr.setVariable)(g.lineHeight,"22px")};
1566
1568
  }
1567
1569
 
1568
1570
  [part="header"] {
@@ -1581,10 +1583,10 @@
1581
1583
  flex-grow: 1;
1582
1584
  word-break: break-word;
1583
1585
  font-size: ${Te.labelFontSize};
1584
- ${(0,mr.setVariable)(g.fontWeight,"bold")};
1586
+ ${(0,gr.setVariable)(g.fontWeight,"bold")};
1585
1587
  }
1586
1588
 
1587
- `;var rt=d(R());var so=d(v());var ve=kt.build("designedSearchPeriodFilter"),zn={label:"Last update",anyTime:"Any time",LAST_WEEK:"Less than a week",LAST_MONTH:"Less than a month",LAST_QUARTER:"Less than a quarter",LAST_YEAR:"Less than a year",CUSTOM:"Custom period",customPeriod:"From {0} to {1}",period:"Period: {0}"};var yr=d(U());var $t=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Re=class extends at(At){constructor(){super(),this.metadataDescriptors=[],this.dateFilter=void 0,this.addI18nContext(ve,zn),this.addStore(A)}get metadataKey(){var e;return(e=this.key)!==null&&e!==void 0?e:"ft:lastEdition"}update(e){var r;super.update(e),(e.has("filters")||e.has("key"))&&(this.dateFilter=(r=this.filters)===null||r===void 0?void 0:r.filter(i=>i.key===this.metadataKey).filter(i=>i.dateFilter).map(i=>i.dateFilter).find(Boolean))}render(){var e,r,i,n;return rt.html`
1589
+ `;var it=d(R());var so=d(v());var be=Nt.build("designedSearchPeriodFilter"),qn={label:"Last update",anyTime:"Any time",LAST_WEEK:"Less than a week",LAST_MONTH:"Less than a month",LAST_QUARTER:"Less than a quarter",LAST_YEAR:"Less than a year",CUSTOM:"Custom period",customPeriod:"From {0} to {1}",period:"Period: {0}"};var vr=d(B());var Bt=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Re=class extends ct(_t){constructor(){super(),this.metadataDescriptors=[],this.dateFilter=void 0,this.addI18nContext(be,qn),this.addStore(A)}get metadataKey(){var e;return(e=this.key)!==null&&e!==void 0?e:"ft:lastEdition"}update(e){var r;super.update(e),(e.has("filters")||e.has("key"))&&(this.dateFilter=(r=this.filters)===null||r===void 0?void 0:r.filter(i=>i.key===this.metadataKey).filter(i=>i.dateFilter).map(i=>i.dateFilter).find(Boolean))}render(){var e,r,i,n;return it.html`
1588
1590
  <div part="container">
1589
1591
  <div part="header">
1590
1592
  <ft-typography variant="overline" part="label" id="label">
@@ -1593,113 +1595,119 @@
1593
1595
  </div>
1594
1596
  <ft-radio-group @change=${s=>this.setPeriodFilter(s)} aria-labelledby="label">
1595
1597
  <ft-radio value="anyTime" ?checked=${this.dateFilter===void 0||this.dateFilter.type===void 0}>
1596
- ${ve.messages.anyTime()}
1598
+ ${be.messages.anyTime()}
1597
1599
  </ft-radio>
1598
- ${this.lessThanAWeek?rt.html`
1599
- <ft-radio ?checked=${((e=this.dateFilter)===null||e===void 0?void 0:e.type)=="LAST_WEEK"} value="LAST_WEEK">${ve.messages.LAST_WEEK()}
1600
- </ft-radio>`:rt.nothing}
1601
- ${this.lessThanAMonth?rt.html`
1602
- <ft-radio ?checked=${((r=this.dateFilter)===null||r===void 0?void 0:r.type)=="LAST_MONTH"} value="LAST_MONTH">${ve.messages.LAST_MONTH()}
1603
- </ft-radio>`:rt.nothing}
1604
- ${this.lessThanAQuarter?rt.html`
1600
+ ${this.lessThanAWeek?it.html`
1601
+ <ft-radio ?checked=${((e=this.dateFilter)===null||e===void 0?void 0:e.type)=="LAST_WEEK"} value="LAST_WEEK">${be.messages.LAST_WEEK()}
1602
+ </ft-radio>`:it.nothing}
1603
+ ${this.lessThanAMonth?it.html`
1604
+ <ft-radio ?checked=${((r=this.dateFilter)===null||r===void 0?void 0:r.type)=="LAST_MONTH"} value="LAST_MONTH">${be.messages.LAST_MONTH()}
1605
+ </ft-radio>`:it.nothing}
1606
+ ${this.lessThanAQuarter?it.html`
1605
1607
  <ft-radio ?checked=${((i=this.dateFilter)===null||i===void 0?void 0:i.type)=="LAST_QUARTER"} value="LAST_QUARTER">
1606
- ${ve.messages.LAST_QUARTER()}
1607
- </ft-radio>`:rt.nothing}
1608
- ${this.lessThanAYear?rt.html`
1609
- <ft-radio ?checked=${((n=this.dateFilter)===null||n===void 0?void 0:n.type)=="LAST_YEAR"} value="LAST_YEAR">${ve.messages.LAST_YEAR()}
1610
- </ft-radio>`:rt.nothing}
1608
+ ${be.messages.LAST_QUARTER()}
1609
+ </ft-radio>`:it.nothing}
1610
+ ${this.lessThanAYear?it.html`
1611
+ <ft-radio ?checked=${((n=this.dateFilter)===null||n===void 0?void 0:n.type)=="LAST_YEAR"} value="LAST_YEAR">${be.messages.LAST_YEAR()}
1612
+ </ft-radio>`:it.nothing}
1611
1613
  </ft-radio-group>
1612
- </div>`}setPeriodFilter(e){var r,i;let n=Ci[e.detail];n?(r=this.stateManager)===null||r===void 0||r.setDateFilter(this.metadataKey,n):(i=this.stateManager)===null||i===void 0||i.removeDateFilter(this.metadataKey)}header(){var e,r,i;return this.metadataKey==="ft:lastEdition"?ve.messages.label():(i=(r=(e=this.metadataDescriptors)===null||e===void 0?void 0:e.find(n=>n.key==this.metadataKey))===null||r===void 0?void 0:r.label)!==null&&i!==void 0?i:this.metadataKey}};Re.elementDefinitions={"ft-radio-group":Pe,"ft-radio":ae,"ft-typography":q};Re.styles=Xu;$t([(0,yr.property)({type:String})],Re.prototype,"key",void 0);$t([(0,yr.property)({type:Boolean})],Re.prototype,"lessThanAWeek",void 0);$t([(0,yr.property)({type:Boolean})],Re.prototype,"lessThanAMonth",void 0);$t([(0,yr.property)({type:Boolean})],Re.prototype,"lessThanAQuarter",void 0);$t([(0,yr.property)({type:Boolean})],Re.prototype,"lessThanAYear",void 0);$t([(0,so.redux)({store:"search",selector:t=>t.request.metadataFilters})],Re.prototype,"filters",void 0);$t([(0,so.redux)({store:A.name,selector:t=>{var e,r;return(r=(e=t.metadataConfiguration)===null||e===void 0?void 0:e.descriptors)!==null&&r!==void 0?r:[]}})],Re.prototype,"metadataDescriptors",void 0);$t([(0,yr.property)({attribute:!1})],Re.prototype,"dateFilter",void 0);var Zu=d(v());var Qu={"ft-search-period-filter":Re};(0,Zu.customElements)(Qu);var Ft=kt.build("designedSearchSelectedFacets"),Ju={filterGroupLabel:"Filters enabled",removeNamedFilterLabel:"Remove filter: {0}"};var dt=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},be=class extends(0,W.withAriaNotification)(Ga(at(At))){get hasSomethingToDisplay(){var e,r;return this.searchInDocumentTitlesOnly||this.keywordMatch||((e=this.facets)===null||e===void 0?void 0:e.some(i=>this.getSelectedValues(i).length>0))||((r=this.filters)===null||r===void 0?void 0:r.some(i=>i.dateFilter||i.rangeFilter))}get numberOfChips(){return(0,W.shadowQuerySelectorAll)(this.shadowRoot,"ft-chip").length}constructor(){super(),this.displayLabel=!1,this.forceTooltip=!1,this.multiLine=!1,this.hierarchicalValueTruncatingLevel=3,this.selectedFacetsAriaNotification={context:"officialContext",key:"searchSelectedFacetsAriaNotification",message:""},this.neededSearchRequests=[Ur.CLUSTERED_SEARCH],this.ariaNotificationDebouncer=new W.Debouncer(100),this.addI18nContext(et,Hn),this.addI18nContext(Ft,Ju),this.addI18nContext(ve,zn)}render(){var e,r;return this.hasSomethingToDisplay?ee.html`
1613
- <div role="group" class="ft-search-selected-facets--container" aria-label="${Ft.messages.filterGroupLabel()}">
1614
- ${(0,jn.repeat)(this.facets||[],i=>i.key,i=>{let n=this.getSelectedValues(i);return(0,jn.repeat)(n,s=>i.key+"-"+s,s=>this.renderFacet(i.key,i.label,n,s))})}
1614
+ </div>`}setPeriodFilter(e){var r,i;let n=Oi[e.detail];n?(r=this.stateManager)===null||r===void 0||r.setDateFilter(this.metadataKey,n):(i=this.stateManager)===null||i===void 0||i.removeDateFilter(this.metadataKey)}header(){var e,r,i;return this.metadataKey==="ft:lastEdition"?be.messages.label():(i=(r=(e=this.metadataDescriptors)===null||e===void 0?void 0:e.find(n=>n.key==this.metadataKey))===null||r===void 0?void 0:r.label)!==null&&i!==void 0?i:this.metadataKey}};Re.elementDefinitions={"ft-radio-group":Ie,"ft-radio":ce,"ft-typography":K};Re.styles=Xu;Bt([(0,vr.property)({type:String})],Re.prototype,"key",void 0);Bt([(0,vr.property)({type:Boolean})],Re.prototype,"lessThanAWeek",void 0);Bt([(0,vr.property)({type:Boolean})],Re.prototype,"lessThanAMonth",void 0);Bt([(0,vr.property)({type:Boolean})],Re.prototype,"lessThanAQuarter",void 0);Bt([(0,vr.property)({type:Boolean})],Re.prototype,"lessThanAYear",void 0);Bt([(0,so.redux)({store:"search",selector:t=>t.request.metadataFilters})],Re.prototype,"filters",void 0);Bt([(0,so.redux)({store:A.name,selector:t=>{var e,r;return(r=(e=t.metadataConfiguration)===null||e===void 0?void 0:e.descriptors)!==null&&r!==void 0?r:[]}})],Re.prototype,"metadataDescriptors",void 0);Bt([(0,vr.property)({attribute:!1})],Re.prototype,"dateFilter",void 0);var Zu=d(v());var Qu={"ft-search-period-filter":Re};(0,Zu.customElements)(Qu);var Vt=Nt.build("designedSearchSelectedFacets"),Ju={filterGroupLabel:"Filters enabled",removeNamedFilterLabel:"Remove filter: {0}"};var ke=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},ee=class extends(0,q.withAriaNotification)(Ga(ct(_t))){get hasSomethingToDisplay(){var e,r;return this.searchInDocumentTitlesOnly||this.keywordMatch||((e=this.filters)===null||e===void 0?void 0:e.some(i=>this.displayAllFilers||i.dateFilter||i.rangeFilter))||((r=this.facets)===null||r===void 0?void 0:r.some(i=>this.getSelectedValues(i).length>0))}get numberOfChips(){return(0,q.shadowQuerySelectorAll)(this.shadowRoot,"ft-chip").length}constructor(){super(),this.displayLabel=!1,this.forceTooltip=!1,this.multiLine=!1,this.hierarchicalValueTruncatingLevel=3,this.selectedFacetsAriaNotification={context:"officialContext",key:"searchSelectedFacetsAriaNotification",message:""},this.nothingToDisplayMessage={message:""},this.readOnly=!1,this.dense=!1,this.displayAllFilers=!1,this.neededSearchRequests=[Hr.CLUSTERED_SEARCH],this.ariaNotificationDebouncer=new q.Debouncer(100),this.addI18nContext(tt,jn),this.addI18nContext(Vt,Ju),this.addI18nContext(be,qn)}render(){var e,r;return this.hasSomethingToDisplay?ne.html`
1615
+ <div role="group" class="ft-search-selected-facets--container" aria-label="${Vt.messages.filterGroupLabel()}">
1616
+ ${this.displayAllFilers?this.renderAllValueFilters():this.renderFacets()}
1615
1617
  ${this.renderSearchScope()}
1616
- ${(0,jn.repeat)((r=(e=this.filters)===null||e===void 0?void 0:e.filter(i=>i.dateFilter||i.rangeFilter))!==null&&r!==void 0?r:[],i=>i.key,i=>this.renderPeriodFilter(i))}
1618
+ ${(0,Br.repeat)((r=(e=this.filters)===null||e===void 0?void 0:e.filter(i=>i.dateFilter||i.rangeFilter))!==null&&r!==void 0?r:[],i=>i.key,i=>this.renderPeriodFilter(i))}
1617
1619
  </div>
1618
- `:ee.nothing}isFacetNegative(e,r){var i,n;return(n=(i=this.filters)===null||i===void 0?void 0:i.some(s=>{var o,a;return s.key===e&&((o=s.valueFilter)===null||o===void 0?void 0:o.negative)===!0&&((a=s.valueFilter.values)===null||a===void 0?void 0:a.includes(r))}))!==null&&n!==void 0?n:!1}renderFacet(e,r,i,n){if(e==="ft:publicationId")return ee.nothing;let s=e.replace(":","-"),o=this.getLabelFromValue(e,n),a=this.getBreadcrumbFromValue(e,n),l=r+": "+(this.isFacetNegative(e,n)?"NOT ":"")+a,c=!this.forceTooltip&&this.displayLabel&&a==o,u=ee.html`
1620
+ `:this.nothingToDisplayMessage.message}renderAllValueFilters(){return(0,Br.repeat)((this.filters||[]).filter(e=>!!e.valueFilter),e=>e.key,e=>(0,Br.repeat)(e.valueFilter.values,r=>e.key+"-"+r,r=>this.renderFacet(e.key,e.key,e.valueFilter.values,r)))}renderFacets(){return(0,Br.repeat)(this.facets||[],e=>e.key,e=>{let r=this.getSelectedValues(e);return(0,Br.repeat)(r,i=>e.key+"-"+i,i=>this.renderFacet(e.key,e.label,r,i))})}isFacetNegative(e,r){var i,n;return(n=(i=this.filters)===null||i===void 0?void 0:i.some(s=>{var o,a;return s.key===e&&((o=s.valueFilter)===null||o===void 0?void 0:o.negative)===!0&&((a=s.valueFilter.values)===null||a===void 0?void 0:a.includes(r))}))!==null&&n!==void 0?n:!1}renderFacet(e,r,i,n){if(e==="ft:publicationId"&&!this.displayAllFilers)return ne.nothing;let s=e.replace(":","-"),o=this.getLabelFromValue(e,n),a=this.getBreadcrumbFromValue(e,n),l=r+": "+(this.isFacetNegative(e,n)?"NOT ":"")+a,c=!this.forceTooltip&&this.displayLabel&&a==o,u=ne.html`
1619
1621
  <ft-chip
1620
1622
  part="ft-search-selected-facets ft-search-selected-facet-${s}"
1621
- removable hideIconTooltip accessibleLabelOnIcon
1622
- iconLabel="${Ft.messages.removeNamedFilterLabel(l)}"
1623
+ ?dense=${this.dense}
1624
+ ?removable=${!this.readOnly}
1625
+ hideIconTooltip accessibleLabelOnIcon
1626
+ iconLabel="${Vt.messages.removeNamedFilterLabel(l)}"
1623
1627
  label="${l}"
1624
1628
  @icon-click=${p=>{var f;(f=this.stateManager)===null||f===void 0||f.setValueFilter(e,i.filter(y=>y!==n)),this.determineAndApplyFocus(p)}}
1625
1629
  ?multiLine=${this.multiLine}
1626
1630
  data-key="${e}"
1627
1631
  data-value="${n}">
1628
- ${this.displayLabel?ee.html`
1629
- <span part="label">${r}: </span>`:ee.nothing}
1632
+ ${this.displayLabel?ne.html`
1633
+ <span part="label">${r}: </span>`:ne.nothing}
1630
1634
  <span part="values">
1631
- ${this.isFacetNegative(e,n)?ee.html`<strong>NOT</strong> ${o}`:o}
1635
+ ${this.isFacetNegative(e,n)?ne.html`<strong>NOT</strong> ${o}`:o}
1632
1636
  </span>
1633
- </ft-chip>`;return c?u:ee.html`
1637
+ </ft-chip>`;return c?u:ne.html`
1634
1638
  <ft-tooltip inline text="${l}"
1635
1639
  part="tooltips tooltip-${s}">
1636
1640
  ${u}
1637
1641
  </ft-tooltip>
1638
- `}getNextChipToFocusOn(e){let r=(0,W.shadowQuerySelectorAll)(this.shadowRoot,"ft-chip"),i=r.indexOf(e);return i===-1||r.length<=1?null:i<r.length-1?r[i+1]:r[i-1]}determineAndApplyFocus(e){let r=e.currentTarget,i=this.getNextChipToFocusOn(r);i?i.elementToFocus={selector:"ft-button"}:this.dispatchEvent(new W.FocusMainContentEvent)}getSelectedValues(e){return(0,W.flatDeep)(e.rootNodes,r=>r.selected?[]:r.childNodes).filter(r=>r.selected).map(r=>r.value)}getLabelFromValue(e,r){return this.readAndFormatValueFromFacet(e,r,this.hierarchicalValueTruncatingLevel)}getBreadcrumbFromValue(e,r){return this.readAndFormatValueFromFacet(e,r)}readAndFormatValueFromFacet(e,r,i){let n=this.getDateFormatter(e);return n?n(r):(0,W.formatHierarchicalValues)(this.unquote(r).split("|"),i)}unquote(e){return e.startsWith('"')&&e.endsWith('"')?e.replace(/(^"+)|("+$)/g,""):e}renderSearchScope(){return ee.html`
1642
+ `}getNextChipToFocusOn(e){let r=(0,q.shadowQuerySelectorAll)(this.shadowRoot,"ft-chip"),i=r.indexOf(e);return i===-1||r.length<=1?null:i<r.length-1?r[i+1]:r[i-1]}determineAndApplyFocus(e){let r=e.currentTarget,i=this.getNextChipToFocusOn(r);i?i.elementToFocus={selector:"ft-button"}:this.dispatchEvent(new q.FocusMainContentEvent)}getSelectedValues(e){return(0,q.flatDeep)(e.rootNodes,r=>r.selected?[]:r.childNodes).filter(r=>r.selected).map(r=>r.value)}getLabelFromValue(e,r){return this.readAndFormatValueFromFacet(e,r,this.hierarchicalValueTruncatingLevel)}getBreadcrumbFromValue(e,r){return this.readAndFormatValueFromFacet(e,r)}readAndFormatValueFromFacet(e,r,i){let n=this.getDateFormatter(e);return n?n(r):(0,q.formatHierarchicalValues)(this.unquote(r).split("|"),i)}unquote(e){return e.startsWith('"')&&e.endsWith('"')?e.replace(/(^"+)|("+$)/g,""):e}renderSearchScope(){return ne.html`
1639
1643
  ${this.renderSearchInDocumentTitlesOnly()}
1640
1644
  ${this.renderKeywordMatch()}
1641
- `}renderSearchInDocumentTitlesOnly(){if(!this.searchInDocumentTitlesOnly)return ee.nothing;let e=et.messages.documentTitlesOnly(),r=ee.html`
1645
+ `}renderSearchInDocumentTitlesOnly(){if(!this.searchInDocumentTitlesOnly)return ne.nothing;let e=tt.messages.documentTitlesOnly(),r=ne.html`
1642
1646
  <ft-chip
1643
1647
  part="ft-search-selected-facets ft-search-selected-facet-search-in-document-titles-only"
1644
1648
  label="${e}"
1645
- removable
1649
+ ?dense=${this.dense}
1650
+ ?removable=${!this.readOnly}
1646
1651
  hideIconTooltip accessibleLabelOnIcon
1647
- iconLabel="${Ft.messages.removeNamedFilterLabel(e)}"
1652
+ iconLabel="${Vt.messages.removeNamedFilterLabel(e)}"
1648
1653
  @icon-click=${i=>{var n;(n=this.stateManager)===null||n===void 0||n.setSearchInDocumentTitlesOnly(!1),this.determineAndApplyFocus(i)}}
1649
1654
  ?multiLine=${this.multiLine}>
1650
1655
  <span part="values">
1651
1656
  ${e}
1652
1657
  </span>
1653
- </ft-chip>`;return this.forceTooltip?ee.html`
1658
+ </ft-chip>`;return this.forceTooltip?ne.html`
1654
1659
  <ft-tooltip inline text="${e}"
1655
1660
  part="tooltips tooltip-search-in-document-titles-only">
1656
1661
  ${r}
1657
- </ft-tooltip>`:r}renderKeywordMatch(){if(!this.keywordMatch)return ee.nothing;let e=et.messages.matchAllKeywords(),r=ee.html`
1662
+ </ft-tooltip>`:r}renderKeywordMatch(){if(!this.keywordMatch)return ne.nothing;let e=tt.messages.matchAllKeywords(),r=ne.html`
1658
1663
  <ft-chip
1659
1664
  part="ft-search-selected-facets ft-search-selected-facet-match-all-keywords"
1660
1665
  label="${e}"
1661
- removable
1666
+ ?dense=${this.dense}
1667
+ ?removable=${!this.readOnly}
1662
1668
  hideIconTooltip accessibleLabelOnIcon
1663
- iconLabel="${Ft.messages.removeNamedFilterLabel(e)}"
1664
- @icon-click=${i=>{var n;(n=this.stateManager)===null||n===void 0||n.setKeywordMatch(pt.OPTIONAL),this.determineAndApplyFocus(i)}}
1669
+ iconLabel="${Vt.messages.removeNamedFilterLabel(e)}"
1670
+ @icon-click=${i=>{var n;(n=this.stateManager)===null||n===void 0||n.setKeywordMatch(ht.OPTIONAL),this.determineAndApplyFocus(i)}}
1665
1671
  ?multiLine=${this.multiLine}>
1666
1672
  <span part="values">
1667
1673
  ${e}
1668
1674
  </span>
1669
- </ft-chip>`;return this.forceTooltip?ee.html`
1675
+ </ft-chip>`;return this.forceTooltip?ne.html`
1670
1676
  <ft-tooltip inline text="${e}"
1671
1677
  part="tooltips tooltip-match-all-keywords">
1672
1678
  ${r}
1673
- </ft-tooltip>`:r}renderPeriodFilter(e){return e.dateFilter?this.renderDateFilter(e.key,e.dateFilter):e.rangeFilter?this.renderRangeFilter(e.key,e.rangeFilter):ee.nothing}renderDateFilter(e,r){let i=ve.messages.period(ve.messages[r.type]());return ee.html`
1679
+ </ft-tooltip>`:r}renderPeriodFilter(e){return e.dateFilter?this.renderDateFilter(e.key,e.dateFilter):e.rangeFilter?this.renderRangeFilter(e.key,e.rangeFilter):ne.nothing}renderDateFilter(e,r){let i=be.messages.period(be.messages[r.type]());return ne.html`
1674
1680
  <ft-tooltip inline text="${i}"
1675
1681
  part=" tooltips tooltip-search-period-filter">
1676
1682
  <ft-chip
1677
1683
  part="ft-search-selected-facets ft-search-selected-facet-period-filter"
1678
- removable
1684
+ ?dense=${this.dense}
1685
+ ?removable=${!this.readOnly}
1679
1686
  hideIconTooltip accessibleLabelOnIcon
1680
1687
  label="${i}"
1681
- iconLabel="${Ft.messages.removeNamedFilterLabel(i)}"
1688
+ iconLabel="${Vt.messages.removeNamedFilterLabel(i)}"
1682
1689
  @icon-click=${n=>{var s;(s=this.stateManager)===null||s===void 0||s.removeDateFilter(e),this.determineAndApplyFocus(n)}}
1683
1690
  ?multiLine=${this.multiLine}>
1684
1691
  <span part="values">
1685
- ${ve.messages[r.type]()}
1692
+ ${be.messages[r.type]()}
1686
1693
  </span>
1687
1694
  </ft-chip>
1688
- </ft-tooltip>`}renderRangeFilter(e,r){let i=ve.messages.period(ve.messages.customPeriod(r.from,r.to));return ee.html`
1695
+ </ft-tooltip>`}renderRangeFilter(e,r){let i=be.messages.period(be.messages.customPeriod(r.from,r.to));return ne.html`
1689
1696
  <ft-tooltip inline text="${i}" part=" tooltips tooltip-search-period-filter">
1690
1697
  <ft-chip
1691
1698
  part="ft-search-selected-facets ft-search-selected-facet-period-filter"
1692
1699
  label="${i}"
1693
- removable
1700
+ ?dense=${this.dense}
1701
+ ?removable=${!this.readOnly}
1694
1702
  hideIconTooltip accessibleLabelOnIcon
1695
- iconLabel="${Ft.messages.removeNamedFilterLabel(i)}"
1703
+ iconLabel="${Vt.messages.removeNamedFilterLabel(i)}"
1696
1704
  @icon-click=${n=>{var s;(s=this.stateManager)===null||s===void 0||s.removeRangeFilter(e),this.determineAndApplyFocus(n)}}
1697
1705
  ?multiLine=${this.multiLine}>
1698
1706
  <span part="values">
1699
- ${ve.messages.CUSTOM()}
1707
+ ${be.messages.CUSTOM()}
1700
1708
  </span>
1701
1709
  </ft-chip>
1702
- </ft-tooltip>`}updated(e){var r,i,n,s;if(super.updated(e),e.get("filters")){let o=(n=(r=this.filters)===null||r===void 0?void 0:r.filter(l=>l.dateFilter||l.rangeFilter).length)!==null&&n!==void 0?n:0,a=e.get("filters").filter(l=>l.dateFilter||l.rangeFilter).length;(o-a==1||a>0&&!this.hasSomethingToDisplay)&&this.announceFilters()}if(e.get("facets")){let o=(s=(i=this.facets)===null||i===void 0?void 0:i.filter(l=>this.getSelectedValues(l).length>0).length)!==null&&s!==void 0?s:0,a=e.get("facets").filter(l=>this.getSelectedValues(l).length>0).length;(o-a==1||a>0&&!this.hasSomethingToDisplay)&&this.announceFilters()}if(e.has("searchInDocumentTitlesOnly")){let o=e.get("searchInDocumentTitlesOnly");(!o&&this.searchInDocumentTitlesOnly||o&&!this.hasSomethingToDisplay)&&this.announceFilters()}if(e.has("keywordMatch")){let o=e.get("keywordMatch");(!o&&this.keywordMatch||o&&!this.hasSomethingToDisplay)&&this.announceFilters()}}announceFilters(){this.ariaNotificationDebouncer.run(async()=>{let e=await this.awaitI18n({...this.selectedFacetsAriaNotification,args:[this.numberOfChips]});this.sendAriaNotification(e,{checkVisibility:this.numberOfChips!=0})})}};be.elementDefinitions={"ft-chip":j,"ft-tooltip":Y};be.styles=ho;dt([(0,qn.property)({type:Boolean})],be.prototype,"displayLabel",void 0);dt([(0,qn.property)({type:Boolean})],be.prototype,"forceTooltip",void 0);dt([(0,qn.property)({type:Boolean})],be.prototype,"multiLine",void 0);dt([(0,W.numberProperty)()],be.prototype,"hierarchicalValueTruncatingLevel",void 0);dt([(0,W.redux)({store:"search"})],be.prototype,"facets",void 0);dt([(0,W.redux)({store:"search",selector:yn})],be.prototype,"searchInDocumentTitlesOnly",void 0);dt([(0,W.redux)({store:"search",selector:gn})],be.prototype,"keywordMatch",void 0);dt([(0,W.redux)({store:"search",selector:t=>t.request.metadataFilters})],be.prototype,"filters",void 0);dt([(0,W.redux)({store:"search",selector:t=>t.request.scope})],be.prototype,"scope",void 0);dt([(0,W.jsonProperty)({context:"officialContext",key:"searchSelectedFacetsAriaNotification"})],be.prototype,"selectedFacetsAriaNotification",void 0);var ed={"ft-search-selected-facets":be};(0,td.customElements)(ed);})();
1710
+ </ft-tooltip>`}updated(e){var r,i,n,s;if(super.updated(e),e.get("filters")){let o=(n=(r=this.filters)===null||r===void 0?void 0:r.filter(l=>l.dateFilter||l.rangeFilter).length)!==null&&n!==void 0?n:0,a=e.get("filters").filter(l=>l.dateFilter||l.rangeFilter).length;(o-a==1||a>0&&!this.hasSomethingToDisplay)&&this.announceFilters()}if(e.get("facets")){let o=(s=(i=this.facets)===null||i===void 0?void 0:i.filter(l=>this.getSelectedValues(l).length>0).length)!==null&&s!==void 0?s:0,a=e.get("facets").filter(l=>this.getSelectedValues(l).length>0).length;(o-a==1||a>0&&!this.hasSomethingToDisplay)&&this.announceFilters()}if(e.has("searchInDocumentTitlesOnly")){let o=e.get("searchInDocumentTitlesOnly");(!o&&this.searchInDocumentTitlesOnly||o&&!this.hasSomethingToDisplay)&&this.announceFilters()}if(e.has("keywordMatch")){let o=e.get("keywordMatch");(!o&&this.keywordMatch||o&&!this.hasSomethingToDisplay)&&this.announceFilters()}}announceFilters(){this.ariaNotificationDebouncer.run(async()=>{let e=await this.awaitI18n({...this.selectedFacetsAriaNotification,args:[this.numberOfChips]});this.sendAriaNotification(e,{checkVisibility:this.numberOfChips!=0})})}};ee.elementDefinitions={"ft-chip":j,"ft-tooltip":Y};ee.styles=ho;ke([(0,br.property)({type:Boolean})],ee.prototype,"displayLabel",void 0);ke([(0,br.property)({type:Boolean})],ee.prototype,"forceTooltip",void 0);ke([(0,br.property)({type:Boolean})],ee.prototype,"multiLine",void 0);ke([(0,q.numberProperty)()],ee.prototype,"hierarchicalValueTruncatingLevel",void 0);ke([(0,q.redux)({store:"search"})],ee.prototype,"facets",void 0);ke([(0,q.redux)({store:"search",selector:vn})],ee.prototype,"searchInDocumentTitlesOnly",void 0);ke([(0,q.redux)({store:"search",selector:bn})],ee.prototype,"keywordMatch",void 0);ke([(0,q.redux)({store:"search",selector:t=>t.request.metadataFilters})],ee.prototype,"filters",void 0);ke([(0,q.redux)({store:"search",selector:t=>t.request.scope})],ee.prototype,"scope",void 0);ke([(0,q.jsonProperty)({context:"officialContext",key:"searchSelectedFacetsAriaNotification"})],ee.prototype,"selectedFacetsAriaNotification",void 0);ke([(0,q.jsonProperty)({message:""})],ee.prototype,"nothingToDisplayMessage",void 0);ke([(0,br.property)({type:Boolean})],ee.prototype,"readOnly",void 0);ke([(0,br.property)({type:Boolean})],ee.prototype,"dense",void 0);ke([(0,br.property)({type:Boolean})],ee.prototype,"displayAllFilers",void 0);var ed={"ft-search-selected-facets":ee};(0,td.customElements)(ed);})();
1703
1711
  /*! Bundled license information:
1704
1712
 
1705
1713
  .store/@lit-context-npm-1.1.6-2c155157c6/package/lib/context-request-event.js: