@fluid-topics/ft-reader-content 2.0.38 → 2.1.1
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.
- package/build/ft-reader-content.light.js +107 -126
- package/build/ft-reader-content.min.js +87 -105
- package/package.json +8 -8
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";(()=>{var
|
|
1
|
+
"use strict";(()=>{var Da=Object.create;var Rn=Object.defineProperty;var ka=Object.getOwnPropertyDescriptor;var Ua=Object.getOwnPropertyNames;var Fa=Object.getPrototypeOf,$a=Object.prototype.hasOwnProperty;var dt=(r,e)=>()=>{try{return e||r((e={exports:{}}).exports,e),e.exports}catch(t){throw e=0,t}};var ja=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Ua(e))!$a.call(r,i)&&i!==t&&Rn(r,i,{get:()=>e[i],enumerable:!(n=ka(e,i))||n.enumerable});return r};var v=(r,e,t)=>(t=r!=null?Da(Fa(r)):{},ja(e||!r||!r.__esModule?Rn(t,"default",{value:r,enumerable:!0}):t,r));var T=dt((Go,On)=>{On.exports=ftGlobals.wcUtils});var F=dt((Yo,Ln)=>{Ln.exports=ftGlobals.lit});var K=dt((Qo,Mn)=>{Mn.exports=ftGlobals.litDecorators});var xr=dt((tc,kn)=>{kn.exports=ftGlobals.litRepeat});var Fn=dt((rc,Un)=>{Un.exports=ftGlobals.litUnsafeHTML});var Na=v(T());var Sr=v(F()),wt=v(K()),W=v(T());var It=v(T()),Pn=v(K());var pe;(function(r){r.clusteringHelperCreated="clustering-helper-created",r.mapAttachmentsUpdate="map-attachments-update",r.visibleTopicChange="visible-topic-change",r.requestedTopicNotFound="requested-topic-not-found"})(pe||(pe={}));var ae;(function(r){r.FEEDBACK="FEEDBACK",r.RATING="RATING",r.PRINT="PRINT",r.BOOKMARK="BOOKMARK",r.COLLECTIONS="COLLECTIONS",r.PERSONAL_BOOKS="PERSONAL_BOOKS"})(ae||(ae={}));var Ba=function(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var o=r.length-1;o>=0;o--)(a=r[o])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s},Er=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},Ar=Symbol("registerInterval"),Ha=(0,It.applyMixinOnce)(Symbol("toFtReaderComponent"),function(r){var e;class t extends r{constructor(){super(...arguments),this[e]=0}setReaderStateManager(i){this.clearStateManager(),this.stateManager=i,this.addStore(i.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var i;return(i=this.stateManager)===null||i===void 0?void 0:i.service}connectedCallback(){super.connectedCallback(),this[Ar]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[Ar]):this.dispatchEvent(new Er)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=Ar,Ba([(0,Pn.state)()],t.prototype,"stateManager",void 0),t}),Ue=class extends Ha(It.FtLitElementRedux){};var Nn=v(F()),_t=v(T()),Tr={padding:_t.FtCssVariableFactory.create("--ft-infinite-scroll-padding","","SIZE","0"),itemsGap:_t.FtCssVariableFactory.create("--ft-infinite-scroll-items-gap","","SIZE","4px"),itemContainerMinHeight:_t.FtCssVariableFactory.create("--ft-infinite-scroll-item-container-min-height","","SIZE",".1px")},Dn=Nn.css`
|
|
2
2
|
.items-container {
|
|
3
|
-
padding: ${
|
|
3
|
+
padding: ${Tr.padding};
|
|
4
4
|
outline: none;
|
|
5
5
|
}
|
|
6
6
|
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
By adding this gap we ensure that the previous item will be fully hidden
|
|
18
18
|
and even if its size changes, it will not impact the scroll offset
|
|
19
19
|
*/
|
|
20
|
-
margin-top: ${
|
|
20
|
+
margin-top: ${Tr.itemsGap};
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
.item-container:not(.rendered) {
|
|
@@ -26,36 +26,36 @@
|
|
|
26
26
|
|
|
27
27
|
.item-container.rendered {
|
|
28
28
|
display: flow-root;
|
|
29
|
-
min-height: ${
|
|
29
|
+
min-height: ${Tr.itemContainerMinHeight};
|
|
30
30
|
}
|
|
31
|
-
`;var
|
|
31
|
+
`;var Fe=v(F()),j=v(K()),$n=v(xr()),x=v(T()),jn=v(Fn());var $=function(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var o=r.length-1;o>=0;o--)(a=r[o])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s},Cr=class extends CustomEvent{constructor(e,t){super("visible-items-change",{detail:{indexes:e,items:t,visibleIndexes:e,visibleItems:t}})}},wr=class extends CustomEvent{constructor(e,t){super("rendered-items-change",{detail:{indexes:e,items:t}})}},Ir=class extends Event{constructor(){super("scrolled-to-target")}},Va=r=>(r??[])[(r??[]).length-1],R=class extends x.FtLitElement{constructor(){super(...arguments),this.items=[],this.renderItem=()=>Fe.html``,this.getItemKey=(e,t)=>`${t} - ${JSON.stringify(e)}`,this.internalScroll=!1,this.renderBeforeFirst=1,this.renderAfterLast=1,this.ensureScrollToTarget=!1,this.disableScrollManagement=!1,this.visibleItems=[],this.scrolledToTarget=!1,this.scrolling=!1,this.renderApprovalTimeouts=[],this.renderedIndexes=new Set,this.scrollDebouncer=new x.Debouncer(5),this.scrollDoneDebouncer=new x.Debouncer(10),this.onVisibilityChange=e=>{let t=new Set(this.visibleItems),n=new Set;for(let i of e){let s=+i.target.getAttribute("data-item-index");i.intersectionRect.height>0?(t.add(s),n.add(s)):n.has(s)||t.delete(s)}this.visibleItems=[...t].sort((i,s)=>i-s)},this.intersectionObserver=new IntersectionObserver(this.onVisibilityChange),this.scrollingDebouncer=new x.Debouncer(50),this.ignoreNextScrollEvent=!1,this.scrollListener=()=>{var e;if(this.disableScrollManagement)return;let t=this.ignoreNextScrollEvent;this.ignoreNextScrollEvent=!1,t||(this.scrolling=!0,this.scrollingDebouncer.run(()=>this.scrolling=!1));let n=this.scrollable.scrollTop,i=n-((e=this.lastScrollTop)!==null&&e!==void 0?e:0);if(this.lastScrollTop=n,this.scrolledToTarget&&(this.restoreScrollIfNeeded(t?0:i),!t||this.scrollRestorationItem==null)){let s=this.searchFirstVisibleItem(n,this.itemsContainer.children);this.scrollRestorationItem=s?+s.getAttribute("data-item-index"):void 0,this.scrollRestorationOffset=n-this.getOffset(s)}},this.restoreScrollIfNeeded=(e=0)=>{var t;let n=this.scrollable.scrollHeight,i=n-((t=this.lastScrollHeight)!==null&&t!==void 0?t:n);if(this.lastScrollHeight=n,i!==0&&this.scrolledToTarget&&this.scrollRestorationItem!=null&&this.scrollRestorationOffset!=null&&!(this.scrollRestorationItem===0&&this.scrollRestorationOffset<0)){let s=this.getItem(this.scrollRestorationItem),a=this.getOffset(s),o=(0,x.minmax)(this.scrollRestorationItem===0?-a:1,this.scrollRestorationOffset,s.clientHeight-1),c=a+o+e-this.scrollable.scrollTop;(Math.abs(i-c)<4||Math.abs(c)>5)&&(this.ignoreNextScrollEvent=!0,this.scrollable.scrollTop+=c)}},this._shouldRestoreScroll=!1,this.scrollAdjustment=()=>{this.restoreScrollIfNeeded(),this.shouldRestoreScroll&&requestAnimationFrame(this.scrollAdjustment)},this.onMutation=()=>{for(let e of this.itemsContainer.children)this.intersectionObserver.observe(e)},this.mutationObserver=new MutationObserver(this.onMutation),this.lastRenderedItemsLength=0,this.resetVisibleItemsAttempted=!1,this.resetVisibleItemsDebouncer=new x.Debouncer(10)}get scrollable(){var e;return(e=this._scrollable)!==null&&e!==void 0?e:document.body}set scrollable(e){var t,n,i;this._scrollable!==e&&(this._scrollable&&(this._scrollable.removeEventListener("scroll",this.scrollListener),this.initialOverflowAnchorValue&&(this._scrollable.style.overflowAnchor=this.initialOverflowAnchorValue),x.scrollHelper.release(this,this._scrollable)),this._scrollable=x.scrollHelper.lock(this,e),e&&!this._scrollable&&console.error("Scrollable parent is already locked",this,e),(t=this._scrollable)===null||t===void 0||t.addEventListener("scroll",this.scrollListener),this.lastScrollTop=(n=this._scrollable)===null||n===void 0?void 0:n.scrollTop,this.lastScrollHeight=(i=this._scrollable)===null||i===void 0?void 0:i.scrollHeight,this._scrollable&&(this.initialOverflowAnchorValue=getComputedStyle(this._scrollable).overflowAnchor,this._scrollable.style.overflowAnchor="none"))}render(){return Fe.html`
|
|
32
32
|
<div @scroll-into-view=${this.onScrollIntoView} class="items-container ${this.internalScroll?"scrollable":""}" tabindex="-1">
|
|
33
|
-
${(0
|
|
33
|
+
${(0,$n.repeat)(this.items,(e,t)=>this.getItemKey(e,t),(e,t)=>this.renderItemContainer(e,t))}
|
|
34
34
|
</div>
|
|
35
|
-
`}renderItemContainer(e,
|
|
36
|
-
<div id="item-${
|
|
37
|
-
class="item-container ${
|
|
38
|
-
data-item-index="${
|
|
39
|
-
${
|
|
35
|
+
`}renderItemContainer(e,t){this.prepareRenderIfNeeded(t);let n=this.scrolledToTarget&&this.visibleItems.includes(t),i=this.renderedIndexes.has(t);return Fe.html`
|
|
36
|
+
<div id="item-${t}"
|
|
37
|
+
class="item-container ${i?"rendered":""} ${n?"visible":""}"
|
|
38
|
+
data-item-index="${t}">
|
|
39
|
+
${i?(()=>{let a=this.renderItem(e,t);return typeof a=="string"?(0,jn.unsafeHTML)(a):a})():Fe.nothing}
|
|
40
40
|
</div>
|
|
41
|
-
`}prepareRenderIfNeeded(e){let
|
|
42
|
-
`;var
|
|
43
|
-
`;var
|
|
41
|
+
`}prepareRenderIfNeeded(e){let t=this.renderApprovalTimeouts[e]!=null;this.inRenderRange(e)&&!t&&(this.renderApprovalTimeouts[e]=setTimeout(()=>{this.inRenderRange(e)?(this.addRenderedIndex(e),this.requestUpdate()):this.renderApprovalTimeouts[e]=void 0},300))}addRenderedIndex(e){e>=0&&!this.renderedIndexes.has(e)&&this.renderedIndexes.add(e)}inRenderRange(e){return e>=this.visibleItems[0]-this.renderBeforeFirst&&e<=Va(this.visibleItems)+this.renderAfterLast}isRendered(e){return this.renderedIndexes.has(this.items.indexOf(e))}resetScroll(e=!0){if(this.disableScrollManagement)return;this.shouldRestoreScroll=!1,this.intersectionObserver.disconnect(),this.visibleItems=[],this.scrolledToTarget=!1,this.updateScrollableParent(e);let t=this.resolveScrollToIndex();this.addRenderedIndex(t),this.scrollToTarget(t),this.scrollDoneDebouncer.run(()=>{this.scrollToTarget(t),this.scrolledToTarget=!0,this.shouldRestoreScroll=!0,this.resetIntersectionObserver(),this.ensureScrollPosition(t)})}updateScrollableParent(e){this.internalScroll&&this.scrollable!==this.internalScrollable?this.scrollable=this.internalScrollable:!this.internalScroll&&e&&(this.scrollable=x.scrollHelper.findFirstScrollableParent(this.itemsContainer))}ensureScrollPosition(e){!this.ensureScrollToTarget||e<0||this.scrollDebouncer.run(()=>{Math.abs(this.scrollable.scrollTop-this.getOffset(e))>5&&this.scrollToTarget(e)},500)}resolveScrollToIndex(){var e;let t=(e=this.scrollToIndex)!==null&&e!==void 0?e:this.scrollToItem?this.items.indexOf(this.scrollToItem):-1;return t>=this.items.length?-1:t}getItem(e){var t,n;return(n=(t=this.shadowRoot)===null||t===void 0?void 0:t.querySelector(`#item-${e}`))!==null&&n!==void 0?n:this.shadowRoot.querySelector("#item-0")}scrollToTarget(e){e<=0?(this.scrollable.scrollTop=0,this.scrollRestorationOffset=-this.getOffset(e)):(this.scrollable.scrollTop=this.getOffset(e),this.scrollRestorationOffset=0),this.scrollRestorationItem=e>=0?e:void 0}onScrollIntoView(e){var t;if(this.disableScrollManagement)return;this.scrollDebouncer.cancel();let n=e.composedPath()[0],i=this.getOffset(n),s=(t=e.composedPath().find(a=>typeof a.matches=="function"&&a.matches(".item-container")))===null||t===void 0?void 0:t.getAttribute("data-item-index");this.scrollRestorationItem=s==null?this.scrollRestorationItem:+s,this.scrollRestorationOffset=i-this.getOffset(this.scrollRestorationItem),this.ignoreNextScrollEvent=!0,this.scrollable.scrollTop=i}getOffset(e){let t=typeof e=="number"?this.getItem(e):e;return t?x.scrollHelper.getAbsoluteScrollOffset(this.scrollable,t):0}appendItems(...e){this.items=[...this.items,...e]}prependItems(...e){this.items=[...e,...this.items]}connectedCallback(){super.connectedCallback(),setTimeout(()=>{this.mutationObserver.disconnect(),this.mutationObserver.observe(this.itemsContainer,{childList:!0}),this.resetScroll()},0)}disconnectedCallback(){super.disconnectedCallback(),this.scrollable=void 0,this.intersectionObserver.disconnect(),this.mutationObserver.disconnect(),this.shouldRestoreScroll=!1}resetIntersectionObserver(){this.intersectionObserver.disconnect(),this.intersectionObserver=new IntersectionObserver(this.onVisibilityChange,{root:this.scrollable,rootMargin:"-8px",threshold:[0,.01,.1,1]}),this.onMutation()}searchFirstVisibleItem(e,t,n,i){if(n=n??0,i=i??t.length-1,i<=n)return t[n];let s=Math.floor((i-n)/2)+n,a=t[s],o=this.getOffset(a);return o>e?this.searchFirstVisibleItem(e,t,n,s-1):o+a.clientHeight<e?this.searchFirstVisibleItem(e,t,s+1,i):a}get shouldRestoreScroll(){return this._shouldRestoreScroll}set shouldRestoreScroll(e){let t=e&&!this._shouldRestoreScroll;this._shouldRestoreScroll=e,t&&requestAnimationFrame(this.scrollAdjustment)}willUpdate(e){super.willUpdate(e),e.has("items")&&(this.renderApprovalTimeouts.forEach(n=>clearTimeout(n)),this.renderApprovalTimeouts=[],this.renderedIndexes=new Set,this.lastRenderedItemsLength=0),((e.has("scrollToItem")||e.has("scrollToIndex"))&&(this.scrollToItem!=null||this.scrollToIndex!=null)||e.has("internalScroll"))&&(0,x.waitFor)(()=>this.itemsContainer).then(()=>this.resetScroll())}updated(e){super.updated(e),(e.has("visibleItems")||e.has("items"))&&this.onVisibleItemsChange(),e.has("scrolledToTarget")&&this.scrolledToTarget&&(this.scrollToItem!=null||this.scrollToIndex!=null)&&this.dispatchEvent(new Ir)}contentAvailableCallback(e){var t,n;super.contentAvailableCallback(e);let i=[...(n=(t=this.shadowRoot)===null||t===void 0?void 0:t.querySelectorAll(".item-container.rendered"))!==null&&n!==void 0?n:[]].map(s=>+s.getAttribute("data-item-index"));this.lastRenderedItemsLength!==i.length&&(this.dispatchRenderedItemsChangeEvent(i),this.lastRenderedItemsLength=i.length)}dispatchRenderedItemsChangeEvent(e){let t=e??[...this.renderedIndexes].sort((n,i)=>n-i);this.dispatchEvent(new wr(t,t.map(n=>this.items[n])))}onVisibleItemsChange(){this.visibleItems.every((t,n)=>this.visibleItems[n+1]==null||t+1===this.visibleItems[n+1])||this.resetVisibleItemsAttempted?(this.resetVisibleItemsAttempted=!1,this.resetVisibleItemsDebouncer.cancel(),this.dispatchVisibleItemsEvent()):this.resetVisibleItemsDebouncer.run(()=>{this.resetVisibleItemsAttempted=!0,this.visibleItems=[],this.resetIntersectionObserver()})}dispatchVisibleItemsEvent(){var e;(e=this.cancelableDispatchEvent)===null||e===void 0||e.cancel(),this.cancelableDispatchEvent=(0,x.cancelable)((0,x.waitUntil)(()=>this.scrolledToTarget&&!this.scrolling)),this.cancelableDispatchEvent.then(()=>this.dispatchEvent(new Cr(this.visibleItems,this.visibleItems.map(t=>this.items[t])))).catch(()=>null)}};R.styles=Dn;$([(0,j.property)({attribute:!1,hasChanged:x.hasChanged})],R.prototype,"items",void 0);$([(0,j.property)({attribute:!1})],R.prototype,"renderItem",void 0);$([(0,j.property)({attribute:!1})],R.prototype,"getItemKey",void 0);$([(0,j.property)({type:Object})],R.prototype,"scrollToItem",void 0);$([(0,x.numberProperty)()],R.prototype,"scrollToIndex",void 0);$([(0,j.property)({type:Boolean})],R.prototype,"internalScroll",void 0);$([(0,x.numberProperty)()],R.prototype,"renderBeforeFirst",void 0);$([(0,x.numberProperty)()],R.prototype,"renderAfterLast",void 0);$([(0,j.property)({type:Boolean})],R.prototype,"ensureScrollToTarget",void 0);$([(0,j.property)({type:Boolean})],R.prototype,"disableScrollManagement",void 0);$([(0,j.state)({hasChanged(r,e){return r!=null&&e==null||r.length!==e.length||r[0]!==e[0]}})],R.prototype,"visibleItems",void 0);$([(0,j.query)(".scrollable")],R.prototype,"internalScrollable",void 0);$([(0,j.query)(".items-container")],R.prototype,"itemsContainer",void 0);$([(0,j.state)()],R.prototype,"scrolledToTarget",void 0);$([(0,j.state)()],R.prototype,"scrolling",void 0);var Hn=v(T());var Bn={"ft-infinite-scroll":R};(0,Hn.customElements)(Bn);var Vn=v(F());var Kn=Vn.css`
|
|
42
|
+
`;var qn=v(F());var zn=qn.css`
|
|
43
|
+
`;var Wn=v(F()),$e=v(K());var Rt=v(T()),Se=function(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var o=r.length-1;o>=0;o--)(a=r[o])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s},G=class extends Ue{constructor(){super(...arguments),this.disableContextInteractions=!1,this.headingLevelsShift=0,this.registeredComponents=[]}render(){return Wn.html`
|
|
44
44
|
<article id=${this.tocId}>
|
|
45
45
|
<slot @register-ft-reader-topic-component=${this.registerComponent}></slot>
|
|
46
46
|
</article>
|
|
47
|
-
`}registerComponent(e){e.stopPropagation();let
|
|
48
|
-
`;var Lt=x(F()),De=x(j()),D=x(w());var V=x(w());var ln=x(w()),xs={setTranslationDestinationLanguage:(o,e)=>{o.translation.destinationLanguage=e.payload},setTranslationSourceLanguage:(o,e)=>{o.translation.sourceLanguage=e.payload},setTranslationProfileId:(o,e)=>{o.translation.profileId=e.payload},setTranslationLoading:(o,e)=>{o.translation.isLoading=e.payload},setTranslationError:(o,e)=>{o.translation.isError=e.payload},setTopicsRating:(o,e)=>{for(let r in e.payload)o.topicsRating[r]=e.payload[r]}},dn=o=>ln.FtReduxStore.get({name:"ft-reader-"+o,initialState:{mapId:void 0,renderedTopics:[],visibleTopics:[],map:void 0,toc:void 0,pagesToc:void 0,paginationConfiguration:void 0,currentPage:void 0,scrollTarget:void 0,configuration:void 0,searchInDocumentQuery:void 0,relatives:void 0,mapRating:void 0,topicsRating:{},translation:{sourceLanguage:void 0,destinationLanguage:void 0,profileId:void 0,isLoading:!1,isError:!1},linkPreviewDialogId:void 0},reducers:xs});var Ur=class{constructor(e,r){this.mapId=e,this.paginatedToc=r,this.nodeByTocId={},this.nodeByUrl={},this.duplicatedPrettyUrls=new Set,this.pages=[],this.pageByTocId={}}build(){return{paginationConfiguration:this.paginatedToc.configuration,toc:this.convertNodes(this.paginatedToc.paginatedToc,1),pagesToc:this.extractPagesToc(this.paginatedToc.paginatedToc,1),nodeByTocId:this.nodeByTocId,nodeByUrl:this.nodeByUrl,duplicatedPrettyUrls:this.duplicatedPrettyUrls,pages:this.pages,pageByTocId:this.pageByTocId,translationError:this.paginatedToc.translationError}}extractPagesToc(e,r,n){return e.flatMap(a=>{var s;return a.pageConfiguration&&this.registerPage(this.buildPage(a,n)),a.tocId==null?this.extractPagesToc(a.children,r,n):[{tocId:a.tocId,title:(s=a.title)!==null&&s!==void 0?s:"",untranslatedTitle:a.untranslatedTitle,depth:r,children:this.extractPagesToc(a.children,r+1,a.tocId)}]})}convertNodes(e,r,n){return e.flatMap(a=>{var s,c,d;if(a.tocId==null)return[...this.convertSectionNodes((s=a.pageToc)!==null&&s!==void 0?s:[],r,a.tocId),...this.convertNodes(a.children,r,a.tocId)];let u=(c=a.prettyUrl)===null||c===void 0?void 0:c.replace(/^\//,""),p={tocId:a.tocId,contentId:a.contentId,title:a.title,untranslatedTitle:a.untranslatedTitle,hasRating:a.hasRating,origin:a.origin,prettyUrl:u,depth:r,parentTocId:n,children:[]};this.register(p);let f=this.convertSectionNodes((d=a.pageToc)!==null&&d!==void 0?d:[],r+1,a.tocId),h=this.convertNodes(a.children,r+1,p.tocId);return p.children=[...f,...h],[p]})}convertSectionNodes(e,r,n){return e.flatMap(a=>{var s;let c=(s=a.prettyUrl)===null||s===void 0?void 0:s.replace(/^\//,""),d={...a,prettyUrl:c,depth:r,parentTocId:n,children:[]};return this.register(d),d.children=this.convertSectionNodes(a.children,r+1,a.tocId),[d]})}buildPage(e,r){var n,a,s,c,d,u,p,f;let h={number:this.pages.length+1,title:(n=e.title)!==null&&n!==void 0?n:"",untranslatedTitle:e.untranslatedTitle,rootTocId:(c=(a=e.tocId)!==null&&a!==void 0?a:(s=e.pageToc)===null||s===void 0?void 0:s[0].tocId)!==null&&c!==void 0?c:"root",toc:((d=e.pageToc)!==null&&d!==void 0?d:[]).map(y=>this.nodeByTocId[y.tocId]),topics:[],hiddenTopics:[],breadcrumb:r?this.buildBreadcrumb(this.nodeByTocId[r]):[]},g=(y,v)=>(v?h.topics:h.hiddenTopics).push(y),m=(p=(u=e.pageConfiguration)===null||u===void 0?void 0:u.parentsVisibility)!==null&&p!==void 0?p:[];return h.breadcrumb.forEach((y,v)=>{g(y,m[v])}),e.tocId&&g(e.tocId,e.pageConfiguration.isVisible),h.topics.push(...this.tocIds((f=e.pageToc)!==null&&f!==void 0?f:[])),h}registerPage(e){for(let r of[...e.topics,...e.hiddenTopics])this.pageByTocId[r]||(this.pageByTocId[r]=e);this.pages.push(e)}tocIds(e){return e.flatMap(r=>[r.tocId,...this.tocIds(r.children)])}buildBreadcrumb(e){let r=[e.tocId];for(;e?.parentTocId;)r.unshift(e.parentTocId),e=this.nodeByTocId[e.parentTocId];return r}register(e){e.prettyUrl&&(this.nodeByUrl[e.prettyUrl]==null?this.nodeByUrl[e.prettyUrl]=e:this.duplicatedPrettyUrls.add(e.prettyUrl)),this.nodeByUrl[`${this.mapId}/${e.tocId}`]=e,this.nodeByTocId[e.tocId]=e}},Bt=class{convertPaginatedToc(e,r){return new Ur(e,r).build()}};var un;(function(o){o.black="black",o.green="green",o.blue="blue",o.purple="purple",o.red="red",o.orange="orange",o.yellow="yellow"})(un||(un={}));var pn;(function(o){o.OFFICIAL="OFFICIAL",o.PERSONAL="PERSONAL",o.SHARED="SHARED"})(pn||(pn={}));var fn;(function(o){o.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",o.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",o.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",o.PERSONAL_BOOK="PERSONAL_BOOK",o.ATTACHMENT="ATTACHMENT",o.RESOURCE="RESOURCE",o.HTML_PACKAGE="HTML_PACKAGE"})(fn||(fn={}));var hn;(function(o){o.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",o.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",o.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",o.PERSONAL_BOOK="PERSONAL_BOOK",o.ATTACHMENT="ATTACHMENT",o.RESOURCE="RESOURCE",o.HTML_PACKAGE="HTML_PACKAGE"})(hn||(hn={}));var gn;(function(o){o.LAST_WEEK="LAST_WEEK",o.LAST_MONTH="LAST_MONTH",o.LAST_QUARTER="LAST_QUARTER",o.LAST_YEAR="LAST_YEAR"})(gn||(gn={}));var yn;(function(o){o.VALUE="VALUE",o.DATE="DATE",o.RANGE="RANGE"})(yn||(yn={}));var Ht;(function(o){o.OFFICIAL="OFFICIAL",o.AI="AI"})(Ht||(Ht={}));var mn;(function(o){o.BOOKMARK__CREATE="BOOKMARK__CREATE",o.BOOKMARK__DELETE="BOOKMARK__DELETE",o.CASE_DEFLECTION__START="CASE_DEFLECTION__START",o.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",o.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",o.CHATBOT__RATE="CHATBOT__RATE",o.COLLECTION__CREATE="COLLECTION__CREATE",o.COLLECTION__UPDATE="COLLECTION__UPDATE",o.COLLECTION__DELETE="COLLECTION__DELETE",o.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",o.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",o.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",o.DOCUMENT__PRINT="DOCUMENT__PRINT",o.DOCUMENT__PROCESS="DOCUMENT__PROCESS",o.DOCUMENT__RATE="DOCUMENT__RATE",o.DOCUMENT__SEARCH="DOCUMENT__SEARCH",o.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",o.DOCUMENT__UNRATE="DOCUMENT__UNRATE",o.FEEDBACK__SEND="FEEDBACK__SEND",o.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",o.AI__RATE="AI__RATE",o.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",o.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",o.KHUB__PROCESS="KHUB__PROCESS",o.KHUB__SEARCH="KHUB__SEARCH",o.LABELS__DOWNLOAD="LABELS__DOWNLOAD",o.LINK__SHARE="LINK__SHARE",o.PAGE__DISPLAY="PAGE__DISPLAY",o.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",o.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",o.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",o.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",o.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",o.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",o.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",o.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",o.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",o.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",o.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",o.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",o.TOPIC__RATE="TOPIC__RATE",o.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",o.TOPIC__UNRATE="TOPIC__UNRATE",o.USER__LOGIN="USER__LOGIN",o.USER__LOGOUT="USER__LOGOUT",o.HEARTBEAT="HEARTBEAT"})(mn||(mn={}));var bn;(function(o){o.STANDARD="STANDARD",o.STRUCTURAL="STRUCTURAL"})(bn||(bn={}));var vn;(function(o){o.THIRD_PARTY="THIRD_PARTY",o.OFF_THE_GRID="OFF_THE_GRID",o.CONTENT_PACKAGER="CONTENT_PACKAGER",o.PAGES="PAGES",o.DESIGNED_READER="DESIGNED_READER"})(vn||(vn={}));var xn;(function(o){o.HOMEPAGE="HOMEPAGE",o.CUSTOM="CUSTOM",o.HEADER="HEADER",o.READER="READER",o.TOPIC_TEMPLATE="TOPIC_TEMPLATE",o.SEARCH="SEARCH",o.SEARCH_RESULT="SEARCH_RESULT",o.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",o.LINK_PREVIEW="LINK_PREVIEW",o.UD_VIEWER="UD_VIEWER",o.ASSET_VIEWER="ASSET_VIEWER"})(xn||(xn={}));var Sn;(function(o){o.CLASSIC="CLASSIC",o.CUSTOM="CUSTOM",o.DESIGNER="DESIGNER"})(Sn||(Sn={}));var Cn;(function(o){o.AND="AND",o.OR="OR",o.MONOVALUED="MONOVALUED"})(Cn||(Cn={}));var On;(function(o){o.NONE="NONE",o.ALPHABET="ALPHABET",o.VERSION="VERSION"})(On||(On={}));var En;(function(o){o.STARS="STARS",o.LIKE="LIKE",o.DICHOTOMOUS="DICHOTOMOUS",o.NO_RATING="NO_RATING"})(En||(En={}));var An;(function(o){o.LAST_WEEK="LAST_WEEK",o.LAST_MONTH="LAST_MONTH",o.LAST_QUARTER="LAST_QUARTER",o.LAST_YEAR="LAST_YEAR",o.CUSTOM="CUSTOM"})(An||(An={}));var wn;(function(o){o.OPTIONAL="OPTIONAL",o.MANDATORY="MANDATORY"})(wn||(wn={}));var In;(function(o){o.ASC="ASC",o.DESC="DESC"})(In||(In={}));var Tn;(function(o){o.ALPHA="ALPHA",o.NATURAL="NATURAL"})(Tn||(Tn={}));var Rn;(function(o){o.EVERYWHERE="EVERYWHERE",o.TITLE_ONLY="TITLE_ONLY",o.NONE="NONE"})(Rn||(Rn={}));var Ln;(function(o){o.ARTICLE="ARTICLE",o.BOOK="BOOK",o.SHARED_BOOK="SHARED_BOOK",o.HTML_PACKAGE="HTML_PACKAGE"})(Ln||(Ln={}));var kn;(function(o){o.FLUIDTOPICS="FLUIDTOPICS",o.EXTERNAL="EXTERNAL"})(kn||(kn={}));var _n;(function(o){o.MAP="MAP",o.DOCUMENT="DOCUMENT",o.TOPIC="TOPIC",o.PERSONAL_BOOK="PERSONAL_BOOK",o.SHARED_BOOK="SHARED_BOOK",o.HTML_PACKAGE="HTML_PACKAGE"})(_n||(_n={}));var Nn;(function(o){o.LAST_WEEK="LAST_WEEK",o.LAST_MONTH="LAST_MONTH",o.LAST_QUARTER="LAST_QUARTER",o.LAST_YEAR="LAST_YEAR"})(Nn||(Nn={}));var Pn;(function(o){o.MAP="MAP",o.DOCUMENT="DOCUMENT",o.TOPIC="TOPIC",o.HTML_PACKAGE="HTML_PACKAGE",o.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Pn||(Pn={}));var Dn;(function(o){o.DEFAULT="DEFAULT",o.DOCUMENTS="DOCUMENTS",o.ALL_TOPICS="ALL_TOPICS",o.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Dn||(Dn={}));var Mn;(function(o){o.PLAIN_TEXT="PLAIN_TEXT",o.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",o.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Mn||(Mn={}));var T;(function(o){o.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",o.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",o.HTML_EXPORT_USER="HTML_EXPORT_USER",o.PDF_EXPORT_USER="PDF_EXPORT_USER",o.SAVED_SEARCH_USER="SAVED_SEARCH_USER",o.COLLECTION_USER="COLLECTION_USER",o.OFFLINE_USER="OFFLINE_USER",o.ANALYTICS_USER="ANALYTICS_USER",o.BETA_USER="BETA_USER",o.DEBUG_USER="DEBUG_USER",o.PRINT_USER="PRINT_USER",o.RATING_USER="RATING_USER",o.FEEDBACK_USER="FEEDBACK_USER",o.GENERATIVE_AI_USER="GENERATIVE_AI_USER",o.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",o.CONTENT_PUBLISHER="CONTENT_PUBLISHER",o.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",o.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",o.KHUB_ADMIN="KHUB_ADMIN",o.USERS_ADMIN="USERS_ADMIN",o.PORTAL_ADMIN="PORTAL_ADMIN",o.ADMIN="ADMIN"})(T||(T={}));var X;(function(o){o.SEARCHES="SEARCHES",o.BOOKMARKS="BOOKMARKS",o.BOOKS="BOOKS",o.COLLECTIONS="COLLECTIONS"})(X||(X={}));var Fn;(function(o){o.UNAUTHENTICATED="UNAUTHENTICATED",o.USER_INCOMPLETE="USER_INCOMPLETE",o.MFA_REQUIRED="MFA_REQUIRED",o.AUTHENTICATED="AUTHENTICATED"})(Fn||(Fn={}));var Un;(function(o){o.VALID="VALID",o.INVALID="INVALID"})(Un||(Un={}));var Bn;(function(o){o.INACCURATE="INACCURATE",o.INCOMPLETE="INCOMPLETE",o.OFF_TOPIC="OFF_TOPIC",o.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",o.SUMMARY="SUMMARY",o.SEMANTIC_SEARCH="SEMANTIC_SEARCH",o.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",o.OTHER="OTHER"})(Bn||(Bn={}));var Hn;(function(o){o.INACCURATE="INACCURATE",o.INCOMPLETE="INCOMPLETE",o.OFF_TOPIC="OFF_TOPIC",o.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",o.SLOW="SLOW",o.OTHER="OTHER"})(Hn||(Hn={}));var zn;(function(o){o.JSON="JSON",o.TEXT="TEXT"})(zn||(zn={}));var Gn;(function(o){o.JSON="JSON",o.TEXT="TEXT"})(Gn||(Gn={}));var Wn;(function(o){o.USER="USER",o.ASSISTANT="ASSISTANT"})(Wn||(Wn={}));var $n;(function(o){o.TEXT="TEXT",o.HTML="HTML"})($n||($n={}));var jn;(function(o){o.HTML="HTML",o.MARKDOWN="MARKDOWN"})(jn||(jn={}));var Vn;(function(o){o.MAP="MAP",o.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(Vn||(Vn={}));var Ss={[T.PERSONAL_BOOK_SHARE_USER]:[T.PERSONAL_BOOK_USER],[T.HTML_EXPORT_USER]:[T.PERSONAL_BOOK_USER],[T.PDF_EXPORT_USER]:[T.PERSONAL_BOOK_USER],[T.KHUB_ADMIN]:[T.CONTENT_PUBLISHER],[T.ADMIN]:[T.KHUB_ADMIN,T.USERS_ADMIN,T.PORTAL_ADMIN,T.BEHAVIOR_DATA_USER],[T.GENERATIVE_AI_EXPORT_USER]:[T.GENERATIVE_AI_USER]};function Kn(o,e){return o===e||(Ss[o]??[]).some(r=>Kn(r,e))}function de(o,e){return o==null?!1:(Array.isArray(o)?o:Array.isArray(o.roles)?o.roles:Array.isArray(o.profile?.roles)?o.profile.roles:[]).some(n=>Kn(n,e))}var uo=x(j());var Zn=x(j(),1);var Br=o=>e=>{window.customElements.get(o)||window.customElements.define(o,e)};function qn(o,e){return(0,Zn.property)({type:Object,converter:{fromAttribute:r=>{if(r==null)return St(o);try{return JSON.parse(r)}catch{return St(o)}},toAttribute:r=>JSON.stringify(r)},hasChanged:Ct,...e??{}})}function Cs(o,e){if(o===e)return!0;if(o&&e&&typeof o=="object"&&typeof e=="object"){if(o.constructor!==e.constructor)return!1;let r,n;if(Array.isArray(o)){if(r=o.length,r!=e.length)return!1;for(n=r;n--!==0;)if(!zt(o[n],e[n]))return!1;return!0}if(o instanceof Map&&e instanceof Map){if(o.size!==e.size)return!1;for(n of o.entries())if(!e.has(n[0]))return!1;for(n of o.entries())if(!zt(n[1],e.get(n[0])))return!1;return!0}if(o instanceof Set&&e instanceof Set){if(o.size!==e.size)return!1;for(n of o.entries())if(!e.has(n[0]))return!1;return!0}if(o.constructor===RegExp)return o.source===e.source&&o.flags===e.flags;if(o.valueOf!==Object.prototype.valueOf)return o.valueOf()===e.valueOf();let a=c=>Object.keys(c).filter(d=>c[d]!=null),s=a(o);if(r=s.length,r!==a(e).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(e,s[n]))return!1;for(n=r;n--!==0;){let c=s[n];if(!zt(o[c],e[c]))return!1}return!0}return o!==o&&e!==e||o==null&&e==null}function zt(o,e){try{return Cs(o,e)}catch{return!1}}function Ct(o,e){return!zt(o,e)}function St(o){return typeof window.structuredClone=="function"?structuredClone(o):o!=null?JSON.parse(JSON.stringify(o)):o}function Gt(o,e){let r=n=>n[o]===!0;return n=>{if(r(n))return n;let a=e(n);return a[o]=!0,a}}var Yn=x(j(),1);var Hr=o=>{let e=o??{};return(r,n)=>{var a;let s={hasChanged:Ct,attribute:!1,...e};(0,Yn.property)(s)(r,n);let c=r.constructor;c.reduxProperties=new Map(c.reduxProperties),c.reduxProperties.set(n,{selector:(a=e.selector)!==null&&a!==void 0?a:(d=>d[n]),store:e.store})}};var Wt=class{constructor(){this.queue=[]}add(e,r=!1){r&&this.clear(e.type),this.queue.push(e)}consume(e){let r=this.queue.find(n=>n.type===e);return r&&(this.queue=this.queue.filter(n=>n!==r)),r}clear(e){typeof e=="string"?this.queue=this.queue.filter(r=>r.type!==e):this.queue=this.queue.filter(r=>!e.test(r.type))}};var we=x(j(),1);var $t=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,r){return this.callbacks=[e],this.debounce(r)}queue(e,r){return this.callbacks.push(e),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((r,n)=>{this.resolvePromise=r,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let n=[...this.callbacks];this.callbacks=[];let a=(e=this.rejectPromise)!==null&&e!==void 0?e:(()=>null),s=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let c of n)try{await c()}catch(d){a(d);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 Xn=x(F(),1);var jt=globalThis,Os=jt.ShadowRoot&&(jt.ShadyCSS===void 0||jt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;var Qn=(o,e)=>{if(Os)o.adoptedStyleSheets=e.map((r=>r instanceof CSSStyleSheet?r:r.styleSheet));else for(let r of e){let n=document.createElement("style"),a=jt.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=r.cssText,o.appendChild(n)}};var Vt=class extends Xn.LitElement{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let e=this.scopedRegistryConstructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,e.defineScopedElements(e.elementDefinitions));let r={...e.shadowRootOptions,customElements:e.registry},n=this.renderOptions.creationScope=this.attachShadow(r);return Qn(n,e.elementStyles),n}static canDefineScopedElement(e){return!!this.registry&&!this.registry.get(e)}static defineScopedElements(e){Object.entries(e).forEach(([r,n])=>this.defineScopedElement(r,n))}static defineScopedElement(e,r){Br(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 Jn(o,e,...r){var n;let a=o.querySelector(e);for(let s of r)a=(n=a?.shadowRoot)===null||n===void 0?void 0:n.querySelector(s);return a}var Ke=function(o,e,r,n){var a=arguments.length,s=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,r,n);else for(var d=o.length-1;d>=0;d--)(c=o[d])&&(s=(a<3?c(s):a>3?c(e,r,s):c(e,r))||s);return a>3&&s&&Object.defineProperty(e,r,s),s},oa,ea=Symbol("constructorPrototype"),ta=Symbol("constructorName"),na=Symbol("exportpartsDebouncer"),ra=Symbol("dynamicDependenciesLoaded"),Ve=class o extends CustomEvent{constructor(){super(o.eventName,{bubbles:!0})}};Ve.eventName="exportparts-updated";var ie=class extends Vt{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[oa]=new $t(5),this.scheduleExportpartsUpdate=()=>{var e,r,n;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(n=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&n!==void 0&&n)&&this[na].run(()=>{var a,s;!((a=this.exportpartsPrefix)===null||a===void 0)&&a.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[ta]=this.constructor.name,this[ea]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[ta]&&Object.setPrototypeOf(this,this[ea])}connectedCallback(){var e;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(n){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",n)}let r=this.constructor;r[ra]||(r[ra]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(Ve.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(Ve.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 Ve)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:n,shadowPath:a}=this.elementToFocus;if(n!=null){let s=[...a??[],n];r=Jn(this.shadowRoot,...s)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var r,n,a;if(((n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(s=>s.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((a=this.customStylesheet)!==null&&a!==void 0?a:"")}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,n,a,s,c,d;let u=g=>g!=null&&g.trim().length>0,p=e.filter(u).map(g=>g.trim());if(p.length===0){this.exportparts=void 0;return}let f=new Set;for(let g of(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let m=(s=(a=g.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&s!==void 0?s:[],y=(d=(c=g.getAttribute("exportparts"))===null||c===void 0?void 0:c.split(",").map(O=>O.split(":")[1]))!==null&&d!==void 0?d:[],v=[...m,...y].filter(u).map(O=>O.trim());for(let O of v)f.add(O)}if(f.size===0){this.exportparts=void 0;return}let h=[...f.values()].flatMap(g=>p.map(m=>`${g}:${m}--${g}`));this.exportparts=[...this.part,...h].join(", ")}};oa=na;Ke([(0,we.property)()],ie.prototype,"exportpartsPrefix",void 0);Ke([qn([])],ie.prototype,"exportpartsPrefixes",void 0);Ke([(0,we.property)({reflect:!0})],ie.prototype,"exportparts",void 0);Ke([(0,we.property)()],ie.prototype,"customStylesheet",void 0);Ke([(0,we.property)()],ie.prototype,"elementToFocus",void 0);Ke([(0,we.state)()],ie.prototype,"useAdoptedStyleSheets",void 0);function Kt(o){var e;return(e=o?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Ot=Symbol("internalReduxEventsUnsubscribers"),be=Symbol("internalStoresUnsubscribers"),Ie=Symbol("internalStores"),Es=Gt(Symbol("withRedux"),function(o){var e,r,n;class a extends o{constructor(){super(...arguments),this[e]=new Map,this[r]=new Map,this[n]=new Map}get reduxConstructor(){return this.constructor}willUpdate(c){super.willUpdate(c),[...this.reduxConstructor.reduxReactiveProperties].some(d=>c.has(d))&&this.updateFromStores()}getUnnamedStore(){if(this[Ie].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ie].values()][0]}getStore(c){return c==null?this.getUnnamedStore():this[Ie].get(c)}addStore(c,d){var u;d=(u=d??c.name)!==null&&u!==void 0?u:"default-store",this.unsubscribeFromStore(d),this[Ie].set(d,c),this.subscribeToStore(d,c),this.updateFromStores()}removeStore(c){let d=typeof c=="string"?c:c.name;this.unsubscribeFromStore(d),this[Ie].delete(d)}setupStores(){this.unsubscribeFromStores(),this[Ie].forEach((c,d)=>this.subscribeToStore(d,c)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((c,d)=>{let u=this.constructor.getPropertyOptions(d);if(!u?.attribute||!this.hasAttribute(typeof u?.attribute=="string"?u.attribute:d)){let p=this.getStore(c.store);p&&(c.store?this[be].has(c.store):this[be].size>0)&&(this[d]=c.selector(p.getState(),this))}})}subscribeToStore(c,d){var u;this[be].set(c,d.subscribe(()=>this.updateFromStores())),this[Ot].set(c,[]),Kt(d)&&d.eventBus&&((u=this.reduxConstructor.reduxEventListeners)===null||u===void 0||u.forEach((p,f)=>{if(typeof this[f]=="function"&&(!p.store||d.name===p.store)){let h=g=>this[f](g);d.addEventListener(p.eventName,h),this[Ot].get(c).push(()=>d.removeEventListener(p.eventName,h))}})),this.onStoreAvailable(c)}unsubscribeFromStores(){this[be].forEach((c,d)=>this.unsubscribeFromStore(d))}unsubscribeFromStore(c){var d;this[be].has(c)&&this[be].get(c)(),this[be].delete(c),(d=this[Ot].get(c))===null||d===void 0||d.forEach(u=>u()),this[Ot].delete(c)}onStoreAvailable(c){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=be,r=Ie,n=Ot,a.reduxProperties=new Map,a.reduxReactiveProperties=new Set,a.reduxEventListeners=new Map,a}),aa=class extends Es(ie){};function J(o){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];if(0)var a,s;throw Error("[Immer] minified error nr: "+o+(r.length?" "+r.map((function(c){return"'"+c+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function ue(o){return!!o&&!!o[L]}function oe(o){var e;return!!o&&((function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===_s})(o)||Array.isArray(o)||!!o[pa]||!!(!((e=o.constructor)===null||e===void 0)&&e[pa])||qr(o)||Yr(o))}function Te(o,e,r){r===void 0&&(r=!1),Ye(o)===0?(r?Object.keys:qe)(o).forEach((function(n){r&&typeof n=="symbol"||e(n,o[n],o)})):o.forEach((function(n,a){return e(a,n,o)}))}function Ye(o){var e=o[L];return e?e.i>3?e.i-4:e.i:Array.isArray(o)?1:qr(o)?2:Yr(o)?3:0}function Ze(o,e){return Ye(o)===2?o.has(e):Object.prototype.hasOwnProperty.call(o,e)}function As(o,e){return Ye(o)===2?o.get(e):o[e]}function fa(o,e,r){var n=Ye(o);n===2?o.set(e,r):n===3?o.add(r):o[e]=r}function ha(o,e){return o===e?o!==0||1/o==1/e:o!=o&&e!=e}function qr(o){return Ls&&o instanceof Map}function Yr(o){return ks&&o instanceof Set}function ve(o){return o.o||o.t}function Qr(o){if(Array.isArray(o))return Array.prototype.slice.call(o);var e=ma(o);delete e[L];for(var r=qe(e),n=0;n<r.length;n++){var a=r[n],s=e[a];s.writable===!1&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(e[a]={configurable:!0,writable:!0,enumerable:s.enumerable,value:o[a]})}return Object.create(Object.getPrototypeOf(o),e)}function Xr(o,e){return e===void 0&&(e=!1),Jr(o)||ue(o)||!oe(o)||(Ye(o)>1&&(o.set=o.add=o.clear=o.delete=ws),Object.freeze(o),e&&Te(o,(function(r,n){return Xr(n,!0)}),!0)),o}function ws(){J(2)}function Jr(o){return o==null||typeof o!="object"||Object.isFrozen(o)}function se(o){var e=Zr[o];return e||J(18,o),e}function Is(o,e){Zr[o]||(Zr[o]=e)}function jr(){return At}function zr(o,e){e&&(se("Patches"),o.u=[],o.s=[],o.v=e)}function Zt(o){Vr(o),o.p.forEach(Ts),o.p=null}function Vr(o){o===At&&(At=o.l)}function ia(o){return At={p:[],l:At,h:o,m:!0,_:0}}function Ts(o){var e=o[L];e.i===0||e.i===1?e.j():e.g=!0}function Gr(o,e){e._=e.p.length;var r=e.p[0],n=o!==void 0&&o!==r;return e.h.O||se("ES5").S(e,o,n),n?(r[L].P&&(Zt(e),J(4)),oe(o)&&(o=qt(e,o),e.l||Yt(e,o)),e.u&&se("Patches").M(r[L].t,o,e.u,e.s)):o=qt(e,r,[]),Zt(e),e.u&&e.v(e.u,e.s),o!==ya?o:void 0}function qt(o,e,r){if(Jr(e))return e;var n=e[L];if(!n)return Te(e,(function(d,u){return sa(o,n,e,d,u,r)}),!0),e;if(n.A!==o)return e;if(!n.P)return Yt(o,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=Qr(n.k):n.o,s=a,c=!1;n.i===3&&(s=new Set(a),a.clear(),c=!0),Te(s,(function(d,u){return sa(o,n,a,d,u,r,c)})),Yt(o,a,!1),r&&o.u&&se("Patches").N(n,r,o.u,o.s)}return n.o}function sa(o,e,r,n,a,s,c){if(ue(a)){var d=qt(o,a,s&&e&&e.i!==3&&!Ze(e.R,n)?s.concat(n):void 0);if(fa(r,n,d),!ue(d))return;o.m=!1}else c&&r.add(a);if(oe(a)&&!Jr(a)){if(!o.h.D&&o._<1)return;qt(o,a),e&&e.A.l||Yt(o,a)}}function Yt(o,e,r){r===void 0&&(r=!1),!o.l&&o.h.D&&o.m&&Xr(e,r)}function Wr(o,e){var r=o[L];return(r?ve(r):o)[e]}function ca(o,e){if(e in o)for(var r=Object.getPrototypeOf(o);r;){var n=Object.getOwnPropertyDescriptor(r,e);if(n)return n;r=Object.getPrototypeOf(r)}}function xe(o){o.P||(o.P=!0,o.l&&xe(o.l))}function $r(o){o.o||(o.o=Qr(o.t))}function Kr(o,e,r){var n=qr(e)?se("MapSet").F(e,r):Yr(e)?se("MapSet").T(e,r):o.O?(function(a,s){var c=Array.isArray(a),d={i:c?1:0,A:s?s.A:jr(),P:!1,I:!1,R:{},l:s,t:a,k:null,o:null,j:null,C:!1},u=d,p=wt;c&&(u=[d],p=Et);var f=Proxy.revocable(u,p),h=f.revoke,g=f.proxy;return d.k=g,d.j=h,g})(e,r):se("ES5").J(e,r);return(r?r.A:jr()).p.push(n),n}function Rs(o){return ue(o)||J(22,o),(function e(r){if(!oe(r))return r;var n,a=r[L],s=Ye(r);if(a){if(!a.P&&(a.i<4||!se("ES5").K(a)))return a.t;a.I=!0,n=la(r,s),a.I=!1}else n=la(r,s);return Te(n,(function(c,d){a&&As(a.t,c)===d||fa(n,c,e(d))})),s===3?new Set(n):n})(o)}function la(o,e){switch(e){case 2:return new Map(o);case 3:return Array.from(o)}return Qr(o)}function ga(){function o(c,d){var u=s[c];return u?u.enumerable=d:s[c]=u={configurable:!0,enumerable:d,get:function(){var p=this[L];return wt.get(p,c)},set:function(p){var f=this[L];wt.set(f,c,p)}},u}function e(c){for(var d=c.length-1;d>=0;d--){var u=c[d][L];if(!u.P)switch(u.i){case 5:n(u)&&xe(u);break;case 4:r(u)&&xe(u)}}}function r(c){for(var d=c.t,u=c.k,p=qe(u),f=p.length-1;f>=0;f--){var h=p[f];if(h!==L){var g=d[h];if(g===void 0&&!Ze(d,h))return!0;var m=u[h],y=m&&m[L];if(y?y.t!==g:!ha(m,g))return!0}}var v=!!d[L];return p.length!==qe(d).length+(v?0:1)}function n(c){var d=c.k;if(d.length!==c.t.length)return!0;var u=Object.getOwnPropertyDescriptor(d,d.length-1);if(u&&!u.get)return!0;for(var p=0;p<d.length;p++)if(!d.hasOwnProperty(p))return!0;return!1}function a(c){c.g&&J(3,JSON.stringify(ve(c)))}var s={};Is("ES5",{J:function(c,d){var u=Array.isArray(c),p=(function(h,g){if(h){for(var m=Array(g.length),y=0;y<g.length;y++)Object.defineProperty(m,""+y,o(y,!0));return m}var v=ma(g);delete v[L];for(var O=qe(v),E=0;E<O.length;E++){var A=O[E];v[A]=o(A,h||!!v[A].enumerable)}return Object.create(Object.getPrototypeOf(g),v)})(u,c),f={i:u?5:4,A:d?d.A:jr(),P:!1,I:!1,R:{},l:d,t:c,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,L,{value:f,writable:!0}),p},S:function(c,d,u){u?ue(d)&&d[L].A===c&&e(c.p):(c.u&&(function p(f){if(f&&typeof f=="object"){var h=f[L];if(h){var g=h.t,m=h.k,y=h.R,v=h.i;if(v===4)Te(m,(function(R){R!==L&&(g[R]!==void 0||Ze(g,R)?y[R]||p(m[R]):(y[R]=!0,xe(h)))})),Te(g,(function(R){m[R]!==void 0||Ze(m,R)||(y[R]=!1,xe(h))}));else if(v===5){if(n(h)&&(xe(h),y.length=!0),m.length<g.length)for(var O=m.length;O<g.length;O++)y[O]=!1;else for(var E=g.length;E<m.length;E++)y[E]=!0;for(var A=Math.min(m.length,g.length),k=0;k<A;k++)m.hasOwnProperty(k)||(y[k]=!0),y[k]===void 0&&p(m[k])}}}})(c.p[0]),e(c.p))},K:function(c){return c.i===4?r(c):n(c)}})}var da,At,eo=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Ls=typeof Map<"u",ks=typeof Set<"u",ua=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",ya=eo?Symbol.for("immer-nothing"):((da={})["immer-nothing"]=!0,da),pa=eo?Symbol.for("immer-draftable"):"__$immer_draftable",L=eo?Symbol.for("immer-state"):"__$immer_state";var _s=""+Object.prototype.constructor,qe=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(o){return Object.getOwnPropertyNames(o).concat(Object.getOwnPropertySymbols(o))}:Object.getOwnPropertyNames,ma=Object.getOwnPropertyDescriptors||function(o){var e={};return qe(o).forEach((function(r){e[r]=Object.getOwnPropertyDescriptor(o,r)})),e},Zr={},wt={get:function(o,e){if(e===L)return o;var r=ve(o);if(!Ze(r,e))return(function(a,s,c){var d,u=ca(s,c);return u?"value"in u?u.value:(d=u.get)===null||d===void 0?void 0:d.call(a.k):void 0})(o,r,e);var n=r[e];return o.I||!oe(n)?n:n===Wr(o.t,e)?($r(o),o.o[e]=Kr(o.A.h,n,o)):n},has:function(o,e){return e in ve(o)},ownKeys:function(o){return Reflect.ownKeys(ve(o))},set:function(o,e,r){var n=ca(ve(o),e);if(n?.set)return n.set.call(o.k,r),!0;if(!o.P){var a=Wr(ve(o),e),s=a?.[L];if(s&&s.t===r)return o.o[e]=r,o.R[e]=!1,!0;if(ha(r,a)&&(r!==void 0||Ze(o.t,e)))return!0;$r(o),xe(o)}return o.o[e]===r&&(r!==void 0||e in o.o)||Number.isNaN(r)&&Number.isNaN(o.o[e])||(o.o[e]=r,o.R[e]=!0),!0},deleteProperty:function(o,e){return Wr(o.t,e)!==void 0||e in o.t?(o.R[e]=!1,$r(o),xe(o)):delete o.R[e],o.o&&delete o.o[e],!0},getOwnPropertyDescriptor:function(o,e){var r=ve(o),n=Reflect.getOwnPropertyDescriptor(r,e);return n&&{writable:!0,configurable:o.i!==1||e!=="length",enumerable:n.enumerable,value:r[e]}},defineProperty:function(){J(11)},getPrototypeOf:function(o){return Object.getPrototypeOf(o.t)},setPrototypeOf:function(){J(12)}},Et={};Te(wt,(function(o,e){Et[o]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Et.deleteProperty=function(o,e){return Et.set.call(this,o,e,void 0)},Et.set=function(o,e,r){return wt.set.call(this,o[0],e,r,o[0])};var Ns=(function(){function o(r){var n=this;this.O=ua,this.D=!0,this.produce=function(a,s,c){if(typeof a=="function"&&typeof s!="function"){var d=s;s=a;var u=n;return function(v){var O=this;v===void 0&&(v=d);for(var E=arguments.length,A=Array(E>1?E-1:0),k=1;k<E;k++)A[k-1]=arguments[k];return u.produce(v,(function(R){var ye;return(ye=s).call.apply(ye,[O,R].concat(A))}))}}var p;if(typeof s!="function"&&J(6),c!==void 0&&typeof c!="function"&&J(7),oe(a)){var f=ia(n),h=Kr(n,a,void 0),g=!0;try{p=s(h),g=!1}finally{g?Zt(f):Vr(f)}return typeof Promise<"u"&&p instanceof Promise?p.then((function(v){return zr(f,c),Gr(v,f)}),(function(v){throw Zt(f),v})):(zr(f,c),Gr(p,f))}if(!a||typeof a!="object"){if((p=s(a))===void 0&&(p=a),p===ya&&(p=void 0),n.D&&Xr(p,!0),c){var m=[],y=[];se("Patches").M(a,p,m,y),c(m,y)}return p}J(21,a)},this.produceWithPatches=function(a,s){if(typeof a=="function")return function(p){for(var f=arguments.length,h=Array(f>1?f-1:0),g=1;g<f;g++)h[g-1]=arguments[g];return n.produceWithPatches(p,(function(m){return a.apply(void 0,[m].concat(h))}))};var c,d,u=n.produce(a,s,(function(p,f){c=p,d=f}));return typeof Promise<"u"&&u instanceof Promise?u.then((function(p){return[p,c,d]})):[u,c,d]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var e=o.prototype;return e.createDraft=function(r){oe(r)||J(8),ue(r)&&(r=Rs(r));var n=ia(this),a=Kr(this,r,void 0);return a[L].C=!0,Vr(n),a},e.finishDraft=function(r,n){var a=r&&r[L],s=a.A;return zr(s,n),Gr(void 0,s)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!ua&&J(20),this.O=r},e.applyPatches=function(r,n){var a;for(a=n.length-1;a>=0;a--){var s=n[a];if(s.path.length===0&&s.op==="replace"){r=s.value;break}}a>-1&&(n=n.slice(a+1));var c=se("Patches").$;return ue(r)?c(r,n):this.produce(r,(function(d){return c(d,n)}))},o})(),Z=new Ns,Ps=Z.produce,Vl=Z.produceWithPatches.bind(Z),Kl=Z.setAutoFreeze.bind(Z),Zl=Z.setUseProxies.bind(Z),ql=Z.applyPatches.bind(Z),Yl=Z.createDraft.bind(Z),Ql=Z.finishDraft.bind(Z),Qt=Ps;function Re(o){"@babel/helpers - typeof";return Re=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Re(o)}function ba(o,e){if(Re(o)!="object"||!o)return o;var r=o[Symbol.toPrimitive];if(r!==void 0){var n=r.call(o,e||"default");if(Re(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(o)}function va(o){var e=ba(o,"string");return Re(e)=="symbol"?e:e+""}function xa(o,e,r){return(e=va(e))in o?Object.defineProperty(o,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):o[e]=r,o}function Sa(o,e){var r=Object.keys(o);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(o);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(o,a).enumerable})),r.push.apply(r,n)}return r}function to(o){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Sa(Object(r),!0).forEach(function(n){xa(o,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(r)):Sa(Object(r)).forEach(function(n){Object.defineProperty(o,n,Object.getOwnPropertyDescriptor(r,n))})}return o}function B(o){return"Minified Redux error #"+o+"; visit https://redux.js.org/Errors?code="+o+" for the full message or use the non-minified dev environment for full errors. "}var Ca=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),ro=function(){return Math.random().toString(36).substring(7).split("").join(".")},Xt={INIT:"@@redux/INIT"+ro(),REPLACE:"@@redux/REPLACE"+ro(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ro()}};function Ds(o){if(typeof o!="object"||o===null)return!1;for(var e=o;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(o)===e}function oo(o,e,r){var n;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(B(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(B(1));return r(oo)(o,e)}if(typeof o!="function")throw new Error(B(2));var a=o,s=e,c=[],d=c,u=!1;function p(){d===c&&(d=c.slice())}function f(){if(u)throw new Error(B(3));return s}function h(v){if(typeof v!="function")throw new Error(B(4));if(u)throw new Error(B(5));var O=!0;return p(),d.push(v),function(){if(O){if(u)throw new Error(B(6));O=!1,p();var A=d.indexOf(v);d.splice(A,1),c=null}}}function g(v){if(!Ds(v))throw new Error(B(7));if(typeof v.type>"u")throw new Error(B(8));if(u)throw new Error(B(9));try{u=!0,s=a(s,v)}finally{u=!1}for(var O=c=d,E=0;E<O.length;E++){var A=O[E];A()}return v}function m(v){if(typeof v!="function")throw new Error(B(10));a=v,g({type:Xt.REPLACE})}function y(){var v,O=h;return v={subscribe:function(A){if(typeof A!="object"||A===null)throw new Error(B(11));function k(){A.next&&A.next(f())}k();var R=O(k);return{unsubscribe:R}}},v[Ca]=function(){return this},v}return g({type:Xt.INIT}),n={dispatch:g,subscribe:h,getState:f,replaceReducer:m},n[Ca]=y,n}function Ms(o){Object.keys(o).forEach(function(e){var r=o[e],n=r(void 0,{type:Xt.INIT});if(typeof n>"u")throw new Error(B(12));if(typeof r(void 0,{type:Xt.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(B(13))})}function Oa(o){for(var e=Object.keys(o),r={},n=0;n<e.length;n++){var a=e[n];typeof o[a]=="function"&&(r[a]=o[a])}var s=Object.keys(r),c,d;try{Ms(r)}catch(u){d=u}return function(p,f){if(p===void 0&&(p={}),d)throw d;if(0)var h;for(var g=!1,m={},y=0;y<s.length;y++){var v=s[y],O=r[v],E=p[v],A=O(E,f);if(typeof A>"u"){var k=f&&f.type;throw new Error(B(14))}m[v]=A,g=g||A!==E}return g=g||s.length!==Object.keys(p).length,g?m:p}}function Qe(){for(var o=arguments.length,e=new Array(o),r=0;r<o;r++)e[r]=arguments[r];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function Ea(){for(var o=arguments.length,e=new Array(o),r=0;r<o;r++)e[r]=arguments[r];return function(n){return function(){var a=n.apply(void 0,arguments),s=function(){throw new Error(B(15))},c={getState:a.getState,dispatch:function(){return s.apply(void 0,arguments)}},d=e.map(function(u){return u(c)});return s=Qe.apply(void 0,d)(a.dispatch),to(to({},a),{},{dispatch:s})}}}function Aa(o){var e=function(n){var a=n.dispatch,s=n.getState;return function(c){return function(d){return typeof d=="function"?d(a,s,o):c(d)}}};return e}var wa=Aa();wa.withExtraArgument=Aa;var no=wa;var ka=(function(){var o=function(e,r){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(n[s]=a[s])},o(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");o(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),Fs=function(o,e){var r={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,a,s,c;return c={next:d(0),throw:d(1),return:d(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function d(p){return function(f){return u([p,f])}}function u(p){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,a&&(s=p[0]&2?a.return:p[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,p[1])).done)return s;switch(a=0,s&&(p=[p[0]&2,s.value]),p[0]){case 0:case 1:s=p;break;case 4:return r.label++,{value:p[1],done:!1};case 5:r.label++,a=p[1],p=[0];continue;case 7:p=r.ops.pop(),r.trys.pop();continue;default:if(s=r.trys,!(s=s.length>0&&s[s.length-1])&&(p[0]===6||p[0]===2)){r=0;continue}if(p[0]===3&&(!s||p[1]>s[0]&&p[1]<s[3])){r.label=p[1];break}if(p[0]===6&&r.label<s[1]){r.label=s[1],s=p;break}if(s&&r.label<s[2]){r.label=s[2],r.ops.push(p);break}s[2]&&r.ops.pop(),r.trys.pop();continue}p=e.call(o,r)}catch(f){p=[6,f],a=0}finally{n=s=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Xe=function(o,e){for(var r=0,n=e.length,a=o.length;r<n;r++,a++)o[a]=e[r];return o},Us=Object.defineProperty,Bs=Object.defineProperties,Hs=Object.getOwnPropertyDescriptors,Ia=Object.getOwnPropertySymbols,zs=Object.prototype.hasOwnProperty,Gs=Object.prototype.propertyIsEnumerable,Ta=function(o,e,r){return e in o?Us(o,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[e]=r},Se=function(o,e){for(var r in e||(e={}))zs.call(e,r)&&Ta(o,r,e[r]);if(Ia)for(var n=0,a=Ia(e);n<a.length;n++){var r=a[n];Gs.call(e,r)&&Ta(o,r,e[r])}return o},ao=function(o,e){return Bs(o,Hs(e))},Ws=function(o,e,r){return new Promise(function(n,a){var s=function(u){try{d(r.next(u))}catch(p){a(p)}},c=function(u){try{d(r.throw(u))}catch(p){a(p)}},d=function(u){return u.done?n(u.value):Promise.resolve(u.value).then(s,c)};d((r=r.apply(o,e)).next())})};var $s=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Qe:Qe.apply(null,arguments)},gd=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(o){return o}};function js(o){if(typeof o!="object"||o===null)return!1;var e=Object.getPrototypeOf(o);if(e===null)return!0;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return e===r}function Ce(o,e){function r(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(e){var s=e.apply(void 0,n);if(!s)throw new Error("prepareAction did not return an object");return Se(Se({type:o,payload:s.payload},"meta"in s&&{meta:s.meta}),"error"in s&&{error:s.error})}return{type:o,payload:n[0]}}return r.toString=function(){return""+o},r.type=o,r.match=function(n){return n.type===o},r}var Vs=(function(o){ka(e,o);function e(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var a=o.apply(this,r)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return o.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,Xe([void 0],r[0].concat(this)))):new(e.bind.apply(e,Xe([void 0],r.concat(this))))},e})(Array),Ks=(function(o){ka(e,o);function e(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var a=o.apply(this,r)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return o.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,Xe([void 0],r[0].concat(this)))):new(e.bind.apply(e,Xe([void 0],r.concat(this))))},e})(Array);function co(o){return oe(o)?Qt(o,function(){}):o}function Zs(o){return typeof o=="boolean"}function qs(){return function(e){return Ys(e)}}function Ys(o){o===void 0&&(o={});var e=o.thunk,r=e===void 0?!0:e,n=o.immutableCheck,a=n===void 0?!0:n,s=o.serializableCheck,c=s===void 0?!0:s,d=o.actionCreatorCheck,u=d===void 0?!0:d,p=new Vs;if(r&&(Zs(r)?p.push(no):p.push(no.withExtraArgument(r.extraArgument))),0){if(a)var f;if(c)var h;if(u)var g}return p}var io=!0;function _a(o){var e=qs(),r=o||{},n=r.reducer,a=n===void 0?void 0:n,s=r.middleware,c=s===void 0?e():s,d=r.devTools,u=d===void 0?!0:d,p=r.preloadedState,f=p===void 0?void 0:p,h=r.enhancers,g=h===void 0?void 0:h,m;if(typeof a=="function")m=a;else if(js(a))m=Oa(a);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var y=c;if(typeof y=="function"&&(y=y(e),!io&&!Array.isArray(y)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!io&&y.some(function(R){return typeof R!="function"}))throw new Error("each middleware provided to configureStore must be a function");var v=Ea.apply(void 0,y),O=Qe;u&&(O=$s(Se({trace:!io},typeof u=="object"&&u)));var E=new Ks(v),A=E;Array.isArray(g)?A=Xe([v],g):typeof g=="function"&&(A=g(E));var k=O.apply(void 0,A);return oo(m,f,k)}function Na(o){var e={},r=[],n,a={addCase:function(s,c){var d=typeof s=="string"?s:s.type;if(!d)throw new Error("`builder.addCase` cannot be called with an empty action type");if(d in e)throw new Error("`builder.addCase` cannot be called with two reducers for the same action type");return e[d]=c,a},addMatcher:function(s,c){return r.push({matcher:s,reducer:c}),a},addDefaultCase:function(s){return n=s,a}};return o(a),[e,r,n]}function Qs(o){return typeof o=="function"}function Xs(o,e,r,n){r===void 0&&(r=[]);var a=typeof e=="function"?Na(e):[e,r,n],s=a[0],c=a[1],d=a[2],u;if(Qs(o))u=function(){return co(o())};else{var p=co(o);u=function(){return p}}function f(h,g){h===void 0&&(h=u());var m=Xe([s[g.type]],c.filter(function(y){var v=y.matcher;return v(g)}).map(function(y){var v=y.reducer;return v}));return m.filter(function(y){return!!y}).length===0&&(m=[d]),m.reduce(function(y,v){if(v)if(ue(y)){var O=y,E=v(O,g);return E===void 0?y:E}else{if(oe(y))return Qt(y,function(A){return v(A,g)});var E=v(y,g);if(E===void 0){if(y===null)return y;throw Error("A case reducer on a non-draftable value must not return undefined")}return E}return y},h)}return f.getInitialState=u,f}function Js(o,e){return o+"/"+e}function Pa(o){var e=o.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof o.initialState=="function"?o.initialState:co(o.initialState),n=o.reducers||{},a=Object.keys(n),s={},c={},d={};a.forEach(function(f){var h=n[f],g=Js(e,f),m,y;"reducer"in h?(m=h.reducer,y=h.prepare):m=h,s[f]=m,c[g]=m,d[f]=y?Ce(g,y):Ce(g)});function u(){var f=typeof o.extraReducers=="function"?Na(o.extraReducers):[o.extraReducers],h=f[0],g=h===void 0?{}:h,m=f[1],y=m===void 0?[]:m,v=f[2],O=v===void 0?void 0:v,E=Se(Se({},g),c);return Xs(r,function(A){for(var k in E)A.addCase(k,E[k]);for(var R=0,ye=y;R<ye.length;R++){var ce=ye[R];A.addMatcher(ce.matcher,ce.reducer)}O&&A.addDefaultCase(O)})}var p;return{name:e,reducer:function(f,h){return p||(p=u()),p(f,h)},actions:d,caseReducers:s,getInitialState:function(){return p||(p=u()),p.getInitialState()}}}var ec="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",tc=function(o){o===void 0&&(o=21);for(var e="",r=o;r--;)e+=ec[Math.random()*64|0];return e},rc=["name","message","stack","code"],so=(function(){function o(e,r){this.payload=e,this.meta=r}return o})(),Ra=(function(){function o(e,r){this.payload=e,this.meta=r}return o})(),oc=function(o){if(typeof o=="object"&&o!==null){for(var e={},r=0,n=rc;r<n.length;r++){var a=n[r];typeof o[a]=="string"&&(e[a]=o[a])}return e}return{message:String(o)}},vd=(function(){function o(e,r,n){var a=Ce(e+"/fulfilled",function(f,h,g,m){return{payload:f,meta:ao(Se({},m||{}),{arg:g,requestId:h,requestStatus:"fulfilled"})}}),s=Ce(e+"/pending",function(f,h,g){return{payload:void 0,meta:ao(Se({},g||{}),{arg:h,requestId:f,requestStatus:"pending"})}}),c=Ce(e+"/rejected",function(f,h,g,m,y){return{payload:m,error:(n&&n.serializeError||oc)(f||"Rejected"),meta:ao(Se({},y||{}),{arg:g,requestId:h,rejectedWithValue:!!m,requestStatus:"rejected",aborted:f?.name==="AbortError",condition:f?.name==="ConditionError"})}}),d=!1,u=typeof AbortController<"u"?AbortController:(function(){function f(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return f.prototype.abort=function(){},f})();function p(f){return function(h,g,m){var y=n?.idGenerator?n.idGenerator(f):tc(),v=new u,O,E=!1;function A(R){O=R,v.abort()}var k=(function(){return Ws(this,null,function(){var R,ye,ce,mt,Fo,bt,Uo;return Fs(this,function(Ge){switch(Ge.label){case 0:return Ge.trys.push([0,4,,5]),mt=(R=n?.condition)==null?void 0:R.call(n,f,{getState:g,extra:m}),ac(mt)?[4,mt]:[3,2];case 1:mt=Ge.sent(),Ge.label=2;case 2:if(mt===!1||v.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return E=!0,Fo=new Promise(function(re,vt){return v.signal.addEventListener("abort",function(){return vt({name:"AbortError",message:O||"Aborted"})})}),h(s(y,f,(ye=n?.getPendingMeta)==null?void 0:ye.call(n,{requestId:y,arg:f},{getState:g,extra:m}))),[4,Promise.race([Fo,Promise.resolve(r(f,{dispatch:h,getState:g,extra:m,requestId:y,signal:v.signal,abort:A,rejectWithValue:function(re,vt){return new so(re,vt)},fulfillWithValue:function(re,vt){return new Ra(re,vt)}})).then(function(re){if(re instanceof so)throw re;return re instanceof Ra?a(re.payload,y,f,re.meta):a(re,y,f)})])];case 3:return ce=Ge.sent(),[3,5];case 4:return bt=Ge.sent(),ce=bt instanceof so?c(null,y,f,bt.payload,bt.meta):c(bt,y,f),[3,5];case 5:return Uo=n&&!n.dispatchConditionRejection&&c.match(ce)&&ce.meta.condition,Uo||h(ce),[2,ce]}})})})();return Object.assign(k,{abort:A,requestId:y,arg:f,unwrap:function(){return k.then(nc)}})}}return Object.assign(p,{pending:s,rejected:c,fulfilled:a,typePrefix:e})}return o.withTypes=function(){return o},o})();function nc(o){if(o.meta&&o.meta.rejectedWithValue)throw o.payload;if(o.error)throw o.error;return o.payload}function ac(o){return o!==null&&typeof o=="object"&&typeof o.then=="function"}var Da="listener",Ma="completed",Fa="cancelled",xd="task-"+Fa,Sd="task-"+Ma,Cd=Da+"-"+Fa,Od=Da+"-"+Ma;var lo="listenerMiddleware";var Ed=Ce(lo+"/add"),Ad=Ce(lo+"/removeAll"),wd=Ce(lo+"/remove");var La,Id=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(o){return(La||(La=Promise.resolve())).then(o).catch(function(e){return setTimeout(function(){throw e},0)})},ic=function(o){return function(e){setTimeout(e,o)}},Td=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:ic(10);ga();var sc=Gt(Symbol("withEventBus"),function(o,e){return class extends o{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(r,n,a){this.eventBus.addEventListener(r,n,a)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,n,a){this.eventBus.removeEventListener(r,n,a)}}}),Jt=class extends sc(Object){};window.ftReduxStores||(window.ftReduxStores={});var Ua=class o extends Jt{static get(e){var r;let n=typeof e=="string"?e:e.name,a=typeof e=="string"?void 0:e,s=window.ftReduxStores[n];if(Kt(s))return s;if(a==null)return;let c=Pa({...a,reducers:(r=a.reducers)!==null&&r!==void 0?r:{}}),d=_a({reducer:(u,p)=>{if(p.type==="CLEAR_FT_REDUX_STORE"){let f=St(c.getInitialState());for(let h of p.keeping)f[h]=(u??f)[h];return f}else if(typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...u,...p.overwrites};return c.reducer(u,p)}});return window.ftReduxStores[a.name]=new o(c,d,a.eventBus)}constructor(e,r,n){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new Wt;let a=s=>s!=null?JSON.parse(JSON.stringify(s)):s;this.actions=new Proxy(this.reduxSlice.actions,{get:(s,c,d)=>{let u=c,p=s[u];return p?(...f)=>{let h=p(...f.map(a));return this.reduxStore.dispatch(h),h}:f=>{this.setState({[u]:a(f)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...e){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:e})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var er=class{static format(e,r,n,a,s){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(n,a,!!s)):this.getIntlDateTime(e,r,n,a,!!s)}static getMomentDateFormat(e,r,n){return n?"LT":e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,n,a,s){let c=typeof e=="string"?new Date(e):e,d=new Intl.DateTimeFormat(r,{dateStyle:n?"medium":"short"}).format(c),u=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(c);return s?u:a?`${d} ${u}`:d}static getTimezoneAsString(){let e=n=>String(Math.floor(n)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${e(Math.abs(r)/60)}:${e(Math.abs(r)%60)}`}};var tr=x(w()),cc="ft-app-info",pe=class o extends CustomEvent{constructor(e){super(o.eventName,{detail:e})}};pe.eventName="authentication-change";var It=class o extends CustomEvent{constructor(e){super(o.eventName,{detail:e})}};It.eventName="ui-locale-changed";var lc={session:(o,e)=>{(0,tr.deepEqual)(o.session,e.payload)||(o.session=e.payload,setTimeout(()=>S.dispatchEvent(new pe(e.payload)),0))}},S=tr.FtReduxStore.get({name:cc,reducers:lc,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],availableContentLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,searchLanguageSetsUiLanguage:!1,uiLanguageSetsSearchLanguage:!1,uiLanguageSetsReaderLanguage:!1,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}});var Ba=x(w()),rr=function(o,e,r,n){var a=arguments.length,s=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,r,n);else for(var d=o.length-1;d>=0;d--)(c=o[d])&&(s=(a<3?c(s):a>3?c(e,r,s):c(e,r))||s);return a>3&&s&&Object.defineProperty(e,r,s),s},ru=(0,Ba.applyMixinOnce)(Symbol("withDateFormat"),function(o){class e extends o{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(S)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var a,s;return((s=(a=this.metadataDescriptors.find(d=>d.key===n))===null||a===void 0?void 0:a.date)!==null&&s!==void 0?s:!1)?d=>er.format(d,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return rr([(0,uo.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),rr([(0,uo.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),rr([Hr({store:S.name,selector:r=>{var n,a;return(a=(n=r.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&a!==void 0?a:[]}})],e.prototype,"metadataDescriptors",void 0),rr([Hr({store:S.name})],e.prototype,"uiLocale",void 0),e});var sr=x(w());var po=x(w());var Le=class o{static get(e){let{baseUrl:r,apiIntegrationIdentifier:n}=S.getState(),a=e??n;if(r&&a&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,a,!0)}static await(e){return new Promise(r=>{let n=o.get(e);if(n)r(n);else{let a=S.subscribe(()=>{n=o.get(e),n&&(a(),r(n))})}})}};var Je=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Le.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Le.await()}};var H=class extends Je{constructor(e=!0,r){var n;super(r),this.sortObjectFields=(s,c)=>typeof c!="object"||c==null||Array.isArray(c)?c:Object.fromEntries(Object.entries(c).sort(([d],[u])=>d.localeCompare(u)));let a=this.constructor;a.commonCache=(n=a.commonCache)!==null&&n!==void 0?n:new po.CacheRegistry,this.cache=e?a.commonCache:new po.CacheRegistry}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((r,n)=>0|31*r+n.charCodeAt(0),0))}};var or=class extends H{async listMySearches(){let{session:e}=S.getState();return de(e,T.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var nr=class extends H{async listMyBookmarks(){let e=S.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}};var ar=class extends H{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=S.getState().session;return!!e?.sessionAuthenticated}};var ir=class extends H{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=S.getState().session;return!!e?.sessionAuthenticated}};var dc="ft-user-assets",uc={setAssetCount:(o,e)=>{let{userAssetType:r,count:n}=e.payload.assetCount;o.assetCounts.allAsset[r]=n},clearAssetCount:o=>{Object.values(X).forEach(e=>{o.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(o,e)=>{let r=e.payload.mapId;o.assetCounts.bookmarkByMap[r]=e.payload.count},clearBookmarkCountByMap:o=>{o.assetCounts.bookmarkByMap={}},addAsset:(o,e)=>{let{assetType:r,mapId:n,asset:a}=e.payload;ho(o,r,[...fo(o,r),a]),Ha(o,r,1,n),za(o,a)},editAsset:(o,e)=>{let{assetType:r,asset:n}=e.payload;ho(o,r,fo(o,r).map(a=>a.id===n.id?n:a)),za(o,n)},removeAsset:(o,e)=>{let{assetType:r,mapId:n,assetId:a}=e.payload;ho(o,r,fo(o,r).filter(s=>s.id!==a)),Ha(o,r,-1,n)}},Ga={[X.SEARCHES]:"savedSearches",[X.BOOKMARKS]:"bookmarks",[X.BOOKS]:void 0,[X.COLLECTIONS]:void 0},fo=(o,e)=>{var r;let n=Ga[e];return n?(r=o[n])!==null&&r!==void 0?r:[]:[]},ho=(o,e,r)=>{let n=Ga[e];n&&(o[n]=r)},Ha=(o,e,r,n)=>{let a=o.assetCounts.allAsset[e];if(a!==void 0&&(o.assetCounts.allAsset[e]=Math.max(0,a+r),e===X.BOOKMARKS&&n)){let s=o.assetCounts.bookmarkByMap[n];o.assetCounts.bookmarkByMap[n]=Math.max(0,s+r)}},za=(o,e)=>{let r=o.assetLabels.map(a=>a.title),n=e.labels.filter(a=>!r.includes(a)).map(a=>({title:a}));o.assetLabels.push(...n)},$=sr.FtReduxStore.get({name:dc,reducers:uc,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(X).map(o=>[o,void 0])),bookmarkByMap:{}},assetLabels:[]}}),go=class{constructor(e=new ar,r=new ir){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=S.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new nr,this.savedSearchesService=new or,S.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=S.getState();(0,sr.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(),$.actions.clearAssetCount(),$.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),$.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),$.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();$.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();$.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&$.getState().assetCounts.allAsset[e]!==r.count&&$.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&$.getState().assetCounts.bookmarkByMap[e]!==r.count&&$.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys($.getState().assetCounts.bookmarkByMap).length!==0;e===X.BOOKMARKS&&r&&$.actions.clearBookmarkCountByMap(),$.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;$.actions.bookmarks(r)}}},yo=new go;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=yo);var mo=class{addCommand(e,r=!1){S.commands.add(e,r)}consumeCommand(e){return S.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new mo;var ee=x(w());var Wa,et=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},pc=Symbol("clearAfterUnitTest"),cr=class extends(0,ee.withEventBus)(H){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Wa]=()=>{this.defaultMessages={},this.cache=new ee.CacheRegistry,this.listeners={}},this.currentUiLocale=S.getState().uiLocale,S.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=S.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let r=e.name.toLowerCase();this.cache.setFinal(r,e),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,r){var n;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let a={...(n=this.defaultMessages[e])!==null&&n!==void 0?n:{},...r};(0,ee.deepEqual)(this.defaultMessages[e],a)||(this.defaultMessages[e]=a,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,n;return this.fetchContext(e),(n=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(e,r){let n=e.toLowerCase();return this.resolveContext(n)[r]}resolveMessage(e,r,...n){var a;let s=e.toLowerCase(),c=this.resolveContext(s);return new ee.ParametrizedLabelResolver((a=this.defaultMessages[s])!==null&&a!==void 0?a:{},c).resolve(r,...n)}async fetchContext(e){let r=!this.cache.has(e),n;try{n=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(a){!(a instanceof ee.CanceledPromiseError)&&r&&console.error(a)}return n}subscribe(e,r){var n;return e=e.toLowerCase(),this.listeners[e]=(n=this.listeners[e])!==null&&n!==void 0?n:new Set,this.listeners[e].add(r),()=>{var a;return(a=this.listeners[e])===null||a===void 0?void 0:a.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new et({loadedContexts:e})),this.dispatchEvent(new et({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new et({loadedContexts:[e]})),this.dispatchEvent(new et({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(n=>(0,ee.delay)(0).then(()=>n()).catch(()=>null)))}};Wa=pc;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends cr{constructor(){super(async(o,e)=>(await this.awaitApi).getFluidTopicsMessageContext(o,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends cr{constructor(){super(async(o,e)=>(await this.awaitApi).getCustomMessageContext(o,e))}});var $a=window.FluidTopicsI18nService,Fu=window.FluidTopicsCustomI18nService;var ja=x(w()),bo=class{highlightHtml(e,r,n){(0,ja.highlightHtml)(e,r,n)}};window.FluidTopicsHighlightHtmlService=new bo;var Va=x(w());var vo=class{isDate(e){var r,n,a,s;return(s=(a=((n=(r=S.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(d=>d.key===e))===null||a===void 0?void 0:a.date)!==null&&s!==void 0?s:!1}format(e,r){var n,a,s,c;if(e==null)return"";try{return Va.DateFormatter.format(e,(n=r?.locale)!==null&&n!==void 0?n:S.getState().uiLocale,(a=r?.longFormat)!==null&&a!==void 0?a:!1,(s=r?.withTime)!==null&&s!==void 0?s:!1,(c=r?.onlyTime)!==null&&c!==void 0?c:!1)}catch(d){throw console.error(`Date ${JSON.stringify(e)} is not valid`,d),d}}};window.FluidTopicsDateService=new vo;var Ka=x(w());var Tt=class{static get(e,r){var n,a;let s=S.getState(),{lang:c,region:d}=(a=(n=s.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&a!==void 0?a:{lang:"en",region:"US"};return new Ka.SearchPlaceConverter(s.baseUrl,e??20,s.searchInAllLanguagesAllowed,r??`${c}-${d}`)}};var lr=class extends H{async sendDocumentStartDisplayEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.start_display event")}async sendTopicStartDisplayEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send topic.start_display event")}async sendKhubSearchEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send khub.search event")}async sendDocumentSearchEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.search event")}async sendSearchPageSelectEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send search_page.select event")}async sendSearchResultOpenContextMenuEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send search_result.open_context_menu event")}async sendDocumentOnDemandTranslateEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.on_demand_translate event")}async sendTopicAiTranslateEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send topic.ai_translate event")}convertMapToAnalyticsDocument(e){let r;switch(e.editorialType){case"BOOK":r="STRUCTURED_DOCUMENT";break;case"SHARED_BOOK":r="SHARED_PERSONAL_BOOK";break;case"ARTICLE":r="RESOURCE";break;case"HTML_PACKAGE":r="HTML_PACKAGE";break;default:throw new TypeError("Unknown editorial type for map : "+e.editorialType)}return{id:e.id,title:e.title,type:r,metadata:e.metadata}}sortEventArrays(e){let r=Object.entries(e).map(([n,a])=>Array.isArray(a)?[n,a.map(s=>typeof s=="object"&&s!=null&&!Array.isArray(s)?this.sortEventArrays(s):s).sort((s,c)=>typeof s=="object"&&s!==null&&"key"in s?s.key.localeCompare(c.key):typeof s=="string"&&typeof c=="string"?s.localeCompare(c):String(s).localeCompare(String(c)))]:typeof a=="object"&&a!==null?[n,this.sortEventArrays(a)]:[n,a]);return Object.fromEntries(r)}sendEvents(e,r){let n="anything not undefined";return this.cache.get("analytics-event-"+this.hash(e),async()=>(await this.awaitApi).sendEvents(e).then(()=>n).catch(a=>(console.info(r),console.debug(a),n)),1e3)}};var xo=class{urlToSearchRequest(e){return Tt.get().parse(e)}searchRequestToUrl(e){return Tt.get().serialize(e)}};window.FluidTopicsUrlService=new xo;var fe=x(w());var ke=class o extends CustomEvent{constructor(e){super(o.eventName,{detail:{currentItem:e}})}};ke.eventName="change";var So=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))}},Za=new So;var dr=class o extends fe.WithEventBus{static build(){return new o(window.history,Za,()=>window.location,!1)}constructor(e,r,n,a){var s,c;super(),this.history=e,this.historyStorage=r,this.windowLocation=n,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(c=(s=e.state)===null||s===void 0?void 0:s.index)!==null&&c!==void 0?c:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(a)}setCurrentState(e,r=!1){let n=r&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,n&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,fe.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new ke(this.currentItem())),0)}installProxies(){let e=r=>(n,a,[s,c,d])=>{let u=r(),p={...u===this.currentIndex?this.currentState:void 0,...s,index:u,href:typeof d=="string"?d:(d??this.windowLocation()).href};n.apply(a,[p,c,d]),this.setCurrentState(p,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let r=this.history.length-1;r>=0;r--)e?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(e){var r;let n={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(e){this.addEventListener(ke.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(ke.eventName,e)}currentItem(){return(0,fe.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,fe.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(n=>!!n).filter(n=>n.index<this.currentIndex).reverse();return(0,fe.deepCopy)(r.find(n=>e(n)))}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return(0,fe.deepCopy)(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var r;let n=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!n)return e;let a=e,s=e+1;for(;this.states.length>s&&!this.isDifferentMajorState(s,n);)this.hasState(s)&&(a=s),s++;return a}buildCurrentState(){var e,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&r!==void 0?r:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,r){var n;if(!this.hasState(e))return!1;let a=r??this.currentState.majorStateId,s=(n=this.states[e])===null||n===void 0?void 0:n.majorStateId;return s==null||s!=a}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=dr.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:o=>window.FluidTopicsInternalHistoryService.backwardItemMatching(o),addHistoryChangeListener:o=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(o),removeHistoryChangeListener:o=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(o)});var qa=x(F());var Ya=qa.css`
|
|
49
|
-
`;var
|
|
47
|
+
`}registerComponent(e){e.stopPropagation();let t=e.composedPath()[0];this.register(t)}register(e){this.registeredComponents.push(e),e.tocNode=this.tocNode,e.disableContextInteractions=this.disableContextInteractions,e.headingLevelsShift=this.headingLevelsShift}update(e){super.update(e),["mapId","tocId","stateManager","translationDestinationLanguage","translationProfileId"].some(t=>e.has(t))&&this.setTocNode(),e.has("tocNode")&&this.registeredComponents.forEach(t=>t.tocNode=this.tocNode)}async setTocNode(){var e;this.tocNode=void 0,this.tocNode=this.mapId&&this.tocId?await((e=this.stateManager)===null||e===void 0?void 0:e.getTocNode(this.tocId)):void 0}disconnectedCallback(){super.disconnectedCallback(),this.registeredComponents=[]}};G.styles=zn;Se([(0,Rt.redux)({selector:r=>{var e;return(e=r.map)===null||e===void 0?void 0:e.id}})],G.prototype,"mapId",void 0);Se([(0,Rt.redux)({selector:r=>r.translation.profileId})],G.prototype,"translationProfileId",void 0);Se([(0,Rt.redux)({selector:r=>r.translation.destinationLanguage})],G.prototype,"translationDestinationLanguage",void 0);Se([(0,$e.property)()],G.prototype,"tocId",void 0);Se([(0,$e.property)({type:Boolean})],G.prototype,"disableContextInteractions",void 0);Se([(0,$e.property)({type:Number})],G.prototype,"headingLevelsShift",void 0);Se([(0,$e.state)()],G.prototype,"tocNode",void 0);var Yn=v(T());var Gn={"ft-reader-topic-context":G};(0,Yn.customElements)(Gn);var Qn=v(F());var Jn=Qn.css`
|
|
48
|
+
`;var At=v(F()),Oe=v(K()),M=v(T());var H=v(T());var Xn=v(T()),Ka={setTranslationDestinationLanguage:(r,e)=>{r.translation.destinationLanguage=e.payload},setTranslationSourceLanguage:(r,e)=>{r.translation.sourceLanguage=e.payload},setTranslationProfileId:(r,e)=>{r.translation.profileId=e.payload},setTranslationLoading:(r,e)=>{r.translation.isLoading=e.payload},setTranslationError:(r,e)=>{r.translation.isError=e.payload},setTopicsRating:(r,e)=>{for(let t in e.payload)r.topicsRating[t]=e.payload[t]}},Zn=r=>Xn.FtReduxStore.get({name:"ft-reader-"+r,initialState:{mapId:void 0,renderedTopics:[],visibleTopics:[],map:void 0,toc:void 0,pagesToc:void 0,paginationConfiguration:void 0,currentPage:void 0,scrollTarget:void 0,configuration:void 0,searchInDocumentQuery:void 0,relatives:void 0,mapRating:void 0,topicsRating:{},translation:{sourceLanguage:void 0,destinationLanguage:void 0,profileId:void 0,isLoading:!1,isError:!1},linkPreviewDialogId:void 0},reducers:Ka});var _r=class{constructor(e,t){this.mapId=e,this.paginatedToc=t,this.nodeByTocId={},this.nodeByUrl={},this.duplicatedPrettyUrls=new Set,this.pages=[],this.pageByTocId={}}build(){return{paginationConfiguration:this.paginatedToc.configuration,toc:this.convertNodes(this.paginatedToc.paginatedToc,1),pagesToc:this.extractPagesToc(this.paginatedToc.paginatedToc,1),nodeByTocId:this.nodeByTocId,nodeByUrl:this.nodeByUrl,duplicatedPrettyUrls:this.duplicatedPrettyUrls,pages:this.pages,pageByTocId:this.pageByTocId,translationError:this.paginatedToc.translationError}}extractPagesToc(e,t,n){return e.flatMap(i=>{var s;return i.pageConfiguration&&this.registerPage(this.buildPage(i,n)),i.tocId==null?this.extractPagesToc(i.children,t,n):[{tocId:i.tocId,title:(s=i.title)!==null&&s!==void 0?s:"",untranslatedTitle:i.untranslatedTitle,depth:t,children:this.extractPagesToc(i.children,t+1,i.tocId)}]})}convertNodes(e,t,n){return e.flatMap(i=>{var s,a,o;if(i.tocId==null)return[...this.convertSectionNodes((s=i.pageToc)!==null&&s!==void 0?s:[],t,i.tocId),...this.convertNodes(i.children,t,i.tocId)];let c=(a=i.prettyUrl)===null||a===void 0?void 0:a.replace(/^\//,""),l={tocId:i.tocId,contentId:i.contentId,title:i.title,untranslatedTitle:i.untranslatedTitle,hasRating:i.hasRating,origin:i.origin,prettyUrl:c,depth:t,parentTocId:n,children:[]};this.register(l);let u=this.convertSectionNodes((o=i.pageToc)!==null&&o!==void 0?o:[],t+1,i.tocId),d=this.convertNodes(i.children,t+1,l.tocId);return l.children=[...u,...d],[l]})}convertSectionNodes(e,t,n){return e.flatMap(i=>{var s;let a=(s=i.prettyUrl)===null||s===void 0?void 0:s.replace(/^\//,""),o={...i,prettyUrl:a,depth:t,parentTocId:n,children:[]};return this.register(o),o.children=this.convertSectionNodes(i.children,t+1,i.tocId),[o]})}buildPage(e,t){var n,i,s,a,o,c,l,u;let d={number:this.pages.length+1,title:(n=e.title)!==null&&n!==void 0?n:"",untranslatedTitle:e.untranslatedTitle,rootTocId:(a=(i=e.tocId)!==null&&i!==void 0?i:(s=e.pageToc)===null||s===void 0?void 0:s[0].tocId)!==null&&a!==void 0?a:"root",toc:((o=e.pageToc)!==null&&o!==void 0?o:[]).map(p=>this.nodeByTocId[p.tocId]),topics:[],hiddenTopics:[],breadcrumb:t?this.buildBreadcrumb(this.nodeByTocId[t]):[]},h=(p,g)=>(g?d.topics:d.hiddenTopics).push(p),f=(l=(c=e.pageConfiguration)===null||c===void 0?void 0:c.parentsVisibility)!==null&&l!==void 0?l:[];return d.breadcrumb.forEach((p,g)=>{h(p,f[g])}),e.tocId&&h(e.tocId,e.pageConfiguration.isVisible),d.topics.push(...this.tocIds((u=e.pageToc)!==null&&u!==void 0?u:[])),d}registerPage(e){for(let t of[...e.topics,...e.hiddenTopics])this.pageByTocId[t]||(this.pageByTocId[t]=e);this.pages.push(e)}tocIds(e){return e.flatMap(t=>[t.tocId,...this.tocIds(t.children)])}buildBreadcrumb(e){let t=[e.tocId];for(;e?.parentTocId;)t.unshift(e.parentTocId),e=this.nodeByTocId[e.parentTocId];return t}register(e){e.prettyUrl&&(this.nodeByUrl[e.prettyUrl]==null?this.nodeByUrl[e.prettyUrl]=e:this.duplicatedPrettyUrls.add(e.prettyUrl)),this.nodeByUrl[`${this.mapId}/${e.tocId}`]=e,this.nodeByTocId[e.tocId]=e}},Ot=class{convertPaginatedToc(e,t){return new _r(e,t).build()}};var ei;(function(r){r.black="black",r.green="green",r.blue="blue",r.purple="purple",r.red="red",r.orange="orange",r.yellow="yellow"})(ei||(ei={}));var ti;(function(r){r.OFFICIAL="OFFICIAL",r.PERSONAL="PERSONAL",r.SHARED="SHARED"})(ti||(ti={}));var ri;(function(r){r.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",r.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",r.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",r.PERSONAL_BOOK="PERSONAL_BOOK",r.ATTACHMENT="ATTACHMENT",r.RESOURCE="RESOURCE",r.HTML_PACKAGE="HTML_PACKAGE"})(ri||(ri={}));var ni;(function(r){r.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",r.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",r.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",r.PERSONAL_BOOK="PERSONAL_BOOK",r.ATTACHMENT="ATTACHMENT",r.RESOURCE="RESOURCE",r.HTML_PACKAGE="HTML_PACKAGE"})(ni||(ni={}));var ii;(function(r){r.LAST_WEEK="LAST_WEEK",r.LAST_MONTH="LAST_MONTH",r.LAST_QUARTER="LAST_QUARTER",r.LAST_YEAR="LAST_YEAR"})(ii||(ii={}));var si;(function(r){r.VALUE="VALUE",r.DATE="DATE",r.RANGE="RANGE"})(si||(si={}));var Lt;(function(r){r.OFFICIAL="OFFICIAL",r.AI="AI"})(Lt||(Lt={}));var ai;(function(r){r.BOOKMARK__CREATE="BOOKMARK__CREATE",r.BOOKMARK__DELETE="BOOKMARK__DELETE",r.CASE_DEFLECTION__START="CASE_DEFLECTION__START",r.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",r.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",r.CHATBOT__RATE="CHATBOT__RATE",r.COLLECTION__CREATE="COLLECTION__CREATE",r.COLLECTION__UPDATE="COLLECTION__UPDATE",r.COLLECTION__DELETE="COLLECTION__DELETE",r.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",r.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",r.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",r.DOCUMENT__PRINT="DOCUMENT__PRINT",r.DOCUMENT__PROCESS="DOCUMENT__PROCESS",r.DOCUMENT__RATE="DOCUMENT__RATE",r.DOCUMENT__SEARCH="DOCUMENT__SEARCH",r.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",r.DOCUMENT__UNRATE="DOCUMENT__UNRATE",r.FEEDBACK__SEND="FEEDBACK__SEND",r.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",r.AI__RATE="AI__RATE",r.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",r.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",r.KHUB__PROCESS="KHUB__PROCESS",r.KHUB__SEARCH="KHUB__SEARCH",r.LABELS__DOWNLOAD="LABELS__DOWNLOAD",r.LINK__SHARE="LINK__SHARE",r.PAGE__DISPLAY="PAGE__DISPLAY",r.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",r.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",r.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",r.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",r.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",r.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",r.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",r.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",r.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",r.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",r.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",r.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",r.TOPIC__RATE="TOPIC__RATE",r.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",r.TOPIC__UNRATE="TOPIC__UNRATE",r.USER__LOGIN="USER__LOGIN",r.USER__LOGOUT="USER__LOGOUT",r.HEARTBEAT="HEARTBEAT"})(ai||(ai={}));var oi;(function(r){r.STANDARD="STANDARD",r.STRUCTURAL="STRUCTURAL"})(oi||(oi={}));var ci;(function(r){r.THIRD_PARTY="THIRD_PARTY",r.OFF_THE_GRID="OFF_THE_GRID",r.CONTENT_PACKAGER="CONTENT_PACKAGER",r.PAGES="PAGES",r.DESIGNED_READER="DESIGNED_READER"})(ci||(ci={}));var li;(function(r){r.HOMEPAGE="HOMEPAGE",r.CUSTOM="CUSTOM",r.HEADER="HEADER",r.READER="READER",r.TOPIC_TEMPLATE="TOPIC_TEMPLATE",r.SEARCH="SEARCH",r.SEARCH_RESULT="SEARCH_RESULT",r.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",r.LINK_PREVIEW="LINK_PREVIEW",r.UD_VIEWER="UD_VIEWER",r.ASSET_VIEWER="ASSET_VIEWER"})(li||(li={}));var ui;(function(r){r.CLASSIC="CLASSIC",r.CUSTOM="CUSTOM",r.DESIGNER="DESIGNER"})(ui||(ui={}));var di;(function(r){r.AND="AND",r.OR="OR",r.MONOVALUED="MONOVALUED"})(di||(di={}));var hi;(function(r){r.NONE="NONE",r.ALPHABET="ALPHABET",r.VERSION="VERSION"})(hi||(hi={}));var pi;(function(r){r.STARS="STARS",r.LIKE="LIKE",r.DICHOTOMOUS="DICHOTOMOUS",r.NO_RATING="NO_RATING"})(pi||(pi={}));var fi;(function(r){r.LAST_WEEK="LAST_WEEK",r.LAST_MONTH="LAST_MONTH",r.LAST_QUARTER="LAST_QUARTER",r.LAST_YEAR="LAST_YEAR",r.CUSTOM="CUSTOM"})(fi||(fi={}));var mi;(function(r){r.OPTIONAL="OPTIONAL",r.MANDATORY="MANDATORY"})(mi||(mi={}));var gi;(function(r){r.ASC="ASC",r.DESC="DESC"})(gi||(gi={}));var vi;(function(r){r.ALPHA="ALPHA",r.NATURAL="NATURAL"})(vi||(vi={}));var yi;(function(r){r.EVERYWHERE="EVERYWHERE",r.TITLE_ONLY="TITLE_ONLY",r.NONE="NONE"})(yi||(yi={}));var bi;(function(r){r.ARTICLE="ARTICLE",r.BOOK="BOOK",r.SHARED_BOOK="SHARED_BOOK",r.HTML_PACKAGE="HTML_PACKAGE"})(bi||(bi={}));var Si;(function(r){r.FLUIDTOPICS="FLUIDTOPICS",r.EXTERNAL="EXTERNAL"})(Si||(Si={}));var Ai;(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC",r.PERSONAL_BOOK="PERSONAL_BOOK",r.SHARED_BOOK="SHARED_BOOK",r.HTML_PACKAGE="HTML_PACKAGE"})(Ai||(Ai={}));var Ei;(function(r){r.LAST_WEEK="LAST_WEEK",r.LAST_MONTH="LAST_MONTH",r.LAST_QUARTER="LAST_QUARTER",r.LAST_YEAR="LAST_YEAR"})(Ei||(Ei={}));var Ti;(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC",r.HTML_PACKAGE="HTML_PACKAGE",r.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Ti||(Ti={}));var xi;(function(r){r.DEFAULT="DEFAULT",r.DOCUMENTS="DOCUMENTS",r.ALL_TOPICS="ALL_TOPICS",r.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(xi||(xi={}));var Ci;(function(r){r.PLAIN_TEXT="PLAIN_TEXT",r.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",r.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Ci||(Ci={}));var C;(function(r){r.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",r.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",r.HTML_EXPORT_USER="HTML_EXPORT_USER",r.PDF_EXPORT_USER="PDF_EXPORT_USER",r.SAVED_SEARCH_USER="SAVED_SEARCH_USER",r.COLLECTION_USER="COLLECTION_USER",r.OFFLINE_USER="OFFLINE_USER",r.ANALYTICS_USER="ANALYTICS_USER",r.BETA_USER="BETA_USER",r.DEBUG_USER="DEBUG_USER",r.PRINT_USER="PRINT_USER",r.RATING_USER="RATING_USER",r.FEEDBACK_USER="FEEDBACK_USER",r.GENERATIVE_AI_USER="GENERATIVE_AI_USER",r.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",r.CONTENT_PUBLISHER="CONTENT_PUBLISHER",r.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",r.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",r.KHUB_ADMIN="KHUB_ADMIN",r.USERS_ADMIN="USERS_ADMIN",r.PORTAL_ADMIN="PORTAL_ADMIN",r.ADMIN="ADMIN"})(C||(C={}));var Y;(function(r){r.SEARCHES="SEARCHES",r.BOOKMARKS="BOOKMARKS",r.BOOKS="BOOKS",r.COLLECTIONS="COLLECTIONS"})(Y||(Y={}));var wi;(function(r){r.UNAUTHENTICATED="UNAUTHENTICATED",r.USER_INCOMPLETE="USER_INCOMPLETE",r.MFA_REQUIRED="MFA_REQUIRED",r.AUTHENTICATED="AUTHENTICATED"})(wi||(wi={}));var Ii;(function(r){r.UNREACHABLE="UNREACHABLE",r.UNAUTHORIZED="UNAUTHORIZED",r.FORBIDDEN="FORBIDDEN",r.INCOMPATIBLE="INCOMPATIBLE",r.FAILED="FAILED",r.OK="OK"})(Ii||(Ii={}));var _i;(function(r){r.VALID="VALID",r.INVALID="INVALID"})(_i||(_i={}));var Ri;(function(r){r.INACCURATE="INACCURATE",r.INCOMPLETE="INCOMPLETE",r.OFF_TOPIC="OFF_TOPIC",r.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",r.SUMMARY="SUMMARY",r.SEMANTIC_SEARCH="SEMANTIC_SEARCH",r.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",r.OTHER="OTHER"})(Ri||(Ri={}));var Oi;(function(r){r.INACCURATE="INACCURATE",r.INCOMPLETE="INCOMPLETE",r.OFF_TOPIC="OFF_TOPIC",r.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",r.SLOW="SLOW",r.OTHER="OTHER"})(Oi||(Oi={}));var Li;(function(r){r.JSON="JSON",r.TEXT="TEXT"})(Li||(Li={}));var Mi;(function(r){r.JSON="JSON",r.TEXT="TEXT"})(Mi||(Mi={}));var Pi;(function(r){r.TEXT="TEXT",r.HTML="HTML"})(Pi||(Pi={}));var Ni;(function(r){r.IN_PROGRESS="IN_PROGRESS",r.ERROR="ERROR",r.DONE="DONE"})(Ni||(Ni={}));var Di;(function(r){r.HTML="HTML",r.MARKDOWN="MARKDOWN"})(Di||(Di={}));var ki;(function(r){r.SOURCES="SOURCES",r.ENRICH_AND_CLEAN="ENRICH_AND_CLEAN",r.VOCABULARIES="VOCABULARIES",r.METADATA="METADATA",r.PRETTY_URL="PRETTY_URL",r.ACCESS_RULE="ACCESS_RULE",r.DESIGNED_PAGES="DESIGNED_PAGES",r.THEME_STUDIO="THEME_STUDIO",r.PORTAL_GENERAL="PORTAL_GENERAL",r.ASSETS="ASSETS",r.CODE_LIBRARY="CODE_LIBRARY",r.THEME="THEME",r.CONTENT_STYLES="CONTENT_STYLES",r.HOMEPAGE="HOMEPAGE",r.CLASSIC_SEARCH_PAGE="CLASSIC_SEARCH_PAGE",r.CLASSIC_READER_PAGE="CLASSIC_READER_PAGE",r.PORTAL_METADATA="PORTAL_METADATA",r.LANGUAGES="LANGUAGES",r.PRINT_TEMPLATES="PRINT_TEMPLATES",r.OFFLINE="OFFLINE",r.CUSTOM_JS="CUSTOM_JS",r.CONFIDENTIALITY="CONFIDENTIALITY",r.NOTIFICATIONS="NOTIFICATIONS"})(ki||(ki={}));var Ui;(function(r){r.MAP="MAP",r.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(Ui||(Ui={}));var qa={[C.PERSONAL_BOOK_SHARE_USER]:[C.PERSONAL_BOOK_USER],[C.HTML_EXPORT_USER]:[C.PERSONAL_BOOK_USER],[C.PDF_EXPORT_USER]:[C.PERSONAL_BOOK_USER],[C.KHUB_ADMIN]:[C.CONTENT_PUBLISHER],[C.ADMIN]:[C.KHUB_ADMIN,C.USERS_ADMIN,C.PORTAL_ADMIN,C.BEHAVIOR_DATA_USER],[C.GENERATIVE_AI_EXPORT_USER]:[C.GENERATIVE_AI_USER]};function Fi(r,e){return r===e||(qa[r]??[]).some(t=>Fi(t,e))}function oe(r,e){return r==null?!1:(Array.isArray(r)?r:Array.isArray(r.roles)?r.roles:Array.isArray(r.profile?.roles)?r.profile.roles:[]).some(n=>Fi(n,e))}var en=v(K());var $i=v(K(),1);var Rr=r=>e=>{window.customElements.get(r)||window.customElements.define(r,e)};function ji(r,e){return(0,$i.property)({type:Object,converter:{fromAttribute:t=>{if(t==null)return ht(r);try{return JSON.parse(t)}catch{return ht(r)}},toAttribute:t=>JSON.stringify(t)},hasChanged:pt,...e??{}})}function za(r,e){if(r===e)return!0;if(r&&e&&typeof r=="object"&&typeof e=="object"){if(r.constructor!==e.constructor)return!1;let t,n;if(Array.isArray(r)){if(t=r.length,t!=e.length)return!1;for(n=t;n--!==0;)if(!Mt(r[n],e[n]))return!1;return!0}if(r instanceof Map&&e instanceof Map){if(r.size!==e.size)return!1;for(n of r.entries())if(!e.has(n[0]))return!1;for(n of r.entries())if(!Mt(n[1],e.get(n[0])))return!1;return!0}if(r instanceof Set&&e instanceof Set){if(r.size!==e.size)return!1;for(n of r.entries())if(!e.has(n[0]))return!1;return!0}if(r.constructor===RegExp)return r.source===e.source&&r.flags===e.flags;if(r.valueOf!==Object.prototype.valueOf)return r.valueOf()===e.valueOf();let i=a=>Object.keys(a).filter(o=>a[o]!=null),s=i(r);if(t=s.length,t!==i(e).length)return!1;for(n=t;n--!==0;)if(!Object.prototype.hasOwnProperty.call(e,s[n]))return!1;for(n=t;n--!==0;){let a=s[n];if(!Mt(r[a],e[a]))return!1}return!0}return r!==r&&e!==e||r==null&&e==null}function Mt(r,e){try{return za(r,e)}catch{return!1}}function pt(r,e){return!Mt(r,e)}function ht(r){return typeof window.structuredClone=="function"?structuredClone(r):r!=null?JSON.parse(JSON.stringify(r)):r}function Pt(r,e){let t=n=>n[r]===!0;return n=>{if(t(n))return n;let i=e(n);return i[r]=!0,i}}var Bi=v(K(),1);var Or=r=>{let e=r??{};return(t,n)=>{var i;let s={hasChanged:pt,attribute:!1,...e};(0,Bi.property)(s)(t,n);let a=t.constructor;a.reduxProperties=new Map(a.reduxProperties),a.reduxProperties.set(n,{selector:(i=e.selector)!==null&&i!==void 0?i:(o=>o[n]),store:e.store})}};var Nt=class{constructor(){this.queue=[]}add(e,t=!1){t&&this.clear(e.type),this.queue.push(e)}consume(e){let t=this.queue.find(n=>n.type===e);return t&&(this.queue=this.queue.filter(n=>n!==t)),t}clear(e){typeof e=="string"?this.queue=this.queue.filter(t=>t.type!==e):this.queue=this.queue.filter(t=>!e.test(t.type))}};var Ae=v(K(),1);var Dt=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,t){return this.callbacks=[e],this.debounce(t)}queue(e,t){return this.callbacks.push(e),this.debounce(t)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((t,n)=>{this.resolvePromise=t,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,t;let n=[...this.callbacks];this.callbacks=[];let i=(e=this.rejectPromise)!==null&&e!==void 0?e:(()=>null),s=(t=this.resolvePromise)!==null&&t!==void 0?t:(()=>null);this.clearPromise();for(let a of n)try{await a()}catch(o){i(o);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 Vi=v(F(),1);var kt=globalThis,Wa=kt.ShadowRoot&&(kt.ShadyCSS===void 0||kt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;var Hi=(r,e)=>{if(Wa)r.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(let t of e){let n=document.createElement("style"),i=kt.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=t.cssText,r.appendChild(n)}};var Ut=class extends Vi.LitElement{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let e=this.scopedRegistryConstructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,e.defineScopedElements(e.elementDefinitions));let t={...e.shadowRootOptions,customElements:e.registry},n=this.renderOptions.creationScope=this.attachShadow(t);return Hi(n,e.elementStyles),n}static canDefineScopedElement(e){return!!this.registry&&!this.registry.get(e)}static defineScopedElements(e){Object.entries(e).forEach(([t,n])=>this.defineScopedElement(t,n))}static defineScopedElement(e,t){Rr(e)(t),this.canDefineScopedElement(e)&&this.registry.define(e,t)}canDefineScopedElement(e){return this.scopedRegistryConstructor.canDefineScopedElement(e)}defineScopedElements(e){this.scopedRegistryConstructor.defineScopedElements(e)}defineScopedElement(e,t){this.scopedRegistryConstructor.defineScopedElement(e,t)}};function Ki(r,e,...t){var n;let i=r.querySelector(e);for(let s of t)i=(n=i?.shadowRoot)===null||n===void 0?void 0:n.querySelector(s);return i}var Be=function(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var o=r.length-1;o>=0;o--)(a=r[o])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s},Gi,qi=Symbol("constructorPrototype"),zi=Symbol("constructorName"),Yi=Symbol("exportpartsDebouncer"),Wi=Symbol("dynamicDependenciesLoaded"),je=class r extends CustomEvent{constructor(){super(r.eventName,{bubbles:!0})}};je.eventName="exportparts-updated";var ne=class extends Ut{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Gi]=new Dt(5),this.scheduleExportpartsUpdate=()=>{var e,t,n;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(n=(t=this.exportpartsPrefixes)===null||t===void 0?void 0:t.length)!==null&&n!==void 0&&n)&&this[Yi].run(()=>{var i,s;!((i=this.exportpartsPrefix)===null||i===void 0)&&i.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[zi]=this.constructor.name,this[qi]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[zi]&&Object.setPrototypeOf(this,this[qi])}connectedCallback(){var e;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(n){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",n)}let t=this.constructor;t[Wi]||(t[Wi]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(je.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(je.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 je)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:t,selector:n,shadowPath:i}=this.elementToFocus;if(n!=null){let s=[...i??[],n];t=Ki(this.shadowRoot,...s)}t?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||t?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var t,n,i;if(((n=(t=this.shadowRoot)===null||t===void 0?void 0:t.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(s=>s.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((i=this.customStylesheet)!==null&&i!==void 0?i:"")}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 t,n,i,s,a,o;let c=h=>h!=null&&h.trim().length>0,l=e.filter(c).map(h=>h.trim());if(l.length===0){this.exportparts=void 0;return}let u=new Set;for(let h of(n=(t=this.shadowRoot)===null||t===void 0?void 0:t.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let f=(s=(i=h.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&s!==void 0?s:[],p=(o=(a=h.getAttribute("exportparts"))===null||a===void 0?void 0:a.split(",").map(S=>S.split(":")[1]))!==null&&o!==void 0?o:[],g=[...f,...p].filter(c).map(S=>S.trim());for(let S of g)u.add(S)}if(u.size===0){this.exportparts=void 0;return}let d=[...u.values()].flatMap(h=>l.map(f=>`${h}:${f}--${h}`));this.exportparts=[...this.part,...d].join(", ")}};Gi=Yi;Be([(0,Ae.property)()],ne.prototype,"exportpartsPrefix",void 0);Be([ji([])],ne.prototype,"exportpartsPrefixes",void 0);Be([(0,Ae.property)({reflect:!0})],ne.prototype,"exportparts",void 0);Be([(0,Ae.property)()],ne.prototype,"customStylesheet",void 0);Be([(0,Ae.property)()],ne.prototype,"elementToFocus",void 0);Be([(0,Ae.state)()],ne.prototype,"useAdoptedStyleSheets",void 0);function Ft(r){var e;return(e=r?.isFtReduxStore)!==null&&e!==void 0?e:!1}var ft=Symbol("internalReduxEventsUnsubscribers"),fe=Symbol("internalStoresUnsubscribers"),Ee=Symbol("internalStores"),Ga=Pt(Symbol("withRedux"),function(r){var e,t,n;class i extends r{constructor(){super(...arguments),this[e]=new Map,this[t]=new Map,this[n]=new Map}get reduxConstructor(){return this.constructor}willUpdate(a){super.willUpdate(a),[...this.reduxConstructor.reduxReactiveProperties].some(o=>a.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[Ee].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ee].values()][0]}getStore(a){return a==null?this.getUnnamedStore():this[Ee].get(a)}addStore(a,o){var c;o=(c=o??a.name)!==null&&c!==void 0?c:"default-store",this.unsubscribeFromStore(o),this[Ee].set(o,a),this.subscribeToStore(o,a),this.updateFromStores()}removeStore(a){let o=typeof a=="string"?a:a.name;this.unsubscribeFromStore(o),this[Ee].delete(o)}setupStores(){this.unsubscribeFromStores(),this[Ee].forEach((a,o)=>this.subscribeToStore(o,a)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((a,o)=>{let c=this.constructor.getPropertyOptions(o);if(!c?.attribute||!this.hasAttribute(typeof c?.attribute=="string"?c.attribute:o)){let l=this.getStore(a.store);l&&(a.store?this[fe].has(a.store):this[fe].size>0)&&(this[o]=a.selector(l.getState(),this))}})}subscribeToStore(a,o){var c;this[fe].set(a,o.subscribe(()=>this.updateFromStores())),this[ft].set(a,[]),Ft(o)&&o.eventBus&&((c=this.reduxConstructor.reduxEventListeners)===null||c===void 0||c.forEach((l,u)=>{if(typeof this[u]=="function"&&(!l.store||o.name===l.store)){let d=h=>this[u](h);o.addEventListener(l.eventName,d),this[ft].get(a).push(()=>o.removeEventListener(l.eventName,d))}})),this.onStoreAvailable(a)}unsubscribeFromStores(){this[fe].forEach((a,o)=>this.unsubscribeFromStore(o))}unsubscribeFromStore(a){var o;this[fe].has(a)&&this[fe].get(a)(),this[fe].delete(a),(o=this[ft].get(a))===null||o===void 0||o.forEach(c=>c()),this[ft].delete(a)}onStoreAvailable(a){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=fe,t=Ee,n=ft,i.reduxProperties=new Map,i.reduxReactiveProperties=new Set,i.reduxEventListeners=new Map,i}),Qi=class extends Ga(ne){};function Q(r){for(var e=arguments.length,t=Array(e>1?e-1:0),n=1;n<e;n++)t[n-1]=arguments[n];if(0)var i,s;throw Error("[Immer] minified error nr: "+r+(t.length?" "+t.map((function(a){return"'"+a+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function ce(r){return!!r&&!!r[I]}function ee(r){var e;return!!r&&((function(t){if(!t||typeof t!="object")return!1;var n=Object.getPrototypeOf(t);if(n===null)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===ro})(r)||Array.isArray(r)||!!r[ns]||!!(!((e=r.constructor)===null||e===void 0)&&e[ns])||$r(r)||jr(r))}function Te(r,e,t){t===void 0&&(t=!1),Ke(r)===0?(t?Object.keys:Ve)(r).forEach((function(n){t&&typeof n=="symbol"||e(n,r[n],r)})):r.forEach((function(n,i){return e(i,n,r)}))}function Ke(r){var e=r[I];return e?e.i>3?e.i-4:e.i:Array.isArray(r)?1:$r(r)?2:jr(r)?3:0}function He(r,e){return Ke(r)===2?r.has(e):Object.prototype.hasOwnProperty.call(r,e)}function Ya(r,e){return Ke(r)===2?r.get(e):r[e]}function is(r,e,t){var n=Ke(r);n===2?r.set(e,t):n===3?r.add(t):r[e]=t}function ss(r,e){return r===e?r!==0||1/r==1/e:r!=r&&e!=e}function $r(r){return eo&&r instanceof Map}function jr(r){return to&&r instanceof Set}function me(r){return r.o||r.t}function Br(r){if(Array.isArray(r))return Array.prototype.slice.call(r);var e=cs(r);delete e[I];for(var t=Ve(e),n=0;n<t.length;n++){var i=t[n],s=e[i];s.writable===!1&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(e[i]={configurable:!0,writable:!0,enumerable:s.enumerable,value:r[i]})}return Object.create(Object.getPrototypeOf(r),e)}function Hr(r,e){return e===void 0&&(e=!1),Vr(r)||ce(r)||!ee(r)||(Ke(r)>1&&(r.set=r.add=r.clear=r.delete=Qa),Object.freeze(r),e&&Te(r,(function(t,n){return Hr(n,!0)}),!0)),r}function Qa(){Q(2)}function Vr(r){return r==null||typeof r!="object"||Object.isFrozen(r)}function ie(r){var e=Fr[r];return e||Q(18,r),e}function Ja(r,e){Fr[r]||(Fr[r]=e)}function Dr(){return gt}function Lr(r,e){e&&(ie("Patches"),r.u=[],r.s=[],r.v=e)}function $t(r){kr(r),r.p.forEach(Xa),r.p=null}function kr(r){r===gt&&(gt=r.l)}function Ji(r){return gt={p:[],l:gt,h:r,m:!0,_:0}}function Xa(r){var e=r[I];e.i===0||e.i===1?e.j():e.g=!0}function Mr(r,e){e._=e.p.length;var t=e.p[0],n=r!==void 0&&r!==t;return e.h.O||ie("ES5").S(e,r,n),n?(t[I].P&&($t(e),Q(4)),ee(r)&&(r=jt(e,r),e.l||Bt(e,r)),e.u&&ie("Patches").M(t[I].t,r,e.u,e.s)):r=jt(e,t,[]),$t(e),e.u&&e.v(e.u,e.s),r!==os?r:void 0}function jt(r,e,t){if(Vr(e))return e;var n=e[I];if(!n)return Te(e,(function(o,c){return Xi(r,n,e,o,c,t)}),!0),e;if(n.A!==r)return e;if(!n.P)return Bt(r,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=Br(n.k):n.o,s=i,a=!1;n.i===3&&(s=new Set(i),i.clear(),a=!0),Te(s,(function(o,c){return Xi(r,n,i,o,c,t,a)})),Bt(r,i,!1),t&&r.u&&ie("Patches").N(n,t,r.u,r.s)}return n.o}function Xi(r,e,t,n,i,s,a){if(ce(i)){var o=jt(r,i,s&&e&&e.i!==3&&!He(e.R,n)?s.concat(n):void 0);if(is(t,n,o),!ce(o))return;r.m=!1}else a&&t.add(i);if(ee(i)&&!Vr(i)){if(!r.h.D&&r._<1)return;jt(r,i),e&&e.A.l||Bt(r,i)}}function Bt(r,e,t){t===void 0&&(t=!1),!r.l&&r.h.D&&r.m&&Hr(e,t)}function Pr(r,e){var t=r[I];return(t?me(t):r)[e]}function Zi(r,e){if(e in r)for(var t=Object.getPrototypeOf(r);t;){var n=Object.getOwnPropertyDescriptor(t,e);if(n)return n;t=Object.getPrototypeOf(t)}}function ge(r){r.P||(r.P=!0,r.l&&ge(r.l))}function Nr(r){r.o||(r.o=Br(r.t))}function Ur(r,e,t){var n=$r(e)?ie("MapSet").F(e,t):jr(e)?ie("MapSet").T(e,t):r.O?(function(i,s){var a=Array.isArray(i),o={i:a?1:0,A:s?s.A:Dr(),P:!1,I:!1,R:{},l:s,t:i,k:null,o:null,j:null,C:!1},c=o,l=vt;a&&(c=[o],l=mt);var u=Proxy.revocable(c,l),d=u.revoke,h=u.proxy;return o.k=h,o.j=d,h})(e,t):ie("ES5").J(e,t);return(t?t.A:Dr()).p.push(n),n}function Za(r){return ce(r)||Q(22,r),(function e(t){if(!ee(t))return t;var n,i=t[I],s=Ke(t);if(i){if(!i.P&&(i.i<4||!ie("ES5").K(i)))return i.t;i.I=!0,n=es(t,s),i.I=!1}else n=es(t,s);return Te(n,(function(a,o){i&&Ya(i.t,a)===o||is(n,a,e(o))})),s===3?new Set(n):n})(r)}function es(r,e){switch(e){case 2:return new Map(r);case 3:return Array.from(r)}return Br(r)}function as(){function r(a,o){var c=s[a];return c?c.enumerable=o:s[a]=c={configurable:!0,enumerable:o,get:function(){var l=this[I];return vt.get(l,a)},set:function(l){var u=this[I];vt.set(u,a,l)}},c}function e(a){for(var o=a.length-1;o>=0;o--){var c=a[o][I];if(!c.P)switch(c.i){case 5:n(c)&&ge(c);break;case 4:t(c)&&ge(c)}}}function t(a){for(var o=a.t,c=a.k,l=Ve(c),u=l.length-1;u>=0;u--){var d=l[u];if(d!==I){var h=o[d];if(h===void 0&&!He(o,d))return!0;var f=c[d],p=f&&f[I];if(p?p.t!==h:!ss(f,h))return!0}}var g=!!o[I];return l.length!==Ve(o).length+(g?0:1)}function n(a){var o=a.k;if(o.length!==a.t.length)return!0;var c=Object.getOwnPropertyDescriptor(o,o.length-1);if(c&&!c.get)return!0;for(var l=0;l<o.length;l++)if(!o.hasOwnProperty(l))return!0;return!1}function i(a){a.g&&Q(3,JSON.stringify(me(a)))}var s={};Ja("ES5",{J:function(a,o){var c=Array.isArray(a),l=(function(d,h){if(d){for(var f=Array(h.length),p=0;p<h.length;p++)Object.defineProperty(f,""+p,r(p,!0));return f}var g=cs(h);delete g[I];for(var S=Ve(g),A=0;A<S.length;A++){var E=S[A];g[E]=r(E,d||!!g[E].enumerable)}return Object.create(Object.getPrototypeOf(h),g)})(c,a),u={i:c?5:4,A:o?o.A:Dr(),P:!1,I:!1,R:{},l:o,t:a,k:l,o:null,g:!1,C:!1};return Object.defineProperty(l,I,{value:u,writable:!0}),l},S:function(a,o,c){c?ce(o)&&o[I].A===a&&e(a.p):(a.u&&(function l(u){if(u&&typeof u=="object"){var d=u[I];if(d){var h=d.t,f=d.k,p=d.R,g=d.i;if(g===4)Te(f,(function(w){w!==I&&(h[w]!==void 0||He(h,w)?p[w]||l(f[w]):(p[w]=!0,ge(d)))})),Te(h,(function(w){f[w]!==void 0||He(f,w)||(p[w]=!1,ge(d))}));else if(g===5){if(n(d)&&(ge(d),p.length=!0),f.length<h.length)for(var S=f.length;S<h.length;S++)p[S]=!1;else for(var A=h.length;A<f.length;A++)p[A]=!0;for(var E=Math.min(f.length,h.length),_=0;_<E;_++)f.hasOwnProperty(_)||(p[_]=!0),p[_]===void 0&&l(f[_])}}}})(a.p[0]),e(a.p))},K:function(a){return a.i===4?t(a):n(a)}})}var ts,gt,Kr=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",eo=typeof Map<"u",to=typeof Set<"u",rs=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",os=Kr?Symbol.for("immer-nothing"):((ts={})["immer-nothing"]=!0,ts),ns=Kr?Symbol.for("immer-draftable"):"__$immer_draftable",I=Kr?Symbol.for("immer-state"):"__$immer_state";var ro=""+Object.prototype.constructor,Ve=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Object.getOwnPropertyNames,cs=Object.getOwnPropertyDescriptors||function(r){var e={};return Ve(r).forEach((function(t){e[t]=Object.getOwnPropertyDescriptor(r,t)})),e},Fr={},vt={get:function(r,e){if(e===I)return r;var t=me(r);if(!He(t,e))return(function(i,s,a){var o,c=Zi(s,a);return c?"value"in c?c.value:(o=c.get)===null||o===void 0?void 0:o.call(i.k):void 0})(r,t,e);var n=t[e];return r.I||!ee(n)?n:n===Pr(r.t,e)?(Nr(r),r.o[e]=Ur(r.A.h,n,r)):n},has:function(r,e){return e in me(r)},ownKeys:function(r){return Reflect.ownKeys(me(r))},set:function(r,e,t){var n=Zi(me(r),e);if(n?.set)return n.set.call(r.k,t),!0;if(!r.P){var i=Pr(me(r),e),s=i?.[I];if(s&&s.t===t)return r.o[e]=t,r.R[e]=!1,!0;if(ss(t,i)&&(t!==void 0||He(r.t,e)))return!0;Nr(r),ge(r)}return r.o[e]===t&&(t!==void 0||e in r.o)||Number.isNaN(t)&&Number.isNaN(r.o[e])||(r.o[e]=t,r.R[e]=!0),!0},deleteProperty:function(r,e){return Pr(r.t,e)!==void 0||e in r.t?(r.R[e]=!1,Nr(r),ge(r)):delete r.R[e],r.o&&delete r.o[e],!0},getOwnPropertyDescriptor:function(r,e){var t=me(r),n=Reflect.getOwnPropertyDescriptor(t,e);return n&&{writable:!0,configurable:r.i!==1||e!=="length",enumerable:n.enumerable,value:t[e]}},defineProperty:function(){Q(11)},getPrototypeOf:function(r){return Object.getPrototypeOf(r.t)},setPrototypeOf:function(){Q(12)}},mt={};Te(vt,(function(r,e){mt[r]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),mt.deleteProperty=function(r,e){return mt.set.call(this,r,e,void 0)},mt.set=function(r,e,t){return vt.set.call(this,r[0],e,t,r[0])};var no=(function(){function r(t){var n=this;this.O=rs,this.D=!0,this.produce=function(i,s,a){if(typeof i=="function"&&typeof s!="function"){var o=s;s=i;var c=n;return function(g){var S=this;g===void 0&&(g=o);for(var A=arguments.length,E=Array(A>1?A-1:0),_=1;_<A;_++)E[_-1]=arguments[_];return c.produce(g,(function(w){var he;return(he=s).call.apply(he,[S,w].concat(E))}))}}var l;if(typeof s!="function"&&Q(6),a!==void 0&&typeof a!="function"&&Q(7),ee(i)){var u=Ji(n),d=Ur(n,i,void 0),h=!0;try{l=s(d),h=!1}finally{h?$t(u):kr(u)}return typeof Promise<"u"&&l instanceof Promise?l.then((function(g){return Lr(u,a),Mr(g,u)}),(function(g){throw $t(u),g})):(Lr(u,a),Mr(l,u))}if(!i||typeof i!="object"){if((l=s(i))===void 0&&(l=i),l===os&&(l=void 0),n.D&&Hr(l,!0),a){var f=[],p=[];ie("Patches").M(i,l,f,p),a(f,p)}return l}Q(21,i)},this.produceWithPatches=function(i,s){if(typeof i=="function")return function(l){for(var u=arguments.length,d=Array(u>1?u-1:0),h=1;h<u;h++)d[h-1]=arguments[h];return n.produceWithPatches(l,(function(f){return i.apply(void 0,[f].concat(d))}))};var a,o,c=n.produce(i,s,(function(l,u){a=l,o=u}));return typeof Promise<"u"&&c instanceof Promise?c.then((function(l){return[l,a,o]})):[c,a,o]},typeof t?.useProxies=="boolean"&&this.setUseProxies(t.useProxies),typeof t?.autoFreeze=="boolean"&&this.setAutoFreeze(t.autoFreeze)}var e=r.prototype;return e.createDraft=function(t){ee(t)||Q(8),ce(t)&&(t=Za(t));var n=Ji(this),i=Ur(this,t,void 0);return i[I].C=!0,kr(n),i},e.finishDraft=function(t,n){var i=t&&t[I],s=i.A;return Lr(s,n),Mr(void 0,s)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!rs&&Q(20),this.O=t},e.applyPatches=function(t,n){var i;for(i=n.length-1;i>=0;i--){var s=n[i];if(s.path.length===0&&s.op==="replace"){t=s.value;break}}i>-1&&(n=n.slice(i+1));var a=ie("Patches").$;return ce(t)?a(t,n):this.produce(t,(function(o){return a(o,n)}))},r})(),q=new no,io=q.produce,ml=q.produceWithPatches.bind(q),gl=q.setAutoFreeze.bind(q),vl=q.setUseProxies.bind(q),yl=q.applyPatches.bind(q),bl=q.createDraft.bind(q),Sl=q.finishDraft.bind(q),Ht=io;function xe(r){"@babel/helpers - typeof";return xe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xe(r)}function ls(r,e){if(xe(r)!="object"||!r)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(xe(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function us(r){var e=ls(r,"string");return xe(e)=="symbol"?e:e+""}function ds(r,e,t){return(e=us(e))in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function hs(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),t.push.apply(t,n)}return t}function qr(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?hs(Object(t),!0).forEach(function(n){ds(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):hs(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}function D(r){return"Minified Redux error #"+r+"; visit https://redux.js.org/Errors?code="+r+" for the full message or use the non-minified dev environment for full errors. "}var ps=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),zr=function(){return Math.random().toString(36).substring(7).split("").join(".")},Vt={INIT:"@@redux/INIT"+zr(),REPLACE:"@@redux/REPLACE"+zr(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+zr()}};function so(r){if(typeof r!="object"||r===null)return!1;for(var e=r;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(r)===e}function Wr(r,e,t){var n;if(typeof e=="function"&&typeof t=="function"||typeof t=="function"&&typeof arguments[3]=="function")throw new Error(D(0));if(typeof e=="function"&&typeof t>"u"&&(t=e,e=void 0),typeof t<"u"){if(typeof t!="function")throw new Error(D(1));return t(Wr)(r,e)}if(typeof r!="function")throw new Error(D(2));var i=r,s=e,a=[],o=a,c=!1;function l(){o===a&&(o=a.slice())}function u(){if(c)throw new Error(D(3));return s}function d(g){if(typeof g!="function")throw new Error(D(4));if(c)throw new Error(D(5));var S=!0;return l(),o.push(g),function(){if(S){if(c)throw new Error(D(6));S=!1,l();var E=o.indexOf(g);o.splice(E,1),a=null}}}function h(g){if(!so(g))throw new Error(D(7));if(typeof g.type>"u")throw new Error(D(8));if(c)throw new Error(D(9));try{c=!0,s=i(s,g)}finally{c=!1}for(var S=a=o,A=0;A<S.length;A++){var E=S[A];E()}return g}function f(g){if(typeof g!="function")throw new Error(D(10));i=g,h({type:Vt.REPLACE})}function p(){var g,S=d;return g={subscribe:function(E){if(typeof E!="object"||E===null)throw new Error(D(11));function _(){E.next&&E.next(u())}_();var w=S(_);return{unsubscribe:w}}},g[ps]=function(){return this},g}return h({type:Vt.INIT}),n={dispatch:h,subscribe:d,getState:u,replaceReducer:f},n[ps]=p,n}function ao(r){Object.keys(r).forEach(function(e){var t=r[e],n=t(void 0,{type:Vt.INIT});if(typeof n>"u")throw new Error(D(12));if(typeof t(void 0,{type:Vt.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(D(13))})}function fs(r){for(var e=Object.keys(r),t={},n=0;n<e.length;n++){var i=e[n];typeof r[i]=="function"&&(t[i]=r[i])}var s=Object.keys(t),a,o;try{ao(t)}catch(c){o=c}return function(l,u){if(l===void 0&&(l={}),o)throw o;if(0)var d;for(var h=!1,f={},p=0;p<s.length;p++){var g=s[p],S=t[g],A=l[g],E=S(A,u);if(typeof E>"u"){var _=u&&u.type;throw new Error(D(14))}f[g]=E,h=h||E!==A}return h=h||s.length!==Object.keys(l).length,h?f:l}}function qe(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function ms(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return function(n){return function(){var i=n.apply(void 0,arguments),s=function(){throw new Error(D(15))},a={getState:i.getState,dispatch:function(){return s.apply(void 0,arguments)}},o=e.map(function(c){return c(a)});return s=qe.apply(void 0,o)(i.dispatch),qr(qr({},i),{},{dispatch:s})}}}function gs(r){var e=function(n){var i=n.dispatch,s=n.getState;return function(a){return function(o){return typeof o=="function"?o(i,s,r):a(o)}}};return e}var vs=gs();vs.withExtraArgument=gs;var Gr=vs;var Es=(function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),oo=function(r,e){var t={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,i,s,a;return a={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function o(l){return function(u){return c([l,u])}}function c(l){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,i&&(s=l[0]&2?i.return:l[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,l[1])).done)return s;switch(i=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return t.label++,{value:l[1],done:!1};case 5:t.label++,i=l[1],l=[0];continue;case 7:l=t.ops.pop(),t.trys.pop();continue;default:if(s=t.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){t=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){t.label=l[1];break}if(l[0]===6&&t.label<s[1]){t.label=s[1],s=l;break}if(s&&t.label<s[2]){t.label=s[2],t.ops.push(l);break}s[2]&&t.ops.pop(),t.trys.pop();continue}l=e.call(r,t)}catch(u){l=[6,u],i=0}finally{n=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},ze=function(r,e){for(var t=0,n=e.length,i=r.length;t<n;t++,i++)r[i]=e[t];return r},co=Object.defineProperty,lo=Object.defineProperties,uo=Object.getOwnPropertyDescriptors,ys=Object.getOwnPropertySymbols,ho=Object.prototype.hasOwnProperty,po=Object.prototype.propertyIsEnumerable,bs=function(r,e,t){return e in r?co(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t},ve=function(r,e){for(var t in e||(e={}))ho.call(e,t)&&bs(r,t,e[t]);if(ys)for(var n=0,i=ys(e);n<i.length;n++){var t=i[n];po.call(e,t)&&bs(r,t,e[t])}return r},Yr=function(r,e){return lo(r,uo(e))},fo=function(r,e,t){return new Promise(function(n,i){var s=function(c){try{o(t.next(c))}catch(l){i(l)}},a=function(c){try{o(t.throw(c))}catch(l){i(l)}},o=function(c){return c.done?n(c.value):Promise.resolve(c.value).then(s,a)};o((t=t.apply(r,e)).next())})};var mo=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?qe:qe.apply(null,arguments)},Fl=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(r){return r}};function go(r){if(typeof r!="object"||r===null)return!1;var e=Object.getPrototypeOf(r);if(e===null)return!0;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return e===t}function ye(r,e){function t(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(e){var s=e.apply(void 0,n);if(!s)throw new Error("prepareAction did not return an object");return ve(ve({type:r,payload:s.payload},"meta"in s&&{meta:s.meta}),"error"in s&&{error:s.error})}return{type:r,payload:n[0]}}return t.toString=function(){return""+r},t.type=r,t.match=function(n){return n.type===r},t}var vo=(function(r){Es(e,r);function e(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i=r.apply(this,t)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return r.prototype.concat.apply(this,t)},e.prototype.prepend=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return t.length===1&&Array.isArray(t[0])?new(e.bind.apply(e,ze([void 0],t[0].concat(this)))):new(e.bind.apply(e,ze([void 0],t.concat(this))))},e})(Array),yo=(function(r){Es(e,r);function e(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i=r.apply(this,t)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return r.prototype.concat.apply(this,t)},e.prototype.prepend=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return t.length===1&&Array.isArray(t[0])?new(e.bind.apply(e,ze([void 0],t[0].concat(this)))):new(e.bind.apply(e,ze([void 0],t.concat(this))))},e})(Array);function Xr(r){return ee(r)?Ht(r,function(){}):r}function bo(r){return typeof r=="boolean"}function So(){return function(e){return Ao(e)}}function Ao(r){r===void 0&&(r={});var e=r.thunk,t=e===void 0?!0:e,n=r.immutableCheck,i=n===void 0?!0:n,s=r.serializableCheck,a=s===void 0?!0:s,o=r.actionCreatorCheck,c=o===void 0?!0:o,l=new vo;if(t&&(bo(t)?l.push(Gr):l.push(Gr.withExtraArgument(t.extraArgument))),0){if(i)var u;if(a)var d;if(c)var h}return l}var Qr=!0;function Ts(r){var e=So(),t=r||{},n=t.reducer,i=n===void 0?void 0:n,s=t.middleware,a=s===void 0?e():s,o=t.devTools,c=o===void 0?!0:o,l=t.preloadedState,u=l===void 0?void 0:l,d=t.enhancers,h=d===void 0?void 0:d,f;if(typeof i=="function")f=i;else if(go(i))f=fs(i);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var p=a;if(typeof p=="function"&&(p=p(e),!Qr&&!Array.isArray(p)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Qr&&p.some(function(w){return typeof w!="function"}))throw new Error("each middleware provided to configureStore must be a function");var g=ms.apply(void 0,p),S=qe;c&&(S=mo(ve({trace:!Qr},typeof c=="object"&&c)));var A=new yo(g),E=A;Array.isArray(h)?E=ze([g],h):typeof h=="function"&&(E=h(A));var _=S.apply(void 0,E);return Wr(f,u,_)}function xs(r){var e={},t=[],n,i={addCase:function(s,a){var o=typeof s=="string"?s:s.type;if(!o)throw new Error("`builder.addCase` cannot be called with an empty action type");if(o in e)throw new Error("`builder.addCase` cannot be called with two reducers for the same action type");return e[o]=a,i},addMatcher:function(s,a){return t.push({matcher:s,reducer:a}),i},addDefaultCase:function(s){return n=s,i}};return r(i),[e,t,n]}function Eo(r){return typeof r=="function"}function To(r,e,t,n){t===void 0&&(t=[]);var i=typeof e=="function"?xs(e):[e,t,n],s=i[0],a=i[1],o=i[2],c;if(Eo(r))c=function(){return Xr(r())};else{var l=Xr(r);c=function(){return l}}function u(d,h){d===void 0&&(d=c());var f=ze([s[h.type]],a.filter(function(p){var g=p.matcher;return g(h)}).map(function(p){var g=p.reducer;return g}));return f.filter(function(p){return!!p}).length===0&&(f=[o]),f.reduce(function(p,g){if(g)if(ce(p)){var S=p,A=g(S,h);return A===void 0?p:A}else{if(ee(p))return Ht(p,function(E){return g(E,h)});var A=g(p,h);if(A===void 0){if(p===null)return p;throw Error("A case reducer on a non-draftable value must not return undefined")}return A}return p},d)}return u.getInitialState=c,u}function xo(r,e){return r+"/"+e}function Cs(r){var e=r.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var t=typeof r.initialState=="function"?r.initialState:Xr(r.initialState),n=r.reducers||{},i=Object.keys(n),s={},a={},o={};i.forEach(function(u){var d=n[u],h=xo(e,u),f,p;"reducer"in d?(f=d.reducer,p=d.prepare):f=d,s[u]=f,a[h]=f,o[u]=p?ye(h,p):ye(h)});function c(){var u=typeof r.extraReducers=="function"?xs(r.extraReducers):[r.extraReducers],d=u[0],h=d===void 0?{}:d,f=u[1],p=f===void 0?[]:f,g=u[2],S=g===void 0?void 0:g,A=ve(ve({},h),a);return To(t,function(E){for(var _ in A)E.addCase(_,A[_]);for(var w=0,he=p;w<he.length;w++){var se=he[w];E.addMatcher(se.matcher,se.reducer)}S&&E.addDefaultCase(S)})}var l;return{name:e,reducer:function(u,d){return l||(l=c()),l(u,d)},actions:o,caseReducers:s,getInitialState:function(){return l||(l=c()),l.getInitialState()}}}var Co="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",wo=function(r){r===void 0&&(r=21);for(var e="",t=r;t--;)e+=Co[Math.random()*64|0];return e},Io=["name","message","stack","code"],Jr=(function(){function r(e,t){this.payload=e,this.meta=t}return r})(),Ss=(function(){function r(e,t){this.payload=e,this.meta=t}return r})(),_o=function(r){if(typeof r=="object"&&r!==null){for(var e={},t=0,n=Io;t<n.length;t++){var i=n[t];typeof r[i]=="string"&&(e[i]=r[i])}return e}return{message:String(r)}},Hl=(function(){function r(e,t,n){var i=ye(e+"/fulfilled",function(u,d,h,f){return{payload:u,meta:Yr(ve({},f||{}),{arg:h,requestId:d,requestStatus:"fulfilled"})}}),s=ye(e+"/pending",function(u,d,h){return{payload:void 0,meta:Yr(ve({},h||{}),{arg:d,requestId:u,requestStatus:"pending"})}}),a=ye(e+"/rejected",function(u,d,h,f,p){return{payload:f,error:(n&&n.serializeError||_o)(u||"Rejected"),meta:Yr(ve({},p||{}),{arg:h,requestId:d,rejectedWithValue:!!f,requestStatus:"rejected",aborted:u?.name==="AbortError",condition:u?.name==="ConditionError"})}}),o=!1,c=typeof AbortController<"u"?AbortController:(function(){function u(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return u.prototype.abort=function(){},u})();function l(u){return function(d,h,f){var p=n?.idGenerator?n.idGenerator(u):wo(),g=new c,S,A=!1;function E(w){S=w,g.abort()}var _=(function(){return fo(this,null,function(){var w,he,se,ct,In,lt,_n;return oo(this,function(ke){switch(ke.label){case 0:return ke.trys.push([0,4,,5]),ct=(w=n?.condition)==null?void 0:w.call(n,u,{getState:h,extra:f}),Oo(ct)?[4,ct]:[3,2];case 1:ct=ke.sent(),ke.label=2;case 2:if(ct===!1||g.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return A=!0,In=new Promise(function(Z,ut){return g.signal.addEventListener("abort",function(){return ut({name:"AbortError",message:S||"Aborted"})})}),d(s(p,u,(he=n?.getPendingMeta)==null?void 0:he.call(n,{requestId:p,arg:u},{getState:h,extra:f}))),[4,Promise.race([In,Promise.resolve(t(u,{dispatch:d,getState:h,extra:f,requestId:p,signal:g.signal,abort:E,rejectWithValue:function(Z,ut){return new Jr(Z,ut)},fulfillWithValue:function(Z,ut){return new Ss(Z,ut)}})).then(function(Z){if(Z instanceof Jr)throw Z;return Z instanceof Ss?i(Z.payload,p,u,Z.meta):i(Z,p,u)})])];case 3:return se=ke.sent(),[3,5];case 4:return lt=ke.sent(),se=lt instanceof Jr?a(null,p,u,lt.payload,lt.meta):a(lt,p,u),[3,5];case 5:return _n=n&&!n.dispatchConditionRejection&&a.match(se)&&se.meta.condition,_n||d(se),[2,se]}})})})();return Object.assign(_,{abort:E,requestId:p,arg:u,unwrap:function(){return _.then(Ro)}})}}return Object.assign(l,{pending:s,rejected:a,fulfilled:i,typePrefix:e})}return r.withTypes=function(){return r},r})();function Ro(r){if(r.meta&&r.meta.rejectedWithValue)throw r.payload;if(r.error)throw r.error;return r.payload}function Oo(r){return r!==null&&typeof r=="object"&&typeof r.then=="function"}var ws="listener",Is="completed",_s="cancelled",Vl="task-"+_s,Kl="task-"+Is,ql=ws+"-"+_s,zl=ws+"-"+Is;var Zr="listenerMiddleware";var Wl=ye(Zr+"/add"),Gl=ye(Zr+"/removeAll"),Yl=ye(Zr+"/remove");var As,Ql=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(r){return(As||(As=Promise.resolve())).then(r).catch(function(e){return setTimeout(function(){throw e},0)})},Lo=function(r){return function(e){setTimeout(e,r)}},Jl=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Lo(10);as();var Mo=Pt(Symbol("withEventBus"),function(r,e){return class extends r{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(t,n,i){this.eventBus.addEventListener(t,n,i)}dispatchEvent(t){return this.eventBus.dispatchEvent(t)}removeEventListener(t,n,i){this.eventBus.removeEventListener(t,n,i)}}}),Kt=class extends Mo(Object){};window.ftReduxStores||(window.ftReduxStores={});var Rs=class r extends Kt{static get(e){var t;let n=typeof e=="string"?e:e.name,i=typeof e=="string"?void 0:e,s=window.ftReduxStores[n];if(Ft(s))return s;if(i==null)return;let a=Cs({...i,reducers:(t=i.reducers)!==null&&t!==void 0?t:{}}),o=Ts({reducer:(c,l)=>{if(l.type==="CLEAR_FT_REDUX_STORE"){let u=ht(a.getInitialState());for(let d of l.keeping)u[d]=(c??u)[d];return u}else if(typeof l.type=="string"&&l.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...c,...l.overwrites};return a.reducer(c,l)}});return window.ftReduxStores[i.name]=new r(a,o,i.eventBus)}constructor(e,t,n){super(),this.reduxSlice=e,this.reduxStore=t,this.isFtReduxStore=!0,this.commands=new Nt;let i=s=>s!=null?JSON.parse(JSON.stringify(s)):s;this.actions=new Proxy(this.reduxSlice.actions,{get:(s,a,o)=>{let c=a,l=s[c];return l?(...u)=>{let d=l(...u.map(i));return this.reduxStore.dispatch(d),d}:u=>{this.setState({[c]:i(u)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...e){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:e})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var qt=class{static format(e,t,n,i,s){return window.moment?window.moment(e).locale(t).format(this.getMomentDateFormat(n,i,!!s)):this.getIntlDateTime(e,t,n,i,!!s)}static getMomentDateFormat(e,t,n){return n?"LT":e?t?"lll":"ll":t?"L LT":"L"}static getIntlDateTime(e,t,n,i,s){let a=typeof e=="string"?new Date(e):e,o=new Intl.DateTimeFormat(t,{dateStyle:n?"medium":"short"}).format(a),c=new Intl.DateTimeFormat(t,{timeStyle:"short"}).format(a);return s?c:i?`${o} ${c}`:o}static getTimezoneAsString(){let e=n=>String(Math.floor(n)).padStart(2,"0"),t=new Date().getTimezoneOffset();return`${t<0?"+":"-"}${e(Math.abs(t)/60)}:${e(Math.abs(t)%60)}`}};var zt=v(T()),Po="ft-app-info",le=class r extends CustomEvent{constructor(e){super(r.eventName,{detail:e})}};le.eventName="authentication-change";var yt=class r extends CustomEvent{constructor(e){super(r.eventName,{detail:e})}};yt.eventName="ui-locale-changed";var No={session:(r,e)=>{(0,zt.deepEqual)(r.session,e.payload)||(r.session=e.payload,setTimeout(()=>y.dispatchEvent(new le(e.payload)),0))}},y=zt.FtReduxStore.get({name:Po,reducers:No,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],availableContentLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,searchLanguageSetsUiLanguage:!1,uiLanguageSetsSearchLanguage:!1,uiLanguageSetsReaderLanguage:!1,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}});var Os=v(T()),Wt=function(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var o=r.length-1;o>=0;o--)(a=r[o])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s},Cu=(0,Os.applyMixinOnce)(Symbol("withDateFormat"),function(r){class e extends r{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(y)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var i,s;return((s=(i=this.metadataDescriptors.find(o=>o.key===n))===null||i===void 0?void 0:i.date)!==null&&s!==void 0?s:!1)?o=>qt.format(o,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Wt([(0,en.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),Wt([(0,en.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),Wt([Or({store:y.name,selector:t=>{var n,i;return(i=(n=t.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&i!==void 0?i:[]}})],e.prototype,"metadataDescriptors",void 0),Wt([Or({store:y.name})],e.prototype,"uiLocale",void 0),e});var Xt=v(T());var tn=v(T());var Ce=class r{static get(e){let{baseUrl:t,apiIntegrationIdentifier:n}=y.getState(),i=e??n;if(t&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(t,i,!0)}static await(e){return new Promise(t=>{let n=r.get(e);if(n)t(n);else{let i=y.subscribe(()=>{n=r.get(e),n&&(i(),t(n))})}})}};var We=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Ce.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Ce.await()}};var k=class extends We{constructor(e=!0,t){var n;super(t),this.sortObjectFields=(s,a)=>typeof a!="object"||a==null||Array.isArray(a)?a:Object.fromEntries(Object.entries(a).sort(([o],[c])=>o.localeCompare(c)));let i=this.constructor;i.commonCache=(n=i.commonCache)!==null&&n!==void 0?n:new tn.CacheRegistry,this.cache=e?i.commonCache:new tn.CacheRegistry}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((t,n)=>0|31*t+n.charCodeAt(0),0))}};var Gt=class extends k{async listMySearches(){let{session:e}=y.getState();return oe(e,C.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var Yt=class extends k{async listMyBookmarks(){let e=y.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}};var Qt=class extends k{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=y.getState().session;return!!e?.sessionAuthenticated}};var Jt=class extends k{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let e=y.getState().session;return!!e?.sessionAuthenticated}};var Do="ft-user-assets",ko={setAssetCount:(r,e)=>{let{userAssetType:t,count:n}=e.payload.assetCount;r.assetCounts.allAsset[t]=n},clearAssetCount:r=>{Object.values(Y).forEach(e=>{r.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(r,e)=>{let t=e.payload.mapId;r.assetCounts.bookmarkByMap[t]=e.payload.count},clearBookmarkCountByMap:r=>{r.assetCounts.bookmarkByMap={}},addAsset:(r,e)=>{let{assetType:t,mapId:n,asset:i}=e.payload;nn(r,t,[...rn(r,t),i]),Ls(r,t,1,n),Ms(r,i)},editAsset:(r,e)=>{let{assetType:t,asset:n}=e.payload;nn(r,t,rn(r,t).map(i=>i.id===n.id?n:i)),Ms(r,n)},removeAsset:(r,e)=>{let{assetType:t,mapId:n,assetId:i}=e.payload;nn(r,t,rn(r,t).filter(s=>s.id!==i)),Ls(r,t,-1,n)}},Ps={[Y.SEARCHES]:"savedSearches",[Y.BOOKMARKS]:"bookmarks",[Y.BOOKS]:void 0,[Y.COLLECTIONS]:void 0},rn=(r,e)=>{var t;let n=Ps[e];return n?(t=r[n])!==null&&t!==void 0?t:[]:[]},nn=(r,e,t)=>{let n=Ps[e];n&&(r[n]=t)},Ls=(r,e,t,n)=>{let i=r.assetCounts.allAsset[e];if(i!==void 0&&(r.assetCounts.allAsset[e]=Math.max(0,i+t),e===Y.BOOKMARKS&&n)){let s=r.assetCounts.bookmarkByMap[n];r.assetCounts.bookmarkByMap[n]=Math.max(0,s+t)}},Ms=(r,e)=>{let t=r.assetLabels.map(i=>i.title),n=e.labels.filter(i=>!t.includes(i)).map(i=>({title:i}));r.assetLabels.push(...n)},B=Xt.FtReduxStore.get({name:Do,reducers:ko,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Y).map(r=>[r,void 0])),bookmarkByMap:{}},assetLabels:[]}}),sn=class{constructor(e=new Qt,t=new Jt){this.assetCountsService=e,this.assetLabelsService=t,this.currentSession=y.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Yt,this.savedSearchesService=new Gt,y.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:t}=y.getState();(0,Xt.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,t?.profile)||(this.currentSession=t,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),B.actions.clearAssetCount(),B.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),B.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),B.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();B.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();B.actions.assetLabels(e)}async loadAssetCount(e){let t=await this.assetCountsService.getUserAssetCount(e);t&&B.getState().assetCounts.allAsset[e]!==t.count&&B.actions.setAssetCount({assetCount:t})}async loadBookmarkByMapId(e){let t=await this.assetCountsService.getUserBookmarkCountByMap(e);t&&B.getState().assetCounts.bookmarkByMap[e]!==t.count&&B.actions.setBookmarkCountByMap({count:t.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let t=Object.keys(B.getState().assetCounts.bookmarkByMap).length!==0;e===Y.BOOKMARKS&&t&&B.actions.clearBookmarkCountByMap(),B.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 t=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;B.actions.bookmarks(t)}}},an=new sn;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=an);var on=class{addCommand(e,t=!1){y.commands.add(e,t)}consumeCommand(e){return y.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new on;var J=v(T());var Ns,Ge=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},Uo=Symbol("clearAfterUnitTest"),Zt=class extends(0,J.withEventBus)(k){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Ns]=()=>{this.defaultMessages={},this.cache=new J.CacheRegistry,this.listeners={}},this.currentUiLocale=y.getState().uiLocale,y.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=y.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let t=e.name.toLowerCase();this.cache.setFinal(t,e),this.notify(t)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,t){var n;if(e=e.toLowerCase(),t&&Object.keys(t).length>0){let i={...(n=this.defaultMessages[e])!==null&&n!==void 0?n:{},...t};(0,J.deepEqual)(this.defaultMessages[e],i)||(this.defaultMessages[e]=i,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var t,n;return this.fetchContext(e),(n=(t=this.cache.getNow(e))===null||t===void 0?void 0:t.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(e,t){let n=e.toLowerCase();return this.resolveContext(n)[t]}resolveMessage(e,t,...n){var i;let s=e.toLowerCase(),a=this.resolveContext(s);return new J.ParametrizedLabelResolver((i=this.defaultMessages[s])!==null&&i!==void 0?i:{},a).resolve(t,...n)}async fetchContext(e){let t=!this.cache.has(e),n;try{n=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),t&&await this.notify(e)}catch(i){!(i instanceof J.CanceledPromiseError)&&t&&console.error(i)}return n}subscribe(e,t){var n;return e=e.toLowerCase(),this.listeners[e]=(n=this.listeners[e])!==null&&n!==void 0?n:new Set,this.listeners[e].add(t),()=>{var i;return(i=this.listeners[e])===null||i===void 0?void 0:i.delete(t)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new Ge({loadedContexts:e})),this.dispatchEvent(new Ge({loadedContexts:e})),await Promise.all(e.map(t=>this.notify(t,!1)))}async notify(e,t=!0){t&&(document.body.dispatchEvent(new Ge({loadedContexts:[e]})),this.dispatchEvent(new Ge({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(n=>(0,J.delay)(0).then(()=>n()).catch(()=>null)))}};Ns=Uo;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Zt{constructor(){super(async(r,e)=>(await this.awaitApi).getFluidTopicsMessageContext(r,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Zt{constructor(){super(async(r,e)=>(await this.awaitApi).getCustomMessageContext(r,e))}});var Ds=window.FluidTopicsI18nService,ad=window.FluidTopicsCustomI18nService;var ks=v(T()),cn=class{highlightHtml(e,t,n){(0,ks.highlightHtml)(e,t,n)}};window.FluidTopicsHighlightHtmlService=new cn;var Us=v(T());var ln=class{isDate(e){var t,n,i,s;return(s=(i=((n=(t=y.getState().metadataConfiguration)===null||t===void 0?void 0:t.descriptors)!==null&&n!==void 0?n:[]).find(o=>o.key===e))===null||i===void 0?void 0:i.date)!==null&&s!==void 0?s:!1}format(e,t){var n,i,s,a;if(e==null)return"";try{return Us.DateFormatter.format(e,(n=t?.locale)!==null&&n!==void 0?n:y.getState().uiLocale,(i=t?.longFormat)!==null&&i!==void 0?i:!1,(s=t?.withTime)!==null&&s!==void 0?s:!1,(a=t?.onlyTime)!==null&&a!==void 0?a:!1)}catch(o){throw console.error(`Date ${JSON.stringify(e)} is not valid`,o),o}}};window.FluidTopicsDateService=new ln;var Fs=v(T());var bt=class{static get(e,t){var n,i;let s=y.getState(),{lang:a,region:o}=(i=(n=s.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&i!==void 0?i:{lang:"en",region:"US"};return new Fs.SearchPlaceConverter(s.baseUrl,e??20,s.searchInAllLanguagesAllowed,t??`${a}-${o}`)}};var er=class extends k{async sendDocumentStartDisplayEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.start_display event")}async sendTopicStartDisplayEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send topic.start_display event")}async sendKhubSearchEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send khub.search event")}async sendDocumentSearchEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.search event")}async sendSearchPageSelectEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send search_page.select event")}async sendSearchResultOpenContextMenuEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send search_result.open_context_menu event")}async sendDocumentOnDemandTranslateEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.on_demand_translate event")}async sendTopicAiTranslateEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send topic.ai_translate event")}convertMapToAnalyticsDocument(e){let t;switch(e.editorialType){case"BOOK":t="STRUCTURED_DOCUMENT";break;case"SHARED_BOOK":t="SHARED_PERSONAL_BOOK";break;case"ARTICLE":t="RESOURCE";break;case"HTML_PACKAGE":t="HTML_PACKAGE";break;default:throw new TypeError("Unknown editorial type for map : "+e.editorialType)}return{id:e.id,title:e.title,type:t,metadata:e.metadata}}sortEventArrays(e){let t=Object.entries(e).map(([n,i])=>Array.isArray(i)?[n,i.map(s=>typeof s=="object"&&s!=null&&!Array.isArray(s)?this.sortEventArrays(s):s).sort((s,a)=>typeof s=="object"&&s!==null&&"key"in s?s.key.localeCompare(a.key):typeof s=="string"&&typeof a=="string"?s.localeCompare(a):String(s).localeCompare(String(a)))]:typeof i=="object"&&i!==null?[n,this.sortEventArrays(i)]:[n,i]);return Object.fromEntries(t)}sendEvents(e,t){let n="anything not undefined";return this.cache.get("analytics-event-"+this.hash(e),async()=>(await this.awaitApi).sendEvents(e).then(()=>n).catch(i=>(console.info(t),console.debug(i),n)),1e3)}};var un=class{urlToSearchRequest(e){return bt.get().parse(e)}searchRequestToUrl(e){return bt.get().serialize(e)}};window.FluidTopicsUrlService=new un;var ue=v(T());var we=class r extends CustomEvent{constructor(e){super(r.eventName,{detail:{currentItem:e}})}};we.eventName="change";var dn=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let t=sessionStorage.getItem(this.itemName(e));return t?JSON.parse(t):void 0}set(e,t){sessionStorage.setItem(this.itemName(e),JSON.stringify(t))}},$s=new dn;var tr=class r extends ue.WithEventBus{static build(){return new r(window.history,$s,()=>window.location,!1)}constructor(e,t,n,i){var s,a;super(),this.history=e,this.historyStorage=t,this.windowLocation=n,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(a=(s=e.state)===null||s===void 0?void 0:s.index)!==null&&a!==void 0?a:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(i)}setCurrentState(e,t=!1){let n=t&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,n&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,ue.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new we(this.currentItem())),0)}installProxies(){let e=t=>(n,i,[s,a,o])=>{let c=t(),l={...c===this.currentIndex?this.currentState:void 0,...s,index:c,href:typeof o=="string"?o:(o??this.windowLocation()).href};n.apply(i,[l,a,o]),this.setCurrentState(l,!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 t=this.history.length-1;t>=0;t--)e?this.states[t]=this.historyStorage.get(t):setTimeout(()=>this.states[t]=this.historyStorage.get(t),this.history.length-t)}updateCurrentState(e){var t;let n={...this.buildCurrentState(),...e,index:this.currentIndex,title:(t=e?.title)!==null&&t!==void 0?t:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(e){this.addEventListener(we.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(we.eventName,e)}currentItem(){return(0,ue.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,ue.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let t=this.states.filter(n=>!!n).filter(n=>n.index<this.currentIndex).reverse();return(0,ue.deepCopy)(t.find(n=>e(n)))}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return(0,ue.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 t;let n=(t=this.states[e])===null||t===void 0?void 0:t.majorStateId;if(!n)return e;let i=e,s=e+1;for(;this.states.length>s&&!this.isDifferentMajorState(s,n);)this.hasState(s)&&(i=s),s++;return i}buildCurrentState(){var e,t;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(t=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&t!==void 0?t:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,t){var n;if(!this.hasState(e))return!1;let i=t??this.currentState.majorStateId,s=(n=this.states[e])===null||n===void 0?void 0:n.majorStateId;return s==null||s!=i}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=tr.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:r=>window.FluidTopicsInternalHistoryService.backwardItemMatching(r),addHistoryChangeListener:r=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(r),removeHistoryChangeListener:r=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(r)});var js=v(F());var Bs=js.css`
|
|
49
|
+
`;var Ks=v(F()),z=v(K()),Re=v(T());var Ie=v(T());function Hs(r,e){let{authenticationRequired:t,session:n}=y.getState();return t&&!n?.sessionAuthenticated?Promise.resolve(e):r()}var rr=class extends We{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}};var hn=class r extends Ie.FtStateManager{static build(e){return new r(y,e)}constructor(e,t){super(),this.store=e,this.cache=new Ie.CacheRegistry,this.withManualResources=!0,this.localesConfiguration=null,this.userLocaleService=new rr,this.cleanSessionDebouncer=new Ie.Debouncer,this.reloadDebouncer=new Ie.Debouncer(500),this.apiProvider=t??(()=>Ce.get())}setWithManualResources(e){this.withManualResources=e,this.updateIfNeeded()}async initService(){this.store.addEventListener(le.eventName,this.reloadConfiguration)}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.store.getState().session==null&&this.updateSession(),this.store.getState().metadataConfiguration==null&&this.updateMetadataConfiguration()),this.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 t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.setSession(void 0)},t.idleTimeoutInMillis),t});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 t=await this.cache.get("availableContentLocales",()=>Hs(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((e=t.contentLocales)!==null&&e!==void 0?e:[])}reloadConfiguration(){var e;(e=this.cache)===null||e===void 0||e.clear("availableContentLocales"),typeof this.updateAvailableContentLocales=="function"&&this.updateAvailableContentLocales()}setBaseUrl(e){this.store.actions.baseUrl(e),window.fluidTopicsBaseUrl=e}setApiIntegrationIdentifier(e){this.store.actions.apiIntegrationIdentifier(e)}setApiIntegrationAppVersion(e){this.store.actions.apiIntegrationAppVersion(e)}setUiLocale(e){this.store.actions.uiLocale(e)}setLocalesConfiguration(e){var t,n,i,s,a;this.localesConfiguration=e,this.store.actions.defaultLocales(this.localesConfiguration.defaultLocales),this.store.actions.availableUiLocales((t=this.localesConfiguration.availableUiLocales)!==null&&t!==void 0?t:[]),this.store.actions.searchInAllLanguagesAllowed((n=this.localesConfiguration.allLanguagesAllowed)!==null&&n!==void 0?n:!1),this.store.actions.searchLanguageSetsUiLanguage((i=this.localesConfiguration.searchLanguageSetsUiLanguage)!==null&&i!==void 0?i:!1),this.store.actions.uiLanguageSetsSearchLanguage((s=this.localesConfiguration.uiLanguageSetsSearchLanguage)!==null&&s!==void 0?s:!1),this.store.actions.uiLanguageSetsReaderLanguage((a=this.localesConfiguration.uiLanguageSetsReaderLanguage)!==null&&a!==void 0?a:!1),setTimeout(()=>this.updateIfNeeded())}setAvailableContentLocales(e){this.store.actions.availableContentLocales(e),setTimeout(()=>this.updateIfNeeded())}stopReloadDebouncer(){this.reloadDebouncer.cancel()}requestUiLocaleUpdate(e){this.userLocaleService.updateUiLocale({uiLocale:e}).then(t=>{t.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new yt(t)))}).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)}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)}},Vs=hn.build();var _e=class extends Event{constructor(e,t,n,i){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=t,this.callback=n,this.subscribe=i??!1}};var St=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=e=>{let t=this.pendingContextRequests.get(e.context);if(t===void 0)return;this.pendingContextRequests.delete(e.context);let{requests:n}=t;for(let{elementRef:i,callbackRef:s}of n){let a=i.deref(),o=s.deref();a===void 0||o===void 0||a.dispatchEvent(new _e(e.context,a,o,!0))}},this.onContextRequest=e=>{if(e.subscribe!==!0)return;let t=e.contextTarget??e.composedPath()[0],n=e.callback,i=this.pendingContextRequests.get(e.context);i===void 0&&this.pendingContextRequests.set(e.context,i={callbacks:new WeakMap,requests:[]});let s=i.callbacks.get(t);s===void 0&&i.callbacks.set(t,s=new WeakSet),s.has(n)||(s.add(n),i.requests.push({elementRef:new WeakRef(t),callbackRef:new WeakRef(n)}))}}attach(e){e.addEventListener("context-request",this.onContextRequest),e.addEventListener("context-provider",this.onContextProvider)}detach(e){e.removeEventListener("context-request",this.onContextRequest),e.removeEventListener("context-provider",this.onContextProvider)}};var U=function(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var o=r.length-1;o>=0;o--)(a=r[o])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s},O=class extends Re.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.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.authenticationRequired=!1,this.messageContexts=[],this.stateManager=Vs,this.contextRoot=new St}render(){return Ks.html`
|
|
50
50
|
<slot></slot>
|
|
51
|
-
`}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.contextRoot.detach(document.body)}update(e){var r;super.update(e),e.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),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("session")&&this.stateManager.setSession(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(n=>$a.addContext(n)),e.has("openExternalDocumentInNewTab")&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&this.stateManager.setNavigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&this.stateManager.setForcedOffline(this.forcedOffline),e.has("authenticationRequired")&&this.stateManager.setAuthenticationRequired(this.authenticationRequired),e.has("withManualResources")&&((r=this.stateManager)===null||r===void 0||r.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};N.elementDefinitions={};N.styles=Ya;z([(0,q.property)()],N.prototype,"baseUrl",void 0);z([(0,q.property)()],N.prototype,"apiIntegrationIdentifier",void 0);z([(0,q.property)()],N.prototype,"apiIntegrationAppVersion",void 0);z([(0,q.property)()],N.prototype,"uiLocale",void 0);z([(0,Pe.jsonProperty)(null)],N.prototype,"availableUiLocales",void 0);z([(0,Pe.jsonProperty)(null)],N.prototype,"metadataConfiguration",void 0);z([(0,q.property)({type:Boolean})],N.prototype,"editorMode",void 0);z([(0,q.property)({type:Boolean})],N.prototype,"noCustom",void 0);z([(0,q.property)({type:Boolean})],N.prototype,"openExternalDocumentInNewTab",void 0);z([(0,q.property)({converter:{fromAttribute(o){return o==="false"?!1:o==="true"||(o??!1)}}})],N.prototype,"noCustomComponent",void 0);z([(0,q.property)({type:Boolean})],N.prototype,"withManualResources",void 0);z([(0,q.property)({type:Boolean})],N.prototype,"navigatorOnline",void 0);z([(0,q.property)({type:Boolean})],N.prototype,"forcedOffline",void 0);z([(0,q.property)({type:Boolean})],N.prototype,"authenticationRequired",void 0);z([(0,Pe.jsonProperty)([])],N.prototype,"messageContexts",void 0);z([(0,Pe.jsonProperty)(void 0)],N.prototype,"session",void 0);var ti=x(w());var ei={"ft-app-context":N};(0,ti.customElements)(ei);var pr=class extends H{get mapId(){return this._mapId}set mapId(e){e!==this._mapId&&this.clear(),this._mapId=e}constructor(e,r,n){super(!1,r),this.converter=e,this._mapId=n,this.initCache()}async withMapId(e){return this._mapId?e(this._mapId):void 0}initCache(){this.cache.register("configuration",()=>this.api.getReaderConfiguration()),this.cache.register("map",()=>this.withMapId(e=>this.fetchMap(e))),this.cache.register("enrichedToc",()=>this.withMapId(e=>this.fetchPages(e).then(r=>this.converter.convertPaginatedToc(e,r)))),this.cache.register("ratingSummary",()=>{var e,r;return de((r=(e=S.getState().session)===null||e===void 0?void 0:e.profile.roles)!==null&&r!==void 0?r:[],"RATING_USER")?this.withMapId(a=>this.fetchMapRating(a)):Promise.resolve()})}clear(){this.cache.clearMatching(e=>e!=="configuration")}makeCacheKey(e,r){return e+(r?"-destinationLanguage-"+r?.destinationLanguage:"")}getMap(e){return this.cache.get(this.makeCacheKey("map",e),()=>this.fetchMap(this.mapId,e))}getMapNow(e){return this.cache.getNow(this.makeCacheKey("map",e))}getConfiguration(){return this.cache.get("configuration")}clearConfiguration(){this.cache.clear("configuration")}getEnrichedToc(e){return this.cache.get(this.makeCacheKey("enrichedToc",e),()=>this.fetchPages(this.mapId,e).then(r=>this.converter.convertPaginatedToc(this.mapId,r)))}getEnrichedTocNow(e){return this.cache.getNow(this.makeCacheKey("enrichedToc",e))}async getPaginationConfiguration(){return(await this.getEnrichedToc()).paginationConfiguration}async getToc(e){return(await this.getEnrichedToc(e)).toc}async getPagesToc(e){return(await this.getEnrichedToc(e)).pagesToc}async getTranslationError(e){return(await this.getEnrichedToc(e)).translationError}async getTocNode(e,r){return(await this.getEnrichedToc(r)).nodeByTocId[e]}getTocNodeNow(e,r){var n;return(n=this.getEnrichedTocNow(r))===null||n===void 0?void 0:n.nodeByTocId[e]}getTocNodeNowByUrl(e,r){var n,a;let s=this.getMapNow(r);return s?.prettyUrl==e||`${s?.id}/root`===e?(n=this.getEnrichedTocNow(r))===null||n===void 0?void 0:n.toc[0]:(a=this.getEnrichedTocNow(r))===null||a===void 0?void 0:a.nodeByUrl[e]}async getPage(e,r){let n=await this.getEnrichedToc(r);return n.pages[e-1]||n.pages[0]}async getPageByTocId(e,r){let n=await this.getEnrichedToc(r);return n.pageByTocId[e]||n.pages[0]}getTopicInfo(e){return this.cache.get("topic-"+e.tocId,()=>this.fetchTopicMetadata(e))}getTopicContent(e){return this.cache.get("topic-content-"+e.tocId,()=>this.fetchTopicHTMLContent(e))}getTranslatedTopicContent(e,r){return this.cache.get(this.makeCacheKey("translated-topic-content-"+e.tocId,r),()=>this.fetchTranslatedTopicHTMLContent(e,r))}async getTopicMetadataValue(e,r){let n=this.getTocNodeNow(e);if(!n)return;let a=await this.getTopicInfo(n);return a?.metadata.find(s=>s.key==r)}getAttachments(){return this.cache.get("map-attachments",()=>this.fetchAttachments())}clearMapAttachments(){this.cache.clear("map-attachments")}getRelativesForDocument(e,r){return this.cache.get("document-relatives-"+e+"-"+r.join("-"),()=>this.fetchRelativesForDocument(e,r))}getRelativesForTopicInMap(e,r,n){return this.cache.get("topic-relatives-"+[e,r,...n].join("-"),()=>this.fetchRelativesForTopicInMap(e,r,n))}getAttachmentDownloadLink(e){return this.makeAbsolute(`${this.api.endpoints.khub.maps.mapId(this.mapId).attachments.attachmentId(e).content}?download=true&locationValue=reader`)}getLink(e,r,n){let a=this.getNavigationData(e,r,n),s=this.getReaderLinkPrefix()+(a.prettyUrl?a.prettyUrl:`${a.mapId}/${a.tocId}`),c=new URL(s,this.api.tenantBaseUrl);return a.page!=null&&c.searchParams.set("page",`${a.page}`),a.prettyUrlDuplicated&&c.searchParams.set("tocId",a.tocId),a.section!=null&&c.searchParams.set("section",a.section),c.href}getNavigationData(e,r,n,a){var s,c;e=e||"root";let d=this.getEnrichedTocNow(a),u=d?.pageByTocId[e],p=d?.nodeByTocId[e],f=p?.prettyUrl;return{mapId:this.mapId,tocId:e,topicTitle:(s=p?.title)!==null&&s!==void 0?s:"",untranslatedTopicTitle:p?.untranslatedTitle,page:r&&u&&u.number!==r?r:void 0,prettyUrl:f?.replace(/^r\//,""),prettyUrlDuplicated:(c=d?.duplicatedPrettyUrls.has(f??""))!==null&&c!==void 0?c:!1,section:n}}async getAccurateNavigationData(e,r,n,a){return await this.getEnrichedToc(a),this.getNavigationData(e,r,n,a)}getRatingSummary(){return this.cache.get("ratingSummary")}reloadRating(){return this.cache.clear("ratingSummary"),this.getRatingSummary()}getMapRating(){return this.getRatingSummary().then(e=>e?.publication)}getTopicRating(e){return this.getRatingSummary().then(r=>{var n;return r?{type:r.topics.type,rating:(n=r.topics)===null||n===void 0?void 0:n.ratings.find(a=>a.tocId===e)}:void 0})}rateMap(e,r){return this.makeRateMapRequest(e,r).then(()=>this.clearRatingIfNecessary())}unrateMap(){return this.makeUnrateMapRequest().then(()=>this.clearRatingIfNecessary())}sendMapFeedback(e,r){return this.makeMapFeedbackRequest(e,r)}rateTopic(e,r,n){return this.makeRateTopicRequest(e,r,n).then(()=>this.clearRatingIfNecessary())}unrateTopic(e){return this.makeUnrateTopicRequest(e).then(()=>this.clearRatingIfNecessary())}async clearRatingIfNecessary(){let e=S.getState().session;e?.sessionAuthenticated&&this.cache.clear("ratingSummary")}sendTopicFeedback(e,r,n){return this.makeTopicFeedbackRequest(e,r,n)}fontsStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.fonts)}themeStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.theme)}buildBreadcrumb(e,r){let n=this.getTocNodeNow(e,r),a=[{tocId:n.tocId,title:n.title,untranslatedTitle:n.untranslatedTitle}],s=this.getTocNodeNow(n.parentTocId,r);for(;s;)a.unshift({tocId:s.tocId,title:s.title,untranslatedTitle:s.untranslatedTitle}),s=this.getTocNodeNow(s.parentTocId,r);return a}isFeatureAccessible(e,{session:r}){var n;if(!this.isFeatureAvailable(e))return!1;switch(e){case le.FEEDBACK:return de(r??[],T.FEEDBACK_USER);case le.RATING:return de(r??[],T.RATING_USER);case le.PRINT:return de(r??[],T.PRINT_USER);case le.BOOKMARK:return!!r?.sessionAuthenticated;case le.COLLECTIONS:return de(r??[],T.COLLECTION_USER);case le.PERSONAL_BOOKS:return de(r??[],T.PERSONAL_BOOK_USER)&&!(!((n=this.getMapNow())===null||n===void 0)&&n.pbkConfidential);default:return!1}}makeAbsolute(e){return this.api.makeAbsolute(e)}};var fr=class o extends pr{static async build(e){return new o(new Bt,void 0,e)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(e,r){let n=await this.api.getMap(e,r);return this.fingerprint=n.fingerprint,n}fetchMapRating(e){return this.api.getMapRating(e)}async fetchPages(e,r){return await this.getMap(r),this.api.getPages(e,this.fingerprint,r)}fetchTopicHTMLContent(e){return this.api.getTopicHTMLContent(this.mapId,e.contentId,"DESIGNED_READER",this.fingerprint)}fetchTranslatedTopicHTMLContent(e,r){return this.api.getTranslatedTopicHTMLContent(this.mapId,e.contentId,"DESIGNED_READER",this.fingerprint,r)}fetchTopicMetadata(e){return this.api.getTopic(this.mapId,e.contentId,this.fingerprint)}fetchAttachments(){return this.api.getMapAttachments(this.mapId).catch(()=>[])}fetchRelativesForDocument(e,r){let n={query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",metadataFilters:[{key:e,valueFilter:{negative:!1,values:r}}],sort:[],facets:[]};return this.api.search(n)}fetchRelativesForTopicInMap(e,r,n){let a={query:"",paging:{page:1,perPage:1},scope:"ALL_TOPICS",metadataFilters:[{key:r,valueFilter:{negative:!1,values:n}},{key:"ft:publicationId",valueFilter:{negative:!1,values:[e]}}],sort:[],facets:[]};return this.api.search(a)}makeMapFeedbackRequest(e,r){return this.api.sendMapFeedback(this.mapId,e,r)}makeRateMapRequest(e,r){return this.api.rateMap(this.mapId,e,r)}makeRateTopicRequest(e,r,n){return this.api.rateTopic(this.mapId,e,r,n)}makeTopicFeedbackRequest(e,r,n){return this.api.sendTopicFeedback(this.mapId,e,r,n)}makeUnrateMapRequest(){return this.api.unrateMap(this.mapId)}makeUnrateTopicRequest(e){return this.api.unrateTopic(this.mapId,e)}getReaderLinkPrefix(){return"r/"}isFeatureAvailable(e){return!0}};var gc="topicPivot";function ri(o,e){let r=new URL(o);return e?.values.forEach(n=>{r.searchParams.append(gc,n)}),r.href}var hr=class o{static build(e,r){return new o(dn(e.trim()||"context"),r??fr.build)}loaded(){return(0,V.waitUntil)(()=>this._loaded)}constructor(e,r,n,a){this.store=e,this.clusteringHelperProvider=n,this.metadataForSwitchToRelatives=new Set,this._loaded=!1,this.loadDebouncer=new V.Debouncer(10),this.analyticsEventsService=a??new lr,this.initService(r)}async initService(e){return this.service=await e(),this.service.mapId=this.store.getState().mapId,this.reload()}async setMapId(e){e!==this.store.getState().mapId&&(this.store.actions.mapId(e),this.service&&(this.service.mapId=e),await this.reload())}setRenderedTopics(e){this.store.actions.renderedTopics(e)}setVisibleTopics(e){this.store.actions.visibleTopics(e)}async awaitService(){return(0,V.waitFor)(()=>this.service)}async navigateToTopic(e,r,n){await this.loaded();let a=await this.awaitService(),s=await(n!=null?a.getPage(n,this.getTranslationSettings()):a.getPageByTocId(e??"root",this.getTranslationSettings()));this.store.actions.currentPage(s);let c=this.resolveValidNonRootTocId(e,s);this.store.actions.scrollTarget({tocId:c,section:r}),this.store.getState().visibleTopics[0]!==c&&this.store.actions.visibleTopics([])}resolveValidNonRootTocId(e,r){var n,a,s;let c=(n=e==="root"?void 0:e)!==null&&n!==void 0?n:r.rootTocId;return r.topics.includes(c)?c:(e!="root"&&this.store.dispatchEvent(new CustomEvent(me.requestedTopicNotFound,{detail:{tocId:c}})),(s=(a=r.topics[0])!==null&&a!==void 0?a:r.hiddenTopics[0])!==null&&s!==void 0?s:"root")}async navigateToPage(e){await this.loaded();let n=await(await this.awaitService()).getPage(e,this.getTranslationSettings());this.store.actions.currentPage(n)}scrollDone(){this.store.actions.scrollTarget({})}async load(){var e;!((e=this.service)===null||e===void 0)&&e.mapId&&this.store.getState().map==null&&await this.loadDebouncer.run(()=>this.fetchData(this.getTranslationSettings()))}clear(){var e;this._loaded=!1,this.store.actions.configuration(void 0),this.store.actions.map(void 0),this.store.actions.toc(void 0),this.store.actions.pagesToc(void 0),this.store.actions.currentPage(void 0),this.store.actions.searchInDocumentQuery(""),this.store.actions.relatives(void 0),this.store.actions.renderedTopics([]),this.store.actions.visibleTopics([]),this.store.actions.translation({sourceLanguage:void 0,destinationLanguage:void 0,profileId:void 0,isLoading:!1,isError:!1}),this.store.actions.mapRating(void 0),(e=this.service)===null||e===void 0||e.clear(),this.clusteringHelper=void 0}reload(){return this.clear(),this.load()}async fetchData(e){var r,n,a,s,c;try{e&&this.setTranslationLoading(!0);let d=u=>{throw e&&this.setTranslationError(!0),u};await Promise.all([this.loadConfiguration(),(r=this.service)===null||r===void 0?void 0:r.getMap(e).then(u=>this.store.actions.map(u)).catch(d),(n=this.service)===null||n===void 0?void 0:n.getToc(e).then(u=>this.store.actions.toc(u)).catch(d),(a=this.service)===null||a===void 0?void 0:a.getPagesToc(e).then(u=>this.store.actions.pagesToc(u)).catch(d),(s=this.service)===null||s===void 0?void 0:s.getPaginationConfiguration().then(u=>this.store.actions.paginationConfiguration(u)).catch(d),(c=this.service)===null||c===void 0?void 0:c.getTranslationError(e).then(u=>this.setTranslationError(u))]),this.metadataForSwitchToRelatives.size>0&&this.fetchRelatives(),this._loaded=!0,e&&this.setTranslationLoading(!1)}catch(d){this.errorHandler&&!(d instanceof V.CanceledPromiseError)&&this.errorHandler(d)}}loadConfiguration(){var e;return(e=this.service)===null||e===void 0?void 0:e.getConfiguration().then(r=>this.store.actions.configuration(r))}reloadConfiguration(){var e;return(e=this.service)===null||e===void 0||e.clearConfiguration(),this.loadConfiguration()}async fetchRelatives(){var e,r;let n=(e=this.store.getState().map)===null||e===void 0?void 0:e.metadata.filter(a=>{var s;return a.key==((s=this.store.getState().configuration)===null||s===void 0?void 0:s.relativePivotMetadata)}).flatMap(a=>a.values);if(n!==void 0&&n.length>0){let a=await((r=this.service)===null||r===void 0?void 0:r.getRelativesForDocument(this.store.getState().configuration.relativePivotMetadata,n)),s=a?.results.flatMap(c=>c.entries);this.store.actions.relatives(s)}this.updateClusteringHelper()}updateClusteringHelper(){this.clusteringHelper=this.createClusteringHelper(),this.clusteringHelper&&this.store.dispatchEvent(new Event(me.clusteringHelperCreated))}createClusteringHelper(){var e,r;if(this.clusteringHelperProvider)return this.clusteringHelperProvider();let n=this.store.getState().relatives;if(n){let a=n.find(c=>{var d;return((d=c.map)===null||d===void 0?void 0:d.mapId)==this.store.getState().mapId}),s=(r=(e=S.getState().metadataConfiguration)===null||e===void 0?void 0:e.descriptors)!==null&&r!==void 0?r:[];return new V.ClusteringHelper(n,a,this.metadataForSwitchToRelatives,s)}}async navigateToRelativeTopicIfFound(e){var r,n,a;await this.loaded();let s=await(0,V.waitFor)(()=>{var p;return(p=this.store.getState().configuration)===null||p===void 0?void 0:p.relativeTopicPivotMetadata}),c=this.store.getState().mapId,u=await(await this.awaitService()).getRelativesForTopicInMap(c,s,[e]);if(!((a=(n=(r=u?.results)===null||r===void 0?void 0:r[0])===null||n===void 0?void 0:n.entries)===null||a===void 0)&&a[0]){let p=u.results[0].entries[0].topic.tocId;return await this.navigateToTopic(p),!0}else return await this.navigateToTopic("root"),!1}setSearchInDocumentQuery(e){this.store.actions.searchInDocumentQuery(e)}async setTranslationDestinationLanguage(e){this.store.actions.setTranslationDestinationLanguage(e),e&&this.sendDocumentOnDemandTranslateEvent(e),await this.loadDebouncer.run(()=>this.fetchData(this.getTranslationSettings()))}async setTranslationSourceLanguage(e){this.store.actions.setTranslationSourceLanguage(e),await this.loadDebouncer.run(()=>this.fetchData(this.getTranslationSettings()))}async setTranslationProfileId(e){this.store.actions.setTranslationProfileId(e)}async setTranslationLoading(e){this.store.actions.setTranslationLoading(e)}async setTranslationError(e){this.store.actions.setTranslationError(e)}getTranslationSettings(){var e;let r=this.store.getState();return r.translation.profileId&&r.translation.destinationLanguage?{profileId:r.translation.profileId,destinationLanguage:r.translation.destinationLanguage.code,sourceLanguage:(e=r.map)===null||e===void 0?void 0:e.lang}:void 0}setLinkPreviewDialogId(e){this.store.actions.linkPreviewDialogId(e)}async fetchMapRating(){var e;this.store.actions.mapRating(await((e=this.service)===null||e===void 0?void 0:e.getMapRating()))}async fetchTopicRating(e){var r;let n=await((r=this.service)===null||r===void 0?void 0:r.getTopicRating(e));n&&this.store.actions.setTopicsRating({[e]:n})}registerMetadataForSwitchToRelatives(e){this.metadataForSwitchToRelatives.add(e),this.store.getState().relatives==null?this.fetchRelatives():this.updateClusteringHelper()}unregisterMetadataForSwitchToRelatives(e){this.metadataForSwitchToRelatives.delete(e),this.updateClusteringHelper()}getAccurateNavigationData(e,r,n){return this.service.getAccurateNavigationData(e,r?.number,n?.section,this.getTranslationSettings())}buildBreadcrumb(e){var r;return(r=this.service)===null||r===void 0?void 0:r.buildBreadcrumb(e,this.getTranslationSettings())}fetchTopicContent(e){var r,n;let a=this.getTranslationSettings();return a?(this.sendTopicAiTranslateEvent(a.destinationLanguage,e),(r=this.service)===null||r===void 0?void 0:r.getTranslatedTopicContent(e,a).then(s=>(s.isTranslationError&&this.setTranslationError(!0),s.content))):(n=this.service)===null||n===void 0?void 0:n.getTopicContent(e)}getTocNode(e){return this.service.getTocNode(e,this.getTranslationSettings())}getPage(e){return this.service.getPage(e,this.getTranslationSettings())}onMapAttachmentsUpdate(){var e;(e=this.service)===null||e===void 0||e.clearMapAttachments(),this.store.dispatchEvent(new Event(me.mapAttachmentsUpdate))}async getRelativeDocumentUrlForLocale(e){var r,n,a;this.store.getState().relatives==null&&await this.fetchRelatives();let s=V.ClusteringHelper.findResultWithMetadataValue((r=this.store.getState().relatives)!==null&&r!==void 0?r:[],"ft:locale",e),c=(0,V.accessResultUrl)(s);if(c){let d=this.store.getState().visibleTopics[0],u=(n=this.store.getState().configuration)===null||n===void 0?void 0:n.relativeTopicPivotMetadata;if(u&&d){let p=await((a=this.service)===null||a===void 0?void 0:a.getTopicMetadataValue(d,u));c=ri(c,p)}}return c}sendDocumentOnDemandTranslateEvent(e){var r;let{editorMode:n,apiIntegrationIdentifier:a,apiIntegrationAppVersion:s}=S.getState(),c=this.store.getState(),d=c.map,u=c.translation.profileId;if(!(n||!d||!a||!s||!u))try{let f={...this.analyticsEventsService.convertMapToAnalyticsDocument(d),title:(r=d.untranslatedTitle)!==null&&r!==void 0?r:d.title};this.analyticsEventsService.sendDocumentOnDemandTranslateEvent({name:"DOCUMENT__ON_DEMAND_TRANSLATE",offline:!1,appName:a,appVersion:s,sourceLanguage:this.parseLanguageToAnalyticsFormat(d.lang),destinationLanguage:this.parseLanguageToAnalyticsFormat(e.code),profileId:u,document:f,translationOrigin:Ht.AI})}catch(p){console.warn("Failed to send on-demand document translate event:",p)}}sendTopicAiTranslateEvent(e,r){var n;let{editorMode:a,apiIntegrationIdentifier:s,apiIntegrationAppVersion:c}=S.getState(),d=this.store.getState(),u=d.map,p=d.translation.profileId;if(!(a||!u||!s||!c||!p))try{let f=this.buildBreadcrumb(r.tocId);if(!f){console.warn("Failed to build breadcrumb for topic ai translate event");return}let g={...this.analyticsEventsService.convertMapToAnalyticsDocument(u),title:(n=u.untranslatedTitle)!==null&&n!==void 0?n:u.title};this.analyticsEventsService.sendTopicAiTranslateEvent({name:"TOPIC__AI_TRANSLATE",offline:!1,appName:s,appVersion:c,sourceLanguage:this.parseLanguageToAnalyticsFormat(u.lang),destinationLanguage:this.parseLanguageToAnalyticsFormat(e),breadcrumb:f.map(m=>{var y;return{tocId:m.tocId,title:(y=m.untranslatedTitle)!==null&&y!==void 0?y:m.title}}),document:g,profileId:p})}catch(f){console.warn("Failed to send topic ai translate event:",f)}}parseLanguageToAnalyticsFormat(e){if(!e)return;let r=e.split("-");return r.length===2?{languageCode:r[0],countryCode:r[1]}:{languageCode:r[0],countryCode:""}}};var gr=class extends CustomEvent{constructor(e,r){super("ft-reader-map-loaded",{detail:{map:e,toc:r}})}},yr=class extends CustomEvent{constructor(e,r){super("ft-reader-visible-topics-change",{detail:{visibleTopics:r}})}},mr=class extends CustomEvent{constructor(e){super("ft-reader-navigation-done",{detail:e})}},br=class extends CustomEvent{constructor(e){super("ft-reader-load-error",{detail:e})}},vr=class extends Event{constructor(){super("ft-reader-map-not-found")}},xr=class extends Event{constructor(){super("ft-reader-map-unauthorized")}},Sr=class extends Event{constructor(){super("ft-reader-map-forbidden")}},Cr=class extends Event{constructor(){super("ft-reader-topic-relative-not-found",{bubbles:!0,composed:!0})}};var K=function(o,e,r,n){var a=arguments.length,s=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,r,n);else for(var d=o.length-1;d>=0;d--)(c=o[d])&&(s=(a<3?c(s):a>3?c(e,r,s):c(e,r))||s);return a>3&&s&&Object.defineProperty(e,r,s),s},Oo=class{constructor(e){this.stateManager=e}searchInDocument(e){this.stateManager.setSearchInDocumentQuery(e??"")}},P=class extends D.FtLitElementRedux{constructor(){super(),this.visibleTopics=[],this.updateConfiguration=()=>{this.stateManager.reloadConfiguration()},this.scrollToTargetDebouncer=new D.Debouncer(5),this.navigationDebouncer=new D.Debouncer(10),this.mapLoadedEventDebouncer=new D.Debouncer(50),this.addStore(S)}render(){return Lt.html`
|
|
51
|
+
`}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.contextRoot.detach(document.body)}update(e){var t;super.update(e),e.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),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("session")&&this.stateManager.setSession(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(n=>Ds.addContext(n)),e.has("openExternalDocumentInNewTab")&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&this.stateManager.setNavigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&this.stateManager.setForcedOffline(this.forcedOffline),e.has("authenticationRequired")&&this.stateManager.setAuthenticationRequired(this.authenticationRequired),e.has("withManualResources")&&((t=this.stateManager)===null||t===void 0||t.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};O.elementDefinitions={};O.styles=Bs;U([(0,z.property)()],O.prototype,"baseUrl",void 0);U([(0,z.property)()],O.prototype,"apiIntegrationIdentifier",void 0);U([(0,z.property)()],O.prototype,"apiIntegrationAppVersion",void 0);U([(0,z.property)()],O.prototype,"uiLocale",void 0);U([(0,Re.jsonProperty)(null)],O.prototype,"availableUiLocales",void 0);U([(0,Re.jsonProperty)(null)],O.prototype,"metadataConfiguration",void 0);U([(0,z.property)({type:Boolean})],O.prototype,"editorMode",void 0);U([(0,z.property)({type:Boolean})],O.prototype,"noCustom",void 0);U([(0,z.property)({type:Boolean})],O.prototype,"openExternalDocumentInNewTab",void 0);U([(0,z.property)({converter:{fromAttribute(r){return r==="false"?!1:r==="true"||(r??!1)}}})],O.prototype,"noCustomComponent",void 0);U([(0,z.property)({type:Boolean})],O.prototype,"withManualResources",void 0);U([(0,z.property)({type:Boolean})],O.prototype,"navigatorOnline",void 0);U([(0,z.property)({type:Boolean})],O.prototype,"forcedOffline",void 0);U([(0,z.property)({type:Boolean})],O.prototype,"authenticationRequired",void 0);U([(0,Re.jsonProperty)([])],O.prototype,"messageContexts",void 0);U([(0,Re.jsonProperty)(void 0)],O.prototype,"session",void 0);var zs=v(T());var qs={"ft-app-context":O};(0,zs.customElements)(qs);var nr=class extends k{get mapId(){return this._mapId}set mapId(e){e!==this._mapId&&this.clear(),this._mapId=e}constructor(e,t,n){super(!1,t),this.converter=e,this._mapId=n,this.initCache()}async withMapId(e){return this._mapId?e(this._mapId):void 0}initCache(){this.cache.register("configuration",()=>this.api.getReaderConfiguration()),this.cache.register("map",()=>this.withMapId(e=>this.fetchMap(e))),this.cache.register("enrichedToc",()=>this.withMapId(e=>this.fetchPages(e).then(t=>this.converter.convertPaginatedToc(e,t)))),this.cache.register("ratingSummary",()=>{var e,t;return oe((t=(e=y.getState().session)===null||e===void 0?void 0:e.profile.roles)!==null&&t!==void 0?t:[],"RATING_USER")?this.withMapId(i=>this.fetchMapRating(i)):Promise.resolve()})}clear(){this.cache.clearMatching(e=>e!=="configuration")}makeCacheKey(e,t){return e+(t?"-destinationLanguage-"+t?.destinationLanguage:"")}getMap(e){return this.cache.get(this.makeCacheKey("map",e),()=>this.fetchMap(this.mapId,e))}getMapNow(e){return this.cache.getNow(this.makeCacheKey("map",e))}getConfiguration(){return this.cache.get("configuration")}clearConfiguration(){this.cache.clear("configuration")}getEnrichedToc(e){return this.cache.get(this.makeCacheKey("enrichedToc",e),()=>this.fetchPages(this.mapId,e).then(t=>this.converter.convertPaginatedToc(this.mapId,t)))}getEnrichedTocNow(e){return this.cache.getNow(this.makeCacheKey("enrichedToc",e))}async getPaginationConfiguration(){return(await this.getEnrichedToc()).paginationConfiguration}async getToc(e){return(await this.getEnrichedToc(e)).toc}async getPagesToc(e){return(await this.getEnrichedToc(e)).pagesToc}async getTranslationError(e){return(await this.getEnrichedToc(e)).translationError}async getTocNode(e,t){return(await this.getEnrichedToc(t)).nodeByTocId[e]}getTocNodeNow(e,t){var n;return(n=this.getEnrichedTocNow(t))===null||n===void 0?void 0:n.nodeByTocId[e]}getTocNodeNowByUrl(e,t){var n,i;let s=this.getMapNow(t);return s?.prettyUrl==e||`${s?.id}/root`===e?(n=this.getEnrichedTocNow(t))===null||n===void 0?void 0:n.toc[0]:(i=this.getEnrichedTocNow(t))===null||i===void 0?void 0:i.nodeByUrl[e]}async getPage(e,t){let n=await this.getEnrichedToc(t);return n.pages[e-1]||n.pages[0]}async getPageByTocId(e,t){let n=await this.getEnrichedToc(t);return n.pageByTocId[e]||n.pages[0]}getTopicInfo(e){return this.cache.get("topic-"+e.tocId,()=>this.fetchTopicMetadata(e))}getTopicContent(e){return this.cache.get("topic-content-"+e.tocId,()=>this.fetchTopicHTMLContent(e))}getTranslatedTopicContent(e,t){return this.cache.get(this.makeCacheKey("translated-topic-content-"+e.tocId,t),()=>this.fetchTranslatedTopicHTMLContent(e,t))}async getTopicMetadataValue(e,t){let n=this.getTocNodeNow(e);if(!n)return;let i=await this.getTopicInfo(n);return i?.metadata.find(s=>s.key==t)}getAttachments(){return this.cache.get("map-attachments",()=>this.fetchAttachments())}clearMapAttachments(){this.cache.clear("map-attachments")}getRelativesForDocument(e,t){return this.cache.get("document-relatives-"+e+"-"+t.join("-"),()=>this.fetchRelativesForDocument(e,t))}getRelativesForTopicInMap(e,t,n){return this.cache.get("topic-relatives-"+[e,t,...n].join("-"),()=>this.fetchRelativesForTopicInMap(e,t,n))}getAttachmentDownloadLink(e){return this.makeAbsolute(`${this.api.endpoints.khub.maps.mapId(this.mapId).attachments.attachmentId(e).content}?download=true&locationValue=reader`)}getLink(e,t,n){let i=this.getNavigationData(e,t,n),s=this.getReaderLinkPrefix()+(i.prettyUrl?i.prettyUrl:`${i.mapId}/${i.tocId}`),a=new URL(s,this.api.tenantBaseUrl);return i.page!=null&&a.searchParams.set("page",`${i.page}`),i.prettyUrlDuplicated&&a.searchParams.set("tocId",i.tocId),i.section!=null&&a.searchParams.set("section",i.section),a.href}getNavigationData(e,t,n,i){var s,a;e=e||"root";let o=this.getEnrichedTocNow(i),c=o?.pageByTocId[e],l=o?.nodeByTocId[e],u=l?.prettyUrl;return{mapId:this.mapId,tocId:e,topicTitle:(s=l?.title)!==null&&s!==void 0?s:"",untranslatedTopicTitle:l?.untranslatedTitle,page:t&&c&&c.number!==t?t:void 0,prettyUrl:u?.replace(/^r\//,""),prettyUrlDuplicated:(a=o?.duplicatedPrettyUrls.has(u??""))!==null&&a!==void 0?a:!1,section:n}}async getAccurateNavigationData(e,t,n,i){return await this.getEnrichedToc(i),this.getNavigationData(e,t,n,i)}getRatingSummary(){return this.cache.get("ratingSummary")}reloadRating(){return this.cache.clear("ratingSummary"),this.getRatingSummary()}getMapRating(){return this.getRatingSummary().then(e=>e?.publication)}getTopicRating(e){return this.getRatingSummary().then(t=>{var n;return t?{type:t.topics.type,rating:(n=t.topics)===null||n===void 0?void 0:n.ratings.find(i=>i.tocId===e)}:void 0})}rateMap(e,t){return this.makeRateMapRequest(e,t).then(()=>this.clearRatingIfNecessary())}unrateMap(){return this.makeUnrateMapRequest().then(()=>this.clearRatingIfNecessary())}sendMapFeedback(e,t){return this.makeMapFeedbackRequest(e,t)}rateTopic(e,t,n){return this.makeRateTopicRequest(e,t,n).then(()=>this.clearRatingIfNecessary())}unrateTopic(e){return this.makeUnrateTopicRequest(e).then(()=>this.clearRatingIfNecessary())}async clearRatingIfNecessary(){let e=y.getState().session;e?.sessionAuthenticated&&this.cache.clear("ratingSummary")}sendTopicFeedback(e,t,n){return this.makeTopicFeedbackRequest(e,t,n)}fontsStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.fonts)}themeStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.theme)}buildBreadcrumb(e,t){let n=this.getTocNodeNow(e,t),i=[{tocId:n.tocId,title:n.title,untranslatedTitle:n.untranslatedTitle}],s=this.getTocNodeNow(n.parentTocId,t);for(;s;)i.unshift({tocId:s.tocId,title:s.title,untranslatedTitle:s.untranslatedTitle}),s=this.getTocNodeNow(s.parentTocId,t);return i}isFeatureAccessible(e,{session:t}){var n;if(!this.isFeatureAvailable(e))return!1;switch(e){case ae.FEEDBACK:return oe(t??[],C.FEEDBACK_USER);case ae.RATING:return oe(t??[],C.RATING_USER);case ae.PRINT:return oe(t??[],C.PRINT_USER);case ae.BOOKMARK:return!!t?.sessionAuthenticated;case ae.COLLECTIONS:return oe(t??[],C.COLLECTION_USER);case ae.PERSONAL_BOOKS:return oe(t??[],C.PERSONAL_BOOK_USER)&&!(!((n=this.getMapNow())===null||n===void 0)&&n.pbkConfidential);default:return!1}}makeAbsolute(e){return this.api.makeAbsolute(e)}};var ir=class r extends nr{static async build(e){return new r(new Ot,void 0,e)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(e,t){let n=await this.api.getMap(e,t);return this.fingerprint=n.fingerprint,n}fetchMapRating(e){return this.api.getMapRating(e)}async fetchPages(e,t){return await this.getMap(t),this.api.getPages(e,this.fingerprint,t)}fetchTopicHTMLContent(e){return this.api.getTopicHTMLContent(this.mapId,e.contentId,"DESIGNED_READER",this.fingerprint)}fetchTranslatedTopicHTMLContent(e,t){return this.api.getTranslatedTopicHTMLContent(this.mapId,e.contentId,"DESIGNED_READER",this.fingerprint,t)}fetchTopicMetadata(e){return this.api.getTopic(this.mapId,e.contentId,this.fingerprint)}fetchAttachments(){return this.api.getMapAttachments(this.mapId).catch(()=>[])}fetchRelativesForDocument(e,t){let n={query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",metadataFilters:[{key:e,valueFilter:{negative:!1,values:t}}],sort:[],facets:[]};return this.api.search(n)}fetchRelativesForTopicInMap(e,t,n){let i={query:"",paging:{page:1,perPage:1},scope:"ALL_TOPICS",metadataFilters:[{key:t,valueFilter:{negative:!1,values:n}},{key:"ft:publicationId",valueFilter:{negative:!1,values:[e]}}],sort:[],facets:[]};return this.api.search(i)}makeMapFeedbackRequest(e,t){return this.api.sendMapFeedback(this.mapId,e,t)}makeRateMapRequest(e,t){return this.api.rateMap(this.mapId,e,t)}makeRateTopicRequest(e,t,n){return this.api.rateTopic(this.mapId,e,t,n)}makeTopicFeedbackRequest(e,t,n){return this.api.sendTopicFeedback(this.mapId,e,t,n)}makeUnrateMapRequest(){return this.api.unrateMap(this.mapId)}makeUnrateTopicRequest(e){return this.api.unrateTopic(this.mapId,e)}getReaderLinkPrefix(){return"r/"}isFeatureAvailable(e){return!0}};var jo="topicPivot";function Ws(r,e){let t=new URL(r);return e?.values.forEach(n=>{t.searchParams.append(jo,n)}),t.href}var sr=class r{static build(e,t){return new r(Zn(e.trim()||"context"),t??ir.build)}loaded(){return(0,H.waitUntil)(()=>this._loaded)}constructor(e,t,n,i){this.store=e,this.clusteringHelperProvider=n,this.metadataForSwitchToRelatives=new Set,this._loaded=!1,this.loadDebouncer=new H.Debouncer(10),this.analyticsEventsService=i??new er,this.initService(t)}async initService(e){return this.service=await e(),this.service.mapId=this.store.getState().mapId,this.reload()}async setMapId(e){e!==this.store.getState().mapId&&(this.store.actions.mapId(e),this.service&&(this.service.mapId=e),await this.reload())}setRenderedTopics(e){this.store.actions.renderedTopics(e)}setVisibleTopics(e){this.store.actions.visibleTopics(e)}async awaitService(){return(0,H.waitFor)(()=>this.service)}async navigateToTopic(e,t,n){await this.loaded();let i=await this.awaitService(),s=await(n!=null?i.getPage(n,this.getTranslationSettings()):i.getPageByTocId(e??"root",this.getTranslationSettings()));this.store.actions.currentPage(s);let a=this.resolveValidNonRootTocId(e,s);this.store.actions.scrollTarget({tocId:a,section:t}),this.store.getState().visibleTopics[0]!==a&&this.store.actions.visibleTopics([])}resolveValidNonRootTocId(e,t){var n,i,s;let a=(n=e==="root"?void 0:e)!==null&&n!==void 0?n:t.rootTocId;return t.topics.includes(a)?a:(e!="root"&&this.store.dispatchEvent(new CustomEvent(pe.requestedTopicNotFound,{detail:{tocId:a}})),(s=(i=t.topics[0])!==null&&i!==void 0?i:t.hiddenTopics[0])!==null&&s!==void 0?s:"root")}async navigateToPage(e){await this.loaded();let n=await(await this.awaitService()).getPage(e,this.getTranslationSettings());this.store.actions.currentPage(n)}scrollDone(){this.store.actions.scrollTarget({})}async load(){var e;!((e=this.service)===null||e===void 0)&&e.mapId&&this.store.getState().map==null&&await this.loadDebouncer.run(()=>this.fetchData(this.getTranslationSettings()))}clear(){var e;this._loaded=!1,this.store.actions.configuration(void 0),this.store.actions.map(void 0),this.store.actions.toc(void 0),this.store.actions.pagesToc(void 0),this.store.actions.currentPage(void 0),this.store.actions.searchInDocumentQuery(""),this.store.actions.relatives(void 0),this.store.actions.renderedTopics([]),this.store.actions.visibleTopics([]),this.store.actions.translation({sourceLanguage:void 0,destinationLanguage:void 0,profileId:void 0,isLoading:!1,isError:!1}),this.store.actions.mapRating(void 0),(e=this.service)===null||e===void 0||e.clear(),this.clusteringHelper=void 0}reload(){return this.clear(),this.load()}async fetchData(e){var t,n,i,s,a;try{e&&this.setTranslationLoading(!0);let o=c=>{throw e&&this.setTranslationError(!0),c};await Promise.all([this.loadConfiguration(),(t=this.service)===null||t===void 0?void 0:t.getMap(e).then(c=>this.store.actions.map(c)).catch(o),(n=this.service)===null||n===void 0?void 0:n.getToc(e).then(c=>this.store.actions.toc(c)).catch(o),(i=this.service)===null||i===void 0?void 0:i.getPagesToc(e).then(c=>this.store.actions.pagesToc(c)).catch(o),(s=this.service)===null||s===void 0?void 0:s.getPaginationConfiguration().then(c=>this.store.actions.paginationConfiguration(c)).catch(o),(a=this.service)===null||a===void 0?void 0:a.getTranslationError(e).then(c=>this.setTranslationError(c))]),this.metadataForSwitchToRelatives.size>0&&this.fetchRelatives(),this._loaded=!0,e&&this.setTranslationLoading(!1)}catch(o){this.errorHandler&&!(o instanceof H.CanceledPromiseError)&&this.errorHandler(o)}}loadConfiguration(){var e;return(e=this.service)===null||e===void 0?void 0:e.getConfiguration().then(t=>this.store.actions.configuration(t))}reloadConfiguration(){var e;return(e=this.service)===null||e===void 0||e.clearConfiguration(),this.loadConfiguration()}async fetchRelatives(){var e,t;let n=(e=this.store.getState().map)===null||e===void 0?void 0:e.metadata.filter(i=>{var s;return i.key==((s=this.store.getState().configuration)===null||s===void 0?void 0:s.relativePivotMetadata)}).flatMap(i=>i.values);if(n!==void 0&&n.length>0){let i=await((t=this.service)===null||t===void 0?void 0:t.getRelativesForDocument(this.store.getState().configuration.relativePivotMetadata,n)),s=i?.results.flatMap(a=>a.entries);this.store.actions.relatives(s)}this.updateClusteringHelper()}updateClusteringHelper(){this.clusteringHelper=this.createClusteringHelper(),this.clusteringHelper&&this.store.dispatchEvent(new Event(pe.clusteringHelperCreated))}createClusteringHelper(){var e,t;if(this.clusteringHelperProvider)return this.clusteringHelperProvider();let n=this.store.getState().relatives;if(n){let i=n.find(a=>{var o;return((o=a.map)===null||o===void 0?void 0:o.mapId)==this.store.getState().mapId}),s=(t=(e=y.getState().metadataConfiguration)===null||e===void 0?void 0:e.descriptors)!==null&&t!==void 0?t:[];return new H.ClusteringHelper(n,i,this.metadataForSwitchToRelatives,s)}}async navigateToRelativeTopicIfFound(e){var t,n,i;await this.loaded();let s=await(0,H.waitFor)(()=>{var l;return(l=this.store.getState().configuration)===null||l===void 0?void 0:l.relativeTopicPivotMetadata}),a=this.store.getState().mapId,c=await(await this.awaitService()).getRelativesForTopicInMap(a,s,[e]);if(!((i=(n=(t=c?.results)===null||t===void 0?void 0:t[0])===null||n===void 0?void 0:n.entries)===null||i===void 0)&&i[0]){let l=c.results[0].entries[0].topic.tocId;return await this.navigateToTopic(l),!0}else return await this.navigateToTopic("root"),!1}setSearchInDocumentQuery(e){this.store.actions.searchInDocumentQuery(e)}async setTranslationDestinationLanguage(e){this.store.actions.setTranslationDestinationLanguage(e),e&&this.sendDocumentOnDemandTranslateEvent(e),await this.loadDebouncer.run(()=>this.fetchData(this.getTranslationSettings()))}async setTranslationSourceLanguage(e){this.store.actions.setTranslationSourceLanguage(e),await this.loadDebouncer.run(()=>this.fetchData(this.getTranslationSettings()))}async setTranslationProfileId(e){this.store.actions.setTranslationProfileId(e)}async setTranslationLoading(e){this.store.actions.setTranslationLoading(e)}async setTranslationError(e){this.store.actions.setTranslationError(e)}getTranslationSettings(){var e;let t=this.store.getState();return t.translation.profileId&&t.translation.destinationLanguage?{profileId:t.translation.profileId,destinationLanguage:t.translation.destinationLanguage.code,sourceLanguage:(e=t.map)===null||e===void 0?void 0:e.lang}:void 0}setLinkPreviewDialogId(e){this.store.actions.linkPreviewDialogId(e)}async fetchMapRating(){var e;this.store.actions.mapRating(await((e=this.service)===null||e===void 0?void 0:e.getMapRating()))}async fetchTopicRating(e){var t;let n=await((t=this.service)===null||t===void 0?void 0:t.getTopicRating(e));n&&this.store.actions.setTopicsRating({[e]:n})}registerMetadataForSwitchToRelatives(e){this.metadataForSwitchToRelatives.add(e),this.store.getState().relatives==null?this.fetchRelatives():this.updateClusteringHelper()}unregisterMetadataForSwitchToRelatives(e){this.metadataForSwitchToRelatives.delete(e),this.updateClusteringHelper()}getAccurateNavigationData(e,t,n){return this.service.getAccurateNavigationData(e,t?.number,n?.section,this.getTranslationSettings())}buildBreadcrumb(e){var t;return(t=this.service)===null||t===void 0?void 0:t.buildBreadcrumb(e,this.getTranslationSettings())}fetchTopicContent(e){var t,n;let i=this.getTranslationSettings();return i?(this.sendTopicAiTranslateEvent(i.destinationLanguage,e),(t=this.service)===null||t===void 0?void 0:t.getTranslatedTopicContent(e,i).then(s=>(s.isTranslationError&&this.setTranslationError(!0),s.content))):(n=this.service)===null||n===void 0?void 0:n.getTopicContent(e)}getTocNode(e){return this.service.getTocNode(e,this.getTranslationSettings())}getPage(e){return this.service.getPage(e,this.getTranslationSettings())}onMapAttachmentsUpdate(){var e;(e=this.service)===null||e===void 0||e.clearMapAttachments(),this.store.dispatchEvent(new Event(pe.mapAttachmentsUpdate))}async getRelativeDocumentUrlForLocale(e){var t,n,i;this.store.getState().relatives==null&&await this.fetchRelatives();let s=H.ClusteringHelper.findResultWithMetadataValue((t=this.store.getState().relatives)!==null&&t!==void 0?t:[],"ft:locale",e),a=(0,H.accessResultUrl)(s);if(a){let o=this.store.getState().visibleTopics[0],c=(n=this.store.getState().configuration)===null||n===void 0?void 0:n.relativeTopicPivotMetadata;if(c&&o){let l=await((i=this.service)===null||i===void 0?void 0:i.getTopicMetadataValue(o,c));a=Ws(a,l)}}return a}sendDocumentOnDemandTranslateEvent(e){var t;let{editorMode:n,apiIntegrationIdentifier:i,apiIntegrationAppVersion:s}=y.getState(),a=this.store.getState(),o=a.map,c=a.translation.profileId;if(!(n||!o||!i||!s||!c))try{let u={...this.analyticsEventsService.convertMapToAnalyticsDocument(o),title:(t=o.untranslatedTitle)!==null&&t!==void 0?t:o.title};this.analyticsEventsService.sendDocumentOnDemandTranslateEvent({name:"DOCUMENT__ON_DEMAND_TRANSLATE",offline:!1,appName:i,appVersion:s,sourceLanguage:this.parseLanguageToAnalyticsFormat(o.lang),destinationLanguage:this.parseLanguageToAnalyticsFormat(e.code),profileId:c,document:u,translationOrigin:Lt.AI})}catch(l){console.warn("Failed to send on-demand document translate event:",l)}}sendTopicAiTranslateEvent(e,t){var n;let{editorMode:i,apiIntegrationIdentifier:s,apiIntegrationAppVersion:a}=y.getState(),o=this.store.getState(),c=o.map,l=o.translation.profileId;if(!(i||!c||!s||!a||!l))try{let u=this.buildBreadcrumb(t.tocId);if(!u){console.warn("Failed to build breadcrumb for topic ai translate event");return}let h={...this.analyticsEventsService.convertMapToAnalyticsDocument(c),title:(n=c.untranslatedTitle)!==null&&n!==void 0?n:c.title};this.analyticsEventsService.sendTopicAiTranslateEvent({name:"TOPIC__AI_TRANSLATE",offline:!1,appName:s,appVersion:a,sourceLanguage:this.parseLanguageToAnalyticsFormat(c.lang),destinationLanguage:this.parseLanguageToAnalyticsFormat(e),breadcrumb:u.map(f=>{var p;return{tocId:f.tocId,title:(p=f.untranslatedTitle)!==null&&p!==void 0?p:f.title}}),document:h,profileId:l})}catch(u){console.warn("Failed to send topic ai translate event:",u)}}parseLanguageToAnalyticsFormat(e){if(!e)return;let t=e.split("-");return t.length===2?{languageCode:t[0],countryCode:t[1]}:{languageCode:t[0],countryCode:""}}};var ar=class extends CustomEvent{constructor(e,t){super("ft-reader-map-loaded",{detail:{map:e,toc:t}})}},or=class extends CustomEvent{constructor(e,t){super("ft-reader-visible-topics-change",{detail:{visibleTopics:t}})}},cr=class extends CustomEvent{constructor(e){super("ft-reader-navigation-done",{detail:e})}},lr=class extends CustomEvent{constructor(e){super("ft-reader-load-error",{detail:e})}},ur=class extends Event{constructor(){super("ft-reader-map-not-found")}},dr=class extends Event{constructor(){super("ft-reader-map-unauthorized")}},hr=class extends Event{constructor(){super("ft-reader-map-forbidden")}},pr=class extends Event{constructor(){super("ft-reader-topic-relative-not-found",{bubbles:!0,composed:!0})}};var V=function(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var o=r.length-1;o>=0;o--)(a=r[o])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s},pn=class{constructor(e){this.stateManager=e}searchInDocument(e){this.stateManager.setSearchInDocumentQuery(e??"")}},L=class extends M.FtLitElementRedux{constructor(){super(),this.visibleTopics=[],this.updateConfiguration=()=>{this.stateManager.reloadConfiguration()},this.scrollToTargetDebouncer=new M.Debouncer(5),this.navigationDebouncer=new M.Debouncer(10),this.mapLoadedEventDebouncer=new M.Debouncer(50),this.addStore(y)}render(){return At.html`
|
|
52
52
|
${this.importStyleIfNeeded()}
|
|
53
53
|
<slot @register-ft-reader-component=${this.registerComponent}></slot>
|
|
54
|
-
`}importStyleIfNeeded(){var e,
|
|
54
|
+
`}importStyleIfNeeded(){var e,t;let n=(e=this.stateManager.service)===null||e===void 0?void 0:e.themeStylesheet();return!n||window.location.href.startsWith((t=this.baseUrl)!==null&&t!==void 0?t:"")?At.nothing:At.html`
|
|
55
55
|
<style>
|
|
56
56
|
@import "${n}"
|
|
57
57
|
</style>
|
|
58
|
-
`}get stateManager(){return this._stateManager==null&&(this._stateManager=
|
|
58
|
+
`}get stateManager(){return this._stateManager==null&&(this._stateManager=sr.build(this.id||(0,M.randomId)(6),this.readerServiceProvider),this._stateManager.errorHandler=e=>this.handleLoadError(e),this.addStore(this.stateManager.store,"reader")),this._stateManager}connectedCallback(){super.connectedCallback(),this.stateManager.setMapId(this.mapId),this.stateManager.awaitService().then(e=>{let t=e.fontsStylesheet();if(t&&!window.location.href.startsWith(this.baseUrl)&&!document.querySelector(`head link[href="${t}"]`)){let n=document.createElement("link");n.setAttribute("rel","stylesheet"),n.setAttribute("href",t),document.head.append(n)}window.FluidTopicsReaderService=new pn(this.stateManager)}),y.addEventListener(le.eventName,this.updateConfiguration)}disconnectedCallback(){super.disconnectedCallback(),y.addEventListener(le.eventName,this.updateConfiguration)}update(e){super.update(e),e.has("readerServiceProvider")&&this.readerServiceProvider&&this.stateManager.initService(this.readerServiceProvider),e.has("mapId")&&this.mapId&&(this.stateManager.setMapId(this.mapId),this.lastNotifiedNotFoundRelative=void 0),e.has("searchInDocumentQuery")&&this.searchInDocumentQuery!=null&&this.stateManager.setSearchInDocumentQuery(this.searchInDocumentQuery),["tocId","section","page","mapId","topicPivot"].some(t=>e.has(t))&&this.mapId&&this.navigateToTarget(),e.has("session")&&this.reload()}contentAvailableCallback(e){var t,n;if(super.contentAvailableCallback(e),(e.has("map")||e.has("toc"))&&this.sendLoadedEventIfLoaded(),e.has("scrollTarget")&&((t=this.scrollTarget)===null||t===void 0?void 0:t.tocId)==null){let i=e.get("scrollTarget");i?.tocId!=null&&this.scrollToTargetDebouncer.run(()=>this.stateManager.getAccurateNavigationData(i.tocId,this.currentPage,i).then(s=>this.dispatchEvent(new cr(s))))}(e.has("visibleTopics")||e.has("scrollTarget"))&&((n=this.scrollTarget)===null||n===void 0?void 0:n.tocId)==null&&Promise.all(this.visibleTopics.map(i=>this.stateManager.getAccurateNavigationData(i,this.currentPage))).then(i=>{let s=i.filter(a=>a!=null&&a.topicTitle!=="").map(a=>({tocId:a.tocId,title:a.topicTitle,page:a.page,prettyUrl:a.prettyUrl,prettyUrlDuplicated:a.prettyUrlDuplicated,breadcrumb:this.stateManager.buildBreadcrumb(a.tocId)}));this.dispatchEvent(new or(this.map,s))})}clear(){this.stateManager.clear()}async reload(){await this.stateManager.reload(),await this.navigateToTarget()}async navigateToTarget(){await this.stateManager.loaded(),await this.navigationDebouncer.run(async()=>{this.topicPivot!=null?!await this.stateManager.navigateToRelativeTopicIfFound(this.topicPivot)&&this.lastNotifiedNotFoundRelative!==this.mapId+this.topicPivot?(this.dispatchEvent(new pr),this.lastNotifiedNotFoundRelative=this.mapId+this.topicPivot):this.lastNotifiedNotFoundRelative=void 0:this.tocId!=null?await this.stateManager.navigateToTopic(this.tocId,this.section,this.page):this.page!=null&&await this.stateManager.navigateToPage(this.page)}),this.tocId&&!this.section&&(this.stateManager.store.commands.clear(/^focus-topic-/),this.stateManager.store.commands.add({type:`focus-topic-${this.tocId}`}))}registerComponent(e){e.stopPropagation();let t=e.composedPath()[0];this.register(t)}register(e){e.setReaderStateManager(this.stateManager)}handleLoadError(e){let t=e;t.status===401?this.dispatchEvent(new dr):t.status===403?this.dispatchEvent(new hr):t.status===404?this.dispatchEvent(new ur):this.dispatchEvent(new lr(e))}reloadBookmarks(){an.reloadBookmarks()}async reloadRating(){var e,t;await((e=this.stateManager.service)===null||e===void 0?void 0:e.reloadRating()),(t=this.stateManager.store)===null||t===void 0||t.dispatchEvent(new CustomEvent("rating-changed"))}sendLoadedEventIfLoaded(){this.mapLoadedEventDebouncer.run(()=>{this.map&&this.toc&&this.dispatchEvent(new ar(this.map,this.toc))})}};L.styles=Jn;V([(0,M.redux)({store:y.name})],L.prototype,"baseUrl",void 0);V([(0,M.redux)({store:y.name})],L.prototype,"session",void 0);V([(0,Oe.property)()],L.prototype,"mapId",void 0);V([(0,Oe.property)()],L.prototype,"tocId",void 0);V([(0,Oe.property)()],L.prototype,"section",void 0);V([(0,Oe.property)()],L.prototype,"topicPivot",void 0);V([(0,Oe.property)()],L.prototype,"searchInDocumentQuery",void 0);V([(0,M.numberProperty)({min:1})],L.prototype,"page",void 0);V([(0,M.redux)({store:"reader"})],L.prototype,"map",void 0);V([(0,M.redux)({store:"reader"})],L.prototype,"toc",void 0);V([(0,M.redux)({store:"reader"})],L.prototype,"visibleTopics",void 0);V([(0,M.redux)({store:"reader"})],L.prototype,"currentPage",void 0);V([(0,M.redux)({store:"reader"})],L.prototype,"scrollTarget",void 0);V([(0,Oe.property)({attribute:!1})],L.prototype,"readerServiceProvider",void 0);var Ys=v(T());var Gs={"ft-reader-context":L};(0,Ys.customElements)(Gs);var Qs=v(F()),Js=v(T()),Bo={position:Js.FtCssVariableFactory.create("--ft-content-watermark-position","Position property of the watermark container","POSITION","sticky")},Xs=Qs.css`
|
|
59
59
|
:host {
|
|
60
60
|
position: absolute;
|
|
61
61
|
top: 0;
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
.ft-watermark-container {
|
|
69
|
-
position: ${
|
|
69
|
+
position: ${Bo.position};
|
|
70
70
|
top: 0;
|
|
71
71
|
text-align: center;
|
|
72
72
|
}
|
|
@@ -74,131 +74,112 @@
|
|
|
74
74
|
.ft-watermark {
|
|
75
75
|
z-index: 79;
|
|
76
76
|
}
|
|
77
|
-
`;var
|
|
78
|
-
\f\r]`,
|
|
79
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),ui=/'/g,pi=/"/g,yi=/^(?:script|style|textarea|title)$/i,_o=o=>(e,...r)=>({_$litType$:o,strings:e,values:r}),mi=_o(1),bi=_o(2),vi=_o(3),Nt=Symbol.for("lit-noChange"),M=Symbol.for("lit-nothing"),fi=new WeakMap,Fe=Ue.createTreeWalker(Ue,129);function xi(o,e){if(!ko(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return ci!==void 0?ci.createHTML(e):e}var vc=(o,e)=>{let r=o.length-1,n=[],a,s=e===2?"<svg>":e===3?"<math>":"",c=kt;for(let d=0;d<r;d++){let u=o[d],p,f,h=-1,g=0;for(;g<u.length&&(c.lastIndex=g,f=c.exec(u),f!==null);)g=c.lastIndex,c===kt?f[1]==="!--"?c=li:f[1]!==void 0?c=di:f[2]!==void 0?(yi.test(f[2])&&(a=RegExp("</"+f[2],"g")),c=Me):f[3]!==void 0&&(c=Me):c===Me?f[0]===">"?(c=a??kt,h=-1):f[1]===void 0?h=-2:(h=c.lastIndex-f[2].length,p=f[1],c=f[3]===void 0?Me:f[3]==='"'?pi:ui):c===pi||c===ui?c=Me:c===li||c===di?c=kt:(c=Me,a=void 0);let m=c===Me&&o[d+1].startsWith("/>")?" ":"";s+=c===kt?u+mc:h>=0?(n.push(p),u.slice(0,h)+hi+u.slice(h)+Oe+m):u+Oe+(h===-2?d:m)}return[xi(o,s+(o[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),n]},Pt=class o{constructor({strings:e,_$litType$:r},n){let a;this.parts=[];let s=0,c=0,d=e.length-1,u=this.parts,[p,f]=vc(e,r);if(this.el=o.createElement(p,n),Fe.currentNode=this.el.content,r===2||r===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(a=Fe.nextNode())!==null&&u.length<d;){if(a.nodeType===1){if(a.hasAttributes())for(let h of a.getAttributeNames())if(h.endsWith(hi)){let g=f[c++],m=a.getAttribute(h).split(Oe),y=/([.?@])?(.*)/.exec(g);u.push({type:1,index:s,name:y[2],strings:m,ctor:y[1]==="."?wo:y[1]==="?"?Io:y[1]==="@"?To:rt}),a.removeAttribute(h)}else h.startsWith(Oe)&&(u.push({type:6,index:s}),a.removeAttribute(h));if(yi.test(a.tagName)){let h=a.textContent.split(Oe),g=h.length-1;if(g>0){a.textContent=Or?Or.emptyScript:"";for(let m=0;m<g;m++)a.append(h[m],Er()),Fe.nextNode(),u.push({type:2,index:++s});a.append(h[g],Er())}}}else if(a.nodeType===8)if(a.data===gi)u.push({type:2,index:s});else{let h=-1;for(;(h=a.data.indexOf(Oe,h+1))!==-1;)u.push({type:7,index:s}),h+=Oe.length-1}s++}}static createElement(e,r){let n=Ue.createElement("template");return n.innerHTML=e,n}};function tt(o,e,r=o,n){if(e===Nt)return e;let a=n!==void 0?r._$Co?.[n]:r._$Cl,s=_t(e)?void 0:e._$litDirective$;return a?.constructor!==s&&(a?._$AO?.(!1),s===void 0?a=void 0:(a=new s(o),a._$AT(o,r,n)),n!==void 0?(r._$Co??=[])[n]=a:r._$Cl=a),a!==void 0&&(e=tt(o,a._$AS(o,e.values),a,n)),e}var Ao=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:n}=this._$AD,a=(e?.creationScope??Ue).importNode(r,!0);Fe.currentNode=a;let s=Fe.nextNode(),c=0,d=0,u=n[0];for(;u!==void 0;){if(c===u.index){let p;u.type===2?p=new Ar(s,s.nextSibling,this,e):u.type===1?p=new u.ctor(s,u.name,u.strings,this,e):u.type===6&&(p=new Ro(s,this,e)),this._$AV.push(p),u=n[++d]}c!==u?.index&&(s=Fe.nextNode(),c++)}return Fe.currentNode=Ue,a}p(e){let r=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,r),r+=n.strings.length-2):n._$AI(e[r])),r++}},Ar=class o{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,n,a){this.type=2,this._$AH=M,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=n,this.options=a,this._$Cv=a?.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=tt(this,e,r),_t(e)?e===M||e==null||e===""?(this._$AH!==M&&this._$AR(),this._$AH=M):e!==this._$AH&&e!==Nt&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):bc(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!==M&&_t(this._$AH)?this._$AA.nextSibling.data=e:this.T(Ue.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:n}=e,a=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=Pt.createElement(xi(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===a)this._$AH.p(r);else{let s=new Ao(a,this),c=s.u(this.options);s.p(r),this.T(c),this._$AH=s}}_$AC(e){let r=fi.get(e.strings);return r===void 0&&fi.set(e.strings,r=new Pt(e)),r}k(e){ko(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,a=0;for(let s of e)a===r.length?r.push(n=new o(this.O(Er()),this.O(Er()),this,this.options)):n=r[a],n._$AI(s),a++;a<r.length&&(this._$AR(n&&n._$AB.nextSibling,a),r.length=a)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e&&e!==this._$AB;){let n=e.nextSibling;e.remove(),e=n}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},rt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,n,a,s){this.type=1,this._$AH=M,this._$AN=void 0,this.element=e,this.name=r,this._$AM=a,this.options=s,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=M}_$AI(e,r=this,n,a){let s=this.strings,c=!1;if(s===void 0)e=tt(this,e,r,0),c=!_t(e)||e!==this._$AH&&e!==Nt,c&&(this._$AH=e);else{let d=e,u,p;for(e=s[0],u=0;u<s.length-1;u++)p=tt(this,d[n+u],r,u),p===Nt&&(p=this._$AH[u]),c||=!_t(p)||p!==this._$AH[u],p===M?e=M:e!==M&&(e+=(p??"")+s[u+1]),this._$AH[u]=p}c&&!a&&this.j(e)}j(e){e===M?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},wo=class extends rt{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===M?void 0:e}},Io=class extends rt{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==M)}},To=class extends rt{constructor(e,r,n,a,s){super(e,r,n,a,s),this.type=5}_$AI(e,r=this){if((e=tt(this,e,r,0)??M)===Nt)return;let n=this._$AH,a=e===M&&n!==M||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,s=e!==M&&(n===M||a);a&&this.element.removeEventListener(this.name,this,n),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)}},Ro=class{constructor(e,r,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){tt(this,e)}};var xc=Lo.litHtmlPolyfillSupport;xc?.(Pt,Ar),(Lo.litHtmlVersions??=[]).push("3.3.0");var Ci=Symbol.for(""),Sc=o=>{if(o?.r===Ci)return o?._$litStatic$},ot=o=>({_$litStatic$:o,r:Ci});var Si=new Map,No=o=>(e,...r)=>{let n=r.length,a,s,c=[],d=[],u,p=0,f=!1;for(;p<n;){for(u=e[p];p<n&&(s=r[p],(a=Sc(s))!==void 0);)u+=a+e[++p],f=!0;p!==n&&d.push(s),c.push(u),p++}if(p===n&&c.push(e[n]),f){let h=c.join("$$lit$$");(e=Si.get(h))===void 0&&(c.raw=c,Si.set(h,e=c)),r=d}return o(e,...r)},nt=No(mi),nh=No(bi),ah=No(vi);var Po=x(j()),Di=x(w());var wr;(function(o){o.title="title",o.title_dense="title-dense",o.subtitle1="subtitle1",o.subtitle2="subtitle2",o.body1="body1",o.body2="body2",o.caption="caption",o.breadcrumb="breadcrumb",o.overline="overline",o.button="button"})(wr||(wr={}));var te=x(F()),b=x(w()),Oi=b.FtCssVariableFactory.extend("--ft-typography-font-family","",b.designSystemVariables.titleFont),he=b.FtCssVariableFactory.extend("--ft-typography-font-family","",b.designSystemVariables.contentFont),C={fontFamily:he,fontSize:b.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:b.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:b.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:b.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:b.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},at={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-title-font-family","",Oi),fontSize:b.FtCssVariableFactory.extend("--ft-typography-title-font-size","",C.fontSize,"20px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",C.fontWeight,"normal"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",C.letterSpacing,"0.15px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-title-line-height","",C.lineHeight,"1.2"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",C.textTransform,"inherit")},it={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",Oi),fontSize:b.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",C.fontSize,"14px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",C.fontWeight,"normal"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",C.letterSpacing,"0.105px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",C.lineHeight,"1.7"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",C.textTransform,"inherit")},st={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",he),fontSize:b.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",C.fontSize,"16px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",C.fontWeight,"600"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",C.letterSpacing,"0.144px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",C.lineHeight,"1.5"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",C.textTransform,"inherit")},ct={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",he),fontSize:b.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",C.fontSize,"14px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",C.fontWeight,"normal"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",C.letterSpacing,"0.098px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",C.lineHeight,"1.7"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",C.textTransform,"inherit")},lt={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",he),fontSize:b.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",C.fontSize,"16px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",C.fontWeight,"normal"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",C.letterSpacing,"0.496px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",C.lineHeight,"1.5"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",C.textTransform,"inherit")},dt={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",he),fontSize:b.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",C.fontSize,"14px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",C.fontWeight,"normal"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",C.letterSpacing,"0.252px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",C.lineHeight,"1.4"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",C.textTransform,"inherit")},ut={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",he),fontSize:b.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",C.fontSize,"12px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",C.fontWeight,"normal"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",C.letterSpacing,"0.396px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",C.lineHeight,"1.33"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",C.textTransform,"inherit")},pt={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",he),fontSize:b.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",C.fontSize,"10px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",C.fontWeight,"normal"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",C.letterSpacing,"0.33px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",C.lineHeight,"1.6"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",C.textTransform,"inherit")},ft={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",he),fontSize:b.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",C.fontSize,"10px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",C.fontWeight,"normal"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",C.letterSpacing,"1.5px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",C.lineHeight,"1.6"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",C.textTransform,"uppercase")},ht={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-button-font-family","",he),fontSize:b.FtCssVariableFactory.extend("--ft-typography-button-font-size","",C.fontSize,"14px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",C.fontWeight,"600"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",C.letterSpacing,"1.246px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-button-line-height","",C.lineHeight,"1.15"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",C.textTransform,"uppercase")},Ei=te.css`
|
|
77
|
+
`;var ot=v(F()),De=v(K());var Ra=v(xr()),Oa=v(T());var Sn=globalThis,fr=Sn.trustedTypes,Zs=fr?fr.createPolicy("lit-html",{createHTML:r=>r}):void 0,sa="$lit$",be=`lit$${Math.random().toFixed(9).slice(2)}$`,aa="?"+be,Ho=`<${aa}>`,Pe=document,mr=()=>Pe.createComment(""),Tt=r=>r===null||typeof r!="object"&&typeof r!="function",An=Array.isArray,Vo=r=>An(r)||typeof r?.[Symbol.iterator]=="function",fn=`[
|
|
78
|
+
\f\r]`,Et=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ea=/-->/g,ta=/>/g,Le=RegExp(`>|${fn}(?:([^\\s"'>=/]+)(${fn}*=${fn}*(?:[^
|
|
79
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),ra=/'/g,na=/"/g,oa=/^(?:script|style|textarea|title)$/i,En=r=>(e,...t)=>({_$litType$:r,strings:e,values:t}),ca=En(1),la=En(2),ua=En(3),xt=Symbol.for("lit-noChange"),P=Symbol.for("lit-nothing"),ia=new WeakMap,Me=Pe.createTreeWalker(Pe,129);function da(r,e){if(!An(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return Zs!==void 0?Zs.createHTML(e):e}var Ko=(r,e)=>{let t=r.length-1,n=[],i,s=e===2?"<svg>":e===3?"<math>":"",a=Et;for(let o=0;o<t;o++){let c=r[o],l,u,d=-1,h=0;for(;h<c.length&&(a.lastIndex=h,u=a.exec(c),u!==null);)h=a.lastIndex,a===Et?u[1]==="!--"?a=ea:u[1]!==void 0?a=ta:u[2]!==void 0?(oa.test(u[2])&&(i=RegExp("</"+u[2],"g")),a=Le):u[3]!==void 0&&(a=Le):a===Le?u[0]===">"?(a=i??Et,d=-1):u[1]===void 0?d=-2:(d=a.lastIndex-u[2].length,l=u[1],a=u[3]===void 0?Le:u[3]==='"'?na:ra):a===na||a===ra?a=Le:a===ea||a===ta?a=Et:(a=Le,i=void 0);let f=a===Le&&r[o+1].startsWith("/>")?" ":"";s+=a===Et?c+Ho:d>=0?(n.push(l),c.slice(0,d)+sa+c.slice(d)+be+f):c+be+(d===-2?o:f)}return[da(r,s+(r[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),n]},Ct=class r{constructor({strings:e,_$litType$:t},n){let i;this.parts=[];let s=0,a=0,o=e.length-1,c=this.parts,[l,u]=Ko(e,t);if(this.el=r.createElement(l,n),Me.currentNode=this.el.content,t===2||t===3){let d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(i=Me.nextNode())!==null&&c.length<o;){if(i.nodeType===1){if(i.hasAttributes())for(let d of i.getAttributeNames())if(d.endsWith(sa)){let h=u[a++],f=i.getAttribute(d).split(be),p=/([.?@])?(.*)/.exec(h);c.push({type:1,index:s,name:p[2],strings:f,ctor:p[1]==="."?gn:p[1]==="?"?vn:p[1]==="@"?yn:Qe}),i.removeAttribute(d)}else d.startsWith(be)&&(c.push({type:6,index:s}),i.removeAttribute(d));if(oa.test(i.tagName)){let d=i.textContent.split(be),h=d.length-1;if(h>0){i.textContent=fr?fr.emptyScript:"";for(let f=0;f<h;f++)i.append(d[f],mr()),Me.nextNode(),c.push({type:2,index:++s});i.append(d[h],mr())}}}else if(i.nodeType===8)if(i.data===aa)c.push({type:2,index:s});else{let d=-1;for(;(d=i.data.indexOf(be,d+1))!==-1;)c.push({type:7,index:s}),d+=be.length-1}s++}}static createElement(e,t){let n=Pe.createElement("template");return n.innerHTML=e,n}};function Ye(r,e,t=r,n){if(e===xt)return e;let i=n!==void 0?t._$Co?.[n]:t._$Cl,s=Tt(e)?void 0:e._$litDirective$;return i?.constructor!==s&&(i?._$AO?.(!1),s===void 0?i=void 0:(i=new s(r),i._$AT(r,t,n)),n!==void 0?(t._$Co??=[])[n]=i:t._$Cl=i),i!==void 0&&(e=Ye(r,i._$AS(r,e.values),i,n)),e}var mn=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:t},parts:n}=this._$AD,i=(e?.creationScope??Pe).importNode(t,!0);Me.currentNode=i;let s=Me.nextNode(),a=0,o=0,c=n[0];for(;c!==void 0;){if(a===c.index){let l;c.type===2?l=new gr(s,s.nextSibling,this,e):c.type===1?l=new c.ctor(s,c.name,c.strings,this,e):c.type===6&&(l=new bn(s,this,e)),this._$AV.push(l),c=n[++o]}a!==c?.index&&(s=Me.nextNode(),a++)}return Me.currentNode=Pe,i}p(e){let t=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,t),t+=n.strings.length-2):n._$AI(e[t])),t++}},gr=class r{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,n,i){this.type=2,this._$AH=P,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=n,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&e?.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=Ye(this,e,t),Tt(e)?e===P||e==null||e===""?(this._$AH!==P&&this._$AR(),this._$AH=P):e!==this._$AH&&e!==xt&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Vo(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!==P&&Tt(this._$AH)?this._$AA.nextSibling.data=e:this.T(Pe.createTextNode(e)),this._$AH=e}$(e){let{values:t,_$litType$:n}=e,i=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=Ct.createElement(da(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===i)this._$AH.p(t);else{let s=new mn(i,this),a=s.u(this.options);s.p(t),this.T(a),this._$AH=s}}_$AC(e){let t=ia.get(e.strings);return t===void 0&&ia.set(e.strings,t=new Ct(e)),t}k(e){An(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,n,i=0;for(let s of e)i===t.length?t.push(n=new r(this.O(mr()),this.O(mr()),this,this.options)):n=t[i],n._$AI(s),i++;i<t.length&&(this._$AR(n&&n._$AB.nextSibling,i),t.length=i)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e&&e!==this._$AB;){let n=e.nextSibling;e.remove(),e=n}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Qe=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,n,i,s){this.type=1,this._$AH=P,this._$AN=void 0,this.element=e,this.name=t,this._$AM=i,this.options=s,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=P}_$AI(e,t=this,n,i){let s=this.strings,a=!1;if(s===void 0)e=Ye(this,e,t,0),a=!Tt(e)||e!==this._$AH&&e!==xt,a&&(this._$AH=e);else{let o=e,c,l;for(e=s[0],c=0;c<s.length-1;c++)l=Ye(this,o[n+c],t,c),l===xt&&(l=this._$AH[c]),a||=!Tt(l)||l!==this._$AH[c],l===P?e=P:e!==P&&(e+=(l??"")+s[c+1]),this._$AH[c]=l}a&&!i&&this.j(e)}j(e){e===P?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},gn=class extends Qe{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===P?void 0:e}},vn=class extends Qe{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==P)}},yn=class extends Qe{constructor(e,t,n,i,s){super(e,t,n,i,s),this.type=5}_$AI(e,t=this){if((e=Ye(this,e,t,0)??P)===xt)return;let n=this._$AH,i=e===P&&n!==P||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,s=e!==P&&(n===P||i);i&&this.element.removeEventListener(this.name,this,n),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)}},bn=class{constructor(e,t,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){Ye(this,e)}};var qo=Sn.litHtmlPolyfillSupport;qo?.(Ct,gr),(Sn.litHtmlVersions??=[]).push("3.3.0");var pa=Symbol.for(""),zo=r=>{if(r?.r===pa)return r?._$litStatic$},Tn=r=>({_$litStatic$:r,r:pa});var ha=new Map,xn=r=>(e,...t)=>{let n=t.length,i,s,a=[],o=[],c,l=0,u=!1;for(;l<n;){for(c=e[l];l<n&&(s=t[l],(i=zo(s))!==void 0);)c+=i+e[++l],u=!0;l!==n&&o.push(s),a.push(c),l++}if(l===n&&a.push(e[n]),u){let d=a.join("$$lit$$");(e=ha.get(d))===void 0&&(a.raw=a,ha.set(d,e=a)),t=o}return r(e,...t)},Cn=xn(ca),wp=xn(la),Ip=xn(ua);var wn=v(K()),wa=v(T());var vr;(function(r){r.title="title",r.title_dense="title-dense",r.subtitle1="subtitle1",r.subtitle2="subtitle2",r.body1="body1",r.body2="body2",r.caption="caption",r.breadcrumb="breadcrumb",r.overline="overline",r.button="button"})(vr||(vr={}));var X=v(F()),m=v(T()),fa=m.FtCssVariableFactory.extend("--ft-typography-font-family","",m.designSystemVariables.titleFont),de=m.FtCssVariableFactory.extend("--ft-typography-font-family","",m.designSystemVariables.contentFont),b={fontFamily:de,fontSize:m.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:m.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:m.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:m.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:m.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Je={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-title-font-family","",fa),fontSize:m.FtCssVariableFactory.extend("--ft-typography-title-font-size","",b.fontSize,"20px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",b.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",b.letterSpacing,"0.15px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-title-line-height","",b.lineHeight,"1.2"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",b.textTransform,"inherit")},Xe={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",fa),fontSize:m.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",b.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",b.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",b.letterSpacing,"0.105px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",b.lineHeight,"1.7"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",b.textTransform,"inherit")},Ze={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",de),fontSize:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",b.fontSize,"16px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",b.fontWeight,"600"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",b.letterSpacing,"0.144px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",b.lineHeight,"1.5"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",b.textTransform,"inherit")},et={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",de),fontSize:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",b.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",b.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",b.letterSpacing,"0.098px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",b.lineHeight,"1.7"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",b.textTransform,"inherit")},tt={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",de),fontSize:m.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",b.fontSize,"16px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",b.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",b.letterSpacing,"0.496px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",b.lineHeight,"1.5"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",b.textTransform,"inherit")},rt={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",de),fontSize:m.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",b.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",b.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",b.letterSpacing,"0.252px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",b.lineHeight,"1.4"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",b.textTransform,"inherit")},nt={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",de),fontSize:m.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",b.fontSize,"12px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",b.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",b.letterSpacing,"0.396px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",b.lineHeight,"1.33"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",b.textTransform,"inherit")},it={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",de),fontSize:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",b.fontSize,"10px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",b.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",b.letterSpacing,"0.33px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",b.lineHeight,"1.6"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",b.textTransform,"inherit")},st={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",de),fontSize:m.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",b.fontSize,"10px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",b.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",b.letterSpacing,"1.5px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",b.lineHeight,"1.6"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",b.textTransform,"uppercase")},at={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-button-font-family","",de),fontSize:m.FtCssVariableFactory.extend("--ft-typography-button-font-size","",b.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",b.fontWeight,"600"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",b.letterSpacing,"1.246px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-button-line-height","",b.lineHeight,"1.15"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",b.textTransform,"uppercase")},ma=X.css`
|
|
80
80
|
.ft-typography--title {
|
|
81
|
-
font-family: ${
|
|
82
|
-
font-size: ${
|
|
83
|
-
font-weight: ${
|
|
84
|
-
letter-spacing: ${
|
|
85
|
-
line-height: ${
|
|
86
|
-
text-transform: ${
|
|
81
|
+
font-family: ${Je.fontFamily};
|
|
82
|
+
font-size: ${Je.fontSize};
|
|
83
|
+
font-weight: ${Je.fontWeight};
|
|
84
|
+
letter-spacing: ${Je.letterSpacing};
|
|
85
|
+
line-height: ${Je.lineHeight};
|
|
86
|
+
text-transform: ${Je.textTransform};
|
|
87
87
|
}
|
|
88
|
-
`,
|
|
88
|
+
`,ga=X.css`
|
|
89
89
|
.ft-typography--title-dense {
|
|
90
|
-
font-family: ${
|
|
91
|
-
font-size: ${
|
|
92
|
-
font-weight: ${
|
|
93
|
-
letter-spacing: ${
|
|
94
|
-
line-height: ${
|
|
95
|
-
text-transform: ${
|
|
90
|
+
font-family: ${Xe.fontFamily};
|
|
91
|
+
font-size: ${Xe.fontSize};
|
|
92
|
+
font-weight: ${Xe.fontWeight};
|
|
93
|
+
letter-spacing: ${Xe.letterSpacing};
|
|
94
|
+
line-height: ${Xe.lineHeight};
|
|
95
|
+
text-transform: ${Xe.textTransform};
|
|
96
96
|
}
|
|
97
|
-
`,
|
|
97
|
+
`,va=X.css`
|
|
98
98
|
.ft-typography--subtitle1 {
|
|
99
|
-
font-family: ${
|
|
100
|
-
font-size: ${
|
|
101
|
-
font-weight: ${
|
|
102
|
-
letter-spacing: ${
|
|
103
|
-
line-height: ${
|
|
104
|
-
text-transform: ${
|
|
99
|
+
font-family: ${Ze.fontFamily};
|
|
100
|
+
font-size: ${Ze.fontSize};
|
|
101
|
+
font-weight: ${Ze.fontWeight};
|
|
102
|
+
letter-spacing: ${Ze.letterSpacing};
|
|
103
|
+
line-height: ${Ze.lineHeight};
|
|
104
|
+
text-transform: ${Ze.textTransform};
|
|
105
105
|
}
|
|
106
|
-
`,
|
|
106
|
+
`,ya=X.css`
|
|
107
107
|
.ft-typography--subtitle2 {
|
|
108
|
-
font-family: ${
|
|
109
|
-
font-size: ${
|
|
110
|
-
font-weight: ${
|
|
111
|
-
letter-spacing: ${
|
|
112
|
-
line-height: ${
|
|
113
|
-
text-transform: ${
|
|
108
|
+
font-family: ${et.fontFamily};
|
|
109
|
+
font-size: ${et.fontSize};
|
|
110
|
+
font-weight: ${et.fontWeight};
|
|
111
|
+
letter-spacing: ${et.letterSpacing};
|
|
112
|
+
line-height: ${et.lineHeight};
|
|
113
|
+
text-transform: ${et.textTransform};
|
|
114
114
|
}
|
|
115
115
|
|
|
116
|
-
`,
|
|
116
|
+
`,yr=X.css`
|
|
117
117
|
.ft-typography--body1 {
|
|
118
|
-
font-family: ${
|
|
119
|
-
font-size: ${
|
|
120
|
-
font-weight: ${
|
|
121
|
-
letter-spacing: ${
|
|
122
|
-
line-height: ${
|
|
123
|
-
text-transform: ${
|
|
118
|
+
font-family: ${tt.fontFamily};
|
|
119
|
+
font-size: ${tt.fontSize};
|
|
120
|
+
font-weight: ${tt.fontWeight};
|
|
121
|
+
letter-spacing: ${tt.letterSpacing};
|
|
122
|
+
line-height: ${tt.lineHeight};
|
|
123
|
+
text-transform: ${tt.textTransform};
|
|
124
124
|
}
|
|
125
|
-
`,
|
|
125
|
+
`,ba=X.css`
|
|
126
126
|
.ft-typography--body2 {
|
|
127
|
-
font-family: ${
|
|
128
|
-
font-size: ${
|
|
129
|
-
font-weight: ${
|
|
130
|
-
letter-spacing: ${
|
|
131
|
-
line-height: ${
|
|
132
|
-
text-transform: ${
|
|
127
|
+
font-family: ${rt.fontFamily};
|
|
128
|
+
font-size: ${rt.fontSize};
|
|
129
|
+
font-weight: ${rt.fontWeight};
|
|
130
|
+
letter-spacing: ${rt.letterSpacing};
|
|
131
|
+
line-height: ${rt.lineHeight};
|
|
132
|
+
text-transform: ${rt.textTransform};
|
|
133
133
|
}
|
|
134
|
-
`,
|
|
134
|
+
`,Sa=X.css`
|
|
135
135
|
.ft-typography--caption {
|
|
136
|
-
font-family: ${
|
|
137
|
-
font-size: ${
|
|
138
|
-
font-weight: ${
|
|
139
|
-
letter-spacing: ${
|
|
140
|
-
line-height: ${
|
|
141
|
-
text-transform: ${
|
|
136
|
+
font-family: ${nt.fontFamily};
|
|
137
|
+
font-size: ${nt.fontSize};
|
|
138
|
+
font-weight: ${nt.fontWeight};
|
|
139
|
+
letter-spacing: ${nt.letterSpacing};
|
|
140
|
+
line-height: ${nt.lineHeight};
|
|
141
|
+
text-transform: ${nt.textTransform};
|
|
142
142
|
}
|
|
143
|
-
`,
|
|
143
|
+
`,Aa=X.css`
|
|
144
144
|
.ft-typography--breadcrumb {
|
|
145
|
-
font-family: ${
|
|
146
|
-
font-size: ${
|
|
147
|
-
font-weight: ${
|
|
148
|
-
letter-spacing: ${
|
|
149
|
-
line-height: ${
|
|
150
|
-
text-transform: ${
|
|
145
|
+
font-family: ${it.fontFamily};
|
|
146
|
+
font-size: ${it.fontSize};
|
|
147
|
+
font-weight: ${it.fontWeight};
|
|
148
|
+
letter-spacing: ${it.letterSpacing};
|
|
149
|
+
line-height: ${it.lineHeight};
|
|
150
|
+
text-transform: ${it.textTransform};
|
|
151
151
|
}
|
|
152
|
-
`,
|
|
152
|
+
`,Ea=X.css`
|
|
153
153
|
.ft-typography--overline {
|
|
154
|
-
font-family: ${
|
|
155
|
-
font-size: ${
|
|
156
|
-
font-weight: ${
|
|
157
|
-
letter-spacing: ${
|
|
158
|
-
line-height: ${
|
|
159
|
-
text-transform: ${
|
|
154
|
+
font-family: ${st.fontFamily};
|
|
155
|
+
font-size: ${st.fontSize};
|
|
156
|
+
font-weight: ${st.fontWeight};
|
|
157
|
+
letter-spacing: ${st.letterSpacing};
|
|
158
|
+
line-height: ${st.lineHeight};
|
|
159
|
+
text-transform: ${st.textTransform};
|
|
160
160
|
}
|
|
161
|
-
`,
|
|
161
|
+
`,Ta=X.css`
|
|
162
162
|
.ft-typography--button {
|
|
163
|
-
font-family: ${
|
|
164
|
-
font-size: ${
|
|
165
|
-
font-weight: ${
|
|
166
|
-
letter-spacing: ${
|
|
167
|
-
line-height: ${
|
|
168
|
-
text-transform: ${
|
|
163
|
+
font-family: ${at.fontFamily};
|
|
164
|
+
font-size: ${at.fontSize};
|
|
165
|
+
font-weight: ${at.fontWeight};
|
|
166
|
+
letter-spacing: ${at.letterSpacing};
|
|
167
|
+
line-height: ${at.lineHeight};
|
|
168
|
+
text-transform: ${at.textTransform};
|
|
169
169
|
}
|
|
170
|
-
`,
|
|
170
|
+
`,xa=X.css`
|
|
171
171
|
.ft-typography {
|
|
172
172
|
vertical-align: inherit;
|
|
173
173
|
}
|
|
174
|
-
`;var
|
|
175
|
-
<${
|
|
174
|
+
`;var Ca=function(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var o=r.length-1;o>=0;o--)(a=r[o])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s},Ne=class extends wa.FtLitElement{constructor(){super(...arguments),this.variant=vr.body1}render(){return this.element?Cn`
|
|
175
|
+
<${Tn(this.element)}
|
|
176
176
|
part="text"
|
|
177
177
|
class="ft-typography ft-typography--${this.variant}">
|
|
178
178
|
<slot></slot>
|
|
179
|
-
</${
|
|
180
|
-
`:
|
|
179
|
+
</${Tn(this.element)}>
|
|
180
|
+
`:Cn`
|
|
181
181
|
<slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
|
|
182
|
-
`}};Be.styles=[Ei,Ai,wi,Ii,Ir,Ti,Ri,Li,ki,_i,Ni];Pi([(0,Po.property)()],Be.prototype,"element",void 0);Pi([(0,Po.property)()],Be.prototype,"variant",void 0);var Mo=x(j()),rs=x(w());var Tr;(function(o){o.display="display",o.title1="title-1",o.title2="title-2",o.title3="title-3",o.body1regular="body-1-regular",o.body1medium="body-1-medium",o.body1semibold="body-1-semibold",o.body2regular="body-2-regular",o.body2medium="body-2-medium",o.body2semibold="body-2-semibold",o.caption1medium="caption-1-medium",o.caption1semibold="caption-1-semibold",o.caption2medium="caption-2-medium",o.caption2semibold="caption-2-semibold",o.caption2bold="caption-2-bold"})(Tr||(Tr={}));var ge=x(F(),1),Ee=o=>typeof o=="string"?(0,ge.unsafeCSS)(o):o,t=class{static create(e,r,n,a){let s=d=>Ee(d??a),c=ge.css`var(${Ee(e)}, ${s(a)})`;return c.name=e,c.description=r,c.category=n,c.defaultValue=a,c.defaultCssValue=s,c.set=d=>Mi(c,d??s(a)),c.get=d=>ge.css`var(${Ee(e)}, ${s(d)})`,c.breadcrumb=()=>[],c.lastResortDefaultValue=()=>a,c}static extend(e,r,n,a){let s=d=>n.get(d??a),c=ge.css`var(${Ee(e)}, ${s(a)})`;return c.name=e,c.description=r,c.category=n.category,c.fallbackVariable=n,c.defaultValue=a,c.defaultCssValue=s,c.set=d=>Mi(c,d??s(a)),c.get=d=>ge.css`var(${Ee(e)}, ${s(d)})`,c.breadcrumb=()=>[n.name,...n.breadcrumb()],c.lastResortDefaultValue=()=>a??n.lastResortDefaultValue(),c}static external(e,r){let n=s=>e.defaultCssValue(s),a=ge.css`var(${Ee(e.name)}, ${n(e.defaultValue)})`;return a.name=e.name,a.category=e.category,a.fallbackVariable=e.fallbackVariable,a.defaultValue=e.defaultValue,a.context=r,a.defaultCssValue=n,a.set=s=>e.set(s),a.get=s=>ge.css`var(${Ee(e.name)}, ${n(s)})`,a.breadcrumb=()=>e.breadcrumb(),a.lastResortDefaultValue=()=>e.lastResortDefaultValue(),a}};function Mi(o,e){return Ee(`${o.name}: ${e}`)}var i={colorWhite:t.create("--ftds-color-white","","COLOR","#ffffff"),colorGray0:t.create("--ftds-color-gray-0","","COLOR","#71718e"),colorGray10:t.create("--ftds-color-gray-10","","COLOR","#fbfbfc"),colorGray20:t.create("--ftds-color-gray-20","","COLOR","#f2f2f5"),colorGray30:t.create("--ftds-color-gray-30","","COLOR","#e9e9ed"),colorGray40:t.create("--ftds-color-gray-40","","COLOR","#e0e0e6"),colorGray50:t.create("--ftds-color-gray-50","","COLOR","#cdcdd7"),colorGray60:t.create("--ftds-color-gray-60","","COLOR","#bbbbc9"),colorGray70:t.create("--ftds-color-gray-70","","COLOR","#a8a8ba"),colorGray80:t.create("--ftds-color-gray-80","","COLOR","#9696ab"),colorGray90:t.create("--ftds-color-gray-90","","COLOR","#83839d"),colorGray100:t.create("--ftds-color-gray-100","","COLOR","#62627c"),colorGray200:t.create("--ftds-color-gray-200","","COLOR","#545469"),colorGray300:t.create("--ftds-color-gray-300","","COLOR","#454557"),colorGray400:t.create("--ftds-color-gray-400","","COLOR","#363644"),colorGray500:t.create("--ftds-color-gray-500","","COLOR","#282832"),colorGray600:t.create("--ftds-color-gray-600","","COLOR","#19191f"),colorGray700:t.create("--ftds-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:t.create("--ftds-color-brand-0","","COLOR","#9d207b"),colorBrand10:t.create("--ftds-color-brand-10","","COLOR","#f7edf4"),colorBrand20:t.create("--ftds-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:t.create("--ftds-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:t.create("--ftds-color-brand-40","","COLOR","#d395c2"),colorBrand50:t.create("--ftds-color-brand-50","","COLOR","#c778b1"),colorBrand60:t.create("--ftds-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:t.create("--ftds-color-brand-70","","COLOR","#ae3e90"),colorBrand100:t.create("--ftds-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:t.create("--ftds-color-brand-200","","COLOR","#78185e"),colorBrand300:t.create("--ftds-color-brand-300","","COLOR","#62144d"),colorBrand400:t.create("--ftds-color-brand-400","","COLOR","#4d103c"),colorBrand500:t.create("--ftds-color-brand-500","","COLOR","#380b2c"),colorBrand600:t.create("--ftds-color-brand-600","","COLOR","#23071b"),colorBrand700:t.create("--ftds-color-brand-700","","COLOR","#0d030b"),colorCyan0:t.create("--ftds-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:t.create("--ftds-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:t.create("--ftds-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:t.create("--ftds-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:t.create("--ftds-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:t.create("--ftds-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:t.create("--ftds-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:t.create("--ftds-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:t.create("--ftds-color-cyan-100","","COLOR","#0c849c"),colorCyan200:t.create("--ftds-color-cyan-200","","COLOR","#0a7085"),colorCyan300:t.create("--ftds-color-cyan-300","","COLOR","#085c6d"),colorCyan400:t.create("--ftds-color-cyan-400","","COLOR","#074856"),colorCyan500:t.create("--ftds-color-cyan-500","","COLOR","#05343e"),colorCyan600:t.create("--ftds-color-cyan-600","","COLOR","#032127"),colorCyan700:t.create("--ftds-color-cyan-700","","COLOR","#010d0f"),colorGreen0:t.create("--ftds-color-green-0","","COLOR","#21a274"),colorGreen10:t.create("--ftds-color-green-10","","COLOR","#edf7f3"),colorGreen20:t.create("--ftds-color-green-20","","COLOR","#cfebe1"),colorGreen30:t.create("--ftds-color-green-30","","COLOR","#b2dfcf"),colorGreen40:t.create("--ftds-color-green-40","","COLOR","#95d3bd"),colorGreen50:t.create("--ftds-color-green-50","","COLOR","#78c7ab"),colorGreen60:t.create("--ftds-color-green-60","","COLOR","#5bba98"),colorGreen70:t.create("--ftds-color-green-70","","COLOR","#3eae86"),colorGreen100:t.create("--ftds-color-green-100","","COLOR","#1d8d65"),colorGreen200:t.create("--ftds-color-green-200","","COLOR","#187856"),colorGreen300:t.create("--ftds-color-green-300","","COLOR","#146246"),colorGreen400:t.create("--ftds-color-green-400","","COLOR","#104d37"),colorGreen500:t.create("--ftds-color-green-500","","COLOR","#0b3828"),colorGreen600:t.create("--ftds-color-green-600","","COLOR","#072319"),colorGreen700:t.create("--ftds-color-green-700","","COLOR","#030d0a"),colorOrange0:t.create("--ftds-color-orange-0","","COLOR","#F2700D"),colorOrange10:t.create("--ftds-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:t.create("--ftds-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:t.create("--ftds-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:t.create("--ftds-color-orange-40","","COLOR","#FECB90"),colorOrange50:t.create("--ftds-color-orange-50","","COLOR","#FCB76E"),colorOrange60:t.create("--ftds-color-orange-60","","COLOR","#F9A34D"),colorOrange70:t.create("--ftds-color-orange-70","","COLOR","#F68B2C"),colorOrange100:t.create("--ftds-color-orange-100","","COLOR","#D35909"),colorOrange200:t.create("--ftds-color-orange-200","","COLOR","#B74706"),colorOrange300:t.create("--ftds-color-orange-300","","COLOR","#913503"),colorOrange400:t.create("--ftds-color-orange-400","","COLOR","#6F2601"),colorOrange500:t.create("--ftds-color-orange-500","","COLOR","#4D1800"),colorOrange600:t.create("--ftds-color-orange-600","","COLOR","#330F00"),colorOrange700:t.create("--ftds-color-orange-700","","COLOR","#140600"),colorRed0:t.create("--ftds-color-red-0","","COLOR","#b40e2c"),colorRed10:t.create("--ftds-color-red-10","","COLOR","#f9ebed"),colorRed20:t.create("--ftds-color-red-20","","COLOR","#efcbd2"),colorRed30:t.create("--ftds-color-red-30","","COLOR","#e5acb6"),colorRed40:t.create("--ftds-color-red-40","","COLOR","#db8c9b"),colorRed50:t.create("--ftds-color-red-50","","COLOR","#d16d7f"),colorRed60:t.create("--ftds-color-red-60","","COLOR","#c84d63"),colorRed70:t.create("--ftds-color-red-70","","COLOR","#be2e48"),colorRed100:t.create("--ftds-color-red-100","","COLOR","#9c0c26"),colorRed200:t.create("--ftds-color-red-200","","COLOR","#850a20"),colorRed300:t.create("--ftds-color-red-300","","COLOR","#6d081b"),colorRed400:t.create("--ftds-color-red-400","","COLOR","#560715"),colorRed500:t.create("--ftds-color-red-500","","COLOR","#3e050f"),colorRed600:t.create("--ftds-color-red-600","","COLOR","#270309"),colorRed700:t.create("--ftds-color-red-700","","COLOR","#0f0104"),colorYellow0:t.create("--ftds-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:t.create("--ftds-color-yellow-10","","COLOR","#fefae9"),colorYellow20:t.create("--ftds-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:t.create("--ftds-color-yellow-30","","COLOR","#faedaa"),colorYellow40:t.create("--ftds-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:t.create("--ftds-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:t.create("--ftds-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:t.create("--ftds-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:t.create("--ftds-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:t.create("--ftds-color-yellow-200","","COLOR","#b3970a"),colorYellow300:t.create("--ftds-color-yellow-300","","COLOR","#947c08"),colorYellow400:t.create("--ftds-color-yellow-400","","COLOR","#746206"),colorYellow500:t.create("--ftds-color-yellow-500","","COLOR","#554705"),colorYellow600:t.create("--ftds-color-yellow-600","","COLOR","#352d03"),colorYellow700:t.create("--ftds-color-yellow-700","","COLOR","#161201"),colorUltramarine0:t.create("--ftds-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:t.create("--ftds-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:t.create("--ftds-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:t.create("--ftds-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:t.create("--ftds-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:t.create("--ftds-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:t.create("--ftds-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:t.create("--ftds-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:t.create("--ftds-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:t.create("--ftds-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:t.create("--ftds-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:t.create("--ftds-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:t.create("--ftds-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:t.create("--ftds-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:t.create("--ftds-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:t.create("--ftds-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:t.create("--ftds-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:t.create("--ftds-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:t.create("--ftds-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:t.create("--ftds-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:t.create("--ftds-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:t.create("--ftds-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:t.create("--ftds-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:t.create("--ftds-color-avocado-100","","COLOR","#84A423"),colorAvocado200:t.create("--ftds-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:t.create("--ftds-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:t.create("--ftds-color-avocado-400","","COLOR","#495B13"),colorAvocado500:t.create("--ftds-color-avocado-500","","COLOR","#35420E"),colorAvocado600:t.create("--ftds-color-avocado-600","","COLOR","#212A09"),colorAvocado700:t.create("--ftds-color-avocado-700","","COLOR","#0E1104"),colorBrown0:t.create("--ftds-color-brown-0","","COLOR","#B26F4D"),colorBrown10:t.create("--ftds-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:t.create("--ftds-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:t.create("--ftds-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:t.create("--ftds-color-brown-40","","COLOR","#DABAAA"),colorBrown50:t.create("--ftds-color-brown-50","","COLOR","#D0A792"),colorBrown60:t.create("--ftds-color-brown-60","","COLOR","#C6947B"),colorBrown70:t.create("--ftds-color-brown-70","","COLOR","#BC8264"),colorBrown100:t.create("--ftds-color-brown-100","","COLOR","#9B6143"),colorBrown200:t.create("--ftds-color-brown-200","","COLOR","#845239"),colorBrown300:t.create("--ftds-color-brown-300","","COLOR","#6D442F"),colorBrown400:t.create("--ftds-color-brown-400","","COLOR","#553525"),colorBrown500:t.create("--ftds-color-brown-500","","COLOR","#3E271B"),colorBrown600:t.create("--ftds-color-brown-600","","COLOR","#271811"),colorBrown700:t.create("--ftds-color-brown-700","","COLOR","#100A07"),spacing1:t.create("--ftds-spacing-1","","SIZE","0.25rem"),spacing2:t.create("--ftds-spacing-2","","SIZE","calc(0.25rem*2)"),spacing3:t.create("--ftds-spacing-3","","SIZE","calc(0.25rem*3)"),spacing4:t.create("--ftds-spacing-4","","SIZE","calc(0.25rem*4)"),spacing5:t.create("--ftds-spacing-5","","SIZE","calc(0.25rem*5)"),spacing6:t.create("--ftds-spacing-6","","SIZE","calc(0.25rem*6)"),spacing8:t.create("--ftds-spacing-8","","SIZE","calc(0.25rem*8)"),spacing10:t.create("--ftds-spacing-10","","SIZE","calc(0.25rem*10)"),spacing12:t.create("--ftds-spacing-12","","SIZE","calc(0.25rem*12)"),spacing16:t.create("--ftds-spacing-16","","SIZE","calc(0.25rem*16)"),spacing20:t.create("--ftds-spacing-20","","SIZE","calc(0.25rem*20)"),spacing24:t.create("--ftds-spacing-24","","SIZE","calc(0.25rem*24)"),spacing28:t.create("--ftds-spacing-28","","SIZE","calc(0.25rem*28)"),spacing32:t.create("--ftds-spacing-32","","SIZE","calc(0.25rem*32)"),spacing05:t.create("--ftds-spacing-0-5","","SIZE","calc(0.25rem*0.5)"),borderRadiusS:t.create("--ftds-border-radius-s","","SIZE","4px"),borderRadiusM:t.create("--ftds-border-radius-m","","SIZE","8px"),borderRadiusL:t.create("--ftds-border-radius-l","","SIZE","12px"),borderRadiusXl:t.create("--ftds-border-radius-xl","","SIZE","16px"),borderRadiusPill:t.create("--ftds-border-radius-pill","","SIZE","999px"),borderRadiusRound:t.create("--ftds-border-radius-round","","SIZE","50%"),iconSize1:t.create("--ftds-icon-size-1","","SIZE","0.75rem"),iconSize2:t.create("--ftds-icon-size-2","","SIZE","1rem"),iconSize3:t.create("--ftds-icon-size-3","","SIZE","1.25rem"),iconSize4:t.create("--ftds-icon-size-4","","SIZE","1.5rem"),iconSize5:t.create("--ftds-icon-size-5","","SIZE","2rem"),iconSize6:t.create("--ftds-icon-size-6","","SIZE","3rem"),opacity0:t.create("--ftds-opacity-0","","NUMBER","0"),opacity4:t.create("--ftds-opacity-4","","NUMBER","0.04"),opacity6:t.create("--ftds-opacity-6","","NUMBER","0.06"),opacity8:t.create("--ftds-opacity-8","","NUMBER","0.08"),opacity12:t.create("--ftds-opacity-12","","NUMBER","0.12"),opacity16:t.create("--ftds-opacity-16","","NUMBER","0.16"),opacity24:t.create("--ftds-opacity-24","","NUMBER","0.24"),opacity32:t.create("--ftds-opacity-32","","NUMBER","0.32"),opacity40:t.create("--ftds-opacity-40","","NUMBER","0.4"),opacity48:t.create("--ftds-opacity-48","","NUMBER","0.48"),opacity80:t.create("--ftds-opacity-80","","NUMBER","0.8"),shadowElevation01:t.create("--ftds-shadow-elevation-01","","SHADOW","0px 1px 4px 0px rgba(0,0,0,0.06), 0px 1px 2px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation02:t.create("--ftds-shadow-elevation-02","","SHADOW","0px 4px 10px 0px rgba(0,0,0,0.06), 0px 2px 5px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation03:t.create("--ftds-shadow-elevation-03","","SHADOW","0px 6px 13px 0px rgba(0,0,0,0.06), 0px 3px 7px 0px rgba(0,0,0,0.14), 0px 1px 2px 0px rgba(0,0,0,0.06)"),shadowElevation04:t.create("--ftds-shadow-elevation-04","","SHADOW","0px 8px 16px 0px rgba(0,0,0,0.06), 0px 4px 9px 0px rgba(0,0,0,0.14), 0px 2px 3px 0px rgba(0,0,0,0.06)"),shadowElevation06:t.create("--ftds-shadow-elevation-06","","SHADOW","0px 12px 22px 0px rgba(0,0,0,0.06), 0px 6px 13px 0px rgba(0,0,0,0.14), 0px 4px 5px 0px rgba(0,0,0,0.06)"),shadowElevation08:t.create("--ftds-shadow-elevation-08","","SHADOW","0px 16px 28px 0px rgba(0,0,0,0.06), 0px 8px 17px 0px rgba(0,0,0,0.14), 0px 6px 7px 0px rgba(0,0,0,0.06)"),shadowElevation12:t.create("--ftds-shadow-elevation-12","","SHADOW","0px 22px 40px 0px rgba(0,0,0,0.06), 0px 12px 23px 0px rgba(0,0,0,0.14), 0px 10px 11px 0px rgba(0,0,0,0.06)"),shadowElevation16:t.create("--ftds-shadow-elevation-16","","SHADOW","0px 28px 52px 0px rgba(0,0,0,0.06), 0px 16px 29px 0px rgba(0,0,0,0.14), 0px 14px 15px 0px rgba(0,0,0,0.06)"),shadowElevation24:t.create("--ftds-shadow-elevation-24","","SHADOW","0px 40px 76px 0px rgba(0,0,0,0.06), 0px 24px 41px 0px rgba(0,0,0,0.14), 0px 22px 23px 0px rgba(0,0,0,0.06)")},Fi={fontFamily:t.create("--ftds-typography-display-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-display-font-weight","","UNKNOWN","600"),lineHeight:t.create("--ftds-typography-display-line-height","","SIZE","1.2"),fontSize:t.create("--ftds-typography-display-font-size","","SIZE","2.5rem"),letterSpacing:t.create("--ftds-typography-display-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:t.create("--ftds-typography-display-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-display-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-display-text-decoration","","UNKNOWN","none"),textCase:t.create("--ftds-typography-display-text-case","","UNKNOWN","none")},Ui={fontFamily:t.create("--ftds-typography-title-1-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-title-1-font-weight","","UNKNOWN","600"),lineHeight:t.create("--ftds-typography-title-1-line-height","","SIZE","1.2"),fontSize:t.create("--ftds-typography-title-1-font-size","","SIZE","1.5rem"),letterSpacing:t.create("--ftds-typography-title-1-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:t.create("--ftds-typography-title-1-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-title-1-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-title-1-text-decoration","","UNKNOWN","none"),textCase:t.create("--ftds-typography-title-1-text-case","","UNKNOWN","none")},Bi={fontFamily:t.create("--ftds-typography-title-2-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-title-2-font-weight","","UNKNOWN","500"),lineHeight:t.create("--ftds-typography-title-2-line-height","","SIZE","1.2"),fontSize:t.create("--ftds-typography-title-2-font-size","","SIZE","1.25rem"),letterSpacing:t.create("--ftds-typography-title-2-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:t.create("--ftds-typography-title-2-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-title-2-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-title-2-text-decoration","","UNKNOWN","none"),textCase:t.create("--ftds-typography-title-2-text-case","","UNKNOWN","none")},Hi={fontFamily:t.create("--ftds-typography-title-3-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-title-3-font-weight","","UNKNOWN","500"),lineHeight:t.create("--ftds-typography-title-3-line-height","","SIZE","1.2"),fontSize:t.create("--ftds-typography-title-3-font-size","","SIZE","1.125rem"),letterSpacing:t.create("--ftds-typography-title-3-letter-spacing","","SIZE","-0.01em"),paragraphSpacing:t.create("--ftds-typography-title-3-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-title-3-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-title-3-text-decoration","","UNKNOWN","none"),textCase:t.create("--ftds-typography-title-3-text-case","","UNKNOWN","none")},zi={fontFamily:t.create("--ftds-typography-body-1-regular-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-body-1-regular-font-weight","","UNKNOWN","400"),lineHeight:t.create("--ftds-typography-body-1-regular-line-height","","SIZE","1.35"),fontSize:t.create("--ftds-typography-body-1-regular-font-size","","SIZE","1rem"),letterSpacing:t.create("--ftds-typography-body-1-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:t.create("--ftds-typography-body-1-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-body-1-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-body-1-regular-text-decoration","","UNKNOWN","none"),textCase:t.create("--ftds-typography-body-1-regular-text-case","","UNKNOWN","none")},Gi={fontFamily:t.create("--ftds-typography-body-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-body-1-medium-font-weight","","UNKNOWN","500"),lineHeight:t.create("--ftds-typography-body-1-medium-line-height","","SIZE","1.35"),fontSize:t.create("--ftds-typography-body-1-medium-font-size","","SIZE","1rem"),letterSpacing:t.create("--ftds-typography-body-1-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:t.create("--ftds-typography-body-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-body-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-body-1-medium-text-decoration","","UNKNOWN","none"),textCase:t.create("--ftds-typography-body-1-medium-text-case","","UNKNOWN","none")},Wi={fontFamily:t.create("--ftds-typography-body-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-body-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:t.create("--ftds-typography-body-1-semibold-line-height","","SIZE","1.35"),fontSize:t.create("--ftds-typography-body-1-semibold-font-size","","SIZE","1rem"),letterSpacing:t.create("--ftds-typography-body-1-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:t.create("--ftds-typography-body-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-body-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-body-1-semibold-text-decoration","","UNKNOWN","none"),textCase:t.create("--ftds-typography-body-1-semibold-text-case","","UNKNOWN","none")},$i={fontFamily:t.create("--ftds-typography-body-2-regular-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-body-2-regular-font-weight","","UNKNOWN","400"),lineHeight:t.create("--ftds-typography-body-2-regular-line-height","","SIZE","1.35"),fontSize:t.create("--ftds-typography-body-2-regular-font-size","","SIZE","0.875rem"),letterSpacing:t.create("--ftds-typography-body-2-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:t.create("--ftds-typography-body-2-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-body-2-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-body-2-regular-text-decoration","","UNKNOWN","none"),textCase:t.create("--ftds-typography-body-2-regular-text-case","","UNKNOWN","none")},ji={fontFamily:t.create("--ftds-typography-body-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-body-2-medium-font-weight","","UNKNOWN","500"),lineHeight:t.create("--ftds-typography-body-2-medium-line-height","","SIZE","1.35"),fontSize:t.create("--ftds-typography-body-2-medium-font-size","","SIZE","0.875rem"),letterSpacing:t.create("--ftds-typography-body-2-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:t.create("--ftds-typography-body-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-body-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-body-2-medium-text-decoration","","UNKNOWN","none"),textCase:t.create("--ftds-typography-body-2-medium-text-case","","UNKNOWN","none")},Cc={fontFamily:t.create("--ftds-typography-body-2-medium-underline-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-body-2-medium-underline-font-weight","","UNKNOWN","500"),lineHeight:t.create("--ftds-typography-body-2-medium-underline-line-height","","SIZE","1.35"),fontSize:t.create("--ftds-typography-body-2-medium-underline-font-size","","SIZE","0.875rem"),letterSpacing:t.create("--ftds-typography-body-2-medium-underline-letter-spacing","","SIZE","normal"),paragraphSpacing:t.create("--ftds-typography-body-2-medium-underline-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-body-2-medium-underline-paragraph-indent","","UNKNOWN","0"),textCase:t.create("--ftds-typography-body-2-medium-underline-text-case","","UNKNOWN","none"),textDecoration:t.create("--ftds-typography-body-2-medium-underline-text-decoration","","UNKNOWN","underline")},Vi={fontFamily:t.create("--ftds-typography-body-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-body-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:t.create("--ftds-typography-body-2-semibold-line-height","","SIZE","1.35"),fontSize:t.create("--ftds-typography-body-2-semibold-font-size","","SIZE","0.875rem"),letterSpacing:t.create("--ftds-typography-body-2-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:t.create("--ftds-typography-body-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-body-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-body-2-semibold-text-decoration","","UNKNOWN","none"),textCase:t.create("--ftds-typography-body-2-semibold-text-case","","UNKNOWN","none")},Ki={fontFamily:t.create("--ftds-typography-caption-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-caption-1-medium-font-weight","","UNKNOWN","500"),lineHeight:t.create("--ftds-typography-caption-1-medium-line-height","","SIZE","1.3"),fontSize:t.create("--ftds-typography-caption-1-medium-font-size","","SIZE","0.75rem"),letterSpacing:t.create("--ftds-typography-caption-1-medium-letter-spacing","","SIZE","normal"),textCase:t.create("--ftds-typography-caption-1-medium-text-case","","UNKNOWN","none"),paragraphSpacing:t.create("--ftds-typography-caption-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-caption-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-caption-1-medium-text-decoration","","UNKNOWN","none")},Zi={fontFamily:t.create("--ftds-typography-caption-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-caption-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:t.create("--ftds-typography-caption-1-semibold-line-height","","SIZE","1.3"),fontSize:t.create("--ftds-typography-caption-1-semibold-font-size","","SIZE","0.75rem"),letterSpacing:t.create("--ftds-typography-caption-1-semibold-letter-spacing","","SIZE","normal"),textCase:t.create("--ftds-typography-caption-1-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:t.create("--ftds-typography-caption-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-caption-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-caption-1-semibold-text-decoration","","UNKNOWN","none")},qi={fontFamily:t.create("--ftds-typography-caption-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-caption-2-medium-font-weight","","UNKNOWN","500"),lineHeight:t.create("--ftds-typography-caption-2-medium-line-height","","SIZE","1.3"),fontSize:t.create("--ftds-typography-caption-2-medium-font-size","","SIZE","0.6875rem"),letterSpacing:t.create("--ftds-typography-caption-2-medium-letter-spacing","","SIZE","normal"),textCase:t.create("--ftds-typography-caption-2-medium-text-case","","UNKNOWN","none"),paragraphSpacing:t.create("--ftds-typography-caption-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-caption-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-caption-2-medium-text-decoration","","UNKNOWN","none")},Yi={fontFamily:t.create("--ftds-typography-caption-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-caption-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:t.create("--ftds-typography-caption-2-semibold-line-height","","SIZE","1.3"),fontSize:t.create("--ftds-typography-caption-2-semibold-font-size","","SIZE","0.6875rem"),letterSpacing:t.create("--ftds-typography-caption-2-semibold-letter-spacing","","SIZE","normal"),textCase:t.create("--ftds-typography-caption-2-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:t.create("--ftds-typography-caption-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-caption-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-caption-2-semibold-text-decoration","","UNKNOWN","none")},Qi={fontFamily:t.create("--ftds-typography-caption-2-bold-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-caption-2-bold-font-weight","","UNKNOWN","700"),lineHeight:t.create("--ftds-typography-caption-2-bold-line-height","","SIZE","1.3"),fontSize:t.create("--ftds-typography-caption-2-bold-font-size","","SIZE","0.6875rem"),letterSpacing:t.create("--ftds-typography-caption-2-bold-letter-spacing","","SIZE","normal"),textCase:t.create("--ftds-typography-caption-2-bold-text-case","","UNKNOWN","none"),paragraphSpacing:t.create("--ftds-typography-caption-2-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-caption-2-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-caption-2-bold-text-decoration","","UNKNOWN","none")},Do={display:Fi,"title-1":Ui,"title-2":Bi,"title-3":Hi,"body-1-regular":zi,"body-1-medium":Gi,"body-1-semibold":Wi,"body-2-regular":$i,"body-2-medium":ji,"body-2-medium-underline":Cc,"body-2-semibold":Vi,"caption-1-medium":Ki,"caption-1-semibold":Zi,"caption-2-medium":qi,"caption-2-semibold":Yi,"caption-2-bold":Qi};var l={backgroundActionPrimary:t.extend("--ftds-background-action-primary","Used as backgorund of primary action components.",i.colorBrand0),backgroundErrorSubtle:t.extend("--ftds-background-error-subtle","Used as background of subtle error components.",i.colorRed10),backgroundInfoSubtle:t.extend("--ftds-background-info-subtle","Used as background of subtle information components.",i.colorCyan10),backgroundWarningSubtle:t.extend("--ftds-background-warning-subtle","Used as background of subtle information components.",i.colorOrange10),backgroundSuccessSubtle:t.extend("--ftds-background-success-subtle","Used as background of subtle success components.",i.colorGreen10),backgroundGlobalSurface:t.extend("--ftds-background-global-surface","Used as app background.",i.colorWhite),backgroundGlobalOnSurface:t.extend("--ftds-background-global-on-surface","Used as background on element on the base background, like cards.",i.colorGray10),backgroundGlobalOnSurfaceDark:t.extend("--ftds-background-global-on-surface-dark","Used as background on element that need background separation.",i.colorGray30),contentActionPrimary:t.extend("--ftds-content-action-primary","Used on label of primary action on light surface.",i.colorBrand0),contentWarningPrimary:t.extend("--ftds-content-warning-primary","Used on label of warning messages on light surface.",i.colorOrange200),contentWarningIconOnly:t.extend("--ftds-content-warning-icon-only","Used on warning status icons alone",i.colorOrange0),contentErrorPrimary:t.extend("--ftds-content-error-primary","Used on label of error messages on light surface.",i.colorRed0),contentErrorIconOnly:t.extend("--ftds-content-error-icon-only","Used on error status icons alone",i.colorRed70),contentInfoPrimary:t.extend("--ftds-content-info-primary","Used on label of information messages on light surface.",i.colorCyan200),contentInfoIconOnly:t.extend("--ftds-content-info-icon-only","Used on info status icons alone",i.colorCyan0),contentSuccessPrimary:t.extend("--ftds-content-success-primary","Used on label of success messages on light surface.",i.colorGreen200),contentSuccessIconOnly:t.extend("--ftds-content-success-icon-only","Used on success status icons alone",i.colorGreen0),contentGlobalPrimary:t.extend("--ftds-content-global-primary","Used for main content on the page.",i.colorGray500),contentGlobalSecondary:t.extend("--ftds-content-global-secondary",`Used for secondary content, often paired with primary content.
|
|
183
|
-
Also for action icons.`,i.colorGray200),contentGlobalSubtle:t.extend("--ftds-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",i.colorGray0),contentGlobalOnColor:t.extend("--ftds-content-global-on-color","Used for content on a dominant color.",i.colorWhite),borderActionPrimary:t.extend("--ftds-border-action-primary","Used as border for primary action components.",i.colorBrand0),borderActionFocusRing:t.extend("--ftds-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",i.colorCyan0),borderWarningPrimary:t.extend("--ftds-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",i.colorOrange200),borderWarningSubtle:t.extend("--ftds-border-warning-subtle","Used as border for warning components.",i.colorOrange30),borderSuccessPrimary:t.extend("--ftds-border-success-primary","Used as border for success buttons.",i.colorGreen200),borderSuccessSubtle:t.extend("--ftds-border-success-subtle","Used as border for success components.",i.colorGreen30),borderErrorPrimary:t.extend("--ftds-border-error-primary","Used as border for text fields in error states.",i.colorRed0),borderErrorSubtle:t.extend("--ftds-border-error-subtle","Used as border for error components.",i.colorRed30),borderInfoPrimary:t.extend("--ftds-border-info-primary","Used as border for buttons in info color.",i.colorCyan200),borderInfoSubtle:t.extend("--ftds-border-info-subtle","Used as border for information components.",i.colorCyan30),borderGlobalPrimary:t.extend("--ftds-border-global-primary","Used as border for elements/areas filled with background.global.on-surface-dark",i.colorGray50),borderGlobalSecondary:t.extend("--ftds-border-global-secondary","Used as border for elements/areas filled with background.global.on-surface",i.colorGray40),borderGlobalSubtle:t.extend("--ftds-border-global-subtle","Used as border to deliminate an area/element filled with background.global.surface and separators.",i.colorGray30),borderInputPrimary:t.extend("--ftds-border-input-primary","Used as border for checkboxes and radio buttons",i.colorGray80),borderNeutralPrimary:t.extend("--ftds-border-neutral-primary","Used as border for neutral secondary buttons",i.colorGray200)};var Ah={largeHeight:t.create("--ftds-button-large-height","","SIZE","40px"),largeHorizontalPadding:t.extend("--ftds-button-large-horizontal-padding","",i.spacing4),largeGap:t.extend("--ftds-button-large-gap","",i.spacing2),largeBorderRadius:t.extend("--ftds-button-large-border-radius","",i.borderRadiusS),largeIconSize:t.extend("--ftds-button-large-icon-size","",i.iconSize3),largeBorderWidth:t.create("--ftds-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:t.create("--ftds-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:t.create("--ftds-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:t.create("--ftds-button-large-icon-only-width","","SIZE","40px"),mediumHeight:t.create("--ftds-button-medium-height","","SIZE","30px"),mediumHorizontalPadding:t.extend("--ftds-button-medium-horizontal-padding","",i.spacing3),mediumGap:t.extend("--ftds-button-medium-gap","",i.spacing2),mediumBorderRadius:t.extend("--ftds-button-medium-border-radius","",i.borderRadiusS),mediumIconSize:t.extend("--ftds-button-medium-icon-size","",i.iconSize2),mediumBorderWidth:t.create("--ftds-button-medium-border-width","","SIZE","1px"),mediumFocusOutlineOffset:t.create("--ftds-button-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:t.create("--ftds-button-medium-focus-outline-width","","SIZE","2px"),mediumIconOnlyWidth:t.create("--ftds-button-medium-icon-only-width","","SIZE","30px"),smallHeight:t.create("--ftds-button-small-height","","SIZE","20px"),smallHorizontalPadding:t.extend("--ftds-button-small-horizontal-padding","",i.spacing2),smallGap:t.extend("--ftds-button-small-gap","",i.spacing1),smallBorderRadius:t.extend("--ftds-button-small-border-radius","",i.borderRadiusS),smallIconSize:t.extend("--ftds-button-small-icon-size","",i.iconSize1),smallBorderWidth:t.create("--ftds-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:t.create("--ftds-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:t.create("--ftds-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:t.create("--ftds-button-small-icon-only-width","","SIZE","20px"),xSmallHeight:t.create("--ftds-button-x-small-height","","SIZE","16px"),xSmallIconSize:t.extend("--ftds-button-x-small-icon-size","",i.iconSize1),xSmallFocusOutlineOffset:t.create("--ftds-button-x-small-focus-outline-offset","","SIZE","2px"),xSmallFocusOutlineWidth:t.create("--ftds-button-x-small-focus-outline-width","","SIZE","2px"),xSmallIconOnlyWidth:t.create("--ftds-button-x-small-icon-only-width","","SIZE","16px"),roundBorderRadius:t.extend("--ftds-button-round-border-radius","",i.borderRadiusPill),primaryBrandBackgroundColor:t.extend("--ftds-button-primary-brand-background-color","",l.backgroundActionPrimary),primaryBrandColor:t.extend("--ftds-button-primary-brand-color","",l.contentGlobalOnColor),primaryBrandIconColor:t.extend("--ftds-button-primary-brand-icon-color","",l.contentGlobalOnColor),primaryBrandStateLayerColor:t.extend("--ftds-button-primary-brand-state-layer-color","",l.contentGlobalOnColor),primaryBrandHoverStateLayerOpacity:t.extend("--ftds-button-primary-brand-hover-state-layer-opacity","",i.opacity16),primaryBrandFocusStateLayerOpacity:t.extend("--ftds-button-primary-brand-focus-state-layer-opacity","",i.opacity16),primaryBrandActiveStateLayerOpacity:t.extend("--ftds-button-primary-brand-active-state-layer-opacity","",i.opacity24),primaryBrandDisabledComponentOpacity:t.extend("--ftds-button-primary-brand-disabled-component-opacity","",i.opacity40),focusFocusRingColor:t.extend("--ftds-button-focus-focus-ring-color","",l.borderActionFocusRing),tertiaryBrandBackgroundColor:t.create("--ftds-button-tertiary-brand-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryBrandColor:t.extend("--ftds-button-tertiary-brand-color","",l.contentActionPrimary),tertiaryBrandIconColor:t.extend("--ftds-button-tertiary-brand-icon-color","",l.contentActionPrimary),tertiaryBrandStateLayerColor:t.extend("--ftds-button-tertiary-brand-state-layer-color","",l.contentActionPrimary),tertiaryBrandHoverStateLayerOpacity:t.extend("--ftds-button-tertiary-brand-hover-state-layer-opacity","",i.opacity8),tertiaryBrandFocusStateLayerOpacity:t.extend("--ftds-button-tertiary-brand-focus-state-layer-opacity","",i.opacity8),tertiaryBrandActiveStateLayerOpacity:t.extend("--ftds-button-tertiary-brand-active-state-layer-opacity","",i.opacity16),tertiaryBrandDisabledComponentOpacity:t.extend("--ftds-button-tertiary-brand-disabled-component-opacity","",i.opacity40),tertiaryInfoBackgroundColor:t.create("--ftds-button-tertiary-info-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryInfoColor:t.extend("--ftds-button-tertiary-info-color","",l.contentInfoPrimary),tertiaryInfoIconColor:t.extend("--ftds-button-tertiary-info-icon-color","",l.contentInfoPrimary),tertiaryInfoStateLayerColor:t.extend("--ftds-button-tertiary-info-state-layer-color","",l.contentInfoPrimary),tertiaryInfoFocusStateLayerOpacity:t.extend("--ftds-button-tertiary-info-focus-state-layer-opacity","",i.opacity8),tertiaryInfoHoverStateLayerOpacity:t.extend("--ftds-button-tertiary-info-hover-state-layer-opacity","",i.opacity8),tertiaryInfoActiveStateLayerOpacity:t.extend("--ftds-button-tertiary-info-active-state-layer-opacity","",i.opacity16),tertiaryInfoDisabledComponentOpacity:t.extend("--ftds-button-tertiary-info-disabled-component-opacity","",i.opacity40),tertiarySuccessBackgroundColor:t.create("--ftds-button-tertiary-success-background-color","","COLOR","rgba(0,0,0,0)"),tertiarySuccessColor:t.extend("--ftds-button-tertiary-success-color","",l.contentSuccessPrimary),tertiarySuccessIconColor:t.extend("--ftds-button-tertiary-success-icon-color","",l.contentSuccessPrimary),tertiarySuccessStateLayerColor:t.extend("--ftds-button-tertiary-success-state-layer-color","",l.contentSuccessPrimary),tertiarySuccessHoverStateLayerOpacity:t.extend("--ftds-button-tertiary-success-hover-state-layer-opacity","",i.opacity8),tertiarySuccessFocusStateLayerOpacity:t.extend("--ftds-button-tertiary-success-focus-state-layer-opacity","",i.opacity8),tertiarySuccessActiveStateLayerOpacity:t.extend("--ftds-button-tertiary-success-active-state-layer-opacity","",i.opacity16),tertiarySuccessDisabledComponentOpacity:t.extend("--ftds-button-tertiary-success-disabled-component-opacity","",i.opacity40),tertiaryWarningBackgroundColor:t.create("--ftds-button-tertiary-warning-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryWarningColor:t.extend("--ftds-button-tertiary-warning-color","",l.contentWarningPrimary),tertiaryWarningIconColor:t.extend("--ftds-button-tertiary-warning-icon-color","",l.contentWarningPrimary),tertiaryWarningStateLayerColor:t.extend("--ftds-button-tertiary-warning-state-layer-color","",l.contentWarningPrimary),tertiaryWarningHoverStateLayerOpacity:t.extend("--ftds-button-tertiary-warning-hover-state-layer-opacity","",i.opacity8),tertiaryWarningFocusStateLayerOpacity:t.extend("--ftds-button-tertiary-warning-focus-state-layer-opacity","",i.opacity8),tertiaryWarningActiveStateLayerOpacity:t.extend("--ftds-button-tertiary-warning-active-state-layer-opacity","",i.opacity16),tertiaryWarningDisabledComponentOpacity:t.extend("--ftds-button-tertiary-warning-disabled-component-opacity","",i.opacity40),tertiaryErrorBackgroundColor:t.create("--ftds-button-tertiary-error-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryErrorColor:t.extend("--ftds-button-tertiary-error-color","",l.contentErrorPrimary),tertiaryErrorIconColor:t.extend("--ftds-button-tertiary-error-icon-color","",l.contentErrorPrimary),tertiaryErrorStateLayerColor:t.extend("--ftds-button-tertiary-error-state-layer-color","",l.contentErrorPrimary),tertiaryErrorHoverStateLayerOpacity:t.extend("--ftds-button-tertiary-error-hover-state-layer-opacity","",i.opacity8),tertiaryErrorFocusStateLayerOpacity:t.extend("--ftds-button-tertiary-error-focus-state-layer-opacity","",i.opacity8),tertiaryErrorActiveStateLayerOpacity:t.extend("--ftds-button-tertiary-error-active-state-layer-opacity","",i.opacity16),tertiaryErrorDisabledComponentOpacity:t.extend("--ftds-button-tertiary-error-disabled-component-opacity","",i.opacity40),tertiaryNeutralBackgroundColor:t.create("--ftds-button-tertiary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryNeutralIconColor:t.extend("--ftds-button-tertiary-neutral-icon-color","",l.contentGlobalSecondary),tertiaryNeutralColor:t.extend("--ftds-button-tertiary-neutral-color","",l.contentGlobalSecondary),tertiaryNeutralStateLayerColor:t.extend("--ftds-button-tertiary-neutral-state-layer-color","",l.contentGlobalSecondary),tertiaryNeutralHoverStateLayerOpacity:t.extend("--ftds-button-tertiary-neutral-hover-state-layer-opacity","",i.opacity8),tertiaryNeutralFocusStateLayerOpacity:t.extend("--ftds-button-tertiary-neutral-focus-state-layer-opacity","",i.opacity8),tertiaryNeutralActiveStateLayerOpacity:t.extend("--ftds-button-tertiary-neutral-active-state-layer-opacity","",i.opacity16),tertiaryNeutralDisabledComponentOpacity:t.extend("--ftds-button-tertiary-neutral-disabled-component-opacity","",i.opacity40),secondaryBrandBackgroundColor:t.create("--ftds-button-secondary-brand-background-color","","COLOR","rgba(0,0,0,0)"),secondaryBrandColor:t.extend("--ftds-button-secondary-brand-color","",l.contentActionPrimary),secondaryBrandIconColor:t.extend("--ftds-button-secondary-brand-icon-color","",l.contentActionPrimary),secondaryBrandStateLayerColor:t.extend("--ftds-button-secondary-brand-state-layer-color","",l.contentActionPrimary),secondaryBrandHoverStateLayerOpacity:t.extend("--ftds-button-secondary-brand-hover-state-layer-opacity","",i.opacity8),secondaryBrandFocusStateLayerOpacity:t.extend("--ftds-button-secondary-brand-focus-state-layer-opacity","",i.opacity8),secondaryBrandActiveStateLayerOpacity:t.extend("--ftds-button-secondary-brand-active-state-layer-opacity","",i.opacity16),secondaryBrandDisabledComponentOpacity:t.extend("--ftds-button-secondary-brand-disabled-component-opacity","",i.opacity40),secondaryBrandBorderColor:t.extend("--ftds-button-secondary-brand-border-color","",l.borderActionPrimary),secondaryNeutralHoverStateLayerOpacity:t.extend("--ftds-button-secondary-neutral-hover-state-layer-opacity","",i.opacity8),secondaryNeutralFocusStateLayerOpacity:t.extend("--ftds-button-secondary-neutral-focus-state-layer-opacity","",i.opacity8),secondaryNeutralActiveStateLayerOpacity:t.extend("--ftds-button-secondary-neutral-active-state-layer-opacity","",i.opacity16),secondaryNeutralDisabledComponentOpacity:t.extend("--ftds-button-secondary-neutral-disabled-component-opacity","",i.opacity40),secondaryNeutralBackgroundColor:t.create("--ftds-button-secondary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),secondaryNeutralColor:t.extend("--ftds-button-secondary-neutral-color","",l.contentGlobalSecondary),secondaryNeutralIconColor:t.extend("--ftds-button-secondary-neutral-icon-color","",l.contentGlobalSecondary),secondaryNeutralStateLayerColor:t.extend("--ftds-button-secondary-neutral-state-layer-color","",l.contentGlobalSecondary),secondaryNeutralBorderColor:t.extend("--ftds-button-secondary-neutral-border-color","",l.borderNeutralPrimary),secondaryInfoHoverStateLayerOpacity:t.extend("--ftds-button-secondary-info-hover-state-layer-opacity","",i.opacity8),secondaryInfoFocusStateLayerOpacity:t.extend("--ftds-button-secondary-info-focus-state-layer-opacity","",i.opacity8),secondaryInfoActiveStateLayerOpacity:t.extend("--ftds-button-secondary-info-active-state-layer-opacity","",i.opacity16),secondaryInfoDisabledComponentOpacity:t.extend("--ftds-button-secondary-info-disabled-component-opacity","",i.opacity40),secondaryInfoBackgroundColor:t.create("--ftds-button-secondary-info-background-color","","COLOR","rgba(0,0,0,0)"),secondaryInfoBorderColor:t.extend("--ftds-button-secondary-info-border-color","",l.borderInfoPrimary),secondaryInfoColor:t.extend("--ftds-button-secondary-info-color","",l.contentInfoPrimary),secondaryInfoIconColor:t.extend("--ftds-button-secondary-info-icon-color","",l.contentInfoPrimary),secondaryInfoStateLayerColor:t.extend("--ftds-button-secondary-info-state-layer-color","",l.contentInfoPrimary),secondarySuccessHoverStateLayerOpacity:t.extend("--ftds-button-secondary-success-hover-state-layer-opacity","",i.opacity8),secondarySuccessFocusStateLayerOpacity:t.extend("--ftds-button-secondary-success-focus-state-layer-opacity","",i.opacity8),secondarySuccessActiveStateLayerOpacity:t.extend("--ftds-button-secondary-success-active-state-layer-opacity","",i.opacity16),secondarySuccessDisabledComponentOpacity:t.extend("--ftds-button-secondary-success-disabled-component-opacity","",i.opacity40),secondarySuccessBackgroundColor:t.create("--ftds-button-secondary-success-background-color","","COLOR","rgba(0,0,0,0)"),secondarySuccessBorderColor:t.extend("--ftds-button-secondary-success-border-color","",l.borderSuccessPrimary),secondarySuccessColor:t.extend("--ftds-button-secondary-success-color","",l.contentSuccessPrimary),secondarySuccessIconColor:t.extend("--ftds-button-secondary-success-icon-color","",l.contentSuccessPrimary),secondarySuccessStateLayerColor:t.extend("--ftds-button-secondary-success-state-layer-color","",l.contentSuccessPrimary),secondaryWarningHoverStateLayerOpacity:t.extend("--ftds-button-secondary-warning-hover-state-layer-opacity","",i.opacity8),secondaryWarningFocusStateLayerOpacity:t.extend("--ftds-button-secondary-warning-focus-state-layer-opacity","",i.opacity8),secondaryWarningActiveStateLayerOpacity:t.extend("--ftds-button-secondary-warning-active-state-layer-opacity","",i.opacity16),secondaryWarningDisabledComponentOpacity:t.extend("--ftds-button-secondary-warning-disabled-component-opacity","",i.opacity40),secondaryWarningBackgroundColor:t.create("--ftds-button-secondary-warning-background-color","","COLOR","rgba(0,0,0,0)"),secondaryWarningBorderColor:t.extend("--ftds-button-secondary-warning-border-color","",l.borderWarningPrimary),secondaryWarningColor:t.extend("--ftds-button-secondary-warning-color","",l.contentWarningPrimary),secondaryWarningIconColor:t.extend("--ftds-button-secondary-warning-icon-color","",l.contentWarningPrimary),secondaryWarningStateLayerColor:t.extend("--ftds-button-secondary-warning-state-layer-color","",l.contentWarningPrimary),secondaryErrorHoverStateLayerOpacity:t.extend("--ftds-button-secondary-error-hover-state-layer-opacity","",i.opacity8),secondaryErrorFocusStateLayerOpacity:t.extend("--ftds-button-secondary-error-focus-state-layer-opacity","",i.opacity8),secondaryErrorActiveStateLayerOpacity:t.extend("--ftds-button-secondary-error-active-state-layer-opacity","",i.opacity16),secondaryErrorDisabledComponentOpacity:t.extend("--ftds-button-secondary-error-disabled-component-opacity","",i.opacity40),secondaryErrorBackgroundColor:t.create("--ftds-button-secondary-error-background-color","","COLOR","rgba(0,0,0,0)"),secondaryErrorBorderColor:t.extend("--ftds-button-secondary-error-border-color","",l.contentErrorPrimary),secondaryErrorColor:t.extend("--ftds-button-secondary-error-color","",l.contentErrorPrimary),secondaryErrorIconColor:t.extend("--ftds-button-secondary-error-icon-color","",l.contentErrorPrimary),secondaryErrorStateLayerColor:t.extend("--ftds-button-secondary-error-state-layer-color","",l.contentErrorPrimary)};var Lh={borderRadius:t.extend("--ftds-card-border-radius","",i.borderRadiusS),focusFocusRingColor:t.extend("--ftds-card-focus-focus-ring-color","",l.borderActionFocusRing),focusOutlineWidth:t.create("--ftds-card-focus-outline-width","","SIZE","2px"),focusOutlineOffset:t.create("--ftds-card-focus-outline-offset","","SIZE","2px"),headerTitleHorizontalPadding:t.extend("--ftds-card-header-title-horizontal-padding","",i.spacing4),headerTitleVerticalPadding:t.extend("--ftds-card-header-title-vertical-padding","",i.spacing3),headerActionHorizontalPadding:t.extend("--ftds-card-header-action-horizontal-padding","",i.spacing2),headerActionVerticalPadding:t.extend("--ftds-card-header-action-vertical-padding","",i.spacing2),headerActionGap:t.extend("--ftds-card-header-action-gap","",i.spacing1),bodyHorizontalPadding:t.extend("--ftds-card-body-horizontal-padding","",i.spacing4),bodyVerticalPadding:t.extend("--ftds-card-body-vertical-padding","",i.spacing4),footerActionHorizontalPadding:t.extend("--ftds-card-footer-action-horizontal-padding","",i.spacing2),footerActionVerticalPadding:t.extend("--ftds-card-footer-action-vertical-padding","",i.spacing2),footerActionGap:t.extend("--ftds-card-footer-action-gap","",i.spacing1),footerContentHorizontalPadding:t.extend("--ftds-card-footer-content-horizontal-padding","",i.spacing4),footerContentVerticalPadding:t.extend("--ftds-card-footer-content-vertical-padding","",i.spacing3),sideBarHorizontalPadding:t.extend("--ftds-card-side-bar-horizontal-padding","",i.spacing1),sideBarVerticalPadding:t.extend("--ftds-card-side-bar-vertical-padding","",i.spacing1),sideBarGap:t.extend("--ftds-card-side-bar-gap","",i.spacing1),nonSelectableBorderWidth:t.create("--ftds-card-non-selectable-border-width","","SIZE","1px"),nonSelectableStateLayerColor:t.extend("--ftds-card-non-selectable-state-layer-color","",l.contentGlobalPrimary),nonSelectableDefaultBackgroundColor:t.extend("--ftds-card-non-selectable-default-background-color","",l.backgroundGlobalOnSurface),nonSelectableDefaultBorderColor:t.extend("--ftds-card-non-selectable-default-border-color","",l.borderGlobalSecondary),nonSelectableHoverBorderColor:t.extend("--ftds-card-non-selectable-hover-border-color","",l.borderGlobalPrimary),nonSelectableHoverStateLayerOpacity:t.extend("--ftds-card-non-selectable-hover-state-layer-opacity","",i.opacity4),nonSelectableFocusBorderColor:t.extend("--ftds-card-non-selectable-focus-border-color","",l.borderGlobalPrimary),nonSelectableFocusStateLayerOpacity:t.extend("--ftds-card-non-selectable-focus-state-layer-opacity","",i.opacity4),internalBorderColor:t.extend("--ftds-card-internal-border-color","",l.borderGlobalSecondary),selectableUnselectedBorderWidth:t.create("--ftds-card-selectable-unselected-border-width","","SIZE","1px"),selectableUnselectedStateLayerColor:t.extend("--ftds-card-selectable-unselected-state-layer-color","",l.contentGlobalPrimary),selectableUnselectedDefaultBackgroundColor:t.extend("--ftds-card-selectable-unselected-default-background-color","",l.backgroundGlobalOnSurface),selectableUnselectedDefaultBorderColor:t.extend("--ftds-card-selectable-unselected-default-border-color","",l.borderGlobalSecondary),selectableUnselectedHoverBorderColor:t.extend("--ftds-card-selectable-unselected-hover-border-color","",l.borderGlobalPrimary),selectableUnselectedHoverStateLayerOpacity:t.extend("--ftds-card-selectable-unselected-hover-state-layer-opacity","",i.opacity4),selectableUnselectedFocusBorderColor:t.extend("--ftds-card-selectable-unselected-focus-border-color","",l.borderGlobalPrimary),selectableUnselectedFocusStateLayerOpacity:t.extend("--ftds-card-selectable-unselected-focus-state-layer-opacity","",i.opacity4),selectableSelectedBorderColor:t.extend("--ftds-card-selectable-selected-border-color","",l.borderActionPrimary),selectableSelectedBorderWidth:t.create("--ftds-card-selectable-selected-border-width","","SIZE","2px"),selectableSelectedStateLayerColor:t.extend("--ftds-card-selectable-selected-state-layer-color","",l.contentActionPrimary),selectableSelectedBackgroundColor:t.extend("--ftds-card-selectable-selected-background-color","",l.backgroundGlobalSurface),selectableSelectedDefaultStateLayerOpacity:t.extend("--ftds-card-selectable-selected-default-state-layer-opacity","",i.opacity4),selectableSelectedHoverStateLayerOpacity:t.extend("--ftds-card-selectable-selected-hover-state-layer-opacity","",i.opacity4),selectableSelectedFocusStateLayerOpacity:t.extend("--ftds-card-selectable-selected-focus-state-layer-opacity","",i.opacity4),internalBorderWidth:t.create("--ftds-card-internal-border-width","","SIZE","1px")};var Dh={loadMoreIconSize:t.extend("--ftds-tree-list-load-more-icon-size","",i.iconSize2),loadMorePaddingLeft:t.extend("--ftds-tree-list-load-more-padding-left","",i.spacing6),loadMoreUnselectedDefaultBorderColor:t.extend("--ftds-tree-list-load-more-unselected-default-border-color","",l.borderGlobalSubtle),loadMoreIconColor:t.extend("--ftds-tree-list-load-more-icon-color","",l.contentActionPrimary),loadMoreLabelColor:t.extend("--ftds-tree-list-load-more-label-color","",l.contentActionPrimary),loadMoreHoverBorderColor:t.extend("--ftds-tree-list-load-more-hover-border-color","",i.colorBrand20),loadMoreHoverBackgroundColor:t.create("--ftds-tree-list-load-more-hover-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreActiveBorderColor:t.extend("--ftds-tree-list-load-more-active-border-color","",i.colorBrand20),loadMoreActiveBackgroundColor:t.create("--ftds-tree-list-load-more-active-background-color","","COLOR","rgba(157,32,123,0.16)"),loadMoreFocusBackgroundColor:t.create("--ftds-tree-list-load-more-focus-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreDescendantOfSelectedDefaultBackgroundColor:t.create("--ftds-tree-list-load-more-descendant-of-selected-default-background-color","","COLOR","rgba(113,113,142,0.08)"),loadMoreDescendantOfSelectedDefaultBorderColor:t.extend("--ftds-tree-list-load-more-descendant-of-selected-default-border-color","",l.borderGlobalPrimary),loadMoreLabelMarginLeft:t.extend("--ftds-tree-list-load-more-label-margin-left","",i.spacing1),nodeIconSize:t.extend("--ftds-tree-list-node-icon-size","",i.iconSize2),nodeHeight:t.create("--ftds-tree-list-node-height","","SIZE","36px"),nodeParentLabelMarginLeft:t.extend("--ftds-tree-list-node-parent-label-margin-left","",i.spacing2),nodeParentLabelMarginRight:t.extend("--ftds-tree-list-node-parent-label-margin-right","",i.spacing2),nodeRootPaddingLeft:t.extend("--ftds-tree-list-node-root-padding-left","",i.spacing6),nodeChildPaddingLeft:t.extend("--ftds-tree-list-node-child-padding-left","",i.spacing5),nodeLeafPaddingLeft:t.extend("--ftds-tree-list-node-leaf-padding-left","",i.spacing6),nodeUnselectedDefaultBorderColor:t.extend("--ftds-tree-list-node-unselected-default-border-color","",l.borderGlobalSubtle),nodeUnselectedIconColor:t.extend("--ftds-tree-list-node-unselected-icon-color","",l.contentGlobalSecondary),nodeUnselectedLabelColor:t.extend("--ftds-tree-list-node-unselected-label-color","",l.contentGlobalSecondary),nodeUnselectedCounterColor:t.extend("--ftds-tree-list-node-unselected-counter-color","",l.contentGlobalSecondary),nodeHoverBorderColor:t.extend("--ftds-tree-list-node-hover-border-color","",l.borderActionPrimary),nodeFocusFocusRingColor:t.extend("--ftds-tree-list-node-focus-focus-ring-color","",l.borderActionFocusRing),nodeFocusOutlineWidth:t.create("--ftds-tree-list-node-focus-outline-width","","SIZE","2px"),nodeSelectedDefaultBorderColor:t.extend("--ftds-tree-list-node-selected-default-border-color","",l.borderGlobalPrimary),nodeSelectedIconColor:t.extend("--ftds-tree-list-node-selected-icon-color","",l.contentGlobalSecondary),nodeSelectedLabelColor:t.extend("--ftds-tree-list-node-selected-label-color","",l.contentGlobalPrimary),nodeSelectedCounterColor:t.extend("--ftds-tree-list-node-selected-counter-color","",l.contentGlobalSecondary),nodeSelectedBackgroundColor:t.create("--ftds-tree-list-node-selected-background-color","","COLOR","rgba(113,113,142,0.24)"),nodeDescendantOfSelectedDefaultBorderColor:t.extend("--ftds-tree-list-node-descendant-of-selected-default-border-color","",l.borderGlobalPrimary),nodeDescendantOfSelectedIconColor:t.extend("--ftds-tree-list-node-descendant-of-selected-icon-color","",l.contentGlobalSecondary),nodeDescendantOfSelectedLabelColor:t.extend("--ftds-tree-list-node-descendant-of-selected-label-color","",l.contentGlobalSecondary),nodeDescendantOfSelectedCounterColor:t.extend("--ftds-tree-list-node-descendant-of-selected-counter-color","",l.contentGlobalSecondary),nodeDescendantOfSelectedBackgroundColor:t.create("--ftds-tree-list-node-descendant-of-selected-background-color","","COLOR","rgba(113,113,142,0.08)"),nodeBorderWidth:t.create("--ftds-tree-list-node-border-width","","SIZE","1px"),headerSectionPaddingLeft:t.extend("--ftds-tree-list-header-section-padding-left","",i.spacing6),headerSectionPaddingRight:t.extend("--ftds-tree-list-header-section-padding-right","",i.spacing3),headerSectionHorizontalGap:t.extend("--ftds-tree-list-header-section-horizontal-gap","",i.spacing2),headerSectionMarginBottom:t.extend("--ftds-tree-list-header-section-margin-bottom","",i.spacing2),headerSectionColor:t.extend("--ftds-tree-list-header-section-color","",l.contentGlobalPrimary),headerSectionCounterColor:t.extend("--ftds-tree-list-header-section-counter-color","",l.contentGlobalSecondary),listContainerBorderWidth:t.create("--ftds-tree-list-list-container-border-width","","SIZE","1px"),listContainerBackgroundColor:t.extend("--ftds-tree-list-list-container-background-color","",l.backgroundGlobalSurface),listContainerBorderColor:t.extend("--ftds-tree-list-list-container-border-color","",l.borderGlobalSubtle),emptyStateIllustrationWidth:t.create("--ftds-tree-list-empty-state-illustration-width","","SIZE","192px"),emptyStateIllustrationHeight:t.create("--ftds-tree-list-empty-state-illustration-height","","SIZE","192px"),emptyStateIllustrationMarginBottom:t.extend("--ftds-tree-list-empty-state-illustration-margin-bottom","",i.spacing10),emptyStateContainerPaddingTop:t.extend("--ftds-tree-list-empty-state-container-padding-top","",i.spacing10),emptyStateContainerPaddingBottom:t.extend("--ftds-tree-list-empty-state-container-padding-bottom","",i.spacing10),emptyStateTitleMarginBottom:t.extend("--ftds-tree-list-empty-state-title-margin-bottom","",i.spacing2),emptyStateTitleLabelColor:t.extend("--ftds-tree-list-empty-state-title-label-color","",l.contentGlobalSecondary),emptyStateDescriptionLabelColor:t.extend("--ftds-tree-list-empty-state-description-label-color","",l.contentGlobalSecondary)};var Hh={iconSize:t.extend("--ftds-checkbox-icon-size","",i.iconSize2),boxSize:t.create("--ftds-checkbox-box-size","","SIZE","18px"),colorLegendSize:t.create("--ftds-checkbox-color-legend-size","","SIZE","16px"),borderRadius:t.create("--ftds-checkbox-border-radius","","SIZE","1px"),labelHorizontalGap:t.extend("--ftds-checkbox-label-horizontal-gap","",i.spacing1),color:t.extend("--ftds-checkbox-color","",l.contentGlobalPrimary),checkedBackgroundColor:t.extend("--ftds-checkbox-checked-background-color","",l.contentActionPrimary),checkedStateLayerColor:t.extend("--ftds-checkbox-checked-state-layer-color","",l.contentActionPrimary),checkedIconColor:t.extend("--ftds-checkbox-checked-icon-color","",l.contentGlobalOnColor),checkedHoverStateLayerOpacity:t.extend("--ftds-checkbox-checked-hover-state-layer-opacity","",i.opacity16),checkedFocusStateLayerOpacity:t.extend("--ftds-checkbox-checked-focus-state-layer-opacity","",i.opacity16),checkedActiveStateLayerOpacity:t.extend("--ftds-checkbox-checked-active-state-layer-opacity","",i.opacity24),checkedDisabledComponentOpacity:t.extend("--ftds-checkbox-checked-disabled-component-opacity","",i.opacity40),uncheckedBorderColor:t.extend("--ftds-checkbox-unchecked-border-color","",i.colorGray80),uncheckedStateLayerColor:t.extend("--ftds-checkbox-unchecked-state-layer-color","",i.colorGray80),uncheckedHoverStateLayerOpacity:t.extend("--ftds-checkbox-unchecked-hover-state-layer-opacity","",i.opacity16),uncheckedFocusStateLayerOpacity:t.extend("--ftds-checkbox-unchecked-focus-state-layer-opacity","",i.opacity16),uncheckedActiveStateLayerOpacity:t.extend("--ftds-checkbox-unchecked-active-state-layer-opacity","",i.opacity24),uncheckedDisabledComponentOpacity:t.extend("--ftds-checkbox-unchecked-disabled-component-opacity","",i.opacity40),focusFocusRingColor:t.extend("--ftds-checkbox-focus-focus-ring-color","",l.borderActionFocusRing),focusOutlineOffset:t.create("--ftds-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:t.create("--ftds-checkbox-focus-outline-width","","SIZE","2px"),focusOutlineBorderRadius:t.create("--ftds-checkbox-focus-outline-border-radius","","SIZE","2px"),borderWidth:t.create("--ftds-checkbox-border-width","","SIZE","2px"),horizontalGap:t.extend("--ftds-checkbox-horizontal-gap","",i.spacing3),helperPaddingTop:t.create("--ftds-checkbox-helper-padding-top","","SIZE","0px"),helperIconSize:t.extend("--ftds-checkbox-helper-icon-size","",i.iconSize2),helperHorizontalGap:t.extend("--ftds-checkbox-helper-horizontal-gap","",i.spacing1),errorUncheckedBorderColor:t.extend("--ftds-checkbox-error-unchecked-border-color","",l.borderErrorPrimary),errorStateLayerColor:t.extend("--ftds-checkbox-error-state-layer-color","",l.contentErrorPrimary),errorHelperTextColor:t.extend("--ftds-checkbox-error-helper-text-color","",l.borderErrorPrimary),errorCheckedBackgroundColor:t.extend("--ftds-checkbox-error-checked-background-color","",l.contentErrorPrimary),helperTextColor:t.extend("--ftds-checkbox-helper-text-color","",l.contentGlobalSubtle),groupVerticalGap:t.extend("--ftds-checkbox-group-vertical-gap","",i.spacing3)};var jh={circleSize:t.create("--ftds-radio-circle-size","","SIZE","18px"),borderWidth:t.create("--ftds-radio-border-width","","SIZE","2px"),color:t.extend("--ftds-radio-color","",l.contentGlobalPrimary),selectedRadioColor:t.extend("--ftds-radio-selected-radio-color","",l.contentActionPrimary),selectedStateLayerColor:t.extend("--ftds-radio-selected-state-layer-color","",l.contentActionPrimary),selectedHoverStateLayerOpacity:t.extend("--ftds-radio-selected-hover-state-layer-opacity","",i.opacity16),selectedFocusStateLayerOpacity:t.extend("--ftds-radio-selected-focus-state-layer-opacity","",i.opacity16),selectedActiveStateLayerOpacity:t.extend("--ftds-radio-selected-active-state-layer-opacity","",i.opacity24),selectedDisabledComponentOpacity:t.extend("--ftds-radio-selected-disabled-component-opacity","",i.opacity40),unselectedStateLayerColor:t.extend("--ftds-radio-unselected-state-layer-color","",l.borderInputPrimary),unselectedBorderColor:t.extend("--ftds-radio-unselected-border-color","",l.borderInputPrimary),unselectedHoverStateLayerOpacity:t.extend("--ftds-radio-unselected-hover-state-layer-opacity","",i.opacity16),unselectedFocusStateLayerOpacity:t.extend("--ftds-radio-unselected-focus-state-layer-opacity","",i.opacity16),unselectedActiveStateLayerOpacity:t.extend("--ftds-radio-unselected-active-state-layer-opacity","",i.opacity24),unselectedDisabledComponentOpacity:t.extend("--ftds-radio-unselected-disabled-component-opacity","",i.opacity40),focusFocusRingColor:t.extend("--ftds-radio-focus-focus-ring-color","",l.borderActionFocusRing),focusOutlineOffset:t.create("--ftds-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:t.create("--ftds-radio-focus-outline-width","","SIZE","2px"),verticalGap:t.extend("--ftds-radio-vertical-gap","",i.spacing3),horizontalGap:t.extend("--ftds-radio-horizontal-gap","",i.spacing3)};var Yh={headerRowBorderWidth:t.create("--ftds-table-header-row-border-width","","SIZE","1px"),headerRowBackgroundColor:t.extend("--ftds-table-header-row-background-color","",l.backgroundGlobalOnSurfaceDark),headerRowBorderColor:t.extend("--ftds-table-header-row-border-color","",l.borderGlobalPrimary),headerRowColor:t.extend("--ftds-table-header-row-color","",l.contentGlobalPrimary),dataRowBorderWidth:t.create("--ftds-table-data-row-border-width","","SIZE","1px"),dataRowBackgroundColor:t.extend("--ftds-table-data-row-background-color","",l.backgroundGlobalOnSurface),dataRowBorderColor:t.extend("--ftds-table-data-row-border-color","",l.borderGlobalSubtle),dataRowColor:t.extend("--ftds-table-data-row-color","",l.contentGlobalSecondary),dataRowDefaultHoverBackgroundColor:t.extend("--ftds-table-data-row-default-hover-background-color","",i.colorGray20),dataRowSelectableUnselectedHoverBackgroundColor:t.extend("--ftds-table-data-row-selectable-unselected-hover-background-color","",i.colorGray20),dataRowSelectableSelectedDefaultBackgroundColor:t.extend("--ftds-table-data-row-selectable-selected-default-background-color","",i.colorBrand10),dataRowSelectableSelectedDefaultBorderColor:t.extend("--ftds-table-data-row-selectable-selected-default-border-color","",i.colorBrand20),dataRowSelectableSelectedHoverBackgroundColor:t.extend("--ftds-table-data-row-selectable-selected-hover-background-color","",i.colorBrand20),dataRowSelectableSelectedHoverBorderColor:t.extend("--ftds-table-data-row-selectable-selected-hover-border-color","",i.colorBrand30),dataRowSelectableSelectedColor:t.extend("--ftds-table-data-row-selectable-selected-color","",l.contentActionPrimary),dataRowClickableHoverBackgroundColor:t.extend("--ftds-table-data-row-clickable-hover-background-color","",i.colorGray30),dataRowClickableFocusBorderColor:t.extend("--ftds-table-data-row-clickable-focus-border-color","",l.borderActionFocusRing),dataRowClickableFocusBackgroundColor:t.extend("--ftds-table-data-row-clickable-focus-background-color","",i.colorGray30),dataRowClickableActiveBackgroundColor:t.extend("--ftds-table-data-row-clickable-active-background-color","",i.colorGray40),headerCellHorizontalGap:t.extend("--ftds-table-header-cell-horizontal-gap","",i.spacing1),headerCellVerticalPadding:t.extend("--ftds-table-header-cell-vertical-padding","",i.spacing2),headerCellHorizontalPadding:t.extend("--ftds-table-header-cell-horizontal-padding","",i.spacing3),dataCellVerticalPadding:t.extend("--ftds-table-data-cell-vertical-padding","",i.spacing2),dataCellHorizontalPadding:t.extend("--ftds-table-data-cell-horizontal-padding","",i.spacing3),dataCellVerticalGap:t.extend("--ftds-table-data-cell-vertical-gap","",i.spacing1)};var tg={neutralOffHoverStateLayerOpacity:t.extend("--ftds-chip-choice-neutral-off-hover-state-layer-opacity","",i.opacity8),neutralOffFocusStateLayerOpacity:t.extend("--ftds-chip-choice-neutral-off-focus-state-layer-opacity","",i.opacity8),neutralOffFocusFocusRingColor:t.extend("--ftds-chip-choice-neutral-off-focus-focus-ring-color","",l.borderActionFocusRing),neutralOffActiveStateLayerOpacity:t.extend("--ftds-chip-choice-neutral-off-active-state-layer-opacity","",i.opacity16),neutralOffBackgroundColor:t.extend("--ftds-chip-choice-neutral-off-background-color","",l.backgroundGlobalOnSurface),neutralOffBorderColor:t.extend("--ftds-chip-choice-neutral-off-border-color","",l.borderGlobalPrimary),neutralOffColor:t.extend("--ftds-chip-choice-neutral-off-color","",l.contentGlobalSecondary),neutralOffStateLayerColor:t.extend("--ftds-chip-choice-neutral-off-state-layer-color","",l.contentGlobalSecondary),neutralOnDefaultStateLayerOpacity:t.extend("--ftds-chip-choice-neutral-on-default-state-layer-opacity","",i.opacity16),neutralOnHoverStateLayerOpacity:t.extend("--ftds-chip-choice-neutral-on-hover-state-layer-opacity","",i.opacity24),neutralOnFocusStateLayerOpacity:t.extend("--ftds-chip-choice-neutral-on-focus-state-layer-opacity","",i.opacity24),neutralOnFocusFocusRingColor:t.extend("--ftds-chip-choice-neutral-on-focus-focus-ring-color","",l.borderActionFocusRing),neutralOnActiveStateLayerOpacity:t.extend("--ftds-chip-choice-neutral-on-active-state-layer-opacity","",i.opacity32),neutralOnBackgroundColor:t.extend("--ftds-chip-choice-neutral-on-background-color","",l.backgroundGlobalOnSurface),neutralOnBorderColor:t.extend("--ftds-chip-choice-neutral-on-border-color","",l.borderGlobalPrimary),neutralOnColor:t.extend("--ftds-chip-choice-neutral-on-color","",l.contentGlobalPrimary),neutralOnIconColor:t.extend("--ftds-chip-choice-neutral-on-icon-color","",l.contentGlobalPrimary),neutralOnStateLayerColor:t.extend("--ftds-chip-choice-neutral-on-state-layer-color","",l.contentGlobalPrimary),largeMinHeight:t.create("--ftds-chip-choice-large-min-height","","SIZE","36px"),largeHorizontalPadding:t.extend("--ftds-chip-choice-large-horizontal-padding","",i.spacing3),largeGap:t.extend("--ftds-chip-choice-large-gap","",i.spacing1),largeBorderRadius:t.create("--ftds-chip-choice-large-border-radius","","SIZE","18px"),largeBorderWidth:t.create("--ftds-chip-choice-large-border-width","","SIZE","1px"),largeIconSize:t.extend("--ftds-chip-choice-large-icon-size","",i.iconSize3),mediumMinHeight:t.create("--ftds-chip-choice-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:t.extend("--ftds-chip-choice-medium-horizontal-padding","",i.spacing2),mediumGap:t.extend("--ftds-chip-choice-medium-gap","",i.spacing1),mediumBorderRadius:t.create("--ftds-chip-choice-medium-border-radius","","SIZE","12px"),mediumBorderWidth:t.create("--ftds-chip-choice-medium-border-width","","SIZE","1px"),mediumIconSize:t.extend("--ftds-chip-choice-medium-icon-size","",i.iconSize2)};var ig={largeMinHeight:t.create("--ftds-chip-large-min-height","","SIZE","36px"),largeHorizontalPadding:t.extend("--ftds-chip-large-horizontal-padding","",i.spacing3),largeButtonRightPadding:t.extend("--ftds-chip-large-button-right-padding","",i.spacing1),largeGap:t.extend("--ftds-chip-large-gap","",i.spacing1),largeFocusOutlineOffset:t.create("--ftds-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:t.create("--ftds-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:t.create("--ftds-chip-large-border-radius","","SIZE","18px"),largeBorderWidth:t.create("--ftds-chip-large-border-width","","SIZE","1px"),largeIconSize:t.extend("--ftds-chip-large-icon-size","",i.iconSize3),mediumMinHeight:t.create("--ftds-chip-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:t.extend("--ftds-chip-medium-horizontal-padding","",i.spacing2),mediumButtonRightPadding:t.extend("--ftds-chip-medium-button-right-padding","",i.spacing05),mediumGap:t.extend("--ftds-chip-medium-gap","",i.spacing1),mediumFocusOutlineOffset:t.create("--ftds-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:t.create("--ftds-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:t.create("--ftds-chip-medium-border-radius","","SIZE","12px"),mediumBorderWidth:t.create("--ftds-chip-medium-border-width","","SIZE","1px"),mediumIconSize:t.extend("--ftds-chip-medium-icon-size","",i.iconSize2),smallMinHeight:t.create("--ftds-chip-small-min-height","","SIZE","20px"),smallHorizontalPadding:t.extend("--ftds-chip-small-horizontal-padding","",i.spacing1),smallButtonRightPadding:t.extend("--ftds-chip-small-button-right-padding","",i.spacing05),smallGap:t.extend("--ftds-chip-small-gap","",i.spacing1),smallFocusOutlineOffset:t.create("--ftds-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:t.create("--ftds-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:t.create("--ftds-chip-small-border-radius","","SIZE","10px"),smallBorderWidth:t.create("--ftds-chip-small-border-width","","SIZE","1px"),smallIconSize:t.extend("--ftds-chip-small-icon-size","",i.iconSize1),neutralBackgroundColor:t.extend("--ftds-chip-neutral-background-color","",l.backgroundGlobalOnSurface),neutralColor:t.extend("--ftds-chip-neutral-color","",l.contentGlobalSecondary),neutralIconColor:t.extend("--ftds-chip-neutral-icon-color","",l.contentGlobalSecondary),neutralBorderColor:t.extend("--ftds-chip-neutral-border-color","",l.borderGlobalSecondary),infoBackgroundColor:t.extend("--ftds-chip-info-background-color","",l.backgroundInfoSubtle),infoColor:t.extend("--ftds-chip-info-color","",l.contentInfoPrimary),infoIconColor:t.extend("--ftds-chip-info-icon-color","",l.contentInfoIconOnly),infoBorderColor:t.extend("--ftds-chip-info-border-color","",l.borderInfoSubtle),successBackgroundColor:t.extend("--ftds-chip-success-background-color","",l.backgroundSuccessSubtle),successColor:t.extend("--ftds-chip-success-color","",l.contentSuccessPrimary),successIconColor:t.extend("--ftds-chip-success-icon-color","",l.contentSuccessIconOnly),successBorderColor:t.extend("--ftds-chip-success-border-color","",l.borderSuccessSubtle),warningBackgroundColor:t.extend("--ftds-chip-warning-background-color","",l.backgroundWarningSubtle),warningColor:t.extend("--ftds-chip-warning-color","",l.contentWarningPrimary),warningIconColor:t.extend("--ftds-chip-warning-icon-color","",l.contentWarningIconOnly),warningBorderColor:t.extend("--ftds-chip-warning-border-color","",l.borderWarningSubtle),errorBackgroundColor:t.extend("--ftds-chip-error-background-color","",l.backgroundErrorSubtle),errorColor:t.extend("--ftds-chip-error-color","",l.contentErrorPrimary),errorIconColor:t.extend("--ftds-chip-error-icon-color","",l.contentErrorIconOnly),errorBorderColor:t.extend("--ftds-chip-error-border-color","",l.borderErrorSubtle)};var ug={horizontalGap:t.extend("--ftds-chip-group-horizontal-gap","",i.spacing2),verticalGap:t.extend("--ftds-chip-group-vertical-gap","",i.spacing2),countChipDefaultBackgroundColor:t.extend("--ftds-chip-group-count-chip-default-background-color","",i.colorBrand10),countChipDefaultBorderColor:t.extend("--ftds-chip-group-count-chip-default-border-color","",i.colorBrand60),countChipDefaultContentColor:t.extend("--ftds-chip-group-count-chip-default-content-color","",l.contentActionPrimary),countChipHoverBackgroundColor:t.extend("--ftds-chip-group-count-chip-hover-background-color","",i.colorBrand20),countChipHoverBorderColor:t.extend("--ftds-chip-group-count-chip-hover-border-color","",i.colorBrand70),countChipHoverContentColor:t.extend("--ftds-chip-group-count-chip-hover-content-color","",l.contentActionPrimary),countChipFocusedBackgroundColor:t.extend("--ftds-chip-group-count-chip-focused-background-color","",i.colorBrand20),countChipFocusedBorderColor:t.extend("--ftds-chip-group-count-chip-focused-border-color","",i.colorBrand70),countChipFocusedContentColor:t.extend("--ftds-chip-group-count-chip-focused-content-color","",l.contentActionPrimary)};var yg={brandHoverOpacity:t.extend("--ftds-link-brand-hover-opacity","",i.opacity80),brandHoverColor:t.extend("--ftds-link-brand-hover-color","",l.contentActionPrimary),brandFocusFocusRingColor:t.extend("--ftds-link-brand-focus-focus-ring-color","",l.borderActionFocusRing),brandFocusColor:t.extend("--ftds-link-brand-focus-color","",l.contentActionPrimary),brandDefaultColor:t.extend("--ftds-link-brand-default-color","",l.contentActionPrimary),brandActiveColor:t.extend("--ftds-link-brand-active-color","",l.contentActionPrimary),infoHoverOpacity:t.extend("--ftds-link-info-hover-opacity","",i.opacity80),infoHoverColor:t.extend("--ftds-link-info-hover-color","",l.contentInfoPrimary),infoFocusFocusRingColor:t.extend("--ftds-link-info-focus-focus-ring-color","",l.borderActionFocusRing),infoFocusColor:t.extend("--ftds-link-info-focus-color","",l.contentInfoPrimary),infoDefaultColor:t.extend("--ftds-link-info-default-color","",l.contentInfoPrimary),infoActiveColor:t.extend("--ftds-link-info-active-color","",l.contentInfoPrimary),neutralFocusFocusRingColor:t.extend("--ftds-link-neutral-focus-focus-ring-color","",l.borderActionFocusRing),neutralFocusColor:t.extend("--ftds-link-neutral-focus-color","",l.contentActionPrimary),neutralDefaultColor:t.extend("--ftds-link-neutral-default-color","",l.contentGlobalPrimary),neutralHoverColor:t.extend("--ftds-link-neutral-hover-color","",l.contentActionPrimary),neutralActiveColor:t.extend("--ftds-link-neutral-active-color","",l.contentActionPrimary),neutralVisitedColor:t.extend("--ftds-link-neutral-visited-color","",i.colorBrand100)};var Sg={iconSize:t.extend("--ftds-banner-icon-size","",i.iconSize5),borderWidth:t.create("--ftds-banner-border-width","","SIZE","1px"),leftPadding:t.extend("--ftds-banner-left-padding","",i.spacing6),rightPadding:t.extend("--ftds-banner-right-padding","",i.spacing6),verticalPadding:t.extend("--ftds-banner-vertical-padding","",i.spacing6),horizontalSideGap:t.extend("--ftds-banner-horizontal-side-gap","",i.spacing6),horizontalMobileGap:t.extend("--ftds-banner-horizontal-mobile-gap","",i.spacing4),verticalMobileGap:t.extend("--ftds-banner-vertical-mobile-gap","",i.spacing6),horizontalMiddleGap:t.extend("--ftds-banner-horizontal-middle-gap","",i.spacing20),infoBackgroundColor:t.extend("--ftds-banner-info-background-color","",l.backgroundInfoSubtle),infoColor:t.extend("--ftds-banner-info-color","",l.contentInfoPrimary),infoIconColor:t.extend("--ftds-banner-info-icon-color","",l.contentInfoIconOnly),infoBorderColor:t.extend("--ftds-banner-info-border-color","",l.borderInfoSubtle)};var wg={horizontalPadding:t.extend("--ftds-badge-horizontal-padding","",i.spacing1),verticalPadding:t.extend("--ftds-badge-vertical-padding","",i.spacing1),borderRadius:t.extend("--ftds-badge-border-radius","",i.borderRadiusPill),color:t.extend("--ftds-badge-color","",l.contentGlobalOnColor),backgroundColor:t.extend("--ftds-badge-background-color","",l.contentActionPrimary)};var kg={horizontalGap:t.extend("--ftds-title-breadcrumb-horizontal-gap","",i.spacing1),currentColor:t.extend("--ftds-title-breadcrumb-current-color","",l.contentGlobalPrimary),previousNonClickableColor:t.extend("--ftds-title-breadcrumb-previous-non-clickable-color","",l.contentGlobalSecondary),iconColor:t.extend("--ftds-title-breadcrumb-icon-color","",l.contentGlobalSubtle)};var Mg={parentHorizontalPadding:t.extend("--ftds-page-header-parent-horizontal-padding","",i.spacing6),parentTopPadding:t.extend("--ftds-page-header-parent-top-padding","",i.spacing4),parentBottomPadding:t.extend("--ftds-page-header-parent-bottom-padding","",i.spacing6),parentHelpLeftMargin:t.extend("--ftds-page-header-parent-help-left-margin","",i.spacing1),parentTitleColor:t.extend("--ftds-page-header-parent-title-color","",l.contentGlobalPrimary),parentSubtitleColor:t.extend("--ftds-page-header-parent-subtitle-color","",l.contentGlobalSecondary),parentChipLeftMargin:t.extend("--ftds-page-header-parent-chip-left-margin","",i.spacing4),parentVerticalGap:t.extend("--ftds-page-header-parent-vertical-gap","",i.spacing2),parentButtonsGroupHorizontalGap:t.extend("--ftds-page-header-parent-buttons-group-horizontal-gap","",i.spacing4),parentButtonsGroupVerticalGap:t.extend("--ftds-page-header-parent-buttons-group-vertical-gap","",i.spacing4),parentChipsGroupHorizontalGap:t.extend("--ftds-page-header-parent-chips-group-horizontal-gap","",i.spacing2),parentChipsGroupVerticalGap:t.extend("--ftds-page-header-parent-chips-group-vertical-gap","",i.spacing2),childHorizontalPadding:t.extend("--ftds-page-header-child-horizontal-padding","",i.spacing6),childTopPadding:t.extend("--ftds-page-header-child-top-padding","",i.spacing2),childBottomPadding:t.extend("--ftds-page-header-child-bottom-padding","",i.spacing2),childHelpLeftMargin:t.extend("--ftds-page-header-child-help-left-margin","",i.spacing1),childChipLeftMargin:t.extend("--ftds-page-header-child-chip-left-margin","",i.spacing4),childVerticalGap:t.extend("--ftds-page-header-child-vertical-gap","",i.spacing2),childMinHeight:t.create("--ftds-page-header-child-min-height","","SIZE","40px"),childButtonsGroupHorizontalGap:t.extend("--ftds-page-header-child-buttons-group-horizontal-gap","",i.spacing4),childButtonsGroupVerticalGap:t.extend("--ftds-page-header-child-buttons-group-vertical-gap","",i.spacing4),childChipsGroupHorizontalGap:t.extend("--ftds-page-header-child-chips-group-horizontal-gap","",i.spacing2),childChipsGroupVerticalGap:t.extend("--ftds-page-header-child-chips-group-vertical-gap","",i.spacing2),backgroundColor:t.extend("--ftds-page-header-background-color","",i.colorWhite),bottomBorderColor:t.extend("--ftds-page-header-bottom-border-color","",l.borderGlobalSubtle),bottomBorderWidth:t.create("--ftds-page-header-bottom-border-width","","SIZE","1px")};var zg={horizontalPadding:t.extend("--ftds-page-footer-horizontal-padding","",i.spacing6),verticalPadding:t.extend("--ftds-page-footer-vertical-padding","",i.spacing2),verticalGap:t.extend("--ftds-page-footer-vertical-gap","",i.spacing2),minHeight:t.create("--ftds-page-footer-min-height","","SIZE","40px"),backgroundColor:t.extend("--ftds-page-footer-background-color","",i.colorWhite),topBorderColor:t.extend("--ftds-page-footer-top-border-color","",l.borderGlobalSubtle),topBorderWidth:t.create("--ftds-page-footer-top-border-width","","SIZE","1px"),buttonsGroupGap:t.extend("--ftds-page-footer-buttons-group-gap","",i.spacing4)};var jg={contentHorizontalPadding:t.extend("--ftds-page-layout-content-horizontal-padding","",i.spacing6),contentVerticalPadding:t.extend("--ftds-page-layout-content-vertical-padding","",i.spacing6)};var Yg={smallContainerTargetWidth:t.create("--ftds-modal-small-container-target-width","","SIZE","560px"),smallContainerMargin:t.extend("--ftds-modal-small-container-margin","",i.spacing6),mediumContainerTargetWidth:t.create("--ftds-modal-medium-container-target-width","","SIZE","800px"),mediumContainerMargin:t.extend("--ftds-modal-medium-container-margin","",i.spacing6),largeContainerTargetWidth:t.create("--ftds-modal-large-container-target-width","","SIZE","1040px"),largeContainerMargin:t.extend("--ftds-modal-large-container-margin","",i.spacing6),overlayBackgroundColor:t.extend("--ftds-modal-overlay-background-color","",i.colorGray700),overlayOpacity:t.extend("--ftds-modal-overlay-opacity","",i.opacity40),shadow:t.extend("--ftds-modal-shadow","",i.shadowElevation03),bodyBackgroundColor:t.extend("--ftds-modal-body-background-color","",i.colorWhite),bodyColor:t.extend("--ftds-modal-body-color","",l.contentGlobalPrimary),bodyHorizontalPadding:t.extend("--ftds-modal-body-horizontal-padding","",i.spacing6),bodyVerticalPadding:t.extend("--ftds-modal-body-vertical-padding","",i.spacing6),bodyVerticalGap:t.extend("--ftds-modal-body-vertical-gap","",i.spacing6),headerBackgroundColor:t.extend("--ftds-modal-header-background-color","",l.backgroundGlobalOnSurface),headerBorderColor:t.extend("--ftds-modal-header-border-color","",l.borderGlobalSubtle),headerColor:t.extend("--ftds-modal-header-color","",l.contentGlobalPrimary),headerLeadingIconColor:t.extend("--ftds-modal-header-leading-icon-color","",l.contentGlobalPrimary),headerVerticalPadding:t.extend("--ftds-modal-header-vertical-padding","",i.spacing1),headerRightPadding:t.extend("--ftds-modal-header-right-padding","",i.spacing1),headerLeftPadding:t.extend("--ftds-modal-header-left-padding","",i.spacing6),headerGap:t.extend("--ftds-modal-header-gap","",i.spacing2),headerBorderBottomWidth:t.create("--ftds-modal-header-border-bottom-width","","SIZE","1px"),borderRadius:t.extend("--ftds-modal-border-radius","",i.borderRadiusM)};var ty={overlayOpacity:t.extend("--ftds-drawer-overlay-opacity","",i.opacity40),shadow:t.extend("--ftds-drawer-shadow","",i.shadowElevation03),bodyColor:t.extend("--ftds-drawer-body-color","",l.contentGlobalPrimary),bodyHorizontalPadding:t.extend("--ftds-drawer-body-horizontal-padding","",i.spacing6),bodyVerticalPadding:t.extend("--ftds-drawer-body-vertical-padding","",i.spacing6),bodyGap:t.extend("--ftds-drawer-body-gap","",i.spacing6),bodyBackgroundColor:t.extend("--ftds-drawer-body-background-color","",i.colorWhite),headerBackgroundColor:t.extend("--ftds-drawer-header-background-color","",l.backgroundGlobalOnSurface),headerBorderColor:t.extend("--ftds-drawer-header-border-color","",l.borderGlobalSubtle),headerColor:t.extend("--ftds-drawer-header-color","",l.contentGlobalPrimary),headerTrailingIconColor:t.extend("--ftds-drawer-header-trailing-icon-color","",l.contentGlobalSecondary),headerHeight:t.create("--ftds-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:t.extend("--ftds-drawer-header-horizontal-padding","",i.spacing2),headerBorderWidth:t.create("--ftds-drawer-header-border-width","","SIZE","1px"),headerGap:t.extend("--ftds-drawer-header-gap","",i.spacing3),buttonsBarBackgroundColor:t.extend("--ftds-drawer-buttons-bar-background-color","",l.backgroundGlobalOnSurface),buttonsBarBorderColor:t.extend("--ftds-drawer-buttons-bar-border-color","",l.borderGlobalSubtle),buttonsBarColor:t.extend("--ftds-drawer-buttons-bar-color","",l.contentGlobalPrimary),buttonsBarHorizontalPadding:t.extend("--ftds-drawer-buttons-bar-horizontal-padding","",i.spacing6),buttonsBarVerticalPadding:t.extend("--ftds-drawer-buttons-bar-vertical-padding","",i.spacing4),buttonsBarGap:t.extend("--ftds-drawer-buttons-bar-gap","",i.spacing3),buttonsBarBorderWidth:t.create("--ftds-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:t.create("--ftds-drawer-container-width","","SIZE","66%"),containerMinWidth:t.create("--ftds-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:t.create("--ftds-drawer-container-max-width","","SIZE","1000px"),containerHeight:t.create("--ftds-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:t.extend("--ftds-drawer-overlay-background-color","",i.colorGray700)};var iy={offBorderBottomWidth:t.create("--ftds-tabs-off-border-bottom-width","","SIZE","1px"),offHoverStateLayerOpacity:t.extend("--ftds-tabs-off-hover-state-layer-opacity","",i.opacity8),offDefaultStateLayerOpacity:t.extend("--ftds-tabs-off-default-state-layer-opacity","",i.opacity0),offFocusStateLayerOpacity:t.extend("--ftds-tabs-off-focus-state-layer-opacity","",i.opacity8),offDisabledComponentOpacity:t.extend("--ftds-tabs-off-disabled-component-opacity","",i.opacity40),offColor:t.extend("--ftds-tabs-off-color","",l.contentGlobalSubtle),offStateLayerColor:t.extend("--ftds-tabs-off-state-layer-color","",l.contentGlobalSubtle),offBorderBottomColor:t.extend("--ftds-tabs-off-border-bottom-color","",l.borderGlobalSubtle),activeTabIndicatorHeight:t.create("--ftds-tabs-active-tab-indicator-height","","SIZE","3px"),topLeftBorderRadius:t.extend("--ftds-tabs-top-left-border-radius","",i.borderRadiusS),topRightBorderRadius:t.extend("--ftds-tabs-top-right-border-radius","",i.borderRadiusS),withLabelHorizontalPadding:t.extend("--ftds-tabs-with-label-horizontal-padding","",i.spacing4),withLabelVerticalPadding:t.extend("--ftds-tabs-with-label-vertical-padding","",i.spacing3),horizontalGap:t.extend("--ftds-tabs-horizontal-gap","",i.spacing1),verticalGap:t.extend("--ftds-tabs-vertical-gap","",i.spacing1),onHoverStateLayerOpacity:t.extend("--ftds-tabs-on-hover-state-layer-opacity","",i.opacity16),onDefaultStateLayerOpacity:t.extend("--ftds-tabs-on-default-state-layer-opacity","",i.opacity8),onFocusStateLayerOpacity:t.extend("--ftds-tabs-on-focus-state-layer-opacity","",i.opacity16),onActiveStateLayerOpacity:t.extend("--ftds-tabs-on-active-state-layer-opacity","",i.opacity24),onColor:t.extend("--ftds-tabs-on-color","",l.contentActionPrimary),onStateLayerColor:t.extend("--ftds-tabs-on-state-layer-color","",l.contentActionPrimary),onActiveTabIndicatorColor:t.extend("--ftds-tabs-on-active-tab-indicator-color","",l.contentActionPrimary),iconOnlyHorizontalPadding:t.extend("--ftds-tabs-icon-only-horizontal-padding","",i.spacing4),iconOnlyVerticalPadding:t.extend("--ftds-tabs-icon-only-vertical-padding","",i.spacing4),alertTopPadding:t.extend("--ftds-tabs-alert-top-padding","",i.spacing1),alertRightPadding:t.extend("--ftds-tabs-alert-right-padding","",i.spacing05),focusOutlineWidth:t.create("--ftds-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:t.extend("--ftds-tabs-focus-focus-ring-color","",l.borderActionFocusRing)};var uy={largeFieldHorizontalPadding:t.extend("--ftds-text-input-large-field-horizontal-padding","",i.spacing4),largeFieldHorizontalGap:t.extend("--ftds-text-input-large-field-horizontal-gap","",i.spacing3),largeFieldVerticalGap:t.extend("--ftds-text-input-large-field-vertical-gap","",i.spacing05),largeFieldHeight:t.create("--ftds-text-input-large-field-height","","SIZE","50px"),largeFieldIconSize:t.extend("--ftds-text-input-large-field-icon-size","",i.iconSize3),mediumFieldHorizontalPadding:t.extend("--ftds-text-input-medium-field-horizontal-padding","",i.spacing4),mediumFieldHorizontalGap:t.extend("--ftds-text-input-medium-field-horizontal-gap","",i.spacing3),mediumFieldVerticalGap:t.create("--ftds-text-input-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHeight:t.create("--ftds-text-input-medium-field-height","","SIZE","40px"),mediumFieldIconSize:t.extend("--ftds-text-input-medium-field-icon-size","",i.iconSize3),helperHorizontalPadding:t.extend("--ftds-text-input-helper-horizontal-padding","",i.spacing4),helperHorizontalGap:t.extend("--ftds-text-input-helper-horizontal-gap","",i.spacing1),helperIconSize:t.extend("--ftds-text-input-helper-icon-size","",i.iconSize2),borderRadius:t.extend("--ftds-text-input-border-radius","",i.borderRadiusS),backgroundColor:t.extend("--ftds-text-input-background-color","",i.colorWhite),contentValueColor:t.extend("--ftds-text-input-content-value-color","",l.contentGlobalPrimary),trailingIconColor:t.extend("--ftds-text-input-trailing-icon-color","",l.contentGlobalSubtle),labelColor:t.extend("--ftds-text-input-label-color","",l.contentGlobalSubtle),defaultBorderColor:t.extend("--ftds-text-input-default-border-color","",l.borderInputPrimary),defaultHelperTextColor:t.extend("--ftds-text-input-default-helper-text-color","",l.contentGlobalSubtle),defaultBorderWidth:t.create("--ftds-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:t.create("--ftds-text-input-error-border-width","","SIZE","2px"),errorBorderColor:t.extend("--ftds-text-input-error-border-color","",l.borderErrorPrimary),errorHelperTextColor:t.extend("--ftds-text-input-error-helper-text-color","",l.contentErrorPrimary),errorHelperIconColor:t.extend("--ftds-text-input-error-helper-icon-color","",l.contentErrorIconOnly),warningBorderColor:t.extend("--ftds-text-input-warning-border-color","",l.borderWarningPrimary),warningHelperTextColor:t.extend("--ftds-text-input-warning-helper-text-color","",l.contentWarningPrimary),warningHelperIconColor:t.extend("--ftds-text-input-warning-helper-icon-color","",l.contentWarningIconOnly),warningBorderWidth:t.create("--ftds-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:t.create("--ftds-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:t.extend("--ftds-text-input-focus-focus-ring-color","",l.borderActionFocusRing),focusOutlineOffset:t.create("--ftds-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:t.extend("--ftds-text-input-disabled-component-opacity","",i.opacity40)};var yy={backgroundColor:t.extend("--ftds-text-area-background-color","",i.colorWhite),contentValueColor:t.extend("--ftds-text-area-content-value-color","",l.contentGlobalPrimary),labelColor:t.extend("--ftds-text-area-label-color","",l.contentGlobalSubtle),defaultBorderColor:t.extend("--ftds-text-area-default-border-color","",l.borderInputPrimary),defaultHelperTextColor:t.extend("--ftds-text-area-default-helper-text-color","",l.contentGlobalSubtle),defaultBorderWidth:t.create("--ftds-text-area-default-border-width","","SIZE","1px"),errorBorderWidth:t.create("--ftds-text-area-error-border-width","","SIZE","2px"),errorBorderColor:t.extend("--ftds-text-area-error-border-color","",l.borderErrorPrimary),errorHelperTextColor:t.extend("--ftds-text-area-error-helper-text-color","",l.contentErrorPrimary),errorHelperIconColor:t.extend("--ftds-text-area-error-helper-icon-color","",l.contentErrorIconOnly),focusFocusRingColor:t.extend("--ftds-text-area-focus-focus-ring-color","",l.borderActionFocusRing),focusOutlineWidth:t.create("--ftds-text-area-focus-outline-width","","SIZE","2px"),focusOutlineOffset:t.create("--ftds-text-area-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:t.extend("--ftds-text-area-disabled-component-opacity","",i.opacity40),fieldHorizontalLeftPadding:t.extend("--ftds-text-area-field-horizontal-left-padding","",i.spacing4),fieldHorizontalGap:t.extend("--ftds-text-area-field-horizontal-gap","",i.spacing3),fieldVerticalGap:t.extend("--ftds-text-area-field-vertical-gap","",i.spacing05),fieldMinHeight:t.create("--ftds-text-area-field-min-height","","SIZE","64px"),helperHorizontalPadding:t.extend("--ftds-text-area-helper-horizontal-padding","",i.spacing4),helperHorizontalGap:t.extend("--ftds-text-area-helper-horizontal-gap","",i.spacing1),helperIconSize:t.extend("--ftds-text-area-helper-icon-size","",i.iconSize2),borderRadius:t.extend("--ftds-text-area-border-radius","",i.borderRadiusS)};var Sy={height:t.create("--ftds-floating-menu-height","","SIZE","52px"),horizontalPadding:t.extend("--ftds-floating-menu-horizontal-padding","",i.spacing4),verticalPadding:t.extend("--ftds-floating-menu-vertical-padding","",i.spacing2),offIconColor:t.extend("--ftds-floating-menu-off-icon-color","",l.contentGlobalPrimary),offColor:t.extend("--ftds-floating-menu-off-color","",l.contentGlobalPrimary),onColor:t.extend("--ftds-floating-menu-on-color","",l.contentActionPrimary),onStateLayerColor:t.extend("--ftds-floating-menu-on-state-layer-color","",l.contentActionPrimary),gap:t.extend("--ftds-floating-menu-gap","",i.spacing3),focusFocusRingColor:t.extend("--ftds-floating-menu-focus-focus-ring-color","",l.borderActionFocusRing),focusOutlineWidth:t.create("--ftds-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:t.extend("--ftds-floating-menu-focus-state-layer-opacity","",i.opacity24),hoverStateLayerOpacity:t.extend("--ftds-floating-menu-hover-state-layer-opacity","",i.opacity8),activeStateLayerOpacity:t.extend("--ftds-floating-menu-active-state-layer-opacity","",i.opacity16),disabledComponentOpacity:t.extend("--ftds-floating-menu-disabled-component-opacity","",i.opacity40),iconSize:t.extend("--ftds-floating-menu-icon-size","",i.iconSize3),backgroundColor:t.extend("--ftds-floating-menu-background-color","",l.backgroundGlobalOnSurface),shadow:t.extend("--ftds-floating-menu-shadow","",i.shadowElevation02),multiselectCheckedStateLayerColor:t.extend("--ftds-floating-menu-multiselect-checked-state-layer-color","",l.contentActionPrimary),multiselectCheckedColor:t.extend("--ftds-floating-menu-multiselect-checked-color","",l.contentGlobalPrimary),multiselectCheckedIconColor:t.extend("--ftds-floating-menu-multiselect-checked-icon-color","",l.contentActionPrimary),multiselectCheckedDefaultStateLayerOpacity:t.extend("--ftds-floating-menu-multiselect-checked-default-state-layer-opacity","",i.opacity8),multiselectCheckedHoverStateLayerOpacity:t.extend("--ftds-floating-menu-multiselect-checked-hover-state-layer-opacity","",i.opacity16),multiselectCheckedFocusStateLayerOpacity:t.extend("--ftds-floating-menu-multiselect-checked-focus-state-layer-opacity","",i.opacity24),multiselectIndeterminatedStateLayerColor:t.extend("--ftds-floating-menu-multiselect-indeterminated-state-layer-color","",l.contentActionPrimary),multiselectIndeterminatedColor:t.extend("--ftds-floating-menu-multiselect-indeterminated-color","",l.contentGlobalPrimary),multiselectIndeterminatedIconColor:t.extend("--ftds-floating-menu-multiselect-indeterminated-icon-color","",l.contentActionPrimary),multiselectIndeterminatedDefaultStateLayerOpacity:t.extend("--ftds-floating-menu-multiselect-indeterminated-default-state-layer-opacity","",i.opacity8),multiselectIndeterminatedHoverStateLayerOpacity:t.extend("--ftds-floating-menu-multiselect-indeterminated-hover-state-layer-opacity","",i.opacity16),multiselectIndeterminatedFocusStateLayerOpacity:t.extend("--ftds-floating-menu-multiselect-indeterminated-focus-state-layer-opacity","",i.opacity24),multiselectUncheckedStateLayerColor:t.extend("--ftds-floating-menu-multiselect-unchecked-state-layer-color","",l.contentGlobalPrimary),multiselectUncheckedColor:t.extend("--ftds-floating-menu-multiselect-unchecked-color","",l.contentGlobalPrimary),multiselectUncheckedIconColor:t.extend("--ftds-floating-menu-multiselect-unchecked-icon-color","",l.contentGlobalSubtle),multiselectUncheckedDefaultStateLayerOpacity:t.extend("--ftds-floating-menu-multiselect-unchecked-default-state-layer-opacity","",i.opacity0),multiselectUncheckedHoverStateLayerOpacity:t.extend("--ftds-floating-menu-multiselect-unchecked-hover-state-layer-opacity","",i.opacity8),multiselectUncheckedFocusStateLayerOpacity:t.extend("--ftds-floating-menu-multiselect-unchecked-focus-state-layer-opacity","",i.opacity16),selectAllCheckedStateLayerColor:t.extend("--ftds-floating-menu-select-all-checked-state-layer-color","",l.contentActionPrimary),selectAllCheckedColor:t.extend("--ftds-floating-menu-select-all-checked-color","",l.contentGlobalPrimary),selectAllCheckedIconColor:t.extend("--ftds-floating-menu-select-all-checked-icon-color","",l.contentActionPrimary),selectAllCheckedDefaultStateLayerOpacity:t.extend("--ftds-floating-menu-select-all-checked-default-state-layer-opacity","",i.opacity0),selectAllCheckedHoverStateLayerOpacity:t.extend("--ftds-floating-menu-select-all-checked-hover-state-layer-opacity","",i.opacity16),selectAllCheckedFocusStateLayerOpacity:t.extend("--ftds-floating-menu-select-all-checked-focus-state-layer-opacity","",i.opacity24),selectAllIndeterminatedStateLayerColor:t.extend("--ftds-floating-menu-select-all-indeterminated-state-layer-color","",l.contentGlobalPrimary),selectAllIndeterminatedColor:t.extend("--ftds-floating-menu-select-all-indeterminated-color","",l.contentGlobalPrimary),selectAllIndeterminatedIconColor:t.extend("--ftds-floating-menu-select-all-indeterminated-icon-color","",l.contentActionPrimary),selectAllIndeterminatedDefaultStateLayerOpacity:t.extend("--ftds-floating-menu-select-all-indeterminated-default-state-layer-opacity","",i.opacity0),selectAllIndeterminatedHoverStateLayerOpacity:t.extend("--ftds-floating-menu-select-all-indeterminated-hover-state-layer-opacity","",i.opacity8),selectAllIndeterminatedFocusStateLayerOpacity:t.extend("--ftds-floating-menu-select-all-indeterminated-focus-state-layer-opacity","",i.opacity16),selectAllUncheckedStateLayerColor:t.extend("--ftds-floating-menu-select-all-unchecked-state-layer-color","",l.contentGlobalPrimary),selectAllUncheckedColor:t.extend("--ftds-floating-menu-select-all-unchecked-color","",l.contentGlobalPrimary),selectAllUncheckedIconColor:t.extend("--ftds-floating-menu-select-all-unchecked-icon-color","",l.contentGlobalSubtle),selectAllUncheckedDefaultStateLayerOpacity:t.extend("--ftds-floating-menu-select-all-unchecked-default-state-layer-opacity","",i.opacity0),selectAllUncheckedHoverStateLayerOpacity:t.extend("--ftds-floating-menu-select-all-unchecked-hover-state-layer-opacity","",i.opacity8),selectAllUncheckedFocusStateLayerOpacity:t.extend("--ftds-floating-menu-select-all-unchecked-focus-state-layer-opacity","",i.opacity16),defaultUncheckedStateLayerColor:t.extend("--ftds-floating-menu-default-unchecked-state-layer-color","",l.contentGlobalPrimary),defaultUncheckedColor:t.extend("--ftds-floating-menu-default-unchecked-color","",l.contentGlobalPrimary),defaultUncheckedIconColor:t.extend("--ftds-floating-menu-default-unchecked-icon-color","",l.contentGlobalSubtle),defaultUncheckedDefaultStateLayerOpacity:t.extend("--ftds-floating-menu-default-unchecked-default-state-layer-opacity","",i.opacity0),defaultUncheckedHoverStateLayerOpacity:t.extend("--ftds-floating-menu-default-unchecked-hover-state-layer-opacity","",i.opacity8),defaultUncheckedFocusStateLayerOpacity:t.extend("--ftds-floating-menu-default-unchecked-focus-state-layer-opacity","",i.opacity16),defaultCheckedStateLayerColor:t.extend("--ftds-floating-menu-default-checked-state-layer-color","",l.contentActionPrimary),defaultCheckedColor:t.extend("--ftds-floating-menu-default-checked-color","",l.contentActionPrimary),defaultCheckedIconColor:t.extend("--ftds-floating-menu-default-checked-icon-color","",l.contentActionPrimary),defaultCheckedDefaultStateLayerOpacity:t.extend("--ftds-floating-menu-default-checked-default-state-layer-opacity","",i.opacity8),defaultCheckedHoverStateLayerOpacity:t.extend("--ftds-floating-menu-default-checked-hover-state-layer-opacity","",i.opacity16),defaultCheckedFocusStateLayerOpacity:t.extend("--ftds-floating-menu-default-checked-focus-state-layer-opacity","",i.opacity24)};var wy={menuVerticalGap:t.extend("--ftds-combobox-menu-vertical-gap","",i.spacing2),menuNewValuePaddingTop:t.extend("--ftds-combobox-menu-new-value-padding-top","",i.spacing4),menuNewValuePaddingBottom:t.extend("--ftds-combobox-menu-new-value-padding-bottom","",i.spacing1),menuNewValueHorizontalPadding:t.extend("--ftds-combobox-menu-new-value-horizontal-padding","",i.spacing4),menuNewValueLabelColor:t.extend("--ftds-combobox-menu-new-value-label-color","",l.contentGlobalSubtle),menuNewValueBorderColor:t.extend("--ftds-combobox-menu-new-value-border-color","",l.borderGlobalPrimary),menuNewValueBorderWidth:t.create("--ftds-combobox-menu-new-value-border-width","","SIZE","1px"),menuNewValueErrorBackgroundColor:t.extend("--ftds-combobox-menu-new-value-error-background-color","",l.backgroundErrorSubtle),menuNewValueErrorBorderColor:t.extend("--ftds-combobox-menu-new-value-error-border-color","",l.borderErrorPrimary),menuNewValueErrorStateLayerColor:t.extend("--ftds-combobox-menu-new-value-error-state-layer-color","",l.contentActionPrimary),menuNewValueErrorHoverStateLayerOpacity:t.extend("--ftds-combobox-menu-new-value-error-hover-state-layer-opacity","",i.opacity4),menuNewValueErrorActiveStateLayerOpacity:t.extend("--ftds-combobox-menu-new-value-error-active-state-layer-opacity","",i.opacity6),menuMessagePaddingTop:t.extend("--ftds-combobox-menu-message-padding-top","",i.spacing2),menuMessagePaddingBottom:t.extend("--ftds-combobox-menu-message-padding-bottom","",i.spacing2),menuMessageHorizontalPadding:t.extend("--ftds-combobox-menu-message-horizontal-padding","",i.spacing4),menuMessageLabelColor:t.extend("--ftds-combobox-menu-message-label-color","",l.contentGlobalSubtle),valuesChipBackgroundColor:t.extend("--ftds-combobox-values-chip-background-color","",l.backgroundGlobalOnSurface),valuesChipBorderColor:t.extend("--ftds-combobox-values-chip-border-color","",l.borderInputPrimary)};var ky={backgroundColor:t.extend("--ftds-popover-background-color","",l.backgroundGlobalOnSurface),titleColor:t.extend("--ftds-popover-title-color","",l.contentGlobalPrimary),bodyColor:t.extend("--ftds-popover-body-color","",l.contentGlobalSecondary),gap:t.extend("--ftds-popover-gap","",i.spacing2),borderRadius:t.extend("--ftds-popover-border-radius","",i.borderRadiusM),shadow:t.extend("--ftds-popover-shadow","",i.shadowElevation02),maxWidth:t.create("--ftds-popover-max-width","","SIZE","440px"),minWidth:t.create("--ftds-popover-min-width","","SIZE","160px"),maxHeight:t.create("--ftds-popover-max-height","","SIZE","0.16vh"),contentSectionVerticalGap:t.extend("--ftds-popover-content-section-vertical-gap","",i.spacing2),multiSectionVerticalGap:t.extend("--ftds-popover-multi-section-vertical-gap","",i.spacing6),defaultHorizontalPadding:t.extend("--ftds-popover-default-horizontal-padding","",i.spacing6),defaultVerticalPadding:t.extend("--ftds-popover-default-vertical-padding","",i.spacing6),denseHorizontalPadding:t.extend("--ftds-popover-dense-horizontal-padding","",i.spacing3),denseVerticalPadding:t.extend("--ftds-popover-dense-vertical-padding","",i.spacing3)};var My={hoverStateLayerOpacity:t.extend("--ftds-collapsible-hover-state-layer-opacity","",i.opacity8),focusStateLayerOpacity:t.extend("--ftds-collapsible-focus-state-layer-opacity","",i.opacity8),focusOutlineWidth:t.create("--ftds-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:t.extend("--ftds-collapsible-focus-focus-ring-color","",l.borderActionFocusRing),activeStateLayerOpacity:t.extend("--ftds-collapsible-active-state-layer-opacity","",i.opacity16),disabledComponentOpacity:t.extend("--ftds-collapsible-disabled-component-opacity","",i.opacity40),horizontalPadding:t.extend("--ftds-collapsible-horizontal-padding","",i.spacing4),verticalPadding:t.extend("--ftds-collapsible-vertical-padding","",i.spacing3),color:t.extend("--ftds-collapsible-color","",l.contentGlobalPrimary),stateLayerColor:t.extend("--ftds-collapsible-state-layer-color","",l.contentGlobalPrimary),backgroundColor:t.extend("--ftds-collapsible-background-color","",l.backgroundGlobalOnSurface),borderColor:t.extend("--ftds-collapsible-border-color","",l.borderGlobalSubtle),iconSize:t.extend("--ftds-collapsible-icon-size","",i.iconSize3)};var zy={groupHorizontalPadding:t.extend("--ftds-switch-group-horizontal-padding","",i.spacing1),groupVerticalPadding:t.extend("--ftds-switch-group-vertical-padding","",i.spacing1),groupGap:t.extend("--ftds-switch-group-gap","",i.spacing1),groupBackgroundColor:t.extend("--ftds-switch-group-background-color","",l.backgroundGlobalSurface),groupBorderColor:t.extend("--ftds-switch-group-border-color","",l.borderGlobalSubtle),groupBorderRadius:t.create("--ftds-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:t.extend("--ftds-switch-label-horizontal-padding","",i.spacing2),labelVerticalPadding:t.extend("--ftds-switch-label-vertical-padding","",i.spacing1),offHoverStateLayerOpacity:t.extend("--ftds-switch-off-hover-state-layer-opacity","",i.opacity8),offFocusStateLayerOpacity:t.extend("--ftds-switch-off-focus-state-layer-opacity","",i.opacity8),offActiveStateLayerOpacity:t.extend("--ftds-switch-off-active-state-layer-opacity","",i.opacity16),offDisabledComponentOpacity:t.extend("--ftds-switch-off-disabled-component-opacity","",i.opacity40),offColor:t.extend("--ftds-switch-off-color","",l.contentGlobalSubtle),offStateLayerColor:t.extend("--ftds-switch-off-state-layer-color","",l.contentGlobalSubtle),onHoverStateLayerOpacity:t.extend("--ftds-switch-on-hover-state-layer-opacity","",i.opacity8),onFocusStateLayerOpacity:t.extend("--ftds-switch-on-focus-state-layer-opacity","",i.opacity8),onActiveStateLayerOpacity:t.extend("--ftds-switch-on-active-state-layer-opacity","",i.opacity16),onDisabledComponentOpacity:t.extend("--ftds-switch-on-disabled-component-opacity","",i.opacity40),onColor:t.extend("--ftds-switch-on-color","",l.contentActionPrimary),onStateLayerColor:t.extend("--ftds-switch-on-state-layer-color","",l.contentActionPrimary),iconHorizontalPadding:t.extend("--ftds-switch-icon-horizontal-padding","",i.spacing1),iconVerticalPadding:t.extend("--ftds-switch-icon-vertical-padding","",i.spacing1),focusOutlineWidth:t.create("--ftds-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:t.extend("--ftds-switch-focus-focus-ring-color","",l.borderActionFocusRing),optionBorderRadius:t.extend("--ftds-switch-option-border-radius","",i.borderRadiusS)};var jy={color1Light:t.extend("--ftds-chart-1-light","for area color charts",i.colorBrand40),color1Base:t.extend("--ftds-chart-1-base","for line charts",i.colorBrand0),color2Light:t.extend("--ftds-chart-2-light","for area color charts",i.colorYellow60),color2Base:t.extend("--ftds-chart-2-base","for line charts",i.colorYellow100),color3Light:t.extend("--ftds-chart-3-light","",i.colorUltramarine40),color3Base:t.extend("--ftds-chart-3-base","",i.colorUltramarine70),color4Light:t.extend("--ftds-chart-4-light","",i.colorCyan50),color4Base:t.extend("--ftds-chart-4-base","",i.colorCyan100),color5Light:t.extend("--ftds-chart-5-light","",i.colorRed40),color5Base:t.extend("--ftds-chart-5-base","",i.colorRed60),color6Light:t.extend("--ftds-chart-6-light","",i.colorGreen40),color6Base:t.extend("--ftds-chart-6-base","",i.colorGreen70),color7Light:t.extend("--ftds-chart-7-light","",i.colorOrange70),color7Base:t.extend("--ftds-chart-7-base","",i.colorOrange100),color8Light:t.extend("--ftds-chart-8-light","",i.colorAvocado70),color8Base:t.extend("--ftds-chart-8-base","",i.colorAvocado200),color9Light:t.extend("--ftds-chart-9-light","",i.colorBrown50),color9Base:t.extend("--ftds-chart-9-base","",i.colorBrown200),color10Light:t.extend("--ftds-chart-10-light","",i.colorGray50),color10Base:t.extend("--ftds-chart-10-base","",i.colorGray80),monochrome10:t.extend("--ftds-chart-monochrome-10","",i.colorBrand10),monochrome20:t.extend("--ftds-chart-monochrome-20","",i.colorBrand20),monochrome30:t.extend("--ftds-chart-monochrome-30","",i.colorBrand40),monochrome40:t.extend("--ftds-chart-monochrome-40","",i.colorBrand60),monochrome50:t.extend("--ftds-chart-monochrome-50","",i.colorBrand0),monochrome60:t.extend("--ftds-chart-monochrome-60","",i.colorBrand200),scatterplotQuadrantPopularOldBackgroundColor:t.extend("--ftds-chart-scatterplot-quadrant-popular-old-background-color","",i.colorYellow10),scatterplotQuadrantPopularNewBackgroundColor:t.extend("--ftds-chart-scatterplot-quadrant-popular-new-background-color","",i.colorAvocado10),scatterplotQuadrantUnpopularOldBackgroundColor:t.extend("--ftds-chart-scatterplot-quadrant-unpopular-old-background-color","",i.colorRed10),scatterplotQuadrantUnpopularNewBackgroundColor:t.extend("--ftds-chart-scatterplot-quadrant-unpopular-new-background-color","",i.colorCyan10),scatterplotDatapointInitialDefaultBackgroundColor:t.extend("--ftds-chart-scatterplot-datapoint-initial-default-background-color","",i.colorBrand70),scatterplotDatapointInitialDefaultBackgroundOpacity:t.extend("--ftds-chart-scatterplot-datapoint-initial-default-background-opacity","",i.opacity48),scatterplotDatapointInitialHoverBackgroundColor:t.extend("--ftds-chart-scatterplot-datapoint-initial-hover-background-color","",i.colorBrand0),scatterplotDatapointSelectedDefaultBackgroundColor:t.extend("--ftds-chart-scatterplot-datapoint-selected-default-background-color","",i.colorBrand100),scatterplotDatapointSelectedHoverBackgroundColor:t.extend("--ftds-chart-scatterplot-datapoint-selected-hover-background-color","",i.colorBrand200),scatterplotDatapointUnselectedDefaultBackgroundColor:t.extend("--ftds-chart-scatterplot-datapoint-unselected-default-background-color","",i.colorGray60),scatterplotDatapointUnselectedDefaultBackgroundOpacity:t.extend("--ftds-chart-scatterplot-datapoint-unselected-default-background-opacity","",i.opacity48),scatterplotDatapointUnselectedHoverBackgroundColor:t.extend("--ftds-chart-scatterplot-datapoint-unselected-hover-background-color","",i.colorGray70),scatterplotDatapointHoverHoverRingColor:t.extend("--ftds-chart-scatterplot-datapoint-hover-hover-ring-color","",i.colorCyan200)};var qy={color1IconColor:t.extend("--ftds-page-designer-1-icon-color","for area color charts",i.colorCyan0),color1ToolbarColor:t.extend("--ftds-page-designer-1-toolbar-color","for area color charts",i.colorCyan0),color2IconColor:t.extend("--ftds-page-designer-2-icon-color","for area color charts",i.colorBrand0),color2ToolbarColor:t.extend("--ftds-page-designer-2-toolbar-color","for area color charts",i.colorBrand0),color3IconColor:t.extend("--ftds-page-designer-3-icon-color","for area color charts",i.colorYellow200),color3ToolbarColor:t.extend("--ftds-page-designer-3-toolbar-color","for area color charts",i.colorYellow200),color4IconColor:t.extend("--ftds-page-designer-4-icon-color","for area color charts",i.colorUltramarine50),color4ToolbarColor:t.extend("--ftds-page-designer-4-toolbar-color","for area color charts",i.colorUltramarine50),color5IconColor:t.extend("--ftds-page-designer-5-icon-color","for area color charts",i.colorGreen0),color5ToolbarColor:t.extend("--ftds-page-designer-5-toolbar-color","for area color charts",i.colorGreen0),color6IconColor:t.extend("--ftds-page-designer-6-icon-color","for area color charts",i.colorOrange0),color6ToolbarColor:t.extend("--ftds-page-designer-6-toolbar-color","for area color charts",i.colorOrange0),color7IconColor:t.extend("--ftds-page-designer-7-icon-color","for area color charts",i.colorAvocado200),color7ToolbarColor:t.extend("--ftds-page-designer-7-toolbar-color","for area color charts",i.colorAvocado200),color8IconColor:t.extend("--ftds-page-designer-8-icon-color","for area color charts",i.colorBrown0),color8ToolbarColor:t.extend("--ftds-page-designer-8-toolbar-color","for area color charts",i.colorBrown0)};var em={borderWidth:t.create("--ftds-notice-border-width","","SIZE","1px"),horizontalPadding:t.extend("--ftds-notice-horizontal-padding","",i.spacing3),verticalPadding:t.extend("--ftds-notice-vertical-padding","",i.spacing2),borderRadius:t.extend("--ftds-notice-border-radius","",i.borderRadiusS),gap:t.extend("--ftds-notice-gap","",i.spacing2),iconSize:t.extend("--ftds-notice-icon-size","",i.iconSize3),infoBackgroundColor:t.extend("--ftds-notice-info-background-color","",l.backgroundInfoSubtle),infoBorderColor:t.extend("--ftds-notice-info-border-color","",l.borderInfoSubtle),infoColor:t.extend("--ftds-notice-info-color","",l.contentInfoPrimary),infoIconColor:t.extend("--ftds-notice-info-icon-color","",l.contentInfoIconOnly),warningBackgroundColor:t.extend("--ftds-notice-warning-background-color","",l.backgroundWarningSubtle),warningBorderColor:t.extend("--ftds-notice-warning-border-color","",l.borderWarningSubtle),warningColor:t.extend("--ftds-notice-warning-color","",l.contentWarningPrimary),warningIconColor:t.extend("--ftds-notice-warning-icon-color","",l.contentWarningIconOnly),errorBackgroundColor:t.extend("--ftds-notice-error-background-color","",l.backgroundErrorSubtle),errorBorderColor:t.extend("--ftds-notice-error-border-color","",l.borderErrorSubtle),errorColor:t.extend("--ftds-notice-error-color","",l.contentErrorPrimary),errorIconColor:t.extend("--ftds-notice-error-icon-color","",l.contentErrorIconOnly),successBackgroundColor:t.extend("--ftds-notice-success-background-color","",l.backgroundSuccessSubtle),successBorderColor:t.extend("--ftds-notice-success-border-color","",l.borderSuccessSubtle),successColor:t.extend("--ftds-notice-success-color","",l.contentSuccessPrimary),successIconColor:t.extend("--ftds-notice-success-icon-color","",l.contentSuccessIconOnly),denseHorizontalPadding:t.create("--ftds-notice-dense-horizontal-padding","","SIZE","0px"),denseVerticalPadding:t.create("--ftds-notice-dense-vertical-padding","","SIZE","0px"),denseGap:t.extend("--ftds-notice-dense-gap","",i.spacing1),denseIconSize:t.extend("--ftds-notice-dense-icon-size","",i.iconSize2),denseBorderWidth:t.create("--ftds-notice-dense-border-width","","SIZE","0")};var am={offHoverStateLayerOpacity:t.extend("--ftds-toggle-off-hover-state-layer-opacity","",i.opacity16),offFocusStateLayerOpacity:t.extend("--ftds-toggle-off-focus-state-layer-opacity","",i.opacity16),offActiveStateLayerOpacity:t.extend("--ftds-toggle-off-active-state-layer-opacity","",i.opacity24),offDisabledComponentOpacity:t.extend("--ftds-toggle-off-disabled-component-opacity","",i.opacity40),offBackgroundColor:t.extend("--ftds-toggle-off-background-color","",l.contentGlobalSubtle),offIconColor:t.extend("--ftds-toggle-off-icon-color","",l.contentGlobalSubtle),offStateLayerColor:t.extend("--ftds-toggle-off-state-layer-color","",l.contentGlobalSubtle),onHoverStateLayerOpacity:t.extend("--ftds-toggle-on-hover-state-layer-opacity","",i.opacity16),onFocusStateLayerOpacity:t.extend("--ftds-toggle-on-focus-state-layer-opacity","",i.opacity16),onActiveStateLayerOpacity:t.extend("--ftds-toggle-on-active-state-layer-opacity","",i.opacity24),onDisabledComponentOpacity:t.extend("--ftds-toggle-on-disabled-component-opacity","",i.opacity40),onBackgroundColor:t.extend("--ftds-toggle-on-background-color","",l.contentActionPrimary),onStateLayerColor:t.extend("--ftds-toggle-on-state-layer-color","",l.contentActionPrimary),onIconColor:t.extend("--ftds-toggle-on-icon-color","",l.contentActionPrimary),color:t.extend("--ftds-toggle-color","",l.contentGlobalPrimary),focusFocusRingColor:t.extend("--ftds-toggle-focus-focus-ring-color","",l.borderActionFocusRing),gap:t.extend("--ftds-toggle-gap","",i.spacing3)};var dm={iconSize:t.extend("--ftds-notification-icon-size","",i.iconSize4),leftPadding:t.extend("--ftds-notification-left-padding","",i.spacing5),rightPadding:t.extend("--ftds-notification-right-padding","",i.spacing4),verticalPadding:t.extend("--ftds-notification-vertical-padding","",i.spacing3),infoBackgroundColor:t.extend("--ftds-notification-info-background-color","",l.backgroundInfoSubtle),infoColor:t.extend("--ftds-notification-info-color","",l.contentInfoPrimary),infoIconColor:t.extend("--ftds-notification-info-icon-color","",l.contentInfoIconOnly),infoBorderColor:t.extend("--ftds-notification-info-border-color","",l.borderInfoSubtle),successBackgroundColor:t.extend("--ftds-notification-success-background-color","",l.backgroundSuccessSubtle),successColor:t.extend("--ftds-notification-success-color","",l.contentSuccessPrimary),successIconColor:t.extend("--ftds-notification-success-icon-color","",l.contentSuccessIconOnly),successBorderColor:t.extend("--ftds-notification-success-border-color","",l.borderSuccessSubtle),warningBackgroundColor:t.extend("--ftds-notification-warning-background-color","",l.backgroundWarningSubtle),warningColor:t.extend("--ftds-notification-warning-color","",l.contentWarningPrimary),warningIconColor:t.extend("--ftds-notification-warning-icon-color","",l.contentWarningIconOnly),warningBorderColor:t.extend("--ftds-notification-warning-border-color","",l.borderWarningSubtle),errorBackgroundColor:t.extend("--ftds-notification-error-background-color","",l.backgroundErrorSubtle),errorColor:t.extend("--ftds-notification-error-color","",l.contentErrorPrimary),errorIconColor:t.extend("--ftds-notification-error-icon-color","",l.contentErrorIconOnly),errorBorderColor:t.extend("--ftds-notification-error-border-color","",l.borderErrorSubtle),borderRadius:t.extend("--ftds-notification-border-radius","",i.borderRadiusPill),borderWidth:t.create("--ftds-notification-border-width","","SIZE","1px"),leadingGap:t.extend("--ftds-notification-leading-gap","",i.spacing2),trailingGap:t.extend("--ftds-notification-trailing-gap","",i.spacing8)};var gm={horizontalPadding:t.extend("--ftds-tooltip-horizontal-padding","",i.spacing2),verticalPadding:t.extend("--ftds-tooltip-vertical-padding","",i.spacing2),borderRadius:t.extend("--ftds-tooltip-border-radius","",i.borderRadiusS),color:t.extend("--ftds-tooltip-color","",l.contentGlobalOnColor),backgroundColor:t.extend("--ftds-tooltip-background-color","",l.contentGlobalPrimary),backgroundOpacity:t.extend("--ftds-tooltip-background-opacity","",i.opacity80),shadow:t.extend("--ftds-tooltip-shadow","",i.shadowElevation02),maxWidth:t.create("--ftds-tooltip-max-width","","SIZE","256px"),gap:t.extend("--ftds-tooltip-gap","",i.spacing05)};var xm={verticalPadding:t.extend("--ftds-reorderable-list-vertical-padding","",i.spacing4),gap:t.extend("--ftds-reorderable-list-gap","",i.spacing1),borderRadius:t.extend("--ftds-reorderable-list-border-radius","",i.borderRadiusM),reorderableItemTitleMarginRight:t.extend("--ftds-reorderable-list-reorderable-item-title-margin-right","",i.spacing6),reorderableItemTitleColor:t.extend("--ftds-reorderable-list-reorderable-item-title-color","",l.contentGlobalPrimary),reorderableItemLeftButtonsGroupMarginRight:t.extend("--ftds-reorderable-list-reorderable-item-left-buttons-group-margin-right","",i.spacing6),reorderableItemLeftButtonsGroupHorizontalGap:t.extend("--ftds-reorderable-list-reorderable-item-left-buttons-group-horizontal-gap","",i.spacing2),reorderableItemRightButtonsGroupHorizontalGap:t.extend("--ftds-reorderable-list-reorderable-item-right-buttons-group-horizontal-gap","",i.spacing2),reorderableItemUsersCountColor:t.extend("--ftds-reorderable-list-reorderable-item-users-count-color","",l.contentGlobalPrimary),reorderableItemUsersCountMarginRight:t.extend("--ftds-reorderable-list-reorderable-item-users-count-margin-right","",i.spacing6),reorderableItemBackgroundColor:t.extend("--ftds-reorderable-list-reorderable-item-background-color","",l.backgroundGlobalOnSurface),reorderableItemWarningMessageGap:t.extend("--ftds-reorderable-list-reorderable-item-warning-message-gap","",i.spacing1),reorderableItemWarningMessageColor:t.extend("--ftds-reorderable-list-reorderable-item-warning-message-color","",l.contentWarningPrimary),reorderableItemWarningMessageIconColor:t.extend("--ftds-reorderable-list-reorderable-item-warning-message-icon-color","",l.contentWarningIconOnly),reorderableItemGripColor:t.extend("--ftds-reorderable-list-reorderable-item-grip-color","",l.contentGlobalSecondary),reorderableItemGripOpacity:t.extend("--ftds-reorderable-list-reorderable-item-grip-opacity","",i.opacity48),boxShadow:t.extend("--ftds-reorderable-list-box-shadow","",i.shadowElevation01),borderWidth:t.create("--ftds-reorderable-list-border-width","","SIZE","1px"),reorderableItemsGap:t.extend("--ftds-reorderable-list-reorderable-items-gap","",i.spacing2),leftPadding:t.extend("--ftds-reorderable-list-left-padding","",i.spacing2),rightPadding:t.extend("--ftds-reorderable-list-right-padding","",i.spacing6),borderColor:t.extend("--ftds-reorderable-list-border-color","",l.borderGlobalPrimary),backgroundColor:t.extend("--ftds-reorderable-list-background-color","",l.backgroundGlobalOnSurfaceDark)};var Em={menuHorizontalPadding:t.extend("--ftds-date-range-picker-menu-horizontal-padding","",i.spacing4),menuVerticalPadding:t.extend("--ftds-date-range-picker-menu-vertical-padding","",i.spacing4),menuVerticalGap:t.extend("--ftds-date-range-picker-menu-vertical-gap","",i.spacing4),menuButtonsVerticalGap:t.extend("--ftds-date-range-picker-menu-buttons-vertical-gap","",i.spacing2)};var Xi;(function(o){o.brand="brand",o.neutral="neutral",o.info="info",o.success="success",o.warning="warning",o.error="error"})(Xi||(Xi={}));var Ji;(function(o){o.large="large",o.medium="medium",o.small="small"})(Ji||(Ji={}));var gt=x(F());function Oc(o,e){let r=Do[o];return gt.css`
|
|
184
|
-
${e?(0,gt.unsafeCSS)(e):gt.css`.ftds-typography--${(0,gt.unsafeCSS)(o)}`} {
|
|
185
|
-
font-family: ${r.fontFamily};
|
|
186
|
-
font-size: ${r.fontSize};
|
|
187
|
-
font-weight: ${r.fontWeight};
|
|
188
|
-
letter-spacing: ${r.letterSpacing};
|
|
189
|
-
line-height: ${r.lineHeight};
|
|
190
|
-
text-decoration: ${r.textDecoration};
|
|
191
|
-
text-transform: ${r.textCase};
|
|
192
|
-
}
|
|
193
|
-
`}var es=[Object.keys(Do).map(o=>Oc(o))];var ts=function(o,e,r,n){var a=arguments.length,s=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,r,n);else for(var d=o.length-1;d>=0;d--)(c=o[d])&&(s=(a<3?c(s):a>3?c(e,r,s):c(e,r))||s);return a>3&&s&&Object.defineProperty(e,r,s),s},He=class extends rs.FtLitElement{constructor(){super(...arguments),this.variant=Tr.body2medium}render(){return this.element?nt`
|
|
194
|
-
<${ot(this.element)}
|
|
195
|
-
part="text"
|
|
196
|
-
class="ftds-typography ftds-typography--${this.variant}">
|
|
197
|
-
<slot></slot>
|
|
198
|
-
</${ot(this.element)}>
|
|
199
|
-
`:nt`
|
|
200
|
-
<slot part="text" class="ftds-typography ftds-typography--${this.variant}"></slot>
|
|
201
|
-
`}};He.styles=[...es];ts([(0,Mo.property)()],He.prototype,"element",void 0);ts([(0,Mo.property)()],He.prototype,"variant",void 0);var ns=x(w());var os={"ft-typography":Be,"ftds-typography":He};(0,ns.customElements)(os);var Rr=function(o,e,r,n){var a=arguments.length,s=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,r,n);else for(var d=o.length-1;d>=0;d--)(c=o[d])&&(s=(a<3?c(s):a>3?c(e,r,s):c(e,r))||s);return a>3&&s&&Object.defineProperty(e,r,s),s},ne=class extends is.FtLitElement{constructor(){super(...arguments),this.height=0,this.resizeObserver=new ResizeObserver(([e])=>{this.height=Math.min(e.contentRect.height,e.contentRect.width)})}render(){var e,r,n;return this.watermark?yt.html`
|
|
182
|
+
`}};Ne.styles=[ma,ga,va,ya,yr,ba,Sa,Aa,Ea,Ta,xa];Ca([(0,wn.property)()],Ne.prototype,"element",void 0);Ca([(0,wn.property)()],Ne.prototype,"variant",void 0);var _a=v(T());var Ia={"ft-typography":Ne};(0,_a.customElements)(Ia);var br=function(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var o=r.length-1;o>=0;o--)(a=r[o])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s},te=class extends Oa.FtLitElement{constructor(){super(...arguments),this.height=0,this.resizeObserver=new ResizeObserver(([e])=>{this.height=Math.min(e.contentRect.height,e.contentRect.width)})}render(){var e,t,n;return this.watermark?ot.html`
|
|
202
183
|
<style>
|
|
203
184
|
.ft-watermark {
|
|
204
185
|
height: ${this.height}px;
|
|
@@ -212,21 +193,21 @@ Also for action icons.`,i.colorGray200),contentGlobalSubtle:t.extend("--ftds-con
|
|
|
212
193
|
text-anchor="middle"
|
|
213
194
|
transform="rotate(-45)"
|
|
214
195
|
fill="${(e=this.watermark)===null||e===void 0?void 0:e.color}"
|
|
215
|
-
fill-opacity="${(
|
|
216
|
-
${(0,
|
|
196
|
+
fill-opacity="${(t=this.watermark)===null||t===void 0?void 0:t.opacity}%">
|
|
197
|
+
${(0,Ra.repeat)(((n=this.watermark)===null||n===void 0?void 0:n.text)||[],i=>ot.svg`<tspan x="0" dy="1.2em">${i}</tspan>`)}
|
|
217
198
|
</text>
|
|
218
199
|
</svg>
|
|
219
200
|
</div>
|
|
220
|
-
`:
|
|
201
|
+
`:ot.nothing}updated(e){if(super.updated(e),e.has("watermark")&&this.watermark){let t=this.svg.getBBox({stroke:!0});this.svg.setAttribute("viewBox",t.x+" "+t.y+" "+t.width+" "+t.height)}e.has("heightReference")&&this.heightReference&&(this.resizeObserver.disconnect(),this.resizeObserver.observe(this.heightReference))}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver.disconnect()}};te.styles=[Xs,yr];br([(0,De.query)(".ft-watermark")],te.prototype,"svg",void 0);br([(0,De.property)({attribute:!1})],te.prototype,"watermark",void 0);br([(0,De.property)({attribute:!1})],te.prototype,"heightReference",void 0);br([(0,De.state)()],te.prototype,"height",void 0);var Ma=v(T());var La={"ft-content-watermark":te};(0,Ma.customElements)(La);var re=function(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var o=r.length-1;o>=0;o--)(a=r[o])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s},N=class extends Ue{constructor(){super(...arguments),this.renderTopic=()=>Sr.html`
|
|
221
202
|
<ft-reader-topic-title></ft-reader-topic-title>
|
|
222
203
|
<ft-reader-topic-content></ft-reader-topic-content>
|
|
223
|
-
`,this.disableContextInteractions=!1,this.headingLevelsShift=0,this.renderBeforeFirst=5,this.renderAfterLast=10,this.renderItem=(e,
|
|
204
|
+
`,this.disableContextInteractions=!1,this.headingLevelsShift=0,this.renderBeforeFirst=5,this.renderAfterLast=10,this.renderItem=(e,t)=>this.renderTopicInContext(e,t),this.getItemKey=e=>this.mapId+e,this.renderedTopicsDebouncer=new W.Debouncer(50),this.visibleTopicsDebouncer=new W.Debouncer(50)}render(){var e,t;let n=((e=this.currentPage)===null||e===void 0?void 0:e.topics)||[];return Sr.html`
|
|
224
205
|
<ft-infinite-scroll class="ft-reader-content"
|
|
225
206
|
.items=${n}
|
|
226
207
|
.renderItem=${this.renderItem}
|
|
227
208
|
.getItemKey=${this.getItemKey}
|
|
228
209
|
.scrollToItem=${this.getScrollTarget()}
|
|
229
|
-
?ensureScrollToTarget=${((
|
|
210
|
+
?ensureScrollToTarget=${((t=this.scrollTarget)===null||t===void 0?void 0:t.section)==null&&!window.location.hash}
|
|
230
211
|
?disableScrollManagement=${this.disableContextInteractions}
|
|
231
212
|
.renderBeforeFirst=${this.renderBeforeFirst}
|
|
232
213
|
.renderAfterLast=${this.renderAfterLast}
|
|
@@ -239,13 +220,13 @@ Also for action icons.`,i.colorGray200),contentGlobalSubtle:t.extend("--ftds-con
|
|
|
239
220
|
.watermark=${this.watermark}
|
|
240
221
|
.exportpartsPrefixes=${["watermark"]}
|
|
241
222
|
.heightReference=${this.offsetParent}></ft-content-watermark>
|
|
242
|
-
`}willUpdate(e){var
|
|
223
|
+
`}willUpdate(e){var t;super.willUpdate(e),e.has("renderTopic")&&((t=this.contentContainer)===null||t===void 0||t.requestUpdate())}renderTopicInContext(e,t){return Sr.html`
|
|
243
224
|
<ft-reader-topic-context tocId="${e}"
|
|
244
225
|
?disableContextInteractions=${this.disableContextInteractions}
|
|
245
226
|
headingLevelsShift="${this.headingLevelsShift}">
|
|
246
|
-
${this.renderTopic(e,
|
|
227
|
+
${this.renderTopic(e,t)}
|
|
247
228
|
</ft-reader-topic-context>
|
|
248
|
-
`}getScrollTarget(){var e,
|
|
229
|
+
`}getScrollTarget(){var e,t,n;if(this.disableContextInteractions)return null;let i=(e=this.contentContainer)===null||e===void 0?void 0:e.isRendered((t=this.scrollTarget)===null||t===void 0?void 0:t.tocId);return!((n=this.scrollTarget)===null||n===void 0)&&n.tocId&&(!i||this.scrollTarget.section==null)?this.scrollTarget.tocId:null}renderedTopicChange(e){this.disableContextInteractions||this.renderedTopicsDebouncer.run(()=>{var t;return(t=this.stateManager)===null||t===void 0?void 0:t.setRenderedTopics(e.detail.items)})}visibleTopicChange(e){var t;this.disableContextInteractions||this.visibleTopicsDebouncer.run(()=>{var n;return(n=this.stateManager)===null||n===void 0?void 0:n.setVisibleTopics(e.detail.items)}),(t=this.stateManager)===null||t===void 0||t.store.dispatchEvent(new Event(pe.visibleTopicChange))}onScrollDone(){var e,t;!this.disableContextInteractions&&!(!((e=this.scrollTarget)===null||e===void 0)&&e.section)&&((t=this.stateManager)===null||t===void 0||t.scrollDone())}};N.elementDefinitions={"ft-infinite-scroll":R,"ft-content-watermark":te};N.styles=Kn;re([(0,wt.property)()],N.prototype,"renderTopic",void 0);re([(0,wt.property)({type:Boolean})],N.prototype,"disableContextInteractions",void 0);re([(0,W.numberProperty)()],N.prototype,"headingLevelsShift",void 0);re([(0,W.redux)()],N.prototype,"currentPage",void 0);re([(0,W.redux)()],N.prototype,"scrollTarget",void 0);re([(0,W.redux)()],N.prototype,"visibleTopics",void 0);re([(0,W.redux)({selector:r=>{var e,t;return(t=(e=r.configuration)===null||e===void 0?void 0:e.loadBeforeFirstVisibleTopic)!==null&&t!==void 0?t:5}})],N.prototype,"renderBeforeFirst",void 0);re([(0,W.redux)({selector:r=>{var e,t;return(t=(e=r.configuration)===null||e===void 0?void 0:e.loadAfterLastVisibleTopic)!==null&&t!==void 0?t:5}})],N.prototype,"renderAfterLast",void 0);re([(0,W.redux)()],N.prototype,"mapId",void 0);re([(0,wt.query)(".ft-reader-content")],N.prototype,"contentContainer",void 0);re([(0,W.redux)({selector:r=>{var e;return(e=r.map)===null||e===void 0?void 0:e.watermark}})],N.prototype,"watermark",void 0);var Pa={"ft-reader-content":N};(0,Na.customElements)(Pa);})();
|
|
249
230
|
/*! Bundled license information:
|
|
250
231
|
|
|
251
232
|
@lit/reactive-element/css-tag.js:
|