@fluid-topics/ft-reader-content 1.4.3 → 1.4.5
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.js +13 -13
- package/build/ft-reader-content.light.js +189 -46
- package/build/ft-reader-content.min.js +190 -57
- package/build/index.d.ts +0 -1
- package/build/index.js +0 -3
- package/package.json +8 -7
- package/build/watermark/ft-reader-watermark.d.ts +0 -11
- package/build/watermark/ft-reader-watermark.js +0 -53
- package/build/watermark/ft-reader-watermark.properties.d.ts +0 -2
- package/build/watermark/ft-reader-watermark.properties.js +0 -1
- package/build/watermark/ft-reader-watermark.styles.d.ts +0 -2
- package/build/watermark/ft-reader-watermark.styles.js +0 -23
- package/build/watermark/index.d.ts +0 -2
- package/build/watermark/index.js +0 -5
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
"use strict";(()=>{var rs=Object.create;var
|
|
2
|
-
`)===0?
|
|
1
|
+
"use strict";(()=>{var rs=Object.create;var Go=Object.defineProperty;var os=Object.getOwnPropertyDescriptor;var ns=Object.getOwnPropertyNames;var as=Object.getPrototypeOf,is=Object.prototype.hasOwnProperty;var Xe=(o,e)=>()=>(e||o((e={exports:{}}).exports,e),e.exports);var ss=(o,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of ns(e))!is.call(o,a)&&a!==r&&Go(o,a,{get:()=>e[a],enumerable:!(n=os(e,a))||n.enumerable});return o};var C=(o,e,r)=>(r=o!=null?rs(as(o)):{},ss(e||!o||!o.__esModule?Go(r,"default",{value:o,enumerable:!0}):r,o));var _=Xe((hc,Wo)=>{Wo.exports=ftGlobals.wcUtils});var V=Xe((gc,$o)=>{$o.exports=ftGlobals.lit});var J=Xe((yc,jo)=>{jo.exports=ftGlobals.litDecorators});var Ur=Xe((xc,Ko)=>{Ko.exports=ftGlobals.litRepeat});var qo=Xe((Sc,Zo)=>{Zo.exports=ftGlobals.litUnsafeHTML});var un=Xe((Ee,dn)=>{var $t=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,jt=function(){function o(){this.fetch=!1,this.DOMException=$t.DOMException}return o.prototype=$t,new o}();(function(o){var e=function(r){var n=typeof o<"u"&&o||typeof self<"u"&&self||typeof global<"u"&&global||{},a={searchParams:"URLSearchParams"in n,iterable:"Symbol"in n&&"iterator"in Symbol,blob:"FileReader"in n&&"Blob"in n&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in n,arrayBuffer:"ArrayBuffer"in n};function s(f){return f&&DataView.prototype.isPrototypeOf(f)}if(a.arrayBuffer)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],d=ArrayBuffer.isView||function(f){return f&&c.indexOf(Object.prototype.toString.call(f))>-1};function u(f){if(typeof f!="string"&&(f=String(f)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(f)||f==="")throw new TypeError('Invalid character in header field name: "'+f+'"');return f.toLowerCase()}function p(f){return typeof f!="string"&&(f=String(f)),f}function h(f){var y={next:function(){var A=f.shift();return{done:A===void 0,value:A}}};return a.iterable&&(y[Symbol.iterator]=function(){return y}),y}function g(f){this.map={},f instanceof g?f.forEach(function(y,A){this.append(A,y)},this):Array.isArray(f)?f.forEach(function(y){if(y.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+y.length);this.append(y[0],y[1])},this):f&&Object.getOwnPropertyNames(f).forEach(function(y){this.append(y,f[y])},this)}g.prototype.append=function(f,y){f=u(f),y=p(y);var A=this.map[f];this.map[f]=A?A+", "+y:y},g.prototype.delete=function(f){delete this.map[u(f)]},g.prototype.get=function(f){return f=u(f),this.has(f)?this.map[f]:null},g.prototype.has=function(f){return this.map.hasOwnProperty(u(f))},g.prototype.set=function(f,y){this.map[u(f)]=p(y)},g.prototype.forEach=function(f,y){for(var A in this.map)this.map.hasOwnProperty(A)&&f.call(y,this.map[A],A,this)},g.prototype.keys=function(){var f=[];return this.forEach(function(y,A){f.push(A)}),h(f)},g.prototype.values=function(){var f=[];return this.forEach(function(y){f.push(y)}),h(f)},g.prototype.entries=function(){var f=[];return this.forEach(function(y,A){f.push([A,y])}),h(f)},a.iterable&&(g.prototype[Symbol.iterator]=g.prototype.entries);function m(f){if(!f._noBody){if(f.bodyUsed)return Promise.reject(new TypeError("Already read"));f.bodyUsed=!0}}function v(f){return new Promise(function(y,A){f.onload=function(){y(f.result)},f.onerror=function(){A(f.error)}})}function b(f){var y=new FileReader,A=v(y);return y.readAsArrayBuffer(f),A}function O(f){var y=new FileReader,A=v(y),N=/charset=([A-Za-z0-9_-]+)/.exec(f.type),B=N?N[1]:"utf-8";return y.readAsText(f,B),A}function w(f){for(var y=new Uint8Array(f),A=new Array(y.length),N=0;N<y.length;N++)A[N]=String.fromCharCode(y[N]);return A.join("")}function I(f){if(f.slice)return f.slice(0);var y=new Uint8Array(f.byteLength);return y.set(new Uint8Array(f)),y.buffer}function T(){return this.bodyUsed=!1,this._initBody=function(f){this.bodyUsed=this.bodyUsed,this._bodyInit=f,f?typeof f=="string"?this._bodyText=f:a.blob&&Blob.prototype.isPrototypeOf(f)?this._bodyBlob=f:a.formData&&FormData.prototype.isPrototypeOf(f)?this._bodyFormData=f:a.searchParams&&URLSearchParams.prototype.isPrototypeOf(f)?this._bodyText=f.toString():a.arrayBuffer&&a.blob&&s(f)?(this._bodyArrayBuffer=I(f.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(f)||d(f))?this._bodyArrayBuffer=I(f):this._bodyText=f=Object.prototype.toString.call(f):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof f=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):a.searchParams&&URLSearchParams.prototype.isPrototypeOf(f)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},a.blob&&(this.blob=function(){var f=m(this);if(f)return f;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var f=m(this);return f||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else{if(a.blob)return this.blob().then(b);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var f=m(this);if(f)return f;if(this._bodyBlob)return O(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(w(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},a.formData&&(this.formData=function(){return this.text().then(de)}),this.json=function(){return this.text().then(JSON.parse)},this}var P=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function L(f){var y=f.toUpperCase();return P.indexOf(y)>-1?y:f}function $(f,y){if(!(this instanceof $))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');y=y||{};var A=y.body;if(f instanceof $){if(f.bodyUsed)throw new TypeError("Already read");this.url=f.url,this.credentials=f.credentials,y.headers||(this.headers=new g(f.headers)),this.method=f.method,this.mode=f.mode,this.signal=f.signal,!A&&f._bodyInit!=null&&(A=f._bodyInit,f.bodyUsed=!0)}else this.url=String(f);if(this.credentials=y.credentials||this.credentials||"same-origin",(y.headers||!this.headers)&&(this.headers=new g(y.headers)),this.method=L(y.method||this.method||"GET"),this.mode=y.mode||this.mode||null,this.signal=y.signal||this.signal||function(){if("AbortController"in n){var R=new AbortController;return R.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&A)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(A),(this.method==="GET"||this.method==="HEAD")&&(y.cache==="no-store"||y.cache==="no-cache")){var N=/([?&])_=[^&]*/;if(N.test(this.url))this.url=this.url.replace(N,"$1_="+new Date().getTime());else{var B=/\?/;this.url+=(B.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}$.prototype.clone=function(){return new $(this,{body:this._bodyInit})};function de(f){var y=new FormData;return f.trim().split("&").forEach(function(A){if(A){var N=A.split("="),B=N.shift().replace(/\+/g," "),R=N.join("=").replace(/\+/g," ");y.append(decodeURIComponent(B),decodeURIComponent(R))}}),y}function Pe(f){var y=new g,A=f.replace(/\r?\n[\t ]+/g," ");return A.split("\r").map(function(N){return N.indexOf(`
|
|
2
|
+
`)===0?N.substr(1,N.length):N}).forEach(function(N){var B=N.split(":"),R=B.shift().trim();if(R){var Ut=B.join(":").trim();try{y.append(R,Ut)}catch(Fr){console.warn("Response "+Fr.message)}}}),y}T.call($.prototype);function X(f,y){if(!(this instanceof X))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(y||(y={}),this.type="default",this.status=y.status===void 0?200:y.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=y.statusText===void 0?"":""+y.statusText,this.headers=new g(y.headers),this.url=y.url||"",this._initBody(f)}T.call(X.prototype),X.prototype.clone=function(){return new X(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new g(this.headers),url:this.url})},X.error=function(){var f=new X(null,{status:200,statusText:""});return f.ok=!1,f.status=0,f.type="error",f};var ke=[301,302,303,307,308];X.redirect=function(f,y){if(ke.indexOf(y)===-1)throw new RangeError("Invalid status code");return new X(null,{status:y,headers:{location:f}})},r.DOMException=n.DOMException;try{new r.DOMException}catch{r.DOMException=function(y,A){this.message=y,this.name=A;var N=Error(y);this.stack=N.stack},r.DOMException.prototype=Object.create(Error.prototype),r.DOMException.prototype.constructor=r.DOMException}function Qe(f,y){return new Promise(function(A,N){var B=new $(f,y);if(B.signal&&B.signal.aborted)return N(new r.DOMException("Aborted","AbortError"));var R=new XMLHttpRequest;function Ut(){R.abort()}R.onload=function(){var j={statusText:R.statusText,headers:Pe(R.getAllResponseHeaders()||"")};B.url.indexOf("file://")===0&&(R.status<200||R.status>599)?j.status=200:j.status=R.status,j.url="responseURL"in R?R.responseURL:j.headers.get("X-Request-URL");var De="response"in R?R.response:R.responseText;setTimeout(function(){A(new X(De,j))},0)},R.onerror=function(){setTimeout(function(){N(new TypeError("Network request failed"))},0)},R.ontimeout=function(){setTimeout(function(){N(new TypeError("Network request timed out"))},0)},R.onabort=function(){setTimeout(function(){N(new r.DOMException("Aborted","AbortError"))},0)};function Fr(j){try{return j===""&&n.location.href?n.location.href:j}catch{return j}}if(R.open(B.method,Fr(B.url),!0),B.credentials==="include"?R.withCredentials=!0:B.credentials==="omit"&&(R.withCredentials=!1),"responseType"in R&&(a.blob?R.responseType="blob":a.arrayBuffer&&(R.responseType="arraybuffer")),y&&typeof y.headers=="object"&&!(y.headers instanceof g||n.Headers&&y.headers instanceof n.Headers)){var zo=[];Object.getOwnPropertyNames(y.headers).forEach(function(j){zo.push(u(j)),R.setRequestHeader(j,p(y.headers[j]))}),B.headers.forEach(function(j,De){zo.indexOf(De)===-1&&R.setRequestHeader(De,j)})}else B.headers.forEach(function(j,De){R.setRequestHeader(De,j)});B.signal&&(B.signal.addEventListener("abort",Ut),R.onreadystatechange=function(){R.readyState===4&&B.signal.removeEventListener("abort",Ut)}),R.send(typeof B._bodyInit>"u"?null:B._bodyInit)})}return Qe.polyfill=!0,n.fetch||(n.fetch=Qe,n.Headers=g,n.Request=$,n.Response=X),r.Headers=g,r.Request=$,r.Response=X,r.fetch=Qe,r}({})})(jt);jt.fetch.ponyfill=!0;delete jt.fetch.polyfill;var rt=$t.fetch?$t:jt;Ee=rt.fetch;Ee.default=rt.fetch;Ee.fetch=rt.fetch;Ee.Headers=rt.Headers;Ee.Request=rt.Request;Ee.Response=rt.Response;dn.exports=Ee});var ts=C(_());var Dr=C(V()),Bt=C(J()),ne=C(_());var Ht=C(_()),Vo=C(J());var Fe;(function(o){o.clusteringHelperCreated="clustering-helper-created",o.mapAttachmentsUpdate="map-attachments-update",o.visibleTopicChange="visible-topic-change"})(Fe||(Fe={}));var ve;(function(o){o.FEEDBACK="FEEDBACK",o.RATING="RATING",o.PRINT="PRINT",o.BOOKMARK="BOOKMARK",o.COLLECTIONS="COLLECTIONS",o.PERSONAL_BOOKS="PERSONAL_BOOKS"})(ve||(ve={}));var cs=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},Br=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},Mr=Symbol("registerInterval"),ls=(0,Ht.applyMixinOnce)(Symbol("toFtReaderComponent"),function(o){var e;class r extends o{constructor(){super(...arguments),this[e]=0}setReaderStateManager(a){this.clearStateManager(),this.stateManager=a,this.addStore(a.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var a;return(a=this.stateManager)===null||a===void 0?void 0:a.service}connectedCallback(){super.connectedCallback(),this[Mr]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[Mr]):this.dispatchEvent(new Br)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=Mr,cs([(0,Vo.state)()],r.prototype,"stateManager",void 0),r}),Je=class extends ls(Ht.FtLitElementRedux){};var en=C(_());var et=C(V()),K=C(J()),Xo=C(Ur()),F=C(_()),Jo=C(qo());var Yo=C(V()),zt=C(_()),Hr={padding:zt.FtCssVariableFactory.create("--ft-infinite-scroll-padding","","SIZE","0"),itemsGap:zt.FtCssVariableFactory.create("--ft-infinite-scroll-items-gap","","SIZE","4px"),itemContainerMinHeight:zt.FtCssVariableFactory.create("--ft-infinite-scroll-item-container-min-height","","SIZE",".1px")},Qo=Yo.css`
|
|
3
3
|
.items-container {
|
|
4
|
-
padding: ${
|
|
4
|
+
padding: ${Hr.padding};
|
|
5
5
|
outline: none;
|
|
6
6
|
}
|
|
7
7
|
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
By adding this gap we ensure that the previous item will be fully hidden
|
|
19
19
|
and even if its size changes, it will not impact the scroll offset
|
|
20
20
|
*/
|
|
21
|
-
margin-top: ${
|
|
21
|
+
margin-top: ${Hr.itemsGap};
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
.item-container:not(.rendered) {
|
|
@@ -27,25 +27,36 @@
|
|
|
27
27
|
|
|
28
28
|
.item-container.rendered {
|
|
29
29
|
display: flow-root;
|
|
30
|
-
min-height: ${
|
|
30
|
+
min-height: ${Hr.itemContainerMinHeight};
|
|
31
31
|
}
|
|
32
|
-
`;var
|
|
32
|
+
`;var ee=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},zr=class extends CustomEvent{constructor(e,r){super("visible-items-change",{detail:{indexes:e,items:r,visibleIndexes:e,visibleItems:r}})}},Gr=class extends CustomEvent{constructor(e,r){super("rendered-items-change",{detail:{indexes:e,items:r}})}},Wr=class extends Event{constructor(){super("scrolled-to-target")}},ds=o=>(o??[])[(o??[]).length-1],U=class extends F.FtLitElement{constructor(){super(...arguments),this.items=[],this.renderItem=()=>et.html``,this.getItemKey=(e,r)=>`${r} - ${JSON.stringify(e)}`,this.internalScroll=!1,this.renderBeforeFirst=1,this.renderAfterLast=1,this.ensureScrollToTarget=!1,this.visibleItems=[],this.scrolledToTarget=!1,this.scrolling=!1,this.renderApprovalTimeouts=[],this.renderedIndexes=new Set,this.scrollDebouncer=new F.Debouncer(5),this.scrollDoneDebouncer=new F.Debouncer(10),this.onVisibilityChange=e=>{let r=new Set(this.visibleItems),n=new Set;for(let a of e){let s=+a.target.getAttribute("data-item-index");a.intersectionRect.height>0?(r.add(s),n.add(s)):n.has(s)||r.delete(s)}this.visibleItems=[...r].sort((a,s)=>a-s)},this.intersectionObserver=new IntersectionObserver(this.onVisibilityChange),this.scrollingDebouncer=new F.Debouncer(50),this.ignoreNextScrollEvent=!1,this.scrollListener=()=>{var e;let r=this.ignoreNextScrollEvent;this.ignoreNextScrollEvent=!1,r||(this.scrolling=!0,this.scrollingDebouncer.run(()=>this.scrolling=!1));let n=this.scrollable.scrollTop,a=n-((e=this.lastScrollTop)!==null&&e!==void 0?e:0);if(this.lastScrollTop=n,this.scrolledToTarget&&(this.restoreScrollIfNeeded(r?0:a),!r||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 r;let n=this.scrollable.scrollHeight,a=n-((r=this.lastScrollHeight)!==null&&r!==void 0?r:n);if(this.lastScrollHeight=n,a!==0&&this.scrolledToTarget&&this.scrollRestorationItem!=null&&this.scrollRestorationOffset!=null&&!(this.scrollRestorationItem===0&&this.scrollRestorationOffset<0)){let s=this.getItem(this.scrollRestorationItem),c=this.getOffset(s),d=(0,F.minmax)(this.scrollRestorationItem===0?-c:1,this.scrollRestorationOffset,s.clientHeight-1),u=c+d+e-this.scrollable.scrollTop;(Math.abs(a-u)<4||Math.abs(u)>5)&&(this.ignoreNextScrollEvent=!0,this.scrollable.scrollTop+=u)}},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.resetVisibleItemsDebouncer=new F.Debouncer(10)}get scrollable(){var e;return(e=this._scrollable)!==null&&e!==void 0?e:document.body}set scrollable(e){var r,n,a;this._scrollable!==e&&(this._scrollable&&(this._scrollable.removeEventListener("scroll",this.scrollListener),this.initialOverflowAnchorValue&&(this._scrollable.style.overflowAnchor=this.initialOverflowAnchorValue),F.scrollHelper.release(this,this._scrollable)),this._scrollable=F.scrollHelper.lock(this,e),e&&!this._scrollable&&console.error("Scrollable parent is already locked",this,e),(r=this._scrollable)===null||r===void 0||r.addEventListener("scroll",this.scrollListener),this.lastScrollTop=(n=this._scrollable)===null||n===void 0?void 0:n.scrollTop,this.lastScrollHeight=(a=this._scrollable)===null||a===void 0?void 0:a.scrollHeight,this._scrollable&&(this.initialOverflowAnchorValue=getComputedStyle(this._scrollable).overflowAnchor,this._scrollable.style.overflowAnchor="none"))}render(){return et.html`
|
|
33
33
|
<div @scroll-into-view="${this.onScrollIntoView}" class="items-container ${this.internalScroll?"scrollable":""}" tabindex="-1">
|
|
34
|
-
${(0,
|
|
34
|
+
${(0,Xo.repeat)(this.items,(e,r)=>this.getItemKey(e,r),(e,r)=>this.renderItemContainer(e,r))}
|
|
35
35
|
</div>
|
|
36
|
-
`}renderItemContainer(e,
|
|
37
|
-
<div id="item-${
|
|
38
|
-
class="item-container ${
|
|
39
|
-
data-item-index="${
|
|
40
|
-
${
|
|
36
|
+
`}renderItemContainer(e,r){this.prepareRenderIfNeeded(r);let n=this.scrolledToTarget&&this.visibleItems.includes(r),a=this.renderedIndexes.has(r);return et.html`
|
|
37
|
+
<div id="item-${r}"
|
|
38
|
+
class="item-container ${a?"rendered":""} ${n?"visible":""}"
|
|
39
|
+
data-item-index="${r}">
|
|
40
|
+
${a?(()=>{let c=this.renderItem(e,r);return typeof c=="string"?(0,Jo.unsafeHTML)(c):c})():et.nothing}
|
|
41
41
|
</div>
|
|
42
|
-
`}prepareRenderIfNeeded(e){let
|
|
43
|
-
`;var
|
|
44
|
-
`;var
|
|
42
|
+
`}prepareRenderIfNeeded(e){let r=this.renderApprovalTimeouts[e]!=null;this.inRenderRange(e)&&!r&&(this.renderApprovalTimeouts[e]=setTimeout(()=>{this.inRenderRange(e)?this.addRenderedIndex(e):this.renderApprovalTimeouts[e]=void 0,this.requestUpdate()},300))}addRenderedIndex(e){e>=0&&!this.renderedIndexes.has(e)&&this.renderedIndexes.add(e)}inRenderRange(e){return e>=this.visibleItems[0]-this.renderBeforeFirst&&e<=ds(this.visibleItems)+this.renderAfterLast}isRendered(e){return this.renderedIndexes.has(this.items.indexOf(e))}resetScroll(e=!0){this.shouldRestoreScroll=!1,this.intersectionObserver.disconnect(),this.visibleItems=[],this.scrolledToTarget=!1,this.internalScroll&&this.scrollable!==this.internalScrollable?this.scrollable=this.internalScrollable:!this.internalScroll&&e&&(this.scrollable=F.scrollHelper.findFirstScrollableParent(this.itemsContainer));let r=this.resolveScrollToIndex();this.addRenderedIndex(r),this.scrollToTarget(r),this.scrollDoneDebouncer.run(()=>{this.ensureScrollToTarget&&r>=0&&this.scrollDebouncer.run(()=>{Math.abs(this.scrollable.scrollTop-this.getOffset(r))>5&&this.scrollToTarget(r)},500),this.scrollToTarget(r),this.scrolledToTarget=!0,this.shouldRestoreScroll=!0,this.resetIntersectionObserver()})}resolveScrollToIndex(){var e;let r=(e=this.scrollToIndex)!==null&&e!==void 0?e:this.scrollToItem?this.items.indexOf(this.scrollToItem):-1;return r>=this.items.length?-1:r}getItem(e){var r,n,a;return(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelector(`#item-${e}`))!==null&&n!==void 0?n:(a=this.shadowRoot)===null||a===void 0?void 0:a.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 r;this.scrollDebouncer.cancel();let n=e.composedPath()[0],a=this.getOffset(n),s=(r=e.composedPath().find(c=>typeof c.matches=="function"&&c.matches(".item-container")))===null||r===void 0?void 0:r.getAttribute("data-item-index");this.scrollRestorationItem=s==null?this.scrollRestorationItem:+s,this.scrollRestorationOffset=a-this.getOffset(this.scrollRestorationItem),this.ignoreNextScrollEvent=!0,this.scrollable.scrollTop=a}getOffset(e){let r=typeof e=="number"?this.getItem(e):e;return r?F.scrollHelper.getAbsoluteScrollOffset(this.scrollable,r):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,r,n,a){if(n=n??0,a=a??r.length-1,a<=n)return r[n];let s=Math.floor((a-n)/2)+n,c=r[s],d=this.getOffset(c);return d>e?this.searchFirstVisibleItem(e,r,n,s-1):d+c.clientHeight<e?this.searchFirstVisibleItem(e,r,s+1,a):c}get shouldRestoreScroll(){return this._shouldRestoreScroll}set shouldRestoreScroll(e){let r=e&&!this._shouldRestoreScroll;this._shouldRestoreScroll=e,r&&requestAnimationFrame(this.scrollAdjustment)}willUpdate(e){super.willUpdate(e),e.has("items")&&(this.renderedIndexes=new Set,this.lastRenderedItemsLength=0,this.renderApprovalTimeouts=[]),((e.has("scrollToItem")||e.has("scrollToIndex"))&&(this.scrollToItem!=null||this.scrollToIndex!=null)||e.has("internalScroll"))&&(0,F.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 Wr)}contentAvailableCallback(e){var r,n;super.contentAvailableCallback(e);let a=[...(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".item-container.rendered"))!==null&&n!==void 0?n:[]].map(s=>+s.getAttribute("data-item-index"));this.lastRenderedItemsLength!==a.length&&(this.dispatchRenderedItemsChangeEvent(a),this.lastRenderedItemsLength=a.length)}dispatchRenderedItemsChangeEvent(e){let r=e??[...this.renderedIndexes].sort((n,a)=>n-a);this.dispatchEvent(new Gr(r,r.map(n=>this.items[n])))}onVisibleItemsChange(){this.visibleItems.every((r,n)=>this.visibleItems[n+1]==null||r+1===this.visibleItems[n+1])||(0,F.deepEqual)(this.visibleItems,this.lastNotOkVisibleItems)?(this.resetVisibleItemsDebouncer.cancel(),this.dispatchVisibleItemsEvent()):this.resetVisibleItemsDebouncer.run(()=>{this.lastNotOkVisibleItems=[...this.visibleItems],this.visibleItems=[],this.resetIntersectionObserver()})}dispatchVisibleItemsEvent(){var e;(e=this.cancelableDispatchEvent)===null||e===void 0||e.cancel(),this.cancelableDispatchEvent=(0,F.cancelable)((0,F.waitUntil)(()=>this.scrolledToTarget&&!this.scrolling)),this.cancelableDispatchEvent.then(()=>this.dispatchEvent(new zr(this.visibleItems,this.visibleItems.map(r=>this.items[r])))).catch(()=>null)}};U.styles=Qo;ee([(0,K.property)({attribute:!1,hasChanged:F.hasChanged})],U.prototype,"items",void 0);ee([(0,K.property)({attribute:!1})],U.prototype,"renderItem",void 0);ee([(0,K.property)({attribute:!1})],U.prototype,"getItemKey",void 0);ee([(0,K.property)({type:Object})],U.prototype,"scrollToItem",void 0);ee([(0,K.property)({type:Number})],U.prototype,"scrollToIndex",void 0);ee([(0,K.property)({type:Boolean})],U.prototype,"internalScroll",void 0);ee([(0,K.property)({type:Number})],U.prototype,"renderBeforeFirst",void 0);ee([(0,K.property)({type:Number})],U.prototype,"renderAfterLast",void 0);ee([(0,K.property)({type:Boolean})],U.prototype,"ensureScrollToTarget",void 0);ee([(0,K.state)({hasChanged(o,e){return o!=null&&e==null||o.length!==e.length||o[0]!==e[0]}})],U.prototype,"visibleItems",void 0);ee([(0,K.query)(".scrollable")],U.prototype,"internalScrollable",void 0);ee([(0,K.query)(".items-container")],U.prototype,"itemsContainer",void 0);ee([(0,K.state)()],U.prototype,"scrolledToTarget",void 0);ee([(0,K.state)()],U.prototype,"scrolling",void 0);(0,en.customElement)("ft-infinite-scroll")(U);var tn=C(V()),_c={},rn=tn.css`
|
|
43
|
+
`;var sn=C(_());var an=C(V()),tt=C(J());var on=C(V());var nn=on.css`
|
|
44
|
+
`;var Gt=C(_()),Me=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},ae=class extends Je{constructor(){super(...arguments),this.disableContextInteractions=!1,this.headingLevelsShift=0,this.registeredComponents=[]}render(){return an.html`
|
|
45
45
|
<article id=${this.tocId}>
|
|
46
46
|
<slot @register-ft-reader-topic-component=${this.registerComponent}></slot>
|
|
47
47
|
</article>
|
|
48
|
-
`}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=[]}};J.styles=nn;Ce([(0,ot.redux)({selector:r=>{var e;return(e=r.map)===null||e===void 0?void 0:e.id}})],J.prototype,"mapId",void 0);Ce([(0,ot.redux)({selector:r=>r.translation.profileId})],J.prototype,"translationProfileId",void 0);Ce([(0,ot.redux)({selector:r=>r.translation.destinationLanguage})],J.prototype,"translationDestinationLanguage",void 0);Ce([(0,Fe.property)()],J.prototype,"tocId",void 0);Ce([(0,Fe.property)({type:Boolean})],J.prototype,"disableContextInteractions",void 0);Ce([(0,Fe.property)({type:Number})],J.prototype,"headingLevelsShift",void 0);Ce([(0,Fe.state)()],J.prototype,"tocNode",void 0);(0,an.customElement)("ft-reader-topic-context")(J);var un=b(C());var je=b($()),Ye=b(X());var on=b($());var ln=on.css`
|
|
48
|
+
`}registerComponent(e){e.stopPropagation();let r=e.composedPath()[0];this.register(r)}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(r=>e.has(r))&&this.setTocNode(),e.has("tocNode")&&this.registeredComponents.forEach(r=>r.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=[]}};ae.styles=nn;Me([(0,Gt.redux)({selector:o=>{var e;return(e=o.map)===null||e===void 0?void 0:e.id}})],ae.prototype,"mapId",void 0);Me([(0,Gt.redux)({selector:o=>o.translation.profileId})],ae.prototype,"translationProfileId",void 0);Me([(0,Gt.redux)({selector:o=>o.translation.destinationLanguage})],ae.prototype,"translationDestinationLanguage",void 0);Me([(0,tt.property)()],ae.prototype,"tocId",void 0);Me([(0,tt.property)({type:Boolean})],ae.prototype,"disableContextInteractions",void 0);Me([(0,tt.property)({type:Number})],ae.prototype,"headingLevelsShift",void 0);Me([(0,tt.state)()],ae.prototype,"tocNode",void 0);(0,sn.customElement)("ft-reader-topic-context")(ae);var Ja=C(_());var Pt=C(V()),$e=C(J()),G=C(_());var fe=C(_());var cn=C(_()),us={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]}},ln=o=>cn.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:us});var $r=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 h=this.convertSectionNodes((d=a.pageToc)!==null&&d!==void 0?d:[],r+1,a.tocId),g=this.convertNodes(a.children,r+1,p.tocId);return p.children=[...h,...g],[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;let p={number:this.pages.length+1,title:(n=e.title)!==null&&n!==void 0?n:"",untranslatedTitle:e.untranslatedTitle,rootTocId:(a=e.tocId)!==null&&a!==void 0?a:"root",toc:((s=e.pageToc)!==null&&s!==void 0?s:[]).map(m=>this.nodeByTocId[m.tocId]),topics:[],hiddenTopics:[],breadcrumb:r?this.buildBreadcrumb(this.nodeByTocId[r]):[]},h=(m,v)=>(v?p.topics:p.hiddenTopics).push(m),g=(d=(c=e.pageConfiguration)===null||c===void 0?void 0:c.parentsVisibility)!==null&&d!==void 0?d:[];return p.breadcrumb.forEach((m,v)=>{h(m,g[v])}),e.tocId&&h(e.tocId,e.pageConfiguration.isVisible),p.topics.push(...this.tocIds((u=e.pageToc)!==null&&u!==void 0?u:[])),p}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}},Wt=class{convertPaginatedToc(e,r){return new $r(e,r).build()}};var fs=C(un(),1);var pn;(function(o){o.black="black",o.green="green",o.blue="blue",o.purple="purple",o.red="red",o.orange="orange",o.yellow="yellow"})(pn||(pn={}));var fn;(function(o){o.OFFICIAL="OFFICIAL",o.PERSONAL="PERSONAL",o.SHARED="SHARED"})(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.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"})(gn||(gn={}));var yn;(function(o){o.LAST_WEEK="LAST_WEEK",o.LAST_MONTH="LAST_MONTH",o.LAST_QUARTER="LAST_QUARTER",o.LAST_YEAR="LAST_YEAR"})(yn||(yn={}));var mn;(function(o){o.VALUE="VALUE",o.DATE="DATE",o.RANGE="RANGE"})(mn||(mn={}));var bn;(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__AI_TRANSLATE="DOCUMENT__AI_TRANSLATE",o.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",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__DISPLAY="TOPIC__DISPLAY",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"})(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"})(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 _n;(function(o){o.ARTICLE="ARTICLE",o.BOOK="BOOK",o.SHARED_BOOK="SHARED_BOOK",o.HTML_PACKAGE="HTML_PACKAGE"})(_n||(_n={}));var Ln;(function(o){o.FLUIDTOPICS="FLUIDTOPICS",o.EXTERNAL="EXTERNAL"})(Ln||(Ln={}));var Nn;(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"})(Nn||(Nn={}));var Pn;(function(o){o.LAST_WEEK="LAST_WEEK",o.LAST_MONTH="LAST_MONTH",o.LAST_QUARTER="LAST_QUARTER",o.LAST_YEAR="LAST_YEAR"})(Pn||(Pn={}));var kn;(function(o){o.MAP="MAP",o.DOCUMENT="DOCUMENT",o.TOPIC="TOPIC",o.HTML_PACKAGE="HTML_PACKAGE",o.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(kn||(kn={}));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 Fn;(function(o){o.PLAIN_TEXT="PLAIN_TEXT",o.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",o.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Fn||(Fn={}));var k;(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.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_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.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",o.KHUB_ADMIN="KHUB_ADMIN",o.USERS_ADMIN="USERS_ADMIN",o.PORTAL_ADMIN="PORTAL_ADMIN",o.ADMIN="ADMIN"})(k||(k={}));var ie;(function(o){o.SEARCHES="SEARCHES",o.BOOKMARKS="BOOKMARKS",o.BOOKS="BOOKS",o.COLLECTIONS="COLLECTIONS"})(ie||(ie={}));var Mn;(function(o){o.UNAUTHENTICATED="UNAUTHENTICATED",o.USER_INCOMPLETE="USER_INCOMPLETE",o.MFA_REQUIRED="MFA_REQUIRED",o.AUTHENTICATED="AUTHENTICATED"})(Mn||(Mn={}));var Bn;(function(o){o.VALID="VALID",o.INVALID="INVALID"})(Bn||(Bn={}));var Un;(function(o){o.JSON="JSON",o.TEXT="TEXT"})(Un||(Un={}));var Hn;(function(o){o.USER="USER",o.ASSISTANT="ASSISTANT"})(Hn||(Hn={}));var zn;(function(o){o.TEXT="TEXT",o.HTML="HTML"})(zn||(zn={}));var Gn;(function(o){o.HTML="HTML",o.MARKDOWN="MARKDOWN"})(Gn||(Gn={}));var ps={[k.PERSONAL_BOOK_SHARE_USER]:[k.PERSONAL_BOOK_USER],[k.HTML_EXPORT_USER]:[k.PERSONAL_BOOK_USER],[k.PDF_EXPORT_USER]:[k.PERSONAL_BOOK_USER],[k.KHUB_ADMIN]:[k.CONTENT_PUBLISHER],[k.ADMIN]:[k.KHUB_ADMIN,k.USERS_ADMIN,k.PORTAL_ADMIN],[k.GENERATIVE_AI_EXPORT_USER]:[k.GENERATIVE_AI_USER]};function Wn(o,e){return o===e||(ps[o]??[]).some(r=>Wn(r,e))}function xe(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=>Wn(n,e))}var Ya=C(_());var Jn=C(V()),Z=C(J()),ue=C(_());var $n=C(V());var jn=$n.css`
|
|
49
|
+
`;var Vt=C(_()),hs="ft-app-info",ye=class o extends CustomEvent{constructor(e){super(o.eventName,{detail:e})}};ye.eventName="authentication-change";var gs={session:(o,e)=>{(0,Vt.deepEqual)(o.session,e.payload)||(o.session=e.payload,setTimeout(()=>S.dispatchEvent(new ye(e.payload)),0))}},S=Vt.FtReduxStore.get({name:hs,reducers:gs,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],availableContentLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!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 jr=C(_());var Be=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 Kt=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Be.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Be.await()}};var Q=class extends Kt{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 jr.CacheRegistry,this.cache=e?a.commonCache:new jr.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 Zt=class extends Q{async listMyBookmarks(){let e=S.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var Vr=class{addCommand(e,r=!1){S.commands.add(e,r)}consumeCommand(e){return S.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Vr;var se=C(_());var Vn,ot=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},ys=Symbol("clearAfterUnitTest"),qt=class extends(0,se.withEventBus)(Q){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Vn]=()=>{this.defaultMessages={},this.cache=new se.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,se.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 se.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 se.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 ot({loadedContexts:e})),this.dispatchEvent(new ot({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new ot({loadedContexts:[e]})),this.dispatchEvent(new ot({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(n=>(0,se.delay)(0).then(()=>n()).catch(()=>null)))}};Vn=ys;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends qt{constructor(){super(async(o,e)=>(await this.awaitApi).getFluidTopicsMessageContext(o,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends qt{constructor(){super(async(o,e)=>(await this.awaitApi).getCustomMessageContext(o,e))}});var Kn=window.FluidTopicsI18nService,bl=window.FluidTopicsCustomI18nService;var Zn=C(_()),Kr=class{highlightHtml(e,r,n){(0,Zn.highlightHtml)(e,r,n)}};window.FluidTopicsHighlightHtmlService=new Kr;var Yt=class extends Q{async listMySearches(){let{session:e}=S.getState();return xe(e,k.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var qn=C(_());var Zr=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;if(e==null)return"";try{return qn.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)}catch(c){throw console.error(`Date ${JSON.stringify(e)} is not valid`,c),c}}};window.FluidTopicsDateService=new Zr;var Yn=C(_());var It=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 Yn.SearchPlaceConverter(s.baseUrl,e??20,s.searchInAllLanguagesAllowed,r??`${c}-${d}`)}};var qr=class{urlToSearchRequest(e){return It.get().parse(e)}searchRequestToUrl(e){return It.get().serialize(e)}};window.FluidTopicsUrlService=new qr;var Ae=C(_());var Ue=class o extends CustomEvent{constructor(e){super(o.eventName,{detail:{currentItem:e}})}};Ue.eventName="change";var Yr=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))}},Qn=new Yr;var Qt=class o extends Ae.WithEventBus{static build(){return new o(window.history,Qn,()=>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,Ae.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new Ue(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(Ue.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Ue.eventName,e)}currentItem(){return(0,Ae.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,Ae.deepCopy)(this.states[this.previousDifferentMajorPosition()])}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,Ae.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=Qt.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),addHistoryChangeListener:o=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(o),removeHistoryChangeListener:o=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(o)});function Xn(o,e){let{authenticationRequired:r,session:n}=S.getState();return r&&!n?.sessionAuthenticated?Promise.resolve(e):o()}var H=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},D=class extends ue.FtLitElement{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.apiProvider=()=>Be.get(),this.authenticationRequired=!1,this.messageContexts=[],this.cache=new ue.CacheRegistry,this.cleanSessionDebouncer=new ue.Debouncer,this.reloadConfiguration=()=>{this.cache.clear("availableContentLocales"),this.updateAvailableContentLocales()}}render(){return Jn.html`
|
|
50
|
+
<slot></slot>
|
|
51
|
+
`}connectedCallback(){super.connectedCallback(),S.addEventListener(ye.eventName,this.reloadConfiguration)}disconnectedCallback(){S.addEventListener(ye.eventName,this.reloadConfiguration),super.disconnectedCallback()}update(e){var r,n,a,s,c,d,u;super.update(e),e.has("baseUrl")&&(S.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&S.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&S.actions.apiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&S.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&S.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&S.actions.noCustom(this.noCustom),e.has("editorMode")&&S.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&S.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&S.actions.session(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(p=>Kn.addContext(p)),e.has("openExternalDocumentInNewTab")&&S.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&S.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&S.actions.forcedOffline(this.forcedOffline),e.has("localesConfiguration")&&(S.actions.defaultLocales((r=this.localesConfiguration)===null||r===void 0?void 0:r.defaultLocales),S.actions.availableUiLocales((a=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&a!==void 0?a:[]),S.actions.searchInAllLanguagesAllowed((c=(s=this.localesConfiguration)===null||s===void 0?void 0:s.allLanguagesAllowed)!==null&&c!==void 0?c:!1)),e.has("authenticationRequired")&&S.actions.authenticationRequired(this.authenticationRequired),e.has("availableContentLocales")&&S.actions.availableContentLocales((u=(d=this.availableContentLocales)===null||d===void 0?void 0:d.contentLocales)!==null&&u!==void 0?u:[]),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration(),this.availableContentLocales==null&&this.updateAvailableContentLocales())}async updateSession(){this.session=await this.cache.get("session",async()=>{let e=await this.apiProvider().getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},e.idleTimeoutInMillis),e})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}async updateAvailableContentLocales(){this.availableContentLocales=await this.cache.get("availableContentLocales",()=>Xn(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}))}};D.elementDefinitions={};D.styles=jn;H([(0,Z.property)()],D.prototype,"baseUrl",void 0);H([(0,Z.property)()],D.prototype,"apiIntegrationIdentifier",void 0);H([(0,Z.property)()],D.prototype,"apiIntegrationAppVersion",void 0);H([(0,Z.property)()],D.prototype,"uiLocale",void 0);H([(0,ue.jsonProperty)(null)],D.prototype,"availableUiLocales",void 0);H([(0,ue.jsonProperty)(null)],D.prototype,"metadataConfiguration",void 0);H([(0,Z.property)({type:Boolean})],D.prototype,"editorMode",void 0);H([(0,Z.property)({type:Boolean})],D.prototype,"noCustom",void 0);H([(0,Z.property)({type:Boolean})],D.prototype,"openExternalDocumentInNewTab",void 0);H([(0,Z.property)({converter:{fromAttribute(o){return o==="false"?!1:o==="true"||(o??!1)}}})],D.prototype,"noCustomComponent",void 0);H([(0,Z.property)({type:Boolean})],D.prototype,"withManualResources",void 0);H([(0,Z.property)({type:Boolean})],D.prototype,"navigatorOnline",void 0);H([(0,Z.property)({type:Boolean})],D.prototype,"forcedOffline",void 0);H([(0,Z.property)({type:Object})],D.prototype,"apiProvider",void 0);H([(0,Z.property)({type:Boolean})],D.prototype,"authenticationRequired",void 0);H([(0,ue.jsonProperty)([])],D.prototype,"messageContexts",void 0);H([(0,ue.jsonProperty)(void 0)],D.prototype,"session",void 0);H([(0,Z.state)()],D.prototype,"localesConfiguration",void 0);H([(0,Z.state)()],D.prototype,"availableContentLocales",void 0);var Co=C(J());function ms(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,a;if(Array.isArray(o)){if(r=o.length,r!=e.length)return!1;for(n=r;n--!==0;)if(!Xt(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(!Xt(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 s=c=>Object.keys(c).filter(d=>c[d]!=null);if(a=s(o),r=a.length,r!==s(e).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(e,a[n]))return!1;for(n=r;n--!==0;){let c=a[n];if(!Xt(o[c],e[c]))return!1}return!0}return o!==o&&e!==e||o==null&&e==null}function Xt(o,e){try{return ms(o,e)}catch{return!1}}function Tt(o,e){return!Xt(o,e)}function ea(o){return typeof window.structuredClone=="function"?structuredClone(o):o!=null?JSON.parse(JSON.stringify(o)):o}function Jt(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 ta=C(J(),1);var Qr=o=>{let e=o??{};return(r,n)=>{var a;let s={hasChanged:Tt,attribute:!1,...e};(0,ta.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 er=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 He=C(J(),1);var ra=C(J(),1);function oa(o,e){let r=()=>JSON.parse(JSON.stringify(o));return(0,ra.property)({type:Object,converter:{fromAttribute:n=>{if(n==null)return r();try{return JSON.parse(n)}catch{return r()}},toAttribute:n=>JSON.stringify(n)},hasChanged:Tt,...e??{}})}var tr=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 aa=C(V(),1);var rr=globalThis,bs=rr.ShadowRoot&&(rr.ShadyCSS===void 0||rr.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,bd=Symbol();var na=(o,e)=>{if(bs)o.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let n=document.createElement("style"),a=rr.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=r.cssText,o.appendChild(n)}};var or=class extends aa.LitElement{createRenderRoot(){let e=this.constructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,Object.entries(e.elementDefinitions).forEach(([a,s])=>e.registry.define(a,s)));let r={...e.shadowRootOptions,customElements:e.registry},n=this.renderOptions.creationScope=this.attachShadow(r);return na(n,e.elementStyles),n}};function ia(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 at=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},da,sa=Symbol("constructorPrototype"),ca=Symbol("constructorName"),ua=Symbol("exportpartsDebouncer"),la=Symbol("dynamicDependenciesLoaded"),nt=class o extends CustomEvent{constructor(){super(o.eventName,{bubbles:!0})}};nt.eventName="exportparts-updated";var me=class extends or{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[da]=new tr(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[ua].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[ca]=this.constructor.name,this[sa]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[ca]&&Object.setPrototypeOf(this,this[sa])}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[la]||(r[la]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(nt.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(nt.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 nt)})}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=ia(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=m=>m!=null&&m.trim().length>0,p=e.filter(u).map(m=>m.trim());if(p.length===0){this.exportparts=void 0;return}let h=new Set;for(let m of(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let v=(s=(a=m.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&s!==void 0?s:[],b=(d=(c=m.getAttribute("exportparts"))===null||c===void 0?void 0:c.split(",").map(w=>w.split(":")[1]))!==null&&d!==void 0?d:[],O=[...v,...b].filter(u).map(w=>w.trim());for(let w of O)h.add(w)}if(h.size===0){this.exportparts=void 0;return}let g=[...h.values()].flatMap(m=>p.map(v=>`${m}:${v}--${m}`));this.exportparts=[...this.part,...g].join(", ")}};da=ua;at([(0,He.property)()],me.prototype,"exportpartsPrefix",void 0);at([oa([])],me.prototype,"exportpartsPrefixes",void 0);at([(0,He.property)({reflect:!0})],me.prototype,"exportparts",void 0);at([(0,He.property)()],me.prototype,"customStylesheet",void 0);at([(0,He.property)()],me.prototype,"elementToFocus",void 0);at([(0,He.state)()],me.prototype,"useAdoptedStyleSheets",void 0);function nr(o){var e;return(e=o?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Rt=Symbol("internalReduxEventsUnsubscribers"),we=Symbol("internalStoresUnsubscribers"),ze=Symbol("internalStores"),vs=Jt(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[ze].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[ze].values()][0]}getStore(c){return c==null?this.getUnnamedStore():this[ze].get(c)}addStore(c,d){var u;d=(u=d??c.name)!==null&&u!==void 0?u:"default-store",this.unsubscribeFromStore(d),this[ze].set(d,c),this.subscribeToStore(d,c),this.updateFromStores()}removeStore(c){let d=typeof c=="string"?c:c.name;this.unsubscribeFromStore(d),this[ze].delete(d)}setupStores(){this.unsubscribeFromStores(),this[ze].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[we].has(c.store):this[we].size>0)&&(this[d]=c.selector(p.getState(),this))}})}subscribeToStore(c,d){var u;this[we].set(c,d.subscribe(()=>this.updateFromStores())),this[Rt].set(c,[]),nr(d)&&d.eventBus&&((u=this.reduxConstructor.reduxEventListeners)===null||u===void 0||u.forEach((p,h)=>{if(typeof this[h]=="function"&&(!p.store||d.name===p.store)){let g=m=>this[h](m);d.addEventListener(p.eventName,g),this[Rt].get(c).push(()=>d.removeEventListener(p.eventName,g))}})),this.onStoreAvailable(c)}unsubscribeFromStores(){this[we].forEach((c,d)=>this.unsubscribeFromStore(d))}unsubscribeFromStore(c){var d;this[we].has(c)&&this[we].get(c)(),this[we].delete(c),(d=this[Rt].get(c))===null||d===void 0||d.forEach(u=>u()),this[Rt].delete(c)}onStoreAvailable(c){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=we,r=ze,n=Rt,a.reduxProperties=new Map,a.reduxReactiveProperties=new Set,a.reduxEventListeners=new Map,a}),pa=class extends vs(me){};function ce(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 Se(o){return!!o&&!!o[M]}function pe(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)===Is}(o)||Array.isArray(o)||!!o[va]||!!(!((e=o.constructor)===null||e===void 0)&&e[va])||io(o)||so(o))}function Ge(o,e,r){r===void 0&&(r=!1),ct(o)===0?(r?Object.keys:st)(o).forEach(function(n){r&&typeof n=="symbol"||e(n,o[n],o)}):o.forEach(function(n,a){return e(a,n,o)})}function ct(o){var e=o[M];return e?e.i>3?e.i-4:e.i:Array.isArray(o)?1:io(o)?2:so(o)?3:0}function it(o,e){return ct(o)===2?o.has(e):Object.prototype.hasOwnProperty.call(o,e)}function xs(o,e){return ct(o)===2?o.get(e):o[e]}function xa(o,e,r){var n=ct(o);n===2?o.set(e,r):n===3?o.add(r):o[e]=r}function Sa(o,e){return o===e?o!==0||1/o==1/e:o!=o&&e!=e}function io(o){return As&&o instanceof Map}function so(o){return ws&&o instanceof Set}function Ie(o){return o.o||o.t}function co(o){if(Array.isArray(o))return Array.prototype.slice.call(o);var e=Ea(o);delete e[M];for(var r=st(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 lo(o,e){return e===void 0&&(e=!1),uo(o)||Se(o)||!pe(o)||(ct(o)>1&&(o.set=o.add=o.clear=o.delete=Ss),Object.freeze(o),e&&Ge(o,function(r,n){return lo(n,!0)},!0)),o}function Ss(){ce(2)}function uo(o){return o==null||typeof o!="object"||Object.isFrozen(o)}function be(o){var e=ao[o];return e||ce(18,o),e}function Cs(o,e){ao[o]||(ao[o]=e)}function ro(){return Lt}function Xr(o,e){e&&(be("Patches"),o.u=[],o.s=[],o.v=e)}function ar(o){oo(o),o.p.forEach(Os),o.p=null}function oo(o){o===Lt&&(Lt=o.l)}function fa(o){return Lt={p:[],l:Lt,h:o,m:!0,_:0}}function Os(o){var e=o[M];e.i===0||e.i===1?e.j():e.g=!0}function Jr(o,e){e._=e.p.length;var r=e.p[0],n=o!==void 0&&o!==r;return e.h.O||be("ES5").S(e,o,n),n?(r[M].P&&(ar(e),ce(4)),pe(o)&&(o=ir(e,o),e.l||sr(e,o)),e.u&&be("Patches").M(r[M].t,o,e.u,e.s)):o=ir(e,r,[]),ar(e),e.u&&e.v(e.u,e.s),o!==Oa?o:void 0}function ir(o,e,r){if(uo(e))return e;var n=e[M];if(!n)return Ge(e,function(d,u){return ha(o,n,e,d,u,r)},!0),e;if(n.A!==o)return e;if(!n.P)return sr(o,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=co(n.k):n.o,s=a,c=!1;n.i===3&&(s=new Set(a),a.clear(),c=!0),Ge(s,function(d,u){return ha(o,n,a,d,u,r,c)}),sr(o,a,!1),r&&o.u&&be("Patches").N(n,r,o.u,o.s)}return n.o}function ha(o,e,r,n,a,s,c){if(Se(a)){var d=ir(o,a,s&&e&&e.i!==3&&!it(e.R,n)?s.concat(n):void 0);if(xa(r,n,d),!Se(d))return;o.m=!1}else c&&r.add(a);if(pe(a)&&!uo(a)){if(!o.h.D&&o._<1)return;ir(o,a),e&&e.A.l||sr(o,a)}}function sr(o,e,r){r===void 0&&(r=!1),!o.l&&o.h.D&&o.m&&lo(e,r)}function eo(o,e){var r=o[M];return(r?Ie(r):o)[e]}function ga(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 Te(o){o.P||(o.P=!0,o.l&&Te(o.l))}function to(o){o.o||(o.o=co(o.t))}function no(o,e,r){var n=io(e)?be("MapSet").F(e,r):so(e)?be("MapSet").T(e,r):o.O?function(a,s){var c=Array.isArray(a),d={i:c?1:0,A:s?s.A:ro(),P:!1,I:!1,R:{},l:s,t:a,k:null,o:null,j:null,C:!1},u=d,p=Nt;c&&(u=[d],p=_t);var h=Proxy.revocable(u,p),g=h.revoke,m=h.proxy;return d.k=m,d.j=g,m}(e,r):be("ES5").J(e,r);return(r?r.A:ro()).p.push(n),n}function Es(o){return Se(o)||ce(22,o),function e(r){if(!pe(r))return r;var n,a=r[M],s=ct(r);if(a){if(!a.P&&(a.i<4||!be("ES5").K(a)))return a.t;a.I=!0,n=ya(r,s),a.I=!1}else n=ya(r,s);return Ge(n,function(c,d){a&&xs(a.t,c)===d||xa(n,c,e(d))}),s===3?new Set(n):n}(o)}function ya(o,e){switch(e){case 2:return new Map(o);case 3:return Array.from(o)}return co(o)}function Ca(){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[M];return Nt.get(p,c)},set:function(p){var h=this[M];Nt.set(h,c,p)}},u}function e(c){for(var d=c.length-1;d>=0;d--){var u=c[d][M];if(!u.P)switch(u.i){case 5:n(u)&&Te(u);break;case 4:r(u)&&Te(u)}}}function r(c){for(var d=c.t,u=c.k,p=st(u),h=p.length-1;h>=0;h--){var g=p[h];if(g!==M){var m=d[g];if(m===void 0&&!it(d,g))return!0;var v=u[g],b=v&&v[M];if(b?b.t!==m:!Sa(v,m))return!0}}var O=!!d[M];return p.length!==st(d).length+(O?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&&ce(3,JSON.stringify(Ie(c)))}var s={};Cs("ES5",{J:function(c,d){var u=Array.isArray(c),p=function(g,m){if(g){for(var v=Array(m.length),b=0;b<m.length;b++)Object.defineProperty(v,""+b,o(b,!0));return v}var O=Ea(m);delete O[M];for(var w=st(O),I=0;I<w.length;I++){var T=w[I];O[T]=o(T,g||!!O[T].enumerable)}return Object.create(Object.getPrototypeOf(m),O)}(u,c),h={i:u?5:4,A:d?d.A:ro(),P:!1,I:!1,R:{},l:d,t:c,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,M,{value:h,writable:!0}),p},S:function(c,d,u){u?Se(d)&&d[M].A===c&&e(c.p):(c.u&&function p(h){if(h&&typeof h=="object"){var g=h[M];if(g){var m=g.t,v=g.k,b=g.R,O=g.i;if(O===4)Ge(v,function(L){L!==M&&(m[L]!==void 0||it(m,L)?b[L]||p(v[L]):(b[L]=!0,Te(g)))}),Ge(m,function(L){v[L]!==void 0||it(v,L)||(b[L]=!1,Te(g))});else if(O===5){if(n(g)&&(Te(g),b.length=!0),v.length<m.length)for(var w=v.length;w<m.length;w++)b[w]=!1;else for(var I=m.length;I<v.length;I++)b[I]=!0;for(var T=Math.min(v.length,m.length),P=0;P<T;P++)v.hasOwnProperty(P)||(b[P]=!0),b[P]===void 0&&p(v[P])}}}}(c.p[0]),e(c.p))},K:function(c){return c.i===4?r(c):n(c)}})}var ma,Lt,po=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",As=typeof Map<"u",ws=typeof Set<"u",ba=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Oa=po?Symbol.for("immer-nothing"):((ma={})["immer-nothing"]=!0,ma),va=po?Symbol.for("immer-draftable"):"__$immer_draftable",M=po?Symbol.for("immer-state"):"__$immer_state";var Is=""+Object.prototype.constructor,st=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(o){return Object.getOwnPropertyNames(o).concat(Object.getOwnPropertySymbols(o))}:Object.getOwnPropertyNames,Ea=Object.getOwnPropertyDescriptors||function(o){var e={};return st(o).forEach(function(r){e[r]=Object.getOwnPropertyDescriptor(o,r)}),e},ao={},Nt={get:function(o,e){if(e===M)return o;var r=Ie(o);if(!it(r,e))return function(a,s,c){var d,u=ga(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||!pe(n)?n:n===eo(o.t,e)?(to(o),o.o[e]=no(o.A.h,n,o)):n},has:function(o,e){return e in Ie(o)},ownKeys:function(o){return Reflect.ownKeys(Ie(o))},set:function(o,e,r){var n=ga(Ie(o),e);if(n?.set)return n.set.call(o.k,r),!0;if(!o.P){var a=eo(Ie(o),e),s=a?.[M];if(s&&s.t===r)return o.o[e]=r,o.R[e]=!1,!0;if(Sa(r,a)&&(r!==void 0||it(o.t,e)))return!0;to(o),Te(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 eo(o.t,e)!==void 0||e in o.t?(o.R[e]=!1,to(o),Te(o)):delete o.R[e],o.o&&delete o.o[e],!0},getOwnPropertyDescriptor:function(o,e){var r=Ie(o),n=Reflect.getOwnPropertyDescriptor(r,e);return n&&{writable:!0,configurable:o.i!==1||e!=="length",enumerable:n.enumerable,value:r[e]}},defineProperty:function(){ce(11)},getPrototypeOf:function(o){return Object.getPrototypeOf(o.t)},setPrototypeOf:function(){ce(12)}},_t={};Ge(Nt,function(o,e){_t[o]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),_t.deleteProperty=function(o,e){return _t.set.call(this,o,e,void 0)},_t.set=function(o,e,r){return Nt.set.call(this,o[0],e,r,o[0])};var Ts=function(){function o(r){var n=this;this.O=ba,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(O){var w=this;O===void 0&&(O=d);for(var I=arguments.length,T=Array(I>1?I-1:0),P=1;P<I;P++)T[P-1]=arguments[P];return u.produce(O,function(L){var $;return($=s).call.apply($,[w,L].concat(T))})}}var p;if(typeof s!="function"&&ce(6),c!==void 0&&typeof c!="function"&&ce(7),pe(a)){var h=fa(n),g=no(n,a,void 0),m=!0;try{p=s(g),m=!1}finally{m?ar(h):oo(h)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(O){return Xr(h,c),Jr(O,h)},function(O){throw ar(h),O}):(Xr(h,c),Jr(p,h))}if(!a||typeof a!="object"){if((p=s(a))===void 0&&(p=a),p===Oa&&(p=void 0),n.D&&lo(p,!0),c){var v=[],b=[];be("Patches").M(a,p,v,b),c(v,b)}return p}ce(21,a)},this.produceWithPatches=function(a,s){if(typeof a=="function")return function(p){for(var h=arguments.length,g=Array(h>1?h-1:0),m=1;m<h;m++)g[m-1]=arguments[m];return n.produceWithPatches(p,function(v){return a.apply(void 0,[v].concat(g))})};var c,d,u=n.produce(a,s,function(p,h){c=p,d=h});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){pe(r)||ce(8),Se(r)&&(r=Es(r));var n=fa(this),a=no(this,r,void 0);return a[M].C=!0,oo(n),a},e.finishDraft=function(r,n){var a=r&&r[M],s=a.A;return Xr(s,n),Jr(void 0,s)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!ba&&ce(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=be("Patches").$;return Se(r)?c(r,n):this.produce(r,function(d){return c(d,n)})},o}(),re=new Ts,Rs=re.produce,Pd=re.produceWithPatches.bind(re),kd=re.setAutoFreeze.bind(re),Dd=re.setUseProxies.bind(re),Fd=re.applyPatches.bind(re),Md=re.createDraft.bind(re),Bd=re.finishDraft.bind(re),cr=Rs;function We(o){"@babel/helpers - typeof";return We=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},We(o)}function Aa(o,e){if(We(o)!="object"||!o)return o;var r=o[Symbol.toPrimitive];if(r!==void 0){var n=r.call(o,e||"default");if(We(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(o)}function wa(o){var e=Aa(o,"string");return We(e)=="symbol"?e:e+""}function Ia(o,e,r){return(e=wa(e))in o?Object.defineProperty(o,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):o[e]=r,o}function Ta(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 fo(o){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Ta(Object(r),!0).forEach(function(n){Ia(o,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(r)):Ta(Object(r)).forEach(function(n){Object.defineProperty(o,n,Object.getOwnPropertyDescriptor(r,n))})}return o}function Y(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 Ra=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),ho=function(){return Math.random().toString(36).substring(7).split("").join(".")},lr={INIT:"@@redux/INIT"+ho(),REPLACE:"@@redux/REPLACE"+ho(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ho()}};function _s(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 go(o,e,r){var n;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(Y(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Y(1));return r(go)(o,e)}if(typeof o!="function")throw new Error(Y(2));var a=o,s=e,c=[],d=c,u=!1;function p(){d===c&&(d=c.slice())}function h(){if(u)throw new Error(Y(3));return s}function g(O){if(typeof O!="function")throw new Error(Y(4));if(u)throw new Error(Y(5));var w=!0;return p(),d.push(O),function(){if(w){if(u)throw new Error(Y(6));w=!1,p();var T=d.indexOf(O);d.splice(T,1),c=null}}}function m(O){if(!_s(O))throw new Error(Y(7));if(typeof O.type>"u")throw new Error(Y(8));if(u)throw new Error(Y(9));try{u=!0,s=a(s,O)}finally{u=!1}for(var w=c=d,I=0;I<w.length;I++){var T=w[I];T()}return O}function v(O){if(typeof O!="function")throw new Error(Y(10));a=O,m({type:lr.REPLACE})}function b(){var O,w=g;return O={subscribe:function(T){if(typeof T!="object"||T===null)throw new Error(Y(11));function P(){T.next&&T.next(h())}P();var L=w(P);return{unsubscribe:L}}},O[Ra]=function(){return this},O}return m({type:lr.INIT}),n={dispatch:m,subscribe:g,getState:h,replaceReducer:v},n[Ra]=b,n}function Ls(o){Object.keys(o).forEach(function(e){var r=o[e],n=r(void 0,{type:lr.INIT});if(typeof n>"u")throw new Error(Y(12));if(typeof r(void 0,{type:lr.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Y(13))})}function _a(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{Ls(r)}catch(u){d=u}return function(p,h){if(p===void 0&&(p={}),d)throw d;if(0)var g;for(var m=!1,v={},b=0;b<s.length;b++){var O=s[b],w=r[O],I=p[O],T=w(I,h);if(typeof T>"u"){var P=h&&h.type;throw new Error(Y(14))}v[O]=T,m=m||T!==I}return m=m||s.length!==Object.keys(p).length,m?v:p}}function lt(){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 La(){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(Y(15))},c={getState:a.getState,dispatch:function(){return s.apply(void 0,arguments)}},d=e.map(function(u){return u(c)});return s=lt.apply(void 0,d)(a.dispatch),fo(fo({},a),{},{dispatch:s})}}}function Na(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 Pa=Na();Pa.withExtraArgument=Na;var yo=Pa;var Ba=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)}}(),Ns=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(h){return u([p,h])}}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(h){p=[6,h],a=0}finally{n=s=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},dt=function(o,e){for(var r=0,n=e.length,a=o.length;r<n;r++,a++)o[a]=e[r];return o},Ps=Object.defineProperty,ks=Object.defineProperties,Ds=Object.getOwnPropertyDescriptors,ka=Object.getOwnPropertySymbols,Fs=Object.prototype.hasOwnProperty,Ms=Object.prototype.propertyIsEnumerable,Da=function(o,e,r){return e in o?Ps(o,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[e]=r},Re=function(o,e){for(var r in e||(e={}))Fs.call(e,r)&&Da(o,r,e[r]);if(ka)for(var n=0,a=ka(e);n<a.length;n++){var r=a[n];Ms.call(e,r)&&Da(o,r,e[r])}return o},mo=function(o,e){return ks(o,Ds(e))},Bs=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 Us=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?lt:lt.apply(null,arguments)},ru=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(o){return o}};function Hs(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}var zs=function(o){Ba(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,dt([void 0],r[0].concat(this)))):new(e.bind.apply(e,dt([void 0],r.concat(this))))},e}(Array),Gs=function(o){Ba(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,dt([void 0],r[0].concat(this)))):new(e.bind.apply(e,dt([void 0],r.concat(this))))},e}(Array);function xo(o){return pe(o)?cr(o,function(){}):o}function Ws(o){return typeof o=="boolean"}function $s(){return function(e){return js(e)}}function js(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=new zs;if(r&&(Ws(r)?d.push(yo):d.push(yo.withExtraArgument(r.extraArgument))),0){if(a)var u;if(c)var p}return d}var bo=!0;function Ua(o){var e=$s(),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,h=p===void 0?void 0:p,g=r.enhancers,m=g===void 0?void 0:g,v;if(typeof a=="function")v=a;else if(Hs(a))v=_a(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 b=c;if(typeof b=="function"&&(b=b(e),!bo&&!Array.isArray(b)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!bo&&b.some(function(L){return typeof L!="function"}))throw new Error("each middleware provided to configureStore must be a function");var O=La.apply(void 0,b),w=lt;u&&(w=Us(Re({trace:!bo},typeof u=="object"&&u)));var I=new Gs(O),T=I;Array.isArray(m)?T=dt([O],m):typeof m=="function"&&(T=m(I));var P=w.apply(void 0,T);return go(v,h,P)}function _e(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 Re(Re({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}function Ha(o){var e={},r=[],n,a={addCase:function(s,c){var d=typeof s=="string"?s:s.type;if(d in e)throw new Error("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 Vs(o){return typeof o=="function"}function Ks(o,e,r,n){r===void 0&&(r=[]);var a=typeof e=="function"?Ha(e):[e,r,n],s=a[0],c=a[1],d=a[2],u;if(Vs(o))u=function(){return xo(o())};else{var p=xo(o);u=function(){return p}}function h(g,m){g===void 0&&(g=u());var v=dt([s[m.type]],c.filter(function(b){var O=b.matcher;return O(m)}).map(function(b){var O=b.reducer;return O}));return v.filter(function(b){return!!b}).length===0&&(v=[d]),v.reduce(function(b,O){if(O)if(Se(b)){var w=b,I=O(w,m);return I===void 0?b:I}else{if(pe(b))return cr(b,function(T){return O(T,m)});var I=O(b,m);if(I===void 0){if(b===null)return b;throw Error("A case reducer on a non-draftable value must not return undefined")}return I}return b},g)}return h.getInitialState=u,h}function Zs(o,e){return o+"/"+e}function za(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:xo(o.initialState),n=o.reducers||{},a=Object.keys(n),s={},c={},d={};a.forEach(function(h){var g=n[h],m=Zs(e,h),v,b;"reducer"in g?(v=g.reducer,b=g.prepare):v=g,s[h]=v,c[m]=v,d[h]=b?_e(m,b):_e(m)});function u(){var h=typeof o.extraReducers=="function"?Ha(o.extraReducers):[o.extraReducers],g=h[0],m=g===void 0?{}:g,v=h[1],b=v===void 0?[]:v,O=h[2],w=O===void 0?void 0:O,I=Re(Re({},m),c);return Ks(r,function(T){for(var P in I)T.addCase(P,I[P]);for(var L=0,$=b;L<$.length;L++){var de=$[L];T.addMatcher(de.matcher,de.reducer)}w&&T.addDefaultCase(w)})}var p;return{name:e,reducer:function(h,g){return p||(p=u()),p(h,g)},actions:d,caseReducers:s,getInitialState:function(){return p||(p=u()),p.getInitialState()}}}var qs="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Ys=function(o){o===void 0&&(o=21);for(var e="",r=o;r--;)e+=qs[Math.random()*64|0];return e},Qs=["name","message","stack","code"],vo=function(){function o(e,r){this.payload=e,this.meta=r}return o}(),Fa=function(){function o(e,r){this.payload=e,this.meta=r}return o}(),Xs=function(o){if(typeof o=="object"&&o!==null){for(var e={},r=0,n=Qs;r<n.length;r++){var a=n[r];typeof o[a]=="string"&&(e[a]=o[a])}return e}return{message:String(o)}},iu=function(){function o(e,r,n){var a=_e(e+"/fulfilled",function(h,g,m,v){return{payload:h,meta:mo(Re({},v||{}),{arg:m,requestId:g,requestStatus:"fulfilled"})}}),s=_e(e+"/pending",function(h,g,m){return{payload:void 0,meta:mo(Re({},m||{}),{arg:g,requestId:h,requestStatus:"pending"})}}),c=_e(e+"/rejected",function(h,g,m,v,b){return{payload:v,error:(n&&n.serializeError||Xs)(h||"Rejected"),meta:mo(Re({},b||{}),{arg:m,requestId:g,rejectedWithValue:!!v,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),d=!1,u=typeof AbortController<"u"?AbortController:function(){function h(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return h.prototype.abort=function(){},h}();function p(h){return function(g,m,v){var b=n?.idGenerator?n.idGenerator(h):Ys(),O=new u,w,I=!1;function T(L){w=L,O.abort()}var P=function(){return Bs(this,null,function(){var L,$,de,Pe,X,ke,Qe;return Ns(this,function(f){switch(f.label){case 0:return f.trys.push([0,4,,5]),Pe=(L=n?.condition)==null?void 0:L.call(n,h,{getState:m,extra:v}),ec(Pe)?[4,Pe]:[3,2];case 1:Pe=f.sent(),f.label=2;case 2:if(Pe===!1||O.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return I=!0,X=new Promise(function(y,A){return O.signal.addEventListener("abort",function(){return A({name:"AbortError",message:w||"Aborted"})})}),g(s(b,h,($=n?.getPendingMeta)==null?void 0:$.call(n,{requestId:b,arg:h},{getState:m,extra:v}))),[4,Promise.race([X,Promise.resolve(r(h,{dispatch:g,getState:m,extra:v,requestId:b,signal:O.signal,abort:T,rejectWithValue:function(y,A){return new vo(y,A)},fulfillWithValue:function(y,A){return new Fa(y,A)}})).then(function(y){if(y instanceof vo)throw y;return y instanceof Fa?a(y.payload,b,h,y.meta):a(y,b,h)})])];case 3:return de=f.sent(),[3,5];case 4:return ke=f.sent(),de=ke instanceof vo?c(null,b,h,ke.payload,ke.meta):c(ke,b,h),[3,5];case 5:return Qe=n&&!n.dispatchConditionRejection&&c.match(de)&&de.meta.condition,Qe||g(de),[2,de]}})})}();return Object.assign(P,{abort:T,requestId:b,arg:h,unwrap:function(){return P.then(Js)}})}}return Object.assign(p,{pending:s,rejected:c,fulfilled:a,typePrefix:e})}return o.withTypes=function(){return o},o}();function Js(o){if(o.meta&&o.meta.rejectedWithValue)throw o.payload;if(o.error)throw o.error;return o.payload}function ec(o){return o!==null&&typeof o=="object"&&typeof o.then=="function"}var Ga="listener",Wa="completed",$a="cancelled",su="task-"+$a,cu="task-"+Wa,lu=Ga+"-"+$a,du=Ga+"-"+Wa;var So="listenerMiddleware";var uu=_e(So+"/add"),pu=_e(So+"/removeAll"),fu=_e(So+"/remove");var Ma,hu=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(o){return(Ma||(Ma=Promise.resolve())).then(o).catch(function(e){return setTimeout(function(){throw e},0)})},tc=function(o){return function(e){setTimeout(e,o)}},gu=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:tc(10);Ca();var rc=Jt(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)}}}),dr=class extends rc(Object){};window.ftReduxStores||(window.ftReduxStores={});var ja=class o extends dr{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(nr(s))return s;if(a==null)return;let c=za({...a,reducers:(r=a.reducers)!==null&&r!==void 0?r:{}}),d=Ua({reducer:(u,p)=>{if(p.type==="CLEAR_FT_REDUX_STORE"){let h=ea(c.getInitialState());for(let g of p.keeping)h[g]=(u??h)[g];return h}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 er;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?(...h)=>{let g=p(...h.map(a));return this.reduxStore.dispatch(g),g}:h=>{this.setState({[u]:a(h)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...e){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:e})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var ur=class{static format(e,r,n,a){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(n,a)):this.getIntlDateTime(e,r,n,a)}static getMomentDateFormat(e,r){return e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,n,a){let s=typeof e=="string"?new Date(e):e,c=new Intl.DateTimeFormat(r,{dateStyle:n?"medium":"short"}).format(s);if(!a)return c;let d=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(s);return`${c} ${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 Va=C(_()),pr=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},Gu=(0,Va.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=>ur.format(d,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return pr([(0,Co.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),pr([(0,Co.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),pr([Qr({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),pr([Qr({store:S.name})],e.prototype,"uiLocale",void 0),e});var gr=C(_());var fr=class extends Q{constructor(){super(...arguments),this.CACHE_DURATION=3*60*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 hr=class extends Q{constructor(){super(...arguments),this.CACHE_DURATION=3*60*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 oc="ft-user-assets",nc={setAssetCount:(o,e)=>{let{userAssetType:r,count:n}=e.payload.assetCount;o.assetCounts.allAsset[r]=n},clearAssetCount:o=>{Object.values(ie).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;Eo(o,r,[...Oo(o,r),a]),Ka(o,r,1,n),Za(o,a)},editAsset:(o,e)=>{let{assetType:r,asset:n}=e.payload;Eo(o,r,Oo(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;Eo(o,r,Oo(o,r).filter(s=>s.id!==a)),Ka(o,r,-1,n)}},qa={[ie.SEARCHES]:"savedSearches",[ie.BOOKMARKS]:"bookmarks",[ie.BOOKS]:void 0,[ie.COLLECTIONS]:void 0},Oo=(o,e)=>{var r;let n=qa[e];return n?(r=o[n])!==null&&r!==void 0?r:[]:[]},Eo=(o,e,r)=>{let n=qa[e];n&&(o[n]=r)},Ka=(o,e,r,n)=>{let a=o.assetCounts.allAsset[e];if(a!==void 0&&(o.assetCounts.allAsset[e]=Math.max(0,a+r),e===ie.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)},oe=gr.FtReduxStore.get({name:oc,reducers:nc,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(ie).map(o=>[o,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Ao=class{constructor(e=new fr,r=new hr){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=S.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Zt,this.savedSearchesService=new Yt,S.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=S.getState();(0,gr.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(),oe.actions.clearAssetCount(),oe.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),oe.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),oe.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();oe.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();oe.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&oe.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&oe.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(oe.getState().assetCounts.bookmarkByMap).length!==0;e===ie.BOOKMARKS&&r&&oe.actions.clearBookmarkCountByMap(),oe.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;oe.actions.bookmarks(r)}}},wo=new Ao;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=wo);(0,Ya.customElement)("ft-app-context")(D);var yr=class extends Q{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 xe((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))}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],h=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:h?.replace(/^r\//,""),prettyUrlDuplicated:(c=d?.duplicatedPrettyUrls.has(h??""))!==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 ve.FEEDBACK:return xe(r??[],k.FEEDBACK_USER);case ve.RATING:return xe(r??[],k.RATING_USER);case ve.PRINT:return xe(r??[],k.PRINT_USER);case ve.BOOKMARK:return!!r?.sessionAuthenticated;case ve.COLLECTIONS:return xe(r??[],k.COLLECTION_USER);case ve.PERSONAL_BOOKS:return xe(r??[],k.PERSONAL_BOOK_USER)&&!(!((n=this.getMapNow())===null||n===void 0)&&n.pbkConfidential);default:return!1}}makeAbsolute(e){return this.api.makeAbsolute(e)}};var mr=class o extends yr{static async build(e){return new o(new Wt,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 br=class o{static build(e,r){return new o(ln(e.trim()||"context"),r??mr.build)}loaded(){return(0,fe.waitUntil)(()=>this._loaded)}constructor(e,r,n){this.store=e,this.clusteringHelperProvider=n,this.metadataForSwitchToRelatives=new Set,this._loaded=!1,this.loadDebouncer=new fe.Debouncer(10),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,fe.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:(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 fe.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()}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);n!==void 0&&n.length>0?(r=this.service)===null||r===void 0||r.getRelativesForDocument(this.store.getState().configuration.relativePivotMetadata,n).then(a=>{let s=a.results.flatMap(c=>c.entries);this.store.actions.relatives(s),this.updateClusteringHelper()}):this.updateClusteringHelper()}updateClusteringHelper(){this.clusteringHelper=this.createClusteringHelper(),this.clusteringHelper&&this.store.dispatchEvent(new Event(Fe.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 fe.ClusteringHelper(n,a,this.metadataForSwitchToRelatives,s)}}async navigateToRelativeTopicIfFound(e){var r,n,a;await this.loaded();let s=await(0,fe.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),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?(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(Fe.mapAttachmentsUpdate))}};var Qa=C(V());var Xa=Qa.css`
|
|
52
|
+
`;var vr=class extends CustomEvent{constructor(e,r){super("ft-reader-map-loaded",{detail:{map:e,toc:r}})}},xr=class extends CustomEvent{constructor(e,r){super("ft-reader-visible-topics-change",{detail:{visibleTopics:r}})}},Sr=class extends CustomEvent{constructor(e){super("ft-reader-navigation-done",{detail:e})}},Cr=class extends CustomEvent{constructor(e){super("ft-reader-load-error",{detail:e})}},Or=class extends Event{constructor(){super("ft-reader-map-not-found")}},Er=class extends Event{constructor(){super("ft-reader-map-unauthorized")}},Ar=class extends Event{constructor(){super("ft-reader-map-forbidden")}},wr=class extends Event{constructor(){super("ft-reader-topic-relative-not-found",{bubbles:!0,composed:!0})}};var Ir=class{constructor(e){this.stateManager=e}searchInDocument(e){this.stateManager.setSearchInDocumentQuery(e??"")}};var te=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},z=class extends G.FtLitElementRedux{constructor(){super(),this.visibleTopics=[],this.updateConfiguration=()=>{this.stateManager.reloadConfiguration()},this.scrollToTargetDebouncer=new G.Debouncer(5),this.navigationDebouncer=new G.Debouncer(10),this.mapLoadedEventDebouncer=new G.Debouncer(50),this.addStore(S)}render(){return Pt.html`
|
|
53
|
+
${this.importStyleIfNeeded()}
|
|
54
|
+
<slot @register-ft-reader-component=${this.registerComponent}></slot>
|
|
55
|
+
`}importStyleIfNeeded(){var e,r;let n=(e=this.stateManager.service)===null||e===void 0?void 0:e.themeStylesheet();return!n||window.location.href.startsWith((r=this.baseUrl)!==null&&r!==void 0?r:"")?Pt.nothing:Pt.html`
|
|
56
|
+
<style>
|
|
57
|
+
@import "${n}"
|
|
58
|
+
</style>
|
|
59
|
+
`}get stateManager(){return this._stateManager==null&&(this._stateManager=br.build(this.id||(0,G.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 r=e.fontsStylesheet();if(r&&!window.location.href.startsWith(this.baseUrl)&&!document.querySelector(`head link[href="${r}"]`)){let n=document.createElement("link");n.setAttribute("rel","stylesheet"),n.setAttribute("href",r),document.head.append(n)}window.FluidTopicsReaderService=new Ir(this.stateManager)}),S.addEventListener(ye.eventName,this.updateConfiguration)}disconnectedCallback(){super.disconnectedCallback(),S.addEventListener(ye.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(r=>e.has(r))&&this.mapId&&this.navigateToTarget(),e.has("session")&&this.reload()}contentAvailableCallback(e){var r,n;if(super.contentAvailableCallback(e),(e.has("map")||e.has("toc"))&&this.sendLoadedEventIfLoaded(),e.has("scrollTarget")&&((r=this.scrollTarget)===null||r===void 0?void 0:r.tocId)==null){let a=e.get("scrollTarget");a?.tocId!=null&&this.scrollToTargetDebouncer.run(()=>this.stateManager.getAccurateNavigationData(a.tocId,this.currentPage,a).then(s=>this.dispatchEvent(new Sr(s))))}(e.has("visibleTopics")||e.has("scrollTarget"))&&((n=this.scrollTarget)===null||n===void 0?void 0:n.tocId)==null&&Promise.all(this.visibleTopics.map(a=>this.stateManager.getAccurateNavigationData(a,this.currentPage))).then(a=>{let s=a.filter(c=>c!=null&&c.topicTitle!=="").map(c=>({tocId:c.tocId,title:c.topicTitle,page:c.page,prettyUrl:c.prettyUrl,prettyUrlDuplicated:c.prettyUrlDuplicated,breadcrumb:this.stateManager.buildBreadcrumb(c.tocId)}));this.dispatchEvent(new xr(this.map,s))})}clear(){this.stateManager.clear()}async reload(){await this.stateManager.reload()}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 wr),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 r=e.composedPath()[0];this.register(r)}register(e){e.setReaderStateManager(this.stateManager)}handleLoadError(e){let r=e;r.status===401?this.dispatchEvent(new Er):r.status===403?this.dispatchEvent(new Ar):r.status===404?this.dispatchEvent(new Or):this.dispatchEvent(new Cr(e))}reloadBookmarks(){wo.reloadBookmarks()}async reloadRating(){var e,r;await((e=this.stateManager.service)===null||e===void 0?void 0:e.reloadRating()),(r=this.stateManager.store)===null||r===void 0||r.dispatchEvent(new CustomEvent("rating-changed"))}sendLoadedEventIfLoaded(){this.mapLoadedEventDebouncer.run(()=>{this.map&&this.toc&&this.dispatchEvent(new vr(this.map,this.toc))})}};z.styles=Xa;te([(0,G.redux)({store:S.name})],z.prototype,"baseUrl",void 0);te([(0,G.redux)({store:S.name})],z.prototype,"session",void 0);te([(0,$e.property)()],z.prototype,"mapId",void 0);te([(0,$e.property)()],z.prototype,"tocId",void 0);te([(0,$e.property)()],z.prototype,"section",void 0);te([(0,$e.property)()],z.prototype,"topicPivot",void 0);te([(0,$e.property)()],z.prototype,"searchInDocumentQuery",void 0);te([(0,G.numberProperty)({min:1})],z.prototype,"page",void 0);te([(0,G.redux)({store:"reader"})],z.prototype,"map",void 0);te([(0,G.redux)({store:"reader"})],z.prototype,"toc",void 0);te([(0,G.redux)({store:"reader"})],z.prototype,"visibleTopics",void 0);te([(0,G.redux)({store:"reader"})],z.prototype,"currentPage",void 0);te([(0,G.redux)({store:"reader"})],z.prototype,"scrollTarget",void 0);te([(0,$e.property)({attribute:!1})],z.prototype,"readerServiceProvider",void 0);(0,Ja.customElement)("ft-reader-context")(z);var es=C(_());var wt=C(V()),Ye=C(J());var ei=C(V()),ti=C(_()),ac={position:ti.FtCssVariableFactory.create("--ft-content-watermark-position","Position property of the watermark container","POSITION","sticky")},ri=ei.css`
|
|
49
60
|
:host {
|
|
50
61
|
position: absolute;
|
|
51
62
|
top: 0;
|
|
@@ -56,7 +67,7 @@
|
|
|
56
67
|
}
|
|
57
68
|
|
|
58
69
|
.ft-watermark-container {
|
|
59
|
-
position:
|
|
70
|
+
position: ${ac.position};
|
|
60
71
|
top: 0;
|
|
61
72
|
text-align: center;
|
|
62
73
|
}
|
|
@@ -64,41 +75,159 @@
|
|
|
64
75
|
.ft-watermark {
|
|
65
76
|
z-index: 79;
|
|
66
77
|
}
|
|
67
|
-
`;var
|
|
78
|
+
`;var Xi=C(Ur()),Ji=C(_());var Ho=C(_());var Po=globalThis,Tr=Po.trustedTypes,oi=Tr?Tr.createPolicy("lit-html",{createHTML:o=>o}):void 0,li="$lit$",Le=`lit$${Math.random().toFixed(9).slice(2)}$`,di="?"+Le,ic=`<${di}>`,Ke=document,Rr=()=>Ke.createComment(""),Dt=o=>o===null||typeof o!="object"&&typeof o!="function",ko=Array.isArray,sc=o=>ko(o)||typeof o?.[Symbol.iterator]=="function",Io=`[
|
|
79
|
+
\f\r]`,kt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ni=/-->/g,ai=/>/g,je=RegExp(`>|${Io}(?:([^\\s"'>=/]+)(${Io}*=${Io}*(?:[^
|
|
80
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),ii=/'/g,si=/"/g,ui=/^(?:script|style|textarea|title)$/i,Do=o=>(e,...r)=>({_$litType$:o,strings:e,values:r}),pi=Do(1),fi=Do(2),hi=Do(3),Ft=Symbol.for("lit-noChange"),W=Symbol.for("lit-nothing"),ci=new WeakMap,Ve=Ke.createTreeWalker(Ke,129);function gi(o,e){if(!ko(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return oi!==void 0?oi.createHTML(e):e}var cc=(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,h,g=-1,m=0;for(;m<u.length&&(c.lastIndex=m,h=c.exec(u),h!==null);)m=c.lastIndex,c===kt?h[1]==="!--"?c=ni:h[1]!==void 0?c=ai:h[2]!==void 0?(ui.test(h[2])&&(a=RegExp("</"+h[2],"g")),c=je):h[3]!==void 0&&(c=je):c===je?h[0]===">"?(c=a??kt,g=-1):h[1]===void 0?g=-2:(g=c.lastIndex-h[2].length,p=h[1],c=h[3]===void 0?je:h[3]==='"'?si:ii):c===si||c===ii?c=je:c===ni||c===ai?c=kt:(c=je,a=void 0);let v=c===je&&o[d+1].startsWith("/>")?" ":"";s+=c===kt?u+ic:g>=0?(n.push(p),u.slice(0,g)+li+u.slice(g)+Le+v):u+Le+(g===-2?d:v)}return[gi(o,s+(o[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),n]},Mt=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,h]=cc(e,r);if(this.el=o.createElement(p,n),Ve.currentNode=this.el.content,r===2||r===3){let g=this.el.content.firstChild;g.replaceWith(...g.childNodes)}for(;(a=Ve.nextNode())!==null&&u.length<d;){if(a.nodeType===1){if(a.hasAttributes())for(let g of a.getAttributeNames())if(g.endsWith(li)){let m=h[c++],v=a.getAttribute(g).split(Le),b=/([.?@])?(.*)/.exec(m);u.push({type:1,index:s,name:b[2],strings:v,ctor:b[1]==="."?Ro:b[1]==="?"?_o:b[1]==="@"?Lo:pt}),a.removeAttribute(g)}else g.startsWith(Le)&&(u.push({type:6,index:s}),a.removeAttribute(g));if(ui.test(a.tagName)){let g=a.textContent.split(Le),m=g.length-1;if(m>0){a.textContent=Tr?Tr.emptyScript:"";for(let v=0;v<m;v++)a.append(g[v],Rr()),Ve.nextNode(),u.push({type:2,index:++s});a.append(g[m],Rr())}}}else if(a.nodeType===8)if(a.data===di)u.push({type:2,index:s});else{let g=-1;for(;(g=a.data.indexOf(Le,g+1))!==-1;)u.push({type:7,index:s}),g+=Le.length-1}s++}}static createElement(e,r){let n=Ke.createElement("template");return n.innerHTML=e,n}};function ut(o,e,r=o,n){if(e===Ft)return e;let a=n!==void 0?r._$Co?.[n]:r._$Cl,s=Dt(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=ut(o,a._$AS(o,e.values),a,n)),e}var To=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??Ke).importNode(r,!0);Ve.currentNode=a;let s=Ve.nextNode(),c=0,d=0,u=n[0];for(;u!==void 0;){if(c===u.index){let p;u.type===2?p=new _r(s,s.nextSibling,this,e):u.type===1?p=new u.ctor(s,u.name,u.strings,this,e):u.type===6&&(p=new No(s,this,e)),this._$AV.push(p),u=n[++d]}c!==u?.index&&(s=Ve.nextNode(),c++)}return Ve.currentNode=Ke,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++}},_r=class o{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,n,a){this.type=2,this._$AH=W,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=ut(this,e,r),Dt(e)?e===W||e==null||e===""?(this._$AH!==W&&this._$AR(),this._$AH=W):e!==this._$AH&&e!==Ft&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):sc(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==W&&Dt(this._$AH)?this._$AA.nextSibling.data=e:this.T(Ke.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=Mt.createElement(gi(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===a)this._$AH.p(r);else{let s=new To(a,this),c=s.u(this.options);s.p(r),this.T(c),this._$AH=s}}_$AC(e){let r=ci.get(e.strings);return r===void 0&&ci.set(e.strings,r=new Mt(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(Rr()),this.O(Rr()),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))}},pt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,n,a,s){this.type=1,this._$AH=W,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=W}_$AI(e,r=this,n,a){let s=this.strings,c=!1;if(s===void 0)e=ut(this,e,r,0),c=!Dt(e)||e!==this._$AH&&e!==Ft,c&&(this._$AH=e);else{let d=e,u,p;for(e=s[0],u=0;u<s.length-1;u++)p=ut(this,d[n+u],r,u),p===Ft&&(p=this._$AH[u]),c||=!Dt(p)||p!==this._$AH[u],p===W?e=W:e!==W&&(e+=(p??"")+s[u+1]),this._$AH[u]=p}c&&!a&&this.j(e)}j(e){e===W?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Ro=class extends pt{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===W?void 0:e}},_o=class extends pt{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==W)}},Lo=class extends pt{constructor(e,r,n,a,s){super(e,r,n,a,s),this.type=5}_$AI(e,r=this){if((e=ut(this,e,r,0)??W)===Ft)return;let n=this._$AH,a=e===W&&n!==W||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,s=e!==W&&(n===W||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)}},No=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){ut(this,e)}};var lc=Po.litHtmlPolyfillSupport;lc?.(Mt,_r),(Po.litHtmlVersions??=[]).push("3.3.0");var mi=Symbol.for(""),dc=o=>{if(o?.r===mi)return o?._$litStatic$},ft=o=>({_$litStatic$:o,r:mi});var yi=new Map,Fo=o=>(e,...r)=>{let n=r.length,a,s,c=[],d=[],u,p=0,h=!1;for(;p<n;){for(u=e[p];p<n&&(s=r[p],(a=dc(s))!==void 0);)u+=a+e[++p],h=!0;p!==n&&d.push(s),c.push(u),p++}if(p===n&&c.push(e[n]),h){let g=c.join("$$lit$$");(e=yi.get(g))===void 0&&(c.raw=c,yi.set(g,e=c)),r=d}return o(e,...r)},ht=Fo(pi),Yp=Fo(fi),Qp=Fo(hi);var Mo=C(J()),_i=C(_());var Lr;(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"})(Lr||(Lr={}));var le=C(V()),x=C(_()),bi=x.FtCssVariableFactory.extend("--ft-typography-font-family","",x.designSystemVariables.titleFont),Ce=x.FtCssVariableFactory.extend("--ft-typography-font-family","",x.designSystemVariables.contentFont),E={fontFamily:Ce,fontSize:x.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:x.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:x.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:x.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:x.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},gt={fontFamily:x.FtCssVariableFactory.extend("--ft-typography-title-font-family","",bi),fontSize:x.FtCssVariableFactory.extend("--ft-typography-title-font-size","",E.fontSize,"20px"),fontWeight:x.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",E.fontWeight,"normal"),letterSpacing:x.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",E.letterSpacing,"0.15px"),lineHeight:x.FtCssVariableFactory.extend("--ft-typography-title-line-height","",E.lineHeight,"1.2"),textTransform:x.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",E.textTransform,"inherit")},yt={fontFamily:x.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",bi),fontSize:x.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",E.fontSize,"14px"),fontWeight:x.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",E.fontWeight,"normal"),letterSpacing:x.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",E.letterSpacing,"0.105px"),lineHeight:x.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",E.lineHeight,"1.7"),textTransform:x.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",E.textTransform,"inherit")},mt={fontFamily:x.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",Ce),fontSize:x.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",E.fontSize,"16px"),fontWeight:x.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",E.fontWeight,"600"),letterSpacing:x.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",E.letterSpacing,"0.144px"),lineHeight:x.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",E.lineHeight,"1.5"),textTransform:x.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",E.textTransform,"inherit")},bt={fontFamily:x.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",Ce),fontSize:x.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",E.fontSize,"14px"),fontWeight:x.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",E.fontWeight,"normal"),letterSpacing:x.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",E.letterSpacing,"0.098px"),lineHeight:x.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",E.lineHeight,"1.7"),textTransform:x.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",E.textTransform,"inherit")},vt={fontFamily:x.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",Ce),fontSize:x.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",E.fontSize,"16px"),fontWeight:x.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",E.fontWeight,"normal"),letterSpacing:x.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",E.letterSpacing,"0.496px"),lineHeight:x.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",E.lineHeight,"1.5"),textTransform:x.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",E.textTransform,"inherit")},xt={fontFamily:x.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",Ce),fontSize:x.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",E.fontSize,"14px"),fontWeight:x.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",E.fontWeight,"normal"),letterSpacing:x.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",E.letterSpacing,"0.252px"),lineHeight:x.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",E.lineHeight,"1.4"),textTransform:x.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",E.textTransform,"inherit")},St={fontFamily:x.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",Ce),fontSize:x.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",E.fontSize,"12px"),fontWeight:x.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",E.fontWeight,"normal"),letterSpacing:x.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",E.letterSpacing,"0.396px"),lineHeight:x.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",E.lineHeight,"1.33"),textTransform:x.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",E.textTransform,"inherit")},Ct={fontFamily:x.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",Ce),fontSize:x.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",E.fontSize,"10px"),fontWeight:x.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",E.fontWeight,"normal"),letterSpacing:x.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",E.letterSpacing,"0.33px"),lineHeight:x.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",E.lineHeight,"1.6"),textTransform:x.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",E.textTransform,"inherit")},Ot={fontFamily:x.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",Ce),fontSize:x.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",E.fontSize,"10px"),fontWeight:x.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",E.fontWeight,"normal"),letterSpacing:x.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",E.letterSpacing,"1.5px"),lineHeight:x.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",E.lineHeight,"1.6"),textTransform:x.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",E.textTransform,"uppercase")},Et={fontFamily:x.FtCssVariableFactory.extend("--ft-typography-button-font-family","",Ce),fontSize:x.FtCssVariableFactory.extend("--ft-typography-button-font-size","",E.fontSize,"14px"),fontWeight:x.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",E.fontWeight,"600"),letterSpacing:x.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",E.letterSpacing,"1.246px"),lineHeight:x.FtCssVariableFactory.extend("--ft-typography-button-line-height","",E.lineHeight,"1.15"),textTransform:x.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",E.textTransform,"uppercase")},vi=le.css`
|
|
81
|
+
.ft-typography--title {
|
|
82
|
+
font-family: ${gt.fontFamily};
|
|
83
|
+
font-size: ${gt.fontSize};
|
|
84
|
+
font-weight: ${gt.fontWeight};
|
|
85
|
+
letter-spacing: ${gt.letterSpacing};
|
|
86
|
+
line-height: ${gt.lineHeight};
|
|
87
|
+
text-transform: ${gt.textTransform};
|
|
88
|
+
}
|
|
89
|
+
`,xi=le.css`
|
|
90
|
+
.ft-typography--title-dense {
|
|
91
|
+
font-family: ${yt.fontFamily};
|
|
92
|
+
font-size: ${yt.fontSize};
|
|
93
|
+
font-weight: ${yt.fontWeight};
|
|
94
|
+
letter-spacing: ${yt.letterSpacing};
|
|
95
|
+
line-height: ${yt.lineHeight};
|
|
96
|
+
text-transform: ${yt.textTransform};
|
|
97
|
+
}
|
|
98
|
+
`,Si=le.css`
|
|
99
|
+
.ft-typography--subtitle1 {
|
|
100
|
+
font-family: ${mt.fontFamily};
|
|
101
|
+
font-size: ${mt.fontSize};
|
|
102
|
+
font-weight: ${mt.fontWeight};
|
|
103
|
+
letter-spacing: ${mt.letterSpacing};
|
|
104
|
+
line-height: ${mt.lineHeight};
|
|
105
|
+
text-transform: ${mt.textTransform};
|
|
106
|
+
}
|
|
107
|
+
`,Ci=le.css`
|
|
108
|
+
.ft-typography--subtitle2 {
|
|
109
|
+
font-family: ${bt.fontFamily};
|
|
110
|
+
font-size: ${bt.fontSize};
|
|
111
|
+
font-weight: ${bt.fontWeight};
|
|
112
|
+
letter-spacing: ${bt.letterSpacing};
|
|
113
|
+
line-height: ${bt.lineHeight};
|
|
114
|
+
text-transform: ${bt.textTransform};
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
`,Nr=le.css`
|
|
118
|
+
.ft-typography--body1 {
|
|
119
|
+
font-family: ${vt.fontFamily};
|
|
120
|
+
font-size: ${vt.fontSize};
|
|
121
|
+
font-weight: ${vt.fontWeight};
|
|
122
|
+
letter-spacing: ${vt.letterSpacing};
|
|
123
|
+
line-height: ${vt.lineHeight};
|
|
124
|
+
text-transform: ${vt.textTransform};
|
|
125
|
+
}
|
|
126
|
+
`,Oi=le.css`
|
|
127
|
+
.ft-typography--body2 {
|
|
128
|
+
font-family: ${xt.fontFamily};
|
|
129
|
+
font-size: ${xt.fontSize};
|
|
130
|
+
font-weight: ${xt.fontWeight};
|
|
131
|
+
letter-spacing: ${xt.letterSpacing};
|
|
132
|
+
line-height: ${xt.lineHeight};
|
|
133
|
+
text-transform: ${xt.textTransform};
|
|
134
|
+
}
|
|
135
|
+
`,Ei=le.css`
|
|
136
|
+
.ft-typography--caption {
|
|
137
|
+
font-family: ${St.fontFamily};
|
|
138
|
+
font-size: ${St.fontSize};
|
|
139
|
+
font-weight: ${St.fontWeight};
|
|
140
|
+
letter-spacing: ${St.letterSpacing};
|
|
141
|
+
line-height: ${St.lineHeight};
|
|
142
|
+
text-transform: ${St.textTransform};
|
|
143
|
+
}
|
|
144
|
+
`,Ai=le.css`
|
|
145
|
+
.ft-typography--breadcrumb {
|
|
146
|
+
font-family: ${Ct.fontFamily};
|
|
147
|
+
font-size: ${Ct.fontSize};
|
|
148
|
+
font-weight: ${Ct.fontWeight};
|
|
149
|
+
letter-spacing: ${Ct.letterSpacing};
|
|
150
|
+
line-height: ${Ct.lineHeight};
|
|
151
|
+
text-transform: ${Ct.textTransform};
|
|
152
|
+
}
|
|
153
|
+
`,wi=le.css`
|
|
154
|
+
.ft-typography--overline {
|
|
155
|
+
font-family: ${Ot.fontFamily};
|
|
156
|
+
font-size: ${Ot.fontSize};
|
|
157
|
+
font-weight: ${Ot.fontWeight};
|
|
158
|
+
letter-spacing: ${Ot.letterSpacing};
|
|
159
|
+
line-height: ${Ot.lineHeight};
|
|
160
|
+
text-transform: ${Ot.textTransform};
|
|
161
|
+
}
|
|
162
|
+
`,Ii=le.css`
|
|
163
|
+
.ft-typography--button {
|
|
164
|
+
font-family: ${Et.fontFamily};
|
|
165
|
+
font-size: ${Et.fontSize};
|
|
166
|
+
font-weight: ${Et.fontWeight};
|
|
167
|
+
letter-spacing: ${Et.letterSpacing};
|
|
168
|
+
line-height: ${Et.lineHeight};
|
|
169
|
+
text-transform: ${Et.textTransform};
|
|
170
|
+
}
|
|
171
|
+
`,Ti=le.css`
|
|
172
|
+
.ft-typography {
|
|
173
|
+
vertical-align: inherit;
|
|
174
|
+
}
|
|
175
|
+
`;var Ri=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},Ze=class extends _i.FtLitElement{constructor(){super(...arguments),this.variant=Lr.body1}render(){return this.element?ht`
|
|
176
|
+
<${ft(this.element)}
|
|
177
|
+
part="text"
|
|
178
|
+
class="ft-typography ft-typography--${this.variant}">
|
|
179
|
+
<slot></slot>
|
|
180
|
+
</${ft(this.element)}>
|
|
181
|
+
`:ht`
|
|
182
|
+
<slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
|
|
183
|
+
`}};Ze.styles=[vi,xi,Si,Ci,Nr,Oi,Ei,Ai,wi,Ii,Ti];Ri([(0,Mo.property)()],Ze.prototype,"element",void 0);Ri([(0,Mo.property)()],Ze.prototype,"variant",void 0);var Uo=C(J()),Qi=C(_());var Pr;(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"})(Pr||(Pr={}));var Oe=C(V(),1),Ne=o=>typeof o=="string"?(0,Oe.unsafeCSS)(o):o,t=class{static create(e,r,n,a){let s=d=>Ne(d??a),c=Oe.css`var(${Ne(e)}, ${s(a)})`;return c.name=e,c.description=r,c.category=n,c.defaultValue=a,c.defaultCssValue=s,c.set=d=>Li(c,d??s(a)),c.get=d=>Oe.css`var(${Ne(e)}, ${s(d)})`,c.breadcrumb=()=>[],c.lastResortDefaultValue=()=>a,c}static extend(e,r,n,a){let s=d=>n.get(d??a),c=Oe.css`var(${Ne(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=>Li(c,d??s(a)),c.get=d=>Oe.css`var(${Ne(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=Oe.css`var(${Ne(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=>Oe.css`var(${Ne(e.name)}, ${n(s)})`,a.breadcrumb=()=>e.breadcrumb(),a.lastResortDefaultValue=()=>e.lastResortDefaultValue(),a}};function Li(o,e){return Ne(`${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"),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)")},Ni={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")},Pi={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")},ki={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")},Di={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")},Fi={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")},Mi={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")},Bi={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")},Ui={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")},Hi={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")},uc={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")},zi={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")},Gi={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")},Wi={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")},$i={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")},ji={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")},Vi={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")},Bo={display:Ni,"title-1":Pi,"title-2":ki,"title-3":Di,"body-1-regular":Fi,"body-1-medium":Mi,"body-1-semibold":Bi,"body-2-regular":Ui,"body-2-medium":Hi,"body-2-medium-underline":uc,"body-2-semibold":zi,"caption-1-medium":Gi,"caption-1-semibold":Wi,"caption-2-medium":$i,"caption-2-semibold":ji,"caption-2-bold":Vi};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.
|
|
184
|
+
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 bf={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 Of={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 Tf={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 Pf={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 Bf={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 Wf={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 Zf={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 Jf={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 nh={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 lh={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 hh={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 vh={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 Eh={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 Th={contentHorizontalPadding:t.extend("--ftds-page-layout-content-horizontal-padding","",i.spacing6),contentVerticalPadding:t.extend("--ftds-page-layout-content-vertical-padding","",i.spacing6)};var Ph={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 Bh={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 Wh={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 Zh={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 Jh={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 ng={height:t.create("--ftds-floating-menu-height","","SIZE","50px"),horizontalPadding:t.extend("--ftds-floating-menu-horizontal-padding","",i.spacing4),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.opacity8),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)};var lg={largeFieldHorizontalPadding:t.extend("--ftds-combobox-single-select-large-field-horizontal-padding","",i.spacing4),largeFieldHorizontalGap:t.extend("--ftds-combobox-single-select-large-field-horizontal-gap","",i.spacing3),largeFieldVerticalGap:t.extend("--ftds-combobox-single-select-large-field-vertical-gap","",i.spacing05),largeFieldHeight:t.create("--ftds-combobox-single-select-large-field-height","","SIZE","50px"),largeFieldIconSize:t.extend("--ftds-combobox-single-select-large-field-icon-size","",i.iconSize3),mediumFieldHorizontalPadding:t.extend("--ftds-combobox-single-select-medium-field-horizontal-padding","",i.spacing4),mediumFieldHorizontalGap:t.extend("--ftds-combobox-single-select-medium-field-horizontal-gap","",i.spacing3),mediumFieldVerticalGap:t.create("--ftds-combobox-single-select-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHeight:t.create("--ftds-combobox-single-select-medium-field-height","","SIZE","40px"),mediumFieldIconSize:t.extend("--ftds-combobox-single-select-medium-field-icon-size","",i.iconSize3),helperHorizontalPadding:t.extend("--ftds-combobox-single-select-helper-horizontal-padding","",i.spacing4),helperHorizontalGap:t.extend("--ftds-combobox-single-select-helper-horizontal-gap","",i.spacing1),helperVerticalGap:t.extend("--ftds-combobox-single-select-helper-vertical-gap","",i.spacing1),helperIconSize:t.extend("--ftds-combobox-single-select-helper-icon-size","",i.iconSize2),menuVerticalGap:t.extend("--ftds-combobox-single-select-menu-vertical-gap","",i.spacing2),borderRadius:t.extend("--ftds-combobox-single-select-border-radius","",i.borderRadiusS),backgroundColor:t.extend("--ftds-combobox-single-select-background-color","",i.colorWhite),labelColor:t.extend("--ftds-combobox-single-select-label-color","",l.contentGlobalSubtle),contentValueColor:t.extend("--ftds-combobox-single-select-content-value-color","",l.contentGlobalPrimary),trailingIconColor:t.extend("--ftds-combobox-single-select-trailing-icon-color","",l.contentGlobalSubtle),defaultBorderColor:t.extend("--ftds-combobox-single-select-default-border-color","",l.borderInputPrimary),defaultHelperTextColor:t.extend("--ftds-combobox-single-select-default-helper-text-color","",l.contentGlobalSubtle),defaultBorderWidth:t.create("--ftds-combobox-single-select-default-border-width","","SIZE","1px"),errorBorderWidth:t.create("--ftds-combobox-single-select-error-border-width","","SIZE","2px"),errorBorderColor:t.extend("--ftds-combobox-single-select-error-border-color","",l.borderErrorPrimary),errorHelperTextColor:t.extend("--ftds-combobox-single-select-error-helper-text-color","",l.contentErrorPrimary),warningBorderWidth:t.create("--ftds-combobox-single-select-warning-border-width","","SIZE","2px"),warningBorderColor:t.extend("--ftds-combobox-single-select-warning-border-color","",l.borderWarningPrimary),warningHelperTextColor:t.extend("--ftds-combobox-single-select-warning-helper-text-color","",l.contentWarningPrimary),warningHelperIconColor:t.extend("--ftds-combobox-single-select-warning-helper-icon-color","",l.contentWarningIconOnly),focusOutlineWidth:t.create("--ftds-combobox-single-select-focus-outline-width","","SIZE","2px"),focusFocusRingColor:t.extend("--ftds-combobox-single-select-focus-focus-ring-color","",l.borderActionFocusRing),focusOutlineOffset:t.create("--ftds-combobox-single-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:t.extend("--ftds-combobox-single-select-disabled-component-opacity","",i.opacity40)};var hg={backgroundColor:t.extend("--ftds-combobox-multi-select-background-color","",i.colorWhite),labelColor:t.extend("--ftds-combobox-multi-select-label-color","",l.contentGlobalSubtle),trailingIconColor:t.extend("--ftds-combobox-multi-select-trailing-icon-color","",l.contentGlobalSubtle),defaultBorderColor:t.extend("--ftds-combobox-multi-select-default-border-color","",l.borderInputPrimary),defaultHelperTextColor:t.extend("--ftds-combobox-multi-select-default-helper-text-color","",l.contentGlobalSubtle),defaultBorderWidth:t.create("--ftds-combobox-multi-select-default-border-width","","SIZE","1px"),errorBorderColor:t.extend("--ftds-combobox-multi-select-error-border-color","",l.borderErrorPrimary),errorHelperTextColor:t.extend("--ftds-combobox-multi-select-error-helper-text-color","",l.contentErrorPrimary),errorHelperIcon:t.extend("--ftds-combobox-multi-select-error-helper-icon","",l.contentErrorIconOnly),errorBorderWidth:t.create("--ftds-combobox-multi-select-error-border-width","","SIZE","2px"),warningBorderColor:t.extend("--ftds-combobox-multi-select-warning-border-color","",l.borderWarningPrimary),warningHelperTextColor:t.extend("--ftds-combobox-multi-select-warning-helper-text-color","",l.contentWarningPrimary),warningHelperIconColor:t.extend("--ftds-combobox-multi-select-warning-helper-icon-color","",l.contentWarningIconOnly),warningBorderWidth:t.create("--ftds-combobox-multi-select-warning-border-width","","SIZE","2px"),focusFocusRingColor:t.extend("--ftds-combobox-multi-select-focus-focus-ring-color","",l.borderActionFocusRing),focusOutlineWidth:t.create("--ftds-combobox-multi-select-focus-outline-width","","SIZE","2px"),focusOutlineOffset:t.create("--ftds-combobox-multi-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:t.extend("--ftds-combobox-multi-select-disabled-component-opacity","",i.opacity40),helperHorizontalPadding:t.extend("--ftds-combobox-multi-select-helper-horizontal-padding","",i.spacing4),helperHorizontalGap:t.extend("--ftds-combobox-multi-select-helper-horizontal-gap","",i.spacing1),helperVerticalGap:t.extend("--ftds-combobox-multi-select-helper-vertical-gap","",i.spacing1),helperIconSize:t.extend("--ftds-combobox-multi-select-helper-icon-size","",i.iconSize2),fieldHorizontalPadding:t.extend("--ftds-combobox-multi-select-field-horizontal-padding","",i.spacing4),fieldHorizontalGap:t.extend("--ftds-combobox-multi-select-field-horizontal-gap","",i.spacing3),fieldVerticalGap:t.extend("--ftds-combobox-multi-select-field-vertical-gap","",i.spacing05),fieldIconSize:t.extend("--ftds-combobox-multi-select-field-icon-size","",i.iconSize3),fieldMaxHeight:t.create("--ftds-combobox-multi-select-field-max-height","","SIZE","112px"),contentValuesHorizontalGap:t.extend("--ftds-combobox-multi-select-content-values-horizontal-gap","",i.spacing1),contentValuesVerticalGap:t.extend("--ftds-combobox-multi-select-content-values-vertical-gap","",i.spacing1),borderRadius:t.extend("--ftds-combobox-multi-select-border-radius","",i.borderRadiusS)};var vg={backgroundColor:t.extend("--ftds-popover-background-color","",l.backgroundGlobalOnSurface),horizontalPadding:t.extend("--ftds-popover-horizontal-padding","",i.spacing6),verticalPadding:t.extend("--ftds-popover-vertical-padding","",i.spacing6),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"),contentSectionVerticalGap:t.extend("--ftds-popover-content-section-vertical-gap","",i.spacing2),multiSectionVerticalGap:t.extend("--ftds-popover-multi-section-vertical-gap","",i.spacing6)};var Eg={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 Rg={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 Pg={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 Mg={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 Gg={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 Kg={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 Xg={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 oy={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 cy={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 py={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 Ki;(function(o){o.brand="brand",o.neutral="neutral",o.info="info",o.success="success",o.warning="warning",o.error="error"})(Ki||(Ki={}));var Zi;(function(o){o.large="large",o.medium="medium",o.small="small"})(Zi||(Zi={}));var At=C(V());function pc(o,e){let r=Bo[o];return At.css`
|
|
185
|
+
${e?(0,At.unsafeCSS)(e):At.css`.ftds-typography--${(0,At.unsafeCSS)(o)}`} {
|
|
186
|
+
font-family: ${r.fontFamily};
|
|
187
|
+
font-size: ${r.fontSize};
|
|
188
|
+
font-weight: ${r.fontWeight};
|
|
189
|
+
letter-spacing: ${r.letterSpacing};
|
|
190
|
+
line-height: ${r.lineHeight};
|
|
191
|
+
text-decoration: ${r.textDecoration};
|
|
192
|
+
text-transform: ${r.textCase};
|
|
193
|
+
}
|
|
194
|
+
`}var qi=[Object.keys(Bo).map(o=>pc(o))];var Yi=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},qe=class extends Qi.FtLitElement{constructor(){super(...arguments),this.variant=Pr.body2medium}render(){return this.element?ht`
|
|
195
|
+
<${ft(this.element)}
|
|
196
|
+
part="text"
|
|
197
|
+
class="ftds-typography ftds-typography--${this.variant}">
|
|
198
|
+
<slot></slot>
|
|
199
|
+
</${ft(this.element)}>
|
|
200
|
+
`:ht`
|
|
201
|
+
<slot part="text" class="ftds-typography ftds-typography--${this.variant}"></slot>
|
|
202
|
+
`}};qe.styles=[...qi];Yi([(0,Uo.property)()],qe.prototype,"element",void 0);Yi([(0,Uo.property)()],qe.prototype,"variant",void 0);(0,Ho.customElement)("ft-typography")(Ze);(0,Ho.customElement)("ftds-typography")(qe);var kr=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 Ji.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?wt.html`
|
|
68
203
|
<style>
|
|
69
204
|
.ft-watermark {
|
|
70
|
-
height: ${this.height};
|
|
205
|
+
height: ${this.height}px;
|
|
71
206
|
}
|
|
72
207
|
</style>
|
|
73
|
-
<div class="ft-watermark-container">
|
|
74
|
-
<svg xmlns="http://www.w3.org/2000/svg"
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
208
|
+
<div class="ft-watermark-container ft-typography--body1">
|
|
209
|
+
<svg xmlns="http://www.w3.org/2000/svg"
|
|
210
|
+
class="ft-watermark"
|
|
211
|
+
part="svg">
|
|
212
|
+
<text x="0" y="0"
|
|
213
|
+
text-anchor="middle"
|
|
214
|
+
transform="rotate(-45)"
|
|
215
|
+
fill="${(e=this.watermark)===null||e===void 0?void 0:e.color}"
|
|
216
|
+
fill-opacity="${(r=this.watermark)===null||r===void 0?void 0:r.opacity}%">
|
|
217
|
+
${(0,Xi.repeat)(((n=this.watermark)===null||n===void 0?void 0:n.text)||[],a=>wt.svg`<tspan x="0" dy="1.2em">${a}</tspan>`)}
|
|
78
218
|
</text>
|
|
79
219
|
</svg>
|
|
80
220
|
</div>
|
|
81
|
-
`:je.nothing}updated(e){if(super.updated(e),e.has("watermark")&&this.watermark){let t=this.svg.getBBox();this.svg.setAttribute("viewBox",t.x+" "+t.y+" "+t.width+" "+t.height)}}};Z.styles=ln;rr([(0,Ye.query)(".ft-watermark")],Z.prototype,"svg",void 0);rr([(0,Ye.property)({attribute:!1})],Z.prototype,"watermark",void 0);rr([(0,Ye.property)()],Z.prototype,"height",void 0);(0,un.customElement)("ft-reader-watermark")(Z);var ts=b(C());var nt=b($()),Te=b(X()),z=b(C());var ae=b(C());var dn=b(C()),ds={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]},setLinkPreviewDialogId:(r,e)=>{r.linkPreviewDialogId=e.payload}},hn=r=>dn.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:ds});var nr=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 l=(a=i.prettyUrl)===null||a===void 0?void 0:a.replace(/^\//,""),c={tocId:i.tocId,contentId:i.contentId,title:i.title,untranslatedTitle:i.untranslatedTitle,hasRating:i.hasRating,origin:i.origin,prettyUrl:l,depth:t,parentTocId:n,children:[]};this.register(c);let d=this.convertSectionNodes((o=i.pageToc)!==null&&o!==void 0?o:[],t+1,i.tocId),f=this.convertNodes(i.children,t+1,c.tocId);return c.children=[...d,...f],[c]})}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,l;let c={number:this.pages.length+1,title:(n=e.title)!==null&&n!==void 0?n:"",untranslatedTitle:e.untranslatedTitle,rootTocId:(i=e.tocId)!==null&&i!==void 0?i:"root",toc:((s=e.pageToc)!==null&&s!==void 0?s:[]).map(p=>this.nodeByTocId[p.tocId]),topics:[],hiddenTopics:[],breadcrumb:t?this.buildBreadcrumb(this.nodeByTocId[t]):[]},d=(p,y)=>(y?c.topics:c.hiddenTopics).push(p),f=(o=(a=e.pageConfiguration)===null||a===void 0?void 0:a.parentsVisibility)!==null&&o!==void 0?o:[];return c.breadcrumb.forEach((p,y)=>{d(p,f[y])}),e.tocId&&d(e.tocId,e.pageConfiguration.isVisible),c.topics.push(...this.tocIds((l=e.pageToc)!==null&&l!==void 0?l:[])),c}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}},lt=class{convertPaginatedToc(e,t){return new nr(e,t).build()}};var fs=b(pn(),1);var vn;(function(r){r.black="black",r.green="green",r.blue="blue",r.purple="purple",r.red="red",r.orange="orange",r.yellow="yellow"})(vn||(vn={}));var mn;(function(r){r.OFFICIAL="OFFICIAL",r.PERSONAL="PERSONAL",r.SHARED="SHARED"})(mn||(mn={}));var yn;(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"})(yn||(yn={}));var gn;(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"})(gn||(gn={}));var bn;(function(r){r.LAST_WEEK="LAST_WEEK",r.LAST_MONTH="LAST_MONTH",r.LAST_QUARTER="LAST_QUARTER",r.LAST_YEAR="LAST_YEAR"})(bn||(bn={}));var Sn;(function(r){r.VALUE="VALUE",r.DATE="DATE",r.RANGE="RANGE"})(Sn||(Sn={}));var An;(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__AI_TRANSLATE="DOCUMENT__AI_TRANSLATE",r.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",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__DISPLAY="TOPIC__DISPLAY",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"})(An||(An={}));var En;(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"})(En||(En={}));var Tn;(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"})(Tn||(Tn={}));var wn;(function(r){r.CLASSIC="CLASSIC",r.CUSTOM="CUSTOM",r.DESIGNER="DESIGNER"})(wn||(wn={}));var xn;(function(r){r.AND="AND",r.OR="OR",r.MONOVALUED="MONOVALUED"})(xn||(xn={}));var In;(function(r){r.NONE="NONE",r.ALPHABET="ALPHABET",r.VERSION="VERSION"})(In||(In={}));var On;(function(r){r.STARS="STARS",r.LIKE="LIKE",r.DICHOTOMOUS="DICHOTOMOUS",r.NO_RATING="NO_RATING"})(On||(On={}));var Cn;(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"})(Cn||(Cn={}));var _n;(function(r){r.OPTIONAL="OPTIONAL",r.MANDATORY="MANDATORY"})(_n||(_n={}));var Rn;(function(r){r.ASC="ASC",r.DESC="DESC"})(Rn||(Rn={}));var Pn;(function(r){r.ALPHA="ALPHA",r.NATURAL="NATURAL"})(Pn||(Pn={}));var Dn;(function(r){r.EVERYWHERE="EVERYWHERE",r.TITLE_ONLY="TITLE_ONLY",r.NONE="NONE"})(Dn||(Dn={}));var Mn;(function(r){r.ARTICLE="ARTICLE",r.BOOK="BOOK",r.SHARED_BOOK="SHARED_BOOK",r.HTML_PACKAGE="HTML_PACKAGE"})(Mn||(Mn={}));var Ln;(function(r){r.FLUIDTOPICS="FLUIDTOPICS",r.EXTERNAL="EXTERNAL"})(Ln||(Ln={}));var kn;(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"})(kn||(kn={}));var Nn;(function(r){r.LAST_WEEK="LAST_WEEK",r.LAST_MONTH="LAST_MONTH",r.LAST_QUARTER="LAST_QUARTER",r.LAST_YEAR="LAST_YEAR"})(Nn||(Nn={}));var Un;(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC",r.HTML_PACKAGE="HTML_PACKAGE",r.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Un||(Un={}));var Fn;(function(r){r.DEFAULT="DEFAULT",r.DOCUMENTS="DOCUMENTS",r.ALL_TOPICS="ALL_TOPICS",r.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Fn||(Fn={}));var jn;(function(r){r.PLAIN_TEXT="PLAIN_TEXT",r.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",r.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(jn||(jn={}));var _;(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.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_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.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",r.KHUB_ADMIN="KHUB_ADMIN",r.USERS_ADMIN="USERS_ADMIN",r.PORTAL_ADMIN="PORTAL_ADMIN",r.ADMIN="ADMIN"})(_||(_={}));var ee;(function(r){r.SEARCHES="SEARCHES",r.BOOKMARKS="BOOKMARKS",r.BOOKS="BOOKS",r.COLLECTIONS="COLLECTIONS"})(ee||(ee={}));var Bn;(function(r){r.UNAUTHENTICATED="UNAUTHENTICATED",r.USER_INCOMPLETE="USER_INCOMPLETE",r.MFA_REQUIRED="MFA_REQUIRED",r.AUTHENTICATED="AUTHENTICATED"})(Bn||(Bn={}));var Hn;(function(r){r.VALID="VALID",r.INVALID="INVALID"})(Hn||(Hn={}));var Vn;(function(r){r.JSON="JSON",r.TEXT="TEXT"})(Vn||(Vn={}));var Kn;(function(r){r.USER="USER",r.ASSISTANT="ASSISTANT"})(Kn||(Kn={}));var qn;(function(r){r.TEXT="TEXT",r.HTML="HTML"})(qn||(qn={}));var $n;(function(r){r.HTML="HTML",r.MARKDOWN="MARKDOWN"})($n||($n={}));var hs={[_.PERSONAL_BOOK_SHARE_USER]:[_.PERSONAL_BOOK_USER],[_.HTML_EXPORT_USER]:[_.PERSONAL_BOOK_USER],[_.PDF_EXPORT_USER]:[_.PERSONAL_BOOK_USER],[_.KHUB_ADMIN]:[_.CONTENT_PUBLISHER],[_.ADMIN]:[_.KHUB_ADMIN,_.USERS_ADMIN,_.PORTAL_ADMIN],[_.GENERATIVE_AI_EXPORT_USER]:[_.GENERATIVE_AI_USER]};function Gn(r,e){return r===e||(hs[r]??[]).some(t=>Gn(t,e))}function fe(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=>Gn(n,e))}var Ji=b(C());var ri=b($()),B=b(X()),ie=b(C());var zn=b($());var Wn=zn.css`
|
|
82
|
-
`;var dt=b(C()),ps="ft-app-info",ce=class r extends CustomEvent{constructor(e){super(r.eventName,{detail:e})}};ce.eventName="authentication-change";var vs={session:(r,e)=>{(0,dt.deepEqual)(r.session,e.payload)||(r.session=e.payload,setTimeout(()=>m.dispatchEvent(new ce(e.payload)),0))}},m=dt.FtReduxStore.get({name:ps,reducers:vs,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],availableContentLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!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 ir=b(C());var _e=class r{static get(e){let{baseUrl:t,apiIntegrationIdentifier:n}=m.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=m.subscribe(()=>{n=r.get(e),n&&(i(),t(n))})}})}};var ht=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:_e.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):_e.await()}};var K=class extends ht{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],[l])=>o.localeCompare(l)));let i=this.constructor;i.commonCache=(n=i.commonCache)!==null&&n!==void 0?n:new ir.CacheRegistry,this.cache=e?i.commonCache:new ir.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 ft=class extends K{async listMyBookmarks(){let e=m.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var sr=class{addCommand(e,t=!1){m.commands.add(e,t)}consumeCommand(e){return m.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new sr;var te=b(C());var Qn,He=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},ms=Symbol("clearAfterUnitTest"),pt=class extends(0,te.withEventBus)(K){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Qn]=()=>{this.defaultMessages={},this.cache=new te.CacheRegistry,this.listeners={}},this.currentUiLocale=m.getState().uiLocale,m.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=m.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,te.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 te.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 te.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 He({loadedContexts:e})),this.dispatchEvent(new He({loadedContexts:e})),await Promise.all(e.map(t=>this.notify(t,!1)))}async notify(e,t=!0){t&&(document.body.dispatchEvent(new He({loadedContexts:[e]})),this.dispatchEvent(new He({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(n=>(0,te.delay)(0).then(()=>n()).catch(()=>null)))}};Qn=ms;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends pt{constructor(){super(async(r,e)=>(await this.awaitApi).getFluidTopicsMessageContext(r,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends pt{constructor(){super(async(r,e)=>(await this.awaitApi).getCustomMessageContext(r,e))}});var Yn=window.FluidTopicsI18nService,So=window.FluidTopicsCustomI18nService;var Xn=b(C()),ar=class{highlightHtml(e,t,n){(0,Xn.highlightHtml)(e,t,n)}};window.FluidTopicsHighlightHtmlService=new ar;var vt=class extends K{async listMySearches(){let{session:e}=m.getState();return fe(e,_.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var Jn=b(C());var or=class{isDate(e){var t,n,i,s;return(s=(i=((n=(t=m.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;return Jn.DateFormatter.format(e,(n=t?.locale)!==null&&n!==void 0?n:m.getState().uiLocale,(i=t?.longFormat)!==null&&i!==void 0?i:!1,(s=t?.withTime)!==null&&s!==void 0?s:!1)}};window.FluidTopicsDateService=new or;var Zn=b(C());var Xe=class{static get(e,t){var n,i;let s=m.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 Zn.SearchPlaceConverter(s.baseUrl,e??20,s.searchInAllLanguagesAllowed,t??`${a}-${o}`)}};var lr=class{urlToSearchRequest(e){return Xe.get().parse(e)}searchRequestToUrl(e){return Xe.get().serialize(e)}};window.FluidTopicsUrlService=new lr;var ye=b(C());var Re=class r extends CustomEvent{constructor(e){super(r.eventName,{detail:{currentItem:e}})}};Re.eventName="change";var cr=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))}},ei=new cr;var mt=class r extends ye.WithEventBus{static build(){return new r(window.history,ei,()=>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,ye.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new Re(this.currentItem())),0)}installProxies(){let e=t=>(n,i,[s,a,o])=>{let l=t(),c={...l===this.currentIndex?this.currentState:void 0,...s,index:l,href:typeof o=="string"?o:(o??this.windowLocation()).href};n.apply(i,[c,a,o]),this.setCurrentState(c,!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(Re.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Re.eventName,e)}currentItem(){return(0,ye.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,ye.deepCopy)(this.states[this.previousDifferentMajorPosition()])}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,ye.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=mt.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),addHistoryChangeListener:r=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(r),removeHistoryChangeListener:r=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(r)});function ti(r,e){let{authenticationRequired:t,session:n}=m.getState();return t&&!n?.sessionAuthenticated?Promise.resolve(e):r()}var k=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},R=class extends ie.FtLitElement{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.apiProvider=()=>_e.get(),this.authenticationRequired=!1,this.messageContexts=[],this.cache=new ie.CacheRegistry,this.cleanSessionDebouncer=new ie.Debouncer,this.reloadConfiguration=()=>{this.cache.clear("availableContentLocales"),this.updateAvailableContentLocales()}}render(){return ri.html`
|
|
83
|
-
<slot></slot>
|
|
84
|
-
`}connectedCallback(){super.connectedCallback(),m.addEventListener(ce.eventName,this.reloadConfiguration)}disconnectedCallback(){m.addEventListener(ce.eventName,this.reloadConfiguration),super.disconnectedCallback()}update(e){var t,n,i,s,a,o,l;super.update(e),e.has("baseUrl")&&(m.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&m.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&m.actions.apiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&m.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&m.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&m.actions.noCustom(this.noCustom),e.has("editorMode")&&m.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&m.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&m.actions.session(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(c=>Yn.addContext(c)),e.has("openExternalDocumentInNewTab")&&m.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&m.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&m.actions.forcedOffline(this.forcedOffline),e.has("localesConfiguration")&&(m.actions.defaultLocales((t=this.localesConfiguration)===null||t===void 0?void 0:t.defaultLocales),m.actions.availableUiLocales((i=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&i!==void 0?i:[]),m.actions.searchInAllLanguagesAllowed((a=(s=this.localesConfiguration)===null||s===void 0?void 0:s.allLanguagesAllowed)!==null&&a!==void 0?a:!1)),e.has("authenticationRequired")&&m.actions.authenticationRequired(this.authenticationRequired),e.has("availableContentLocales")&&m.actions.availableContentLocales((l=(o=this.availableContentLocales)===null||o===void 0?void 0:o.contentLocales)!==null&&l!==void 0?l:[]),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration(),this.availableContentLocales==null&&this.updateAvailableContentLocales())}async updateSession(){this.session=await this.cache.get("session",async()=>{let e=await this.apiProvider().getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},e.idleTimeoutInMillis),e})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}async updateAvailableContentLocales(){this.availableContentLocales=await this.cache.get("availableContentLocales",()=>ti(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}))}};R.elementDefinitions={};R.styles=Wn;k([(0,B.property)()],R.prototype,"baseUrl",void 0);k([(0,B.property)()],R.prototype,"apiIntegrationIdentifier",void 0);k([(0,B.property)()],R.prototype,"apiIntegrationAppVersion",void 0);k([(0,B.property)()],R.prototype,"uiLocale",void 0);k([(0,ie.jsonProperty)(null)],R.prototype,"availableUiLocales",void 0);k([(0,ie.jsonProperty)(null)],R.prototype,"metadataConfiguration",void 0);k([(0,B.property)({type:Boolean})],R.prototype,"editorMode",void 0);k([(0,B.property)({type:Boolean})],R.prototype,"noCustom",void 0);k([(0,B.property)({type:Boolean})],R.prototype,"openExternalDocumentInNewTab",void 0);k([(0,B.property)({converter:{fromAttribute(r){return r==="false"?!1:r==="true"||(r??!1)}}})],R.prototype,"noCustomComponent",void 0);k([(0,B.property)({type:Boolean})],R.prototype,"withManualResources",void 0);k([(0,B.property)({type:Boolean})],R.prototype,"navigatorOnline",void 0);k([(0,B.property)({type:Boolean})],R.prototype,"forcedOffline",void 0);k([(0,B.property)({type:Object})],R.prototype,"apiProvider",void 0);k([(0,B.property)({type:Boolean})],R.prototype,"authenticationRequired",void 0);k([(0,ie.jsonProperty)([])],R.prototype,"messageContexts",void 0);k([(0,ie.jsonProperty)(void 0)],R.prototype,"session",void 0);k([(0,B.state)()],R.prototype,"localesConfiguration",void 0);k([(0,B.state)()],R.prototype,"availableContentLocales",void 0);var Lr=b(X());function ys(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,i;if(Array.isArray(r)){if(t=r.length,t!=e.length)return!1;for(n=t;n--!==0;)if(!yt(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(!yt(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 s=a=>Object.keys(a).filter(o=>a[o]!=null);if(i=s(r),t=i.length,t!==s(e).length)return!1;for(n=t;n--!==0;)if(!Object.prototype.hasOwnProperty.call(e,i[n]))return!1;for(n=t;n--!==0;){let a=i[n];if(!yt(r[a],e[a]))return!1}return!0}return r!==r&&e!==e||r==null&&e==null}function yt(r,e){try{return ys(r,e)}catch{return!1}}function Je(r,e){return!yt(r,e)}function gt(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 ni=b(X(),1);var ur=r=>{let e=r??{};return(t,n)=>{var i;let s={hasChanged:Je,attribute:!1,...e};(0,ni.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 bt=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 Pe=b(X(),1);var ii=b(X(),1);function si(r,e){let t=()=>JSON.parse(JSON.stringify(r));return(0,ii.property)({type:Object,converter:{fromAttribute:n=>{if(n==null)return t();try{return JSON.parse(n)}catch{return t()}},toAttribute:n=>JSON.stringify(n)},hasChanged:Je,...e??{}})}var St=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 oi=b($(),1);var At=globalThis,gs=At.ShadowRoot&&(At.ShadyCSS===void 0||At.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,bl=Symbol();var ai=(r,e)=>{if(gs)r.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of e){let n=document.createElement("style"),i=At.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=t.cssText,r.appendChild(n)}};var Et=class extends oi.LitElement{createRenderRoot(){let e=this.constructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,Object.entries(e.elementDefinitions).forEach(([i,s])=>e.registry.define(i,s)));let t={...e.shadowRootOptions,customElements:e.registry},n=this.renderOptions.creationScope=this.attachShadow(t);return ai(n,e.elementStyles),n}};function li(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 Ke=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},hi,ci=Symbol("constructorPrototype"),ui=Symbol("constructorName"),fi=Symbol("exportpartsDebouncer"),di=Symbol("dynamicDependenciesLoaded"),Ve=class r extends CustomEvent{constructor(){super(r.eventName,{bubbles:!0})}};Ve.eventName="exportparts-updated";var ue=class extends Et{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[hi]=new St(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[fi].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[ui]=this.constructor.name,this[ci]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[ui]&&Object.setPrototypeOf(this,this[ci])}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[di]||(t[di]=!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:t,selector:n,shadowPath:i}=this.elementToFocus;if(n!=null){let s=[...i??[],n];t=li(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 l=p=>p!=null&&p.trim().length>0,c=e.filter(l).map(p=>p.trim());if(c.length===0){this.exportparts=void 0;return}let d=new Set;for(let p of(n=(t=this.shadowRoot)===null||t===void 0?void 0:t.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let y=(s=(i=p.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&s!==void 0?s:[],v=(o=(a=p.getAttribute("exportparts"))===null||a===void 0?void 0:a.split(",").map(A=>A.split(":")[1]))!==null&&o!==void 0?o:[],g=[...y,...v].filter(l).map(A=>A.trim());for(let A of g)d.add(A)}if(d.size===0){this.exportparts=void 0;return}let f=[...d.values()].flatMap(p=>c.map(y=>`${p}:${y}--${p}`));this.exportparts=[...this.part,...f].join(", ")}};hi=fi;Ke([(0,Pe.property)()],ue.prototype,"exportpartsPrefix",void 0);Ke([si([])],ue.prototype,"exportpartsPrefixes",void 0);Ke([(0,Pe.property)({reflect:!0})],ue.prototype,"exportparts",void 0);Ke([(0,Pe.property)()],ue.prototype,"customStylesheet",void 0);Ke([(0,Pe.property)()],ue.prototype,"elementToFocus",void 0);Ke([(0,Pe.state)()],ue.prototype,"useAdoptedStyleSheets",void 0);function Tt(r){var e;return(e=r?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Ze=Symbol("internalReduxEventsUnsubscribers"),ge=Symbol("internalStoresUnsubscribers"),De=Symbol("internalStores"),bs=gt(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[De].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[De].values()][0]}getStore(a){return a==null?this.getUnnamedStore():this[De].get(a)}addStore(a,o){var l;o=(l=o??a.name)!==null&&l!==void 0?l:"default-store",this.unsubscribeFromStore(o),this[De].set(o,a),this.subscribeToStore(o,a),this.updateFromStores()}removeStore(a){let o=typeof a=="string"?a:a.name;this.unsubscribeFromStore(o),this[De].delete(o)}setupStores(){this.unsubscribeFromStores(),this[De].forEach((a,o)=>this.subscribeToStore(o,a)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((a,o)=>{let l=this.constructor.getPropertyOptions(o);if(!l?.attribute||!this.hasAttribute(typeof l?.attribute=="string"?l.attribute:o)){let c=this.getStore(a.store);c&&(a.store?this[ge].has(a.store):this[ge].size>0)&&(this[o]=a.selector(c.getState(),this))}})}subscribeToStore(a,o){var l;this[ge].set(a,o.subscribe(()=>this.updateFromStores())),this[Ze].set(a,[]),Tt(o)&&o.eventBus&&((l=this.reduxConstructor.reduxEventListeners)===null||l===void 0||l.forEach((c,d)=>{if(typeof this[d]=="function"&&(!c.store||o.name===c.store)){let f=p=>this[d](p);o.addEventListener(c.eventName,f),this[Ze].get(a).push(()=>o.removeEventListener(c.eventName,f))}})),this.onStoreAvailable(a)}unsubscribeFromStores(){this[ge].forEach((a,o)=>this.unsubscribeFromStore(o))}unsubscribeFromStore(a){var o;this[ge].has(a)&&this[ge].get(a)(),this[ge].delete(a),(o=this[Ze].get(a))===null||o===void 0||o.forEach(l=>l()),this[Ze].delete(a)}onStoreAvailable(a){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=ge,t=De,n=Ze,i.reduxProperties=new Map,i.reduxReactiveProperties=new Set,i.reduxEventListeners=new Map,i}),pi=class extends bs(ue){};function re(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 pe(r){return!!r&&!!r[D]}function se(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)===Os}(r)||Array.isArray(r)||!!r[Ai]||!!(!((e=r.constructor)===null||e===void 0)&&e[Ai])||br(r)||Sr(r))}function Me(r,e,t){t===void 0&&(t=!1),Ge(r)===0?(t?Object.keys:$e)(r).forEach(function(n){t&&typeof n=="symbol"||e(n,r[n],r)}):r.forEach(function(n,i){return e(i,n,r)})}function Ge(r){var e=r[D];return e?e.i>3?e.i-4:e.i:Array.isArray(r)?1:br(r)?2:Sr(r)?3:0}function qe(r,e){return Ge(r)===2?r.has(e):Object.prototype.hasOwnProperty.call(r,e)}function Ss(r,e){return Ge(r)===2?r.get(e):r[e]}function Ei(r,e,t){var n=Ge(r);n===2?r.set(e,t):n===3?r.add(t):r[e]=t}function Ti(r,e){return r===e?r!==0||1/r==1/e:r!=r&&e!=e}function br(r){return xs&&r instanceof Map}function Sr(r){return Is&&r instanceof Set}function be(r){return r.o||r.t}function Ar(r){if(Array.isArray(r))return Array.prototype.slice.call(r);var e=Ii(r);delete e[D];for(var t=$e(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 Er(r,e){return e===void 0&&(e=!1),Tr(r)||pe(r)||!se(r)||(Ge(r)>1&&(r.set=r.add=r.clear=r.delete=As),Object.freeze(r),e&&Me(r,function(t,n){return Er(n,!0)},!0)),r}function As(){re(2)}function Tr(r){return r==null||typeof r!="object"||Object.isFrozen(r)}function de(r){var e=gr[r];return e||re(18,r),e}function Es(r,e){gr[r]||(gr[r]=e)}function vr(){return tt}function dr(r,e){e&&(de("Patches"),r.u=[],r.s=[],r.v=e)}function wt(r){mr(r),r.p.forEach(Ts),r.p=null}function mr(r){r===tt&&(tt=r.l)}function vi(r){return tt={p:[],l:tt,h:r,m:!0,_:0}}function Ts(r){var e=r[D];e.i===0||e.i===1?e.j():e.g=!0}function hr(r,e){e._=e.p.length;var t=e.p[0],n=r!==void 0&&r!==t;return e.h.O||de("ES5").S(e,r,n),n?(t[D].P&&(wt(e),re(4)),se(r)&&(r=xt(e,r),e.l||It(e,r)),e.u&&de("Patches").M(t[D].t,r,e.u,e.s)):r=xt(e,t,[]),wt(e),e.u&&e.v(e.u,e.s),r!==xi?r:void 0}function xt(r,e,t){if(Tr(e))return e;var n=e[D];if(!n)return Me(e,function(o,l){return mi(r,n,e,o,l,t)},!0),e;if(n.A!==r)return e;if(!n.P)return It(r,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=Ar(n.k):n.o,s=i,a=!1;n.i===3&&(s=new Set(i),i.clear(),a=!0),Me(s,function(o,l){return mi(r,n,i,o,l,t,a)}),It(r,i,!1),t&&r.u&&de("Patches").N(n,t,r.u,r.s)}return n.o}function mi(r,e,t,n,i,s,a){if(pe(i)){var o=xt(r,i,s&&e&&e.i!==3&&!qe(e.R,n)?s.concat(n):void 0);if(Ei(t,n,o),!pe(o))return;r.m=!1}else a&&t.add(i);if(se(i)&&!Tr(i)){if(!r.h.D&&r._<1)return;xt(r,i),e&&e.A.l||It(r,i)}}function It(r,e,t){t===void 0&&(t=!1),!r.l&&r.h.D&&r.m&&Er(e,t)}function fr(r,e){var t=r[D];return(t?be(t):r)[e]}function yi(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 Se(r){r.P||(r.P=!0,r.l&&Se(r.l))}function pr(r){r.o||(r.o=Ar(r.t))}function yr(r,e,t){var n=br(e)?de("MapSet").F(e,t):Sr(e)?de("MapSet").T(e,t):r.O?function(i,s){var a=Array.isArray(i),o={i:a?1:0,A:s?s.A:vr(),P:!1,I:!1,R:{},l:s,t:i,k:null,o:null,j:null,C:!1},l=o,c=rt;a&&(l=[o],c=et);var d=Proxy.revocable(l,c),f=d.revoke,p=d.proxy;return o.k=p,o.j=f,p}(e,t):de("ES5").J(e,t);return(t?t.A:vr()).p.push(n),n}function ws(r){return pe(r)||re(22,r),function e(t){if(!se(t))return t;var n,i=t[D],s=Ge(t);if(i){if(!i.P&&(i.i<4||!de("ES5").K(i)))return i.t;i.I=!0,n=gi(t,s),i.I=!1}else n=gi(t,s);return Me(n,function(a,o){i&&Ss(i.t,a)===o||Ei(n,a,e(o))}),s===3?new Set(n):n}(r)}function gi(r,e){switch(e){case 2:return new Map(r);case 3:return Array.from(r)}return Ar(r)}function wi(){function r(a,o){var l=s[a];return l?l.enumerable=o:s[a]=l={configurable:!0,enumerable:o,get:function(){var c=this[D];return rt.get(c,a)},set:function(c){var d=this[D];rt.set(d,a,c)}},l}function e(a){for(var o=a.length-1;o>=0;o--){var l=a[o][D];if(!l.P)switch(l.i){case 5:n(l)&&Se(l);break;case 4:t(l)&&Se(l)}}}function t(a){for(var o=a.t,l=a.k,c=$e(l),d=c.length-1;d>=0;d--){var f=c[d];if(f!==D){var p=o[f];if(p===void 0&&!qe(o,f))return!0;var y=l[f],v=y&&y[D];if(v?v.t!==p:!Ti(y,p))return!0}}var g=!!o[D];return c.length!==$e(o).length+(g?0:1)}function n(a){var o=a.k;if(o.length!==a.t.length)return!0;var l=Object.getOwnPropertyDescriptor(o,o.length-1);if(l&&!l.get)return!0;for(var c=0;c<o.length;c++)if(!o.hasOwnProperty(c))return!0;return!1}function i(a){a.g&&re(3,JSON.stringify(be(a)))}var s={};Es("ES5",{J:function(a,o){var l=Array.isArray(a),c=function(f,p){if(f){for(var y=Array(p.length),v=0;v<p.length;v++)Object.defineProperty(y,""+v,r(v,!0));return y}var g=Ii(p);delete g[D];for(var A=$e(g),E=0;E<A.length;E++){var T=A[E];g[T]=r(T,f||!!g[T].enumerable)}return Object.create(Object.getPrototypeOf(p),g)}(l,a),d={i:l?5:4,A:o?o.A:vr(),P:!1,I:!1,R:{},l:o,t:a,k:c,o:null,g:!1,C:!1};return Object.defineProperty(c,D,{value:d,writable:!0}),c},S:function(a,o,l){l?pe(o)&&o[D].A===a&&e(a.p):(a.u&&function c(d){if(d&&typeof d=="object"){var f=d[D];if(f){var p=f.t,y=f.k,v=f.R,g=f.i;if(g===4)Me(y,function(x){x!==D&&(p[x]!==void 0||qe(p,x)?v[x]||c(y[x]):(v[x]=!0,Se(f)))}),Me(p,function(x){y[x]!==void 0||qe(y,x)||(v[x]=!1,Se(f))});else if(g===5){if(n(f)&&(Se(f),v.length=!0),y.length<p.length)for(var A=y.length;A<p.length;A++)v[A]=!1;else for(var E=p.length;E<y.length;E++)v[E]=!0;for(var T=Math.min(y.length,p.length),O=0;O<T;O++)y.hasOwnProperty(O)||(v[O]=!0),v[O]===void 0&&c(y[O])}}}}(a.p[0]),e(a.p))},K:function(a){return a.i===4?t(a):n(a)}})}var bi,tt,wr=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",xs=typeof Map<"u",Is=typeof Set<"u",Si=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",xi=wr?Symbol.for("immer-nothing"):((bi={})["immer-nothing"]=!0,bi),Ai=wr?Symbol.for("immer-draftable"):"__$immer_draftable",D=wr?Symbol.for("immer-state"):"__$immer_state";var Os=""+Object.prototype.constructor,$e=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Object.getOwnPropertyNames,Ii=Object.getOwnPropertyDescriptors||function(r){var e={};return $e(r).forEach(function(t){e[t]=Object.getOwnPropertyDescriptor(r,t)}),e},gr={},rt={get:function(r,e){if(e===D)return r;var t=be(r);if(!qe(t,e))return function(i,s,a){var o,l=yi(s,a);return l?"value"in l?l.value:(o=l.get)===null||o===void 0?void 0:o.call(i.k):void 0}(r,t,e);var n=t[e];return r.I||!se(n)?n:n===fr(r.t,e)?(pr(r),r.o[e]=yr(r.A.h,n,r)):n},has:function(r,e){return e in be(r)},ownKeys:function(r){return Reflect.ownKeys(be(r))},set:function(r,e,t){var n=yi(be(r),e);if(n?.set)return n.set.call(r.k,t),!0;if(!r.P){var i=fr(be(r),e),s=i?.[D];if(s&&s.t===t)return r.o[e]=t,r.R[e]=!1,!0;if(Ti(t,i)&&(t!==void 0||qe(r.t,e)))return!0;pr(r),Se(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 fr(r.t,e)!==void 0||e in r.t?(r.R[e]=!1,pr(r),Se(r)):delete r.R[e],r.o&&delete r.o[e],!0},getOwnPropertyDescriptor:function(r,e){var t=be(r),n=Reflect.getOwnPropertyDescriptor(t,e);return n&&{writable:!0,configurable:r.i!==1||e!=="length",enumerable:n.enumerable,value:t[e]}},defineProperty:function(){re(11)},getPrototypeOf:function(r){return Object.getPrototypeOf(r.t)},setPrototypeOf:function(){re(12)}},et={};Me(rt,function(r,e){et[r]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),et.deleteProperty=function(r,e){return et.set.call(this,r,e,void 0)},et.set=function(r,e,t){return rt.set.call(this,r[0],e,t,r[0])};var Cs=function(){function r(t){var n=this;this.O=Si,this.D=!0,this.produce=function(i,s,a){if(typeof i=="function"&&typeof s!="function"){var o=s;s=i;var l=n;return function(g){var A=this;g===void 0&&(g=o);for(var E=arguments.length,T=Array(E>1?E-1:0),O=1;O<E;O++)T[O-1]=arguments[O];return l.produce(g,function(x){var U;return(U=s).call.apply(U,[A,x].concat(T))})}}var c;if(typeof s!="function"&&re(6),a!==void 0&&typeof a!="function"&&re(7),se(i)){var d=vi(n),f=yr(n,i,void 0),p=!0;try{c=s(f),p=!1}finally{p?wt(d):mr(d)}return typeof Promise<"u"&&c instanceof Promise?c.then(function(g){return dr(d,a),hr(g,d)},function(g){throw wt(d),g}):(dr(d,a),hr(c,d))}if(!i||typeof i!="object"){if((c=s(i))===void 0&&(c=i),c===xi&&(c=void 0),n.D&&Er(c,!0),a){var y=[],v=[];de("Patches").M(i,c,y,v),a(y,v)}return c}re(21,i)},this.produceWithPatches=function(i,s){if(typeof i=="function")return function(c){for(var d=arguments.length,f=Array(d>1?d-1:0),p=1;p<d;p++)f[p-1]=arguments[p];return n.produceWithPatches(c,function(y){return i.apply(void 0,[y].concat(f))})};var a,o,l=n.produce(i,s,function(c,d){a=c,o=d});return typeof Promise<"u"&&l instanceof Promise?l.then(function(c){return[c,a,o]}):[l,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){se(t)||re(8),pe(t)&&(t=ws(t));var n=vi(this),i=yr(this,t,void 0);return i[D].C=!0,mr(n),i},e.finishDraft=function(t,n){var i=t&&t[D],s=i.A;return dr(s,n),hr(void 0,s)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Si&&re(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=de("Patches").$;return pe(t)?a(t,n):this.produce(t,function(o){return a(o,n)})},r}(),Q=new Cs,_s=Q.produce,Ll=Q.produceWithPatches.bind(Q),kl=Q.setAutoFreeze.bind(Q),Nl=Q.setUseProxies.bind(Q),Ul=Q.applyPatches.bind(Q),Fl=Q.createDraft.bind(Q),jl=Q.finishDraft.bind(Q),Ot=_s;function Le(r){"@babel/helpers - typeof";return Le=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},Le(r)}function Oi(r,e){if(Le(r)!="object"||!r)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(Le(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function Ci(r){var e=Oi(r,"string");return Le(e)=="symbol"?e:e+""}function _i(r,e,t){return(e=Ci(e))in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function Ri(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 xr(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Ri(Object(t),!0).forEach(function(n){_i(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):Ri(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}function V(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 Pi=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Ir=function(){return Math.random().toString(36).substring(7).split("").join(".")},Ct={INIT:"@@redux/INIT"+Ir(),REPLACE:"@@redux/REPLACE"+Ir(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Ir()}};function Rs(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 Or(r,e,t){var n;if(typeof e=="function"&&typeof t=="function"||typeof t=="function"&&typeof arguments[3]=="function")throw new Error(V(0));if(typeof e=="function"&&typeof t>"u"&&(t=e,e=void 0),typeof t<"u"){if(typeof t!="function")throw new Error(V(1));return t(Or)(r,e)}if(typeof r!="function")throw new Error(V(2));var i=r,s=e,a=[],o=a,l=!1;function c(){o===a&&(o=a.slice())}function d(){if(l)throw new Error(V(3));return s}function f(g){if(typeof g!="function")throw new Error(V(4));if(l)throw new Error(V(5));var A=!0;return c(),o.push(g),function(){if(A){if(l)throw new Error(V(6));A=!1,c();var T=o.indexOf(g);o.splice(T,1),a=null}}}function p(g){if(!Rs(g))throw new Error(V(7));if(typeof g.type>"u")throw new Error(V(8));if(l)throw new Error(V(9));try{l=!0,s=i(s,g)}finally{l=!1}for(var A=a=o,E=0;E<A.length;E++){var T=A[E];T()}return g}function y(g){if(typeof g!="function")throw new Error(V(10));i=g,p({type:Ct.REPLACE})}function v(){var g,A=f;return g={subscribe:function(T){if(typeof T!="object"||T===null)throw new Error(V(11));function O(){T.next&&T.next(d())}O();var x=A(O);return{unsubscribe:x}}},g[Pi]=function(){return this},g}return p({type:Ct.INIT}),n={dispatch:p,subscribe:f,getState:d,replaceReducer:y},n[Pi]=v,n}function Ps(r){Object.keys(r).forEach(function(e){var t=r[e],n=t(void 0,{type:Ct.INIT});if(typeof n>"u")throw new Error(V(12));if(typeof t(void 0,{type:Ct.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(V(13))})}function Di(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{Ps(t)}catch(l){o=l}return function(c,d){if(c===void 0&&(c={}),o)throw o;if(0)var f;for(var p=!1,y={},v=0;v<s.length;v++){var g=s[v],A=t[g],E=c[g],T=A(E,d);if(typeof T>"u"){var O=d&&d.type;throw new Error(V(14))}y[g]=T,p=p||T!==E}return p=p||s.length!==Object.keys(c).length,p?y:c}}function ze(){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 Mi(){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(V(15))},a={getState:i.getState,dispatch:function(){return s.apply(void 0,arguments)}},o=e.map(function(l){return l(a)});return s=ze.apply(void 0,o)(i.dispatch),xr(xr({},i),{},{dispatch:s})}}}function Li(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 ki=Li();ki.withExtraArgument=Li;var Cr=ki;var Bi=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)}}(),Ds=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(c){return function(d){return l([c,d])}}function l(c){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,i&&(s=c[0]&2?i.return:c[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,c[1])).done)return s;switch(i=0,s&&(c=[c[0]&2,s.value]),c[0]){case 0:case 1:s=c;break;case 4:return t.label++,{value:c[1],done:!1};case 5:t.label++,i=c[1],c=[0];continue;case 7:c=t.ops.pop(),t.trys.pop();continue;default:if(s=t.trys,!(s=s.length>0&&s[s.length-1])&&(c[0]===6||c[0]===2)){t=0;continue}if(c[0]===3&&(!s||c[1]>s[0]&&c[1]<s[3])){t.label=c[1];break}if(c[0]===6&&t.label<s[1]){t.label=s[1],s=c;break}if(s&&t.label<s[2]){t.label=s[2],t.ops.push(c);break}s[2]&&t.ops.pop(),t.trys.pop();continue}c=e.call(r,t)}catch(d){c=[6,d],i=0}finally{n=s=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},We=function(r,e){for(var t=0,n=e.length,i=r.length;t<n;t++,i++)r[i]=e[t];return r},Ms=Object.defineProperty,Ls=Object.defineProperties,ks=Object.getOwnPropertyDescriptors,Ni=Object.getOwnPropertySymbols,Ns=Object.prototype.hasOwnProperty,Us=Object.prototype.propertyIsEnumerable,Ui=function(r,e,t){return e in r?Ms(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t},Ae=function(r,e){for(var t in e||(e={}))Ns.call(e,t)&&Ui(r,t,e[t]);if(Ni)for(var n=0,i=Ni(e);n<i.length;n++){var t=i[n];Us.call(e,t)&&Ui(r,t,e[t])}return r},_r=function(r,e){return Ls(r,ks(e))},Fs=function(r,e,t){return new Promise(function(n,i){var s=function(l){try{o(t.next(l))}catch(c){i(c)}},a=function(l){try{o(t.throw(l))}catch(c){i(c)}},o=function(l){return l.done?n(l.value):Promise.resolve(l.value).then(s,a)};o((t=t.apply(r,e)).next())})};var js=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?ze:ze.apply(null,arguments)},nc=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(r){return r}};function Bs(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}var Hs=function(r){Bi(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,We([void 0],t[0].concat(this)))):new(e.bind.apply(e,We([void 0],t.concat(this))))},e}(Array),Vs=function(r){Bi(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,We([void 0],t[0].concat(this)))):new(e.bind.apply(e,We([void 0],t.concat(this))))},e}(Array);function Dr(r){return se(r)?Ot(r,function(){}):r}function Ks(r){return typeof r=="boolean"}function qs(){return function(e){return $s(e)}}function $s(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=new Hs;if(t&&(Ks(t)?o.push(Cr):o.push(Cr.withExtraArgument(t.extraArgument))),0){if(i)var l;if(a)var c}return o}var Rr=!0;function Hi(r){var e=qs(),t=r||{},n=t.reducer,i=n===void 0?void 0:n,s=t.middleware,a=s===void 0?e():s,o=t.devTools,l=o===void 0?!0:o,c=t.preloadedState,d=c===void 0?void 0:c,f=t.enhancers,p=f===void 0?void 0:f,y;if(typeof i=="function")y=i;else if(Bs(i))y=Di(i);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var v=a;if(typeof v=="function"&&(v=v(e),!Rr&&!Array.isArray(v)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Rr&&v.some(function(x){return typeof x!="function"}))throw new Error("each middleware provided to configureStore must be a function");var g=Mi.apply(void 0,v),A=ze;l&&(A=js(Ae({trace:!Rr},typeof l=="object"&&l)));var E=new Vs(g),T=E;Array.isArray(p)?T=We([g],p):typeof p=="function"&&(T=p(E));var O=A.apply(void 0,T);return Or(y,d,O)}function Ee(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 Ae(Ae({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}function Vi(r){var e={},t=[],n,i={addCase:function(s,a){var o=typeof s=="string"?s:s.type;if(o in e)throw new Error("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 Gs(r){return typeof r=="function"}function zs(r,e,t,n){t===void 0&&(t=[]);var i=typeof e=="function"?Vi(e):[e,t,n],s=i[0],a=i[1],o=i[2],l;if(Gs(r))l=function(){return Dr(r())};else{var c=Dr(r);l=function(){return c}}function d(f,p){f===void 0&&(f=l());var y=We([s[p.type]],a.filter(function(v){var g=v.matcher;return g(p)}).map(function(v){var g=v.reducer;return g}));return y.filter(function(v){return!!v}).length===0&&(y=[o]),y.reduce(function(v,g){if(g)if(pe(v)){var A=v,E=g(A,p);return E===void 0?v:E}else{if(se(v))return Ot(v,function(T){return g(T,p)});var E=g(v,p);if(E===void 0){if(v===null)return v;throw Error("A case reducer on a non-draftable value must not return undefined")}return E}return v},f)}return d.getInitialState=l,d}function Ws(r,e){return r+"/"+e}function Ki(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:Dr(r.initialState),n=r.reducers||{},i=Object.keys(n),s={},a={},o={};i.forEach(function(d){var f=n[d],p=Ws(e,d),y,v;"reducer"in f?(y=f.reducer,v=f.prepare):y=f,s[d]=y,a[p]=y,o[d]=v?Ee(p,v):Ee(p)});function l(){var d=typeof r.extraReducers=="function"?Vi(r.extraReducers):[r.extraReducers],f=d[0],p=f===void 0?{}:f,y=d[1],v=y===void 0?[]:y,g=d[2],A=g===void 0?void 0:g,E=Ae(Ae({},p),a);return zs(t,function(T){for(var O in E)T.addCase(O,E[O]);for(var x=0,U=v;x<U.length;x++){var ne=U[x];T.addMatcher(ne.matcher,ne.reducer)}A&&T.addDefaultCase(A)})}var c;return{name:e,reducer:function(d,f){return c||(c=l()),c(d,f)},actions:o,caseReducers:s,getInitialState:function(){return c||(c=l()),c.getInitialState()}}}var Qs="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Ys=function(r){r===void 0&&(r=21);for(var e="",t=r;t--;)e+=Qs[Math.random()*64|0];return e},Xs=["name","message","stack","code"],Pr=function(){function r(e,t){this.payload=e,this.meta=t}return r}(),Fi=function(){function r(e,t){this.payload=e,this.meta=t}return r}(),Js=function(r){if(typeof r=="object"&&r!==null){for(var e={},t=0,n=Xs;t<n.length;t++){var i=n[t];typeof r[i]=="string"&&(e[i]=r[i])}return e}return{message:String(r)}},oc=function(){function r(e,t,n){var i=Ee(e+"/fulfilled",function(d,f,p,y){return{payload:d,meta:_r(Ae({},y||{}),{arg:p,requestId:f,requestStatus:"fulfilled"})}}),s=Ee(e+"/pending",function(d,f,p){return{payload:void 0,meta:_r(Ae({},p||{}),{arg:f,requestId:d,requestStatus:"pending"})}}),a=Ee(e+"/rejected",function(d,f,p,y,v){return{payload:y,error:(n&&n.serializeError||Js)(d||"Rejected"),meta:_r(Ae({},v||{}),{arg:p,requestId:f,rejectedWithValue:!!y,requestStatus:"rejected",aborted:d?.name==="AbortError",condition:d?.name==="ConditionError"})}}),o=!1,l=typeof AbortController<"u"?AbortController:function(){function d(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return d.prototype.abort=function(){},d}();function c(d){return function(f,p,y){var v=n?.idGenerator?n.idGenerator(d):Ys(),g=new l,A,E=!1;function T(x){A=x,g.abort()}var O=function(){return Fs(this,null,function(){var x,U,ne,we,q,xe,ke;return Ds(this,function(u){switch(u.label){case 0:return u.trys.push([0,4,,5]),we=(x=n?.condition)==null?void 0:x.call(n,d,{getState:p,extra:y}),ea(we)?[4,we]:[3,2];case 1:we=u.sent(),u.label=2;case 2:if(we===!1||g.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return E=!0,q=new Promise(function(h,S){return g.signal.addEventListener("abort",function(){return S({name:"AbortError",message:A||"Aborted"})})}),f(s(v,d,(U=n?.getPendingMeta)==null?void 0:U.call(n,{requestId:v,arg:d},{getState:p,extra:y}))),[4,Promise.race([q,Promise.resolve(t(d,{dispatch:f,getState:p,extra:y,requestId:v,signal:g.signal,abort:T,rejectWithValue:function(h,S){return new Pr(h,S)},fulfillWithValue:function(h,S){return new Fi(h,S)}})).then(function(h){if(h instanceof Pr)throw h;return h instanceof Fi?i(h.payload,v,d,h.meta):i(h,v,d)})])];case 3:return ne=u.sent(),[3,5];case 4:return xe=u.sent(),ne=xe instanceof Pr?a(null,v,d,xe.payload,xe.meta):a(xe,v,d),[3,5];case 5:return ke=n&&!n.dispatchConditionRejection&&a.match(ne)&&ne.meta.condition,ke||f(ne),[2,ne]}})})}();return Object.assign(O,{abort:T,requestId:v,arg:d,unwrap:function(){return O.then(Zs)}})}}return Object.assign(c,{pending:s,rejected:a,fulfilled:i,typePrefix:e})}return r.withTypes=function(){return r},r}();function Zs(r){if(r.meta&&r.meta.rejectedWithValue)throw r.payload;if(r.error)throw r.error;return r.payload}function ea(r){return r!==null&&typeof r=="object"&&typeof r.then=="function"}var qi="listener",$i="completed",Gi="cancelled",lc="task-"+Gi,cc="task-"+$i,uc=qi+"-"+Gi,dc=qi+"-"+$i;var Mr="listenerMiddleware";var hc=Ee(Mr+"/add"),fc=Ee(Mr+"/removeAll"),pc=Ee(Mr+"/remove");var ji,vc=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(r){return(ji||(ji=Promise.resolve())).then(r).catch(function(e){return setTimeout(function(){throw e},0)})},ta=function(r){return function(e){setTimeout(e,r)}},mc=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:ta(10);wi();var ra=gt(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)}}}),_t=class extends ra(Object){};window.ftReduxStores||(window.ftReduxStores={});var zi=class r extends _t{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(Tt(s))return s;if(i==null)return;let a=Ki({...i,reducers:(t=i.reducers)!==null&&t!==void 0?t:{}}),o=Hi({reducer:(l,c)=>c.type==="CLEAR_FT_REDUX_STORE"?a.getInitialState():typeof c.type=="string"&&c.type.startsWith("DEFAULT_VALUE_SETTER__")?{...l,...c.overwrites}:a.reducer(l,c)});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 bt;let i=s=>s!=null?JSON.parse(JSON.stringify(s)):s;this.actions=new Proxy(this.reduxSlice.actions,{get:(s,a,o)=>{let l=a,c=s[l];return c?(...d)=>{let f=c(...d.map(i));return this.reduxStore.dispatch(f),f}:d=>{this.setState({[l]:i(d)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var Rt=class{static format(e,t,n,i){return window.moment?window.moment(e).locale(t).format(this.getMomentDateFormat(n,i)):this.getIntlDateTime(e,t,n,i)}static getMomentDateFormat(e,t){return e?t?"lll":"ll":t?"L LT":"L"}static getIntlDateTime(e,t,n,i){let s=typeof e=="string"?new Date(e):e,a=new Intl.DateTimeFormat(t,{dateStyle:n?"medium":"short"}).format(s);if(!i)return a;let o=new Intl.DateTimeFormat(t,{timeStyle:"short"}).format(s);return`${a} ${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 Wi=b(C()),Pt=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},Vc=(0,Wi.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(m)}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=>Rt.format(o,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Pt([(0,Lr.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),Pt([(0,Lr.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),Pt([ur({store:m.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),Pt([ur({store:m.name})],e.prototype,"uiLocale",void 0),e});var Lt=b(C());var Dt=class extends K{constructor(){super(...arguments),this.CACHE_DURATION=3*60*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=m.getState().session;return!!e?.sessionAuthenticated}};var Mt=class extends K{constructor(){super(...arguments),this.CACHE_DURATION=3*60*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=m.getState().session;return!!e?.sessionAuthenticated}};var na="ft-user-assets",ia={setAssetCount:(r,e)=>{let{userAssetType:t,count:n}=e.payload.assetCount;r.assetCounts.allAsset[t]=n},clearAssetCount:r=>{Object.values(ee).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;Nr(r,t,[...kr(r,t),i]),Qi(r,t,1,n),Yi(r,i)},editAsset:(r,e)=>{let{assetType:t,asset:n}=e.payload;Nr(r,t,kr(r,t).map(i=>i.id===n.id?n:i)),Yi(r,n)},removeAsset:(r,e)=>{let{assetType:t,mapId:n,assetId:i}=e.payload;Nr(r,t,kr(r,t).filter(s=>s.id!==i)),Qi(r,t,-1,n)}},Xi={[ee.SEARCHES]:"savedSearches",[ee.BOOKMARKS]:"bookmarks",[ee.BOOKS]:void 0,[ee.COLLECTIONS]:void 0},kr=(r,e)=>{var t;let n=Xi[e];return n?(t=r[n])!==null&&t!==void 0?t:[]:[]},Nr=(r,e,t)=>{let n=Xi[e];n&&(r[n]=t)},Qi=(r,e,t,n)=>{let i=r.assetCounts.allAsset[e];if(i!==void 0&&(r.assetCounts.allAsset[e]=Math.max(0,i+t),e===ee.BOOKMARKS&&n)){let s=r.assetCounts.bookmarkByMap[n];r.assetCounts.bookmarkByMap[n]=Math.max(0,s+t)}},Yi=(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)},Y=Lt.FtReduxStore.get({name:na,reducers:ia,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(ee).map(r=>[r,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Ur=class{constructor(e=new Dt,t=new Mt){this.assetCountsService=e,this.assetLabelsService=t,this.currentSession=m.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new ft,this.savedSearchesService=new vt,m.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:t}=m.getState();(0,Lt.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(),Y.actions.clearAssetCount(),Y.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Y.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Y.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Y.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();Y.actions.assetLabels(e)}async loadAssetCount(e){let t=await this.assetCountsService.getUserAssetCount(e);t&&Y.actions.setAssetCount({assetCount:t})}async loadBookmarkByMapId(e){let t=await this.assetCountsService.getUserBookmarkCountByMap(e);t&&Y.actions.setBookmarkCountByMap({count:t.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let t=Object.keys(Y.getState().assetCounts.bookmarkByMap).length!==0;e===ee.BOOKMARKS&&t&&Y.actions.clearBookmarkCountByMap(),Y.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;Y.actions.bookmarks(t)}}},Fr=new Ur;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Fr);(0,Ji.customElement)("ft-app-context")(R);var kt=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 fe((t=(e=m.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))}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),l=o?.pageByTocId[e],c=o?.nodeByTocId[e],d=c?.prettyUrl;return{mapId:this.mapId,tocId:e,topicTitle:(s=c?.title)!==null&&s!==void 0?s:"",untranslatedTopicTitle:c?.untranslatedTitle,page:t&&l&&l.number!==t?t:void 0,prettyUrl:d?.replace(/^r\//,""),prettyUrlDuplicated:(a=o?.duplicatedPrettyUrls.has(d??""))!==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=m.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 he.FEEDBACK:return fe(t??[],_.FEEDBACK_USER);case he.RATING:return fe(t??[],_.RATING_USER);case he.PRINT:return fe(t??[],_.PRINT_USER);case he.BOOKMARK:return!!t?.sessionAuthenticated;case he.COLLECTIONS:return fe(t??[],_.COLLECTION_USER);case he.PERSONAL_BOOKS:return fe(t??[],_.PERSONAL_BOOK_USER)&&!(!((n=this.getMapNow())===null||n===void 0)&&n.pbkConfidential);default:return!1}}makeAbsolute(e){return this.api.makeAbsolute(e)}};var Nt=class r extends kt{static async build(e){return new r(new lt,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 Ut=class r{static build(e,t){return new r(hn(e.trim()||"context"),t??Nt.build)}loaded(){return(0,ae.waitUntil)(()=>this._loaded)}constructor(e,t,n){this.store=e,this.clusteringHelperProvider=n,this.metadataForSwitchToRelatives=new Set,this._loaded=!1,this.loadDebouncer=new ae.Debouncer(10),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,ae.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:(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=l=>{throw e&&this.setTranslationError(!0),l};await Promise.all([this.loadConfiguration(),(t=this.service)===null||t===void 0?void 0:t.getMap(e).then(l=>this.store.actions.map(l)).catch(o),(n=this.service)===null||n===void 0?void 0:n.getToc(e).then(l=>this.store.actions.toc(l)).catch(o),(i=this.service)===null||i===void 0?void 0:i.getPagesToc(e).then(l=>this.store.actions.pagesToc(l)).catch(o),(s=this.service)===null||s===void 0?void 0:s.getPaginationConfiguration().then(l=>this.store.actions.paginationConfiguration(l)).catch(o),(a=this.service)===null||a===void 0?void 0:a.getTranslationError(e).then(l=>this.setTranslationError(l))]),this.metadataForSwitchToRelatives.size>0&&this.fetchRelatives(),this._loaded=!0,e&&this.setTranslationLoading(!1)}catch(o){this.errorHandler&&!(o instanceof ae.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()}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);n!==void 0&&n.length>0?(t=this.service)===null||t===void 0||t.getRelativesForDocument(this.store.getState().configuration.relativePivotMetadata,n).then(i=>{let s=i.results.flatMap(a=>a.entries);this.store.actions.relatives(s),this.updateClusteringHelper()}):this.updateClusteringHelper()}updateClusteringHelper(){this.clusteringHelper=this.createClusteringHelper(),this.clusteringHelper&&this.store.dispatchEvent(new Event(Oe.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=m.getState().metadataConfiguration)===null||e===void 0?void 0:e.descriptors)!==null&&t!==void 0?t:[];return new ae.ClusteringHelper(n,i,this.metadataForSwitchToRelatives,s)}}async navigateToRelativeTopicIfFound(e){var t,n,i;await this.loaded();let s=await(0,ae.waitFor)(()=>{var c;return(c=this.store.getState().configuration)===null||c===void 0?void 0:c.relativeTopicPivotMetadata}),a=this.store.getState().mapId,l=await(await this.awaitService()).getRelativesForTopicInMap(a,s,[e]);if(!((i=(n=(t=l?.results)===null||t===void 0?void 0:t[0])===null||n===void 0?void 0:n.entries)===null||i===void 0)&&i[0]){let c=l.results[0].entries[0].topic.tocId;return await this.navigateToTopic(c),!0}else return await this.navigateToTopic("root"),!1}setSearchInDocumentQuery(e){this.store.actions.searchInDocumentQuery(e)}async setTranslationDestinationLanguage(e){this.store.actions.setTranslationDestinationLanguage(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.setLinkPreviewDialogId(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?(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(Oe.mapAttachmentsUpdate))}};var Zi=b($());var es=Zi.css`
|
|
85
|
-
`;var Ft=class extends CustomEvent{constructor(e,t){super("ft-reader-map-loaded",{detail:{map:e,toc:t}})}},jt=class extends CustomEvent{constructor(e,t){super("ft-reader-visible-topics-change",{detail:{visibleTopics:t}})}},Bt=class extends CustomEvent{constructor(e){super("ft-reader-navigation-done",{detail:e})}},Ht=class extends CustomEvent{constructor(e){super("ft-reader-load-error",{detail:e})}},Vt=class extends Event{constructor(){super("ft-reader-map-not-found")}},Kt=class extends Event{constructor(){super("ft-reader-map-unauthorized")}},qt=class extends Event{constructor(){super("ft-reader-map-forbidden")}},$t=class extends Event{constructor(){super("ft-reader-topic-relative-not-found",{bubbles:!0,composed:!0})}};var Gt=class{constructor(e){this.stateManager=e}searchInDocument(e){this.stateManager.setSearchInDocumentQuery(e??"")}};var W=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},sa=r=>e=>+(e??"NaN")>0?+e:r,N=class extends z.FtLitElementRedux{constructor(){super(),this.visibleTopics=[],this.updateConfiguration=()=>{this.stateManager.reloadConfiguration()},this.scrollToTargetDebouncer=new z.Debouncer(5),this.navigationDebouncer=new z.Debouncer(10),this.mapLoadedEventDebouncer=new z.Debouncer(50),this.addStore(m)}render(){return nt.html`
|
|
86
|
-
${this.importStyleIfNeeded()}
|
|
87
|
-
<slot @register-ft-reader-component=${this.registerComponent}></slot>
|
|
88
|
-
`}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:"")?nt.nothing:nt.html`
|
|
89
|
-
<style>
|
|
90
|
-
@import "${n}"
|
|
91
|
-
</style>
|
|
92
|
-
`}get stateManager(){return this._stateManager==null&&(this._stateManager=Ut.build(this.id||(""+Math.round(Math.random()*999e3)).padStart(6,"0"),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 Gt(this.stateManager)}),m.addEventListener(ce.eventName,this.updateConfiguration)}disconnectedCallback(){super.disconnectedCallback(),m.addEventListener(ce.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 Bt(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 jt(this.map,s))})}clear(){this.stateManager.clear()}async reload(){await this.stateManager.reload()}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 $t),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 Kt):t.status===403?this.dispatchEvent(new qt):t.status===404?this.dispatchEvent(new Vt):this.dispatchEvent(new Ht(e))}reloadBookmarks(){Fr.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 Ft(this.map,this.toc))})}};N.styles=es;W([(0,z.redux)({store:m.name})],N.prototype,"baseUrl",void 0);W([(0,z.redux)({store:m.name})],N.prototype,"session",void 0);W([(0,Te.property)()],N.prototype,"mapId",void 0);W([(0,Te.property)()],N.prototype,"tocId",void 0);W([(0,Te.property)()],N.prototype,"section",void 0);W([(0,Te.property)()],N.prototype,"topicPivot",void 0);W([(0,Te.property)()],N.prototype,"searchInDocumentQuery",void 0);W([(0,Te.property)({type:Number,converter:{fromAttribute:sa()}})],N.prototype,"page",void 0);W([(0,z.redux)({store:"reader"})],N.prototype,"map",void 0);W([(0,z.redux)({store:"reader"})],N.prototype,"toc",void 0);W([(0,z.redux)({store:"reader"})],N.prototype,"visibleTopics",void 0);W([(0,z.redux)({store:"reader"})],N.prototype,"currentPage",void 0);W([(0,z.redux)({store:"reader"})],N.prototype,"scrollTarget",void 0);W([(0,Te.property)({attribute:!1})],N.prototype,"readerServiceProvider",void 0);(0,ts.customElement)("ft-reader-context")(N);var le=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},H=class extends ve{constructor(){super(...arguments),this.renderTopic=()=>zt.html`
|
|
221
|
+
`:wt.nothing}updated(e){if(super.updated(e),e.has("watermark")&&this.watermark){let r=this.svg.getBBox({stroke:!0});this.svg.setAttribute("viewBox",r.x+" "+r.y+" "+r.width+" "+r.height)}e.has("heightReference")&&this.heightReference&&(this.resizeObserver.disconnect(),this.resizeObserver.observe(this.heightReference))}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver.disconnect()}};he.styles=[ri,Nr];kr([(0,Ye.query)(".ft-watermark")],he.prototype,"svg",void 0);kr([(0,Ye.property)({attribute:!1})],he.prototype,"watermark",void 0);kr([(0,Ye.property)({attribute:!1})],he.prototype,"heightReference",void 0);kr([(0,Ye.state)()],he.prototype,"height",void 0);(0,es.customElement)("ft-content-watermark")(he);var ge=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},q=class extends Je{constructor(){super(...arguments),this.renderTopic=()=>Dr.html`
|
|
93
222
|
<ft-reader-topic-title></ft-reader-topic-title>
|
|
94
223
|
<ft-reader-topic-content></ft-reader-topic-content>
|
|
95
|
-
`,this.disableContextInteractions=!1,this.headingLevelsShift=0,this.renderBeforeFirst=5,this.renderAfterLast=10,this.renderItem=(e,
|
|
224
|
+
`,this.disableContextInteractions=!1,this.headingLevelsShift=0,this.renderBeforeFirst=5,this.renderAfterLast=10,this.renderItem=(e,r)=>this.renderTopicInContext(e,r),this.getItemKey=e=>this.mapId+e,this.renderedTopicsDebouncer=new ne.Debouncer(50),this.visibleTopicsDebouncer=new ne.Debouncer(50)}render(){var e,r;let n=((e=this.currentPage)===null||e===void 0?void 0:e.topics)||[];return Dr.html`
|
|
96
225
|
<ft-infinite-scroll class="ft-reader-content"
|
|
97
|
-
.items=${
|
|
226
|
+
.items=${n}
|
|
98
227
|
.renderItem=${this.renderItem}
|
|
99
228
|
.getItemKey=${this.getItemKey}
|
|
100
229
|
.scrollToItem=${this.getScrollTarget()}
|
|
101
|
-
?ensureScrollToTarget=${((
|
|
230
|
+
?ensureScrollToTarget=${((r=this.scrollTarget)===null||r===void 0?void 0:r.section)==null&&!window.location.hash}
|
|
102
231
|
.renderBeforeFirst=${this.renderBeforeFirst}
|
|
103
232
|
.renderAfterLast=${this.renderAfterLast}
|
|
104
233
|
exportpartsPrefix="scroller"
|
|
@@ -106,17 +235,17 @@
|
|
|
106
235
|
@visible-items-change=${this.visibleTopicChange}
|
|
107
236
|
@scrolled-to-target=${this.onScrollDone}>
|
|
108
237
|
</ft-infinite-scroll>
|
|
109
|
-
<ft-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
`}renderTopicInContext(e,
|
|
238
|
+
<ft-content-watermark part="watermark"
|
|
239
|
+
.watermark=${this.watermark}
|
|
240
|
+
.exportpartsPrefixes=${["watermark"]}
|
|
241
|
+
.heightReference=${this.offsetParent}></ft-content-watermark>
|
|
242
|
+
`}renderTopicInContext(e,r){return Dr.html`
|
|
114
243
|
<ft-reader-topic-context tocId="${e}"
|
|
115
244
|
?disableContextInteractions=${this.disableContextInteractions}
|
|
116
245
|
headingLevelsShift="${this.headingLevelsShift}">
|
|
117
|
-
${this.renderTopic(e,
|
|
246
|
+
${this.renderTopic(e,r)}
|
|
118
247
|
</ft-reader-topic-context>
|
|
119
|
-
`}getScrollTarget(){var e,
|
|
248
|
+
`}getScrollTarget(){var e,r,n;if(this.disableContextInteractions)return null;let a=(e=this.container)===null||e===void 0?void 0:e.isRendered((r=this.scrollTarget)===null||r===void 0?void 0:r.tocId);return!((n=this.scrollTarget)===null||n===void 0)&&n.tocId&&(!a||this.scrollTarget.section==null)?this.scrollTarget.tocId:null}renderedTopicChange(e){this.disableContextInteractions||this.renderedTopicsDebouncer.run(()=>{var r;return(r=this.stateManager)===null||r===void 0?void 0:r.setRenderedTopics(e.detail.items)})}visibleTopicChange(e){var r;this.disableContextInteractions||this.visibleTopicsDebouncer.run(()=>{var n;return(n=this.stateManager)===null||n===void 0?void 0:n.setVisibleTopics(e.detail.items)}),(r=this.stateManager)===null||r===void 0||r.store.dispatchEvent(new Event(Fe.visibleTopicChange))}onScrollDone(){var e,r;!this.disableContextInteractions&&!(!((e=this.scrollTarget)===null||e===void 0)&&e.section)&&((r=this.stateManager)===null||r===void 0||r.scrollDone())}};q.elementDefinitions={"ft-infinite-scroll":U,"ft-content-watermark":he};q.styles=rn;ge([(0,Bt.property)()],q.prototype,"renderTopic",void 0);ge([(0,Bt.property)({type:Boolean})],q.prototype,"disableContextInteractions",void 0);ge([(0,ne.numberProperty)()],q.prototype,"headingLevelsShift",void 0);ge([(0,ne.redux)()],q.prototype,"currentPage",void 0);ge([(0,ne.redux)()],q.prototype,"scrollTarget",void 0);ge([(0,ne.redux)()],q.prototype,"visibleTopics",void 0);ge([(0,ne.redux)({selector:o=>{var e,r;return(r=(e=o.configuration)===null||e===void 0?void 0:e.loadBeforeFirstVisibleTopic)!==null&&r!==void 0?r:5}})],q.prototype,"renderBeforeFirst",void 0);ge([(0,ne.redux)({selector:o=>{var e,r;return(r=(e=o.configuration)===null||e===void 0?void 0:e.loadAfterLastVisibleTopic)!==null&&r!==void 0?r:5}})],q.prototype,"renderAfterLast",void 0);ge([(0,ne.redux)()],q.prototype,"mapId",void 0);ge([(0,Bt.query)(".ft-reader-content")],q.prototype,"container",void 0);ge([(0,ne.redux)({selector:o=>{var e;return(e=o.map)===null||e===void 0?void 0:e.watermark}})],q.prototype,"watermark",void 0);(0,ts.customElement)("ft-reader-content")(q);})();
|
|
120
249
|
/*! Bundled license information:
|
|
121
250
|
|
|
122
251
|
@lit/reactive-element/css-tag.js:
|
|
@@ -125,4 +254,18 @@
|
|
|
125
254
|
* Copyright 2019 Google LLC
|
|
126
255
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
127
256
|
*)
|
|
257
|
+
|
|
258
|
+
lit-html/lit-html.js:
|
|
259
|
+
(**
|
|
260
|
+
* @license
|
|
261
|
+
* Copyright 2017 Google LLC
|
|
262
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
263
|
+
*)
|
|
264
|
+
|
|
265
|
+
lit-html/static.js:
|
|
266
|
+
(**
|
|
267
|
+
* @license
|
|
268
|
+
* Copyright 2020 Google LLC
|
|
269
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
270
|
+
*)
|
|
128
271
|
*/
|