@fluid-topics/ft-switch 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.
- package/build/ft-switch.light.js +31 -31
- package/build/ft-switch.min.js +28 -28
- package/package.json +7 -7
package/build/ft-switch.min.js
CHANGED
|
@@ -45,7 +45,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
45
45
|
input::-webkit-search-results-decoration {
|
|
46
46
|
display: none;
|
|
47
47
|
}
|
|
48
|
-
`;var js={};var Di={};F(Di,{ParametrizedLabelResolver:()=>Fr});var Fr=class t{constructor(e,o){this.defaultLabels=e,this.labels=o}resolve(e,...o){var n,i;e=this.resolvePluralKey(e,o);let a=(i=(n=this.labels[e])!==null&&n!==void 0?n:this.defaultLabels[e])!==null&&i!==void 0?i:"";return t.replaceParameters(a,...o)}static replaceParameters(e,...o){return o.forEach((n,i)=>e=e.replace(new RegExp(`\\{${i}([^}]*)\\}`,"g"),(a,s)=>t.formatValue(n,s))),e}resolvePluralKey(e,o){for(let n of o)if(typeof n=="number"){let i=`${String(e)}[\\=${n}]`;if(i in this.labels||i in this.defaultLabels)return i}return e}static formatValue(e,o){return e instanceof Date?t.formatDate(e,o):e??""}static formatDate(e,o){let n=i=>o?.includes("date")?e.toLocaleDateString(i):o?.includes("time")?e.toLocaleTimeString(i):e.toLocaleString(i);try{return n(document.documentElement.lang)}catch{return n()}}};var aa={};F(aa,{FtCommandQueue:()=>$r,FtLitElementRedux:()=>Wr,FtReduxStore:()=>wt,FtStateManager:()=>ia,ReduxWatcher:()=>Qo,clearAllStores:()=>_p,isFtReduxStore:()=>Kt,redux:()=>Vt,reduxEventListener:()=>Vu,reduxReactive:()=>ju,watch:()=>Np,withRedux:()=>Vs});var ju=()=>(t,e)=>{var o;let n=t.constructor;n.reduxReactiveProperties=new Set(n.reduxReactiveProperties),(o=n.reduxReactiveProperties)===null||o===void 0||o.add(e)},Vt=t=>{let e=t??{};return(o,n)=>{var i;let a={hasChanged:Ge,attribute:!1,...e};C(a)(o,n);let s=o.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(n,{selector:(i=e.selector)!==null&&i!==void 0?i:l=>l[n],store:e.store})}},Vu=t=>(e,o)=>{let n=e.constructor;n.reduxEventListeners=new Map(n.reduxEventListeners),n.reduxEventListeners.set(o,t)};var $r=class{constructor(){this.queue=[]}add(e,o=!1){o&&this.clear(e.type),this.queue.push(e)}consume(e){let o=this.queue.find(n=>n.type===e);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}clear(e){typeof e=="string"?this.queue=this.queue.filter(o=>o.type!==e):this.queue=this.queue.filter(o=>!e.test(o.type))}};function Kt(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Hr=Symbol("internalReduxEventsUnsubscribers"),ot=Symbol("internalStoresUnsubscribers"),Ot=Symbol("internalStores"),Vs=ie(Symbol("withRedux"),function(t){var e,o,n;class i extends t{constructor(){super(...arguments),this[e]=new Map,this[o]=new Map,this[n]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(l=>s.has(l))&&this.updateFromStores()}getUnnamedStore(){if(this[Ot].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ot].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[Ot].get(s)}addStore(s,l){var d;l=(d=l??s.name)!==null&&d!==void 0?d:"default-store",this.unsubscribeFromStore(l),this[Ot].set(l,s),this.subscribeToStore(l,s),this.updateFromStores()}removeStore(s){let l=typeof s=="string"?s:s.name;this.unsubscribeFromStore(l),this[Ot].delete(l)}setupStores(){this.unsubscribeFromStores(),this[Ot].forEach((s,l)=>this.subscribeToStore(l,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,l)=>{let d=this.constructor.getPropertyOptions(l);if(!d?.attribute||!this.hasAttribute(typeof d?.attribute=="string"?d.attribute:l)){let p=this.getStore(s.store);p&&(s.store?this[ot].has(s.store):this[ot].size>0)&&(this[l]=s.selector(p.getState(),this))}})}subscribeToStore(s,l){var d;this[ot].set(s,l.subscribe(()=>this.updateFromStores())),this[Hr].set(s,[]),Kt(l)&&l.eventBus&&((d=this.reduxConstructor.reduxEventListeners)===null||d===void 0||d.forEach((p,h)=>{if(typeof this[h]=="function"&&(!p.store||l.name===p.store)){let f=m=>this[h](m);l.addEventListener(p.eventName,f),this[Hr].get(s).push(()=>l.removeEventListener(p.eventName,f))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[ot].forEach((s,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(s){var l;this[ot].has(s)&&this[ot].get(s)(),this[ot].delete(s),(l=this[Hr].get(s))===null||l===void 0||l.forEach(d=>d()),this[Hr].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=ot,o=Ot,n=Hr,i.reduxProperties=new Map,i.reduxReactiveProperties=new Set,i.reduxEventListeners=new Map,i}),Wr=class extends Vs(j){};function Ee(t){for(var e=arguments.length,o=Array(e>1?e-1:0),n=1;n<e;n++)o[n-1]=arguments[n];if(0)var i,a;throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function qe(t){return!!t&&!!t[q]}function _e(t){var e;return!!t&&(function(o){if(!o||typeof o!="object")return!1;var n=Object.getPrototypeOf(o);if(n===null)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===ep}(t)||Array.isArray(t)||!!t[Qs]||!!(!((e=t.constructor)===null||e===void 0)&&e[Qs])||Gi(t)||ji(t))}function Et(t,e,o){o===void 0&&(o=!1),Yt(t)===0?(o?Object.keys:qt)(t).forEach(function(n){o&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,i){return e(i,n,t)})}function Yt(t){var e=t[q];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Gi(t)?2:ji(t)?3:0}function Zt(t,e){return Yt(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Ku(t,e){return Yt(t)===2?t.get(e):t[e]}function ec(t,e,o){var n=Yt(t);n===2?t.set(e,o):n===3?t.add(o):t[e]=o}function tc(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function Gi(t){return Ju&&t instanceof Map}function ji(t){return Qu&&t instanceof Set}function nt(t){return t.o||t.t}function Vi(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=nc(t);delete e[q];for(var o=qt(e),n=0;n<o.length;n++){var i=o[n],a=e[i];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:t[i]})}return Object.create(Object.getPrototypeOf(t),e)}function Ki(t,e){return e===void 0&&(e=!1),Zi(t)||qe(t)||!_e(t)||(Yt(t)>1&&(t.set=t.add=t.clear=t.delete=Zu),Object.freeze(t),e&&Et(t,function(o,n){return Ki(n,!0)},!0)),t}function Zu(){Ee(2)}function Zi(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function He(t){var e=zi[t];return e||Ee(18,t),e}function qu(t,e){zi[t]||(zi[t]=e)}function $i(){return Gr}function Mi(t,e){e&&(He("Patches"),t.u=[],t.s=[],t.v=e)}function Zo(t){Hi(t),t.p.forEach(Yu),t.p=null}function Hi(t){t===Gr&&(Gr=t.l)}function Ks(t){return Gr={p:[],l:Gr,h:t,m:!0,_:0}}function Yu(t){var e=t[q];e.i===0||e.i===1?e.j():e.g=!0}function Ui(t,e){e._=e.p.length;var o=e.p[0],n=t!==void 0&&t!==o;return e.h.O||He("ES5").S(e,t,n),n?(o[q].P&&(Zo(e),Ee(4)),_e(t)&&(t=qo(e,t),e.l||Yo(e,t)),e.u&&He("Patches").M(o[q].t,t,e.u,e.s)):t=qo(e,o,[]),Zo(e),e.u&&e.v(e.u,e.s),t!==oc?t:void 0}function qo(t,e,o){if(Zi(e))return e;var n=e[q];if(!n)return Et(e,function(l,d){return Zs(t,n,e,l,d,o)},!0),e;if(n.A!==t)return e;if(!n.P)return Yo(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=Vi(n.k):n.o,a=i,s=!1;n.i===3&&(a=new Set(i),i.clear(),s=!0),Et(a,function(l,d){return Zs(t,n,i,l,d,o,s)}),Yo(t,i,!1),o&&t.u&&He("Patches").N(n,o,t.u,t.s)}return n.o}function Zs(t,e,o,n,i,a,s){if(qe(i)){var l=qo(t,i,a&&e&&e.i!==3&&!Zt(e.R,n)?a.concat(n):void 0);if(ec(o,n,l),!qe(l))return;t.m=!1}else s&&o.add(i);if(_e(i)&&!Zi(i)){if(!t.h.D&&t._<1)return;qo(t,i),e&&e.A.l||Yo(t,i)}}function Yo(t,e,o){o===void 0&&(o=!1),!t.l&&t.h.D&&t.m&&Ki(e,o)}function Bi(t,e){var o=t[q];return(o?nt(o):t)[e]}function qs(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var n=Object.getOwnPropertyDescriptor(o,e);if(n)return n;o=Object.getPrototypeOf(o)}}function it(t){t.P||(t.P=!0,t.l&&it(t.l))}function Fi(t){t.o||(t.o=Vi(t.t))}function Wi(t,e,o){var n=Gi(e)?He("MapSet").F(e,o):ji(e)?He("MapSet").T(e,o):t.O?function(i,a){var s=Array.isArray(i),l={i:s?1:0,A:a?a.A:$i(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},d=l,p=jr;s&&(d=[l],p=zr);var h=Proxy.revocable(d,p),f=h.revoke,m=h.proxy;return l.k=m,l.j=f,m}(e,o):He("ES5").J(e,o);return(o?o.A:$i()).p.push(n),n}function Xu(t){return qe(t)||Ee(22,t),function e(o){if(!_e(o))return o;var n,i=o[q],a=Yt(o);if(i){if(!i.P&&(i.i<4||!He("ES5").K(i)))return i.t;i.I=!0,n=Ys(o,a),i.I=!1}else n=Ys(o,a);return Et(n,function(s,l){i&&Ku(i.t,s)===l||ec(n,s,e(l))}),a===3?new Set(n):n}(t)}function Ys(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Vi(t)}function rc(){function t(s,l){var d=a[s];return d?d.enumerable=l:a[s]=d={configurable:!0,enumerable:l,get:function(){var p=this[q];return jr.get(p,s)},set:function(p){var h=this[q];jr.set(h,s,p)}},d}function e(s){for(var l=s.length-1;l>=0;l--){var d=s[l][q];if(!d.P)switch(d.i){case 5:n(d)&&it(d);break;case 4:o(d)&&it(d)}}}function o(s){for(var l=s.t,d=s.k,p=qt(d),h=p.length-1;h>=0;h--){var f=p[h];if(f!==q){var m=l[f];if(m===void 0&&!Zt(l,f))return!0;var b=d[f],g=b&&b[q];if(g?g.t!==m:!tc(b,m))return!0}}var E=!!l[q];return p.length!==qt(l).length+(E?0:1)}function n(s){var l=s.k;if(l.length!==s.t.length)return!0;var d=Object.getOwnPropertyDescriptor(l,l.length-1);if(d&&!d.get)return!0;for(var p=0;p<l.length;p++)if(!l.hasOwnProperty(p))return!0;return!1}function i(s){s.g&&Ee(3,JSON.stringify(nt(s)))}var a={};qu("ES5",{J:function(s,l){var d=Array.isArray(s),p=function(f,m){if(f){for(var b=Array(m.length),g=0;g<m.length;g++)Object.defineProperty(b,""+g,t(g,!0));return b}var E=nc(m);delete E[q];for(var w=qt(E),A=0;A<w.length;A++){var T=w[A];E[T]=t(T,f||!!E[T].enumerable)}return Object.create(Object.getPrototypeOf(m),E)}(d,s),h={i:d?5:4,A:l?l.A:$i(),P:!1,I:!1,R:{},l,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,q,{value:h,writable:!0}),p},S:function(s,l,d){d?qe(l)&&l[q].A===s&&e(s.p):(s.u&&function p(h){if(h&&typeof h=="object"){var f=h[q];if(f){var m=f.t,b=f.k,g=f.R,E=f.i;if(E===4)Et(b,function(x){x!==q&&(m[x]!==void 0||Zt(m,x)?g[x]||p(b[x]):(g[x]=!0,it(f)))}),Et(m,function(x){b[x]!==void 0||Zt(b,x)||(g[x]=!1,it(f))});else if(E===5){if(n(f)&&(it(f),g.length=!0),b.length<m.length)for(var w=b.length;w<m.length;w++)g[w]=!1;else for(var A=m.length;A<b.length;A++)g[A]=!0;for(var T=Math.min(b.length,m.length),S=0;S<T;S++)b.hasOwnProperty(S)||(g[S]=!0),g[S]===void 0&&p(b[S])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?o(s):n(s)}})}var Xs,Gr,qi=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Ju=typeof Map<"u",Qu=typeof Set<"u",Js=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",oc=qi?Symbol.for("immer-nothing"):((Xs={})["immer-nothing"]=!0,Xs),Qs=qi?Symbol.for("immer-draftable"):"__$immer_draftable",q=qi?Symbol.for("immer-state"):"__$immer_state";var ep=""+Object.prototype.constructor,qt=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,nc=Object.getOwnPropertyDescriptors||function(t){var e={};return qt(t).forEach(function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)}),e},zi={},jr={get:function(t,e){if(e===q)return t;var o=nt(t);if(!Zt(o,e))return function(i,a,s){var l,d=qs(a,s);return d?"value"in d?d.value:(l=d.get)===null||l===void 0?void 0:l.call(i.k):void 0}(t,o,e);var n=o[e];return t.I||!_e(n)?n:n===Bi(t.t,e)?(Fi(t),t.o[e]=Wi(t.A.h,n,t)):n},has:function(t,e){return e in nt(t)},ownKeys:function(t){return Reflect.ownKeys(nt(t))},set:function(t,e,o){var n=qs(nt(t),e);if(n?.set)return n.set.call(t.k,o),!0;if(!t.P){var i=Bi(nt(t),e),a=i?.[q];if(a&&a.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(tc(o,i)&&(o!==void 0||Zt(t.t,e)))return!0;Fi(t),it(t)}return t.o[e]===o&&(o!==void 0||e in t.o)||Number.isNaN(o)&&Number.isNaN(t.o[e])||(t.o[e]=o,t.R[e]=!0),!0},deleteProperty:function(t,e){return Bi(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,Fi(t),it(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=nt(t),n=Reflect.getOwnPropertyDescriptor(o,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:o[e]}},defineProperty:function(){Ee(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Ee(12)}},zr={};Et(jr,function(t,e){zr[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),zr.deleteProperty=function(t,e){return zr.set.call(this,t,e,void 0)},zr.set=function(t,e,o){return jr.set.call(this,t[0],e,o,t[0])};var tp=function(){function t(o){var n=this;this.O=Js,this.D=!0,this.produce=function(i,a,s){if(typeof i=="function"&&typeof a!="function"){var l=a;a=i;var d=n;return function(E){var w=this;E===void 0&&(E=l);for(var A=arguments.length,T=Array(A>1?A-1:0),S=1;S<A;S++)T[S-1]=arguments[S];return d.produce(E,function(x){var O;return(O=a).call.apply(O,[w,x].concat(T))})}}var p;if(typeof a!="function"&&Ee(6),s!==void 0&&typeof s!="function"&&Ee(7),_e(i)){var h=Ks(n),f=Wi(n,i,void 0),m=!0;try{p=a(f),m=!1}finally{m?Zo(h):Hi(h)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(E){return Mi(h,s),Ui(E,h)},function(E){throw Zo(h),E}):(Mi(h,s),Ui(p,h))}if(!i||typeof i!="object"){if((p=a(i))===void 0&&(p=i),p===oc&&(p=void 0),n.D&&Ki(p,!0),s){var b=[],g=[];He("Patches").M(i,p,b,g),s(b,g)}return p}Ee(21,i)},this.produceWithPatches=function(i,a){if(typeof i=="function")return function(p){for(var h=arguments.length,f=Array(h>1?h-1:0),m=1;m<h;m++)f[m-1]=arguments[m];return n.produceWithPatches(p,function(b){return i.apply(void 0,[b].concat(f))})};var s,l,d=n.produce(i,a,function(p,h){s=p,l=h});return typeof Promise<"u"&&d instanceof Promise?d.then(function(p){return[p,s,l]}):[d,s,l]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var e=t.prototype;return e.createDraft=function(o){_e(o)||Ee(8),qe(o)&&(o=Xu(o));var n=Ks(this),i=Wi(this,o,void 0);return i[q].C=!0,Hi(n),i},e.finishDraft=function(o,n){var i=o&&o[q],a=i.A;return Mi(a,n),Ui(void 0,a)},e.setAutoFreeze=function(o){this.D=o},e.setUseProxies=function(o){o&&!Js&&Ee(20),this.O=o},e.applyPatches=function(o,n){var i;for(i=n.length-1;i>=0;i--){var a=n[i];if(a.path.length===0&&a.op==="replace"){o=a.value;break}}i>-1&&(n=n.slice(i+1));var s=He("Patches").$;return qe(o)?s(o,n):this.produce(o,function(l){return s(l,n)})},t}(),ye=new tp,rp=ye.produce,Bb=ye.produceWithPatches.bind(ye),Fb=ye.setAutoFreeze.bind(ye),$b=ye.setUseProxies.bind(ye),Hb=ye.applyPatches.bind(ye),Wb=ye.createDraft.bind(ye),zb=ye.finishDraft.bind(ye),Xo=rp;function Ct(t){"@babel/helpers - typeof";return Ct=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ct(t)}function ic(t,e){if(Ct(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var n=o.call(t,e||"default");if(Ct(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function ac(t){var e=ic(t,"string");return Ct(e)=="symbol"?e:e+""}function sc(t,e,o){return(e=ac(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function cc(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),o.push.apply(o,n)}return o}function Yi(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?cc(Object(o),!0).forEach(function(n){sc(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):cc(Object(o)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))})}return t}function de(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var lc=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Xi=function(){return Math.random().toString(36).substring(7).split("").join(".")},Jo={INIT:"@@redux/INIT"+Xi(),REPLACE:"@@redux/REPLACE"+Xi(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Xi()}};function op(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function Ji(t,e,o){var n;if(typeof e=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(de(0));if(typeof e=="function"&&typeof o>"u"&&(o=e,e=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(de(1));return o(Ji)(t,e)}if(typeof t!="function")throw new Error(de(2));var i=t,a=e,s=[],l=s,d=!1;function p(){l===s&&(l=s.slice())}function h(){if(d)throw new Error(de(3));return a}function f(E){if(typeof E!="function")throw new Error(de(4));if(d)throw new Error(de(5));var w=!0;return p(),l.push(E),function(){if(w){if(d)throw new Error(de(6));w=!1,p();var T=l.indexOf(E);l.splice(T,1),s=null}}}function m(E){if(!op(E))throw new Error(de(7));if(typeof E.type>"u")throw new Error(de(8));if(d)throw new Error(de(9));try{d=!0,a=i(a,E)}finally{d=!1}for(var w=s=l,A=0;A<w.length;A++){var T=w[A];T()}return E}function b(E){if(typeof E!="function")throw new Error(de(10));i=E,m({type:Jo.REPLACE})}function g(){var E,w=f;return E={subscribe:function(T){if(typeof T!="object"||T===null)throw new Error(de(11));function S(){T.next&&T.next(h())}S();var x=w(S);return{unsubscribe:x}}},E[lc]=function(){return this},E}return m({type:Jo.INIT}),n={dispatch:m,subscribe:f,getState:h,replaceReducer:b},n[lc]=g,n}function np(t){Object.keys(t).forEach(function(e){var o=t[e],n=o(void 0,{type:Jo.INIT});if(typeof n>"u")throw new Error(de(12));if(typeof o(void 0,{type:Jo.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(de(13))})}function dc(t){for(var e=Object.keys(t),o={},n=0;n<e.length;n++){var i=e[n];typeof t[i]=="function"&&(o[i]=t[i])}var a=Object.keys(o),s,l;try{np(o)}catch(d){l=d}return function(p,h){if(p===void 0&&(p={}),l)throw l;if(0)var f;for(var m=!1,b={},g=0;g<a.length;g++){var E=a[g],w=o[E],A=p[E],T=w(A,h);if(typeof T>"u"){var S=h&&h.type;throw new Error(de(14))}b[E]=T,m=m||T!==A}return m=m||a.length!==Object.keys(p).length,m?b:p}}function Xt(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function uc(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(n){return function(){var i=n.apply(void 0,arguments),a=function(){throw new Error(de(15))},s={getState:i.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=e.map(function(d){return d(s)});return a=Xt.apply(void 0,l)(i.dispatch),Yi(Yi({},i),{},{dispatch:a})}}}function pc(t){var e=function(n){var i=n.dispatch,a=n.getState;return function(s){return function(l){return typeof l=="function"?l(i,a,t):s(l)}}};return e}var fc=pc();fc.withExtraArgument=pc;var Qi=fc;var bc=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},t(e,o)};return function(e,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");t(e,o);function n(){this.constructor=e}e.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),ip=function(t,e){var o={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(p){return function(h){return d([p,h])}}function d(p){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,i&&(a=p[0]&2?i.return:p[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,p[1])).done)return a;switch(i=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return o.label++,{value:p[1],done:!1};case 5:o.label++,i=p[1],p=[0];continue;case 7:p=o.ops.pop(),o.trys.pop();continue;default:if(a=o.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){o=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){o.label=p[1];break}if(p[0]===6&&o.label<a[1]){o.label=a[1],a=p;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(p);break}a[2]&&o.ops.pop(),o.trys.pop();continue}p=e.call(t,o)}catch(h){p=[6,h],i=0}finally{n=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Jt=function(t,e){for(var o=0,n=e.length,i=t.length;o<n;o++,i++)t[i]=e[o];return t},ap=Object.defineProperty,sp=Object.defineProperties,cp=Object.getOwnPropertyDescriptors,hc=Object.getOwnPropertySymbols,lp=Object.prototype.hasOwnProperty,dp=Object.prototype.propertyIsEnumerable,mc=function(t,e,o){return e in t?ap(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},at=function(t,e){for(var o in e||(e={}))lp.call(e,o)&&mc(t,o,e[o]);if(hc)for(var n=0,i=hc(e);n<i.length;n++){var o=i[n];dp.call(e,o)&&mc(t,o,e[o])}return t},ea=function(t,e){return sp(t,cp(e))},up=function(t,e,o){return new Promise(function(n,i){var a=function(d){try{l(o.next(d))}catch(p){i(p)}},s=function(d){try{l(o.throw(d))}catch(p){i(p)}},l=function(d){return d.done?n(d.value):Promise.resolve(d.value).then(a,s)};l((o=o.apply(t,e)).next())})};var pp=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Xt:Xt.apply(null,arguments)},sx=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function fp(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var o=e;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return e===o}var hp=function(t){bc(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var i=t.apply(this,o)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.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(e.bind.apply(e,Jt([void 0],o[0].concat(this)))):new(e.bind.apply(e,Jt([void 0],o.concat(this))))},e}(Array),mp=function(t){bc(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var i=t.apply(this,o)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.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(e.bind.apply(e,Jt([void 0],o[0].concat(this)))):new(e.bind.apply(e,Jt([void 0],o.concat(this))))},e}(Array);function oa(t){return _e(t)?Xo(t,function(){}):t}function yp(t){return typeof t=="boolean"}function gp(){return function(e){return bp(e)}}function bp(t){t===void 0&&(t={});var e=t.thunk,o=e===void 0?!0:e,n=t.immutableCheck,i=n===void 0?!0:n,a=t.serializableCheck,s=a===void 0?!0:a,l=new hp;if(o&&(yp(o)?l.push(Qi):l.push(Qi.withExtraArgument(o.extraArgument))),0){if(i)var d;if(s)var p}return l}var ta=!0;function xc(t){var e=gp(),o=t||{},n=o.reducer,i=n===void 0?void 0:n,a=o.middleware,s=a===void 0?e():a,l=o.devTools,d=l===void 0?!0:l,p=o.preloadedState,h=p===void 0?void 0:p,f=o.enhancers,m=f===void 0?void 0:f,b;if(typeof i=="function")b=i;else if(fp(i))b=dc(i);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var g=s;if(typeof g=="function"&&(g=g(e),!ta&&!Array.isArray(g)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!ta&&g.some(function(x){return typeof x!="function"}))throw new Error("each middleware provided to configureStore must be a function");var E=uc.apply(void 0,g),w=Xt;d&&(w=pp(at({trace:!ta},typeof d=="object"&&d)));var A=new mp(E),T=A;Array.isArray(m)?T=Jt([E],m):typeof m=="function"&&(T=m(A));var S=w.apply(void 0,T);return Ji(b,h,S)}function st(t,e){function o(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(e){var a=e.apply(void 0,n);if(!a)throw new Error("prepareAction did not return an object");return at(at({type:t,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:t,payload:n[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(n){return n.type===t},o}function vc(t){var e={},o=[],n,i={addCase:function(a,s){var l=typeof a=="string"?a:a.type;if(l in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[l]=s,i},addMatcher:function(a,s){return o.push({matcher:a,reducer:s}),i},addDefaultCase:function(a){return n=a,i}};return t(i),[e,o,n]}function xp(t){return typeof t=="function"}function vp(t,e,o,n){o===void 0&&(o=[]);var i=typeof e=="function"?vc(e):[e,o,n],a=i[0],s=i[1],l=i[2],d;if(xp(t))d=function(){return oa(t())};else{var p=oa(t);d=function(){return p}}function h(f,m){f===void 0&&(f=d());var b=Jt([a[m.type]],s.filter(function(g){var E=g.matcher;return E(m)}).map(function(g){var E=g.reducer;return E}));return b.filter(function(g){return!!g}).length===0&&(b=[l]),b.reduce(function(g,E){if(E)if(qe(g)){var w=g,A=E(w,m);return A===void 0?g:A}else{if(_e(g))return Xo(g,function(T){return E(T,m)});var A=E(g,m);if(A===void 0){if(g===null)return g;throw Error("A case reducer on a non-draftable value must not return undefined")}return A}return g},f)}return h.getInitialState=d,h}function Sp(t,e){return t+"/"+e}function Sc(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof t.initialState=="function"?t.initialState:oa(t.initialState),n=t.reducers||{},i=Object.keys(n),a={},s={},l={};i.forEach(function(h){var f=n[h],m=Sp(e,h),b,g;"reducer"in f?(b=f.reducer,g=f.prepare):b=f,a[h]=b,s[m]=b,l[h]=g?st(m,g):st(m)});function d(){var h=typeof t.extraReducers=="function"?vc(t.extraReducers):[t.extraReducers],f=h[0],m=f===void 0?{}:f,b=h[1],g=b===void 0?[]:b,E=h[2],w=E===void 0?void 0:E,A=at(at({},m),s);return vp(o,function(T){for(var S in A)T.addCase(S,A[S]);for(var x=0,O=g;x<O.length;x++){var L=O[x];T.addMatcher(L.matcher,L.reducer)}w&&T.addDefaultCase(w)})}var p;return{name:e,reducer:function(h,f){return p||(p=d()),p(h,f)},actions:l,caseReducers:a,getInitialState:function(){return p||(p=d()),p.getInitialState()}}}var Op="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Ep=function(t){t===void 0&&(t=21);for(var e="",o=t;o--;)e+=Op[Math.random()*64|0];return e},Cp=["name","message","stack","code"],ra=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),yc=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),wp=function(t){if(typeof t=="object"&&t!==null){for(var e={},o=0,n=Cp;o<n.length;o++){var i=n[o];typeof t[i]=="string"&&(e[i]=t[i])}return e}return{message:String(t)}},ux=function(){function t(e,o,n){var i=st(e+"/fulfilled",function(h,f,m,b){return{payload:h,meta:ea(at({},b||{}),{arg:m,requestId:f,requestStatus:"fulfilled"})}}),a=st(e+"/pending",function(h,f,m){return{payload:void 0,meta:ea(at({},m||{}),{arg:f,requestId:h,requestStatus:"pending"})}}),s=st(e+"/rejected",function(h,f,m,b,g){return{payload:b,error:(n&&n.serializeError||wp)(h||"Rejected"),meta:ea(at({},g||{}),{arg:m,requestId:f,rejectedWithValue:!!b,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),l=!1,d=typeof AbortController<"u"?AbortController:function(){function h(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return h.prototype.abort=function(){},h}();function p(h){return function(f,m,b){var g=n?.idGenerator?n.idGenerator(h):Ep(),E=new d,w,A=!1;function T(x){w=x,E.abort()}var S=function(){return up(this,null,function(){var x,O,L,D,B,M,I;return ip(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),D=(x=n?.condition)==null?void 0:x.call(n,h,{getState:m,extra:b}),Rp(D)?[4,D]:[3,2];case 1:D=y.sent(),y.label=2;case 2:if(D===!1||E.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return A=!0,B=new Promise(function(v,_){return E.signal.addEventListener("abort",function(){return _({name:"AbortError",message:w||"Aborted"})})}),f(a(g,h,(O=n?.getPendingMeta)==null?void 0:O.call(n,{requestId:g,arg:h},{getState:m,extra:b}))),[4,Promise.race([B,Promise.resolve(o(h,{dispatch:f,getState:m,extra:b,requestId:g,signal:E.signal,abort:T,rejectWithValue:function(v,_){return new ra(v,_)},fulfillWithValue:function(v,_){return new yc(v,_)}})).then(function(v){if(v instanceof ra)throw v;return v instanceof yc?i(v.payload,g,h,v.meta):i(v,g,h)})])];case 3:return L=y.sent(),[3,5];case 4:return M=y.sent(),L=M instanceof ra?s(null,g,h,M.payload,M.meta):s(M,g,h),[3,5];case 5:return I=n&&!n.dispatchConditionRejection&&s.match(L)&&L.meta.condition,I||f(L),[2,L]}})})}();return Object.assign(S,{abort:T,requestId:g,arg:h,unwrap:function(){return S.then(Ap)}})}}return Object.assign(p,{pending:a,rejected:s,fulfilled:i,typePrefix:e})}return t.withTypes=function(){return t},t}();function Ap(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Rp(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Oc="listener",Ec="completed",Cc="cancelled",px="task-"+Cc,fx="task-"+Ec,hx=Oc+"-"+Cc,mx=Oc+"-"+Ec;var na="listenerMiddleware";var yx=st(na+"/add"),gx=st(na+"/removeAll"),bx=st(na+"/remove");var gc,xx=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(gc||(gc=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},Tp=function(t){return function(e){setTimeout(e,t)}},vx=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Tp(10);rc();window.ftReduxStores||(window.ftReduxStores={});var wt=class t extends je{static get(e){var o;let n=typeof e=="string"?e:e.name,i=typeof e=="string"?void 0:e,a=window.ftReduxStores[n];if(Kt(a))return a;if(i==null)return;let s=Sc({...i,reducers:(o=i.reducers)!==null&&o!==void 0?o:{}}),l=xc({reducer:(d,p)=>p.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__")?{...d,...p.overwrites}:s.reducer(d,p)});return window.ftReduxStores[i.name]=new t(s,l,i.eventBus)}constructor(e,o,n){super(),this.reduxSlice=e,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new $r;let i=a=>a!=null?JSON.parse(JSON.stringify(a)):a;this.actions=new Proxy(this.reduxSlice.actions,{get:(a,s,l)=>{let d=s,p=a[d];return p?(...h)=>{let f=p(...h.map(i));return this.reduxStore.dispatch(f),f}:h=>{this.setState({[d]:i(h)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};function _p(){var t;for(let e of Object.values((t=window.ftReduxStores)!==null&&t!==void 0?t:{}))Kt(e)&&e.clear()}var Qo=class{constructor(e,o,n){this.store=e,this.valueSelector=o,this.callback=n}watch(){return this.stop(),this.lastValue=this.valueSelector(this.store.getState()),this.unsubscribe=this.store.subscribe(()=>{let e=this.store.getState(),o=this.valueSelector(e);Ge(this.lastValue,o)&&(this.callback(o,e),this.lastValue=o)}),this}stop(){return this.unsubscribe!=null&&(this.unsubscribe(),this.unsubscribe=void 0),this.lastValue=void 0,this}};function Np(t,e,o){return new Qo(t,e,o).watch()}var ia=class{constructor(){this.requestConsumers=new Map}getOrCreateRequestConsumers(e){var o;return(o=this.requestConsumers.get(e))!==null&&o!==void 0?o:this.requestConsumers.set(e,new Set).get(e)}registerComponent(e,o){for(let n of o)this.getOrCreateRequestConsumers(n).add(e)}unregisterComponent(e,o){for(let n of o)this.getOrCreateRequestConsumers(n).delete(e)}isRequestNeeded(e){return this.getOrCreateRequestConsumers(e).size>0}};var la={};F(la,{scrollHelper:()=>Lp});var sa,en=new Map,ca=class{lock(e,o){if(o){let n=en.get(o);if(n==null||n===e)return en.set(o,e),o}}release(e,o){o&&en.get(o)===e&&en.delete(o)}findFirstScrollableParent(e){var o;let n,i;for(let a of Gn(e)){let s=a,l=this.elementCanScroll(s);if(l&&s.clientHeight&&s.clientHeight<s.scrollHeight){n=s;break}else l&&i==null&&(i=s)}return(o=n??i)!==null&&o!==void 0?o:document.body}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)}catch{return!1}}getAbsoluteScrollOffset(e,o){var n,i;let a=0;for(;o&&o.offsetParent!==e.offsetParent;)a+=(n=o.offsetTop)!==null&&n!==void 0?n:0,o=o.offsetParent;return a+((i=o?.offsetTop)!==null&&i!==void 0?i:0)-e.offsetTop}computeTopOffsetRatio(e,o){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return o;default:return 0}}scrollIntoViewIfPossible(e,o){let n=this.findFirstScrollableParent(e);if(e&&this.lock(this,n)){let i=this.getAbsoluteScrollOffset(n,e),a=i-n.clientHeight+e.clientHeight,s=i,l=Rr(0,(s-n.scrollTop)/(s-a),1),d=this.computeTopOffsetRatio(o?.position,l)*(a-s)+s;n.scrollTo({behavior:o?.behavior,top:d})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,n);this.release(this,n)}};window.FluidTopicsScrollHelper=(sa=window.FluidTopicsScrollHelper)!==null&&sa!==void 0?sa:new ca;var Lp=window.FluidTopicsScrollHelper;var ua={};F(ua,{SearchPlaceConverter:()=>rr,SearchPlaceQueryParams:()=>z,isSearchPlaceQueryParams:()=>il,serializeRequest:()=>Dp});var Pp=id(Ac(),1);var Rc;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(Rc||(Rc={}));var Tc;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Tc||(Tc={}));var _c;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(_c||(_c={}));var Nc;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(Nc||(Nc={}));var Lc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Lc||(Lc={}));var Ic;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(Ic||(Ic={}));var Pc;(function(t){t.BOOKMARK__CREATE="BOOKMARK__CREATE",t.BOOKMARK__DELETE="BOOKMARK__DELETE",t.CASE_DEFLECTION__START="CASE_DEFLECTION__START",t.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",t.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",t.CHATBOT__RATE="CHATBOT__RATE",t.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",t.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",t.DOCUMENT__AI_TRANSLATE="DOCUMENT__AI_TRANSLATE",t.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",t.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",t.DOCUMENT__PRINT="DOCUMENT__PRINT",t.DOCUMENT__PROCESS="DOCUMENT__PROCESS",t.DOCUMENT__RATE="DOCUMENT__RATE",t.DOCUMENT__SEARCH="DOCUMENT__SEARCH",t.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",t.DOCUMENT__UNRATE="DOCUMENT__UNRATE",t.FEEDBACK__SEND="FEEDBACK__SEND",t.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",t.AI__RATE="AI__RATE",t.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",t.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",t.KHUB__PROCESS="KHUB__PROCESS",t.KHUB__SEARCH="KHUB__SEARCH",t.LABELS__DOWNLOAD="LABELS__DOWNLOAD",t.LINK__SHARE="LINK__SHARE",t.PAGE__DISPLAY="PAGE__DISPLAY",t.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",t.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",t.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",t.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",t.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",t.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",t.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",t.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",t.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",t.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",t.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",t.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",t.TOPIC__DISPLAY="TOPIC__DISPLAY",t.TOPIC__RATE="TOPIC__RATE",t.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",t.TOPIC__UNRATE="TOPIC__UNRATE",t.USER__LOGIN="USER__LOGIN",t.USER__LOGOUT="USER__LOGOUT",t.HEARTBEAT="HEARTBEAT"})(Pc||(Pc={}));var kc;(function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"})(kc||(kc={}));var Dc;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT",t.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",t.LINK_PREVIEW="LINK_PREVIEW"})(Dc||(Dc={}));var Mc;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Mc||(Mc={}));var Uc;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Uc||(Uc={}));var Bc;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Bc||(Bc={}));var Fc;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Fc||(Fc={}));var $c;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"})($c||($c={}));var er;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(er||(er={}));var Hc;(function(t){t.ASC="ASC",t.DESC="DESC"})(Hc||(Hc={}));var Wc;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Wc||(Wc={}));var da;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(da||(da={}));var qc=t=>Object.keys(da).includes(t);var zc;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(zc||(zc={}));var Gc;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Gc||(Gc={}));var jc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(jc||(jc={}));var tr;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(tr||(tr={}));var Yc=t=>Object.keys(tr).includes(t);var Vc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Vc||(Vc={}));var Kc;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Kc||(Kc={}));var Zc;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Zc||(Zc={}));var X;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(X||(X={}));var Ce;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(Ce||(Ce={}));var Xc;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Xc||(Xc={}));var Jc;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Jc||(Jc={}));var Qc;(function(t){t.USER="USER",t.ASSISTANT="ASSISTANT"})(Qc||(Qc={}));var el;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(el||(el={}));var tl;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(tl||(tl={}));var Ip={[X.PERSONAL_BOOK_SHARE_USER]:[X.PERSONAL_BOOK_USER],[X.HTML_EXPORT_USER]:[X.PERSONAL_BOOK_USER],[X.PDF_EXPORT_USER]:[X.PERSONAL_BOOK_USER],[X.KHUB_ADMIN]:[X.CONTENT_PUBLISHER],[X.ADMIN]:[X.KHUB_ADMIN,X.USERS_ADMIN,X.PORTAL_ADMIN],[X.GENERATIVE_AI_EXPORT_USER]:[X.GENERATIVE_AI_USER]};function rl(t,e){return t===e||(Ip[t]??[]).some(o=>rl(o,e))}function ol(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(n=>rl(n,e))}function kp(t){return`"${t}"`}function nl(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function Dp(t,e){return new rr(t).serialize(e)}var z;(function(t){t.LOCALE="content-lang",t.QUERY="query",t.SCOPE="scope",t.FILTERS="filters",t.VIRTUAL_FIELD="virtual-field",t.PERIOD="period",t.VALUE_FILTERS="value-filters",t.DATE_FILTERS="date-filters",t.RANGE_FILTERS="range-filters",t.SORT="sort",t.PER_PAGE="per-page",t.KEYWORD_MATCH="keyword-match"})(z||(z={}));var Mp=new Set(Object.values(z));function il(t){return Mp.has(t)}var rr=class{constructor(e,o=20,n=!1,i="en-US"){this.baseUrl=e,this.defaultPerPage=o,this.allLanguagesAllowed=n,this.defaultContentLocale=i,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"},this.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]]}serialize(e,o){return this.serializeToCurrentPageIfPossible(e,o??"/search")}serializeToCurrentPageIfPossible(e,o){let n=o==null||o.trim().length===0,i=new URL(n?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${o}`);return i.search=this.toURLSearchParams(e),i.toString()}toURLSearchParams(e,o=!1){var n,i,a,s,l,d,p,h,f,m,b;let g=new URLSearchParams;e.contentLocale?(!o||e.contentLocale!==this.defaultContentLocale)&&g.append(z.LOCALE,e.contentLocale):g.append(z.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((n=e.query)===null||n===void 0?void 0:n.length)>0&&g.append(z.QUERY,e.query);let E=(a=(i=e.metadataFilters)===null||i===void 0?void 0:i.filter(x=>x.valueFilter&&!x.valueFilter.negative))!==null&&a!==void 0?a:[];if(E.length>0){let x=E.map(O=>{var L,D;let B=((D=(L=O.valueFilter)===null||L===void 0?void 0:L.values)!==null&&D!==void 0?D:[]).map(M=>this.escapeFilters(M)).map(M=>kp(nl(M))).join("_");return`${O.key}~${B}`}).join("*");g.append(z.VALUE_FILTERS,x)}let w=(l=(s=e.metadataFilters)===null||s===void 0?void 0:s.filter(x=>x.dateFilter))!==null&&l!==void 0?l:[];if(w.length>0){let x=w.map(O=>{var L;return`${O.key}~${(L=O.dateFilter)===null||L===void 0?void 0:L.type.toLowerCase()}`}).join("*");g.append(z.DATE_FILTERS,x)}let A=(p=(d=e.metadataFilters)===null||d===void 0?void 0:d.filter(x=>x.rangeFilter))!==null&&p!==void 0?p:[];if(A.length>0){let x=A.map(O=>{var L,D;return`${O.key}~${(L=O.rangeFilter)===null||L===void 0?void 0:L.from}_${(D=O.rangeFilter)===null||D===void 0?void 0:D.to}`}).join("*");g.append(z.RANGE_FILTERS,x)}e.virtualField&&e.virtualField!=="EVERYWHERE"&&g.append(z.VIRTUAL_FIELD,e.virtualField.toLowerCase()),e.scope&&e.scope!=="DEFAULT"&&g.append(z.SCOPE,e.scope.toLowerCase()),e.sortId!=null&&g.append(z.SORT,e.sortId),!((h=e.paging)===null||h===void 0)&&h.perPage&&((m=(f=e.paging)===null||f===void 0?void 0:f.perPage)!==null&&m!==void 0?m:this.defaultPerPage)!=this.defaultPerPage&&g.append(z.PER_PAGE,String(e.paging.perPage)),e.keywordMatch!=null&&g.append(z.KEYWORD_MATCH,e.keywordMatch.toLowerCase());let T=(b=e.otherQueryParams)!==null&&b!==void 0?b:{};for(let x in T)g.append(x,T[x]);let S=new Array;return g.forEach((x,O)=>{S.push(this.encodeQueryString(O)+"="+this.encodeQueryString(x))}),encodeURI(S.join("&")).replace(/#/g,"%23")}encodeQueryString(e){return encodeURIComponent(e).replace(/%20/g,"+")}parse(e){var o;let n=e.split("?"),i=this.fromURLSearchParams(n.slice(1).join("?")),a=n[0].split("/search/")[1];return a==null?i:{...i,scope:(o=this.scopeMapping[a])!==null&&o!==void 0?o:i.scope}}fromURLSearchParams(e){var o,n,i,a,s,l;try{e=decodeURI(e).replace(/%23/g,"#")}catch(A){console.warn("Could not decode search request query params, fallback on raw value",A)}let d=new URLSearchParams(e),p=d.get(z.LOCALE)==="all"?void 0:d.get(z.LOCALE),h=((o=d.get(z.VIRTUAL_FIELD))!==null&&o!==void 0?o:"EVERYWHERE").toUpperCase(),f=(n=d.get(z.SORT))===null||n===void 0?void 0:n.toLowerCase(),m=(i=d.get(z.SCOPE))!==null&&i!==void 0?i:"default",b=+((a=d.get(z.PER_PAGE))!==null&&a!==void 0?a:this.defaultPerPage),g=d.get(z.KEYWORD_MATCH),E=g?g.toUpperCase()===er.MANDATORY?er.MANDATORY:er.OPTIONAL:void 0,w={};for(let A of d.keys())il(A)||(w[A]=d.get(A));return{contentLocale:p??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:(s=d.get(z.QUERY))!==null&&s!==void 0?s:"",scope:(l=this.scopeMapping[m])!==null&&l!==void 0?l:"DEFAULT",virtualField:qc(h)?h:"EVERYWHERE",sortId:f,metadataFilters:this.parseCompatFilters(d),facets:[],paging:{page:1,perPage:Rr(1,isNaN(b)?this.defaultPerPage:b,1e3)},keywordMatch:E,otherQueryParams:w}}parseCompatFilters(e){var o,n,i,a,s,l;let d=[];return e.has(z.FILTERS)&&(d=this.parseValueFilters((o=e.get(z.FILTERS))!==null&&o!==void 0?o:"")),(n=e.has(z.PERIOD))!==null&&n!==void 0&&n&&(d=[...d,...this.parseLegacyPeriodFilter(((i=e.get(z.PERIOD))!==null&&i!==void 0?i:"").toUpperCase())]),[...d,...this.parseValueFilters((a=e.get(z.VALUE_FILTERS))!==null&&a!==void 0?a:""),...this.parseDateFilters((s=e.get(z.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=e.get(z.RANGE_FILTERS))!==null&&l!==void 0?l:"")]}splitUnknownFilter(e){return this.superEscapeFilters(e).split("*").map(o=>o.split("~"))}parseValueFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],valueFilter:{values:o[1].split("_").map(nl).map(n=>this.unescapeFilterValue(n)),negative:!1}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],dateFilter:{type:tr[o[1].toUpperCase()]}}))}parseRangeFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],rangeFilter:{from:o[1].split("_")[0],to:o[1].split("_")[1]}}))}escapeFilters(e){for(let[o,n,i]of this.filtersEscapeMapping)e=e.replaceAll(o,n);return e}superEscapeFilters(e){for(let[o,n,i]of this.filtersEscapeMapping)e=e.replaceAll(n,i);return e}unescapeFilterValue(e){for(let[o,n,i]of this.filtersEscapeMapping)e=e.replace(i,o);return e}parseLegacyPeriodFilter(e){if(Yc(e))return[{key:"ft:lastEdition",dateFilter:{type:tr[e]}}];if(e.startsWith("CUSTOM_")){let[o,n,i]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:n,to:i}}]}return[]}};var fa={};F(fa,{toFtFormComponent:()=>Up});var pa=Symbol("elementInternals"),Up=ie(Symbol("toFtFormComponent"),function(t){class e extends t{static get formAssociated(){return!0}get form(){return this[pa].form}constructor(...n){super(n),this[pa]=this.attachInternals()}setFormValue(n){this[pa].setFormValue(n)}}return e});var ha={};F(ha,{DateFormatter:()=>At});var At=class{static format(e,o,n,i){return window.moment?window.moment(e).locale(o).format(this.getMomentDateFormat(n,i)):this.getIntlDateTime(e,o,n,i)}static getMomentDateFormat(e,o){return e?o?"lll":"ll":o?"L LT":"L"}static getIntlDateTime(e,o,n,i){let a=typeof e=="string"?new Date(e):e,s=new Intl.DateTimeFormat(o,{dateStyle:n?"medium":"short"}).format(a);if(!i)return s;let l=new Intl.DateTimeFormat(o,{timeStyle:"short"}).format(a);return`${s} ${l}`}static getTimezoneAsString(){let e=n=>String(Math.floor(n)).padStart(2,"0"),o=new Date().getTimezoneOffset();return`${o<0?"+":"-"}${e(Math.abs(o)/60)}:${e(Math.abs(o)%60)}`}};var ya={};F(ya,{ALL_KEYS_VALUE:()=>ma,SameWindowStorageEvent:()=>or});var ma="__all__",or=class extends CustomEvent{constructor(e,o,n){super("same-window-storage",{detail:{key:e,oldValue:o,newValue:n}})}keyMatch(e){return this.detail.key.includes(e)||this.detail.key==ma}};Storage.prototype.setItem=new Proxy(Storage.prototype.setItem,{apply(t,e,o){let n=e.getItem(o[0]);Reflect.apply(t,e,o),window.dispatchEvent(new or(o[0],n,o[1]))}});Storage.prototype.removeItem=new Proxy(Storage.prototype.removeItem,{apply(t,e,o){let n=e.getItem(o[0]);Reflect.apply(t,e,o),window.dispatchEvent(new or(o[0],n))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(t,e,o){Reflect.apply(t,e,o),window.dispatchEvent(new or(ma))}});var ba={};F(ba,{FocusMainContentEvent:()=>ga});var ga=class extends Event{constructor(){super("ft-focus-main-content",{composed:!0,bubbles:!0})}};var al={};window.FluidTopicsA11yHints={isKeyboardNavigation:!1,lastPressedKey:""};function Bp(t){(t.key==="Enter"||t.key===" "||t.key==="Tab")&&(window.FluidTopicsA11yHints.isKeyboardNavigation=!0),window.FluidTopicsA11yHints.lastPressedKey=t.key}function Fp(t){window.FluidTopicsA11yHints.isKeyboardNavigation=t.detail==0}document.addEventListener("keydown",Bp);document.addEventListener("click",Fp);var sl=P`
|
|
48
|
+
`;var js={};var Di={};F(Di,{ParametrizedLabelResolver:()=>Fr});var Fr=class t{constructor(e,o){this.defaultLabels=e,this.labels=o}resolve(e,...o){var n,i;e=this.resolvePluralKey(e,o);let a=(i=(n=this.labels[e])!==null&&n!==void 0?n:this.defaultLabels[e])!==null&&i!==void 0?i:"";return t.replaceParameters(a,...o)}static replaceParameters(e,...o){return o.forEach((n,i)=>e=e.replace(new RegExp(`\\{${i}([^}]*)\\}`,"g"),(a,s)=>t.formatValue(n,s))),e}resolvePluralKey(e,o){for(let n of o)if(typeof n=="number"){let i=`${String(e)}[\\=${n}]`;if(i in this.labels||i in this.defaultLabels)return i}return e}static formatValue(e,o){return e instanceof Date?t.formatDate(e,o):e??""}static formatDate(e,o){let n=i=>o?.includes("date")?e.toLocaleDateString(i):o?.includes("time")?e.toLocaleTimeString(i):e.toLocaleString(i);try{return n(document.documentElement.lang)}catch{return n()}}};var aa={};F(aa,{FtCommandQueue:()=>$r,FtLitElementRedux:()=>Wr,FtReduxStore:()=>wt,FtStateManager:()=>ia,ReduxWatcher:()=>Qo,clearAllStores:()=>_p,isFtReduxStore:()=>Kt,redux:()=>Vt,reduxEventListener:()=>Vu,reduxReactive:()=>ju,watch:()=>Np,withRedux:()=>Vs});var ju=()=>(t,e)=>{var o;let n=t.constructor;n.reduxReactiveProperties=new Set(n.reduxReactiveProperties),(o=n.reduxReactiveProperties)===null||o===void 0||o.add(e)},Vt=t=>{let e=t??{};return(o,n)=>{var i;let a={hasChanged:Ge,attribute:!1,...e};C(a)(o,n);let s=o.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(n,{selector:(i=e.selector)!==null&&i!==void 0?i:l=>l[n],store:e.store})}},Vu=t=>(e,o)=>{let n=e.constructor;n.reduxEventListeners=new Map(n.reduxEventListeners),n.reduxEventListeners.set(o,t)};var $r=class{constructor(){this.queue=[]}add(e,o=!1){o&&this.clear(e.type),this.queue.push(e)}consume(e){let o=this.queue.find(n=>n.type===e);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}clear(e){typeof e=="string"?this.queue=this.queue.filter(o=>o.type!==e):this.queue=this.queue.filter(o=>!e.test(o.type))}};function Kt(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Hr=Symbol("internalReduxEventsUnsubscribers"),ot=Symbol("internalStoresUnsubscribers"),Ot=Symbol("internalStores"),Vs=ie(Symbol("withRedux"),function(t){var e,o,n;class i extends t{constructor(){super(...arguments),this[e]=new Map,this[o]=new Map,this[n]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(l=>s.has(l))&&this.updateFromStores()}getUnnamedStore(){if(this[Ot].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ot].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[Ot].get(s)}addStore(s,l){var d;l=(d=l??s.name)!==null&&d!==void 0?d:"default-store",this.unsubscribeFromStore(l),this[Ot].set(l,s),this.subscribeToStore(l,s),this.updateFromStores()}removeStore(s){let l=typeof s=="string"?s:s.name;this.unsubscribeFromStore(l),this[Ot].delete(l)}setupStores(){this.unsubscribeFromStores(),this[Ot].forEach((s,l)=>this.subscribeToStore(l,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,l)=>{let d=this.constructor.getPropertyOptions(l);if(!d?.attribute||!this.hasAttribute(typeof d?.attribute=="string"?d.attribute:l)){let p=this.getStore(s.store);p&&(s.store?this[ot].has(s.store):this[ot].size>0)&&(this[l]=s.selector(p.getState(),this))}})}subscribeToStore(s,l){var d;this[ot].set(s,l.subscribe(()=>this.updateFromStores())),this[Hr].set(s,[]),Kt(l)&&l.eventBus&&((d=this.reduxConstructor.reduxEventListeners)===null||d===void 0||d.forEach((p,h)=>{if(typeof this[h]=="function"&&(!p.store||l.name===p.store)){let f=m=>this[h](m);l.addEventListener(p.eventName,f),this[Hr].get(s).push(()=>l.removeEventListener(p.eventName,f))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[ot].forEach((s,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(s){var l;this[ot].has(s)&&this[ot].get(s)(),this[ot].delete(s),(l=this[Hr].get(s))===null||l===void 0||l.forEach(d=>d()),this[Hr].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=ot,o=Ot,n=Hr,i.reduxProperties=new Map,i.reduxReactiveProperties=new Set,i.reduxEventListeners=new Map,i}),Wr=class extends Vs(j){};function Ee(t){for(var e=arguments.length,o=Array(e>1?e-1:0),n=1;n<e;n++)o[n-1]=arguments[n];if(0)var i,a;throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function qe(t){return!!t&&!!t[q]}function _e(t){var e;return!!t&&(function(o){if(!o||typeof o!="object")return!1;var n=Object.getPrototypeOf(o);if(n===null)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===ep}(t)||Array.isArray(t)||!!t[Qs]||!!(!((e=t.constructor)===null||e===void 0)&&e[Qs])||Gi(t)||ji(t))}function Et(t,e,o){o===void 0&&(o=!1),Yt(t)===0?(o?Object.keys:qt)(t).forEach(function(n){o&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,i){return e(i,n,t)})}function Yt(t){var e=t[q];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Gi(t)?2:ji(t)?3:0}function Zt(t,e){return Yt(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Ku(t,e){return Yt(t)===2?t.get(e):t[e]}function ec(t,e,o){var n=Yt(t);n===2?t.set(e,o):n===3?t.add(o):t[e]=o}function tc(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function Gi(t){return Ju&&t instanceof Map}function ji(t){return Qu&&t instanceof Set}function nt(t){return t.o||t.t}function Vi(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=nc(t);delete e[q];for(var o=qt(e),n=0;n<o.length;n++){var i=o[n],a=e[i];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:t[i]})}return Object.create(Object.getPrototypeOf(t),e)}function Ki(t,e){return e===void 0&&(e=!1),Zi(t)||qe(t)||!_e(t)||(Yt(t)>1&&(t.set=t.add=t.clear=t.delete=Zu),Object.freeze(t),e&&Et(t,function(o,n){return Ki(n,!0)},!0)),t}function Zu(){Ee(2)}function Zi(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function He(t){var e=zi[t];return e||Ee(18,t),e}function qu(t,e){zi[t]||(zi[t]=e)}function $i(){return Gr}function Mi(t,e){e&&(He("Patches"),t.u=[],t.s=[],t.v=e)}function Zo(t){Hi(t),t.p.forEach(Yu),t.p=null}function Hi(t){t===Gr&&(Gr=t.l)}function Ks(t){return Gr={p:[],l:Gr,h:t,m:!0,_:0}}function Yu(t){var e=t[q];e.i===0||e.i===1?e.j():e.g=!0}function Ui(t,e){e._=e.p.length;var o=e.p[0],n=t!==void 0&&t!==o;return e.h.O||He("ES5").S(e,t,n),n?(o[q].P&&(Zo(e),Ee(4)),_e(t)&&(t=qo(e,t),e.l||Yo(e,t)),e.u&&He("Patches").M(o[q].t,t,e.u,e.s)):t=qo(e,o,[]),Zo(e),e.u&&e.v(e.u,e.s),t!==oc?t:void 0}function qo(t,e,o){if(Zi(e))return e;var n=e[q];if(!n)return Et(e,function(l,d){return Zs(t,n,e,l,d,o)},!0),e;if(n.A!==t)return e;if(!n.P)return Yo(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=Vi(n.k):n.o,a=i,s=!1;n.i===3&&(a=new Set(i),i.clear(),s=!0),Et(a,function(l,d){return Zs(t,n,i,l,d,o,s)}),Yo(t,i,!1),o&&t.u&&He("Patches").N(n,o,t.u,t.s)}return n.o}function Zs(t,e,o,n,i,a,s){if(qe(i)){var l=qo(t,i,a&&e&&e.i!==3&&!Zt(e.R,n)?a.concat(n):void 0);if(ec(o,n,l),!qe(l))return;t.m=!1}else s&&o.add(i);if(_e(i)&&!Zi(i)){if(!t.h.D&&t._<1)return;qo(t,i),e&&e.A.l||Yo(t,i)}}function Yo(t,e,o){o===void 0&&(o=!1),!t.l&&t.h.D&&t.m&&Ki(e,o)}function Bi(t,e){var o=t[q];return(o?nt(o):t)[e]}function qs(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var n=Object.getOwnPropertyDescriptor(o,e);if(n)return n;o=Object.getPrototypeOf(o)}}function it(t){t.P||(t.P=!0,t.l&&it(t.l))}function Fi(t){t.o||(t.o=Vi(t.t))}function Wi(t,e,o){var n=Gi(e)?He("MapSet").F(e,o):ji(e)?He("MapSet").T(e,o):t.O?function(i,a){var s=Array.isArray(i),l={i:s?1:0,A:a?a.A:$i(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},d=l,p=jr;s&&(d=[l],p=zr);var h=Proxy.revocable(d,p),f=h.revoke,m=h.proxy;return l.k=m,l.j=f,m}(e,o):He("ES5").J(e,o);return(o?o.A:$i()).p.push(n),n}function Xu(t){return qe(t)||Ee(22,t),function e(o){if(!_e(o))return o;var n,i=o[q],a=Yt(o);if(i){if(!i.P&&(i.i<4||!He("ES5").K(i)))return i.t;i.I=!0,n=Ys(o,a),i.I=!1}else n=Ys(o,a);return Et(n,function(s,l){i&&Ku(i.t,s)===l||ec(n,s,e(l))}),a===3?new Set(n):n}(t)}function Ys(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Vi(t)}function rc(){function t(s,l){var d=a[s];return d?d.enumerable=l:a[s]=d={configurable:!0,enumerable:l,get:function(){var p=this[q];return jr.get(p,s)},set:function(p){var h=this[q];jr.set(h,s,p)}},d}function e(s){for(var l=s.length-1;l>=0;l--){var d=s[l][q];if(!d.P)switch(d.i){case 5:n(d)&&it(d);break;case 4:o(d)&&it(d)}}}function o(s){for(var l=s.t,d=s.k,p=qt(d),h=p.length-1;h>=0;h--){var f=p[h];if(f!==q){var m=l[f];if(m===void 0&&!Zt(l,f))return!0;var b=d[f],g=b&&b[q];if(g?g.t!==m:!tc(b,m))return!0}}var E=!!l[q];return p.length!==qt(l).length+(E?0:1)}function n(s){var l=s.k;if(l.length!==s.t.length)return!0;var d=Object.getOwnPropertyDescriptor(l,l.length-1);if(d&&!d.get)return!0;for(var p=0;p<l.length;p++)if(!l.hasOwnProperty(p))return!0;return!1}function i(s){s.g&&Ee(3,JSON.stringify(nt(s)))}var a={};qu("ES5",{J:function(s,l){var d=Array.isArray(s),p=function(f,m){if(f){for(var b=Array(m.length),g=0;g<m.length;g++)Object.defineProperty(b,""+g,t(g,!0));return b}var E=nc(m);delete E[q];for(var w=qt(E),A=0;A<w.length;A++){var T=w[A];E[T]=t(T,f||!!E[T].enumerable)}return Object.create(Object.getPrototypeOf(m),E)}(d,s),h={i:d?5:4,A:l?l.A:$i(),P:!1,I:!1,R:{},l,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,q,{value:h,writable:!0}),p},S:function(s,l,d){d?qe(l)&&l[q].A===s&&e(s.p):(s.u&&function p(h){if(h&&typeof h=="object"){var f=h[q];if(f){var m=f.t,b=f.k,g=f.R,E=f.i;if(E===4)Et(b,function(x){x!==q&&(m[x]!==void 0||Zt(m,x)?g[x]||p(b[x]):(g[x]=!0,it(f)))}),Et(m,function(x){b[x]!==void 0||Zt(b,x)||(g[x]=!1,it(f))});else if(E===5){if(n(f)&&(it(f),g.length=!0),b.length<m.length)for(var w=b.length;w<m.length;w++)g[w]=!1;else for(var A=m.length;A<b.length;A++)g[A]=!0;for(var T=Math.min(b.length,m.length),S=0;S<T;S++)b.hasOwnProperty(S)||(g[S]=!0),g[S]===void 0&&p(b[S])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?o(s):n(s)}})}var Xs,Gr,qi=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Ju=typeof Map<"u",Qu=typeof Set<"u",Js=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",oc=qi?Symbol.for("immer-nothing"):((Xs={})["immer-nothing"]=!0,Xs),Qs=qi?Symbol.for("immer-draftable"):"__$immer_draftable",q=qi?Symbol.for("immer-state"):"__$immer_state";var ep=""+Object.prototype.constructor,qt=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,nc=Object.getOwnPropertyDescriptors||function(t){var e={};return qt(t).forEach(function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)}),e},zi={},jr={get:function(t,e){if(e===q)return t;var o=nt(t);if(!Zt(o,e))return function(i,a,s){var l,d=qs(a,s);return d?"value"in d?d.value:(l=d.get)===null||l===void 0?void 0:l.call(i.k):void 0}(t,o,e);var n=o[e];return t.I||!_e(n)?n:n===Bi(t.t,e)?(Fi(t),t.o[e]=Wi(t.A.h,n,t)):n},has:function(t,e){return e in nt(t)},ownKeys:function(t){return Reflect.ownKeys(nt(t))},set:function(t,e,o){var n=qs(nt(t),e);if(n?.set)return n.set.call(t.k,o),!0;if(!t.P){var i=Bi(nt(t),e),a=i?.[q];if(a&&a.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(tc(o,i)&&(o!==void 0||Zt(t.t,e)))return!0;Fi(t),it(t)}return t.o[e]===o&&(o!==void 0||e in t.o)||Number.isNaN(o)&&Number.isNaN(t.o[e])||(t.o[e]=o,t.R[e]=!0),!0},deleteProperty:function(t,e){return Bi(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,Fi(t),it(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=nt(t),n=Reflect.getOwnPropertyDescriptor(o,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:o[e]}},defineProperty:function(){Ee(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Ee(12)}},zr={};Et(jr,function(t,e){zr[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),zr.deleteProperty=function(t,e){return zr.set.call(this,t,e,void 0)},zr.set=function(t,e,o){return jr.set.call(this,t[0],e,o,t[0])};var tp=function(){function t(o){var n=this;this.O=Js,this.D=!0,this.produce=function(i,a,s){if(typeof i=="function"&&typeof a!="function"){var l=a;a=i;var d=n;return function(E){var w=this;E===void 0&&(E=l);for(var A=arguments.length,T=Array(A>1?A-1:0),S=1;S<A;S++)T[S-1]=arguments[S];return d.produce(E,function(x){var O;return(O=a).call.apply(O,[w,x].concat(T))})}}var p;if(typeof a!="function"&&Ee(6),s!==void 0&&typeof s!="function"&&Ee(7),_e(i)){var h=Ks(n),f=Wi(n,i,void 0),m=!0;try{p=a(f),m=!1}finally{m?Zo(h):Hi(h)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(E){return Mi(h,s),Ui(E,h)},function(E){throw Zo(h),E}):(Mi(h,s),Ui(p,h))}if(!i||typeof i!="object"){if((p=a(i))===void 0&&(p=i),p===oc&&(p=void 0),n.D&&Ki(p,!0),s){var b=[],g=[];He("Patches").M(i,p,b,g),s(b,g)}return p}Ee(21,i)},this.produceWithPatches=function(i,a){if(typeof i=="function")return function(p){for(var h=arguments.length,f=Array(h>1?h-1:0),m=1;m<h;m++)f[m-1]=arguments[m];return n.produceWithPatches(p,function(b){return i.apply(void 0,[b].concat(f))})};var s,l,d=n.produce(i,a,function(p,h){s=p,l=h});return typeof Promise<"u"&&d instanceof Promise?d.then(function(p){return[p,s,l]}):[d,s,l]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var e=t.prototype;return e.createDraft=function(o){_e(o)||Ee(8),qe(o)&&(o=Xu(o));var n=Ks(this),i=Wi(this,o,void 0);return i[q].C=!0,Hi(n),i},e.finishDraft=function(o,n){var i=o&&o[q],a=i.A;return Mi(a,n),Ui(void 0,a)},e.setAutoFreeze=function(o){this.D=o},e.setUseProxies=function(o){o&&!Js&&Ee(20),this.O=o},e.applyPatches=function(o,n){var i;for(i=n.length-1;i>=0;i--){var a=n[i];if(a.path.length===0&&a.op==="replace"){o=a.value;break}}i>-1&&(n=n.slice(i+1));var s=He("Patches").$;return qe(o)?s(o,n):this.produce(o,function(l){return s(l,n)})},t}(),ye=new tp,rp=ye.produce,Bb=ye.produceWithPatches.bind(ye),Fb=ye.setAutoFreeze.bind(ye),$b=ye.setUseProxies.bind(ye),Hb=ye.applyPatches.bind(ye),Wb=ye.createDraft.bind(ye),zb=ye.finishDraft.bind(ye),Xo=rp;function Ct(t){"@babel/helpers - typeof";return Ct=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ct(t)}function ic(t,e){if(Ct(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var n=o.call(t,e||"default");if(Ct(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function ac(t){var e=ic(t,"string");return Ct(e)=="symbol"?e:e+""}function sc(t,e,o){return(e=ac(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function cc(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),o.push.apply(o,n)}return o}function Yi(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?cc(Object(o),!0).forEach(function(n){sc(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):cc(Object(o)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))})}return t}function de(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var lc=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Xi=function(){return Math.random().toString(36).substring(7).split("").join(".")},Jo={INIT:"@@redux/INIT"+Xi(),REPLACE:"@@redux/REPLACE"+Xi(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Xi()}};function op(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function Ji(t,e,o){var n;if(typeof e=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(de(0));if(typeof e=="function"&&typeof o>"u"&&(o=e,e=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(de(1));return o(Ji)(t,e)}if(typeof t!="function")throw new Error(de(2));var i=t,a=e,s=[],l=s,d=!1;function p(){l===s&&(l=s.slice())}function h(){if(d)throw new Error(de(3));return a}function f(E){if(typeof E!="function")throw new Error(de(4));if(d)throw new Error(de(5));var w=!0;return p(),l.push(E),function(){if(w){if(d)throw new Error(de(6));w=!1,p();var T=l.indexOf(E);l.splice(T,1),s=null}}}function m(E){if(!op(E))throw new Error(de(7));if(typeof E.type>"u")throw new Error(de(8));if(d)throw new Error(de(9));try{d=!0,a=i(a,E)}finally{d=!1}for(var w=s=l,A=0;A<w.length;A++){var T=w[A];T()}return E}function b(E){if(typeof E!="function")throw new Error(de(10));i=E,m({type:Jo.REPLACE})}function g(){var E,w=f;return E={subscribe:function(T){if(typeof T!="object"||T===null)throw new Error(de(11));function S(){T.next&&T.next(h())}S();var x=w(S);return{unsubscribe:x}}},E[lc]=function(){return this},E}return m({type:Jo.INIT}),n={dispatch:m,subscribe:f,getState:h,replaceReducer:b},n[lc]=g,n}function np(t){Object.keys(t).forEach(function(e){var o=t[e],n=o(void 0,{type:Jo.INIT});if(typeof n>"u")throw new Error(de(12));if(typeof o(void 0,{type:Jo.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(de(13))})}function dc(t){for(var e=Object.keys(t),o={},n=0;n<e.length;n++){var i=e[n];typeof t[i]=="function"&&(o[i]=t[i])}var a=Object.keys(o),s,l;try{np(o)}catch(d){l=d}return function(p,h){if(p===void 0&&(p={}),l)throw l;if(0)var f;for(var m=!1,b={},g=0;g<a.length;g++){var E=a[g],w=o[E],A=p[E],T=w(A,h);if(typeof T>"u"){var S=h&&h.type;throw new Error(de(14))}b[E]=T,m=m||T!==A}return m=m||a.length!==Object.keys(p).length,m?b:p}}function Xt(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function uc(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(n){return function(){var i=n.apply(void 0,arguments),a=function(){throw new Error(de(15))},s={getState:i.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=e.map(function(d){return d(s)});return a=Xt.apply(void 0,l)(i.dispatch),Yi(Yi({},i),{},{dispatch:a})}}}function pc(t){var e=function(n){var i=n.dispatch,a=n.getState;return function(s){return function(l){return typeof l=="function"?l(i,a,t):s(l)}}};return e}var fc=pc();fc.withExtraArgument=pc;var Qi=fc;var bc=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},t(e,o)};return function(e,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");t(e,o);function n(){this.constructor=e}e.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),ip=function(t,e){var o={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(p){return function(h){return d([p,h])}}function d(p){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,i&&(a=p[0]&2?i.return:p[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,p[1])).done)return a;switch(i=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return o.label++,{value:p[1],done:!1};case 5:o.label++,i=p[1],p=[0];continue;case 7:p=o.ops.pop(),o.trys.pop();continue;default:if(a=o.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){o=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){o.label=p[1];break}if(p[0]===6&&o.label<a[1]){o.label=a[1],a=p;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(p);break}a[2]&&o.ops.pop(),o.trys.pop();continue}p=e.call(t,o)}catch(h){p=[6,h],i=0}finally{n=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Jt=function(t,e){for(var o=0,n=e.length,i=t.length;o<n;o++,i++)t[i]=e[o];return t},ap=Object.defineProperty,sp=Object.defineProperties,cp=Object.getOwnPropertyDescriptors,hc=Object.getOwnPropertySymbols,lp=Object.prototype.hasOwnProperty,dp=Object.prototype.propertyIsEnumerable,mc=function(t,e,o){return e in t?ap(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},at=function(t,e){for(var o in e||(e={}))lp.call(e,o)&&mc(t,o,e[o]);if(hc)for(var n=0,i=hc(e);n<i.length;n++){var o=i[n];dp.call(e,o)&&mc(t,o,e[o])}return t},ea=function(t,e){return sp(t,cp(e))},up=function(t,e,o){return new Promise(function(n,i){var a=function(d){try{l(o.next(d))}catch(p){i(p)}},s=function(d){try{l(o.throw(d))}catch(p){i(p)}},l=function(d){return d.done?n(d.value):Promise.resolve(d.value).then(a,s)};l((o=o.apply(t,e)).next())})};var pp=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Xt:Xt.apply(null,arguments)},sx=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function fp(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var o=e;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return e===o}var hp=function(t){bc(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var i=t.apply(this,o)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.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(e.bind.apply(e,Jt([void 0],o[0].concat(this)))):new(e.bind.apply(e,Jt([void 0],o.concat(this))))},e}(Array),mp=function(t){bc(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var i=t.apply(this,o)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.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(e.bind.apply(e,Jt([void 0],o[0].concat(this)))):new(e.bind.apply(e,Jt([void 0],o.concat(this))))},e}(Array);function oa(t){return _e(t)?Xo(t,function(){}):t}function yp(t){return typeof t=="boolean"}function gp(){return function(e){return bp(e)}}function bp(t){t===void 0&&(t={});var e=t.thunk,o=e===void 0?!0:e,n=t.immutableCheck,i=n===void 0?!0:n,a=t.serializableCheck,s=a===void 0?!0:a,l=new hp;if(o&&(yp(o)?l.push(Qi):l.push(Qi.withExtraArgument(o.extraArgument))),0){if(i)var d;if(s)var p}return l}var ta=!0;function xc(t){var e=gp(),o=t||{},n=o.reducer,i=n===void 0?void 0:n,a=o.middleware,s=a===void 0?e():a,l=o.devTools,d=l===void 0?!0:l,p=o.preloadedState,h=p===void 0?void 0:p,f=o.enhancers,m=f===void 0?void 0:f,b;if(typeof i=="function")b=i;else if(fp(i))b=dc(i);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var g=s;if(typeof g=="function"&&(g=g(e),!ta&&!Array.isArray(g)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!ta&&g.some(function(x){return typeof x!="function"}))throw new Error("each middleware provided to configureStore must be a function");var E=uc.apply(void 0,g),w=Xt;d&&(w=pp(at({trace:!ta},typeof d=="object"&&d)));var A=new mp(E),T=A;Array.isArray(m)?T=Jt([E],m):typeof m=="function"&&(T=m(A));var S=w.apply(void 0,T);return Ji(b,h,S)}function st(t,e){function o(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(e){var a=e.apply(void 0,n);if(!a)throw new Error("prepareAction did not return an object");return at(at({type:t,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:t,payload:n[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(n){return n.type===t},o}function vc(t){var e={},o=[],n,i={addCase:function(a,s){var l=typeof a=="string"?a:a.type;if(l in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[l]=s,i},addMatcher:function(a,s){return o.push({matcher:a,reducer:s}),i},addDefaultCase:function(a){return n=a,i}};return t(i),[e,o,n]}function xp(t){return typeof t=="function"}function vp(t,e,o,n){o===void 0&&(o=[]);var i=typeof e=="function"?vc(e):[e,o,n],a=i[0],s=i[1],l=i[2],d;if(xp(t))d=function(){return oa(t())};else{var p=oa(t);d=function(){return p}}function h(f,m){f===void 0&&(f=d());var b=Jt([a[m.type]],s.filter(function(g){var E=g.matcher;return E(m)}).map(function(g){var E=g.reducer;return E}));return b.filter(function(g){return!!g}).length===0&&(b=[l]),b.reduce(function(g,E){if(E)if(qe(g)){var w=g,A=E(w,m);return A===void 0?g:A}else{if(_e(g))return Xo(g,function(T){return E(T,m)});var A=E(g,m);if(A===void 0){if(g===null)return g;throw Error("A case reducer on a non-draftable value must not return undefined")}return A}return g},f)}return h.getInitialState=d,h}function Sp(t,e){return t+"/"+e}function Sc(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof t.initialState=="function"?t.initialState:oa(t.initialState),n=t.reducers||{},i=Object.keys(n),a={},s={},l={};i.forEach(function(h){var f=n[h],m=Sp(e,h),b,g;"reducer"in f?(b=f.reducer,g=f.prepare):b=f,a[h]=b,s[m]=b,l[h]=g?st(m,g):st(m)});function d(){var h=typeof t.extraReducers=="function"?vc(t.extraReducers):[t.extraReducers],f=h[0],m=f===void 0?{}:f,b=h[1],g=b===void 0?[]:b,E=h[2],w=E===void 0?void 0:E,A=at(at({},m),s);return vp(o,function(T){for(var S in A)T.addCase(S,A[S]);for(var x=0,O=g;x<O.length;x++){var L=O[x];T.addMatcher(L.matcher,L.reducer)}w&&T.addDefaultCase(w)})}var p;return{name:e,reducer:function(h,f){return p||(p=d()),p(h,f)},actions:l,caseReducers:a,getInitialState:function(){return p||(p=d()),p.getInitialState()}}}var Op="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Ep=function(t){t===void 0&&(t=21);for(var e="",o=t;o--;)e+=Op[Math.random()*64|0];return e},Cp=["name","message","stack","code"],ra=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),yc=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),wp=function(t){if(typeof t=="object"&&t!==null){for(var e={},o=0,n=Cp;o<n.length;o++){var i=n[o];typeof t[i]=="string"&&(e[i]=t[i])}return e}return{message:String(t)}},ux=function(){function t(e,o,n){var i=st(e+"/fulfilled",function(h,f,m,b){return{payload:h,meta:ea(at({},b||{}),{arg:m,requestId:f,requestStatus:"fulfilled"})}}),a=st(e+"/pending",function(h,f,m){return{payload:void 0,meta:ea(at({},m||{}),{arg:f,requestId:h,requestStatus:"pending"})}}),s=st(e+"/rejected",function(h,f,m,b,g){return{payload:b,error:(n&&n.serializeError||wp)(h||"Rejected"),meta:ea(at({},g||{}),{arg:m,requestId:f,rejectedWithValue:!!b,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),l=!1,d=typeof AbortController<"u"?AbortController:function(){function h(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return h.prototype.abort=function(){},h}();function p(h){return function(f,m,b){var g=n?.idGenerator?n.idGenerator(h):Ep(),E=new d,w,A=!1;function T(x){w=x,E.abort()}var S=function(){return up(this,null,function(){var x,O,L,D,B,M,I;return ip(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),D=(x=n?.condition)==null?void 0:x.call(n,h,{getState:m,extra:b}),Rp(D)?[4,D]:[3,2];case 1:D=y.sent(),y.label=2;case 2:if(D===!1||E.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return A=!0,B=new Promise(function(v,_){return E.signal.addEventListener("abort",function(){return _({name:"AbortError",message:w||"Aborted"})})}),f(a(g,h,(O=n?.getPendingMeta)==null?void 0:O.call(n,{requestId:g,arg:h},{getState:m,extra:b}))),[4,Promise.race([B,Promise.resolve(o(h,{dispatch:f,getState:m,extra:b,requestId:g,signal:E.signal,abort:T,rejectWithValue:function(v,_){return new ra(v,_)},fulfillWithValue:function(v,_){return new yc(v,_)}})).then(function(v){if(v instanceof ra)throw v;return v instanceof yc?i(v.payload,g,h,v.meta):i(v,g,h)})])];case 3:return L=y.sent(),[3,5];case 4:return M=y.sent(),L=M instanceof ra?s(null,g,h,M.payload,M.meta):s(M,g,h),[3,5];case 5:return I=n&&!n.dispatchConditionRejection&&s.match(L)&&L.meta.condition,I||f(L),[2,L]}})})}();return Object.assign(S,{abort:T,requestId:g,arg:h,unwrap:function(){return S.then(Ap)}})}}return Object.assign(p,{pending:a,rejected:s,fulfilled:i,typePrefix:e})}return t.withTypes=function(){return t},t}();function Ap(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Rp(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Oc="listener",Ec="completed",Cc="cancelled",px="task-"+Cc,fx="task-"+Ec,hx=Oc+"-"+Cc,mx=Oc+"-"+Ec;var na="listenerMiddleware";var yx=st(na+"/add"),gx=st(na+"/removeAll"),bx=st(na+"/remove");var gc,xx=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(gc||(gc=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},Tp=function(t){return function(e){setTimeout(e,t)}},vx=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Tp(10);rc();window.ftReduxStores||(window.ftReduxStores={});var wt=class t extends je{static get(e){var o;let n=typeof e=="string"?e:e.name,i=typeof e=="string"?void 0:e,a=window.ftReduxStores[n];if(Kt(a))return a;if(i==null)return;let s=Sc({...i,reducers:(o=i.reducers)!==null&&o!==void 0?o:{}}),l=xc({reducer:(d,p)=>p.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__")?{...d,...p.overwrites}:s.reducer(d,p)});return window.ftReduxStores[i.name]=new t(s,l,i.eventBus)}constructor(e,o,n){super(),this.reduxSlice=e,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new $r;let i=a=>a!=null?JSON.parse(JSON.stringify(a)):a;this.actions=new Proxy(this.reduxSlice.actions,{get:(a,s,l)=>{let d=s,p=a[d];return p?(...h)=>{let f=p(...h.map(i));return this.reduxStore.dispatch(f),f}:h=>{this.setState({[d]:i(h)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};function _p(){var t;for(let e of Object.values((t=window.ftReduxStores)!==null&&t!==void 0?t:{}))Kt(e)&&e.clear()}var Qo=class{constructor(e,o,n){this.store=e,this.valueSelector=o,this.callback=n}watch(){return this.stop(),this.lastValue=this.valueSelector(this.store.getState()),this.unsubscribe=this.store.subscribe(()=>{let e=this.store.getState(),o=this.valueSelector(e);Ge(this.lastValue,o)&&(this.callback(o,e),this.lastValue=o)}),this}stop(){return this.unsubscribe!=null&&(this.unsubscribe(),this.unsubscribe=void 0),this.lastValue=void 0,this}};function Np(t,e,o){return new Qo(t,e,o).watch()}var ia=class{constructor(){this.requestConsumers=new Map}getOrCreateRequestConsumers(e){var o;return(o=this.requestConsumers.get(e))!==null&&o!==void 0?o:this.requestConsumers.set(e,new Set).get(e)}registerComponent(e,o){for(let n of o)this.getOrCreateRequestConsumers(n).add(e)}unregisterComponent(e,o){for(let n of o)this.getOrCreateRequestConsumers(n).delete(e)}isRequestNeeded(e){return this.getOrCreateRequestConsumers(e).size>0}};var la={};F(la,{scrollHelper:()=>Lp});var sa,en=new Map,ca=class{lock(e,o){if(o){let n=en.get(o);if(n==null||n===e)return en.set(o,e),o}}release(e,o){o&&en.get(o)===e&&en.delete(o)}findFirstScrollableParent(e){var o;let n,i;for(let a of Gn(e)){let s=a,l=this.elementCanScroll(s);if(l&&s.clientHeight&&s.clientHeight<s.scrollHeight){n=s;break}else l&&i==null&&(i=s)}return(o=n??i)!==null&&o!==void 0?o:document.body}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)}catch{return!1}}getAbsoluteScrollOffset(e,o){var n,i;let a=0;for(;o&&o.offsetParent!==e.offsetParent;)a+=(n=o.offsetTop)!==null&&n!==void 0?n:0,o=o.offsetParent;return a+((i=o?.offsetTop)!==null&&i!==void 0?i:0)-e.offsetTop}computeTopOffsetRatio(e,o){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return o;default:return 0}}scrollIntoViewIfPossible(e,o){let n=this.findFirstScrollableParent(e);if(e&&this.lock(this,n)){let i=this.getAbsoluteScrollOffset(n,e),a=i-n.clientHeight+e.clientHeight,s=i,l=Rr(0,(s-n.scrollTop)/(s-a),1),d=this.computeTopOffsetRatio(o?.position,l)*(a-s)+s;n.scrollTo({behavior:o?.behavior,top:d})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,n);this.release(this,n)}};window.FluidTopicsScrollHelper=(sa=window.FluidTopicsScrollHelper)!==null&&sa!==void 0?sa:new ca;var Lp=window.FluidTopicsScrollHelper;var ua={};F(ua,{SearchPlaceConverter:()=>rr,SearchPlaceQueryParams:()=>z,isSearchPlaceQueryParams:()=>al,serializeRequest:()=>Dp});var Pp=id(Ac(),1);var Rc;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(Rc||(Rc={}));var Tc;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Tc||(Tc={}));var _c;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(_c||(_c={}));var Nc;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(Nc||(Nc={}));var Lc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Lc||(Lc={}));var Ic;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(Ic||(Ic={}));var Pc;(function(t){t.BOOKMARK__CREATE="BOOKMARK__CREATE",t.BOOKMARK__DELETE="BOOKMARK__DELETE",t.CASE_DEFLECTION__START="CASE_DEFLECTION__START",t.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",t.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",t.CHATBOT__RATE="CHATBOT__RATE",t.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",t.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",t.DOCUMENT__AI_TRANSLATE="DOCUMENT__AI_TRANSLATE",t.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",t.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",t.DOCUMENT__PRINT="DOCUMENT__PRINT",t.DOCUMENT__PROCESS="DOCUMENT__PROCESS",t.DOCUMENT__RATE="DOCUMENT__RATE",t.DOCUMENT__SEARCH="DOCUMENT__SEARCH",t.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",t.DOCUMENT__UNRATE="DOCUMENT__UNRATE",t.FEEDBACK__SEND="FEEDBACK__SEND",t.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",t.AI__RATE="AI__RATE",t.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",t.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",t.KHUB__PROCESS="KHUB__PROCESS",t.KHUB__SEARCH="KHUB__SEARCH",t.LABELS__DOWNLOAD="LABELS__DOWNLOAD",t.LINK__SHARE="LINK__SHARE",t.PAGE__DISPLAY="PAGE__DISPLAY",t.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",t.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",t.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",t.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",t.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",t.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",t.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",t.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",t.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",t.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",t.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",t.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",t.TOPIC__DISPLAY="TOPIC__DISPLAY",t.TOPIC__RATE="TOPIC__RATE",t.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",t.TOPIC__UNRATE="TOPIC__UNRATE",t.USER__LOGIN="USER__LOGIN",t.USER__LOGOUT="USER__LOGOUT",t.HEARTBEAT="HEARTBEAT"})(Pc||(Pc={}));var kc;(function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"})(kc||(kc={}));var Dc;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT",t.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",t.LINK_PREVIEW="LINK_PREVIEW"})(Dc||(Dc={}));var Mc;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Mc||(Mc={}));var Uc;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Uc||(Uc={}));var Bc;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Bc||(Bc={}));var Fc;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Fc||(Fc={}));var $c;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"})($c||($c={}));var er;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(er||(er={}));var Hc;(function(t){t.ASC="ASC",t.DESC="DESC"})(Hc||(Hc={}));var Wc;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Wc||(Wc={}));var da;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(da||(da={}));var Yc=t=>Object.keys(da).includes(t);var zc;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(zc||(zc={}));var Gc;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Gc||(Gc={}));var jc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(jc||(jc={}));var tr;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(tr||(tr={}));var Xc=t=>Object.keys(tr).includes(t);var Vc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Vc||(Vc={}));var Kc;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Kc||(Kc={}));var Zc;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Zc||(Zc={}));var X;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(X||(X={}));var Ce;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(Ce||(Ce={}));var qc;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(qc||(qc={}));var Jc;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Jc||(Jc={}));var Qc;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Qc||(Qc={}));var el;(function(t){t.USER="USER",t.ASSISTANT="ASSISTANT"})(el||(el={}));var tl;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(tl||(tl={}));var rl;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(rl||(rl={}));var Ip={[X.PERSONAL_BOOK_SHARE_USER]:[X.PERSONAL_BOOK_USER],[X.HTML_EXPORT_USER]:[X.PERSONAL_BOOK_USER],[X.PDF_EXPORT_USER]:[X.PERSONAL_BOOK_USER],[X.KHUB_ADMIN]:[X.CONTENT_PUBLISHER],[X.ADMIN]:[X.KHUB_ADMIN,X.USERS_ADMIN,X.PORTAL_ADMIN],[X.GENERATIVE_AI_EXPORT_USER]:[X.GENERATIVE_AI_USER]};function ol(t,e){return t===e||(Ip[t]??[]).some(o=>ol(o,e))}function nl(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(n=>ol(n,e))}function kp(t){return`"${t}"`}function il(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function Dp(t,e){return new rr(t).serialize(e)}var z;(function(t){t.LOCALE="content-lang",t.QUERY="query",t.SCOPE="scope",t.FILTERS="filters",t.VIRTUAL_FIELD="virtual-field",t.PERIOD="period",t.VALUE_FILTERS="value-filters",t.DATE_FILTERS="date-filters",t.RANGE_FILTERS="range-filters",t.SORT="sort",t.PER_PAGE="per-page",t.KEYWORD_MATCH="keyword-match"})(z||(z={}));var Mp=new Set(Object.values(z));function al(t){return Mp.has(t)}var rr=class{constructor(e,o=20,n=!1,i="en-US"){this.baseUrl=e,this.defaultPerPage=o,this.allLanguagesAllowed=n,this.defaultContentLocale=i,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"},this.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]]}serialize(e,o){return this.serializeToCurrentPageIfPossible(e,o??"/search")}serializeToCurrentPageIfPossible(e,o){let n=o==null||o.trim().length===0,i=new URL(n?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${o}`);return i.search=this.toURLSearchParams(e),i.toString()}toURLSearchParams(e,o=!1){var n,i,a,s,l,d,p,h,f,m,b;let g=new URLSearchParams;e.contentLocale?(!o||e.contentLocale!==this.defaultContentLocale)&&g.append(z.LOCALE,e.contentLocale):g.append(z.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((n=e.query)===null||n===void 0?void 0:n.length)>0&&g.append(z.QUERY,e.query);let E=(a=(i=e.metadataFilters)===null||i===void 0?void 0:i.filter(x=>x.valueFilter&&!x.valueFilter.negative))!==null&&a!==void 0?a:[];if(E.length>0){let x=E.map(O=>{var L,D;let B=((D=(L=O.valueFilter)===null||L===void 0?void 0:L.values)!==null&&D!==void 0?D:[]).map(M=>this.escapeFilters(M)).map(M=>kp(il(M))).join("_");return`${O.key}~${B}`}).join("*");g.append(z.VALUE_FILTERS,x)}let w=(l=(s=e.metadataFilters)===null||s===void 0?void 0:s.filter(x=>x.dateFilter))!==null&&l!==void 0?l:[];if(w.length>0){let x=w.map(O=>{var L;return`${O.key}~${(L=O.dateFilter)===null||L===void 0?void 0:L.type.toLowerCase()}`}).join("*");g.append(z.DATE_FILTERS,x)}let A=(p=(d=e.metadataFilters)===null||d===void 0?void 0:d.filter(x=>x.rangeFilter))!==null&&p!==void 0?p:[];if(A.length>0){let x=A.map(O=>{var L,D;return`${O.key}~${(L=O.rangeFilter)===null||L===void 0?void 0:L.from}_${(D=O.rangeFilter)===null||D===void 0?void 0:D.to}`}).join("*");g.append(z.RANGE_FILTERS,x)}e.virtualField&&e.virtualField!=="EVERYWHERE"&&g.append(z.VIRTUAL_FIELD,e.virtualField.toLowerCase()),e.scope&&e.scope!=="DEFAULT"&&g.append(z.SCOPE,e.scope.toLowerCase()),e.sortId!=null&&g.append(z.SORT,e.sortId),!((h=e.paging)===null||h===void 0)&&h.perPage&&((m=(f=e.paging)===null||f===void 0?void 0:f.perPage)!==null&&m!==void 0?m:this.defaultPerPage)!=this.defaultPerPage&&g.append(z.PER_PAGE,String(e.paging.perPage)),e.keywordMatch!=null&&g.append(z.KEYWORD_MATCH,e.keywordMatch.toLowerCase());let T=(b=e.otherQueryParams)!==null&&b!==void 0?b:{};for(let x in T)g.append(x,T[x]);let S=new Array;return g.forEach((x,O)=>{S.push(this.encodeQueryString(O)+"="+this.encodeQueryString(x))}),encodeURI(S.join("&")).replace(/#/g,"%23")}encodeQueryString(e){return encodeURIComponent(e).replace(/%20/g,"+")}parse(e){var o;let n=e.split("?"),i=this.fromURLSearchParams(n.slice(1).join("?")),a=n[0].split("/search/")[1];return a==null?i:{...i,scope:(o=this.scopeMapping[a])!==null&&o!==void 0?o:i.scope}}fromURLSearchParams(e){var o,n,i,a,s,l;try{e=decodeURI(e).replace(/%23/g,"#")}catch(A){console.warn("Could not decode search request query params, fallback on raw value",A)}let d=new URLSearchParams(e),p=d.get(z.LOCALE)==="all"?void 0:d.get(z.LOCALE),h=((o=d.get(z.VIRTUAL_FIELD))!==null&&o!==void 0?o:"EVERYWHERE").toUpperCase(),f=(n=d.get(z.SORT))===null||n===void 0?void 0:n.toLowerCase(),m=(i=d.get(z.SCOPE))!==null&&i!==void 0?i:"default",b=+((a=d.get(z.PER_PAGE))!==null&&a!==void 0?a:this.defaultPerPage),g=d.get(z.KEYWORD_MATCH),E=g?g.toUpperCase()===er.MANDATORY?er.MANDATORY:er.OPTIONAL:void 0,w={};for(let A of d.keys())al(A)||(w[A]=d.get(A));return{contentLocale:p??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:(s=d.get(z.QUERY))!==null&&s!==void 0?s:"",scope:(l=this.scopeMapping[m])!==null&&l!==void 0?l:"DEFAULT",virtualField:Yc(h)?h:"EVERYWHERE",sortId:f,metadataFilters:this.parseCompatFilters(d),facets:[],paging:{page:1,perPage:Rr(1,isNaN(b)?this.defaultPerPage:b,1e3)},keywordMatch:E,otherQueryParams:w}}parseCompatFilters(e){var o,n,i,a,s,l;let d=[];return e.has(z.FILTERS)&&(d=this.parseValueFilters((o=e.get(z.FILTERS))!==null&&o!==void 0?o:"")),(n=e.has(z.PERIOD))!==null&&n!==void 0&&n&&(d=[...d,...this.parseLegacyPeriodFilter(((i=e.get(z.PERIOD))!==null&&i!==void 0?i:"").toUpperCase())]),[...d,...this.parseValueFilters((a=e.get(z.VALUE_FILTERS))!==null&&a!==void 0?a:""),...this.parseDateFilters((s=e.get(z.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=e.get(z.RANGE_FILTERS))!==null&&l!==void 0?l:"")]}splitUnknownFilter(e){return this.superEscapeFilters(e).split("*").map(o=>o.split("~"))}parseValueFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],valueFilter:{values:o[1].split("_").map(il).map(n=>this.unescapeFilterValue(n)),negative:!1}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],dateFilter:{type:tr[o[1].toUpperCase()]}}))}parseRangeFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],rangeFilter:{from:o[1].split("_")[0],to:o[1].split("_")[1]}}))}escapeFilters(e){for(let[o,n,i]of this.filtersEscapeMapping)e=e.replaceAll(o,n);return e}superEscapeFilters(e){for(let[o,n,i]of this.filtersEscapeMapping)e=e.replaceAll(n,i);return e}unescapeFilterValue(e){for(let[o,n,i]of this.filtersEscapeMapping)e=e.replace(i,o);return e}parseLegacyPeriodFilter(e){if(Xc(e))return[{key:"ft:lastEdition",dateFilter:{type:tr[e]}}];if(e.startsWith("CUSTOM_")){let[o,n,i]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:n,to:i}}]}return[]}};var fa={};F(fa,{toFtFormComponent:()=>Up});var pa=Symbol("elementInternals"),Up=ie(Symbol("toFtFormComponent"),function(t){class e extends t{static get formAssociated(){return!0}get form(){return this[pa].form}constructor(...n){super(n),this[pa]=this.attachInternals()}setFormValue(n){this[pa].setFormValue(n)}}return e});var ha={};F(ha,{DateFormatter:()=>At});var At=class{static format(e,o,n,i){return window.moment?window.moment(e).locale(o).format(this.getMomentDateFormat(n,i)):this.getIntlDateTime(e,o,n,i)}static getMomentDateFormat(e,o){return e?o?"lll":"ll":o?"L LT":"L"}static getIntlDateTime(e,o,n,i){let a=typeof e=="string"?new Date(e):e,s=new Intl.DateTimeFormat(o,{dateStyle:n?"medium":"short"}).format(a);if(!i)return s;let l=new Intl.DateTimeFormat(o,{timeStyle:"short"}).format(a);return`${s} ${l}`}static getTimezoneAsString(){let e=n=>String(Math.floor(n)).padStart(2,"0"),o=new Date().getTimezoneOffset();return`${o<0?"+":"-"}${e(Math.abs(o)/60)}:${e(Math.abs(o)%60)}`}};var ya={};F(ya,{ALL_KEYS_VALUE:()=>ma,SameWindowStorageEvent:()=>or});var ma="__all__",or=class extends CustomEvent{constructor(e,o,n){super("same-window-storage",{detail:{key:e,oldValue:o,newValue:n}})}keyMatch(e){return this.detail.key.includes(e)||this.detail.key==ma}};Storage.prototype.setItem=new Proxy(Storage.prototype.setItem,{apply(t,e,o){let n=e.getItem(o[0]);Reflect.apply(t,e,o),window.dispatchEvent(new or(o[0],n,o[1]))}});Storage.prototype.removeItem=new Proxy(Storage.prototype.removeItem,{apply(t,e,o){let n=e.getItem(o[0]);Reflect.apply(t,e,o),window.dispatchEvent(new or(o[0],n))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(t,e,o){Reflect.apply(t,e,o),window.dispatchEvent(new or(ma))}});var ba={};F(ba,{FocusMainContentEvent:()=>ga});var ga=class extends Event{constructor(){super("ft-focus-main-content",{composed:!0,bubbles:!0})}};var sl={};window.FluidTopicsA11yHints={isKeyboardNavigation:!1,lastPressedKey:""};function Bp(t){(t.key==="Enter"||t.key===" "||t.key==="Tab")&&(window.FluidTopicsA11yHints.isKeyboardNavigation=!0),window.FluidTopicsA11yHints.lastPressedKey=t.key}function Fp(t){window.FluidTopicsA11yHints.isKeyboardNavigation=t.detail==0}document.addEventListener("keydown",Bp);document.addEventListener("click",Fp);var cl=P`
|
|
49
49
|
.sr-only {
|
|
50
50
|
position:absolute;
|
|
51
51
|
left:-10000px;
|
|
@@ -69,7 +69,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
69
69
|
width:auto;
|
|
70
70
|
height:auto;
|
|
71
71
|
}
|
|
72
|
-
`;var $p={checkVisibility:!0},av=ie(Symbol("withAriaNotification"),function(t){class e extends t{sendAriaNotification(n,i){let{checkVisibility:a}={...$p,...i};setTimeout(()=>{(!a||this.checkVisibility())&&(n=typeof n=="string"?n:n?.message,n&&this.dispatchEvent(new _r({type:"aria",message:n})))},20)}}return e});function
|
|
72
|
+
`;var $p={checkVisibility:!0},av=ie(Symbol("withAriaNotification"),function(t){class e extends t{sendAriaNotification(n,i){let{checkVisibility:a}={...$p,...i};setTimeout(()=>{(!a||this.checkVisibility())&&(n=typeof n=="string"?n:n?.message,n&&this.dispatchEvent(new _r({type:"aria",message:n})))},20)}}return e});function ll(t,e,o){return t?e(t):o?.(t)}var se=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},Rt;(function(t){t.blur="blur",t.blurWithStatusResolutionOnInput="blurWithStatusResolutionOnInput",t.input="input"})(Rt||(Rt={}));var Tt;(function(t){t.default="default",t.warning="warning",t.error="error"})(Tt||(Tt={}));var xa=class extends CustomEvent{constructor(e){super("input-validated",{detail:{level:e}})}},yv=ie(Symbol("toFtInput"),function(t){class e extends t{constructor(){super(...arguments),this.warningRules=[],this.errorRules=[],this.validateOn=Rt.input,this.validateAtRender=!1,this.label="",this.hideLabel=!1,this.name="",this.disabled=!1,this.errorMessages=[],this.warningMessages=[],this.status=Tt.default,this.focused=!1,this.additionalWarningRules=[],this.additionalErrorRules=[]}connectedCallback(){super.connectedCallback(),this.validateAtRender&&this.triggerValidation()}onBlur(){this.focused=!1,(this.validateOn===Rt.blur||this.validateOn===Rt.blurWithStatusResolutionOnInput)&&this.triggerValidation()}onFocus(){this.focused=!0}onInput(){(this.status!==Tt.default&&this.validateOn===Rt.blurWithStatusResolutionOnInput||this.validateOn===Rt.input)&&this.triggerValidation()}triggerValidation(){this.errorMessages=this.processRules([...this.errorRules,...this.additionalErrorRules]),this.warningMessages=this.processRules([...this.warningRules,...this.additionalWarningRules]),this.status=this.resolveStatus(),this.dispatchEvent(new xa(this.status))}get messagesForScreenReaderElementId(){return"sr-helper-text-list"}renderMessagesForScreenReader(){return Z`
|
|
73
73
|
<ul aria-live="polite" id="${this.messagesForScreenReaderElementId}"
|
|
74
74
|
style="position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden;list-style:none;">
|
|
75
75
|
${uo(this.errorMessages,n=>Z`
|
|
@@ -78,11 +78,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
78
78
|
${uo(this.warningMessages,n=>Z`
|
|
79
79
|
<li>${n}</li>
|
|
80
80
|
`)}
|
|
81
|
-
${
|
|
81
|
+
${ll(!this.errorMessages.length&&!this.warningMessages.length&&this.helperText,()=>Z`
|
|
82
82
|
<li>${this.helperText}</li>
|
|
83
83
|
`)}
|
|
84
84
|
</ul>
|
|
85
|
-
`}resolveStatus(){return this.forceStatus?this.forceStatus:this.errorMessages.length?Tt.error:this.warningMessages.length?Tt.warning:Tt.default}processRules(n){return n.map(i=>i(this.value)).filter(i=>i!==!0).map(i=>i)}}return se([C()],e.prototype,"warningRules",void 0),se([C()],e.prototype,"errorRules",void 0),se([C()],e.prototype,"validateOn",void 0),se([C({type:Boolean})],e.prototype,"validateAtRender",void 0),se([C()],e.prototype,"label",void 0),se([C({type:Boolean})],e.prototype,"hideLabel",void 0),se([C()],e.prototype,"name",void 0),se([C({type:Boolean})],e.prototype,"disabled",void 0),se([C()],e.prototype,"helperText",void 0),se([C()],e.prototype,"forceStatus",void 0),se([C({reflect:!0})],e.prototype,"value",void 0),se([G()],e.prototype,"errorMessages",void 0),se([G()],e.prototype,"warningMessages",void 0),se([G()],e.prototype,"status",void 0),se([G()],e.prototype,"focused",void 0),se([G()],e.prototype,"additionalWarningRules",void 0),se([G()],e.prototype,"additionalErrorRules",void 0),e});var Vr=(t,e)=>{let o=t._$AN;if(o===void 0)return!1;for(let n of o)n._$AO?.(e,!1),Vr(n,e);return!0},on=t=>{let e,o;do{if((e=t._$AM)===void 0)break;o=e._$AN,o.delete(t),t=e}while(o?.size===0)},
|
|
85
|
+
`}resolveStatus(){return this.forceStatus?this.forceStatus:this.errorMessages.length?Tt.error:this.warningMessages.length?Tt.warning:Tt.default}processRules(n){return n.map(i=>i(this.value)).filter(i=>i!==!0).map(i=>i)}}return se([C()],e.prototype,"warningRules",void 0),se([C()],e.prototype,"errorRules",void 0),se([C()],e.prototype,"validateOn",void 0),se([C({type:Boolean})],e.prototype,"validateAtRender",void 0),se([C()],e.prototype,"label",void 0),se([C({type:Boolean})],e.prototype,"hideLabel",void 0),se([C()],e.prototype,"name",void 0),se([C({type:Boolean})],e.prototype,"disabled",void 0),se([C()],e.prototype,"helperText",void 0),se([C()],e.prototype,"forceStatus",void 0),se([C({reflect:!0})],e.prototype,"value",void 0),se([G()],e.prototype,"errorMessages",void 0),se([G()],e.prototype,"warningMessages",void 0),se([G()],e.prototype,"status",void 0),se([G()],e.prototype,"focused",void 0),se([G()],e.prototype,"additionalWarningRules",void 0),se([G()],e.prototype,"additionalErrorRules",void 0),e});var Vr=(t,e)=>{let o=t._$AN;if(o===void 0)return!1;for(let n of o)n._$AO?.(e,!1),Vr(n,e);return!0},on=t=>{let e,o;do{if((e=t._$AM)===void 0)break;o=e._$AN,o.delete(t),t=e}while(o?.size===0)},dl=t=>{for(let e;e=t._$AM;t=e){let o=e._$AN;if(o===void 0)e._$AN=o=new Set;else if(o.has(t))break;o.add(t),zp(e)}};function Hp(t){this._$AN!==void 0?(on(this),this._$AM=t,dl(this)):this._$AM=t}function Wp(t,e=!1,o=0){let n=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(e)if(Array.isArray(n))for(let a=o;a<n.length;a++)Vr(n[a],!1),on(n[a]);else n!=null&&(Vr(n,!1),on(n));else Vr(this,t)}var zp=t=>{t.type==Ue.CHILD&&(t._$AP??=Wp,t._$AQ??=Hp)},nn=class extends Se{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,o,n){super._$AT(e,o,n),dl(this),this.isConnected=e._$AU}_$AO(e,o=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),o&&(Vr(this,e),on(this))}setValue(e){if(os(this._$Ct))this._$Ct._$AI(e,this);else{let o=[...this._$Ct._$AH];o[this._$Ci]=e,this._$Ct._$AI(o,this,0)}}disconnected(){}reconnected(){}};var ul;(function(t){t.sm="sm",t.md="md",t.lg="lg",t.xl="xl"})(ul||(ul={}));var Gp={sm:640,md:768,lg:1024,xl:1280},va=class extends nn{constructor(e){super(e),this.size=0,this.onResize=()=>{let o=window.innerWidth;this.size!==o&&(this.size=o,this.lastArgs&&this.setValue(this.render(...this.lastArgs)))},this.size=window.innerWidth,window.addEventListener("resize",this.onResize)}disconnected(){window.removeEventListener("resize",this.onResize)}reconnected(){window.addEventListener("resize",this.onResize)}update(e,[o,n,i]){return this.lastArgs=[o,n,i],this.render(o,n,i)}render(e,o,n){let i=this.resolveThreshold(e),a=n??(()=>H);return this.size>i?o():a()}resolveThreshold(e){return typeof e=="number"?e:Gp[e]}},Nv=Re(va);var Sa,Oa,Ea,Ca,wa=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((Ea=(Oa=(Sa=window.safari)===null||Sa===void 0?void 0:Sa.pushNotification)===null||Oa===void 0?void 0:Oa.toString())!==null&&Ea!==void 0?Ea:"")==="[object SafariRemoteNotification]",jp="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(Ca=window.ftGlobals)!==null&&Ca!==void 0?Ca:{lit:Pn,litDecorators:Dn,litRepeat:Mn,litClassMap:Un,litStyleMap:Bn,litUnsafeHTML:$n,wcUtils:{...qn,...Wn,...ei,...ha,...ti,...ri,...ai,...Zn,...Oi,...ba,...sl,...la,...ii,...Ti,...fa,...Ai,...zs,...jn,...Li,...si,...ki,...cl,...js,...Di,...aa,...ya,...Ei,...wi,...ua,...Xn,isSafari:wa,isTouchScreen:jp,setVariable:oe}};var pl=r.extend("--ft-ripple-color","",W.colorContent),Ye={color:pl,backgroundColor:r.extend("--ft-ripple-background-color","",pl),opacityContentOnSurfacePressed:r.external(W.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:r.external(W.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:r.external(W.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:r.external(W.opacityContentOnSurfaceSelected,"Design system"),borderRadius:r.create("--ft-ripple-border-radius","","SIZE","0px")},fl=r.extend("--ft-ripple-color","",W.colorPrimary),hl={color:fl,backgroundColor:r.extend("--ft-ripple-background-color","",fl)},ml=r.extend("--ft-ripple-color","",W.colorSecondary),yl={color:ml,backgroundColor:r.extend("--ft-ripple-background-color","",ml)},gl=P`
|
|
86
86
|
:host {
|
|
87
87
|
display: contents;
|
|
88
88
|
}
|
|
@@ -137,19 +137,19 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
137
137
|
}
|
|
138
138
|
|
|
139
139
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
140
|
-
background-color: ${
|
|
140
|
+
background-color: ${yl.backgroundColor};
|
|
141
141
|
}
|
|
142
142
|
|
|
143
143
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
144
|
-
background-color: ${
|
|
144
|
+
background-color: ${yl.color};
|
|
145
145
|
}
|
|
146
146
|
|
|
147
147
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
148
|
-
background-color: ${
|
|
148
|
+
background-color: ${hl.backgroundColor};
|
|
149
149
|
}
|
|
150
150
|
|
|
151
151
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
152
|
-
background-color: ${
|
|
152
|
+
background-color: ${hl.color};
|
|
153
153
|
}
|
|
154
154
|
|
|
155
155
|
.ft-ripple .ft-ripple--background {
|
|
@@ -205,7 +205,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
205
205
|
<div class="ft-ripple--background"></div>
|
|
206
206
|
<div class="ft-ripple--effect"></div>
|
|
207
207
|
</div>
|
|
208
|
-
`}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var o,n;super.update(e),e.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 e,o;let n=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;n&&this.setupFor((o=this.target)!==null&&o!==void 0?o:n)}forceFocusUpdate(){var e;!((e=this.target)===null||e===void 0)&&e.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let o=(...l)=>d=>{l.forEach(p=>window.addEventListener(p,this.endPress,{once:!0})),this.startPress(d)},n=o("mouseup","contextmenu"),i=o("touchend","touchcancel"),a=l=>{["Enter"," "].includes(l.key)&&o("keyup")(l)},s={passive:!0};e.addEventListener("mouseover",this.startHover,s),e.addEventListener("mousemove",this.moveRipple,s),e.addEventListener("mouseleave",this.endHover,s),e.addEventListener("mousedown",n,s),e.addEventListener("touchstart",i,s),e.addEventListener("touchmove",this.moveRipple,s),e.addEventListener("keydown",a,s),e.addEventListener("focus",this.startFocus,s),e.addEventListener("blur",this.endFocus,s),e.addEventListener("focusin",this.startFocus,s),e.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,s),e.removeEventListener("mousemove",this.moveRipple,s),e.removeEventListener("mouseleave",this.endHover,s),e.removeEventListener("mousedown",n,s),e.removeEventListener("touchstart",i,s),e.removeEventListener("touchmove",this.moveRipple,s),e.removeEventListener("keydown",a,s),e.removeEventListener("focus",this.startFocus,s),e.removeEventListener("blur",this.endFocus,s),e.removeEventListener("focusin",this.startFocus,s),e.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let o=e,n=e,i,a;return o.x!=null?{x:i,y:a}=o:n.touches!=null&&(i=n.touches[0].clientX,a=n.touches[0].clientY),{x:i,y:a}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let o of e.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()}};Y.elementDefinitions={};Y.styles=
|
|
208
|
+
`}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var o,n;super.update(e),e.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 e,o;let n=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;n&&this.setupFor((o=this.target)!==null&&o!==void 0?o:n)}forceFocusUpdate(){var e;!((e=this.target)===null||e===void 0)&&e.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let o=(...l)=>d=>{l.forEach(p=>window.addEventListener(p,this.endPress,{once:!0})),this.startPress(d)},n=o("mouseup","contextmenu"),i=o("touchend","touchcancel"),a=l=>{["Enter"," "].includes(l.key)&&o("keyup")(l)},s={passive:!0};e.addEventListener("mouseover",this.startHover,s),e.addEventListener("mousemove",this.moveRipple,s),e.addEventListener("mouseleave",this.endHover,s),e.addEventListener("mousedown",n,s),e.addEventListener("touchstart",i,s),e.addEventListener("touchmove",this.moveRipple,s),e.addEventListener("keydown",a,s),e.addEventListener("focus",this.startFocus,s),e.addEventListener("blur",this.endFocus,s),e.addEventListener("focusin",this.startFocus,s),e.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,s),e.removeEventListener("mousemove",this.moveRipple,s),e.removeEventListener("mouseleave",this.endHover,s),e.removeEventListener("mousedown",n,s),e.removeEventListener("touchstart",i,s),e.removeEventListener("touchmove",this.moveRipple,s),e.removeEventListener("keydown",a,s),e.removeEventListener("focus",this.startFocus,s),e.removeEventListener("blur",this.endFocus,s),e.removeEventListener("focusin",this.startFocus,s),e.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let o=e,n=e,i,a;return o.x!=null?{x:i,y:a}=o:n.touches!=null&&(i=n.touches[0].clientX,a=n.touches[0].clientY),{x:i,y:a}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let o of e.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()}};Y.elementDefinitions={};Y.styles=gl;pe([C({type:Boolean})],Y.prototype,"primary",void 0);pe([C({type:Boolean})],Y.prototype,"secondary",void 0);pe([C({type:Boolean})],Y.prototype,"unbounded",void 0);pe([C({type:Boolean})],Y.prototype,"activated",void 0);pe([C({type:Boolean})],Y.prototype,"selected",void 0);pe([C({type:Boolean})],Y.prototype,"disabled",void 0);pe([G()],Y.prototype,"hovered",void 0);pe([G()],Y.prototype,"focused",void 0);pe([G()],Y.prototype,"pressed",void 0);pe([G()],Y.prototype,"rippling",void 0);pe([G()],Y.prototype,"originX",void 0);pe([G()],Y.prototype,"originY",void 0);pe([le(".ft-ripple")],Y.prototype,"ripple",void 0);pe([le(".ft-ripple--effect")],Y.prototype,"rippleEffect",void 0);ae("ft-ripple")(Y);var xl=Symbol.for(""),Vp=t=>{if(t?.r===xl)return t?._$litStatic$},nr=t=>({_$litStatic$:t,r:xl});var bl=new Map,Aa=t=>(e,...o)=>{let n=o.length,i,a,s=[],l=[],d,p=0,h=!1;for(;p<n;){for(d=e[p];p<n&&(a=o[p],(i=Vp(a))!==void 0);)d+=i+e[++p],h=!0;p!==n&&l.push(a),s.push(d),p++}if(p===n&&s.push(e[n]),h){let f=s.join("$$lit$$");(e=bl.get(f))===void 0&&(s.raw=s,bl.set(f,e=s)),o=l}return t(e,...o)},ir=Aa(Z),k0=Aa(Tn),D0=Aa(_n);var ar;(function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button",t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"})(ar||(ar={}));function vl(t,e){let o=et[t];return P`
|
|
209
209
|
${e?we(e):P`.ft-typography--${we(t)}`} {
|
|
210
210
|
font-family: ${o.fontFamily};
|
|
211
211
|
font-size: ${o.fontSize};
|
|
@@ -215,7 +215,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
215
215
|
text-decoration: ${o.textDecoration};
|
|
216
216
|
text-transform: ${o.textCase};
|
|
217
217
|
}
|
|
218
|
-
`}var
|
|
218
|
+
`}var Sl=r.extend("--ft-typography-font-family","",W.titleFont),Xe=r.extend("--ft-typography-font-family","",W.contentFont),k={fontFamily:Xe,fontSize:r.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:r.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:r.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:r.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:r.create("--ft-typography-text-transform","","UNKNOWN","inherit")},sr={fontFamily:r.extend("--ft-typography-title-font-family","",Sl),fontSize:r.extend("--ft-typography-title-font-size","",k.fontSize,"20px"),fontWeight:r.extend("--ft-typography-title-font-weight","",k.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-title-letter-spacing","",k.letterSpacing,"0.15px"),lineHeight:r.extend("--ft-typography-title-line-height","",k.lineHeight,"1.2"),textTransform:r.extend("--ft-typography-title-text-transform","",k.textTransform,"inherit")},cr={fontFamily:r.extend("--ft-typography-title-dense-font-family","",Sl),fontSize:r.extend("--ft-typography-title-dense-font-size","",k.fontSize,"14px"),fontWeight:r.extend("--ft-typography-title-dense-font-weight","",k.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-title-dense-letter-spacing","",k.letterSpacing,"0.105px"),lineHeight:r.extend("--ft-typography-title-dense-line-height","",k.lineHeight,"1.7"),textTransform:r.extend("--ft-typography-title-dense-text-transform","",k.textTransform,"inherit")},lr={fontFamily:r.extend("--ft-typography-subtitle1-font-family","",Xe),fontSize:r.extend("--ft-typography-subtitle1-font-size","",k.fontSize,"16px"),fontWeight:r.extend("--ft-typography-subtitle1-font-weight","",k.fontWeight,"600"),letterSpacing:r.extend("--ft-typography-subtitle1-letter-spacing","",k.letterSpacing,"0.144px"),lineHeight:r.extend("--ft-typography-subtitle1-line-height","",k.lineHeight,"1.5"),textTransform:r.extend("--ft-typography-subtitle1-text-transform","",k.textTransform,"inherit")},dr={fontFamily:r.extend("--ft-typography-subtitle2-font-family","",Xe),fontSize:r.extend("--ft-typography-subtitle2-font-size","",k.fontSize,"14px"),fontWeight:r.extend("--ft-typography-subtitle2-font-weight","",k.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-subtitle2-letter-spacing","",k.letterSpacing,"0.098px"),lineHeight:r.extend("--ft-typography-subtitle2-line-height","",k.lineHeight,"1.7"),textTransform:r.extend("--ft-typography-subtitle2-text-transform","",k.textTransform,"inherit")},ur={fontFamily:r.extend("--ft-typography-body1-font-family","",Xe),fontSize:r.extend("--ft-typography-body1-font-size","",k.fontSize,"16px"),fontWeight:r.extend("--ft-typography-body1-font-weight","",k.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-body1-letter-spacing","",k.letterSpacing,"0.496px"),lineHeight:r.extend("--ft-typography-body1-line-height","",k.lineHeight,"1.5"),textTransform:r.extend("--ft-typography-body1-text-transform","",k.textTransform,"inherit")},pr={fontFamily:r.extend("--ft-typography-body2-font-family","",Xe),fontSize:r.extend("--ft-typography-body2-font-size","",k.fontSize,"14px"),fontWeight:r.extend("--ft-typography-body2-font-weight","",k.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-body2-letter-spacing","",k.letterSpacing,"0.252px"),lineHeight:r.extend("--ft-typography-body2-line-height","",k.lineHeight,"1.4"),textTransform:r.extend("--ft-typography-body2-text-transform","",k.textTransform,"inherit")},fr={fontFamily:r.extend("--ft-typography-caption-font-family","",Xe),fontSize:r.extend("--ft-typography-caption-font-size","",k.fontSize,"12px"),fontWeight:r.extend("--ft-typography-caption-font-weight","",k.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-caption-letter-spacing","",k.letterSpacing,"0.396px"),lineHeight:r.extend("--ft-typography-caption-line-height","",k.lineHeight,"1.33"),textTransform:r.extend("--ft-typography-caption-text-transform","",k.textTransform,"inherit")},hr={fontFamily:r.extend("--ft-typography-breadcrumb-font-family","",Xe),fontSize:r.extend("--ft-typography-breadcrumb-font-size","",k.fontSize,"10px"),fontWeight:r.extend("--ft-typography-breadcrumb-font-weight","",k.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-breadcrumb-letter-spacing","",k.letterSpacing,"0.33px"),lineHeight:r.extend("--ft-typography-breadcrumb-line-height","",k.lineHeight,"1.6"),textTransform:r.extend("--ft-typography-breadcrumb-text-transform","",k.textTransform,"inherit")},mr={fontFamily:r.extend("--ft-typography-overline-font-family","",Xe),fontSize:r.extend("--ft-typography-overline-font-size","",k.fontSize,"10px"),fontWeight:r.extend("--ft-typography-overline-font-weight","",k.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-overline-letter-spacing","",k.letterSpacing,"1.5px"),lineHeight:r.extend("--ft-typography-overline-line-height","",k.lineHeight,"1.6"),textTransform:r.extend("--ft-typography-overline-text-transform","",k.textTransform,"uppercase")},Ne={fontFamily:r.extend("--ft-typography-button-font-family","",Xe),fontSize:r.extend("--ft-typography-button-font-size","",k.fontSize,"14px"),fontWeight:r.extend("--ft-typography-button-font-weight","",k.fontWeight,"600"),letterSpacing:r.extend("--ft-typography-button-letter-spacing","",k.letterSpacing,"1.246px"),lineHeight:r.extend("--ft-typography-button-line-height","",k.lineHeight,"1.15"),textTransform:r.extend("--ft-typography-button-text-transform","",k.textTransform,"uppercase")},Ol=P`
|
|
219
219
|
.ft-typography--title {
|
|
220
220
|
font-family: ${sr.fontFamily};
|
|
221
221
|
font-size: ${sr.fontSize};
|
|
@@ -224,7 +224,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
224
224
|
line-height: ${sr.lineHeight};
|
|
225
225
|
text-transform: ${sr.textTransform};
|
|
226
226
|
}
|
|
227
|
-
`,
|
|
227
|
+
`,El=P`
|
|
228
228
|
.ft-typography--title-dense {
|
|
229
229
|
font-family: ${cr.fontFamily};
|
|
230
230
|
font-size: ${cr.fontSize};
|
|
@@ -233,7 +233,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
233
233
|
line-height: ${cr.lineHeight};
|
|
234
234
|
text-transform: ${cr.textTransform};
|
|
235
235
|
}
|
|
236
|
-
`,
|
|
236
|
+
`,Cl=P`
|
|
237
237
|
.ft-typography--subtitle1 {
|
|
238
238
|
font-family: ${lr.fontFamily};
|
|
239
239
|
font-size: ${lr.fontSize};
|
|
@@ -242,7 +242,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
242
242
|
line-height: ${lr.lineHeight};
|
|
243
243
|
text-transform: ${lr.textTransform};
|
|
244
244
|
}
|
|
245
|
-
`,
|
|
245
|
+
`,wl=P`
|
|
246
246
|
.ft-typography--subtitle2 {
|
|
247
247
|
font-family: ${dr.fontFamily};
|
|
248
248
|
font-size: ${dr.fontSize};
|
|
@@ -252,7 +252,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
252
252
|
text-transform: ${dr.textTransform};
|
|
253
253
|
}
|
|
254
254
|
|
|
255
|
-
`,
|
|
255
|
+
`,Al=P`
|
|
256
256
|
.ft-typography--body1 {
|
|
257
257
|
font-family: ${ur.fontFamily};
|
|
258
258
|
font-size: ${ur.fontSize};
|
|
@@ -261,7 +261,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
261
261
|
line-height: ${ur.lineHeight};
|
|
262
262
|
text-transform: ${ur.textTransform};
|
|
263
263
|
}
|
|
264
|
-
`,
|
|
264
|
+
`,Rl=P`
|
|
265
265
|
.ft-typography--body2 {
|
|
266
266
|
font-family: ${pr.fontFamily};
|
|
267
267
|
font-size: ${pr.fontSize};
|
|
@@ -270,7 +270,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
270
270
|
line-height: ${pr.lineHeight};
|
|
271
271
|
text-transform: ${pr.textTransform};
|
|
272
272
|
}
|
|
273
|
-
`,
|
|
273
|
+
`,Tl=P`
|
|
274
274
|
.ft-typography--caption {
|
|
275
275
|
font-family: ${fr.fontFamily};
|
|
276
276
|
font-size: ${fr.fontSize};
|
|
@@ -279,7 +279,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
279
279
|
line-height: ${fr.lineHeight};
|
|
280
280
|
text-transform: ${fr.textTransform};
|
|
281
281
|
}
|
|
282
|
-
`,
|
|
282
|
+
`,_l=P`
|
|
283
283
|
.ft-typography--breadcrumb {
|
|
284
284
|
font-family: ${hr.fontFamily};
|
|
285
285
|
font-size: ${hr.fontSize};
|
|
@@ -288,7 +288,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
288
288
|
line-height: ${hr.lineHeight};
|
|
289
289
|
text-transform: ${hr.textTransform};
|
|
290
290
|
}
|
|
291
|
-
`,
|
|
291
|
+
`,Nl=P`
|
|
292
292
|
.ft-typography--overline {
|
|
293
293
|
font-family: ${mr.fontFamily};
|
|
294
294
|
font-size: ${mr.fontSize};
|
|
@@ -297,7 +297,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
297
297
|
line-height: ${mr.lineHeight};
|
|
298
298
|
text-transform: ${mr.textTransform};
|
|
299
299
|
}
|
|
300
|
-
`,
|
|
300
|
+
`,Ll=P`
|
|
301
301
|
.ft-typography--button {
|
|
302
302
|
font-family: ${Ne.fontFamily};
|
|
303
303
|
font-size: ${Ne.fontSize};
|
|
@@ -306,11 +306,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
306
306
|
line-height: ${Ne.lineHeight};
|
|
307
307
|
text-transform: ${Ne.textTransform};
|
|
308
308
|
}
|
|
309
|
-
`,
|
|
309
|
+
`,Il=P`
|
|
310
310
|
.ft-typography {
|
|
311
311
|
vertical-align: inherit;
|
|
312
312
|
}
|
|
313
|
-
`,
|
|
313
|
+
`,Pl=[Object.keys(et).map(t=>vl(t))];var kl=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},Le=class extends j{constructor(){super(...arguments),this.variant=ar.body1}render(){return this.element?ir`
|
|
314
314
|
<${nr(this.element)}
|
|
315
315
|
part="text"
|
|
316
316
|
class="ft-typography ft-typography--${this.variant}">
|
|
@@ -318,7 +318,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
318
318
|
</${nr(this.element)}>
|
|
319
319
|
`:ir`
|
|
320
320
|
<slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
|
|
321
|
-
`}};Le.styles=[
|
|
321
|
+
`}};Le.styles=[Ol,El,Cl,wl,Al,Rl,Tl,_l,Nl,Ll,Il,...Pl];kl([C()],Le.prototype,"element",void 0);kl([C()],Le.prototype,"variant",void 0);var an;(function(t){t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"})(an||(an={}));function Kp(t,e){let o=et[t];return P`
|
|
322
322
|
${e?we(e):P`.ftds-typography--${we(t)}`} {
|
|
323
323
|
font-family: ${o.fontFamily};
|
|
324
324
|
font-size: ${o.fontSize};
|
|
@@ -328,7 +328,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
328
328
|
text-decoration: ${o.textDecoration};
|
|
329
329
|
text-transform: ${o.textCase};
|
|
330
330
|
}
|
|
331
|
-
`}var
|
|
331
|
+
`}var Dl=[Object.keys(et).map(t=>Kp(t))];var Ml=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},_t=class extends j{constructor(){super(...arguments),this.variant=an.body2medium}render(){return this.element?ir`
|
|
332
332
|
<${nr(this.element)}
|
|
333
333
|
part="text"
|
|
334
334
|
class="ftds-typography ftds-typography--${this.variant}">
|
|
@@ -336,7 +336,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
336
336
|
</${nr(this.element)}>
|
|
337
337
|
`:ir`
|
|
338
338
|
<slot part="text" class="ftds-typography ftds-typography--${this.variant}"></slot>
|
|
339
|
-
`}};_t.styles=[...
|
|
339
|
+
`}};_t.styles=[...Dl];Ml([C()],_t.prototype,"element",void 0);Ml([C()],_t.prototype,"variant",void 0);ae("ft-typography")(Le);ae("ftds-typography")(_t);var yr={distance:r.create("--ft-tooltip-distance","","SIZE","4px"),color:r.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:r.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:r.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:r.extend("--ft-tooltip-border-radius","",W.borderRadiusS),maxWidth:r.create("--ft-tooltip-max-width","","SIZE","150px")},Ul=P`
|
|
340
340
|
.ft-tooltip--container {
|
|
341
341
|
display: block;
|
|
342
342
|
}
|
|
@@ -365,10 +365,10 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
365
365
|
position: relative;
|
|
366
366
|
word-break: break-word;
|
|
367
367
|
}
|
|
368
|
-
`;var
|
|
369
|
-
`;var Zp="ft-app-info",Nt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Nt.eventName="authentication-change";var qp={session:(t,e)=>{fe(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>N.dispatchEvent(new Nt(e.payload)),0))}},N=wt.get({name:Zp,reducers:qp,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 Lt=class t{static get(e){let{baseUrl:o,apiIntegrationIdentifier:n}=N.getState(),i=e??n;if(o&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,i,!0)}static await(e){return new Promise(o=>{let n=t.get(e);if(n)o(n);else{let i=N.subscribe(()=>{n=t.get(e),n&&(i(),o(n))})}})}};var sn=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Lt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Lt.await()}};var ge=class extends sn{constructor(e=!0,o){var n;super(o),this.sortObjectFields=(a,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([l],[d])=>l.localeCompare(d)));let i=this.constructor;i.commonCache=(n=i.commonCache)!==null&&n!==void 0?n:new Be,this.cache=e?i.commonCache:new Be}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((o,n)=>0|31*o+n.charCodeAt(0),0))}};var cn=class extends ge{async listMyBookmarks(){let e=N.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var Ra=class{addCommand(e,o=!1){N.commands.add(e,o)}consumeCommand(e){return N.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Ra;var Bl,gr=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},Yp=Symbol("clearAfterUnitTest"),ln=class extends ho(ge){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Bl]=()=>{this.defaultMessages={},this.cache=new Be,this.listeners={}},this.currentUiLocale=N.getState().uiLocale,N.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=N.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let o=e.name.toLowerCase();this.cache.setFinal(o,e),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,o){var n;if(e=e.toLowerCase(),o&&Object.keys(o).length>0){let i={...(n=this.defaultMessages[e])!==null&&n!==void 0?n:{},...o};fe(this.defaultMessages[e],i)||(this.defaultMessages[e]=i,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var o,n;return this.fetchContext(e),(n=(o=this.cache.getNow(e))===null||o===void 0?void 0:o.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(e,o){let n=e.toLowerCase();return this.resolveContext(n)[o]}resolveMessage(e,o,...n){var i;let a=e.toLowerCase(),s=this.resolveContext(a);return new Fr((i=this.defaultMessages[a])!==null&&i!==void 0?i:{},s).resolve(o,...n)}async fetchContext(e){let o=!this.cache.has(e),n;try{n=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),o&&await this.notify(e)}catch(i){!(i instanceof gt)&&o&&console.error(i)}return n}subscribe(e,o){var n;return e=e.toLowerCase(),this.listeners[e]=(n=this.listeners[e])!==null&&n!==void 0?n:new Set,this.listeners[e].add(o),()=>{var i;return(i=this.listeners[e])===null||i===void 0?void 0:i.delete(o)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new gr({loadedContexts:e})),this.dispatchEvent(new gr({loadedContexts:e})),await Promise.all(e.map(o=>this.notify(o,!1)))}async notify(e,o=!0){o&&(document.body.dispatchEvent(new gr({loadedContexts:[e]})),this.dispatchEvent(new gr({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(n=>fo(0).then(()=>n()).catch(()=>null)))}};Bl=Yp;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends ln{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends ln{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var Kr=window.FluidTopicsI18nService,Ta=window.FluidTopicsCustomI18nService;var _a=class{highlightHtml(e,o,n){Ni(e,o,n)}};window.FluidTopicsHighlightHtmlService=new _a;var dn=class extends ge{async listMySearches(){let{session:e}=N.getState();return ol(e,X.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var Na=class{isDate(e){var o,n,i,a;return(a=(i=((n=(o=N.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]).find(l=>l.key===e))===null||i===void 0?void 0:i.date)!==null&&a!==void 0?a:!1}format(e,o){var n,i,a;return At.format(e,(n=o?.locale)!==null&&n!==void 0?n:N.getState().uiLocale,(i=o?.longFormat)!==null&&i!==void 0?i:!1,(a=o?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new Na;var Zr=class{static get(e,o){var n,i;let a=N.getState(),{lang:s,region:l}=(i=(n=a.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&i!==void 0?i:{lang:"en",region:"US"};return new rr(a.baseUrl,e??20,a.searchInAllLanguagesAllowed,o??`${s}-${l}`)}};var La=class{urlToSearchRequest(e){return Zr.get().parse(e)}searchRequestToUrl(e){return Zr.get().serialize(e)}};window.FluidTopicsUrlService=new La;var It=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};It.eventName="change";var Ia=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let o=sessionStorage.getItem(this.itemName(e));return o?JSON.parse(o):void 0}set(e,o){sessionStorage.setItem(this.itemName(e),JSON.stringify(o))}},Fl=new Ia;var un=class t extends je{static build(){return new t(window.history,Fl,()=>window.location,!1)}constructor(e,o,n,i){var a,s;super(),this.history=e,this.historyStorage=o,this.windowLocation=n,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(a=e.state)===null||a===void 0?void 0:a.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(i)}setCurrentState(e,o=!1){let n=o&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,n&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),fe(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new It(this.currentItem())),0)}installProxies(){let e=o=>(n,i,[a,s,l])=>{let d=o(),p={...d===this.currentIndex?this.currentState:void 0,...a,index:d,href:typeof l=="string"?l:(l??this.windowLocation()).href};n.apply(i,[p,s,l]),this.setCurrentState(p,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let o=this.history.length-1;o>=0;o--)e?this.states[o]=this.historyStorage.get(o):setTimeout(()=>this.states[o]=this.historyStorage.get(o),this.history.length-o)}updateCurrentState(e){var o;let n={...this.buildCurrentState(),...e,index:this.currentIndex,title:(o=e?.title)!==null&&o!==void 0?o:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(e){this.addEventListener(It.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(It.eventName,e)}currentItem(){return Tr(this.currentState)}back(){let e=this.previousDifferentMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return Tr(this.states[this.previousDifferentMajorPosition()])}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return Tr(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var o;let n=(o=this.states[e])===null||o===void 0?void 0:o.majorStateId;if(!n)return e;let i=e,a=e+1;for(;this.states.length>a&&!this.isDifferentMajorState(a,n);)this.hasState(a)&&(i=a),a++;return i}buildCurrentState(){var e,o;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(o=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&o!==void 0?o:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,o){var n;if(!this.hasState(e))return!1;let i=o??this.currentState.majorStateId,a=(n=this.states[e])===null||n===void 0?void 0:n.majorStateId;return a==null||a!=i}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=un.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t)});var $l=N;function Hl(t,e){var o;return $l.getState().authenticationRequired&&!(!((o=$l.getState().session)===null||o===void 0)&&o.sessionAuthenticated)?Promise.resolve(e):t()}var J=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},K=class extends j{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=()=>Lt.get(),this.authenticationRequired=!1,this.messageContexts=[],this.cache=new Be,this.cleanSessionDebouncer=new he,this.reloadConfiguration=()=>{this.cache.clear("availableContentLocales"),this.updateAvailableContentLocales()}}render(){return Z`
|
|
368
|
+
`;var Bl=P`
|
|
369
|
+
`;var Zp="ft-app-info",Nt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Nt.eventName="authentication-change";var qp={session:(t,e)=>{fe(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>N.dispatchEvent(new Nt(e.payload)),0))}},N=wt.get({name:Zp,reducers:qp,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 Lt=class t{static get(e){let{baseUrl:o,apiIntegrationIdentifier:n}=N.getState(),i=e??n;if(o&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,i,!0)}static await(e){return new Promise(o=>{let n=t.get(e);if(n)o(n);else{let i=N.subscribe(()=>{n=t.get(e),n&&(i(),o(n))})}})}};var sn=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Lt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Lt.await()}};var ge=class extends sn{constructor(e=!0,o){var n;super(o),this.sortObjectFields=(a,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([l],[d])=>l.localeCompare(d)));let i=this.constructor;i.commonCache=(n=i.commonCache)!==null&&n!==void 0?n:new Be,this.cache=e?i.commonCache:new Be}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((o,n)=>0|31*o+n.charCodeAt(0),0))}};var cn=class extends ge{async listMyBookmarks(){let e=N.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var Ra=class{addCommand(e,o=!1){N.commands.add(e,o)}consumeCommand(e){return N.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Ra;var Fl,gr=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},Yp=Symbol("clearAfterUnitTest"),ln=class extends ho(ge){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Fl]=()=>{this.defaultMessages={},this.cache=new Be,this.listeners={}},this.currentUiLocale=N.getState().uiLocale,N.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=N.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let o=e.name.toLowerCase();this.cache.setFinal(o,e),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,o){var n;if(e=e.toLowerCase(),o&&Object.keys(o).length>0){let i={...(n=this.defaultMessages[e])!==null&&n!==void 0?n:{},...o};fe(this.defaultMessages[e],i)||(this.defaultMessages[e]=i,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var o,n;return this.fetchContext(e),(n=(o=this.cache.getNow(e))===null||o===void 0?void 0:o.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(e,o){let n=e.toLowerCase();return this.resolveContext(n)[o]}resolveMessage(e,o,...n){var i;let a=e.toLowerCase(),s=this.resolveContext(a);return new Fr((i=this.defaultMessages[a])!==null&&i!==void 0?i:{},s).resolve(o,...n)}async fetchContext(e){let o=!this.cache.has(e),n;try{n=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),o&&await this.notify(e)}catch(i){!(i instanceof gt)&&o&&console.error(i)}return n}subscribe(e,o){var n;return e=e.toLowerCase(),this.listeners[e]=(n=this.listeners[e])!==null&&n!==void 0?n:new Set,this.listeners[e].add(o),()=>{var i;return(i=this.listeners[e])===null||i===void 0?void 0:i.delete(o)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new gr({loadedContexts:e})),this.dispatchEvent(new gr({loadedContexts:e})),await Promise.all(e.map(o=>this.notify(o,!1)))}async notify(e,o=!0){o&&(document.body.dispatchEvent(new gr({loadedContexts:[e]})),this.dispatchEvent(new gr({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(n=>fo(0).then(()=>n()).catch(()=>null)))}};Fl=Yp;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends ln{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends ln{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var Kr=window.FluidTopicsI18nService,Ta=window.FluidTopicsCustomI18nService;var _a=class{highlightHtml(e,o,n){Ni(e,o,n)}};window.FluidTopicsHighlightHtmlService=new _a;var dn=class extends ge{async listMySearches(){let{session:e}=N.getState();return nl(e,X.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var Na=class{isDate(e){var o,n,i,a;return(a=(i=((n=(o=N.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]).find(l=>l.key===e))===null||i===void 0?void 0:i.date)!==null&&a!==void 0?a:!1}format(e,o){var n,i,a;return At.format(e,(n=o?.locale)!==null&&n!==void 0?n:N.getState().uiLocale,(i=o?.longFormat)!==null&&i!==void 0?i:!1,(a=o?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new Na;var Zr=class{static get(e,o){var n,i;let a=N.getState(),{lang:s,region:l}=(i=(n=a.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&i!==void 0?i:{lang:"en",region:"US"};return new rr(a.baseUrl,e??20,a.searchInAllLanguagesAllowed,o??`${s}-${l}`)}};var La=class{urlToSearchRequest(e){return Zr.get().parse(e)}searchRequestToUrl(e){return Zr.get().serialize(e)}};window.FluidTopicsUrlService=new La;var It=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};It.eventName="change";var Ia=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let o=sessionStorage.getItem(this.itemName(e));return o?JSON.parse(o):void 0}set(e,o){sessionStorage.setItem(this.itemName(e),JSON.stringify(o))}},$l=new Ia;var un=class t extends je{static build(){return new t(window.history,$l,()=>window.location,!1)}constructor(e,o,n,i){var a,s;super(),this.history=e,this.historyStorage=o,this.windowLocation=n,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(a=e.state)===null||a===void 0?void 0:a.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(i)}setCurrentState(e,o=!1){let n=o&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,n&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),fe(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new It(this.currentItem())),0)}installProxies(){let e=o=>(n,i,[a,s,l])=>{let d=o(),p={...d===this.currentIndex?this.currentState:void 0,...a,index:d,href:typeof l=="string"?l:(l??this.windowLocation()).href};n.apply(i,[p,s,l]),this.setCurrentState(p,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let o=this.history.length-1;o>=0;o--)e?this.states[o]=this.historyStorage.get(o):setTimeout(()=>this.states[o]=this.historyStorage.get(o),this.history.length-o)}updateCurrentState(e){var o;let n={...this.buildCurrentState(),...e,index:this.currentIndex,title:(o=e?.title)!==null&&o!==void 0?o:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(e){this.addEventListener(It.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(It.eventName,e)}currentItem(){return Tr(this.currentState)}back(){let e=this.previousDifferentMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return Tr(this.states[this.previousDifferentMajorPosition()])}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return Tr(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var o;let n=(o=this.states[e])===null||o===void 0?void 0:o.majorStateId;if(!n)return e;let i=e,a=e+1;for(;this.states.length>a&&!this.isDifferentMajorState(a,n);)this.hasState(a)&&(i=a),a++;return i}buildCurrentState(){var e,o;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(o=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&o!==void 0?o:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,o){var n;if(!this.hasState(e))return!1;let i=o??this.currentState.majorStateId,a=(n=this.states[e])===null||n===void 0?void 0:n.majorStateId;return a==null||a!=i}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=un.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t)});function Hl(t,e){let{authenticationRequired:o,session:n}=N.getState();return o&&!n?.sessionAuthenticated?Promise.resolve(e):t()}var J=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},K=class extends j{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=()=>Lt.get(),this.authenticationRequired=!1,this.messageContexts=[],this.cache=new Be,this.cleanSessionDebouncer=new he,this.reloadConfiguration=()=>{this.cache.clear("availableContentLocales"),this.updateAvailableContentLocales()}}render(){return Z`
|
|
370
370
|
<slot></slot>
|
|
371
|
-
`}connectedCallback(){super.connectedCallback(),N.addEventListener(Nt.eventName,this.reloadConfiguration)}disconnectedCallback(){N.addEventListener(Nt.eventName,this.reloadConfiguration),super.disconnectedCallback()}update(e){var o,n,i,a,s,l,d;super.update(e),e.has("baseUrl")&&(N.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&N.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&N.actions.apiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&N.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&N.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&N.actions.noCustom(this.noCustom),e.has("editorMode")&&N.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&N.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&N.actions.session(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(p=>Kr.addContext(p)),e.has("openExternalDocumentInNewTab")&&N.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&N.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&N.actions.forcedOffline(this.forcedOffline),e.has("localesConfiguration")&&(N.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),N.actions.availableUiLocales((i=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&i!==void 0?i:[]),N.actions.searchInAllLanguagesAllowed((s=(a=this.localesConfiguration)===null||a===void 0?void 0:a.allLanguagesAllowed)!==null&&s!==void 0?s:!1)),e.has("authenticationRequired")&&N.actions.authenticationRequired(this.authenticationRequired),e.has("availableContentLocales")&&N.actions.availableContentLocales((d=(l=this.availableContentLocales)===null||l===void 0?void 0:l.contentLocales)!==null&&d!==void 0?d:[]),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration(),this.availableContentLocales==null&&this.updateAvailableContentLocales())}async updateSession(){this.session=await this.cache.get("session",async()=>{let e=await this.apiProvider().getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},e.idleTimeoutInMillis),e})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}async updateAvailableContentLocales(){this.availableContentLocales=await this.cache.get("availableContentLocales",()=>Hl(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}))}};K.elementDefinitions={};K.styles=Ul;J([C()],K.prototype,"baseUrl",void 0);J([C()],K.prototype,"apiIntegrationIdentifier",void 0);J([C()],K.prototype,"apiIntegrationAppVersion",void 0);J([C()],K.prototype,"uiLocale",void 0);J([Oe(null)],K.prototype,"availableUiLocales",void 0);J([Oe(null)],K.prototype,"metadataConfiguration",void 0);J([C({type:Boolean})],K.prototype,"editorMode",void 0);J([C({type:Boolean})],K.prototype,"noCustom",void 0);J([C({type:Boolean})],K.prototype,"openExternalDocumentInNewTab",void 0);J([C({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],K.prototype,"noCustomComponent",void 0);J([C({type:Boolean})],K.prototype,"withManualResources",void 0);J([C({type:Boolean})],K.prototype,"navigatorOnline",void 0);J([C({type:Boolean})],K.prototype,"forcedOffline",void 0);J([C({type:Object})],K.prototype,"apiProvider",void 0);J([C({type:Boolean})],K.prototype,"authenticationRequired",void 0);J([Oe([])],K.prototype,"messageContexts",void 0);J([Oe(void 0)],K.prototype,"session",void 0);J([G()],K.prototype,"localesConfiguration",void 0);J([G()],K.prototype,"availableContentLocales",void 0);var pn=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},HE=ie(Symbol("withDateFormat"),function(t){class e extends t{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(N)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var i,a;return((a=(i=this.metadataDescriptors.find(l=>l.key===n))===null||i===void 0?void 0:i.date)!==null&&a!==void 0?a:!1)?l=>At.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return pn([C({type:Boolean})],e.prototype,"useLongDateFormat",void 0),pn([C({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),pn([Vt({store:N.name,selector:o=>{var n,i;return(i=(n=o.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&i!==void 0?i:[]}})],e.prototype,"metadataDescriptors",void 0),pn([Vt({store:N.name})],e.prototype,"uiLocale",void 0),e});var fn=class extends ge{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=N.getState().session;return!!e?.sessionAuthenticated}};var hn=class extends ge{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let e=N.getState().session;return!!e?.sessionAuthenticated}};var Xp="ft-user-assets",Jp={setAssetCount:(t,e)=>{let{userAssetType:o,count:n}=e.payload.assetCount;t.assetCounts.allAsset[o]=n},clearAssetCount:t=>{Object.values(Ce).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let o=e.payload.mapId;t.assetCounts.bookmarkByMap[o]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:o,mapId:n,asset:i}=e.payload;ka(t,o,[...Pa(t,o),i]),Wl(t,o,1,n),zl(t,i)},editAsset:(t,e)=>{let{assetType:o,asset:n}=e.payload;ka(t,o,Pa(t,o).map(i=>i.id===n.id?n:i)),zl(t,n)},removeAsset:(t,e)=>{let{assetType:o,mapId:n,assetId:i}=e.payload;ka(t,o,Pa(t,o).filter(a=>a.id!==i)),Wl(t,o,-1,n)}},Gl={[Ce.SEARCHES]:"savedSearches",[Ce.BOOKMARKS]:"bookmarks",[Ce.BOOKS]:void 0,[Ce.COLLECTIONS]:void 0},Pa=(t,e)=>{var o;let n=Gl[e];return n?(o=t[n])!==null&&o!==void 0?o:[]:[]},ka=(t,e,o)=>{let n=Gl[e];n&&(t[n]=o)},Wl=(t,e,o,n)=>{let i=t.assetCounts.allAsset[e];if(i!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,i+o),e===Ce.BOOKMARKS&&n)){let a=t.assetCounts.bookmarkByMap[n];t.assetCounts.bookmarkByMap[n]=Math.max(0,a+o)}},zl=(t,e)=>{let o=t.assetLabels.map(i=>i.title),n=e.labels.filter(i=>!o.includes(i)).map(i=>({title:i}));t.assetLabels.push(...n)},be=wt.get({name:Xp,reducers:Jp,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Ce).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Da=class{constructor(e=new fn,o=new hn){this.assetCountsService=e,this.assetLabelsService=o,this.currentSession=N.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new cn,this.savedSearchesService=new dn,N.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:o}=N.getState();fe((e=this.currentSession)===null||e===void 0?void 0:e.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),be.actions.clearAssetCount(),be.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),be.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),be.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();be.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();be.actions.assetLabels(e)}async loadAssetCount(e){let o=await this.assetCountsService.getUserAssetCount(e);o&&be.actions.setAssetCount({assetCount:o})}async loadBookmarkByMapId(e){let o=await this.assetCountsService.getUserBookmarkCountByMap(e);o&&be.actions.setBookmarkCountByMap({count:o.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let o=Object.keys(be.getState().assetCounts.bookmarkByMap).length!==0;e===Ce.BOOKMARKS&&o&&be.actions.clearBookmarkCountByMap(),be.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let o=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;be.actions.bookmarks(o)}}},Qp=new Da;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Qp);ae("ft-app-context")(K);var Ma=class{fromLocalizableLabel(e){return e.type=="PLAIN_TEXT"?{message:e.text}:{key:e.key,custom:e.type=="LOCALIZED_CUSTOM",context:e.context,message:e.key}}fromAttribute(e){if(e!=null)try{return JSON.parse(e)}catch{if(this.isI18nKey(e)){let[n,i]=e.split(".");return{context:n,key:i,custom:!0,message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},br=new Ma;var ef=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},Yr=Symbol("i18nAttributes"),jl=Symbol("i18nListAttributes"),Vl=Symbol("i18nProperties"),mn=Symbol("i18nContexts"),qr=Symbol("i18nUnsubs"),Kl=ie(Symbol("withI18n"),function(t){var e,o;class n extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[o]=new Map}getI18nService(a){return a??this.useCustomMessageContexts?Ta:Kr}i18n(a){let{context:s,key:l,message:d}=a,{custom:p,args:h,argsProvider:f}=a;if(s&&l){this.hasI18nContext(s)||this.addI18nContext(s,void 0,p);let m=h??(f?f(this):[]);return this.getI18nService(p).resolveMessage(s,l,...m)}return d}async awaitI18n(a){let{context:s,custom:l}=a;return s&&await this.getI18nService(l).prepareContext(s),this.i18n(a)}customI18n(a,s){if(br.isI18nKey(a)){let[l,d]=a.split(".");return this.i18n({custom:!0,context:l,key:d,...s})||a}return a}firstUpdated(a){super.firstUpdated(a),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(a){super.update(a),this.updateI18nAttributes((s,l,d)=>a.has(l)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(a){this.updateI18nAttributes((s,l,d)=>{var p;return((p=d?.context)===null||p===void 0?void 0:p.toLowerCase())===a}),this.updateI18nProperties(s=>s.context.toLowerCase()===a),this.requestUpdate()}updateI18nAttributes(a){var s,l;let d=this,p=(h,f,m)=>m?.context&&m.key&&a(h,f,m)?{...m,message:this.i18n({context:m.context,key:m.key,custom:m.custom,...h})}:m;(s=this[Yr])===null||s===void 0||s.forEach((h,f)=>d[f]=p(h,f,d[f])),(l=this[jl])===null||l===void 0||l.forEach((h,f)=>{var m;return d[f]=(m=d[f])===null||m===void 0?void 0:m.map(b=>p(h,f,b))})}updateI18nProperties(a){var s;(s=this[Vl])===null||s===void 0||s.forEach((l,d)=>{a(l,d)&&(this[d]=this.i18n(l))})}addI18nMessages(a,s,l){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(a,s,l)}addI18nContext(a,s,l){let d=(typeof a=="string"?a:a.name).toLowerCase();l=typeof a=="string"?l:a.custom,this[mn].set(d,{isCustomContext:l}),this[qr].has(d)||this[qr].set(d,this.getI18nService(l).subscribe(d,()=>this.onI18nUpdate(d))),this.getI18nService(l).prepareContext(d,s)}hasI18nContext(a){return this[mn].has(a.toLowerCase())}connectedCallback(){super.connectedCallback(),this[mn].forEach((a,s)=>this.addI18nContext(s,void 0,a.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[qr].forEach(a=>a()),this[qr].clear()}}return e=mn,o=qr,ef([C({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}),yn=class extends Kl(j){},gn=class extends Kl(Wr){};var Ua=class{fromAttribute(e){if(!e)return[];try{let o=JSON.parse(e);return Array.isArray(o)?o.map(n=>typeof n=="string"?br.fromAttribute(n):n):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},tf=new Ua;var Zl=(t,e)=>(o,n)=>{var i;o.constructor.createProperty(n,{type:Object,hasChanged:Ge,converter:br,...e}),o[Yr]=(i=o[Yr])!==null&&i!==void 0?i:new Map,o[Yr].set(n,t??{})};var ql=P`
|
|
371
|
+
`}connectedCallback(){super.connectedCallback(),N.addEventListener(Nt.eventName,this.reloadConfiguration)}disconnectedCallback(){N.addEventListener(Nt.eventName,this.reloadConfiguration),super.disconnectedCallback()}update(e){var o,n,i,a,s,l,d;super.update(e),e.has("baseUrl")&&(N.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&N.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&N.actions.apiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&N.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&N.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&N.actions.noCustom(this.noCustom),e.has("editorMode")&&N.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&N.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&N.actions.session(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(p=>Kr.addContext(p)),e.has("openExternalDocumentInNewTab")&&N.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&N.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&N.actions.forcedOffline(this.forcedOffline),e.has("localesConfiguration")&&(N.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),N.actions.availableUiLocales((i=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&i!==void 0?i:[]),N.actions.searchInAllLanguagesAllowed((s=(a=this.localesConfiguration)===null||a===void 0?void 0:a.allLanguagesAllowed)!==null&&s!==void 0?s:!1)),e.has("authenticationRequired")&&N.actions.authenticationRequired(this.authenticationRequired),e.has("availableContentLocales")&&N.actions.availableContentLocales((d=(l=this.availableContentLocales)===null||l===void 0?void 0:l.contentLocales)!==null&&d!==void 0?d:[]),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration(),this.availableContentLocales==null&&this.updateAvailableContentLocales())}async updateSession(){this.session=await this.cache.get("session",async()=>{let e=await this.apiProvider().getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},e.idleTimeoutInMillis),e})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}async updateAvailableContentLocales(){this.availableContentLocales=await this.cache.get("availableContentLocales",()=>Hl(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}))}};K.elementDefinitions={};K.styles=Bl;J([C()],K.prototype,"baseUrl",void 0);J([C()],K.prototype,"apiIntegrationIdentifier",void 0);J([C()],K.prototype,"apiIntegrationAppVersion",void 0);J([C()],K.prototype,"uiLocale",void 0);J([Oe(null)],K.prototype,"availableUiLocales",void 0);J([Oe(null)],K.prototype,"metadataConfiguration",void 0);J([C({type:Boolean})],K.prototype,"editorMode",void 0);J([C({type:Boolean})],K.prototype,"noCustom",void 0);J([C({type:Boolean})],K.prototype,"openExternalDocumentInNewTab",void 0);J([C({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],K.prototype,"noCustomComponent",void 0);J([C({type:Boolean})],K.prototype,"withManualResources",void 0);J([C({type:Boolean})],K.prototype,"navigatorOnline",void 0);J([C({type:Boolean})],K.prototype,"forcedOffline",void 0);J([C({type:Object})],K.prototype,"apiProvider",void 0);J([C({type:Boolean})],K.prototype,"authenticationRequired",void 0);J([Oe([])],K.prototype,"messageContexts",void 0);J([Oe(void 0)],K.prototype,"session",void 0);J([G()],K.prototype,"localesConfiguration",void 0);J([G()],K.prototype,"availableContentLocales",void 0);var pn=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},HE=ie(Symbol("withDateFormat"),function(t){class e extends t{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(N)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var i,a;return((a=(i=this.metadataDescriptors.find(l=>l.key===n))===null||i===void 0?void 0:i.date)!==null&&a!==void 0?a:!1)?l=>At.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return pn([C({type:Boolean})],e.prototype,"useLongDateFormat",void 0),pn([C({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),pn([Vt({store:N.name,selector:o=>{var n,i;return(i=(n=o.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&i!==void 0?i:[]}})],e.prototype,"metadataDescriptors",void 0),pn([Vt({store:N.name})],e.prototype,"uiLocale",void 0),e});var fn=class extends ge{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=N.getState().session;return!!e?.sessionAuthenticated}};var hn=class extends ge{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let e=N.getState().session;return!!e?.sessionAuthenticated}};var Xp="ft-user-assets",Jp={setAssetCount:(t,e)=>{let{userAssetType:o,count:n}=e.payload.assetCount;t.assetCounts.allAsset[o]=n},clearAssetCount:t=>{Object.values(Ce).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let o=e.payload.mapId;t.assetCounts.bookmarkByMap[o]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:o,mapId:n,asset:i}=e.payload;ka(t,o,[...Pa(t,o),i]),Wl(t,o,1,n),zl(t,i)},editAsset:(t,e)=>{let{assetType:o,asset:n}=e.payload;ka(t,o,Pa(t,o).map(i=>i.id===n.id?n:i)),zl(t,n)},removeAsset:(t,e)=>{let{assetType:o,mapId:n,assetId:i}=e.payload;ka(t,o,Pa(t,o).filter(a=>a.id!==i)),Wl(t,o,-1,n)}},Gl={[Ce.SEARCHES]:"savedSearches",[Ce.BOOKMARKS]:"bookmarks",[Ce.BOOKS]:void 0,[Ce.COLLECTIONS]:void 0},Pa=(t,e)=>{var o;let n=Gl[e];return n?(o=t[n])!==null&&o!==void 0?o:[]:[]},ka=(t,e,o)=>{let n=Gl[e];n&&(t[n]=o)},Wl=(t,e,o,n)=>{let i=t.assetCounts.allAsset[e];if(i!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,i+o),e===Ce.BOOKMARKS&&n)){let a=t.assetCounts.bookmarkByMap[n];t.assetCounts.bookmarkByMap[n]=Math.max(0,a+o)}},zl=(t,e)=>{let o=t.assetLabels.map(i=>i.title),n=e.labels.filter(i=>!o.includes(i)).map(i=>({title:i}));t.assetLabels.push(...n)},be=wt.get({name:Xp,reducers:Jp,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Ce).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Da=class{constructor(e=new fn,o=new hn){this.assetCountsService=e,this.assetLabelsService=o,this.currentSession=N.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new cn,this.savedSearchesService=new dn,N.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:o}=N.getState();fe((e=this.currentSession)===null||e===void 0?void 0:e.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),be.actions.clearAssetCount(),be.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),be.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),be.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();be.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();be.actions.assetLabels(e)}async loadAssetCount(e){let o=await this.assetCountsService.getUserAssetCount(e);o&&be.actions.setAssetCount({assetCount:o})}async loadBookmarkByMapId(e){let o=await this.assetCountsService.getUserBookmarkCountByMap(e);o&&be.actions.setBookmarkCountByMap({count:o.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let o=Object.keys(be.getState().assetCounts.bookmarkByMap).length!==0;e===Ce.BOOKMARKS&&o&&be.actions.clearBookmarkCountByMap(),be.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let o=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;be.actions.bookmarks(o)}}},Qp=new Da;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Qp);ae("ft-app-context")(K);var Ma=class{fromLocalizableLabel(e){return e.type=="PLAIN_TEXT"?{message:e.text}:{key:e.key,custom:e.type=="LOCALIZED_CUSTOM",context:e.context,message:e.key}}fromAttribute(e){if(e!=null)try{return JSON.parse(e)}catch{if(this.isI18nKey(e)){let[n,i]=e.split(".");return{context:n,key:i,custom:!0,message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},br=new Ma;var ef=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},Yr=Symbol("i18nAttributes"),jl=Symbol("i18nListAttributes"),Vl=Symbol("i18nProperties"),mn=Symbol("i18nContexts"),qr=Symbol("i18nUnsubs"),Kl=ie(Symbol("withI18n"),function(t){var e,o;class n extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[o]=new Map}getI18nService(a){return a??this.useCustomMessageContexts?Ta:Kr}i18n(a){let{context:s,key:l,message:d}=a,{custom:p,args:h,argsProvider:f}=a;if(s&&l){this.hasI18nContext(s)||this.addI18nContext(s,void 0,p);let m=h??(f?f(this):[]);return this.getI18nService(p).resolveMessage(s,l,...m)}return d}async awaitI18n(a){let{context:s,custom:l}=a;return s&&await this.getI18nService(l).prepareContext(s),this.i18n(a)}customI18n(a,s){if(br.isI18nKey(a)){let[l,d]=a.split(".");return this.i18n({custom:!0,context:l,key:d,...s})||a}return a}firstUpdated(a){super.firstUpdated(a),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(a){super.update(a),this.updateI18nAttributes((s,l,d)=>a.has(l)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(a){this.updateI18nAttributes((s,l,d)=>{var p;return((p=d?.context)===null||p===void 0?void 0:p.toLowerCase())===a}),this.updateI18nProperties(s=>s.context.toLowerCase()===a),this.requestUpdate()}updateI18nAttributes(a){var s,l;let d=this,p=(h,f,m)=>m?.context&&m.key&&a(h,f,m)?{...m,message:this.i18n({context:m.context,key:m.key,custom:m.custom,...h})}:m;(s=this[Yr])===null||s===void 0||s.forEach((h,f)=>d[f]=p(h,f,d[f])),(l=this[jl])===null||l===void 0||l.forEach((h,f)=>{var m;return d[f]=(m=d[f])===null||m===void 0?void 0:m.map(b=>p(h,f,b))})}updateI18nProperties(a){var s;(s=this[Vl])===null||s===void 0||s.forEach((l,d)=>{a(l,d)&&(this[d]=this.i18n(l))})}addI18nMessages(a,s,l){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(a,s,l)}addI18nContext(a,s,l){let d=(typeof a=="string"?a:a.name).toLowerCase();l=typeof a=="string"?l:a.custom,this[mn].set(d,{isCustomContext:l}),this[qr].has(d)||this[qr].set(d,this.getI18nService(l).subscribe(d,()=>this.onI18nUpdate(d))),this.getI18nService(l).prepareContext(d,s)}hasI18nContext(a){return this[mn].has(a.toLowerCase())}connectedCallback(){super.connectedCallback(),this[mn].forEach((a,s)=>this.addI18nContext(s,void 0,a.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[qr].forEach(a=>a()),this[qr].clear()}}return e=mn,o=qr,ef([C({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}),yn=class extends Kl(j){},gn=class extends Kl(Wr){};var Ua=class{fromAttribute(e){if(!e)return[];try{let o=JSON.parse(e);return Array.isArray(o)?o.map(n=>typeof n=="string"?br.fromAttribute(n):n):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},tf=new Ua;var Zl=(t,e)=>(o,n)=>{var i;o.constructor.createProperty(n,{type:Object,hasChanged:Ge,converter:br,...e}),o[Yr]=(i=o[Yr])!==null&&i!==void 0?i:new Map,o[Yr].set(n,t??{})};var ql=P`
|
|
372
372
|
`;var Xr=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},Ie=class extends gn{constructor(){super(),this.editorMode=!1,this.addStore(N)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":H:Z`
|
|
373
373
|
<span class="ft-i18n">
|
|
374
374
|
${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
|
|
@@ -388,7 +388,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
388
388
|
</div>
|
|
389
389
|
</div>
|
|
390
390
|
</div>
|
|
391
|
-
`}setupFor(e){this.eventsTarget!==e&&(this.removeHandlers(),this.eventsTarget=e,this.eventsTarget.addEventListener("mouseenter",this.onHover,{passive:!0}),this.eventsTarget.addEventListener("mouseleave",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("focusin",this.onFocusIn,{passive:!0}),this.eventsTarget.addEventListener("focusout",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("touchstart",this.onTouch,{passive:!0}),this.eventsTarget.addEventListener("click",this.onClick,{passive:!0}))}removeHandlers(){this.eventsTarget&&(this.eventsTarget.removeEventListener("mouseenter",this.onHover),this.eventsTarget.removeEventListener("mouseleave",this.onOut),this.eventsTarget.removeEventListener("focusin",this.onFocusIn),this.eventsTarget.removeEventListener("focusout",this.onOut),this.eventsTarget.removeEventListener("touchstart",this.onTouch),this.eventsTarget.removeEventListener("click",this.onClick),this.eventsTarget=void 0)}defaultSetup(){this.container&&this.setupFor(this.container)}updated(e){e.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(o=>e.has(o))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}async showTemporaryText(e,o){let n=this.manual;this.manual=!0;let i=this.text;this.text={message:e},await this.show(o),this.text=i,this.manual=n}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(o=>o.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",Si(this.slottedElement,this.tooltip,this.position).then(({x:e,y:o})=>{this.tooltip&&(this.tooltip.style.left=`${e}px`,this.tooltip.style.top=`${o}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${W.transitionDuration}, left ${W.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}isIgnored(e){return this.manual||zn(e,this.ignoreMatchingElements,this.eventsTarget)}};Q.elementDefinitions={"ft-typography":Le};Q.styles=Ml;Pe([Zl()],Q.prototype,"text",void 0);Pe([C({type:Boolean})],Q.prototype,"manual",void 0);Pe([C({type:Boolean})],Q.prototype,"inline",void 0);Pe([mo()],Q.prototype,"delay",void 0);Pe([C()],Q.prototype,"position",void 0);Pe([Oe([])],Q.prototype,"ignoreMatchingElements",void 0);Pe([kn()],Q.prototype,"slotNodes",void 0);Pe([le(".ft-tooltip--container")],Q.prototype,"container",void 0);Pe([le(".ft-tooltip")],Q.prototype,"tooltip",void 0);Pe([le(".ft-tooltip--content")],Q.prototype,"tooltipContent",void 0);Pe([G()],Q.prototype,"visible",void 0);ae("ft-tooltip")(Q);var bn;(function(t){t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.BOOKS="",t.MENU="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.HOME="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.EXPORT="",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.USER="",t.EXTLINK="",t.CALENDAR="",t.OFFLINE="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.STAR_PLAIN="",t.TOPICS="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN="",t.ADMIN_KHUB="",t.ADMIN_THEME="",t.ADMIN_USERS="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.INFO="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.FACET_HAS_DESCENDANT="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.THIN_ARROW="",t.SIGN_IN="",t.LOGOUT="",t.TRANSLATE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.ARTICLE="",t.COLUMNS="",t.ANALYTICS="",t.COLLECTIONS="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SEARCH_IN_PUBLICATION="",t.COPY_TO_CLIPBOARD="",t.SHARED_PBK="",t.ATTACHMENTS="",t.STRIPE_ARROW_LEFT="",t.STRIPE_ARROW_RIGHT="",t.FILTERS="",t.DOT="",t.MINUS="",t.PLUS="",t.MAILS_AND_NOTIFICATIONS="",t.SAVE="",t.LOCKER="",t.ADMIN_INTEGRATION="",t.SYNC="",t.TAG="",t.BOOK_PLAIN="",t.UPLOAD="",t.ONLINE="",t.TAG_PLAIN="",t.ACCOUNT_SETTINGS="",t.PRINT="",t.DEFAULT_ROLES="",t.SHORTCUT_MENU="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.PAUSE="",t.PLAY="",t.ADMIN_PORTAL="",t.STAR="",t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.FEEDBACK_PLAIN="",t.RATE_PLAIN="",t.RATE="",t.OFFLINE_SETTINGS="",t.MY_COLLECTIONS="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.RESET="",t.MY_LIBRARY="",t.UNSTRUCTURED_DOC="",t.CONTEXTUAL="",t.THIN_ARROW_UP="",t.ARROW_RIGHT_TO_LINE="",t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.LINE_CHART="",t.STACKED_CHART="",t.CHART_BAR_STACKED="",t.CHART_BAR_GROUPED="",t.EYE_SLASH="",t.X_MARK="",t.EXPAND_WIDE="",t.PIP="",t.PIP_WIDE="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.EXTLINK_LIGHT="",t.CLONE="",t.CLONE_LINK_SIMPLE="",t.CHART_BAR_NORMALIZED="",t.CONSUMER="",t.OCTAGON_XMARK="",t.HOURGLASS_HALF="",t.CLOCK="",t.CLOCK_THREE="",t.CALENDAR_DAY="",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="",t.WAND_MAGIC_SPARKLES="",t.PAPER_PLANE="",t.CIRCLE_STOP="",t.ARROW_ROTATE_RIGHT="",t.ARROWS_ROTATE="",t.ALIGN_RIGHT="",t.FORMAT_CLEAR="",t.ALIGN_CENTER="",t.ALIGN_LEFT="",t.PALETTE="",t.BOLD="",t.ITALIC="",t.UNDERLINE="",t.STRIKETHROUGH="",t.LINK_SIMPLE_SLASH="",t.LINK_SIMPLE="",t.ROUTE="",t.CIRCLE_USER_SLASH="",t.CIRCLE_USER_CHECK="",t.LIST_MAGNIFYING_GLASS="",t.MEDAL="",t.THUMBS_UP_THUMBS_DOWN_SOLID="",t.ARROW_TURN_DOWN_RIGHT="",t.FLASK="",t.LOCK_KEYHOLE_OPEN_SOLID="",t.HOURGLASS_END="",t.CIRCLE_QUESTION="",t.GRIP_LINES_SOLID="",t.TRANSLATE_SPARKLE_SOLID="",t.CODE="",t.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="",t.PAPER_PLANE_SLASH="",t.COMPRESS="",t.EXPAND="",t.ARROW_ROTATE_LEFT="",t.EYE="",t.SHARE="󨃱",t.MOBILE_SMALL="",t.SPARKLES="",t.HAND_SOLID="",t.CLOCK_SOLID="",t.CONTEXT_MENU_CURSOR="",t.LANGUAGE_SLASH="",t.MAGNIFYING_GLASS_FLOPPY_DISK="",t.CABINET_FILING_FLOPPY_DISK="",t.BOOKMARK_SLASH="",t.CIRCLE_PAUSE="",t.CIRCLE_PLAY="",t.CIRCLE_STOP_PLAIN="",t.CLOUD_ARROW_DOWN="",t.SHARE_NODES="",t.BELL="",t.BELL_SLASH="",t.FILE="",t.HAND="",t.SQUARE_INFO_SOLID="",t.FILE_CODE="",t.BOX_CODE=""})(bn||(bn={}));var R;(function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""})(R||(R={}));var fw=new Map([...["abw"].map(t=>[t,R.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(t=>[t,R.AUDIO]),...["avi"].map(t=>[t,R.AVI]),...["chm","xhs"].map(t=>[t,R.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(t=>[t,R.CODE]),...["csv"].map(t=>[t,R.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,R.DITA]),...["epub"].map(t=>[t,R.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,R.EXCEL]),...["flac"].map(t=>[t,R.FLAC]),...["gif"].map(t=>[t,R.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,R.GZIP]),...["html","htm","xhtml"].map(t=>[t,R.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(t=>[t,R.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,R.JPEG]),...["json"].map(t=>[t,R.JSON]),...["m4a","m4p"].map(t=>[t,R.M4A]),...["mov","qt"].map(t=>[t,R.MOV]),...["mp3"].map(t=>[t,R.MP3]),...["mp4","m4v"].map(t=>[t,R.MP4]),...["ogg","oga"].map(t=>[t,R.OGG]),...["pdf","ps"].map(t=>[t,R.PDF]),...["png"].map(t=>[t,R.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,R.POWERPOINT]),...["rar"].map(t=>[t,R.RAR]),...["stp"].map(t=>[t,R.STP]),...["txt","rtf","md","mdown"].map(t=>[t,R.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(t=>[t,R.VIDEO]),...["wav"].map(t=>[t,R.WAV]),...["wma"].map(t=>[t,R.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,R.WORD]),...["xml","xsl","rdf"].map(t=>[t,R.XML]),...["yaml","yml","x-yaml"].map(t=>[t,R.YAML]),...["zip"].map(t=>[t,R.ZIP])]);var hw={[R.ABW]:"#91ABC6",[R.AUDIO]:"#1795E3",[R.AVI]:"#E63324",[R.CHM]:"#71C3EB",[R.CODE]:"#71C3EB",[R.CSV]:"#1F7345",[R.DITA]:"#71C3EB",[R.EPUB]:"#85B926",[R.EXCEL]:"#1F7345",[R.FLAC]:"#1795E3",[R.GIF]:"#59B031",[R.GZIP]:"#F8AB36",[R.HTML]:"#71C3EB",[R.IMAGE]:"#59B031",[R.JPEG]:"#59B031",[R.JSON]:"#71C3EB",[R.M4A]:"#1795E3",[R.MOV]:"#E63324",[R.MP3]:"#1795E3",[R.MP4]:"#E63324",[R.OGG]:"#1795E3",[R.PDF]:"#E44948",[R.PNG]:"#59B031",[R.POWERPOINT]:"#B54A2B",[R.RAR]:"#F8AB36",[R.STP]:"#3764B1",[R.TEXT]:"#3162AB",[R.UNKNOWN]:"#999999",[R.VIDEO]:"#E63324",[R.WAV]:"#1795E3",[R.WMA]:"#1795E3",[R.WORD]:"#3162AB",[R.XML]:"#71C3EB",[R.YAML]:"#71C3EB",[R.ZIP]:"#F8AB36"};var ke={size:r.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:r.extend("--ft-icon-fluid-topics-font-family","",r.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:r.extend("--ft-icon-file-format-font-family","",r.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:r.extend("--ft-icon-material-font-family","",r.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:r.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Yl=[P`
|
|
391
|
+
`}setupFor(e){this.eventsTarget!==e&&(this.removeHandlers(),this.eventsTarget=e,this.eventsTarget.addEventListener("mouseenter",this.onHover,{passive:!0}),this.eventsTarget.addEventListener("mouseleave",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("focusin",this.onFocusIn,{passive:!0}),this.eventsTarget.addEventListener("focusout",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("touchstart",this.onTouch,{passive:!0}),this.eventsTarget.addEventListener("click",this.onClick,{passive:!0}))}removeHandlers(){this.eventsTarget&&(this.eventsTarget.removeEventListener("mouseenter",this.onHover),this.eventsTarget.removeEventListener("mouseleave",this.onOut),this.eventsTarget.removeEventListener("focusin",this.onFocusIn),this.eventsTarget.removeEventListener("focusout",this.onOut),this.eventsTarget.removeEventListener("touchstart",this.onTouch),this.eventsTarget.removeEventListener("click",this.onClick),this.eventsTarget=void 0)}defaultSetup(){this.container&&this.setupFor(this.container)}updated(e){e.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(o=>e.has(o))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}async showTemporaryText(e,o){let n=this.manual;this.manual=!0;let i=this.text;this.text={message:e},await this.show(o),this.text=i,this.manual=n}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(o=>o.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",Si(this.slottedElement,this.tooltip,this.position).then(({x:e,y:o})=>{this.tooltip&&(this.tooltip.style.left=`${e}px`,this.tooltip.style.top=`${o}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${W.transitionDuration}, left ${W.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}isIgnored(e){return this.manual||zn(e,this.ignoreMatchingElements,this.eventsTarget)}};Q.elementDefinitions={"ft-typography":Le};Q.styles=Ul;Pe([Zl()],Q.prototype,"text",void 0);Pe([C({type:Boolean})],Q.prototype,"manual",void 0);Pe([C({type:Boolean})],Q.prototype,"inline",void 0);Pe([mo()],Q.prototype,"delay",void 0);Pe([C()],Q.prototype,"position",void 0);Pe([Oe([])],Q.prototype,"ignoreMatchingElements",void 0);Pe([kn()],Q.prototype,"slotNodes",void 0);Pe([le(".ft-tooltip--container")],Q.prototype,"container",void 0);Pe([le(".ft-tooltip")],Q.prototype,"tooltip",void 0);Pe([le(".ft-tooltip--content")],Q.prototype,"tooltipContent",void 0);Pe([G()],Q.prototype,"visible",void 0);ae("ft-tooltip")(Q);var bn;(function(t){t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.BOOKS="",t.MENU="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.HOME="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.EXPORT="",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.USER="",t.EXTLINK="",t.CALENDAR="",t.OFFLINE="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.STAR_PLAIN="",t.TOPICS="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN="",t.ADMIN_KHUB="",t.ADMIN_THEME="",t.ADMIN_USERS="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.INFO="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.FACET_HAS_DESCENDANT="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.THIN_ARROW="",t.SIGN_IN="",t.LOGOUT="",t.TRANSLATE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.ARTICLE="",t.COLUMNS="",t.ANALYTICS="",t.COLLECTIONS="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SEARCH_IN_PUBLICATION="",t.COPY_TO_CLIPBOARD="",t.SHARED_PBK="",t.ATTACHMENTS="",t.STRIPE_ARROW_LEFT="",t.STRIPE_ARROW_RIGHT="",t.FILTERS="",t.DOT="",t.MINUS="",t.PLUS="",t.MAILS_AND_NOTIFICATIONS="",t.SAVE="",t.LOCKER="",t.ADMIN_INTEGRATION="",t.SYNC="",t.TAG="",t.BOOK_PLAIN="",t.UPLOAD="",t.ONLINE="",t.TAG_PLAIN="",t.ACCOUNT_SETTINGS="",t.PRINT="",t.DEFAULT_ROLES="",t.SHORTCUT_MENU="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.PAUSE="",t.PLAY="",t.ADMIN_PORTAL="",t.STAR="",t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.FEEDBACK_PLAIN="",t.RATE_PLAIN="",t.RATE="",t.OFFLINE_SETTINGS="",t.MY_COLLECTIONS="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.RESET="",t.MY_LIBRARY="",t.UNSTRUCTURED_DOC="",t.CONTEXTUAL="",t.THIN_ARROW_UP="",t.ARROW_RIGHT_TO_LINE="",t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.LINE_CHART="",t.STACKED_CHART="",t.CHART_BAR_STACKED="",t.CHART_BAR_GROUPED="",t.EYE_SLASH="",t.X_MARK="",t.EXPAND_WIDE="",t.PIP="",t.PIP_WIDE="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.EXTLINK_LIGHT="",t.CLONE="",t.CLONE_LINK_SIMPLE="",t.CHART_BAR_NORMALIZED="",t.CONSUMER="",t.OCTAGON_XMARK="",t.HOURGLASS_HALF="",t.CLOCK="",t.CLOCK_THREE="",t.CALENDAR_DAY="",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="",t.WAND_MAGIC_SPARKLES="",t.PAPER_PLANE="",t.CIRCLE_STOP="",t.ARROW_ROTATE_RIGHT="",t.ARROWS_ROTATE="",t.ALIGN_RIGHT="",t.FORMAT_CLEAR="",t.ALIGN_CENTER="",t.ALIGN_LEFT="",t.PALETTE="",t.BOLD="",t.ITALIC="",t.UNDERLINE="",t.STRIKETHROUGH="",t.LINK_SIMPLE_SLASH="",t.LINK_SIMPLE="",t.ROUTE="",t.CIRCLE_USER_SLASH="",t.CIRCLE_USER_CHECK="",t.LIST_MAGNIFYING_GLASS="",t.MEDAL="",t.THUMBS_UP_THUMBS_DOWN_SOLID="",t.ARROW_TURN_DOWN_RIGHT="",t.FLASK="",t.LOCK_KEYHOLE_OPEN_SOLID="",t.HOURGLASS_END="",t.CIRCLE_QUESTION="",t.GRIP_LINES_SOLID="",t.TRANSLATE_SPARKLE_SOLID="",t.CODE="",t.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="",t.PAPER_PLANE_SLASH="",t.COMPRESS="",t.EXPAND="",t.ARROW_ROTATE_LEFT="",t.EYE="",t.SHARE="󨃱",t.MOBILE_SMALL="",t.SPARKLES="",t.HAND_SOLID="",t.CLOCK_SOLID="",t.CONTEXT_MENU_CURSOR="",t.LANGUAGE_SLASH="",t.MAGNIFYING_GLASS_FLOPPY_DISK="",t.CABINET_FILING_FLOPPY_DISK="",t.BOOKMARK_SLASH="",t.CIRCLE_PAUSE="",t.CIRCLE_PLAY="",t.CIRCLE_STOP_PLAIN="",t.CLOUD_ARROW_DOWN="",t.SHARE_NODES="",t.BELL="",t.BELL_SLASH="",t.FILE="",t.HAND="",t.SQUARE_INFO_SOLID="",t.FILE_CODE="",t.BOX_CODE=""})(bn||(bn={}));var R;(function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""})(R||(R={}));var fw=new Map([...["abw"].map(t=>[t,R.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(t=>[t,R.AUDIO]),...["avi"].map(t=>[t,R.AVI]),...["chm","xhs"].map(t=>[t,R.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(t=>[t,R.CODE]),...["csv"].map(t=>[t,R.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,R.DITA]),...["epub"].map(t=>[t,R.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,R.EXCEL]),...["flac"].map(t=>[t,R.FLAC]),...["gif"].map(t=>[t,R.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,R.GZIP]),...["html","htm","xhtml"].map(t=>[t,R.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(t=>[t,R.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,R.JPEG]),...["json"].map(t=>[t,R.JSON]),...["m4a","m4p"].map(t=>[t,R.M4A]),...["mov","qt"].map(t=>[t,R.MOV]),...["mp3"].map(t=>[t,R.MP3]),...["mp4","m4v"].map(t=>[t,R.MP4]),...["ogg","oga"].map(t=>[t,R.OGG]),...["pdf","ps"].map(t=>[t,R.PDF]),...["png"].map(t=>[t,R.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,R.POWERPOINT]),...["rar"].map(t=>[t,R.RAR]),...["stp"].map(t=>[t,R.STP]),...["txt","rtf","md","mdown"].map(t=>[t,R.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(t=>[t,R.VIDEO]),...["wav"].map(t=>[t,R.WAV]),...["wma"].map(t=>[t,R.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,R.WORD]),...["xml","xsl","rdf"].map(t=>[t,R.XML]),...["yaml","yml","x-yaml"].map(t=>[t,R.YAML]),...["zip"].map(t=>[t,R.ZIP])]);var hw={[R.ABW]:"#91ABC6",[R.AUDIO]:"#1795E3",[R.AVI]:"#E63324",[R.CHM]:"#71C3EB",[R.CODE]:"#71C3EB",[R.CSV]:"#1F7345",[R.DITA]:"#71C3EB",[R.EPUB]:"#85B926",[R.EXCEL]:"#1F7345",[R.FLAC]:"#1795E3",[R.GIF]:"#59B031",[R.GZIP]:"#F8AB36",[R.HTML]:"#71C3EB",[R.IMAGE]:"#59B031",[R.JPEG]:"#59B031",[R.JSON]:"#71C3EB",[R.M4A]:"#1795E3",[R.MOV]:"#E63324",[R.MP3]:"#1795E3",[R.MP4]:"#E63324",[R.OGG]:"#1795E3",[R.PDF]:"#E44948",[R.PNG]:"#59B031",[R.POWERPOINT]:"#B54A2B",[R.RAR]:"#F8AB36",[R.STP]:"#3764B1",[R.TEXT]:"#3162AB",[R.UNKNOWN]:"#999999",[R.VIDEO]:"#E63324",[R.WAV]:"#1795E3",[R.WMA]:"#1795E3",[R.WORD]:"#3162AB",[R.XML]:"#71C3EB",[R.YAML]:"#71C3EB",[R.ZIP]:"#F8AB36"};var ke={size:r.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:r.extend("--ft-icon-fluid-topics-font-family","",r.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:r.extend("--ft-icon-file-format-font-family","",r.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:r.extend("--ft-icon-material-font-family","",r.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:r.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Yl=[P`
|
|
392
392
|
:host, i.ft-icon {
|
|
393
393
|
display: inline-flex;
|
|
394
394
|
align-items: center;
|