@fluid-topics/ft-reader-saved-bookmarks 1.3.54 → 1.3.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";(()=>{var Dc=Object.create;var Zn=Object.defineProperty;var Mc=Object.getOwnPropertyDescriptor;var Bc=Object.getOwnPropertyNames;var Uc=Object.getPrototypeOf,Hc=Object.prototype.hasOwnProperty;var Ye=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var Wc=(e,r,o,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of Bc(r))!Hc.call(e,a)&&a!==o&&Zn(e,a,{get:()=>r[a],enumerable:!(n=Mc(r,a))||n.enumerable});return e};var C=(e,r,o)=>(o=e!=null?Dc(Uc(e)):{},Wc(r||!e||!e.__esModule?Zn(o,"default",{value:e,enumerable:!0}):o,e));var k=Ye((fd,qn)=>{qn.exports=ftGlobals.wcUtils});var $=Ye((hd,Yn)=>{Yn.exports=ftGlobals.lit});var Q=Ye((yd,Xn)=>{Xn.exports=ftGlobals.litDecorators});var na=Ye((vd,oa)=>{oa.exports=ftGlobals.litRepeat});var ho=Ye((Sd,aa)=>{aa.exports=ftGlobals.litClassMap});var ja=Ye((He,$a)=>{var Sr=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,Or=function(){function e(){this.fetch=!1,this.DOMException=Sr.DOMException}return e.prototype=Sr,new e}();(function(e){var r=function(o){var n=typeof e<"u"&&e||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 i(h){return h&&DataView.prototype.isPrototypeOf(h)}if(a.arrayBuffer)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],l=ArrayBuffer.isView||function(h){return h&&c.indexOf(Object.prototype.toString.call(h))>-1};function u(h){if(typeof h!="string"&&(h=String(h)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(h)||h==="")throw new TypeError('Invalid character in header field name: "'+h+'"');return h.toLowerCase()}function p(h){return typeof h!="string"&&(h=String(h)),h}function y(h){var g={next:function(){var N=h.shift();return{done:N===void 0,value:N}}};return a.iterable&&(g[Symbol.iterator]=function(){return g}),g}function f(h){this.map={},h instanceof f?h.forEach(function(g,N){this.append(N,g)},this):Array.isArray(h)?h.forEach(function(g){if(g.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+g.length);this.append(g[0],g[1])},this):h&&Object.getOwnPropertyNames(h).forEach(function(g){this.append(g,h[g])},this)}f.prototype.append=function(h,g){h=u(h),g=p(g);var N=this.map[h];this.map[h]=N?N+", "+g:g},f.prototype.delete=function(h){delete this.map[u(h)]},f.prototype.get=function(h){return h=u(h),this.has(h)?this.map[h]:null},f.prototype.has=function(h){return this.map.hasOwnProperty(u(h))},f.prototype.set=function(h,g){this.map[u(h)]=p(g)},f.prototype.forEach=function(h,g){for(var N in this.map)this.map.hasOwnProperty(N)&&h.call(g,this.map[N],N,this)},f.prototype.keys=function(){var h=[];return this.forEach(function(g,N){h.push(N)}),y(h)},f.prototype.values=function(){var h=[];return this.forEach(function(g){h.push(g)}),y(h)},f.prototype.entries=function(){var h=[];return this.forEach(function(g,N){h.push([N,g])}),y(h)},a.iterable&&(f.prototype[Symbol.iterator]=f.prototype.entries);function m(h){if(!h._noBody){if(h.bodyUsed)return Promise.reject(new TypeError("Already read"));h.bodyUsed=!0}}function x(h){return new Promise(function(g,N){h.onload=function(){g(h.result)},h.onerror=function(){N(h.error)}})}function b(h){var g=new FileReader,N=x(g);return g.readAsArrayBuffer(h),N}function v(h){var g=new FileReader,N=x(g),D=/charset=([A-Za-z0-9_-]+)/.exec(h.type),U=D?D[1]:"utf-8";return g.readAsText(h,U),N}function A(h){for(var g=new Uint8Array(h),N=new Array(g.length),D=0;D<g.length;D++)N[D]=String.fromCharCode(g[D]);return N.join("")}function E(h){if(h.slice)return h.slice(0);var g=new Uint8Array(h.byteLength);return g.set(new Uint8Array(h)),g.buffer}function w(){return this.bodyUsed=!1,this._initBody=function(h){this.bodyUsed=this.bodyUsed,this._bodyInit=h,h?typeof h=="string"?this._bodyText=h:a.blob&&Blob.prototype.isPrototypeOf(h)?this._bodyBlob=h:a.formData&&FormData.prototype.isPrototypeOf(h)?this._bodyFormData=h:a.searchParams&&URLSearchParams.prototype.isPrototypeOf(h)?this._bodyText=h.toString():a.arrayBuffer&&a.blob&&i(h)?(this._bodyArrayBuffer=E(h.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(h)||l(h))?this._bodyArrayBuffer=E(h):this._bodyText=h=Object.prototype.toString.call(h):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof h=="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(h)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},a.blob&&(this.blob=function(){var h=m(this);if(h)return h;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 h=m(this);return h||(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 h=m(this);if(h)return h;if(this._bodyBlob)return v(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(A(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(ee)}),this.json=function(){return this.text().then(JSON.parse)},this}var L=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function I(h){var g=h.toUpperCase();return L.indexOf(g)>-1?g:h}function _(h,g){if(!(this instanceof _))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');g=g||{};var N=g.body;if(h instanceof _){if(h.bodyUsed)throw new TypeError("Already read");this.url=h.url,this.credentials=h.credentials,g.headers||(this.headers=new f(h.headers)),this.method=h.method,this.mode=h.mode,this.signal=h.signal,!N&&h._bodyInit!=null&&(N=h._bodyInit,h.bodyUsed=!0)}else this.url=String(h);if(this.credentials=g.credentials||this.credentials||"same-origin",(g.headers||!this.headers)&&(this.headers=new f(g.headers)),this.method=I(g.method||this.method||"GET"),this.mode=g.mode||this.mode||null,this.signal=g.signal||this.signal||function(){if("AbortController"in n){var P=new AbortController;return P.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&N)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(N),(this.method==="GET"||this.method==="HEAD")&&(g.cache==="no-store"||g.cache==="no-cache")){var D=/([?&])_=[^&]*/;if(D.test(this.url))this.url=this.url.replace(D,"$1_="+new Date().getTime());else{var U=/\?/;this.url+=(U.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}_.prototype.clone=function(){return new _(this,{body:this._bodyInit})};function ee(h){var g=new FormData;return h.trim().split("&").forEach(function(N){if(N){var D=N.split("="),U=D.shift().replace(/\+/g," "),P=D.join("=").replace(/\+/g," ");g.append(decodeURIComponent(U),decodeURIComponent(P))}}),g}function Oe(h){var g=new f,N=h.replace(/\r?\n[\t ]+/g," ");return N.split("\r").map(function(D){return D.indexOf(`
|
|
2
|
-
`)===0?D.substr(1,D.length):D}).forEach(function(D){var U=D.split(":"),P=U.shift().trim();if(P){var hr=U.join(":").trim();try{g.append(P,hr)}catch(uo){console.warn("Response "+uo.message)}}}),g}w.call(_.prototype);function J(h,g){if(!(this instanceof J))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(g||(g={}),this.type="default",this.status=g.status===void 0?200:g.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=g.statusText===void 0?"":""+g.statusText,this.headers=new f(g.headers),this.url=g.url||"",this._initBody(h)}w.call(J.prototype),J.prototype.clone=function(){return new J(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},J.error=function(){var h=new J(null,{status:200,statusText:""});return h.ok=!1,h.status=0,h.type="error",h};var Ce=[301,302,303,307,308];J.redirect=function(h,g){if(Ce.indexOf(g)===-1)throw new RangeError("Invalid status code");return new J(null,{status:g,headers:{location:h}})},o.DOMException=n.DOMException;try{new o.DOMException}catch{o.DOMException=function(g,N){this.message=g,this.name=N;var D=Error(g);this.stack=D.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function K(h,g){return new Promise(function(N,D){var U=new _(h,g);if(U.signal&&U.signal.aborted)return D(new o.DOMException("Aborted","AbortError"));var P=new XMLHttpRequest;function hr(){P.abort()}P.onload=function(){var V={statusText:P.statusText,headers:Oe(P.getAllResponseHeaders()||"")};U.url.indexOf("file://")===0&&(P.status<200||P.status>599)?V.status=200:V.status=P.status,V.url="responseURL"in P?P.responseURL:V.headers.get("X-Request-URL");var qe="response"in P?P.response:P.responseText;setTimeout(function(){N(new J(qe,V))},0)},P.onerror=function(){setTimeout(function(){D(new TypeError("Network request failed"))},0)},P.ontimeout=function(){setTimeout(function(){D(new TypeError("Network request timed out"))},0)},P.onabort=function(){setTimeout(function(){D(new o.DOMException("Aborted","AbortError"))},0)};function uo(V){try{return V===""&&n.location.href?n.location.href:V}catch{return V}}if(P.open(U.method,uo(U.url),!0),U.credentials==="include"?P.withCredentials=!0:U.credentials==="omit"&&(P.withCredentials=!1),"responseType"in P&&(a.blob?P.responseType="blob":a.arrayBuffer&&(P.responseType="arraybuffer")),g&&typeof g.headers=="object"&&!(g.headers instanceof f||n.Headers&&g.headers instanceof n.Headers)){var Vn=[];Object.getOwnPropertyNames(g.headers).forEach(function(V){Vn.push(u(V)),P.setRequestHeader(V,p(g.headers[V]))}),U.headers.forEach(function(V,qe){Vn.indexOf(qe)===-1&&P.setRequestHeader(qe,V)})}else U.headers.forEach(function(V,qe){P.setRequestHeader(qe,V)});U.signal&&(U.signal.addEventListener("abort",hr),P.onreadystatechange=function(){P.readyState===4&&U.signal.removeEventListener("abort",hr)}),P.send(typeof U._bodyInit>"u"?null:U._bodyInit)})}return K.polyfill=!0,n.fetch||(n.fetch=K,n.Headers=f,n.Request=_,n.Response=J),o.Headers=f,o.Request=_,o.Response=J,o.fetch=K,o}({})})(Or);Or.fetch.ponyfill=!0;delete Or.fetch.polyfill;var Tt=Sr.fetch?Sr:Or;He=Tt.fetch;He.default=Tt.fetch;He.fetch=Tt.fetch;He.Headers=Tt.Headers;He.Request=Tt.Request;He.Response=Tt.Response;$a.exports=He});var
|
|
2
|
+
`)===0?D.substr(1,D.length):D}).forEach(function(D){var U=D.split(":"),P=U.shift().trim();if(P){var hr=U.join(":").trim();try{g.append(P,hr)}catch(uo){console.warn("Response "+uo.message)}}}),g}w.call(_.prototype);function J(h,g){if(!(this instanceof J))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(g||(g={}),this.type="default",this.status=g.status===void 0?200:g.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=g.statusText===void 0?"":""+g.statusText,this.headers=new f(g.headers),this.url=g.url||"",this._initBody(h)}w.call(J.prototype),J.prototype.clone=function(){return new J(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},J.error=function(){var h=new J(null,{status:200,statusText:""});return h.ok=!1,h.status=0,h.type="error",h};var Ce=[301,302,303,307,308];J.redirect=function(h,g){if(Ce.indexOf(g)===-1)throw new RangeError("Invalid status code");return new J(null,{status:g,headers:{location:h}})},o.DOMException=n.DOMException;try{new o.DOMException}catch{o.DOMException=function(g,N){this.message=g,this.name=N;var D=Error(g);this.stack=D.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function K(h,g){return new Promise(function(N,D){var U=new _(h,g);if(U.signal&&U.signal.aborted)return D(new o.DOMException("Aborted","AbortError"));var P=new XMLHttpRequest;function hr(){P.abort()}P.onload=function(){var V={statusText:P.statusText,headers:Oe(P.getAllResponseHeaders()||"")};U.url.indexOf("file://")===0&&(P.status<200||P.status>599)?V.status=200:V.status=P.status,V.url="responseURL"in P?P.responseURL:V.headers.get("X-Request-URL");var qe="response"in P?P.response:P.responseText;setTimeout(function(){N(new J(qe,V))},0)},P.onerror=function(){setTimeout(function(){D(new TypeError("Network request failed"))},0)},P.ontimeout=function(){setTimeout(function(){D(new TypeError("Network request timed out"))},0)},P.onabort=function(){setTimeout(function(){D(new o.DOMException("Aborted","AbortError"))},0)};function uo(V){try{return V===""&&n.location.href?n.location.href:V}catch{return V}}if(P.open(U.method,uo(U.url),!0),U.credentials==="include"?P.withCredentials=!0:U.credentials==="omit"&&(P.withCredentials=!1),"responseType"in P&&(a.blob?P.responseType="blob":a.arrayBuffer&&(P.responseType="arraybuffer")),g&&typeof g.headers=="object"&&!(g.headers instanceof f||n.Headers&&g.headers instanceof n.Headers)){var Vn=[];Object.getOwnPropertyNames(g.headers).forEach(function(V){Vn.push(u(V)),P.setRequestHeader(V,p(g.headers[V]))}),U.headers.forEach(function(V,qe){Vn.indexOf(qe)===-1&&P.setRequestHeader(qe,V)})}else U.headers.forEach(function(V,qe){P.setRequestHeader(qe,V)});U.signal&&(U.signal.addEventListener("abort",hr),P.onreadystatechange=function(){P.readyState===4&&U.signal.removeEventListener("abort",hr)}),P.send(typeof U._bodyInit>"u"?null:U._bodyInit)})}return K.polyfill=!0,n.fetch||(n.fetch=K,n.Headers=f,n.Request=_,n.Response=J),o.Headers=f,o.Request=_,o.Response=J,o.fetch=K,o}({})})(Or);Or.fetch.ponyfill=!0;delete Or.fetch.polyfill;var Tt=Sr.fetch?Sr:Or;He=Tt.fetch;He.default=Tt.fetch;He.fetch=Tt.fetch;He.Headers=Tt.Headers;He.Request=Tt.Request;He.Response=Tt.Response;$a.exports=He});var Hi=Ye((zm,Ui)=>{Ui.exports=ftGlobals.litUnsafeHTML});var kc=C(k());var co=C($()),Ic=C(Q()),Kt=C(k());var Jn=C($()),te=C(k()),Re={containerGap:te.FtCssVariableFactory.create("--ft-reader-saved-bookmarks-container-gap","","SIZE","16px"),containerPadding:te.FtCssVariableFactory.create("--ft-reader-saved-bookmarks-container-padding","","SIZE","16px"),itemPadding:te.FtCssVariableFactory.create("--ft-reader-saved-bookmarks-item-padding","","SIZE","12px"),itemBorderWidth:te.FtCssVariableFactory.create("--ft-reader-saved-bookmarks-item-border-width","","SIZE","1px"),itemBorderColor:te.FtCssVariableFactory.extend("--ft-reader-saved-bookmarks-item-border-color","",te.designSystemVariables.colorPrimary),itemBorderRadius:te.FtCssVariableFactory.extend("--ft-reader-saved-bookmarks-item-border-radius","",te.designSystemVariables.borderRadiusS),itemBackgroundColor:te.FtCssVariableFactory.extend("--ft-reader-saved-bookmarks-item-background-color","",te.designSystemVariables.colorSurface),itemLinkColor:te.FtCssVariableFactory.extend("--ft-reader-saved-bookmarks-item-background-color","",te.designSystemVariables.colorOnSurface)},Qn=Jn.css`
|
|
3
3
|
[part="container"] {
|
|
4
4
|
display: flex;
|
|
5
5
|
flex-direction: column;
|
|
@@ -170,7 +170,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:t.extend("--ftds-con
|
|
|
170
170
|
</${ht(this.element)}>
|
|
171
171
|
`:yt`
|
|
172
172
|
<slot part="text" class="ftds-typography ftds-typography--${this.variant}"></slot>
|
|
173
|
-
`}};tt.styles=[...Fa];za([(0,Xo.property)()],tt.prototype,"element",void 0);za([(0,Xo.property)()],tt.prototype,"variant",void 0);(0,Jo.customElement)("ft-typography")(ye);(0,Jo.customElement)("ftds-typography")(tt);var Xc=C(ja(),1);var Ka;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(Ka||(Ka={}));var Va;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(Va||(Va={}));var Za;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(Za||(Za={}));var qa;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(qa||(qa={}));var Ya;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(Ya||(Ya={}));var Xa;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})(Xa||(Xa={}));var Ja;(function(e){e.BOOKMARK__CREATE="BOOKMARK__CREATE",e.BOOKMARK__DELETE="BOOKMARK__DELETE",e.CASE_DEFLECTION__START="CASE_DEFLECTION__START",e.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",e.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",e.CHATBOT__RATE="CHATBOT__RATE",e.COLLECTION__CREATE="COLLECTION__CREATE",e.COLLECTION__UPDATE="COLLECTION__UPDATE",e.COLLECTION__DELETE="COLLECTION__DELETE",e.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",e.DOCUMENT__AI_TRANSLATE="DOCUMENT__AI_TRANSLATE",e.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",e.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",e.DOCUMENT__PRINT="DOCUMENT__PRINT",e.DOCUMENT__PROCESS="DOCUMENT__PROCESS",e.DOCUMENT__RATE="DOCUMENT__RATE",e.DOCUMENT__SEARCH="DOCUMENT__SEARCH",e.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",e.DOCUMENT__UNRATE="DOCUMENT__UNRATE",e.FEEDBACK__SEND="FEEDBACK__SEND",e.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",e.AI__RATE="AI__RATE",e.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",e.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",e.KHUB__PROCESS="KHUB__PROCESS",e.KHUB__SEARCH="KHUB__SEARCH",e.LABELS__DOWNLOAD="LABELS__DOWNLOAD",e.LINK__SHARE="LINK__SHARE",e.PAGE__DISPLAY="PAGE__DISPLAY",e.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",e.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",e.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",e.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",e.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",e.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",e.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",e.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",e.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",e.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",e.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",e.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",e.TOPIC__DISPLAY="TOPIC__DISPLAY",e.TOPIC__RATE="TOPIC__RATE",e.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",e.TOPIC__UNRATE="TOPIC__UNRATE",e.USER__LOGIN="USER__LOGIN",e.USER__LOGOUT="USER__LOGOUT",e.HEARTBEAT="HEARTBEAT"})(Ja||(Ja={}));var Qa;(function(e){e.THIRD_PARTY="THIRD_PARTY",e.OFF_THE_GRID="OFF_THE_GRID",e.CONTENT_PACKAGER="CONTENT_PACKAGER",e.PAGES="PAGES",e.DESIGNED_READER="DESIGNED_READER"})(Qa||(Qa={}));var ei;(function(e){e.HOMEPAGE="HOMEPAGE",e.CUSTOM="CUSTOM",e.HEADER="HEADER",e.READER="READER",e.TOPIC_TEMPLATE="TOPIC_TEMPLATE",e.SEARCH="SEARCH",e.SEARCH_RESULT="SEARCH_RESULT",e.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",e.LINK_PREVIEW="LINK_PREVIEW"})(ei||(ei={}));var ti;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(ti||(ti={}));var ri;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(ri||(ri={}));var oi;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(oi||(oi={}));var ni;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(ni||(ni={}));var ai;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR",e.CUSTOM="CUSTOM"})(ai||(ai={}));var ii;(function(e){e.OPTIONAL="OPTIONAL",e.MANDATORY="MANDATORY"})(ii||(ii={}));var si;(function(e){e.ASC="ASC",e.DESC="DESC"})(si||(si={}));var ci;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(ci||(ci={}));var li;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(li||(li={}));var di;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(di||(di={}));var ui;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(ui||(ui={}));var pi;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.PERSONAL_BOOK="PERSONAL_BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(pi||(pi={}));var fi;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(fi||(fi={}));var hi;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.HTML_PACKAGE="HTML_PACKAGE",e.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(hi||(hi={}));var yi;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(yi||(yi={}));var mi;(function(e){e.PLAIN_TEXT="PLAIN_TEXT",e.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",e.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(mi||(mi={}));var F;(function(e){e.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",e.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",e.HTML_EXPORT_USER="HTML_EXPORT_USER",e.PDF_EXPORT_USER="PDF_EXPORT_USER",e.SAVED_SEARCH_USER="SAVED_SEARCH_USER",e.COLLECTION_USER="COLLECTION_USER",e.OFFLINE_USER="OFFLINE_USER",e.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",e.ANALYTICS_USER="ANALYTICS_USER",e.BETA_USER="BETA_USER",e.DEBUG_USER="DEBUG_USER",e.PRINT_USER="PRINT_USER",e.RATING_USER="RATING_USER",e.FEEDBACK_USER="FEEDBACK_USER",e.GENERATIVE_AI_USER="GENERATIVE_AI_USER",e.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",e.CONTENT_PUBLISHER="CONTENT_PUBLISHER",e.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",e.KHUB_ADMIN="KHUB_ADMIN",e.USERS_ADMIN="USERS_ADMIN",e.PORTAL_ADMIN="PORTAL_ADMIN",e.ADMIN="ADMIN"})(F||(F={}));var le;(function(e){e.SEARCHES="SEARCHES",e.BOOKMARKS="BOOKMARKS",e.BOOKS="BOOKS",e.COLLECTIONS="COLLECTIONS"})(le||(le={}));var gi;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(gi||(gi={}));var bi;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(bi||(bi={}));var xi;(function(e){e.USER="USER",e.ASSISTANT="ASSISTANT"})(xi||(xi={}));var vi;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(vi||(vi={}));var Si;(function(e){e.HTML="HTML",e.MARKDOWN="MARKDOWN"})(Si||(Si={}));var Yc={[F.PERSONAL_BOOK_SHARE_USER]:[F.PERSONAL_BOOK_USER],[F.HTML_EXPORT_USER]:[F.PERSONAL_BOOK_USER],[F.PDF_EXPORT_USER]:[F.PERSONAL_BOOK_USER],[F.KHUB_ADMIN]:[F.CONTENT_PUBLISHER],[F.ADMIN]:[F.KHUB_ADMIN,F.USERS_ADMIN,F.PORTAL_ADMIN],[F.GENERATIVE_AI_EXPORT_USER]:[F.GENERATIVE_AI_USER]};function Oi(e,r){return e===r||(Yc[e]??[]).some(o=>Oi(o,r))}function Ci(e,r){return e==null?!1:(Array.isArray(e)?e:Array.isArray(e.roles)?e.roles:Array.isArray(e.profile?.roles)?e.profile.roles:[]).some(n=>Oi(n,r))}var Nr=C(k());var Cr=C(k()),Jc="ft-app-info",rt=class e extends CustomEvent{constructor(r){super(e.eventName,{detail:r})}};rt.eventName="authentication-change";var Qc={session:(e,r)=>{(0,Cr.deepEqual)(e.session,r.payload)||(e.session=r.payload,setTimeout(()=>R.dispatchEvent(new rt(r.payload)),0))}},R=Cr.FtReduxStore.get({name:Jc,reducers:Qc,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 Qo=C(k());var ot=class e{static get(r){let{baseUrl:o,apiIntegrationIdentifier:n}=R.getState(),a=r??n;if(o&&a&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,a,!0)}static await(r){return new Promise(o=>{let n=e.get(r);if(n)o(n);else{let a=R.subscribe(()=>{n=e.get(r),n&&(a(),o(n))})}})}};var Er=class{constructor(r){this.overrideApi=r}get api(){var r;return(r=this.overrideApi)!==null&&r!==void 0?r:ot.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):ot.await()}};var ne=class extends Er{constructor(r=!0,o){var n;super(o),this.sortObjectFields=(i,c)=>typeof c!="object"||c==null||Array.isArray(c)?c:Object.fromEntries(Object.entries(c).sort(([l],[u])=>l.localeCompare(u)));let a=this.constructor;a.commonCache=(n=a.commonCache)!==null&&n!==void 0?n:new Qo.CacheRegistry,this.cache=r?a.commonCache:new Qo.CacheRegistry}clearCache(){this.cache.clearAll()}hash(r){return String(Array.from(JSON.stringify(r,this.sortObjectFields)).reduce((o,n)=>0|31*o+n.charCodeAt(0),0))}};var Ar=class extends ne{async listMySearches(){let{session:r}=R.getState();return Ci(r,F.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(r.profile.userId),5*60*1e3):[]}};var wr=class extends ne{async listMyBookmarks(){let r=R.getState().session;return r?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(r.profile.userId),5*60*1e3):[]}};var Rr=class extends ne{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetCount(r){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${r}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${r}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(r){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${r}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${r}`),this.CACHE_DURATION)}isAuthenticated(){let r=R.getState().session;return!!r?.sessionAuthenticated}};var Tr=class extends ne{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 r=R.getState().session;return!!r?.sessionAuthenticated}};var el="ft-user-assets",tl={setAssetCount:(e,r)=>{let{userAssetType:o,count:n}=r.payload.assetCount;e.assetCounts.allAsset[o]=n},clearAssetCount:e=>{Object.values(le).forEach(r=>{e.assetCounts.allAsset[r]=void 0})},setBookmarkCountByMap:(e,r)=>{let o=r.payload.mapId;e.assetCounts.bookmarkByMap[o]=r.payload.count},clearBookmarkCountByMap:e=>{e.assetCounts.bookmarkByMap={}},addAsset:(e,r)=>{let{assetType:o,mapId:n,asset:a}=r.payload;tn(e,o,[...en(e,o),a]),Ei(e,o,1,n),Ai(e,a)},editAsset:(e,r)=>{let{assetType:o,asset:n}=r.payload;tn(e,o,en(e,o).map(a=>a.id===n.id?n:a)),Ai(e,n)},removeAsset:(e,r)=>{let{assetType:o,mapId:n,assetId:a}=r.payload;tn(e,o,en(e,o).filter(i=>i.id!==a)),Ei(e,o,-1,n)}},wi={[le.SEARCHES]:"savedSearches",[le.BOOKMARKS]:"bookmarks",[le.BOOKS]:void 0,[le.COLLECTIONS]:void 0},en=(e,r)=>{var o;let n=wi[r];return n?(o=e[n])!==null&&o!==void 0?o:[]:[]},tn=(e,r,o)=>{let n=wi[r];n&&(e[n]=o)},Ei=(e,r,o,n)=>{let a=e.assetCounts.allAsset[r];if(a!==void 0&&(e.assetCounts.allAsset[r]=Math.max(0,a+o),r===le.BOOKMARKS&&n)){let i=e.assetCounts.bookmarkByMap[n];e.assetCounts.bookmarkByMap[n]=Math.max(0,i+o)}},Ai=(e,r)=>{let o=e.assetLabels.map(a=>a.title),n=r.labels.filter(a=>!o.includes(a)).map(a=>({title:a}));e.assetLabels.push(...n)},Y=Nr.FtReduxStore.get({name:el,reducers:tl,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(le).map(e=>[e,void 0])),bookmarkByMap:{}},assetLabels:[]}}),rn=class{constructor(r=new Rr,o=new Tr){this.assetCountsService=r,this.assetLabelsService=o,this.currentSession=R.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new wr,this.savedSearchesService=new Ar,R.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var r;let{session:o}=R.getState();(0,Nr.deepEqual)((r=this.currentSession)===null||r===void 0?void 0:r.profile,o?.profile)||(this.currentSession=o,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 r=await this.savedSearchesService.listMySearches();Y.actions.savedSearches(r)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let r=await this.assetLabelsService.getUserAssetLabels();Y.actions.assetLabels(r)}async loadAssetCount(r){let o=await this.assetCountsService.getUserAssetCount(r);o&&Y.actions.setAssetCount({assetCount:o})}async loadBookmarkByMapId(r){let o=await this.assetCountsService.getUserBookmarkCountByMap(r);o&&Y.actions.setBookmarkCountByMap({count:o.count,mapId:r})}async reloadAssetCount(r){this.assetCountsService.clearCache();let o=Object.keys(Y.getState().assetCounts.bookmarkByMap).length!==0;r===le.BOOKMARKS&&o&&Y.actions.clearBookmarkCountByMap(),Y.getState().assetCounts.allAsset[r]!==void 0&&await this.loadAssetCount(r)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var r;if(this.bookmarksAreUsed){let o=!((r=this.currentSession)===null||r===void 0)&&r.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Y.actions.bookmarks(o)}}},rl=new rn;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=rl);var Mi=C(k());var ki=C($()),Z=C(Q()),Di=C(ho()),Xt=C(k());var _i=C($()),W=C(k()),Ri=W.FtCssVariableFactory.extend("--ft-ripple-color","",W.designSystemVariables.colorContent),nt={color:Ri,backgroundColor:W.FtCssVariableFactory.extend("--ft-ripple-background-color","",Ri),opacityContentOnSurfacePressed:W.FtCssVariableFactory.external(W.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:W.FtCssVariableFactory.external(W.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:W.FtCssVariableFactory.external(W.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:W.FtCssVariableFactory.external(W.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:W.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},Ti=W.FtCssVariableFactory.extend("--ft-ripple-color","",W.designSystemVariables.colorPrimary),Ni={color:Ti,backgroundColor:W.FtCssVariableFactory.extend("--ft-ripple-background-color","",Ti)},Li=W.FtCssVariableFactory.extend("--ft-ripple-color","",W.designSystemVariables.colorSecondary),Ii={color:Li,backgroundColor:W.FtCssVariableFactory.extend("--ft-ripple-background-color","",Li)},Pi=_i.css`
|
|
173
|
+
`}};tt.styles=[...Fa];za([(0,Xo.property)()],tt.prototype,"element",void 0);za([(0,Xo.property)()],tt.prototype,"variant",void 0);(0,Jo.customElement)("ft-typography")(ye);(0,Jo.customElement)("ftds-typography")(tt);var Xc=C(ja(),1);var Ka;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(Ka||(Ka={}));var Va;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(Va||(Va={}));var Za;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(Za||(Za={}));var qa;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(qa||(qa={}));var Ya;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(Ya||(Ya={}));var Xa;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})(Xa||(Xa={}));var Ja;(function(e){e.BOOKMARK__CREATE="BOOKMARK__CREATE",e.BOOKMARK__DELETE="BOOKMARK__DELETE",e.CASE_DEFLECTION__START="CASE_DEFLECTION__START",e.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",e.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",e.CHATBOT__RATE="CHATBOT__RATE",e.COLLECTION__CREATE="COLLECTION__CREATE",e.COLLECTION__UPDATE="COLLECTION__UPDATE",e.COLLECTION__DELETE="COLLECTION__DELETE",e.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",e.DOCUMENT__AI_TRANSLATE="DOCUMENT__AI_TRANSLATE",e.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",e.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",e.DOCUMENT__PRINT="DOCUMENT__PRINT",e.DOCUMENT__PROCESS="DOCUMENT__PROCESS",e.DOCUMENT__RATE="DOCUMENT__RATE",e.DOCUMENT__SEARCH="DOCUMENT__SEARCH",e.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",e.DOCUMENT__UNRATE="DOCUMENT__UNRATE",e.FEEDBACK__SEND="FEEDBACK__SEND",e.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",e.AI__RATE="AI__RATE",e.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",e.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",e.KHUB__PROCESS="KHUB__PROCESS",e.KHUB__SEARCH="KHUB__SEARCH",e.LABELS__DOWNLOAD="LABELS__DOWNLOAD",e.LINK__SHARE="LINK__SHARE",e.PAGE__DISPLAY="PAGE__DISPLAY",e.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",e.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",e.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",e.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",e.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",e.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",e.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",e.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",e.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",e.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",e.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",e.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",e.TOPIC__DISPLAY="TOPIC__DISPLAY",e.TOPIC__RATE="TOPIC__RATE",e.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",e.TOPIC__UNRATE="TOPIC__UNRATE",e.USER__LOGIN="USER__LOGIN",e.USER__LOGOUT="USER__LOGOUT",e.HEARTBEAT="HEARTBEAT"})(Ja||(Ja={}));var Qa;(function(e){e.THIRD_PARTY="THIRD_PARTY",e.OFF_THE_GRID="OFF_THE_GRID",e.CONTENT_PACKAGER="CONTENT_PACKAGER",e.PAGES="PAGES",e.DESIGNED_READER="DESIGNED_READER"})(Qa||(Qa={}));var ei;(function(e){e.HOMEPAGE="HOMEPAGE",e.CUSTOM="CUSTOM",e.HEADER="HEADER",e.READER="READER",e.TOPIC_TEMPLATE="TOPIC_TEMPLATE",e.SEARCH="SEARCH",e.SEARCH_RESULT="SEARCH_RESULT",e.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",e.LINK_PREVIEW="LINK_PREVIEW"})(ei||(ei={}));var ti;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(ti||(ti={}));var ri;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(ri||(ri={}));var oi;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(oi||(oi={}));var ni;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(ni||(ni={}));var ai;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR",e.CUSTOM="CUSTOM"})(ai||(ai={}));var ii;(function(e){e.OPTIONAL="OPTIONAL",e.MANDATORY="MANDATORY"})(ii||(ii={}));var si;(function(e){e.ASC="ASC",e.DESC="DESC"})(si||(si={}));var ci;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(ci||(ci={}));var li;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(li||(li={}));var di;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(di||(di={}));var ui;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(ui||(ui={}));var pi;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.PERSONAL_BOOK="PERSONAL_BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(pi||(pi={}));var fi;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(fi||(fi={}));var hi;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.HTML_PACKAGE="HTML_PACKAGE",e.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(hi||(hi={}));var yi;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(yi||(yi={}));var mi;(function(e){e.PLAIN_TEXT="PLAIN_TEXT",e.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",e.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(mi||(mi={}));var F;(function(e){e.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",e.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",e.HTML_EXPORT_USER="HTML_EXPORT_USER",e.PDF_EXPORT_USER="PDF_EXPORT_USER",e.SAVED_SEARCH_USER="SAVED_SEARCH_USER",e.COLLECTION_USER="COLLECTION_USER",e.OFFLINE_USER="OFFLINE_USER",e.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",e.ANALYTICS_USER="ANALYTICS_USER",e.BETA_USER="BETA_USER",e.DEBUG_USER="DEBUG_USER",e.PRINT_USER="PRINT_USER",e.RATING_USER="RATING_USER",e.FEEDBACK_USER="FEEDBACK_USER",e.GENERATIVE_AI_USER="GENERATIVE_AI_USER",e.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",e.CONTENT_PUBLISHER="CONTENT_PUBLISHER",e.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",e.KHUB_ADMIN="KHUB_ADMIN",e.USERS_ADMIN="USERS_ADMIN",e.PORTAL_ADMIN="PORTAL_ADMIN",e.ADMIN="ADMIN"})(F||(F={}));var le;(function(e){e.SEARCHES="SEARCHES",e.BOOKMARKS="BOOKMARKS",e.BOOKS="BOOKS",e.COLLECTIONS="COLLECTIONS"})(le||(le={}));var gi;(function(e){e.UNAUTHENTICATED="UNAUTHENTICATED",e.USER_INCOMPLETE="USER_INCOMPLETE",e.MFA_REQUIRED="MFA_REQUIRED",e.AUTHENTICATED="AUTHENTICATED"})(gi||(gi={}));var bi;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(bi||(bi={}));var xi;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(xi||(xi={}));var vi;(function(e){e.USER="USER",e.ASSISTANT="ASSISTANT"})(vi||(vi={}));var Si;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(Si||(Si={}));var Oi;(function(e){e.HTML="HTML",e.MARKDOWN="MARKDOWN"})(Oi||(Oi={}));var Yc={[F.PERSONAL_BOOK_SHARE_USER]:[F.PERSONAL_BOOK_USER],[F.HTML_EXPORT_USER]:[F.PERSONAL_BOOK_USER],[F.PDF_EXPORT_USER]:[F.PERSONAL_BOOK_USER],[F.KHUB_ADMIN]:[F.CONTENT_PUBLISHER],[F.ADMIN]:[F.KHUB_ADMIN,F.USERS_ADMIN,F.PORTAL_ADMIN],[F.GENERATIVE_AI_EXPORT_USER]:[F.GENERATIVE_AI_USER]};function Ci(e,r){return e===r||(Yc[e]??[]).some(o=>Ci(o,r))}function Ei(e,r){return e==null?!1:(Array.isArray(e)?e:Array.isArray(e.roles)?e.roles:Array.isArray(e.profile?.roles)?e.profile.roles:[]).some(n=>Ci(n,r))}var Nr=C(k());var Cr=C(k()),Jc="ft-app-info",rt=class e extends CustomEvent{constructor(r){super(e.eventName,{detail:r})}};rt.eventName="authentication-change";var Qc={session:(e,r)=>{(0,Cr.deepEqual)(e.session,r.payload)||(e.session=r.payload,setTimeout(()=>R.dispatchEvent(new rt(r.payload)),0))}},R=Cr.FtReduxStore.get({name:Jc,reducers:Qc,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 Qo=C(k());var ot=class e{static get(r){let{baseUrl:o,apiIntegrationIdentifier:n}=R.getState(),a=r??n;if(o&&a&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,a,!0)}static await(r){return new Promise(o=>{let n=e.get(r);if(n)o(n);else{let a=R.subscribe(()=>{n=e.get(r),n&&(a(),o(n))})}})}};var Er=class{constructor(r){this.overrideApi=r}get api(){var r;return(r=this.overrideApi)!==null&&r!==void 0?r:ot.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):ot.await()}};var ne=class extends Er{constructor(r=!0,o){var n;super(o),this.sortObjectFields=(i,c)=>typeof c!="object"||c==null||Array.isArray(c)?c:Object.fromEntries(Object.entries(c).sort(([l],[u])=>l.localeCompare(u)));let a=this.constructor;a.commonCache=(n=a.commonCache)!==null&&n!==void 0?n:new Qo.CacheRegistry,this.cache=r?a.commonCache:new Qo.CacheRegistry}clearCache(){this.cache.clearAll()}hash(r){return String(Array.from(JSON.stringify(r,this.sortObjectFields)).reduce((o,n)=>0|31*o+n.charCodeAt(0),0))}};var Ar=class extends ne{async listMySearches(){let{session:r}=R.getState();return Ei(r,F.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(r.profile.userId),5*60*1e3):[]}};var wr=class extends ne{async listMyBookmarks(){let r=R.getState().session;return r?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(r.profile.userId),5*60*1e3):[]}};var Rr=class extends ne{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetCount(r){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${r}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${r}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(r){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${r}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${r}`),this.CACHE_DURATION)}isAuthenticated(){let r=R.getState().session;return!!r?.sessionAuthenticated}};var Tr=class extends ne{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 r=R.getState().session;return!!r?.sessionAuthenticated}};var el="ft-user-assets",tl={setAssetCount:(e,r)=>{let{userAssetType:o,count:n}=r.payload.assetCount;e.assetCounts.allAsset[o]=n},clearAssetCount:e=>{Object.values(le).forEach(r=>{e.assetCounts.allAsset[r]=void 0})},setBookmarkCountByMap:(e,r)=>{let o=r.payload.mapId;e.assetCounts.bookmarkByMap[o]=r.payload.count},clearBookmarkCountByMap:e=>{e.assetCounts.bookmarkByMap={}},addAsset:(e,r)=>{let{assetType:o,mapId:n,asset:a}=r.payload;tn(e,o,[...en(e,o),a]),Ai(e,o,1,n),wi(e,a)},editAsset:(e,r)=>{let{assetType:o,asset:n}=r.payload;tn(e,o,en(e,o).map(a=>a.id===n.id?n:a)),wi(e,n)},removeAsset:(e,r)=>{let{assetType:o,mapId:n,assetId:a}=r.payload;tn(e,o,en(e,o).filter(i=>i.id!==a)),Ai(e,o,-1,n)}},Ri={[le.SEARCHES]:"savedSearches",[le.BOOKMARKS]:"bookmarks",[le.BOOKS]:void 0,[le.COLLECTIONS]:void 0},en=(e,r)=>{var o;let n=Ri[r];return n?(o=e[n])!==null&&o!==void 0?o:[]:[]},tn=(e,r,o)=>{let n=Ri[r];n&&(e[n]=o)},Ai=(e,r,o,n)=>{let a=e.assetCounts.allAsset[r];if(a!==void 0&&(e.assetCounts.allAsset[r]=Math.max(0,a+o),r===le.BOOKMARKS&&n)){let i=e.assetCounts.bookmarkByMap[n];e.assetCounts.bookmarkByMap[n]=Math.max(0,i+o)}},wi=(e,r)=>{let o=e.assetLabels.map(a=>a.title),n=r.labels.filter(a=>!o.includes(a)).map(a=>({title:a}));e.assetLabels.push(...n)},Y=Nr.FtReduxStore.get({name:el,reducers:tl,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(le).map(e=>[e,void 0])),bookmarkByMap:{}},assetLabels:[]}}),rn=class{constructor(r=new Rr,o=new Tr){this.assetCountsService=r,this.assetLabelsService=o,this.currentSession=R.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new wr,this.savedSearchesService=new Ar,R.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var r;let{session:o}=R.getState();(0,Nr.deepEqual)((r=this.currentSession)===null||r===void 0?void 0:r.profile,o?.profile)||(this.currentSession=o,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 r=await this.savedSearchesService.listMySearches();Y.actions.savedSearches(r)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let r=await this.assetLabelsService.getUserAssetLabels();Y.actions.assetLabels(r)}async loadAssetCount(r){let o=await this.assetCountsService.getUserAssetCount(r);o&&Y.actions.setAssetCount({assetCount:o})}async loadBookmarkByMapId(r){let o=await this.assetCountsService.getUserBookmarkCountByMap(r);o&&Y.actions.setBookmarkCountByMap({count:o.count,mapId:r})}async reloadAssetCount(r){this.assetCountsService.clearCache();let o=Object.keys(Y.getState().assetCounts.bookmarkByMap).length!==0;r===le.BOOKMARKS&&o&&Y.actions.clearBookmarkCountByMap(),Y.getState().assetCounts.allAsset[r]!==void 0&&await this.loadAssetCount(r)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var r;if(this.bookmarksAreUsed){let o=!((r=this.currentSession)===null||r===void 0)&&r.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Y.actions.bookmarks(o)}}},rl=new rn;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=rl);var Bi=C(k());var Di=C($()),Z=C(Q()),Mi=C(ho()),Xt=C(k());var Pi=C($()),W=C(k()),Ti=W.FtCssVariableFactory.extend("--ft-ripple-color","",W.designSystemVariables.colorContent),nt={color:Ti,backgroundColor:W.FtCssVariableFactory.extend("--ft-ripple-background-color","",Ti),opacityContentOnSurfacePressed:W.FtCssVariableFactory.external(W.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:W.FtCssVariableFactory.external(W.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:W.FtCssVariableFactory.external(W.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:W.FtCssVariableFactory.external(W.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:W.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},Ni=W.FtCssVariableFactory.extend("--ft-ripple-color","",W.designSystemVariables.colorPrimary),Li={color:Ni,backgroundColor:W.FtCssVariableFactory.extend("--ft-ripple-background-color","",Ni)},Ii=W.FtCssVariableFactory.extend("--ft-ripple-color","",W.designSystemVariables.colorSecondary),_i={color:Ii,backgroundColor:W.FtCssVariableFactory.extend("--ft-ripple-background-color","",Ii)},ki=Pi.css`
|
|
174
174
|
:host {
|
|
175
175
|
display: contents;
|
|
176
176
|
}
|
|
@@ -225,19 +225,19 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:t.extend("--ftds-con
|
|
|
225
225
|
}
|
|
226
226
|
|
|
227
227
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
228
|
-
background-color: ${
|
|
228
|
+
background-color: ${_i.backgroundColor};
|
|
229
229
|
}
|
|
230
230
|
|
|
231
231
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
232
|
-
background-color: ${
|
|
232
|
+
background-color: ${_i.color};
|
|
233
233
|
}
|
|
234
234
|
|
|
235
235
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
236
|
-
background-color: ${
|
|
236
|
+
background-color: ${Li.backgroundColor};
|
|
237
237
|
}
|
|
238
238
|
|
|
239
239
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
240
|
-
background-color: ${
|
|
240
|
+
background-color: ${Li.color};
|
|
241
241
|
}
|
|
242
242
|
|
|
243
243
|
.ft-ripple .ft-ripple--background {
|
|
@@ -282,18 +282,18 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:t.extend("--ftds-con
|
|
|
282
282
|
opacity: ${nt.opacityContentOnSurfacePressed};
|
|
283
283
|
transform: translate(-50%, -50%) scale(1);
|
|
284
284
|
}
|
|
285
|
-
`;var re=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},H=class extends Xt.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new Xt.Debouncer(1e3),this.onTransitionStart=r=>{r.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=r=>{r.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new Xt.Debouncer(10),this.moveRipple=r=>{var o,n;let{x:a,y:i}=this.getCoordinates(r),c=(n=(o=this.ripple)===null||o===void 0?void 0:o.getBoundingClientRect())!==null&&n!==void 0?n:{x:0,y:0,width:0,height:0};this.originX=Math.round(a!=null?a-c.x:c.width/2),this.originY=Math.round(i!=null?i-c.y:c.height/2)},this.startPress=r=>{this.moveRipple(r),this.pressed=!this.isIgnored(r)},this.endPress=()=>{this.pressed=!1},this.startHover=r=>{this.hovered=!this.isIgnored(r)},this.endHover=()=>{this.hovered=!1},this.startFocus=r=>{this.focused=this.isFocusVisible(r?.target)&&!this.isIgnored(r)},this.endFocus=()=>{this.focused=!1}}render(){let r={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return
|
|
285
|
+
`;var re=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},H=class extends Xt.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new Xt.Debouncer(1e3),this.onTransitionStart=r=>{r.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=r=>{r.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new Xt.Debouncer(10),this.moveRipple=r=>{var o,n;let{x:a,y:i}=this.getCoordinates(r),c=(n=(o=this.ripple)===null||o===void 0?void 0:o.getBoundingClientRect())!==null&&n!==void 0?n:{x:0,y:0,width:0,height:0};this.originX=Math.round(a!=null?a-c.x:c.width/2),this.originY=Math.round(i!=null?i-c.y:c.height/2)},this.startPress=r=>{this.moveRipple(r),this.pressed=!this.isIgnored(r)},this.endPress=()=>{this.pressed=!1},this.startHover=r=>{this.hovered=!this.isIgnored(r)},this.endHover=()=>{this.hovered=!1},this.startFocus=r=>{this.focused=this.isFocusVisible(r?.target)&&!this.isIgnored(r)},this.endFocus=()=>{this.focused=!1}}render(){let r={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return Di.html`
|
|
286
286
|
<style>
|
|
287
287
|
.ft-ripple .ft-ripple--effect {
|
|
288
288
|
left: ${this.originX}px;
|
|
289
289
|
top: ${this.originY}px;
|
|
290
290
|
}
|
|
291
291
|
</style>
|
|
292
|
-
<div class="${(0,
|
|
292
|
+
<div class="${(0,Mi.classMap)(r)}">
|
|
293
293
|
<div class="ft-ripple--background"></div>
|
|
294
294
|
<div class="ft-ripple--effect"></div>
|
|
295
295
|
</div>
|
|
296
|
-
`}contentAvailableCallback(r){super.contentAvailableCallback(r),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(r){var o,n;super.update(r),r.has("disabled")&&(this.disabled?(this.endRipple(),(o=this.target)===null||o===void 0||o.removeAttribute("data-is-ft-ripple-target")):(n=this.target)===null||n===void 0||n.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var r,o;let n=(r=this.shadowRoot)===null||r===void 0?void 0:r.host.parentElement;n&&this.setupFor((o=this.target)!==null&&o!==void 0?o:n)}forceFocusUpdate(){var r;!((r=this.target)===null||r===void 0)&&r.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(r){if(this.setupDebouncer.cancel(),this.target===r)return;this.onDisconnect&&this.onDisconnect(),this.target=r,r.setAttribute("data-is-ft-ripple-target","true");let o=(...l)=>u=>{l.forEach(p=>window.addEventListener(p,this.endPress,{once:!0})),this.startPress(u)},n=o("mouseup","contextmenu"),a=o("touchend","touchcancel"),i=l=>{["Enter"," "].includes(l.key)&&o("keyup")(l)},c={passive:!0};r.addEventListener("mouseover",this.startHover,c),r.addEventListener("mousemove",this.moveRipple,c),r.addEventListener("mouseleave",this.endHover,c),r.addEventListener("mousedown",n,c),r.addEventListener("touchstart",a,c),r.addEventListener("touchmove",this.moveRipple,c),r.addEventListener("keydown",i,c),r.addEventListener("focus",this.startFocus,c),r.addEventListener("blur",this.endFocus,c),r.addEventListener("focusin",this.startFocus,c),r.addEventListener("focusout",this.endFocus,c),this.onDisconnect=()=>{r.removeAttribute("data-is-ft-ripple-target"),r.removeEventListener("mouseover",this.startHover,c),r.removeEventListener("mousemove",this.moveRipple,c),r.removeEventListener("mouseleave",this.endHover,c),r.removeEventListener("mousedown",n,c),r.removeEventListener("touchstart",a,c),r.removeEventListener("touchmove",this.moveRipple,c),r.removeEventListener("keydown",i,c),r.removeEventListener("focus",this.startFocus,c),r.removeEventListener("blur",this.endFocus,c),r.removeEventListener("focusin",this.startFocus,c),r.removeEventListener("focusout",this.endFocus,c),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(r){let o=r,n=r,a,i;return o.x!=null?{x:a,y:i}=o:n.touches!=null&&(a=n.touches[0].clientX,i=n.touches[0].clientY),{x:a,y:i}}isFocusVisible(r){return r instanceof HTMLElement?r.matches(":focus-visible"):!0}isIgnored(r){if(this.disabled)return!0;if(r!=null)for(let o of r.composedPath()){if(o===this.target)break;if("hasAttribute"in o&&o.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};H.elementDefinitions={};H.styles=Pi;re([(0,Z.property)({type:Boolean})],H.prototype,"primary",void 0);re([(0,Z.property)({type:Boolean})],H.prototype,"secondary",void 0);re([(0,Z.property)({type:Boolean})],H.prototype,"unbounded",void 0);re([(0,Z.property)({type:Boolean})],H.prototype,"activated",void 0);re([(0,Z.property)({type:Boolean})],H.prototype,"selected",void 0);re([(0,Z.property)({type:Boolean})],H.prototype,"disabled",void 0);re([(0,Z.state)()],H.prototype,"hovered",void 0);re([(0,Z.state)()],H.prototype,"focused",void 0);re([(0,Z.state)()],H.prototype,"pressed",void 0);re([(0,Z.state)()],H.prototype,"rippling",void 0);re([(0,Z.state)()],H.prototype,"originX",void 0);re([(0,Z.state)()],H.prototype,"originY",void 0);re([(0,Z.query)(".ft-ripple")],H.prototype,"ripple",void 0);re([(0,Z.query)(".ft-ripple--effect")],H.prototype,"rippleEffect",void 0);(0,Mi.customElement)("ft-ripple")(H);var Gi=C(k());var Jt=C($()),Fe=C(Q()),Fi=C(k()),zi=C(Ui());var Nt;(function(e){e.ADD_TO_PBK="",e.ALERT="",e.ADD_ALERT="",e.BACK_TO_SEARCH="",e.ADD_BOOKMARK="",e.BOOKMARK="",e.BOOKS="",e.MENU="",e.DOWNLOAD="",e.EDIT="",e.FEEDBACK="",e.HOME="",e.MODIFY_PBK="",e.SCHEDULED="",e.SEARCH="",e.EXPORT="",e.TOC="",e.WRITE_UGC="",e.TRASH="",e.USER="",e.EXTLINK="",e.CALENDAR="",e.OFFLINE="",e.BOOK="",e.DOWNLOAD_PLAIN="",e.CHECK="",e.STAR_PLAIN="",e.TOPICS="",e.DISC="",e.CIRCLE="",e.SHARED="",e.SORT_UNSORTED="",e.SORT_UP="",e.SORT_DOWN="",e.WORKING="",e.CLOSE="",e.ZOOM_OUT="",e.ZOOM_IN="",e.ZOOM_REALSIZE="",e.ZOOM_FULLSCREEN="",e.ADMIN_RESTRICTED="",e.ADMIN="",e.ADMIN_KHUB="",e.ADMIN_THEME="",e.ADMIN_USERS="",e.WARNING="",e.CONTEXT="",e.SEARCH_HOME="",e.STEPS="",e.ICON_EXPAND="",e.ICON_COLLAPSE="",e.INFO="",e.MINUS_PLAIN="",e.PLUS_PLAIN="",e.FACET_HAS_DESCENDANT="",e.TRIANGLE_BOTTOM="",e.TRIANGLE_LEFT="",e.TRIANGLE_RIGHT="",e.TRIANGLE_TOP="",e.THIN_ARROW="",e.SIGN_IN="",e.LOGOUT="",e.TRANSLATE="",e.CLOSE_PLAIN="",e.CHECK_PLAIN="",e.ARTICLE="",e.COLUMNS="",e.ANALYTICS="",e.COLLECTIONS="",e.ARROW_DOWN="",e.ARROW_LEFT="",e.ARROW_RIGHT="",e.ARROW_UP="",e.SEARCH_IN_PUBLICATION="",e.COPY_TO_CLIPBOARD="",e.SHARED_PBK="",e.ATTACHMENTS="",e.STRIPE_ARROW_LEFT="",e.STRIPE_ARROW_RIGHT="",e.FILTERS="",e.DOT="",e.MINUS="",e.PLUS="",e.MAILS_AND_NOTIFICATIONS="",e.SAVE="",e.LOCKER="",e.ADMIN_INTEGRATION="",e.SYNC="",e.TAG="",e.BOOK_PLAIN="",e.UPLOAD="",e.ONLINE="",e.TAG_PLAIN="",e.ACCOUNT_SETTINGS="",e.PRINT="",e.DEFAULT_ROLES="",e.SHORTCUT_MENU="",e.RELATIVES_PLAIN="",e.RELATIVES="",e.PAUSE="",e.PLAY="",e.ADMIN_PORTAL="",e.STAR="",e.THUMBS_DOWN="",e.THUMBS_DOWN_PLAIN="",e.THUMBS_UP="",e.THUMBS_UP_PLAIN="",e.FEEDBACK_PLAIN="",e.RATE_PLAIN="",e.RATE="",e.OFFLINE_SETTINGS="",e.MY_COLLECTIONS="",e.THIN_ARROW_LEFT="",e.THIN_ARROW_RIGHT="",e.RESET="",e.MY_LIBRARY="",e.UNSTRUCTURED_DOC="",e.CONTEXTUAL="",e.THIN_ARROW_UP="",e.ARROW_RIGHT_TO_LINE="",e.DESKTOP="",e.TABLET_LANDSCAPE="",e.TABLET_PORTRAIT="",e.MOBILE_LANDSCAPE="",e.MOBILE_PORTRAIT="",e.DIAGRAM_SUNBURST="",e.DIAGRAM_SANKEY="",e.COMMENT_QUESTION="",e.COMMENT_QUESTION_PLAIN="",e.MESSAGE_BOT="",e.CHART_SIMPLE="",e.BARS_PROGRESS="",e.BOOK_OPEN_GEAR="",e.BOOK_OPEN_GEAR_SLASH="",e.LINE_CHART="",e.STACKED_CHART="",e.CHART_BAR_STACKED="",e.CHART_BAR_GROUPED="",e.EYE_SLASH="",e.X_MARK="",e.EXPAND_WIDE="",e.PIP="",e.PIP_WIDE="",e.LIFE_RING="",e.GLOBE="",e.PIGGY_BANK="",e.EXTLINK_LIGHT="",e.CLONE="",e.CLONE_LINK_SIMPLE="",e.CHART_BAR_NORMALIZED="",e.CONSUMER="",e.OCTAGON_XMARK="",e.HOURGLASS_HALF="",e.CLOCK="",e.CLOCK_THREE="",e.CALENDAR_DAY="",e.COMPUTER_MOUSE_MAGNIFYING_GLASS="",e.WAND_MAGIC_SPARKLES="",e.PAPER_PLANE="",e.CIRCLE_STOP="",e.ARROW_ROTATE_RIGHT="",e.ARROWS_ROTATE="",e.ALIGN_RIGHT="",e.FORMAT_CLEAR="",e.ALIGN_CENTER="",e.ALIGN_LEFT="",e.PALETTE="",e.BOLD="",e.ITALIC="",e.UNDERLINE="",e.STRIKETHROUGH="",e.LINK_SIMPLE_SLASH="",e.LINK_SIMPLE="",e.ROUTE="",e.CIRCLE_USER_SLASH="",e.CIRCLE_USER_CHECK="",e.LIST_MAGNIFYING_GLASS="",e.MEDAL="",e.THUMBS_UP_THUMBS_DOWN_SOLID="",e.ARROW_TURN_DOWN_RIGHT="",e.FLASK="",e.LOCK_KEYHOLE_OPEN_SOLID="",e.HOURGLASS_END="",e.CIRCLE_QUESTION="",e.GRIP_LINES_SOLID="",e.TRANSLATE_SPARKLE_SOLID="",e.CODE="",e.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="",e.PAPER_PLANE_SLASH="",e.COMPRESS="",e.EXPAND="",e.ARROW_ROTATE_LEFT="",e.EYE="",e.SHARE="󨃱",e.MOBILE_SMALL="",e.SPARKLES="",e.HAND_SOLID="",e.CLOCK_SOLID="",e.CONTEXT_MENU_CURSOR="",e.LANGUAGE_SLASH="",e.MAGNIFYING_GLASS_FLOPPY_DISK="",e.CABINET_FILING_FLOPPY_DISK="",e.BOOKMARK_SLASH="",e.CIRCLE_PAUSE="",e.CIRCLE_PLAY="",e.CIRCLE_STOP_PLAIN="",e.CLOUD_ARROW_DOWN="",e.SHARE_NODES="",e.BELL="",e.BELL_SLASH="",e.FILE="",e.HAND="",e.SQUARE_INFO_SOLID="",e.FILE_CODE="",e.BOX_CODE=""})(Nt||(Nt={}));var S;(function(e){e.UNKNOWN="",e.ABW="",e.AUDIO="",e.AVI="",e.CHM="",e.CODE="",e.CSV="",e.DITA="",e.EPUB="",e.EXCEL="",e.FLAC="",e.GIF="",e.GZIP="",e.HTML="",e.IMAGE="",e.JPEG="",e.JSON="",e.M4A="",e.MOV="",e.MP3="",e.MP4="",e.OGG="",e.PDF="",e.PNG="",e.POWERPOINT="",e.RAR="",e.STP="",e.TEXT="",e.VIDEO="",e.WAV="",e.WMA="",e.WORD="",e.XML="",e.YAML="",e.ZIP=""})(S||(S={}));var Gm=new Map([...["abw"].map(e=>[e,S.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(e=>[e,S.AUDIO]),...["avi"].map(e=>[e,S.AVI]),...["chm","xhs"].map(e=>[e,S.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(e=>[e,S.CODE]),...["csv"].map(e=>[e,S.CSV]),...["dita","ditamap","ditaval"].map(e=>[e,S.DITA]),...["epub"].map(e=>[e,S.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(e=>[e,S.EXCEL]),...["flac"].map(e=>[e,S.FLAC]),...["gif"].map(e=>[e,S.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(e=>[e,S.GZIP]),...["html","htm","xhtml"].map(e=>[e,S.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(e=>[e,S.IMAGE]),...["jpeg","jpg","jpe"].map(e=>[e,S.JPEG]),...["json"].map(e=>[e,S.JSON]),...["m4a","m4p"].map(e=>[e,S.M4A]),...["mov","qt"].map(e=>[e,S.MOV]),...["mp3"].map(e=>[e,S.MP3]),...["mp4","m4v"].map(e=>[e,S.MP4]),...["ogg","oga"].map(e=>[e,S.OGG]),...["pdf","ps"].map(e=>[e,S.PDF]),...["png"].map(e=>[e,S.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(e=>[e,S.POWERPOINT]),...["rar"].map(e=>[e,S.RAR]),...["stp"].map(e=>[e,S.STP]),...["txt","rtf","md","mdown"].map(e=>[e,S.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(e=>[e,S.VIDEO]),...["wav"].map(e=>[e,S.WAV]),...["wma"].map(e=>[e,S.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(e=>[e,S.WORD]),...["xml","xsl","rdf"].map(e=>[e,S.XML]),...["yaml","yml","x-yaml"].map(e=>[e,S.YAML]),...["zip"].map(e=>[e,S.ZIP])]);var $m={[S.ABW]:"#91ABC6",[S.AUDIO]:"#1795E3",[S.AVI]:"#E63324",[S.CHM]:"#71C3EB",[S.CODE]:"#71C3EB",[S.CSV]:"#1F7345",[S.DITA]:"#71C3EB",[S.EPUB]:"#85B926",[S.EXCEL]:"#1F7345",[S.FLAC]:"#1795E3",[S.GIF]:"#59B031",[S.GZIP]:"#F8AB36",[S.HTML]:"#71C3EB",[S.IMAGE]:"#59B031",[S.JPEG]:"#59B031",[S.JSON]:"#71C3EB",[S.M4A]:"#1795E3",[S.MOV]:"#E63324",[S.MP3]:"#1795E3",[S.MP4]:"#E63324",[S.OGG]:"#1795E3",[S.PDF]:"#E44948",[S.PNG]:"#59B031",[S.POWERPOINT]:"#B54A2B",[S.RAR]:"#F8AB36",[S.STP]:"#3764B1",[S.TEXT]:"#3162AB",[S.UNKNOWN]:"#999999",[S.VIDEO]:"#E63324",[S.WAV]:"#1795E3",[S.WMA]:"#1795E3",[S.WORD]:"#3162AB",[S.XML]:"#71C3EB",[S.YAML]:"#71C3EB",[S.ZIP]:"#F8AB36"};var Hi=C($()),me=C(k()),Le={size:me.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:me.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",me.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:me.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",me.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:me.FtCssVariableFactory.extend("--ft-icon-material-font-family","",me.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:me.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Wi=[Hi.css`
|
|
296
|
+
`}contentAvailableCallback(r){super.contentAvailableCallback(r),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(r){var o,n;super.update(r),r.has("disabled")&&(this.disabled?(this.endRipple(),(o=this.target)===null||o===void 0||o.removeAttribute("data-is-ft-ripple-target")):(n=this.target)===null||n===void 0||n.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var r,o;let n=(r=this.shadowRoot)===null||r===void 0?void 0:r.host.parentElement;n&&this.setupFor((o=this.target)!==null&&o!==void 0?o:n)}forceFocusUpdate(){var r;!((r=this.target)===null||r===void 0)&&r.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(r){if(this.setupDebouncer.cancel(),this.target===r)return;this.onDisconnect&&this.onDisconnect(),this.target=r,r.setAttribute("data-is-ft-ripple-target","true");let o=(...l)=>u=>{l.forEach(p=>window.addEventListener(p,this.endPress,{once:!0})),this.startPress(u)},n=o("mouseup","contextmenu"),a=o("touchend","touchcancel"),i=l=>{["Enter"," "].includes(l.key)&&o("keyup")(l)},c={passive:!0};r.addEventListener("mouseover",this.startHover,c),r.addEventListener("mousemove",this.moveRipple,c),r.addEventListener("mouseleave",this.endHover,c),r.addEventListener("mousedown",n,c),r.addEventListener("touchstart",a,c),r.addEventListener("touchmove",this.moveRipple,c),r.addEventListener("keydown",i,c),r.addEventListener("focus",this.startFocus,c),r.addEventListener("blur",this.endFocus,c),r.addEventListener("focusin",this.startFocus,c),r.addEventListener("focusout",this.endFocus,c),this.onDisconnect=()=>{r.removeAttribute("data-is-ft-ripple-target"),r.removeEventListener("mouseover",this.startHover,c),r.removeEventListener("mousemove",this.moveRipple,c),r.removeEventListener("mouseleave",this.endHover,c),r.removeEventListener("mousedown",n,c),r.removeEventListener("touchstart",a,c),r.removeEventListener("touchmove",this.moveRipple,c),r.removeEventListener("keydown",i,c),r.removeEventListener("focus",this.startFocus,c),r.removeEventListener("blur",this.endFocus,c),r.removeEventListener("focusin",this.startFocus,c),r.removeEventListener("focusout",this.endFocus,c),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(r){let o=r,n=r,a,i;return o.x!=null?{x:a,y:i}=o:n.touches!=null&&(a=n.touches[0].clientX,i=n.touches[0].clientY),{x:a,y:i}}isFocusVisible(r){return r instanceof HTMLElement?r.matches(":focus-visible"):!0}isIgnored(r){if(this.disabled)return!0;if(r!=null)for(let o of r.composedPath()){if(o===this.target)break;if("hasAttribute"in o&&o.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};H.elementDefinitions={};H.styles=ki;re([(0,Z.property)({type:Boolean})],H.prototype,"primary",void 0);re([(0,Z.property)({type:Boolean})],H.prototype,"secondary",void 0);re([(0,Z.property)({type:Boolean})],H.prototype,"unbounded",void 0);re([(0,Z.property)({type:Boolean})],H.prototype,"activated",void 0);re([(0,Z.property)({type:Boolean})],H.prototype,"selected",void 0);re([(0,Z.property)({type:Boolean})],H.prototype,"disabled",void 0);re([(0,Z.state)()],H.prototype,"hovered",void 0);re([(0,Z.state)()],H.prototype,"focused",void 0);re([(0,Z.state)()],H.prototype,"pressed",void 0);re([(0,Z.state)()],H.prototype,"rippling",void 0);re([(0,Z.state)()],H.prototype,"originX",void 0);re([(0,Z.state)()],H.prototype,"originY",void 0);re([(0,Z.query)(".ft-ripple")],H.prototype,"ripple",void 0);re([(0,Z.query)(".ft-ripple--effect")],H.prototype,"rippleEffect",void 0);(0,Bi.customElement)("ft-ripple")(H);var $i=C(k());var Jt=C($()),Fe=C(Q()),zi=C(k()),Gi=C(Hi());var Nt;(function(e){e.ADD_TO_PBK="",e.ALERT="",e.ADD_ALERT="",e.BACK_TO_SEARCH="",e.ADD_BOOKMARK="",e.BOOKMARK="",e.BOOKS="",e.MENU="",e.DOWNLOAD="",e.EDIT="",e.FEEDBACK="",e.HOME="",e.MODIFY_PBK="",e.SCHEDULED="",e.SEARCH="",e.EXPORT="",e.TOC="",e.WRITE_UGC="",e.TRASH="",e.USER="",e.EXTLINK="",e.CALENDAR="",e.OFFLINE="",e.BOOK="",e.DOWNLOAD_PLAIN="",e.CHECK="",e.STAR_PLAIN="",e.TOPICS="",e.DISC="",e.CIRCLE="",e.SHARED="",e.SORT_UNSORTED="",e.SORT_UP="",e.SORT_DOWN="",e.WORKING="",e.CLOSE="",e.ZOOM_OUT="",e.ZOOM_IN="",e.ZOOM_REALSIZE="",e.ZOOM_FULLSCREEN="",e.ADMIN_RESTRICTED="",e.ADMIN="",e.ADMIN_KHUB="",e.ADMIN_THEME="",e.ADMIN_USERS="",e.WARNING="",e.CONTEXT="",e.SEARCH_HOME="",e.STEPS="",e.ICON_EXPAND="",e.ICON_COLLAPSE="",e.INFO="",e.MINUS_PLAIN="",e.PLUS_PLAIN="",e.FACET_HAS_DESCENDANT="",e.TRIANGLE_BOTTOM="",e.TRIANGLE_LEFT="",e.TRIANGLE_RIGHT="",e.TRIANGLE_TOP="",e.THIN_ARROW="",e.SIGN_IN="",e.LOGOUT="",e.TRANSLATE="",e.CLOSE_PLAIN="",e.CHECK_PLAIN="",e.ARTICLE="",e.COLUMNS="",e.ANALYTICS="",e.COLLECTIONS="",e.ARROW_DOWN="",e.ARROW_LEFT="",e.ARROW_RIGHT="",e.ARROW_UP="",e.SEARCH_IN_PUBLICATION="",e.COPY_TO_CLIPBOARD="",e.SHARED_PBK="",e.ATTACHMENTS="",e.STRIPE_ARROW_LEFT="",e.STRIPE_ARROW_RIGHT="",e.FILTERS="",e.DOT="",e.MINUS="",e.PLUS="",e.MAILS_AND_NOTIFICATIONS="",e.SAVE="",e.LOCKER="",e.ADMIN_INTEGRATION="",e.SYNC="",e.TAG="",e.BOOK_PLAIN="",e.UPLOAD="",e.ONLINE="",e.TAG_PLAIN="",e.ACCOUNT_SETTINGS="",e.PRINT="",e.DEFAULT_ROLES="",e.SHORTCUT_MENU="",e.RELATIVES_PLAIN="",e.RELATIVES="",e.PAUSE="",e.PLAY="",e.ADMIN_PORTAL="",e.STAR="",e.THUMBS_DOWN="",e.THUMBS_DOWN_PLAIN="",e.THUMBS_UP="",e.THUMBS_UP_PLAIN="",e.FEEDBACK_PLAIN="",e.RATE_PLAIN="",e.RATE="",e.OFFLINE_SETTINGS="",e.MY_COLLECTIONS="",e.THIN_ARROW_LEFT="",e.THIN_ARROW_RIGHT="",e.RESET="",e.MY_LIBRARY="",e.UNSTRUCTURED_DOC="",e.CONTEXTUAL="",e.THIN_ARROW_UP="",e.ARROW_RIGHT_TO_LINE="",e.DESKTOP="",e.TABLET_LANDSCAPE="",e.TABLET_PORTRAIT="",e.MOBILE_LANDSCAPE="",e.MOBILE_PORTRAIT="",e.DIAGRAM_SUNBURST="",e.DIAGRAM_SANKEY="",e.COMMENT_QUESTION="",e.COMMENT_QUESTION_PLAIN="",e.MESSAGE_BOT="",e.CHART_SIMPLE="",e.BARS_PROGRESS="",e.BOOK_OPEN_GEAR="",e.BOOK_OPEN_GEAR_SLASH="",e.LINE_CHART="",e.STACKED_CHART="",e.CHART_BAR_STACKED="",e.CHART_BAR_GROUPED="",e.EYE_SLASH="",e.X_MARK="",e.EXPAND_WIDE="",e.PIP="",e.PIP_WIDE="",e.LIFE_RING="",e.GLOBE="",e.PIGGY_BANK="",e.EXTLINK_LIGHT="",e.CLONE="",e.CLONE_LINK_SIMPLE="",e.CHART_BAR_NORMALIZED="",e.CONSUMER="",e.OCTAGON_XMARK="",e.HOURGLASS_HALF="",e.CLOCK="",e.CLOCK_THREE="",e.CALENDAR_DAY="",e.COMPUTER_MOUSE_MAGNIFYING_GLASS="",e.WAND_MAGIC_SPARKLES="",e.PAPER_PLANE="",e.CIRCLE_STOP="",e.ARROW_ROTATE_RIGHT="",e.ARROWS_ROTATE="",e.ALIGN_RIGHT="",e.FORMAT_CLEAR="",e.ALIGN_CENTER="",e.ALIGN_LEFT="",e.PALETTE="",e.BOLD="",e.ITALIC="",e.UNDERLINE="",e.STRIKETHROUGH="",e.LINK_SIMPLE_SLASH="",e.LINK_SIMPLE="",e.ROUTE="",e.CIRCLE_USER_SLASH="",e.CIRCLE_USER_CHECK="",e.LIST_MAGNIFYING_GLASS="",e.MEDAL="",e.THUMBS_UP_THUMBS_DOWN_SOLID="",e.ARROW_TURN_DOWN_RIGHT="",e.FLASK="",e.LOCK_KEYHOLE_OPEN_SOLID="",e.HOURGLASS_END="",e.CIRCLE_QUESTION="",e.GRIP_LINES_SOLID="",e.TRANSLATE_SPARKLE_SOLID="",e.CODE="",e.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="",e.PAPER_PLANE_SLASH="",e.COMPRESS="",e.EXPAND="",e.ARROW_ROTATE_LEFT="",e.EYE="",e.SHARE="󨃱",e.MOBILE_SMALL="",e.SPARKLES="",e.HAND_SOLID="",e.CLOCK_SOLID="",e.CONTEXT_MENU_CURSOR="",e.LANGUAGE_SLASH="",e.MAGNIFYING_GLASS_FLOPPY_DISK="",e.CABINET_FILING_FLOPPY_DISK="",e.BOOKMARK_SLASH="",e.CIRCLE_PAUSE="",e.CIRCLE_PLAY="",e.CIRCLE_STOP_PLAIN="",e.CLOUD_ARROW_DOWN="",e.SHARE_NODES="",e.BELL="",e.BELL_SLASH="",e.FILE="",e.HAND="",e.SQUARE_INFO_SOLID="",e.FILE_CODE="",e.BOX_CODE=""})(Nt||(Nt={}));var S;(function(e){e.UNKNOWN="",e.ABW="",e.AUDIO="",e.AVI="",e.CHM="",e.CODE="",e.CSV="",e.DITA="",e.EPUB="",e.EXCEL="",e.FLAC="",e.GIF="",e.GZIP="",e.HTML="",e.IMAGE="",e.JPEG="",e.JSON="",e.M4A="",e.MOV="",e.MP3="",e.MP4="",e.OGG="",e.PDF="",e.PNG="",e.POWERPOINT="",e.RAR="",e.STP="",e.TEXT="",e.VIDEO="",e.WAV="",e.WMA="",e.WORD="",e.XML="",e.YAML="",e.ZIP=""})(S||(S={}));var Gm=new Map([...["abw"].map(e=>[e,S.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(e=>[e,S.AUDIO]),...["avi"].map(e=>[e,S.AVI]),...["chm","xhs"].map(e=>[e,S.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(e=>[e,S.CODE]),...["csv"].map(e=>[e,S.CSV]),...["dita","ditamap","ditaval"].map(e=>[e,S.DITA]),...["epub"].map(e=>[e,S.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(e=>[e,S.EXCEL]),...["flac"].map(e=>[e,S.FLAC]),...["gif"].map(e=>[e,S.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(e=>[e,S.GZIP]),...["html","htm","xhtml"].map(e=>[e,S.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(e=>[e,S.IMAGE]),...["jpeg","jpg","jpe"].map(e=>[e,S.JPEG]),...["json"].map(e=>[e,S.JSON]),...["m4a","m4p"].map(e=>[e,S.M4A]),...["mov","qt"].map(e=>[e,S.MOV]),...["mp3"].map(e=>[e,S.MP3]),...["mp4","m4v"].map(e=>[e,S.MP4]),...["ogg","oga"].map(e=>[e,S.OGG]),...["pdf","ps"].map(e=>[e,S.PDF]),...["png"].map(e=>[e,S.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(e=>[e,S.POWERPOINT]),...["rar"].map(e=>[e,S.RAR]),...["stp"].map(e=>[e,S.STP]),...["txt","rtf","md","mdown"].map(e=>[e,S.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(e=>[e,S.VIDEO]),...["wav"].map(e=>[e,S.WAV]),...["wma"].map(e=>[e,S.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(e=>[e,S.WORD]),...["xml","xsl","rdf"].map(e=>[e,S.XML]),...["yaml","yml","x-yaml"].map(e=>[e,S.YAML]),...["zip"].map(e=>[e,S.ZIP])]);var $m={[S.ABW]:"#91ABC6",[S.AUDIO]:"#1795E3",[S.AVI]:"#E63324",[S.CHM]:"#71C3EB",[S.CODE]:"#71C3EB",[S.CSV]:"#1F7345",[S.DITA]:"#71C3EB",[S.EPUB]:"#85B926",[S.EXCEL]:"#1F7345",[S.FLAC]:"#1795E3",[S.GIF]:"#59B031",[S.GZIP]:"#F8AB36",[S.HTML]:"#71C3EB",[S.IMAGE]:"#59B031",[S.JPEG]:"#59B031",[S.JSON]:"#71C3EB",[S.M4A]:"#1795E3",[S.MOV]:"#E63324",[S.MP3]:"#1795E3",[S.MP4]:"#E63324",[S.OGG]:"#1795E3",[S.PDF]:"#E44948",[S.PNG]:"#59B031",[S.POWERPOINT]:"#B54A2B",[S.RAR]:"#F8AB36",[S.STP]:"#3764B1",[S.TEXT]:"#3162AB",[S.UNKNOWN]:"#999999",[S.VIDEO]:"#E63324",[S.WAV]:"#1795E3",[S.WMA]:"#1795E3",[S.WORD]:"#3162AB",[S.XML]:"#71C3EB",[S.YAML]:"#71C3EB",[S.ZIP]:"#F8AB36"};var Wi=C($()),me=C(k()),Le={size:me.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:me.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",me.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:me.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",me.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:me.FtCssVariableFactory.extend("--ft-icon-material-font-family","",me.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:me.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Fi=[Wi.css`
|
|
297
297
|
:host, i.ft-icon {
|
|
298
298
|
display: inline-flex;
|
|
299
299
|
align-items: center;
|
|
@@ -341,20 +341,20 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:t.extend("--ftds-con
|
|
|
341
341
|
.ft-icon--material {
|
|
342
342
|
font-family: ${Le.materialFontFamily}, "Material Icons", sans-serif;
|
|
343
343
|
}
|
|
344
|
-
`,me.noTextSelect];var We;(function(e){e.fluid_topics="fluid-topics",e.file_format="file-format",e.material="material"})(We||(We={}));var Qt=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},ae=class extends
|
|
344
|
+
`,me.noTextSelect];var We;(function(e){e.fluid_topics="fluid-topics",e.file_format="file-format",e.material="material"})(We||(We={}));var Qt=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},ae=class extends zi.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=Jt.nothing}render(){let r=this.variant&&Object.values(We).includes(this.variant)?this.variant:We.fluid_topics,o=r!==We.material||!!this.value;return Jt.html`
|
|
345
345
|
<i class="ft-icon ft-icon--${r} ft-no-text-select" part="icon icon-${r}">
|
|
346
|
-
${(0,
|
|
346
|
+
${(0,Gi.unsafeHTML)(this.resolvedIcon)}
|
|
347
347
|
<slot ?hidden=${o}></slot>
|
|
348
348
|
</i>
|
|
349
|
-
`}getTextContent(){var r,o;return(o=(r=this.slottedContent)===null||r===void 0?void 0:r.assignedNodes().map(n=>n.textContent).join("").trim())!==null&&o!==void 0?o:""}update(r){super.update(r),["value","variant"].some(o=>r.has(o))&&this.resolveIcon()}resolveIcon(){var r,o;let n=this.value||this.getTextContent();switch(this.variant){case We.file_format:this.resolvedIcon=(r=S[n.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:n;break;case We.material:this.resolvedIcon=this.value||Jt.nothing;break;default:this.resolvedIcon=(o=Nt[n.replace("-","_").toUpperCase()])!==null&&o!==void 0?o:n;break}}firstUpdated(r){super.firstUpdated(r),setTimeout(()=>this.resolveIcon())}};ae.elementDefinitions={};ae.styles=
|
|
350
|
-
`;var Wt=C(k());var Zs=C(k());var ts=C($()),q=C(Q()),ge=C(k());var
|
|
351
|
-
`;var on=class{addCommand(r,o=!1){R.commands.add(r,o)}consumeCommand(r){return R.commands.consume(r)}};window.FluidTopicsAppInfoStoreService=new on;var de=C(k());var Zi,Lt=class extends CustomEvent{constructor(r){super("ft-i18n-context-loaded",{detail:r})}},ol=Symbol("clearAfterUnitTest"),Lr=class extends(0,de.withEventBus)(ne){constructor(r){super(),this.messageContextProvider=r,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Zi]=()=>{this.defaultMessages={},this.cache=new de.CacheRegistry,this.listeners={}},this.currentUiLocale=R.getState().uiLocale,R.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:r}=R.getState();this.currentUiLocale!==r&&(this.currentUiLocale=r,this.cache.clearAll(),this.notifyAll())}addContext(r){let o=r.name.toLowerCase();this.cache.setFinal(o,r),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(r,o){var n;if(r=r.toLowerCase(),o&&Object.keys(o).length>0){let a={...(n=this.defaultMessages[r])!==null&&n!==void 0?n:{},...o};(0,de.deepEqual)(this.defaultMessages[r],a)||(this.defaultMessages[r]=a,await this.notify(r))}return this.fetchContext(r)}resolveContext(r){var o,n;return this.fetchContext(r),(n=(o=this.cache.getNow(r))===null||o===void 0?void 0:o.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(r,o){let n=r.toLowerCase();return this.resolveContext(n)[o]}resolveMessage(r,o,...n){var a;let i=r.toLowerCase(),c=this.resolveContext(i);return new de.ParametrizedLabelResolver((a=this.defaultMessages[i])!==null&&a!==void 0?a:{},c).resolve(o,...n)}async fetchContext(r){let o=!this.cache.has(r),n;try{n=await this.cache.get(r,()=>this.messageContextProvider(this.currentUiLocale,r)),o&&await this.notify(r)}catch(a){!(a instanceof de.CanceledPromiseError)&&o&&console.error(a)}return n}subscribe(r,o){var n;return r=r.toLowerCase(),this.listeners[r]=(n=this.listeners[r])!==null&&n!==void 0?n:new Set,this.listeners[r].add(o),()=>{var a;return(a=this.listeners[r])===null||a===void 0?void 0:a.delete(o)}}async notifyAll(){let r=Object.keys(this.listeners);document.body.dispatchEvent(new Lt({loadedContexts:r})),this.dispatchEvent(new Lt({loadedContexts:r})),await Promise.all(r.map(o=>this.notify(o,!1)))}async notify(r,o=!0){o&&(document.body.dispatchEvent(new Lt({loadedContexts:[r]})),this.dispatchEvent(new Lt({loadedContexts:[r]}))),this.listeners[r]!=null&&await Promise.all([...this.listeners[r].values()].map(n=>(0,de.delay)(0).then(()=>n()).catch(()=>null)))}};Zi=ol;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Lr{constructor(){super(async(e,r)=>(await this.awaitApi).getFluidTopicsMessageContext(e,r))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Lr{constructor(){super(async(e,r)=>(await this.awaitApi).getCustomMessageContext(e,r))}});var It=window.FluidTopicsI18nService,Ir=window.FluidTopicsCustomI18nService;var qi=C(k()),nn=class{highlightHtml(r,o,n){(0,qi.highlightHtml)(r,o,n)}};window.FluidTopicsHighlightHtmlService=new nn;var Yi=C(k());var an=class{isDate(r){var o,n,a,i;return(i=(a=((n=(o=R.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]).find(l=>l.key===r))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1}format(r,o){var n,a,i;return Yi.DateFormatter.format(r,(n=o?.locale)!==null&&n!==void 0?n:R.getState().uiLocale,(a=o?.longFormat)!==null&&a!==void 0?a:!1,(i=o?.withTime)!==null&&i!==void 0?i:!1)}};window.FluidTopicsDateService=new an;var Xi=C(k());var er=class{static get(r,o){var n,a;let i=R.getState(),{lang:c,region:l}=(a=(n=i.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&a!==void 0?a:{lang:"en",region:"US"};return new Xi.SearchPlaceConverter(i.baseUrl,r??20,i.searchInAllLanguagesAllowed,o??`${c}-${l}`)}};var sn=class{urlToSearchRequest(r){return er.get().parse(r)}searchRequestToUrl(r){return er.get().serialize(r)}};window.FluidTopicsUrlService=new sn;var ze=C(k());var at=class e extends CustomEvent{constructor(r){super(e.eventName,{detail:{currentItem:r}})}};at.eventName="change";var cn=class{itemName(r){return`fluid-topics-history-item-${r}`}get(r){let o=sessionStorage.getItem(this.itemName(r));return o?JSON.parse(o):void 0}set(r,o){sessionStorage.setItem(this.itemName(r),JSON.stringify(o))}},Ji=new cn;var _r=class e extends ze.WithEventBus{static build(){return new e(window.history,Ji,()=>window.location,!1)}constructor(r,o,n,a){var i,c;super(),this.history=r,this.historyStorage=o,this.windowLocation=n,this.states=[],this.realPushState=r.pushState,this.realReplaceState=r.replaceState,this.initialIndex=(c=(i=r.state)===null||i===void 0?void 0:i.index)!==null&&c!==void 0?c:r.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(a)}setCurrentState(r,o=!1){let n=o&&this.currentIndex===r.index-1;this.currentState={...this.buildCurrentState(),...r},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,ze.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new at(this.currentItem())),0)}installProxies(){let r=o=>(n,a,[i,c,l])=>{let u=o(),p={...u===this.currentIndex?this.currentState:void 0,...i,index:u,href:typeof l=="string"?l:(l??this.windowLocation()).href};n.apply(a,[p,c,l]),this.setCurrentState(p,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:r(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:r(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",r=>this.setCurrentState(r.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(r){for(let o=this.history.length-1;o>=0;o--)r?this.states[o]=this.historyStorage.get(o):setTimeout(()=>this.states[o]=this.historyStorage.get(o),this.history.length-o)}updateCurrentState(r){var o;let n={...this.buildCurrentState(),...r,index:this.currentIndex,title:(o=r?.title)!==null&&o!==void 0?o:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(r){this.addEventListener(at.eventName,r)}removeHistoryChangeListener(r){this.removeEventListener(at.eventName,r)}currentItem(){return(0,ze.deepCopy)(this.currentState)}back(){let r=this.previousDifferentMajorPosition();r>=0?this.history.go(r-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,ze.deepCopy)(this.states[this.previousDifferentMajorPosition()])}previousDifferentMajorPosition(){let r=this.currentIndex>0?this.currentIndex-1:0;for(;r>0&&!this.isDifferentMajorState(r);)r--;return r}forward(){let r=this.nextMajorPosition();r&&r<this.states.length?this.history.go(r-this.currentIndex):this.history.forward()}forwardItem(){let r=this.nextMajorPosition();if(r)return(0,ze.deepCopy)(this.states[r])}nextMajorPosition(){let r=this.currentIndex;if(!(r>=this.states.length)){do r++;while(r<this.states.length&&!this.isDifferentMajorState(r));return this.getHigherPositionInTheSameState(r)}}getHigherPositionInTheSameState(r){var o;let n=(o=this.states[r])===null||o===void 0?void 0:o.majorStateId;if(!n)return r;let a=r,i=r+1;for(;this.states.length>i&&!this.isDifferentMajorState(i,n);)this.hasState(i)&&(a=i),i++;return a}buildCurrentState(){var r,o;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(o=(r=this.history.state)===null||r===void 0?void 0:r.title)!==null&&o!==void 0?o:document.title}}hasState(r){return this.states[r]!=null}isDifferentMajorState(r,o){var n;if(!this.hasState(r))return!1;let a=o??this.currentState.majorStateId,i=(n=this.states[r])===null||n===void 0?void 0:n.majorStateId;return i==null||i!=a}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=_r.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),addHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(e),removeHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(e)});var Qi=R;function es(e,r){var o;return Qi.getState().authenticationRequired&&!(!((o=Qi.getState().session)===null||o===void 0)&&o.sessionAuthenticated)?Promise.resolve(r):e()}var z=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},M=class extends ge.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=()=>ot.get(),this.authenticationRequired=!1,this.messageContexts=[],this.cache=new ge.CacheRegistry,this.cleanSessionDebouncer=new ge.Debouncer,this.reloadConfiguration=()=>{this.cache.clear("availableContentLocales"),this.updateAvailableContentLocales()}}render(){return ts.html`
|
|
349
|
+
`}getTextContent(){var r,o;return(o=(r=this.slottedContent)===null||r===void 0?void 0:r.assignedNodes().map(n=>n.textContent).join("").trim())!==null&&o!==void 0?o:""}update(r){super.update(r),["value","variant"].some(o=>r.has(o))&&this.resolveIcon()}resolveIcon(){var r,o;let n=this.value||this.getTextContent();switch(this.variant){case We.file_format:this.resolvedIcon=(r=S[n.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:n;break;case We.material:this.resolvedIcon=this.value||Jt.nothing;break;default:this.resolvedIcon=(o=Nt[n.replace("-","_").toUpperCase()])!==null&&o!==void 0?o:n;break}}firstUpdated(r){super.firstUpdated(r),setTimeout(()=>this.resolveIcon())}};ae.elementDefinitions={};ae.styles=Fi;Qt([(0,Fe.property)()],ae.prototype,"variant",void 0);Qt([(0,Fe.property)()],ae.prototype,"value",void 0);Qt([(0,Fe.property)({reflect:!0,attribute:"aria-hidden"})],ae.prototype,"ariaHidden",void 0);Qt([(0,Fe.state)()],ae.prototype,"resolvedIcon",void 0);Qt([(0,Fe.query)("slot")],ae.prototype,"slottedContent",void 0);(0,$i.customElement)("ft-icon")(ae);var Js=C(k());var Jr=C($()),Qr=C(Q()),eo=C(k());var ji=C($());var Ki=ji.css`
|
|
350
|
+
`;var Wt=C(k());var Zs=C(k());var ts=C($()),q=C(Q()),ge=C(k());var Vi=C($());var Zi=Vi.css`
|
|
351
|
+
`;var on=class{addCommand(r,o=!1){R.commands.add(r,o)}consumeCommand(r){return R.commands.consume(r)}};window.FluidTopicsAppInfoStoreService=new on;var de=C(k());var qi,Lt=class extends CustomEvent{constructor(r){super("ft-i18n-context-loaded",{detail:r})}},ol=Symbol("clearAfterUnitTest"),Lr=class extends(0,de.withEventBus)(ne){constructor(r){super(),this.messageContextProvider=r,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[qi]=()=>{this.defaultMessages={},this.cache=new de.CacheRegistry,this.listeners={}},this.currentUiLocale=R.getState().uiLocale,R.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:r}=R.getState();this.currentUiLocale!==r&&(this.currentUiLocale=r,this.cache.clearAll(),this.notifyAll())}addContext(r){let o=r.name.toLowerCase();this.cache.setFinal(o,r),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(r,o){var n;if(r=r.toLowerCase(),o&&Object.keys(o).length>0){let a={...(n=this.defaultMessages[r])!==null&&n!==void 0?n:{},...o};(0,de.deepEqual)(this.defaultMessages[r],a)||(this.defaultMessages[r]=a,await this.notify(r))}return this.fetchContext(r)}resolveContext(r){var o,n;return this.fetchContext(r),(n=(o=this.cache.getNow(r))===null||o===void 0?void 0:o.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(r,o){let n=r.toLowerCase();return this.resolveContext(n)[o]}resolveMessage(r,o,...n){var a;let i=r.toLowerCase(),c=this.resolveContext(i);return new de.ParametrizedLabelResolver((a=this.defaultMessages[i])!==null&&a!==void 0?a:{},c).resolve(o,...n)}async fetchContext(r){let o=!this.cache.has(r),n;try{n=await this.cache.get(r,()=>this.messageContextProvider(this.currentUiLocale,r)),o&&await this.notify(r)}catch(a){!(a instanceof de.CanceledPromiseError)&&o&&console.error(a)}return n}subscribe(r,o){var n;return r=r.toLowerCase(),this.listeners[r]=(n=this.listeners[r])!==null&&n!==void 0?n:new Set,this.listeners[r].add(o),()=>{var a;return(a=this.listeners[r])===null||a===void 0?void 0:a.delete(o)}}async notifyAll(){let r=Object.keys(this.listeners);document.body.dispatchEvent(new Lt({loadedContexts:r})),this.dispatchEvent(new Lt({loadedContexts:r})),await Promise.all(r.map(o=>this.notify(o,!1)))}async notify(r,o=!0){o&&(document.body.dispatchEvent(new Lt({loadedContexts:[r]})),this.dispatchEvent(new Lt({loadedContexts:[r]}))),this.listeners[r]!=null&&await Promise.all([...this.listeners[r].values()].map(n=>(0,de.delay)(0).then(()=>n()).catch(()=>null)))}};qi=ol;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Lr{constructor(){super(async(e,r)=>(await this.awaitApi).getFluidTopicsMessageContext(e,r))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Lr{constructor(){super(async(e,r)=>(await this.awaitApi).getCustomMessageContext(e,r))}});var It=window.FluidTopicsI18nService,Ir=window.FluidTopicsCustomI18nService;var Yi=C(k()),nn=class{highlightHtml(r,o,n){(0,Yi.highlightHtml)(r,o,n)}};window.FluidTopicsHighlightHtmlService=new nn;var Xi=C(k());var an=class{isDate(r){var o,n,a,i;return(i=(a=((n=(o=R.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]).find(l=>l.key===r))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1}format(r,o){var n,a,i;return Xi.DateFormatter.format(r,(n=o?.locale)!==null&&n!==void 0?n:R.getState().uiLocale,(a=o?.longFormat)!==null&&a!==void 0?a:!1,(i=o?.withTime)!==null&&i!==void 0?i:!1)}};window.FluidTopicsDateService=new an;var Ji=C(k());var er=class{static get(r,o){var n,a;let i=R.getState(),{lang:c,region:l}=(a=(n=i.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&a!==void 0?a:{lang:"en",region:"US"};return new Ji.SearchPlaceConverter(i.baseUrl,r??20,i.searchInAllLanguagesAllowed,o??`${c}-${l}`)}};var sn=class{urlToSearchRequest(r){return er.get().parse(r)}searchRequestToUrl(r){return er.get().serialize(r)}};window.FluidTopicsUrlService=new sn;var ze=C(k());var at=class e extends CustomEvent{constructor(r){super(e.eventName,{detail:{currentItem:r}})}};at.eventName="change";var cn=class{itemName(r){return`fluid-topics-history-item-${r}`}get(r){let o=sessionStorage.getItem(this.itemName(r));return o?JSON.parse(o):void 0}set(r,o){sessionStorage.setItem(this.itemName(r),JSON.stringify(o))}},Qi=new cn;var _r=class e extends ze.WithEventBus{static build(){return new e(window.history,Qi,()=>window.location,!1)}constructor(r,o,n,a){var i,c;super(),this.history=r,this.historyStorage=o,this.windowLocation=n,this.states=[],this.realPushState=r.pushState,this.realReplaceState=r.replaceState,this.initialIndex=(c=(i=r.state)===null||i===void 0?void 0:i.index)!==null&&c!==void 0?c:r.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(a)}setCurrentState(r,o=!1){let n=o&&this.currentIndex===r.index-1;this.currentState={...this.buildCurrentState(),...r},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,ze.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new at(this.currentItem())),0)}installProxies(){let r=o=>(n,a,[i,c,l])=>{let u=o(),p={...u===this.currentIndex?this.currentState:void 0,...i,index:u,href:typeof l=="string"?l:(l??this.windowLocation()).href};n.apply(a,[p,c,l]),this.setCurrentState(p,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:r(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:r(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",r=>this.setCurrentState(r.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(r){for(let o=this.history.length-1;o>=0;o--)r?this.states[o]=this.historyStorage.get(o):setTimeout(()=>this.states[o]=this.historyStorage.get(o),this.history.length-o)}updateCurrentState(r){var o;let n={...this.buildCurrentState(),...r,index:this.currentIndex,title:(o=r?.title)!==null&&o!==void 0?o:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(r){this.addEventListener(at.eventName,r)}removeHistoryChangeListener(r){this.removeEventListener(at.eventName,r)}currentItem(){return(0,ze.deepCopy)(this.currentState)}back(){let r=this.previousDifferentMajorPosition();r>=0?this.history.go(r-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,ze.deepCopy)(this.states[this.previousDifferentMajorPosition()])}previousDifferentMajorPosition(){let r=this.currentIndex>0?this.currentIndex-1:0;for(;r>0&&!this.isDifferentMajorState(r);)r--;return r}forward(){let r=this.nextMajorPosition();r&&r<this.states.length?this.history.go(r-this.currentIndex):this.history.forward()}forwardItem(){let r=this.nextMajorPosition();if(r)return(0,ze.deepCopy)(this.states[r])}nextMajorPosition(){let r=this.currentIndex;if(!(r>=this.states.length)){do r++;while(r<this.states.length&&!this.isDifferentMajorState(r));return this.getHigherPositionInTheSameState(r)}}getHigherPositionInTheSameState(r){var o;let n=(o=this.states[r])===null||o===void 0?void 0:o.majorStateId;if(!n)return r;let a=r,i=r+1;for(;this.states.length>i&&!this.isDifferentMajorState(i,n);)this.hasState(i)&&(a=i),i++;return a}buildCurrentState(){var r,o;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(o=(r=this.history.state)===null||r===void 0?void 0:r.title)!==null&&o!==void 0?o:document.title}}hasState(r){return this.states[r]!=null}isDifferentMajorState(r,o){var n;if(!this.hasState(r))return!1;let a=o??this.currentState.majorStateId,i=(n=this.states[r])===null||n===void 0?void 0:n.majorStateId;return i==null||i!=a}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=_r.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),addHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(e),removeHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(e)});function es(e,r){let{authenticationRequired:o,session:n}=R.getState();return o&&!n?.sessionAuthenticated?Promise.resolve(r):e()}var z=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},M=class extends ge.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=()=>ot.get(),this.authenticationRequired=!1,this.messageContexts=[],this.cache=new ge.CacheRegistry,this.cleanSessionDebouncer=new ge.Debouncer,this.reloadConfiguration=()=>{this.cache.clear("availableContentLocales"),this.updateAvailableContentLocales()}}render(){return ts.html`
|
|
352
352
|
<slot></slot>
|
|
353
|
-
`}connectedCallback(){super.connectedCallback(),R.addEventListener(rt.eventName,this.reloadConfiguration)}disconnectedCallback(){R.addEventListener(rt.eventName,this.reloadConfiguration),super.disconnectedCallback()}update(r){var o,n,a,i,c,l,u;super.update(r),r.has("baseUrl")&&(R.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),r.has("apiIntegrationIdentifier")&&R.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),r.has("apiIntegrationAppVersion")&&R.actions.apiIntegrationAppVersion(this.apiIntegrationAppVersion),r.has("uiLocale")&&R.actions.uiLocale(this.uiLocale),r.has("metadataConfiguration")&&R.actions.metadataConfiguration(this.metadataConfiguration),r.has("noCustom")&&R.actions.noCustom(this.noCustom),r.has("editorMode")&&R.actions.editorMode(this.editorMode),r.has("noCustomComponent")&&R.actions.noCustomComponent(this.noCustomComponent),r.has("session")&&R.actions.session(this.session),r.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(p=>It.addContext(p)),r.has("openExternalDocumentInNewTab")&&R.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),r.has("navigatorOnline")&&R.actions.navigatorOnline(this.navigatorOnline),r.has("forcedOffline")&&R.actions.forcedOffline(this.forcedOffline),r.has("localesConfiguration")&&(R.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),R.actions.availableUiLocales((a=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&a!==void 0?a:[]),R.actions.searchInAllLanguagesAllowed((c=(i=this.localesConfiguration)===null||i===void 0?void 0:i.allLanguagesAllowed)!==null&&c!==void 0?c:!1)),r.has("authenticationRequired")&&R.actions.authenticationRequired(this.authenticationRequired),r.has("availableContentLocales")&&R.actions.availableContentLocales((u=(l=this.availableContentLocales)===null||l===void 0?void 0:l.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 r=await this.apiProvider().getCurrentSession();return r.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},r.idleTimeoutInMillis),r})}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",()=>es(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}))}};M.elementDefinitions={};M.styles=Vi;z([(0,q.property)()],M.prototype,"baseUrl",void 0);z([(0,q.property)()],M.prototype,"apiIntegrationIdentifier",void 0);z([(0,q.property)()],M.prototype,"apiIntegrationAppVersion",void 0);z([(0,q.property)()],M.prototype,"uiLocale",void 0);z([(0,ge.jsonProperty)(null)],M.prototype,"availableUiLocales",void 0);z([(0,ge.jsonProperty)(null)],M.prototype,"metadataConfiguration",void 0);z([(0,q.property)({type:Boolean})],M.prototype,"editorMode",void 0);z([(0,q.property)({type:Boolean})],M.prototype,"noCustom",void 0);z([(0,q.property)({type:Boolean})],M.prototype,"openExternalDocumentInNewTab",void 0);z([(0,q.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],M.prototype,"noCustomComponent",void 0);z([(0,q.property)({type:Boolean})],M.prototype,"withManualResources",void 0);z([(0,q.property)({type:Boolean})],M.prototype,"navigatorOnline",void 0);z([(0,q.property)({type:Boolean})],M.prototype,"forcedOffline",void 0);z([(0,q.property)({type:Object})],M.prototype,"apiProvider",void 0);z([(0,q.property)({type:Boolean})],M.prototype,"authenticationRequired",void 0);z([(0,ge.jsonProperty)([])],M.prototype,"messageContexts",void 0);z([(0,ge.jsonProperty)(void 0)],M.prototype,"session",void 0);z([(0,q.state)()],M.prototype,"localesConfiguration",void 0);z([(0,q.state)()],M.prototype,"availableContentLocales",void 0);var Pn=C(Q());function nl(e,r){if(e===r)return!0;if(e&&r&&typeof e=="object"&&typeof r=="object"){if(e.constructor!==r.constructor)return!1;let o,n,a;if(Array.isArray(e)){if(o=e.length,o!=r.length)return!1;for(n=o;n--!==0;)if(!Pr(e[n],r[n]))return!1;return!0}if(e instanceof Map&&r instanceof Map){if(e.size!==r.size)return!1;for(n of e.entries())if(!r.has(n[0]))return!1;for(n of e.entries())if(!Pr(n[1],r.get(n[0])))return!1;return!0}if(e instanceof Set&&r instanceof Set){if(e.size!==r.size)return!1;for(n of e.entries())if(!r.has(n[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();let i=c=>Object.keys(c).filter(l=>c[l]!=null);if(a=i(e),o=a.length,o!==i(r).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(r,a[n]))return!1;for(n=o;n--!==0;){let c=a[n];if(!Pr(e[c],r[c]))return!1}return!0}return e!==e&&r!==r||e==null&&r==null}function Pr(e,r){try{return nl(e,r)}catch{return!1}}function tr(e,r){return!Pr(e,r)}function kr(e,r){let o=n=>n[e]===!0;return n=>{if(o(n))return n;let a=r(n);return a[e]=!0,a}}var rs=C(Q(),1);var ln=e=>{let r=e??{};return(o,n)=>{var a;let i={hasChanged:tr,attribute:!1,...r};(0,rs.property)(i)(o,n);let c=o.constructor;c.reduxProperties=new Map(c.reduxProperties),c.reduxProperties.set(n,{selector:(a=r.selector)!==null&&a!==void 0?a:l=>l[n],store:r.store})}};var Dr=class{constructor(){this.queue=[]}add(r,o=!1){o&&this.clear(r.type),this.queue.push(r)}consume(r){let o=this.queue.find(n=>n.type===r);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}clear(r){typeof r=="string"?this.queue=this.queue.filter(o=>o.type!==r):this.queue=this.queue.filter(o=>!r.test(o.type))}};var it=C(Q(),1);var os=C(Q(),1);function ns(e,r){let o=()=>JSON.parse(JSON.stringify(e));return(0,os.property)({type:Object,converter:{fromAttribute:n=>{if(n==null)return o();try{return JSON.parse(n)}catch{return o()}},toAttribute:n=>JSON.stringify(n)},hasChanged:tr,...r??{}})}var Mr=class{constructor(r=0){this.timeout=r,this.callbacks=[]}run(r,o){return this.callbacks=[r],this.debounce(o)}queue(r,o){return this.callbacks.push(r),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(r){return this.promise==null&&(this.promise=new Promise((o,n)=>{this.resolvePromise=o,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),r??this.timeout),this.promise}async runCallbacks(){var r,o;let n=[...this.callbacks];this.callbacks=[];let a=(r=this.rejectPromise)!==null&&r!==void 0?r:()=>null,i=(o=this.resolvePromise)!==null&&o!==void 0?o:()=>null;this.clearPromise();for(let c of n)try{await c()}catch(l){a(l);return}i(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var is=C($(),1);var Br=globalThis,al=Br.ShadowRoot&&(Br.ShadyCSS===void 0||Br.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,nb=Symbol();var as=(e,r)=>{if(al)e.adoptedStyleSheets=r.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet);else for(let o of r){let n=document.createElement("style"),a=Br.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=o.cssText,e.appendChild(n)}};var Ur=class extends is.LitElement{createRenderRoot(){let r=this.constructor;r.elementDefinitions&&!r.registry&&(r.registry=new CustomElementRegistry,Object.entries(r.elementDefinitions).forEach(([a,i])=>r.registry.define(a,i)));let o={...r.shadowRootOptions,customElements:r.registry},n=this.renderOptions.creationScope=this.attachShadow(o);return as(n,r.elementStyles),n}};function ss(e,r,...o){var n;let a=e.querySelector(r);for(let i of o)a=(n=a?.shadowRoot)===null||n===void 0?void 0:n.querySelector(i);return a}var Pt=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},us,cs=Symbol("constructorPrototype"),ls=Symbol("constructorName"),ps=Symbol("exportpartsDebouncer"),ds=Symbol("dynamicDependenciesLoaded"),_t=class e extends CustomEvent{constructor(){super(e.eventName,{bubbles:!0})}};_t.eventName="exportparts-updated";var Ee=class extends Ur{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[us]=new Mr(5),this.scheduleExportpartsUpdate=()=>{var r,o,n;(!((r=this.exportpartsPrefix)===null||r===void 0)&&r.trim()||(n=(o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)!==null&&n!==void 0&&n)&&this[ps].run(()=>{var a,i;!((a=this.exportpartsPrefix)===null||a===void 0)&&a.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((i=this.exportpartsPrefixes)===null||i===void 0?void 0:i.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[ls]=this.constructor.name,this[cs]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[ls]&&Object.setPrototypeOf(this,this[cs])}connectedCallback(){var r;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 o=this.constructor;o[ds]||(o[ds]=!0,this.importDynamicDependencies()),(r=this.shadowRoot)===null||r===void 0||r.addEventListener(_t.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var r;super.disconnectedCallback(),(r=this.shadowRoot)===null||r===void 0||r.removeEventListener(_t.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(r){super.updated(r),this.updateComplete.then(()=>{this.contentAvailableCallback(r),this.focusElementToFocus(r),this.applyCustomStylesheet(r),this.scheduleExportpartsUpdate(),r.has("exportparts")&&this.dispatchEvent(new _t)})}contentAvailableCallback(r){}focusElementToFocus(r){if(r.has("elementToFocus")&&this.elementToFocus!=null){let{element:o,selector:n,shadowPath:a}=this.elementToFocus;if(n!=null){let i=[...a??[],n];o=ss(this.shadowRoot,...i)}o?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||o?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(r){var o,n,a;if(((n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(i=>i.remove()),this.useAdoptedStyleSheets){if(r.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((a=this.customStylesheet)!==null&&a!==void 0?a:"")}catch(i){console.error(i,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let i=document.createElement("style");i.classList.add("ft-lit-element--custom-stylesheet"),i.innerHTML=this.customStylesheet,this.shadowRoot.append(i)}}setExportpartsAttribute(r){var o,n,a,i,c,l;let u=m=>m!=null&&m.trim().length>0,p=r.filter(u).map(m=>m.trim());if(p.length===0){this.exportparts=void 0;return}let y=new Set;for(let m of(n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let x=(i=(a=m.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&i!==void 0?i:[],b=(l=(c=m.getAttribute("exportparts"))===null||c===void 0?void 0:c.split(",").map(A=>A.split(":")[1]))!==null&&l!==void 0?l:[],v=[...x,...b].filter(u).map(A=>A.trim());for(let A of v)y.add(A)}if(y.size===0){this.exportparts=void 0;return}let f=[...y.values()].flatMap(m=>p.map(x=>`${m}:${x}--${m}`));this.exportparts=[...this.part,...f].join(", ")}};us=ps;Pt([(0,it.property)()],Ee.prototype,"exportpartsPrefix",void 0);Pt([ns([])],Ee.prototype,"exportpartsPrefixes",void 0);Pt([(0,it.property)({reflect:!0})],Ee.prototype,"exportparts",void 0);Pt([(0,it.property)()],Ee.prototype,"customStylesheet",void 0);Pt([(0,it.property)()],Ee.prototype,"elementToFocus",void 0);Pt([(0,it.state)()],Ee.prototype,"useAdoptedStyleSheets",void 0);function Hr(e){var r;return(r=e?.isFtReduxStore)!==null&&r!==void 0?r:!1}var rr=Symbol("internalReduxEventsUnsubscribers"),Ge=Symbol("internalStoresUnsubscribers"),st=Symbol("internalStores"),il=kr(Symbol("withRedux"),function(e){var r,o,n;class a extends e{constructor(){super(...arguments),this[r]=new Map,this[o]=new Map,this[n]=new Map}get reduxConstructor(){return this.constructor}willUpdate(c){super.willUpdate(c),[...this.reduxConstructor.reduxReactiveProperties].some(l=>c.has(l))&&this.updateFromStores()}getUnnamedStore(){if(this[st].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[st].values()][0]}getStore(c){return c==null?this.getUnnamedStore():this[st].get(c)}addStore(c,l){var u;l=(u=l??c.name)!==null&&u!==void 0?u:"default-store",this.unsubscribeFromStore(l),this[st].set(l,c),this.subscribeToStore(l,c),this.updateFromStores()}removeStore(c){let l=typeof c=="string"?c:c.name;this.unsubscribeFromStore(l),this[st].delete(l)}setupStores(){this.unsubscribeFromStores(),this[st].forEach((c,l)=>this.subscribeToStore(l,c)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((c,l)=>{let u=this.constructor.getPropertyOptions(l);if(!u?.attribute||!this.hasAttribute(typeof u?.attribute=="string"?u.attribute:l)){let p=this.getStore(c.store);p&&(c.store?this[Ge].has(c.store):this[Ge].size>0)&&(this[l]=c.selector(p.getState(),this))}})}subscribeToStore(c,l){var u;this[Ge].set(c,l.subscribe(()=>this.updateFromStores())),this[rr].set(c,[]),Hr(l)&&l.eventBus&&((u=this.reduxConstructor.reduxEventListeners)===null||u===void 0||u.forEach((p,y)=>{if(typeof this[y]=="function"&&(!p.store||l.name===p.store)){let f=m=>this[y](m);l.addEventListener(p.eventName,f),this[rr].get(c).push(()=>l.removeEventListener(p.eventName,f))}})),this.onStoreAvailable(c)}unsubscribeFromStores(){this[Ge].forEach((c,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(c){var l;this[Ge].has(c)&&this[Ge].get(c)(),this[Ge].delete(c),(l=this[rr].get(c))===null||l===void 0||l.forEach(u=>u()),this[rr].delete(c)}onStoreAvailable(c){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return r=Ge,o=st,n=rr,a.reduxProperties=new Map,a.reduxReactiveProperties=new Set,a.reduxEventListeners=new Map,a}),fs=class extends il(Ee){};function ue(e){for(var r=arguments.length,o=Array(r>1?r-1:0),n=1;n<r;n++)o[n-1]=arguments[n];if(0)var a,i;throw Error("[Immer] minified error nr: "+e+(o.length?" "+o.map(function(c){return"'"+c+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Ie(e){return!!e&&!!e[B]}function be(e){var r;return!!e&&(function(o){if(!o||typeof o!="object")return!1;var n=Object.getPrototypeOf(o);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===hl}(e)||Array.isArray(e)||!!e[vs]||!!(!((r=e.constructor)===null||r===void 0)&&r[vs])||bn(e)||xn(e))}function ct(e,r,o){o===void 0&&(o=!1),Mt(e)===0?(o?Object.keys:Dt)(e).forEach(function(n){o&&typeof n=="symbol"||r(n,e[n],e)}):e.forEach(function(n,a){return r(a,n,e)})}function Mt(e){var r=e[B];return r?r.i>3?r.i-4:r.i:Array.isArray(e)?1:bn(e)?2:xn(e)?3:0}function kt(e,r){return Mt(e)===2?e.has(r):Object.prototype.hasOwnProperty.call(e,r)}function sl(e,r){return Mt(e)===2?e.get(r):e[r]}function Ss(e,r,o){var n=Mt(e);n===2?e.set(r,o):n===3?e.add(o):e[r]=o}function Os(e,r){return e===r?e!==0||1/e==1/r:e!=e&&r!=r}function bn(e){return pl&&e instanceof Map}function xn(e){return fl&&e instanceof Set}function $e(e){return e.o||e.t}function vn(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var r=As(e);delete r[B];for(var o=Dt(r),n=0;n<o.length;n++){var a=o[n],i=r[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(r[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[a]})}return Object.create(Object.getPrototypeOf(e),r)}function Sn(e,r){return r===void 0&&(r=!1),On(e)||Ie(e)||!be(e)||(Mt(e)>1&&(e.set=e.add=e.clear=e.delete=cl),Object.freeze(e),r&&ct(e,function(o,n){return Sn(n,!0)},!0)),e}function cl(){ue(2)}function On(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Ae(e){var r=gn[e];return r||ue(18,e),r}function ll(e,r){gn[e]||(gn[e]=r)}function hn(){return nr}function dn(e,r){r&&(Ae("Patches"),e.u=[],e.s=[],e.v=r)}function Wr(e){yn(e),e.p.forEach(dl),e.p=null}function yn(e){e===nr&&(nr=e.l)}function hs(e){return nr={p:[],l:nr,h:e,m:!0,_:0}}function dl(e){var r=e[B];r.i===0||r.i===1?r.j():r.g=!0}function un(e,r){r._=r.p.length;var o=r.p[0],n=e!==void 0&&e!==o;return r.h.O||Ae("ES5").S(r,e,n),n?(o[B].P&&(Wr(r),ue(4)),be(e)&&(e=Fr(r,e),r.l||zr(r,e)),r.u&&Ae("Patches").M(o[B].t,e,r.u,r.s)):e=Fr(r,o,[]),Wr(r),r.u&&r.v(r.u,r.s),e!==Es?e:void 0}function Fr(e,r,o){if(On(r))return r;var n=r[B];if(!n)return ct(r,function(l,u){return ys(e,n,r,l,u,o)},!0),r;if(n.A!==e)return r;if(!n.P)return zr(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=vn(n.k):n.o,i=a,c=!1;n.i===3&&(i=new Set(a),a.clear(),c=!0),ct(i,function(l,u){return ys(e,n,a,l,u,o,c)}),zr(e,a,!1),o&&e.u&&Ae("Patches").N(n,o,e.u,e.s)}return n.o}function ys(e,r,o,n,a,i,c){if(Ie(a)){var l=Fr(e,a,i&&r&&r.i!==3&&!kt(r.R,n)?i.concat(n):void 0);if(Ss(o,n,l),!Ie(l))return;e.m=!1}else c&&o.add(a);if(be(a)&&!On(a)){if(!e.h.D&&e._<1)return;Fr(e,a),r&&r.A.l||zr(e,a)}}function zr(e,r,o){o===void 0&&(o=!1),!e.l&&e.h.D&&e.m&&Sn(r,o)}function pn(e,r){var o=e[B];return(o?$e(o):e)[r]}function ms(e,r){if(r in e)for(var o=Object.getPrototypeOf(e);o;){var n=Object.getOwnPropertyDescriptor(o,r);if(n)return n;o=Object.getPrototypeOf(o)}}function je(e){e.P||(e.P=!0,e.l&&je(e.l))}function fn(e){e.o||(e.o=vn(e.t))}function mn(e,r,o){var n=bn(r)?Ae("MapSet").F(r,o):xn(r)?Ae("MapSet").T(r,o):e.O?function(a,i){var c=Array.isArray(a),l={i:c?1:0,A:i?i.A:hn(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},u=l,p=ar;c&&(u=[l],p=or);var y=Proxy.revocable(u,p),f=y.revoke,m=y.proxy;return l.k=m,l.j=f,m}(r,o):Ae("ES5").J(r,o);return(o?o.A:hn()).p.push(n),n}function ul(e){return Ie(e)||ue(22,e),function r(o){if(!be(o))return o;var n,a=o[B],i=Mt(o);if(a){if(!a.P&&(a.i<4||!Ae("ES5").K(a)))return a.t;a.I=!0,n=gs(o,i),a.I=!1}else n=gs(o,i);return ct(n,function(c,l){a&&sl(a.t,c)===l||Ss(n,c,r(l))}),i===3?new Set(n):n}(e)}function gs(e,r){switch(r){case 2:return new Map(e);case 3:return Array.from(e)}return vn(e)}function Cs(){function e(c,l){var u=i[c];return u?u.enumerable=l:i[c]=u={configurable:!0,enumerable:l,get:function(){var p=this[B];return ar.get(p,c)},set:function(p){var y=this[B];ar.set(y,c,p)}},u}function r(c){for(var l=c.length-1;l>=0;l--){var u=c[l][B];if(!u.P)switch(u.i){case 5:n(u)&&je(u);break;case 4:o(u)&&je(u)}}}function o(c){for(var l=c.t,u=c.k,p=Dt(u),y=p.length-1;y>=0;y--){var f=p[y];if(f!==B){var m=l[f];if(m===void 0&&!kt(l,f))return!0;var x=u[f],b=x&&x[B];if(b?b.t!==m:!Os(x,m))return!0}}var v=!!l[B];return p.length!==Dt(l).length+(v?0:1)}function n(c){var l=c.k;if(l.length!==c.t.length)return!0;var u=Object.getOwnPropertyDescriptor(l,l.length-1);if(u&&!u.get)return!0;for(var p=0;p<l.length;p++)if(!l.hasOwnProperty(p))return!0;return!1}function a(c){c.g&&ue(3,JSON.stringify($e(c)))}var i={};ll("ES5",{J:function(c,l){var u=Array.isArray(c),p=function(f,m){if(f){for(var x=Array(m.length),b=0;b<m.length;b++)Object.defineProperty(x,""+b,e(b,!0));return x}var v=As(m);delete v[B];for(var A=Dt(v),E=0;E<A.length;E++){var w=A[E];v[w]=e(w,f||!!v[w].enumerable)}return Object.create(Object.getPrototypeOf(m),v)}(u,c),y={i:u?5:4,A:l?l.A:hn(),P:!1,I:!1,R:{},l,t:c,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,B,{value:y,writable:!0}),p},S:function(c,l,u){u?Ie(l)&&l[B].A===c&&r(c.p):(c.u&&function p(y){if(y&&typeof y=="object"){var f=y[B];if(f){var m=f.t,x=f.k,b=f.R,v=f.i;if(v===4)ct(x,function(I){I!==B&&(m[I]!==void 0||kt(m,I)?b[I]||p(x[I]):(b[I]=!0,je(f)))}),ct(m,function(I){x[I]!==void 0||kt(x,I)||(b[I]=!1,je(f))});else if(v===5){if(n(f)&&(je(f),b.length=!0),x.length<m.length)for(var A=x.length;A<m.length;A++)b[A]=!1;else for(var E=m.length;E<x.length;E++)b[E]=!0;for(var w=Math.min(x.length,m.length),L=0;L<w;L++)x.hasOwnProperty(L)||(b[L]=!0),b[L]===void 0&&p(x[L])}}}}(c.p[0]),r(c.p))},K:function(c){return c.i===4?o(c):n(c)}})}var bs,nr,Cn=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",pl=typeof Map<"u",fl=typeof Set<"u",xs=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Es=Cn?Symbol.for("immer-nothing"):((bs={})["immer-nothing"]=!0,bs),vs=Cn?Symbol.for("immer-draftable"):"__$immer_draftable",B=Cn?Symbol.for("immer-state"):"__$immer_state";var hl=""+Object.prototype.constructor,Dt=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,As=Object.getOwnPropertyDescriptors||function(e){var r={};return Dt(e).forEach(function(o){r[o]=Object.getOwnPropertyDescriptor(e,o)}),r},gn={},ar={get:function(e,r){if(r===B)return e;var o=$e(e);if(!kt(o,r))return function(a,i,c){var l,u=ms(i,c);return u?"value"in u?u.value:(l=u.get)===null||l===void 0?void 0:l.call(a.k):void 0}(e,o,r);var n=o[r];return e.I||!be(n)?n:n===pn(e.t,r)?(fn(e),e.o[r]=mn(e.A.h,n,e)):n},has:function(e,r){return r in $e(e)},ownKeys:function(e){return Reflect.ownKeys($e(e))},set:function(e,r,o){var n=ms($e(e),r);if(n?.set)return n.set.call(e.k,o),!0;if(!e.P){var a=pn($e(e),r),i=a?.[B];if(i&&i.t===o)return e.o[r]=o,e.R[r]=!1,!0;if(Os(o,a)&&(o!==void 0||kt(e.t,r)))return!0;fn(e),je(e)}return e.o[r]===o&&(o!==void 0||r in e.o)||Number.isNaN(o)&&Number.isNaN(e.o[r])||(e.o[r]=o,e.R[r]=!0),!0},deleteProperty:function(e,r){return pn(e.t,r)!==void 0||r in e.t?(e.R[r]=!1,fn(e),je(e)):delete e.R[r],e.o&&delete e.o[r],!0},getOwnPropertyDescriptor:function(e,r){var o=$e(e),n=Reflect.getOwnPropertyDescriptor(o,r);return n&&{writable:!0,configurable:e.i!==1||r!=="length",enumerable:n.enumerable,value:o[r]}},defineProperty:function(){ue(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){ue(12)}},or={};ct(ar,function(e,r){or[e]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)}}),or.deleteProperty=function(e,r){return or.set.call(this,e,r,void 0)},or.set=function(e,r,o){return ar.set.call(this,e[0],r,o,e[0])};var yl=function(){function e(o){var n=this;this.O=xs,this.D=!0,this.produce=function(a,i,c){if(typeof a=="function"&&typeof i!="function"){var l=i;i=a;var u=n;return function(v){var A=this;v===void 0&&(v=l);for(var E=arguments.length,w=Array(E>1?E-1:0),L=1;L<E;L++)w[L-1]=arguments[L];return u.produce(v,function(I){var _;return(_=i).call.apply(_,[A,I].concat(w))})}}var p;if(typeof i!="function"&&ue(6),c!==void 0&&typeof c!="function"&&ue(7),be(a)){var y=hs(n),f=mn(n,a,void 0),m=!0;try{p=i(f),m=!1}finally{m?Wr(y):yn(y)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(v){return dn(y,c),un(v,y)},function(v){throw Wr(y),v}):(dn(y,c),un(p,y))}if(!a||typeof a!="object"){if((p=i(a))===void 0&&(p=a),p===Es&&(p=void 0),n.D&&Sn(p,!0),c){var x=[],b=[];Ae("Patches").M(a,p,x,b),c(x,b)}return p}ue(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(p){for(var y=arguments.length,f=Array(y>1?y-1:0),m=1;m<y;m++)f[m-1]=arguments[m];return n.produceWithPatches(p,function(x){return a.apply(void 0,[x].concat(f))})};var c,l,u=n.produce(a,i,function(p,y){c=p,l=y});return typeof Promise<"u"&&u instanceof Promise?u.then(function(p){return[p,c,l]}):[u,c,l]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var r=e.prototype;return r.createDraft=function(o){be(o)||ue(8),Ie(o)&&(o=ul(o));var n=hs(this),a=mn(this,o,void 0);return a[B].C=!0,yn(n),a},r.finishDraft=function(o,n){var a=o&&o[B],i=a.A;return dn(i,n),un(void 0,i)},r.setAutoFreeze=function(o){this.D=o},r.setUseProxies=function(o){o&&!xs&&ue(20),this.O=o},r.applyPatches=function(o,n){var a;for(a=n.length-1;a>=0;a--){var i=n[a];if(i.path.length===0&&i.op==="replace"){o=i.value;break}}a>-1&&(n=n.slice(a+1));var c=Ae("Patches").$;return Ie(o)?c(o,n):this.produce(o,function(l){return c(l,n)})},e}(),ie=new yl,ml=ie.produce,xb=ie.produceWithPatches.bind(ie),vb=ie.setAutoFreeze.bind(ie),Sb=ie.setUseProxies.bind(ie),Ob=ie.applyPatches.bind(ie),Cb=ie.createDraft.bind(ie),Eb=ie.finishDraft.bind(ie),Gr=ml;function lt(e){"@babel/helpers - typeof";return lt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},lt(e)}function ws(e,r){if(lt(e)!="object"||!e)return e;var o=e[Symbol.toPrimitive];if(o!==void 0){var n=o.call(e,r||"default");if(lt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function Rs(e){var r=ws(e,"string");return lt(r)=="symbol"?r:r+""}function Ts(e,r,o){return(r=Rs(r))in e?Object.defineProperty(e,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[r]=o,e}function Ns(e,r){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),o.push.apply(o,n)}return o}function En(e){for(var r=1;r<arguments.length;r++){var o=arguments[r]!=null?arguments[r]:{};r%2?Ns(Object(o),!0).forEach(function(n){Ts(e,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Ns(Object(o)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(o,n))})}return e}function X(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Ls=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),An=function(){return Math.random().toString(36).substring(7).split("").join(".")},$r={INIT:"@@redux/INIT"+An(),REPLACE:"@@redux/REPLACE"+An(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+An()}};function gl(e){if(typeof e!="object"||e===null)return!1;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(e)===r}function wn(e,r,o){var n;if(typeof r=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(X(0));if(typeof r=="function"&&typeof o>"u"&&(o=r,r=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(X(1));return o(wn)(e,r)}if(typeof e!="function")throw new Error(X(2));var a=e,i=r,c=[],l=c,u=!1;function p(){l===c&&(l=c.slice())}function y(){if(u)throw new Error(X(3));return i}function f(v){if(typeof v!="function")throw new Error(X(4));if(u)throw new Error(X(5));var A=!0;return p(),l.push(v),function(){if(A){if(u)throw new Error(X(6));A=!1,p();var w=l.indexOf(v);l.splice(w,1),c=null}}}function m(v){if(!gl(v))throw new Error(X(7));if(typeof v.type>"u")throw new Error(X(8));if(u)throw new Error(X(9));try{u=!0,i=a(i,v)}finally{u=!1}for(var A=c=l,E=0;E<A.length;E++){var w=A[E];w()}return v}function x(v){if(typeof v!="function")throw new Error(X(10));a=v,m({type:$r.REPLACE})}function b(){var v,A=f;return v={subscribe:function(w){if(typeof w!="object"||w===null)throw new Error(X(11));function L(){w.next&&w.next(y())}L();var I=A(L);return{unsubscribe:I}}},v[Ls]=function(){return this},v}return m({type:$r.INIT}),n={dispatch:m,subscribe:f,getState:y,replaceReducer:x},n[Ls]=b,n}function bl(e){Object.keys(e).forEach(function(r){var o=e[r],n=o(void 0,{type:$r.INIT});if(typeof n>"u")throw new Error(X(12));if(typeof o(void 0,{type:$r.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(X(13))})}function Is(e){for(var r=Object.keys(e),o={},n=0;n<r.length;n++){var a=r[n];typeof e[a]=="function"&&(o[a]=e[a])}var i=Object.keys(o),c,l;try{bl(o)}catch(u){l=u}return function(p,y){if(p===void 0&&(p={}),l)throw l;if(0)var f;for(var m=!1,x={},b=0;b<i.length;b++){var v=i[b],A=o[v],E=p[v],w=A(E,y);if(typeof w>"u"){var L=y&&y.type;throw new Error(X(14))}x[v]=w,m=m||w!==E}return m=m||i.length!==Object.keys(p).length,m?x:p}}function Bt(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return r.length===0?function(n){return n}:r.length===1?r[0]:r.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function _s(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return function(n){return function(){var a=n.apply(void 0,arguments),i=function(){throw new Error(X(15))},c={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},l=r.map(function(u){return u(c)});return i=Bt.apply(void 0,l)(a.dispatch),En(En({},a),{},{dispatch:i})}}}function Ps(e){var r=function(n){var a=n.dispatch,i=n.getState;return function(c){return function(l){return typeof l=="function"?l(a,i,e):c(l)}}};return r}var ks=Ps();ks.withExtraArgument=Ps;var Rn=ks;var Hs=function(){var e=function(r,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},e(r,o)};return function(r,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");e(r,o);function n(){this.constructor=r}r.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),xl=function(e,r){var o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,c;return c={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function l(p){return function(y){return u([p,y])}}function u(p){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,a&&(i=p[0]&2?a.return:p[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,p[1])).done)return i;switch(a=0,i&&(p=[p[0]&2,i.value]),p[0]){case 0:case 1:i=p;break;case 4:return o.label++,{value:p[1],done:!1};case 5:o.label++,a=p[1],p=[0];continue;case 7:p=o.ops.pop(),o.trys.pop();continue;default:if(i=o.trys,!(i=i.length>0&&i[i.length-1])&&(p[0]===6||p[0]===2)){o=0;continue}if(p[0]===3&&(!i||p[1]>i[0]&&p[1]<i[3])){o.label=p[1];break}if(p[0]===6&&o.label<i[1]){o.label=i[1],i=p;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(p);break}i[2]&&o.ops.pop(),o.trys.pop();continue}p=r.call(e,o)}catch(y){p=[6,y],a=0}finally{n=i=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Ut=function(e,r){for(var o=0,n=r.length,a=e.length;o<n;o++,a++)e[a]=r[o];return e},vl=Object.defineProperty,Sl=Object.defineProperties,Ol=Object.getOwnPropertyDescriptors,Ds=Object.getOwnPropertySymbols,Cl=Object.prototype.hasOwnProperty,El=Object.prototype.propertyIsEnumerable,Ms=function(e,r,o){return r in e?vl(e,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[r]=o},Ke=function(e,r){for(var o in r||(r={}))Cl.call(r,o)&&Ms(e,o,r[o]);if(Ds)for(var n=0,a=Ds(r);n<a.length;n++){var o=a[n];El.call(r,o)&&Ms(e,o,r[o])}return e},Tn=function(e,r){return Sl(e,Ol(r))},Al=function(e,r,o){return new Promise(function(n,a){var i=function(u){try{l(o.next(u))}catch(p){a(p)}},c=function(u){try{l(o.throw(u))}catch(p){a(p)}},l=function(u){return u.done?n(u.value):Promise.resolve(u.value).then(i,c)};l((o=o.apply(e,r)).next())})};var wl=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Bt:Bt.apply(null,arguments)},zb=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function Rl(e){if(typeof e!="object"||e===null)return!1;var r=Object.getPrototypeOf(e);if(r===null)return!0;for(var o=r;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return r===o}var Tl=function(e){Hs(r,e);function r(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=e.apply(this,o)||this;return Object.setPrototypeOf(a,r.prototype),a}return Object.defineProperty(r,Symbol.species,{get:function(){return r},enumerable:!1,configurable:!0}),r.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return e.prototype.concat.apply(this,o)},r.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(r.bind.apply(r,Ut([void 0],o[0].concat(this)))):new(r.bind.apply(r,Ut([void 0],o.concat(this))))},r}(Array),Nl=function(e){Hs(r,e);function r(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=e.apply(this,o)||this;return Object.setPrototypeOf(a,r.prototype),a}return Object.defineProperty(r,Symbol.species,{get:function(){return r},enumerable:!1,configurable:!0}),r.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return e.prototype.concat.apply(this,o)},r.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(r.bind.apply(r,Ut([void 0],o[0].concat(this)))):new(r.bind.apply(r,Ut([void 0],o.concat(this))))},r}(Array);function In(e){return be(e)?Gr(e,function(){}):e}function Ll(e){return typeof e=="boolean"}function Il(){return function(r){return _l(r)}}function _l(e){e===void 0&&(e={});var r=e.thunk,o=r===void 0?!0:r,n=e.immutableCheck,a=n===void 0?!0:n,i=e.serializableCheck,c=i===void 0?!0:i,l=new Tl;if(o&&(Ll(o)?l.push(Rn):l.push(Rn.withExtraArgument(o.extraArgument))),0){if(a)var u;if(c)var p}return l}var Nn=!0;function Ws(e){var r=Il(),o=e||{},n=o.reducer,a=n===void 0?void 0:n,i=o.middleware,c=i===void 0?r():i,l=o.devTools,u=l===void 0?!0:l,p=o.preloadedState,y=p===void 0?void 0:p,f=o.enhancers,m=f===void 0?void 0:f,x;if(typeof a=="function")x=a;else if(Rl(a))x=Is(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(r),!Nn&&!Array.isArray(b)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Nn&&b.some(function(I){return typeof I!="function"}))throw new Error("each middleware provided to configureStore must be a function");var v=_s.apply(void 0,b),A=Bt;u&&(A=wl(Ke({trace:!Nn},typeof u=="object"&&u)));var E=new Nl(v),w=E;Array.isArray(m)?w=Ut([v],m):typeof m=="function"&&(w=m(E));var L=A.apply(void 0,w);return wn(x,y,L)}function Ve(e,r){function o(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(r){var i=r.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return Ke(Ke({type:e,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:e,payload:n[0]}}return o.toString=function(){return""+e},o.type=e,o.match=function(n){return n.type===e},o}function Fs(e){var r={},o=[],n,a={addCase:function(i,c){var l=typeof i=="string"?i:i.type;if(l in r)throw new Error("addCase cannot be called with two reducers for the same action type");return r[l]=c,a},addMatcher:function(i,c){return o.push({matcher:i,reducer:c}),a},addDefaultCase:function(i){return n=i,a}};return e(a),[r,o,n]}function Pl(e){return typeof e=="function"}function kl(e,r,o,n){o===void 0&&(o=[]);var a=typeof r=="function"?Fs(r):[r,o,n],i=a[0],c=a[1],l=a[2],u;if(Pl(e))u=function(){return In(e())};else{var p=In(e);u=function(){return p}}function y(f,m){f===void 0&&(f=u());var x=Ut([i[m.type]],c.filter(function(b){var v=b.matcher;return v(m)}).map(function(b){var v=b.reducer;return v}));return x.filter(function(b){return!!b}).length===0&&(x=[l]),x.reduce(function(b,v){if(v)if(Ie(b)){var A=b,E=v(A,m);return E===void 0?b:E}else{if(be(b))return Gr(b,function(w){return v(w,m)});var E=v(b,m);if(E===void 0){if(b===null)return b;throw Error("A case reducer on a non-draftable value must not return undefined")}return E}return b},f)}return y.getInitialState=u,y}function Dl(e,r){return e+"/"+r}function zs(e){var r=e.name;if(!r)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof e.initialState=="function"?e.initialState:In(e.initialState),n=e.reducers||{},a=Object.keys(n),i={},c={},l={};a.forEach(function(y){var f=n[y],m=Dl(r,y),x,b;"reducer"in f?(x=f.reducer,b=f.prepare):x=f,i[y]=x,c[m]=x,l[y]=b?Ve(m,b):Ve(m)});function u(){var y=typeof e.extraReducers=="function"?Fs(e.extraReducers):[e.extraReducers],f=y[0],m=f===void 0?{}:f,x=y[1],b=x===void 0?[]:x,v=y[2],A=v===void 0?void 0:v,E=Ke(Ke({},m),c);return kl(o,function(w){for(var L in E)w.addCase(L,E[L]);for(var I=0,_=b;I<_.length;I++){var ee=_[I];w.addMatcher(ee.matcher,ee.reducer)}A&&w.addDefaultCase(A)})}var p;return{name:r,reducer:function(y,f){return p||(p=u()),p(y,f)},actions:l,caseReducers:i,getInitialState:function(){return p||(p=u()),p.getInitialState()}}}var Ml="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Bl=function(e){e===void 0&&(e=21);for(var r="",o=e;o--;)r+=Ml[Math.random()*64|0];return r},Ul=["name","message","stack","code"],Ln=function(){function e(r,o){this.payload=r,this.meta=o}return e}(),Bs=function(){function e(r,o){this.payload=r,this.meta=o}return e}(),Hl=function(e){if(typeof e=="object"&&e!==null){for(var r={},o=0,n=Ul;o<n.length;o++){var a=n[o];typeof e[a]=="string"&&(r[a]=e[a])}return r}return{message:String(e)}},Kb=function(){function e(r,o,n){var a=Ve(r+"/fulfilled",function(y,f,m,x){return{payload:y,meta:Tn(Ke({},x||{}),{arg:m,requestId:f,requestStatus:"fulfilled"})}}),i=Ve(r+"/pending",function(y,f,m){return{payload:void 0,meta:Tn(Ke({},m||{}),{arg:f,requestId:y,requestStatus:"pending"})}}),c=Ve(r+"/rejected",function(y,f,m,x,b){return{payload:x,error:(n&&n.serializeError||Hl)(y||"Rejected"),meta:Tn(Ke({},b||{}),{arg:m,requestId:f,rejectedWithValue:!!x,requestStatus:"rejected",aborted:y?.name==="AbortError",condition:y?.name==="ConditionError"})}}),l=!1,u=typeof AbortController<"u"?AbortController:function(){function y(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return y.prototype.abort=function(){},y}();function p(y){return function(f,m,x){var b=n?.idGenerator?n.idGenerator(y):Bl(),v=new u,A,E=!1;function w(I){A=I,v.abort()}var L=function(){return Al(this,null,function(){var I,_,ee,Oe,J,Ce,K;return xl(this,function(h){switch(h.label){case 0:return h.trys.push([0,4,,5]),Oe=(I=n?.condition)==null?void 0:I.call(n,y,{getState:m,extra:x}),Fl(Oe)?[4,Oe]:[3,2];case 1:Oe=h.sent(),h.label=2;case 2:if(Oe===!1||v.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return E=!0,J=new Promise(function(g,N){return v.signal.addEventListener("abort",function(){return N({name:"AbortError",message:A||"Aborted"})})}),f(i(b,y,(_=n?.getPendingMeta)==null?void 0:_.call(n,{requestId:b,arg:y},{getState:m,extra:x}))),[4,Promise.race([J,Promise.resolve(o(y,{dispatch:f,getState:m,extra:x,requestId:b,signal:v.signal,abort:w,rejectWithValue:function(g,N){return new Ln(g,N)},fulfillWithValue:function(g,N){return new Bs(g,N)}})).then(function(g){if(g instanceof Ln)throw g;return g instanceof Bs?a(g.payload,b,y,g.meta):a(g,b,y)})])];case 3:return ee=h.sent(),[3,5];case 4:return Ce=h.sent(),ee=Ce instanceof Ln?c(null,b,y,Ce.payload,Ce.meta):c(Ce,b,y),[3,5];case 5:return K=n&&!n.dispatchConditionRejection&&c.match(ee)&&ee.meta.condition,K||f(ee),[2,ee]}})})}();return Object.assign(L,{abort:w,requestId:b,arg:y,unwrap:function(){return L.then(Wl)}})}}return Object.assign(p,{pending:i,rejected:c,fulfilled:a,typePrefix:r})}return e.withTypes=function(){return e},e}();function Wl(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Fl(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Gs="listener",$s="completed",js="cancelled",Vb="task-"+js,Zb="task-"+$s,qb=Gs+"-"+js,Yb=Gs+"-"+$s;var _n="listenerMiddleware";var Xb=Ve(_n+"/add"),Jb=Ve(_n+"/removeAll"),Qb=Ve(_n+"/remove");var Us,ex=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(Us||(Us=Promise.resolve())).then(e).catch(function(r){return setTimeout(function(){throw r},0)})},zl=function(e){return function(r){setTimeout(r,e)}},tx=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:zl(10);Cs();var Gl=kr(Symbol("withEventBus"),function(e,r){return class extends e{constructor(){super(...arguments),this.eventBus=r??document.createElement("span")}addEventListener(o,n,a){this.eventBus.addEventListener(o,n,a)}dispatchEvent(o){return this.eventBus.dispatchEvent(o)}removeEventListener(o,n,a){this.eventBus.removeEventListener(o,n,a)}}}),jr=class extends Gl(Object){};window.ftReduxStores||(window.ftReduxStores={});var Ks=class e extends jr{static get(r){var o;let n=typeof r=="string"?r:r.name,a=typeof r=="string"?void 0:r,i=window.ftReduxStores[n];if(Hr(i))return i;if(a==null)return;let c=zs({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),l=Ws({reducer:(u,p)=>p.type==="CLEAR_FT_REDUX_STORE"?c.getInitialState():typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__")?{...u,...p.overwrites}:c.reducer(u,p)});return window.ftReduxStores[a.name]=new e(c,l,a.eventBus)}constructor(r,o,n){super(),this.reduxSlice=r,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new Dr;let a=i=>i!=null?JSON.parse(JSON.stringify(i)):i;this.actions=new Proxy(this.reduxSlice.actions,{get:(i,c,l)=>{let u=c,p=i[u];return p?(...y)=>{let f=p(...y.map(a));return this.reduxStore.dispatch(f),f}:y=>{this.setState({[u]:a(y)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(r){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(r).join("_"),overwrites:r})}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(r){throw new Error("Not implemented yet.")}subscribe(r){return this.reduxStore.subscribe(r)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var Kr=class{static format(r,o,n,a){return window.moment?window.moment(r).locale(o).format(this.getMomentDateFormat(n,a)):this.getIntlDateTime(r,o,n,a)}static getMomentDateFormat(r,o){return r?o?"lll":"ll":o?"L LT":"L"}static getIntlDateTime(r,o,n,a){let i=typeof r=="string"?new Date(r):r,c=new Intl.DateTimeFormat(o,{dateStyle:n?"medium":"short"}).format(i);if(!a)return c;let l=new Intl.DateTimeFormat(o,{timeStyle:"short"}).format(i);return`${c} ${l}`}static getTimezoneAsString(){let r=n=>String(Math.floor(n)).padStart(2,"0"),o=new Date().getTimezoneOffset();return`${o<0?"+":"-"}${r(Math.abs(o)/60)}:${r(Math.abs(o)%60)}`}};var Vs=C(k()),Vr=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},Rx=(0,Vs.applyMixinOnce)(Symbol("withDateFormat"),function(e){class r extends e{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(R)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var a,i;return((i=(a=this.metadataDescriptors.find(l=>l.key===n))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1)?l=>Kr.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Vr([(0,Pn.property)({type:Boolean})],r.prototype,"useLongDateFormat",void 0),Vr([(0,Pn.property)({type:Boolean})],r.prototype,"useDateTimeFormat",void 0),Vr([ln({store:R.name,selector:o=>{var n,a;return(a=(n=o.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&a!==void 0?a:[]}})],r.prototype,"metadataDescriptors",void 0),Vr([ln({store:R.name})],r.prototype,"uiLocale",void 0),r});(0,Zs.customElement)("ft-app-context")(M);var qs=C(Q());var kn=class{fromLocalizableLabel(r){return r.type=="PLAIN_TEXT"?{message:r.text}:{key:r.key,custom:r.type=="LOCALIZED_CUSTOM",context:r.context,message:r.key}}fromAttribute(r){if(r!=null)try{return JSON.parse(r)}catch{if(this.isI18nKey(r)){let[n,a]=r.split(".");return{context:n,key:a,custom:!0,message:""}}return{message:r}}}toAttribute(r){if(r!=null)return JSON.stringify(r)}isI18nKey(r){return r.match(/^[\w-]+\.[\w-]+$/)}},Ht=new kn;var $l=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},sr=Symbol("i18nAttributes"),Ys=Symbol("i18nListAttributes"),Xs=Symbol("i18nProperties"),Zr=Symbol("i18nContexts"),ir=Symbol("i18nUnsubs"),Xr=(0,Wt.applyMixinOnce)(Symbol("withI18n"),function(e){var r,o;class n extends e{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[r]=new Map,this[o]=new Map}getI18nService(i){return i??this.useCustomMessageContexts?Ir:It}i18n(i){let{context:c,key:l,message:u}=i,{custom:p,args:y,argsProvider:f}=i;if(c&&l){this.hasI18nContext(c)||this.addI18nContext(c,void 0,p);let m=y??(f?f(this):[]);return this.getI18nService(p).resolveMessage(c,l,...m)}return u}async awaitI18n(i){let{context:c,custom:l}=i;return c&&await this.getI18nService(l).prepareContext(c),this.i18n(i)}customI18n(i,c){if(Ht.isI18nKey(i)){let[l,u]=i.split(".");return this.i18n({custom:!0,context:l,key:u,...c})||i}return i}firstUpdated(i){super.firstUpdated(i),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(i){super.update(i),this.updateI18nAttributes((c,l,u)=>i.has(l)||typeof c.argsProvider=="function"),this.updateI18nProperties(c=>typeof c.argsProvider=="function")}onI18nUpdate(i){this.updateI18nAttributes((c,l,u)=>{var p;return((p=u?.context)===null||p===void 0?void 0:p.toLowerCase())===i}),this.updateI18nProperties(c=>c.context.toLowerCase()===i),this.requestUpdate()}updateI18nAttributes(i){var c,l;let u=this,p=(y,f,m)=>m?.context&&m.key&&i(y,f,m)?{...m,message:this.i18n({context:m.context,key:m.key,custom:m.custom,...y})}:m;(c=this[sr])===null||c===void 0||c.forEach((y,f)=>u[f]=p(y,f,u[f])),(l=this[Ys])===null||l===void 0||l.forEach((y,f)=>{var m;return u[f]=(m=u[f])===null||m===void 0?void 0:m.map(x=>p(y,f,x))})}updateI18nProperties(i){var c;(c=this[Xs])===null||c===void 0||c.forEach((l,u)=>{i(l,u)&&(this[u]=this.i18n(l))})}addI18nMessages(i,c,l){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(i,c,l)}addI18nContext(i,c,l){let u=(typeof i=="string"?i:i.name).toLowerCase();l=typeof i=="string"?l:i.custom,this[Zr].set(u,{isCustomContext:l}),this[ir].has(u)||this[ir].set(u,this.getI18nService(l).subscribe(u,()=>this.onI18nUpdate(u))),this.getI18nService(l).prepareContext(u,c)}hasI18nContext(i){return this[Zr].has(i.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Zr].forEach((i,c)=>this.addI18nContext(c,void 0,i.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[ir].forEach(i=>i()),this[ir].clear()}}return r=Zr,o=ir,$l([(0,qs.property)({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}),qr=class extends Xr(Wt.FtLitElement){},Yr=class extends Xr(Wt.FtLitElementRedux){};var cr=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},xe=class extends Yr{constructor(){super(),this.editorMode=!1,this.addStore(R)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":Jr.nothing:Jr.html`
|
|
353
|
+
`}connectedCallback(){super.connectedCallback(),R.addEventListener(rt.eventName,this.reloadConfiguration)}disconnectedCallback(){R.addEventListener(rt.eventName,this.reloadConfiguration),super.disconnectedCallback()}update(r){var o,n,a,i,c,l,u;super.update(r),r.has("baseUrl")&&(R.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),r.has("apiIntegrationIdentifier")&&R.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),r.has("apiIntegrationAppVersion")&&R.actions.apiIntegrationAppVersion(this.apiIntegrationAppVersion),r.has("uiLocale")&&R.actions.uiLocale(this.uiLocale),r.has("metadataConfiguration")&&R.actions.metadataConfiguration(this.metadataConfiguration),r.has("noCustom")&&R.actions.noCustom(this.noCustom),r.has("editorMode")&&R.actions.editorMode(this.editorMode),r.has("noCustomComponent")&&R.actions.noCustomComponent(this.noCustomComponent),r.has("session")&&R.actions.session(this.session),r.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(p=>It.addContext(p)),r.has("openExternalDocumentInNewTab")&&R.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),r.has("navigatorOnline")&&R.actions.navigatorOnline(this.navigatorOnline),r.has("forcedOffline")&&R.actions.forcedOffline(this.forcedOffline),r.has("localesConfiguration")&&(R.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),R.actions.availableUiLocales((a=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&a!==void 0?a:[]),R.actions.searchInAllLanguagesAllowed((c=(i=this.localesConfiguration)===null||i===void 0?void 0:i.allLanguagesAllowed)!==null&&c!==void 0?c:!1)),r.has("authenticationRequired")&&R.actions.authenticationRequired(this.authenticationRequired),r.has("availableContentLocales")&&R.actions.availableContentLocales((u=(l=this.availableContentLocales)===null||l===void 0?void 0:l.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 r=await this.apiProvider().getCurrentSession();return r.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},r.idleTimeoutInMillis),r})}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",()=>es(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}))}};M.elementDefinitions={};M.styles=Zi;z([(0,q.property)()],M.prototype,"baseUrl",void 0);z([(0,q.property)()],M.prototype,"apiIntegrationIdentifier",void 0);z([(0,q.property)()],M.prototype,"apiIntegrationAppVersion",void 0);z([(0,q.property)()],M.prototype,"uiLocale",void 0);z([(0,ge.jsonProperty)(null)],M.prototype,"availableUiLocales",void 0);z([(0,ge.jsonProperty)(null)],M.prototype,"metadataConfiguration",void 0);z([(0,q.property)({type:Boolean})],M.prototype,"editorMode",void 0);z([(0,q.property)({type:Boolean})],M.prototype,"noCustom",void 0);z([(0,q.property)({type:Boolean})],M.prototype,"openExternalDocumentInNewTab",void 0);z([(0,q.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],M.prototype,"noCustomComponent",void 0);z([(0,q.property)({type:Boolean})],M.prototype,"withManualResources",void 0);z([(0,q.property)({type:Boolean})],M.prototype,"navigatorOnline",void 0);z([(0,q.property)({type:Boolean})],M.prototype,"forcedOffline",void 0);z([(0,q.property)({type:Object})],M.prototype,"apiProvider",void 0);z([(0,q.property)({type:Boolean})],M.prototype,"authenticationRequired",void 0);z([(0,ge.jsonProperty)([])],M.prototype,"messageContexts",void 0);z([(0,ge.jsonProperty)(void 0)],M.prototype,"session",void 0);z([(0,q.state)()],M.prototype,"localesConfiguration",void 0);z([(0,q.state)()],M.prototype,"availableContentLocales",void 0);var Pn=C(Q());function nl(e,r){if(e===r)return!0;if(e&&r&&typeof e=="object"&&typeof r=="object"){if(e.constructor!==r.constructor)return!1;let o,n,a;if(Array.isArray(e)){if(o=e.length,o!=r.length)return!1;for(n=o;n--!==0;)if(!Pr(e[n],r[n]))return!1;return!0}if(e instanceof Map&&r instanceof Map){if(e.size!==r.size)return!1;for(n of e.entries())if(!r.has(n[0]))return!1;for(n of e.entries())if(!Pr(n[1],r.get(n[0])))return!1;return!0}if(e instanceof Set&&r instanceof Set){if(e.size!==r.size)return!1;for(n of e.entries())if(!r.has(n[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();let i=c=>Object.keys(c).filter(l=>c[l]!=null);if(a=i(e),o=a.length,o!==i(r).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(r,a[n]))return!1;for(n=o;n--!==0;){let c=a[n];if(!Pr(e[c],r[c]))return!1}return!0}return e!==e&&r!==r||e==null&&r==null}function Pr(e,r){try{return nl(e,r)}catch{return!1}}function tr(e,r){return!Pr(e,r)}function kr(e,r){let o=n=>n[e]===!0;return n=>{if(o(n))return n;let a=r(n);return a[e]=!0,a}}var rs=C(Q(),1);var ln=e=>{let r=e??{};return(o,n)=>{var a;let i={hasChanged:tr,attribute:!1,...r};(0,rs.property)(i)(o,n);let c=o.constructor;c.reduxProperties=new Map(c.reduxProperties),c.reduxProperties.set(n,{selector:(a=r.selector)!==null&&a!==void 0?a:l=>l[n],store:r.store})}};var Dr=class{constructor(){this.queue=[]}add(r,o=!1){o&&this.clear(r.type),this.queue.push(r)}consume(r){let o=this.queue.find(n=>n.type===r);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}clear(r){typeof r=="string"?this.queue=this.queue.filter(o=>o.type!==r):this.queue=this.queue.filter(o=>!r.test(o.type))}};var it=C(Q(),1);var os=C(Q(),1);function ns(e,r){let o=()=>JSON.parse(JSON.stringify(e));return(0,os.property)({type:Object,converter:{fromAttribute:n=>{if(n==null)return o();try{return JSON.parse(n)}catch{return o()}},toAttribute:n=>JSON.stringify(n)},hasChanged:tr,...r??{}})}var Mr=class{constructor(r=0){this.timeout=r,this.callbacks=[]}run(r,o){return this.callbacks=[r],this.debounce(o)}queue(r,o){return this.callbacks.push(r),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(r){return this.promise==null&&(this.promise=new Promise((o,n)=>{this.resolvePromise=o,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),r??this.timeout),this.promise}async runCallbacks(){var r,o;let n=[...this.callbacks];this.callbacks=[];let a=(r=this.rejectPromise)!==null&&r!==void 0?r:()=>null,i=(o=this.resolvePromise)!==null&&o!==void 0?o:()=>null;this.clearPromise();for(let c of n)try{await c()}catch(l){a(l);return}i(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var is=C($(),1);var Br=globalThis,al=Br.ShadowRoot&&(Br.ShadyCSS===void 0||Br.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,nb=Symbol();var as=(e,r)=>{if(al)e.adoptedStyleSheets=r.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet);else for(let o of r){let n=document.createElement("style"),a=Br.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=o.cssText,e.appendChild(n)}};var Ur=class extends is.LitElement{createRenderRoot(){let r=this.constructor;r.elementDefinitions&&!r.registry&&(r.registry=new CustomElementRegistry,Object.entries(r.elementDefinitions).forEach(([a,i])=>r.registry.define(a,i)));let o={...r.shadowRootOptions,customElements:r.registry},n=this.renderOptions.creationScope=this.attachShadow(o);return as(n,r.elementStyles),n}};function ss(e,r,...o){var n;let a=e.querySelector(r);for(let i of o)a=(n=a?.shadowRoot)===null||n===void 0?void 0:n.querySelector(i);return a}var Pt=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},us,cs=Symbol("constructorPrototype"),ls=Symbol("constructorName"),ps=Symbol("exportpartsDebouncer"),ds=Symbol("dynamicDependenciesLoaded"),_t=class e extends CustomEvent{constructor(){super(e.eventName,{bubbles:!0})}};_t.eventName="exportparts-updated";var Ee=class extends Ur{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[us]=new Mr(5),this.scheduleExportpartsUpdate=()=>{var r,o,n;(!((r=this.exportpartsPrefix)===null||r===void 0)&&r.trim()||(n=(o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)!==null&&n!==void 0&&n)&&this[ps].run(()=>{var a,i;!((a=this.exportpartsPrefix)===null||a===void 0)&&a.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((i=this.exportpartsPrefixes)===null||i===void 0?void 0:i.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[ls]=this.constructor.name,this[cs]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[ls]&&Object.setPrototypeOf(this,this[cs])}connectedCallback(){var r;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 o=this.constructor;o[ds]||(o[ds]=!0,this.importDynamicDependencies()),(r=this.shadowRoot)===null||r===void 0||r.addEventListener(_t.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var r;super.disconnectedCallback(),(r=this.shadowRoot)===null||r===void 0||r.removeEventListener(_t.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(r){super.updated(r),this.updateComplete.then(()=>{this.contentAvailableCallback(r),this.focusElementToFocus(r),this.applyCustomStylesheet(r),this.scheduleExportpartsUpdate(),r.has("exportparts")&&this.dispatchEvent(new _t)})}contentAvailableCallback(r){}focusElementToFocus(r){if(r.has("elementToFocus")&&this.elementToFocus!=null){let{element:o,selector:n,shadowPath:a}=this.elementToFocus;if(n!=null){let i=[...a??[],n];o=ss(this.shadowRoot,...i)}o?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||o?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(r){var o,n,a;if(((n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(i=>i.remove()),this.useAdoptedStyleSheets){if(r.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((a=this.customStylesheet)!==null&&a!==void 0?a:"")}catch(i){console.error(i,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let i=document.createElement("style");i.classList.add("ft-lit-element--custom-stylesheet"),i.innerHTML=this.customStylesheet,this.shadowRoot.append(i)}}setExportpartsAttribute(r){var o,n,a,i,c,l;let u=m=>m!=null&&m.trim().length>0,p=r.filter(u).map(m=>m.trim());if(p.length===0){this.exportparts=void 0;return}let y=new Set;for(let m of(n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let x=(i=(a=m.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&i!==void 0?i:[],b=(l=(c=m.getAttribute("exportparts"))===null||c===void 0?void 0:c.split(",").map(A=>A.split(":")[1]))!==null&&l!==void 0?l:[],v=[...x,...b].filter(u).map(A=>A.trim());for(let A of v)y.add(A)}if(y.size===0){this.exportparts=void 0;return}let f=[...y.values()].flatMap(m=>p.map(x=>`${m}:${x}--${m}`));this.exportparts=[...this.part,...f].join(", ")}};us=ps;Pt([(0,it.property)()],Ee.prototype,"exportpartsPrefix",void 0);Pt([ns([])],Ee.prototype,"exportpartsPrefixes",void 0);Pt([(0,it.property)({reflect:!0})],Ee.prototype,"exportparts",void 0);Pt([(0,it.property)()],Ee.prototype,"customStylesheet",void 0);Pt([(0,it.property)()],Ee.prototype,"elementToFocus",void 0);Pt([(0,it.state)()],Ee.prototype,"useAdoptedStyleSheets",void 0);function Hr(e){var r;return(r=e?.isFtReduxStore)!==null&&r!==void 0?r:!1}var rr=Symbol("internalReduxEventsUnsubscribers"),Ge=Symbol("internalStoresUnsubscribers"),st=Symbol("internalStores"),il=kr(Symbol("withRedux"),function(e){var r,o,n;class a extends e{constructor(){super(...arguments),this[r]=new Map,this[o]=new Map,this[n]=new Map}get reduxConstructor(){return this.constructor}willUpdate(c){super.willUpdate(c),[...this.reduxConstructor.reduxReactiveProperties].some(l=>c.has(l))&&this.updateFromStores()}getUnnamedStore(){if(this[st].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[st].values()][0]}getStore(c){return c==null?this.getUnnamedStore():this[st].get(c)}addStore(c,l){var u;l=(u=l??c.name)!==null&&u!==void 0?u:"default-store",this.unsubscribeFromStore(l),this[st].set(l,c),this.subscribeToStore(l,c),this.updateFromStores()}removeStore(c){let l=typeof c=="string"?c:c.name;this.unsubscribeFromStore(l),this[st].delete(l)}setupStores(){this.unsubscribeFromStores(),this[st].forEach((c,l)=>this.subscribeToStore(l,c)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((c,l)=>{let u=this.constructor.getPropertyOptions(l);if(!u?.attribute||!this.hasAttribute(typeof u?.attribute=="string"?u.attribute:l)){let p=this.getStore(c.store);p&&(c.store?this[Ge].has(c.store):this[Ge].size>0)&&(this[l]=c.selector(p.getState(),this))}})}subscribeToStore(c,l){var u;this[Ge].set(c,l.subscribe(()=>this.updateFromStores())),this[rr].set(c,[]),Hr(l)&&l.eventBus&&((u=this.reduxConstructor.reduxEventListeners)===null||u===void 0||u.forEach((p,y)=>{if(typeof this[y]=="function"&&(!p.store||l.name===p.store)){let f=m=>this[y](m);l.addEventListener(p.eventName,f),this[rr].get(c).push(()=>l.removeEventListener(p.eventName,f))}})),this.onStoreAvailable(c)}unsubscribeFromStores(){this[Ge].forEach((c,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(c){var l;this[Ge].has(c)&&this[Ge].get(c)(),this[Ge].delete(c),(l=this[rr].get(c))===null||l===void 0||l.forEach(u=>u()),this[rr].delete(c)}onStoreAvailable(c){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return r=Ge,o=st,n=rr,a.reduxProperties=new Map,a.reduxReactiveProperties=new Set,a.reduxEventListeners=new Map,a}),fs=class extends il(Ee){};function ue(e){for(var r=arguments.length,o=Array(r>1?r-1:0),n=1;n<r;n++)o[n-1]=arguments[n];if(0)var a,i;throw Error("[Immer] minified error nr: "+e+(o.length?" "+o.map(function(c){return"'"+c+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Ie(e){return!!e&&!!e[B]}function be(e){var r;return!!e&&(function(o){if(!o||typeof o!="object")return!1;var n=Object.getPrototypeOf(o);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===hl}(e)||Array.isArray(e)||!!e[vs]||!!(!((r=e.constructor)===null||r===void 0)&&r[vs])||bn(e)||xn(e))}function ct(e,r,o){o===void 0&&(o=!1),Mt(e)===0?(o?Object.keys:Dt)(e).forEach(function(n){o&&typeof n=="symbol"||r(n,e[n],e)}):e.forEach(function(n,a){return r(a,n,e)})}function Mt(e){var r=e[B];return r?r.i>3?r.i-4:r.i:Array.isArray(e)?1:bn(e)?2:xn(e)?3:0}function kt(e,r){return Mt(e)===2?e.has(r):Object.prototype.hasOwnProperty.call(e,r)}function sl(e,r){return Mt(e)===2?e.get(r):e[r]}function Ss(e,r,o){var n=Mt(e);n===2?e.set(r,o):n===3?e.add(o):e[r]=o}function Os(e,r){return e===r?e!==0||1/e==1/r:e!=e&&r!=r}function bn(e){return pl&&e instanceof Map}function xn(e){return fl&&e instanceof Set}function $e(e){return e.o||e.t}function vn(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var r=As(e);delete r[B];for(var o=Dt(r),n=0;n<o.length;n++){var a=o[n],i=r[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(r[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[a]})}return Object.create(Object.getPrototypeOf(e),r)}function Sn(e,r){return r===void 0&&(r=!1),On(e)||Ie(e)||!be(e)||(Mt(e)>1&&(e.set=e.add=e.clear=e.delete=cl),Object.freeze(e),r&&ct(e,function(o,n){return Sn(n,!0)},!0)),e}function cl(){ue(2)}function On(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Ae(e){var r=gn[e];return r||ue(18,e),r}function ll(e,r){gn[e]||(gn[e]=r)}function hn(){return nr}function dn(e,r){r&&(Ae("Patches"),e.u=[],e.s=[],e.v=r)}function Wr(e){yn(e),e.p.forEach(dl),e.p=null}function yn(e){e===nr&&(nr=e.l)}function hs(e){return nr={p:[],l:nr,h:e,m:!0,_:0}}function dl(e){var r=e[B];r.i===0||r.i===1?r.j():r.g=!0}function un(e,r){r._=r.p.length;var o=r.p[0],n=e!==void 0&&e!==o;return r.h.O||Ae("ES5").S(r,e,n),n?(o[B].P&&(Wr(r),ue(4)),be(e)&&(e=Fr(r,e),r.l||zr(r,e)),r.u&&Ae("Patches").M(o[B].t,e,r.u,r.s)):e=Fr(r,o,[]),Wr(r),r.u&&r.v(r.u,r.s),e!==Es?e:void 0}function Fr(e,r,o){if(On(r))return r;var n=r[B];if(!n)return ct(r,function(l,u){return ys(e,n,r,l,u,o)},!0),r;if(n.A!==e)return r;if(!n.P)return zr(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=vn(n.k):n.o,i=a,c=!1;n.i===3&&(i=new Set(a),a.clear(),c=!0),ct(i,function(l,u){return ys(e,n,a,l,u,o,c)}),zr(e,a,!1),o&&e.u&&Ae("Patches").N(n,o,e.u,e.s)}return n.o}function ys(e,r,o,n,a,i,c){if(Ie(a)){var l=Fr(e,a,i&&r&&r.i!==3&&!kt(r.R,n)?i.concat(n):void 0);if(Ss(o,n,l),!Ie(l))return;e.m=!1}else c&&o.add(a);if(be(a)&&!On(a)){if(!e.h.D&&e._<1)return;Fr(e,a),r&&r.A.l||zr(e,a)}}function zr(e,r,o){o===void 0&&(o=!1),!e.l&&e.h.D&&e.m&&Sn(r,o)}function pn(e,r){var o=e[B];return(o?$e(o):e)[r]}function ms(e,r){if(r in e)for(var o=Object.getPrototypeOf(e);o;){var n=Object.getOwnPropertyDescriptor(o,r);if(n)return n;o=Object.getPrototypeOf(o)}}function je(e){e.P||(e.P=!0,e.l&&je(e.l))}function fn(e){e.o||(e.o=vn(e.t))}function mn(e,r,o){var n=bn(r)?Ae("MapSet").F(r,o):xn(r)?Ae("MapSet").T(r,o):e.O?function(a,i){var c=Array.isArray(a),l={i:c?1:0,A:i?i.A:hn(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},u=l,p=ar;c&&(u=[l],p=or);var y=Proxy.revocable(u,p),f=y.revoke,m=y.proxy;return l.k=m,l.j=f,m}(r,o):Ae("ES5").J(r,o);return(o?o.A:hn()).p.push(n),n}function ul(e){return Ie(e)||ue(22,e),function r(o){if(!be(o))return o;var n,a=o[B],i=Mt(o);if(a){if(!a.P&&(a.i<4||!Ae("ES5").K(a)))return a.t;a.I=!0,n=gs(o,i),a.I=!1}else n=gs(o,i);return ct(n,function(c,l){a&&sl(a.t,c)===l||Ss(n,c,r(l))}),i===3?new Set(n):n}(e)}function gs(e,r){switch(r){case 2:return new Map(e);case 3:return Array.from(e)}return vn(e)}function Cs(){function e(c,l){var u=i[c];return u?u.enumerable=l:i[c]=u={configurable:!0,enumerable:l,get:function(){var p=this[B];return ar.get(p,c)},set:function(p){var y=this[B];ar.set(y,c,p)}},u}function r(c){for(var l=c.length-1;l>=0;l--){var u=c[l][B];if(!u.P)switch(u.i){case 5:n(u)&&je(u);break;case 4:o(u)&&je(u)}}}function o(c){for(var l=c.t,u=c.k,p=Dt(u),y=p.length-1;y>=0;y--){var f=p[y];if(f!==B){var m=l[f];if(m===void 0&&!kt(l,f))return!0;var x=u[f],b=x&&x[B];if(b?b.t!==m:!Os(x,m))return!0}}var v=!!l[B];return p.length!==Dt(l).length+(v?0:1)}function n(c){var l=c.k;if(l.length!==c.t.length)return!0;var u=Object.getOwnPropertyDescriptor(l,l.length-1);if(u&&!u.get)return!0;for(var p=0;p<l.length;p++)if(!l.hasOwnProperty(p))return!0;return!1}function a(c){c.g&&ue(3,JSON.stringify($e(c)))}var i={};ll("ES5",{J:function(c,l){var u=Array.isArray(c),p=function(f,m){if(f){for(var x=Array(m.length),b=0;b<m.length;b++)Object.defineProperty(x,""+b,e(b,!0));return x}var v=As(m);delete v[B];for(var A=Dt(v),E=0;E<A.length;E++){var w=A[E];v[w]=e(w,f||!!v[w].enumerable)}return Object.create(Object.getPrototypeOf(m),v)}(u,c),y={i:u?5:4,A:l?l.A:hn(),P:!1,I:!1,R:{},l,t:c,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,B,{value:y,writable:!0}),p},S:function(c,l,u){u?Ie(l)&&l[B].A===c&&r(c.p):(c.u&&function p(y){if(y&&typeof y=="object"){var f=y[B];if(f){var m=f.t,x=f.k,b=f.R,v=f.i;if(v===4)ct(x,function(I){I!==B&&(m[I]!==void 0||kt(m,I)?b[I]||p(x[I]):(b[I]=!0,je(f)))}),ct(m,function(I){x[I]!==void 0||kt(x,I)||(b[I]=!1,je(f))});else if(v===5){if(n(f)&&(je(f),b.length=!0),x.length<m.length)for(var A=x.length;A<m.length;A++)b[A]=!1;else for(var E=m.length;E<x.length;E++)b[E]=!0;for(var w=Math.min(x.length,m.length),L=0;L<w;L++)x.hasOwnProperty(L)||(b[L]=!0),b[L]===void 0&&p(x[L])}}}}(c.p[0]),r(c.p))},K:function(c){return c.i===4?o(c):n(c)}})}var bs,nr,Cn=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",pl=typeof Map<"u",fl=typeof Set<"u",xs=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Es=Cn?Symbol.for("immer-nothing"):((bs={})["immer-nothing"]=!0,bs),vs=Cn?Symbol.for("immer-draftable"):"__$immer_draftable",B=Cn?Symbol.for("immer-state"):"__$immer_state";var hl=""+Object.prototype.constructor,Dt=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,As=Object.getOwnPropertyDescriptors||function(e){var r={};return Dt(e).forEach(function(o){r[o]=Object.getOwnPropertyDescriptor(e,o)}),r},gn={},ar={get:function(e,r){if(r===B)return e;var o=$e(e);if(!kt(o,r))return function(a,i,c){var l,u=ms(i,c);return u?"value"in u?u.value:(l=u.get)===null||l===void 0?void 0:l.call(a.k):void 0}(e,o,r);var n=o[r];return e.I||!be(n)?n:n===pn(e.t,r)?(fn(e),e.o[r]=mn(e.A.h,n,e)):n},has:function(e,r){return r in $e(e)},ownKeys:function(e){return Reflect.ownKeys($e(e))},set:function(e,r,o){var n=ms($e(e),r);if(n?.set)return n.set.call(e.k,o),!0;if(!e.P){var a=pn($e(e),r),i=a?.[B];if(i&&i.t===o)return e.o[r]=o,e.R[r]=!1,!0;if(Os(o,a)&&(o!==void 0||kt(e.t,r)))return!0;fn(e),je(e)}return e.o[r]===o&&(o!==void 0||r in e.o)||Number.isNaN(o)&&Number.isNaN(e.o[r])||(e.o[r]=o,e.R[r]=!0),!0},deleteProperty:function(e,r){return pn(e.t,r)!==void 0||r in e.t?(e.R[r]=!1,fn(e),je(e)):delete e.R[r],e.o&&delete e.o[r],!0},getOwnPropertyDescriptor:function(e,r){var o=$e(e),n=Reflect.getOwnPropertyDescriptor(o,r);return n&&{writable:!0,configurable:e.i!==1||r!=="length",enumerable:n.enumerable,value:o[r]}},defineProperty:function(){ue(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){ue(12)}},or={};ct(ar,function(e,r){or[e]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)}}),or.deleteProperty=function(e,r){return or.set.call(this,e,r,void 0)},or.set=function(e,r,o){return ar.set.call(this,e[0],r,o,e[0])};var yl=function(){function e(o){var n=this;this.O=xs,this.D=!0,this.produce=function(a,i,c){if(typeof a=="function"&&typeof i!="function"){var l=i;i=a;var u=n;return function(v){var A=this;v===void 0&&(v=l);for(var E=arguments.length,w=Array(E>1?E-1:0),L=1;L<E;L++)w[L-1]=arguments[L];return u.produce(v,function(I){var _;return(_=i).call.apply(_,[A,I].concat(w))})}}var p;if(typeof i!="function"&&ue(6),c!==void 0&&typeof c!="function"&&ue(7),be(a)){var y=hs(n),f=mn(n,a,void 0),m=!0;try{p=i(f),m=!1}finally{m?Wr(y):yn(y)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(v){return dn(y,c),un(v,y)},function(v){throw Wr(y),v}):(dn(y,c),un(p,y))}if(!a||typeof a!="object"){if((p=i(a))===void 0&&(p=a),p===Es&&(p=void 0),n.D&&Sn(p,!0),c){var x=[],b=[];Ae("Patches").M(a,p,x,b),c(x,b)}return p}ue(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(p){for(var y=arguments.length,f=Array(y>1?y-1:0),m=1;m<y;m++)f[m-1]=arguments[m];return n.produceWithPatches(p,function(x){return a.apply(void 0,[x].concat(f))})};var c,l,u=n.produce(a,i,function(p,y){c=p,l=y});return typeof Promise<"u"&&u instanceof Promise?u.then(function(p){return[p,c,l]}):[u,c,l]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var r=e.prototype;return r.createDraft=function(o){be(o)||ue(8),Ie(o)&&(o=ul(o));var n=hs(this),a=mn(this,o,void 0);return a[B].C=!0,yn(n),a},r.finishDraft=function(o,n){var a=o&&o[B],i=a.A;return dn(i,n),un(void 0,i)},r.setAutoFreeze=function(o){this.D=o},r.setUseProxies=function(o){o&&!xs&&ue(20),this.O=o},r.applyPatches=function(o,n){var a;for(a=n.length-1;a>=0;a--){var i=n[a];if(i.path.length===0&&i.op==="replace"){o=i.value;break}}a>-1&&(n=n.slice(a+1));var c=Ae("Patches").$;return Ie(o)?c(o,n):this.produce(o,function(l){return c(l,n)})},e}(),ie=new yl,ml=ie.produce,xb=ie.produceWithPatches.bind(ie),vb=ie.setAutoFreeze.bind(ie),Sb=ie.setUseProxies.bind(ie),Ob=ie.applyPatches.bind(ie),Cb=ie.createDraft.bind(ie),Eb=ie.finishDraft.bind(ie),Gr=ml;function lt(e){"@babel/helpers - typeof";return lt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},lt(e)}function ws(e,r){if(lt(e)!="object"||!e)return e;var o=e[Symbol.toPrimitive];if(o!==void 0){var n=o.call(e,r||"default");if(lt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function Rs(e){var r=ws(e,"string");return lt(r)=="symbol"?r:r+""}function Ts(e,r,o){return(r=Rs(r))in e?Object.defineProperty(e,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[r]=o,e}function Ns(e,r){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),o.push.apply(o,n)}return o}function En(e){for(var r=1;r<arguments.length;r++){var o=arguments[r]!=null?arguments[r]:{};r%2?Ns(Object(o),!0).forEach(function(n){Ts(e,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Ns(Object(o)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(o,n))})}return e}function X(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Ls=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),An=function(){return Math.random().toString(36).substring(7).split("").join(".")},$r={INIT:"@@redux/INIT"+An(),REPLACE:"@@redux/REPLACE"+An(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+An()}};function gl(e){if(typeof e!="object"||e===null)return!1;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(e)===r}function wn(e,r,o){var n;if(typeof r=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(X(0));if(typeof r=="function"&&typeof o>"u"&&(o=r,r=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(X(1));return o(wn)(e,r)}if(typeof e!="function")throw new Error(X(2));var a=e,i=r,c=[],l=c,u=!1;function p(){l===c&&(l=c.slice())}function y(){if(u)throw new Error(X(3));return i}function f(v){if(typeof v!="function")throw new Error(X(4));if(u)throw new Error(X(5));var A=!0;return p(),l.push(v),function(){if(A){if(u)throw new Error(X(6));A=!1,p();var w=l.indexOf(v);l.splice(w,1),c=null}}}function m(v){if(!gl(v))throw new Error(X(7));if(typeof v.type>"u")throw new Error(X(8));if(u)throw new Error(X(9));try{u=!0,i=a(i,v)}finally{u=!1}for(var A=c=l,E=0;E<A.length;E++){var w=A[E];w()}return v}function x(v){if(typeof v!="function")throw new Error(X(10));a=v,m({type:$r.REPLACE})}function b(){var v,A=f;return v={subscribe:function(w){if(typeof w!="object"||w===null)throw new Error(X(11));function L(){w.next&&w.next(y())}L();var I=A(L);return{unsubscribe:I}}},v[Ls]=function(){return this},v}return m({type:$r.INIT}),n={dispatch:m,subscribe:f,getState:y,replaceReducer:x},n[Ls]=b,n}function bl(e){Object.keys(e).forEach(function(r){var o=e[r],n=o(void 0,{type:$r.INIT});if(typeof n>"u")throw new Error(X(12));if(typeof o(void 0,{type:$r.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(X(13))})}function Is(e){for(var r=Object.keys(e),o={},n=0;n<r.length;n++){var a=r[n];typeof e[a]=="function"&&(o[a]=e[a])}var i=Object.keys(o),c,l;try{bl(o)}catch(u){l=u}return function(p,y){if(p===void 0&&(p={}),l)throw l;if(0)var f;for(var m=!1,x={},b=0;b<i.length;b++){var v=i[b],A=o[v],E=p[v],w=A(E,y);if(typeof w>"u"){var L=y&&y.type;throw new Error(X(14))}x[v]=w,m=m||w!==E}return m=m||i.length!==Object.keys(p).length,m?x:p}}function Bt(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return r.length===0?function(n){return n}:r.length===1?r[0]:r.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function _s(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return function(n){return function(){var a=n.apply(void 0,arguments),i=function(){throw new Error(X(15))},c={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},l=r.map(function(u){return u(c)});return i=Bt.apply(void 0,l)(a.dispatch),En(En({},a),{},{dispatch:i})}}}function Ps(e){var r=function(n){var a=n.dispatch,i=n.getState;return function(c){return function(l){return typeof l=="function"?l(a,i,e):c(l)}}};return r}var ks=Ps();ks.withExtraArgument=Ps;var Rn=ks;var Hs=function(){var e=function(r,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},e(r,o)};return function(r,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");e(r,o);function n(){this.constructor=r}r.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),xl=function(e,r){var o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,c;return c={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function l(p){return function(y){return u([p,y])}}function u(p){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,a&&(i=p[0]&2?a.return:p[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,p[1])).done)return i;switch(a=0,i&&(p=[p[0]&2,i.value]),p[0]){case 0:case 1:i=p;break;case 4:return o.label++,{value:p[1],done:!1};case 5:o.label++,a=p[1],p=[0];continue;case 7:p=o.ops.pop(),o.trys.pop();continue;default:if(i=o.trys,!(i=i.length>0&&i[i.length-1])&&(p[0]===6||p[0]===2)){o=0;continue}if(p[0]===3&&(!i||p[1]>i[0]&&p[1]<i[3])){o.label=p[1];break}if(p[0]===6&&o.label<i[1]){o.label=i[1],i=p;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(p);break}i[2]&&o.ops.pop(),o.trys.pop();continue}p=r.call(e,o)}catch(y){p=[6,y],a=0}finally{n=i=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Ut=function(e,r){for(var o=0,n=r.length,a=e.length;o<n;o++,a++)e[a]=r[o];return e},vl=Object.defineProperty,Sl=Object.defineProperties,Ol=Object.getOwnPropertyDescriptors,Ds=Object.getOwnPropertySymbols,Cl=Object.prototype.hasOwnProperty,El=Object.prototype.propertyIsEnumerable,Ms=function(e,r,o){return r in e?vl(e,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[r]=o},Ke=function(e,r){for(var o in r||(r={}))Cl.call(r,o)&&Ms(e,o,r[o]);if(Ds)for(var n=0,a=Ds(r);n<a.length;n++){var o=a[n];El.call(r,o)&&Ms(e,o,r[o])}return e},Tn=function(e,r){return Sl(e,Ol(r))},Al=function(e,r,o){return new Promise(function(n,a){var i=function(u){try{l(o.next(u))}catch(p){a(p)}},c=function(u){try{l(o.throw(u))}catch(p){a(p)}},l=function(u){return u.done?n(u.value):Promise.resolve(u.value).then(i,c)};l((o=o.apply(e,r)).next())})};var wl=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Bt:Bt.apply(null,arguments)},zb=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function Rl(e){if(typeof e!="object"||e===null)return!1;var r=Object.getPrototypeOf(e);if(r===null)return!0;for(var o=r;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return r===o}var Tl=function(e){Hs(r,e);function r(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=e.apply(this,o)||this;return Object.setPrototypeOf(a,r.prototype),a}return Object.defineProperty(r,Symbol.species,{get:function(){return r},enumerable:!1,configurable:!0}),r.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return e.prototype.concat.apply(this,o)},r.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(r.bind.apply(r,Ut([void 0],o[0].concat(this)))):new(r.bind.apply(r,Ut([void 0],o.concat(this))))},r}(Array),Nl=function(e){Hs(r,e);function r(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=e.apply(this,o)||this;return Object.setPrototypeOf(a,r.prototype),a}return Object.defineProperty(r,Symbol.species,{get:function(){return r},enumerable:!1,configurable:!0}),r.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return e.prototype.concat.apply(this,o)},r.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(r.bind.apply(r,Ut([void 0],o[0].concat(this)))):new(r.bind.apply(r,Ut([void 0],o.concat(this))))},r}(Array);function In(e){return be(e)?Gr(e,function(){}):e}function Ll(e){return typeof e=="boolean"}function Il(){return function(r){return _l(r)}}function _l(e){e===void 0&&(e={});var r=e.thunk,o=r===void 0?!0:r,n=e.immutableCheck,a=n===void 0?!0:n,i=e.serializableCheck,c=i===void 0?!0:i,l=new Tl;if(o&&(Ll(o)?l.push(Rn):l.push(Rn.withExtraArgument(o.extraArgument))),0){if(a)var u;if(c)var p}return l}var Nn=!0;function Ws(e){var r=Il(),o=e||{},n=o.reducer,a=n===void 0?void 0:n,i=o.middleware,c=i===void 0?r():i,l=o.devTools,u=l===void 0?!0:l,p=o.preloadedState,y=p===void 0?void 0:p,f=o.enhancers,m=f===void 0?void 0:f,x;if(typeof a=="function")x=a;else if(Rl(a))x=Is(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(r),!Nn&&!Array.isArray(b)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Nn&&b.some(function(I){return typeof I!="function"}))throw new Error("each middleware provided to configureStore must be a function");var v=_s.apply(void 0,b),A=Bt;u&&(A=wl(Ke({trace:!Nn},typeof u=="object"&&u)));var E=new Nl(v),w=E;Array.isArray(m)?w=Ut([v],m):typeof m=="function"&&(w=m(E));var L=A.apply(void 0,w);return wn(x,y,L)}function Ve(e,r){function o(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(r){var i=r.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return Ke(Ke({type:e,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:e,payload:n[0]}}return o.toString=function(){return""+e},o.type=e,o.match=function(n){return n.type===e},o}function Fs(e){var r={},o=[],n,a={addCase:function(i,c){var l=typeof i=="string"?i:i.type;if(l in r)throw new Error("addCase cannot be called with two reducers for the same action type");return r[l]=c,a},addMatcher:function(i,c){return o.push({matcher:i,reducer:c}),a},addDefaultCase:function(i){return n=i,a}};return e(a),[r,o,n]}function Pl(e){return typeof e=="function"}function kl(e,r,o,n){o===void 0&&(o=[]);var a=typeof r=="function"?Fs(r):[r,o,n],i=a[0],c=a[1],l=a[2],u;if(Pl(e))u=function(){return In(e())};else{var p=In(e);u=function(){return p}}function y(f,m){f===void 0&&(f=u());var x=Ut([i[m.type]],c.filter(function(b){var v=b.matcher;return v(m)}).map(function(b){var v=b.reducer;return v}));return x.filter(function(b){return!!b}).length===0&&(x=[l]),x.reduce(function(b,v){if(v)if(Ie(b)){var A=b,E=v(A,m);return E===void 0?b:E}else{if(be(b))return Gr(b,function(w){return v(w,m)});var E=v(b,m);if(E===void 0){if(b===null)return b;throw Error("A case reducer on a non-draftable value must not return undefined")}return E}return b},f)}return y.getInitialState=u,y}function Dl(e,r){return e+"/"+r}function zs(e){var r=e.name;if(!r)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof e.initialState=="function"?e.initialState:In(e.initialState),n=e.reducers||{},a=Object.keys(n),i={},c={},l={};a.forEach(function(y){var f=n[y],m=Dl(r,y),x,b;"reducer"in f?(x=f.reducer,b=f.prepare):x=f,i[y]=x,c[m]=x,l[y]=b?Ve(m,b):Ve(m)});function u(){var y=typeof e.extraReducers=="function"?Fs(e.extraReducers):[e.extraReducers],f=y[0],m=f===void 0?{}:f,x=y[1],b=x===void 0?[]:x,v=y[2],A=v===void 0?void 0:v,E=Ke(Ke({},m),c);return kl(o,function(w){for(var L in E)w.addCase(L,E[L]);for(var I=0,_=b;I<_.length;I++){var ee=_[I];w.addMatcher(ee.matcher,ee.reducer)}A&&w.addDefaultCase(A)})}var p;return{name:r,reducer:function(y,f){return p||(p=u()),p(y,f)},actions:l,caseReducers:i,getInitialState:function(){return p||(p=u()),p.getInitialState()}}}var Ml="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Bl=function(e){e===void 0&&(e=21);for(var r="",o=e;o--;)r+=Ml[Math.random()*64|0];return r},Ul=["name","message","stack","code"],Ln=function(){function e(r,o){this.payload=r,this.meta=o}return e}(),Bs=function(){function e(r,o){this.payload=r,this.meta=o}return e}(),Hl=function(e){if(typeof e=="object"&&e!==null){for(var r={},o=0,n=Ul;o<n.length;o++){var a=n[o];typeof e[a]=="string"&&(r[a]=e[a])}return r}return{message:String(e)}},Kb=function(){function e(r,o,n){var a=Ve(r+"/fulfilled",function(y,f,m,x){return{payload:y,meta:Tn(Ke({},x||{}),{arg:m,requestId:f,requestStatus:"fulfilled"})}}),i=Ve(r+"/pending",function(y,f,m){return{payload:void 0,meta:Tn(Ke({},m||{}),{arg:f,requestId:y,requestStatus:"pending"})}}),c=Ve(r+"/rejected",function(y,f,m,x,b){return{payload:x,error:(n&&n.serializeError||Hl)(y||"Rejected"),meta:Tn(Ke({},b||{}),{arg:m,requestId:f,rejectedWithValue:!!x,requestStatus:"rejected",aborted:y?.name==="AbortError",condition:y?.name==="ConditionError"})}}),l=!1,u=typeof AbortController<"u"?AbortController:function(){function y(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return y.prototype.abort=function(){},y}();function p(y){return function(f,m,x){var b=n?.idGenerator?n.idGenerator(y):Bl(),v=new u,A,E=!1;function w(I){A=I,v.abort()}var L=function(){return Al(this,null,function(){var I,_,ee,Oe,J,Ce,K;return xl(this,function(h){switch(h.label){case 0:return h.trys.push([0,4,,5]),Oe=(I=n?.condition)==null?void 0:I.call(n,y,{getState:m,extra:x}),Fl(Oe)?[4,Oe]:[3,2];case 1:Oe=h.sent(),h.label=2;case 2:if(Oe===!1||v.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return E=!0,J=new Promise(function(g,N){return v.signal.addEventListener("abort",function(){return N({name:"AbortError",message:A||"Aborted"})})}),f(i(b,y,(_=n?.getPendingMeta)==null?void 0:_.call(n,{requestId:b,arg:y},{getState:m,extra:x}))),[4,Promise.race([J,Promise.resolve(o(y,{dispatch:f,getState:m,extra:x,requestId:b,signal:v.signal,abort:w,rejectWithValue:function(g,N){return new Ln(g,N)},fulfillWithValue:function(g,N){return new Bs(g,N)}})).then(function(g){if(g instanceof Ln)throw g;return g instanceof Bs?a(g.payload,b,y,g.meta):a(g,b,y)})])];case 3:return ee=h.sent(),[3,5];case 4:return Ce=h.sent(),ee=Ce instanceof Ln?c(null,b,y,Ce.payload,Ce.meta):c(Ce,b,y),[3,5];case 5:return K=n&&!n.dispatchConditionRejection&&c.match(ee)&&ee.meta.condition,K||f(ee),[2,ee]}})})}();return Object.assign(L,{abort:w,requestId:b,arg:y,unwrap:function(){return L.then(Wl)}})}}return Object.assign(p,{pending:i,rejected:c,fulfilled:a,typePrefix:r})}return e.withTypes=function(){return e},e}();function Wl(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Fl(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Gs="listener",$s="completed",js="cancelled",Vb="task-"+js,Zb="task-"+$s,qb=Gs+"-"+js,Yb=Gs+"-"+$s;var _n="listenerMiddleware";var Xb=Ve(_n+"/add"),Jb=Ve(_n+"/removeAll"),Qb=Ve(_n+"/remove");var Us,ex=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(Us||(Us=Promise.resolve())).then(e).catch(function(r){return setTimeout(function(){throw r},0)})},zl=function(e){return function(r){setTimeout(r,e)}},tx=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:zl(10);Cs();var Gl=kr(Symbol("withEventBus"),function(e,r){return class extends e{constructor(){super(...arguments),this.eventBus=r??document.createElement("span")}addEventListener(o,n,a){this.eventBus.addEventListener(o,n,a)}dispatchEvent(o){return this.eventBus.dispatchEvent(o)}removeEventListener(o,n,a){this.eventBus.removeEventListener(o,n,a)}}}),jr=class extends Gl(Object){};window.ftReduxStores||(window.ftReduxStores={});var Ks=class e extends jr{static get(r){var o;let n=typeof r=="string"?r:r.name,a=typeof r=="string"?void 0:r,i=window.ftReduxStores[n];if(Hr(i))return i;if(a==null)return;let c=zs({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),l=Ws({reducer:(u,p)=>p.type==="CLEAR_FT_REDUX_STORE"?c.getInitialState():typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__")?{...u,...p.overwrites}:c.reducer(u,p)});return window.ftReduxStores[a.name]=new e(c,l,a.eventBus)}constructor(r,o,n){super(),this.reduxSlice=r,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new Dr;let a=i=>i!=null?JSON.parse(JSON.stringify(i)):i;this.actions=new Proxy(this.reduxSlice.actions,{get:(i,c,l)=>{let u=c,p=i[u];return p?(...y)=>{let f=p(...y.map(a));return this.reduxStore.dispatch(f),f}:y=>{this.setState({[u]:a(y)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(r){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(r).join("_"),overwrites:r})}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(r){throw new Error("Not implemented yet.")}subscribe(r){return this.reduxStore.subscribe(r)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var Kr=class{static format(r,o,n,a){return window.moment?window.moment(r).locale(o).format(this.getMomentDateFormat(n,a)):this.getIntlDateTime(r,o,n,a)}static getMomentDateFormat(r,o){return r?o?"lll":"ll":o?"L LT":"L"}static getIntlDateTime(r,o,n,a){let i=typeof r=="string"?new Date(r):r,c=new Intl.DateTimeFormat(o,{dateStyle:n?"medium":"short"}).format(i);if(!a)return c;let l=new Intl.DateTimeFormat(o,{timeStyle:"short"}).format(i);return`${c} ${l}`}static getTimezoneAsString(){let r=n=>String(Math.floor(n)).padStart(2,"0"),o=new Date().getTimezoneOffset();return`${o<0?"+":"-"}${r(Math.abs(o)/60)}:${r(Math.abs(o)%60)}`}};var Vs=C(k()),Vr=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},Rx=(0,Vs.applyMixinOnce)(Symbol("withDateFormat"),function(e){class r extends e{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(R)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var a,i;return((i=(a=this.metadataDescriptors.find(l=>l.key===n))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1)?l=>Kr.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Vr([(0,Pn.property)({type:Boolean})],r.prototype,"useLongDateFormat",void 0),Vr([(0,Pn.property)({type:Boolean})],r.prototype,"useDateTimeFormat",void 0),Vr([ln({store:R.name,selector:o=>{var n,a;return(a=(n=o.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&a!==void 0?a:[]}})],r.prototype,"metadataDescriptors",void 0),Vr([ln({store:R.name})],r.prototype,"uiLocale",void 0),r});(0,Zs.customElement)("ft-app-context")(M);var qs=C(Q());var kn=class{fromLocalizableLabel(r){return r.type=="PLAIN_TEXT"?{message:r.text}:{key:r.key,custom:r.type=="LOCALIZED_CUSTOM",context:r.context,message:r.key}}fromAttribute(r){if(r!=null)try{return JSON.parse(r)}catch{if(this.isI18nKey(r)){let[n,a]=r.split(".");return{context:n,key:a,custom:!0,message:""}}return{message:r}}}toAttribute(r){if(r!=null)return JSON.stringify(r)}isI18nKey(r){return r.match(/^[\w-]+\.[\w-]+$/)}},Ht=new kn;var $l=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},sr=Symbol("i18nAttributes"),Ys=Symbol("i18nListAttributes"),Xs=Symbol("i18nProperties"),Zr=Symbol("i18nContexts"),ir=Symbol("i18nUnsubs"),Xr=(0,Wt.applyMixinOnce)(Symbol("withI18n"),function(e){var r,o;class n extends e{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[r]=new Map,this[o]=new Map}getI18nService(i){return i??this.useCustomMessageContexts?Ir:It}i18n(i){let{context:c,key:l,message:u}=i,{custom:p,args:y,argsProvider:f}=i;if(c&&l){this.hasI18nContext(c)||this.addI18nContext(c,void 0,p);let m=y??(f?f(this):[]);return this.getI18nService(p).resolveMessage(c,l,...m)}return u}async awaitI18n(i){let{context:c,custom:l}=i;return c&&await this.getI18nService(l).prepareContext(c),this.i18n(i)}customI18n(i,c){if(Ht.isI18nKey(i)){let[l,u]=i.split(".");return this.i18n({custom:!0,context:l,key:u,...c})||i}return i}firstUpdated(i){super.firstUpdated(i),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(i){super.update(i),this.updateI18nAttributes((c,l,u)=>i.has(l)||typeof c.argsProvider=="function"),this.updateI18nProperties(c=>typeof c.argsProvider=="function")}onI18nUpdate(i){this.updateI18nAttributes((c,l,u)=>{var p;return((p=u?.context)===null||p===void 0?void 0:p.toLowerCase())===i}),this.updateI18nProperties(c=>c.context.toLowerCase()===i),this.requestUpdate()}updateI18nAttributes(i){var c,l;let u=this,p=(y,f,m)=>m?.context&&m.key&&i(y,f,m)?{...m,message:this.i18n({context:m.context,key:m.key,custom:m.custom,...y})}:m;(c=this[sr])===null||c===void 0||c.forEach((y,f)=>u[f]=p(y,f,u[f])),(l=this[Ys])===null||l===void 0||l.forEach((y,f)=>{var m;return u[f]=(m=u[f])===null||m===void 0?void 0:m.map(x=>p(y,f,x))})}updateI18nProperties(i){var c;(c=this[Xs])===null||c===void 0||c.forEach((l,u)=>{i(l,u)&&(this[u]=this.i18n(l))})}addI18nMessages(i,c,l){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(i,c,l)}addI18nContext(i,c,l){let u=(typeof i=="string"?i:i.name).toLowerCase();l=typeof i=="string"?l:i.custom,this[Zr].set(u,{isCustomContext:l}),this[ir].has(u)||this[ir].set(u,this.getI18nService(l).subscribe(u,()=>this.onI18nUpdate(u))),this.getI18nService(l).prepareContext(u,c)}hasI18nContext(i){return this[Zr].has(i.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Zr].forEach((i,c)=>this.addI18nContext(c,void 0,i.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[ir].forEach(i=>i()),this[ir].clear()}}return r=Zr,o=ir,$l([(0,qs.property)({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}),qr=class extends Xr(Wt.FtLitElement){},Yr=class extends Xr(Wt.FtLitElementRedux){};var cr=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},xe=class extends Yr{constructor(){super(),this.editorMode=!1,this.addStore(R)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":Jr.nothing:Jr.html`
|
|
354
354
|
<span class="ft-i18n">
|
|
355
355
|
${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
|
|
356
356
|
</span>
|
|
357
|
-
`}update(r){var o;super.update(r),["context","key","defaultMessage"].some(n=>r.has(n))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(o=this.defaultMessage)!==null&&o!==void 0?o:""})}};xe.elementDefinitions={};xe.styles=
|
|
357
|
+
`}update(r){var o;super.update(r),["context","key","defaultMessage"].some(n=>r.has(n))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(o=this.defaultMessage)!==null&&o!==void 0?o:""})}};xe.elementDefinitions={};xe.styles=Ki;cr([(0,eo.redux)()],xe.prototype,"editorMode",void 0);cr([(0,Qr.property)()],xe.prototype,"context",void 0);cr([(0,Qr.property)()],xe.prototype,"key",void 0);cr([(0,eo.jsonProperty)([])],xe.prototype,"args",void 0);cr([(0,Qr.property)()],xe.prototype,"defaultMessage",void 0);var to=class e{static build(r){return new e(r)}static buildCustom(r){return new e(r,!0)}static fromGwt(r){return new e(r)}get service(){return this.custom?Ir:It}constructor(r,o=!1){this.name=r,this.custom=o,this.properties=new Proxy({},{get:(n,a)=>{let i=a;return c=>({context:this.name,key:i,custom:this.custom,args:typeof c=="function"?void 0:c,argsProvider:typeof c=="function"?c:void 0})}}),this.messages=new Proxy({},{get:(n,a)=>(...i)=>this.service.resolveMessage(this.name,a,...i)}),this.rawMessages=new Proxy({},{get:(n,a)=>this.service.resolveRawMessage(this.name,a)}),this.keys=new Proxy({},{get:(n,a)=>()=>a}),this.attributes=new Proxy({},{get:(n,a)=>()=>({context:this.name,key:a,message:this.service.resolveRawMessage(this.name,a)})})}};(0,Js.customElement)("ft-i18n")(xe);var lr=to.build("readerSavedBookmarksComponent"),Qs={bookmarks:"Bookmarks",bookmarkMissingFromToc:"This bookmark refer to a topic that no longer exists."};var Lc=C(k());var Nc=C($()),fe=C(Q()),pe=C(k());var ec=C($()),_e=C(k()),Ft={distance:_e.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:_e.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:_e.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:_e.FtCssVariableFactory.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:_e.FtCssVariableFactory.extend("--ft-tooltip-border-radius","",_e.designSystemVariables.borderRadiusS),maxWidth:_e.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},tc=ec.css`
|
|
358
358
|
.ft-tooltip--container {
|
|
359
359
|
display: block;
|
|
360
360
|
}
|