@fluid-topics/ft-chip 1.2.14 → 1.2.16

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.
@@ -47,7 +47,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
47
47
  input::-webkit-search-results-decoration {
48
48
  display: none;
49
49
  }
50
- `;var Ds={};var vi={};V(vi,{ParametrizedLabelResolver:()=>xi});var xi=class e{constructor(t,o){this.defaultLabels=t,this.labels=o}resolve(t,...o){var n,i;t=this.resolvePluralKey(t,o);let a=(i=(n=this.labels[t])!==null&&n!==void 0?n:this.defaultLabels[t])!==null&&i!==void 0?i:"";return e.replaceParameters(a,...o)}static replaceParameters(t,...o){return o.forEach((n,i)=>t=t.replace(new RegExp(`\\{${i}([^}]*)\\}`,"g"),(a,s)=>e.formatValue(n,s))),t}resolvePluralKey(t,o){for(let n of o)if(typeof n=="number"){let i=`${String(t)}[\\=${n}]`;if(i in this.labels||i in this.defaultLabels)return i}return t}static formatValue(t,o){return t instanceof Date?e.formatDate(t,o):t??""}static formatDate(t,o){let n=i=>o?.includes("date")?t.toLocaleDateString(i):o?.includes("time")?t.toLocaleTimeString(i):t.toLocaleString(i);try{return n(document.documentElement.lang)}catch{return n()}}};var Ki={};V(Ki,{FtCommandQueue:()=>Fr,FtLitElementRedux:()=>Ve,FtReduxStore:()=>ji,clearAllStores:()=>nf,isFtReduxStore:()=>Pe,redux:()=>vp,reduxEventListener:()=>Sp,reduxReactive:()=>xp});var xp=()=>(e,t)=>{var o;let n=e.constructor;n.reduxReactiveProperties=new Set(n.reduxReactiveProperties),(o=n.reduxReactiveProperties)===null||o===void 0||o.add(t)},vp=e=>{let t=e??{};return(o,n)=>{var i;let a={hasChanged:wr,attribute:!1,...t};R(a)(o,n);let s=o.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(n,{selector:(i=t.selector)!==null&&i!==void 0?i:l=>l[n],store:t.store})}},Sp=e=>(t,o)=>{let n=t.constructor;n.reduxEventListeners=new Map(n.reduxEventListeners),n.reduxEventListeners.set(o,e)};var Fr=class{constructor(){this.queue=[]}add(t,o=!1){o&&(this.queue=this.queue.filter(n=>n.type!==t.type)),this.queue.push(t)}consume(t){let o=this.queue.find(n=>n.type===t);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}};function Pe(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var Bs,Us,Ms,wo=Symbol("internalReduxEventsUnsubscribers"),ae=Symbol("internalStoresUnsubscribers"),Le=Symbol("internalStores"),Ve=class extends q{constructor(){super(...arguments),this[Bs]=new Map,this[Us]=new Map,this[Ms]=[]}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some(o=>t.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[Le].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Le].values()][0]}getStore(t){return t==null?this.getUnnamedStore():this[Le].get(t)}addStore(t,o){var n;o=(n=o??(Pe(t)?t.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(o),this.setupStore(o,t)}removeStore(t){let o=typeof t=="string"?t:t.name;this.unsubscribeFromStore(o),this[Le].delete(o)}setupStore(t,o){this[Le].set(t,o),this.subscribeToStore(t,o),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Le].forEach((t,o)=>this.subscribeToStore(o,t)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((t,o)=>{let n=this.constructor.getPropertyOptions(o);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:o)){let i=this.getStore(t.store);i&&(t.store?this[ae].has(t.store):this[ae].size>0)&&(this[o]=t.selector(i.getState(),this))}})}subscribeToStore(t,o){var n;this[ae].set(t,o.subscribe(()=>this.updateFromStores())),Pe(o)&&o.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((i,a)=>{if(typeof this[a]=="function"&&(!i.store||o.name===i.store)){let s=l=>this[a](l);o.addEventListener(i.eventName,s),this[wo].push(()=>o.removeEventListener(i.eventName,s))}})),this.onStoreAvailable(t)}unsubscribeFromStores(){this[ae].forEach((t,o)=>this.unsubscribeFromStore(o)),this[wo].forEach(t=>t()),this[wo]=[]}unsubscribeFromStore(t){this[ae].has(t)&&this[ae].get(t)(),this[ae].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Bs=ae,Us=Le,Ms=wo;Ve.reduxProperties=new Map;Ve.reduxReactiveProperties=new Set;Ve.reduxEventListeners=new Map;function Ct(e){for(var t=arguments.length,o=Array(t>1?t-1:0),n=1;n<t;n++)o[n-1]=arguments[n];if(0)var i,a;throw Error("[Immer] minified error nr: "+e+(o.length?" "+o.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Qt(e){return!!e&&!!e[Y]}function Pt(e){var t;return!!e&&(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)===_p}(e)||Array.isArray(e)||!!e[js]||!!(!((t=e.constructor)===null||t===void 0)&&t[js])||_i(e)||Pi(e))}function Te(e,t,o){o===void 0&&(o=!1),Ze(e)===0?(o?Object.keys:Ke)(e).forEach(function(n){o&&typeof n=="symbol"||t(n,e[n],e)}):e.forEach(function(n,i){return t(i,n,e)})}function Ze(e){var t=e[Y];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:_i(e)?2:Pi(e)?3:0}function je(e,t){return Ze(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Op(e,t){return Ze(e)===2?e.get(t):e[t]}function Ks(e,t,o){var n=Ze(e);n===2?e.set(t,o):n===3?e.add(o):e[t]=o}function Zs(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function _i(e){return Rp&&e instanceof Map}function Pi(e){return Np&&e instanceof Set}function se(e){return e.o||e.t}function Li(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Xs(e);delete t[Y];for(var o=Ke(t),n=0;n<o.length;n++){var i=o[n],a=t[i];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function Ti(e,t){return t===void 0&&(t=!1),Ii(e)||Qt(e)||!Pt(e)||(Ze(e)>1&&(e.set=e.add=e.clear=e.delete=Cp),Object.freeze(e),t&&Te(e,function(o,n){return Ti(n,!0)},!0)),e}function Cp(){Ct(2)}function Ii(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Wt(e){var t=Ni[e];return t||Ct(18,e),t}function Ep(e,t){Ni[e]||(Ni[e]=t)}function wi(){return Hr}function Si(e,t){t&&(Wt("Patches"),e.u=[],e.s=[],e.v=t)}function Ao(e){Ai(e),e.p.forEach(wp),e.p=null}function Ai(e){e===Hr&&(Hr=e.l)}function Fs(e){return Hr={p:[],l:Hr,h:e,m:!0,_:0}}function wp(e){var t=e[Y];t.i===0||t.i===1?t.j():t.g=!0}function Oi(e,t){t._=t.p.length;var o=t.p[0],n=e!==void 0&&e!==o;return t.h.O||Wt("ES5").S(t,e,n),n?(o[Y].P&&(Ao(t),Ct(4)),Pt(e)&&(e=Ro(t,e),t.l||No(t,e)),t.u&&Wt("Patches").M(o[Y].t,e,t.u,t.s)):e=Ro(t,o,[]),Ao(t),t.u&&t.v(t.u,t.s),e!==Ys?e:void 0}function Ro(e,t,o){if(Ii(t))return t;var n=t[Y];if(!n)return Te(t,function(l,d){return Ws(e,n,t,l,d,o)},!0),t;if(n.A!==e)return t;if(!n.P)return No(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=Li(n.k):n.o,a=i,s=!1;n.i===3&&(a=new Set(i),i.clear(),s=!0),Te(a,function(l,d){return Ws(e,n,i,l,d,o,s)}),No(e,i,!1),o&&e.u&&Wt("Patches").N(n,o,e.u,e.s)}return n.o}function Ws(e,t,o,n,i,a,s){if(Qt(i)){var l=Ro(e,i,a&&t&&t.i!==3&&!je(t.R,n)?a.concat(n):void 0);if(Ks(o,n,l),!Qt(l))return;e.m=!1}else s&&o.add(i);if(Pt(i)&&!Ii(i)){if(!e.h.D&&e._<1)return;Ro(e,i),t&&t.A.l||No(e,i)}}function No(e,t,o){o===void 0&&(o=!1),!e.l&&e.h.D&&e.m&&Ti(t,o)}function Ci(e,t){var o=e[Y];return(o?se(o):e)[t]}function Hs(e,t){if(t in e)for(var o=Object.getPrototypeOf(e);o;){var n=Object.getOwnPropertyDescriptor(o,t);if(n)return n;o=Object.getPrototypeOf(o)}}function ce(e){e.P||(e.P=!0,e.l&&ce(e.l))}function Ei(e){e.o||(e.o=Li(e.t))}function Ri(e,t,o){var n=_i(t)?Wt("MapSet").F(t,o):Pi(t)?Wt("MapSet").T(t,o):e.O?function(i,a){var s=Array.isArray(i),l={i:s?1:0,A:a?a.A:wi(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},d=l,p=zr;s&&(d=[l],p=Wr);var h=Proxy.revocable(d,p),u=h.revoke,m=h.proxy;return l.k=m,l.j=u,m}(t,o):Wt("ES5").J(t,o);return(o?o.A:wi()).p.push(n),n}function Ap(e){return Qt(e)||Ct(22,e),function t(o){if(!Pt(o))return o;var n,i=o[Y],a=Ze(o);if(i){if(!i.P&&(i.i<4||!Wt("ES5").K(i)))return i.t;i.I=!0,n=zs(o,a),i.I=!1}else n=zs(o,a);return Te(n,function(s,l){i&&Op(i.t,s)===l||Ks(n,s,t(l))}),a===3?new Set(n):n}(e)}function zs(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Li(e)}function qs(){function e(s,l){var d=a[s];return d?d.enumerable=l:a[s]=d={configurable:!0,enumerable:l,get:function(){var p=this[Y];return zr.get(p,s)},set:function(p){var h=this[Y];zr.set(h,s,p)}},d}function t(s){for(var l=s.length-1;l>=0;l--){var d=s[l][Y];if(!d.P)switch(d.i){case 5:n(d)&&ce(d);break;case 4:o(d)&&ce(d)}}}function o(s){for(var l=s.t,d=s.k,p=Ke(d),h=p.length-1;h>=0;h--){var u=p[h];if(u!==Y){var m=l[u];if(m===void 0&&!je(l,u))return!0;var b=d[u],x=b&&b[Y];if(x?x.t!==m:!Zs(b,m))return!0}}var O=!!l[Y];return p.length!==Ke(l).length+(O?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&&Ct(3,JSON.stringify(se(s)))}var a={};Ep("ES5",{J:function(s,l){var d=Array.isArray(s),p=function(u,m){if(u){for(var b=Array(m.length),x=0;x<m.length;x++)Object.defineProperty(b,""+x,e(x,!0));return b}var O=Xs(m);delete O[Y];for(var N=Ke(O),P=0;P<N.length;P++){var L=N[P];O[L]=e(L,u||!!O[L].enumerable)}return Object.create(Object.getPrototypeOf(m),O)}(d,s),h={i:d?5:4,A:l?l.A:wi(),P:!1,I:!1,R:{},l,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,Y,{value:h,writable:!0}),p},S:function(s,l,d){d?Qt(l)&&l[Y].A===s&&t(s.p):(s.u&&function p(h){if(h&&typeof h=="object"){var u=h[Y];if(u){var m=u.t,b=u.k,x=u.R,O=u.i;if(O===4)Te(b,function(S){S!==Y&&(m[S]!==void 0||je(m,S)?x[S]||p(b[S]):(x[S]=!0,ce(u)))}),Te(m,function(S){b[S]!==void 0||je(b,S)||(x[S]=!1,ce(u))});else if(O===5){if(n(u)&&(ce(u),x.length=!0),b.length<m.length)for(var N=b.length;N<m.length;N++)x[N]=!1;else for(var P=m.length;P<b.length;P++)x[P]=!0;for(var L=Math.min(b.length,m.length),C=0;C<L;C++)b.hasOwnProperty(C)||(x[C]=!0),x[C]===void 0&&p(b[C])}}}}(s.p[0]),t(s.p))},K:function(s){return s.i===4?o(s):n(s)}})}var Gs,Hr,$i=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Rp=typeof Map<"u",Np=typeof Set<"u",Vs=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Ys=$i?Symbol.for("immer-nothing"):((Gs={})["immer-nothing"]=!0,Gs),js=$i?Symbol.for("immer-draftable"):"__$immer_draftable",Y=$i?Symbol.for("immer-state"):"__$immer_state";var _p=""+Object.prototype.constructor,Ke=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Xs=Object.getOwnPropertyDescriptors||function(e){var t={};return Ke(e).forEach(function(o){t[o]=Object.getOwnPropertyDescriptor(e,o)}),t},Ni={},zr={get:function(e,t){if(t===Y)return e;var o=se(e);if(!je(o,t))return function(i,a,s){var l,d=Hs(a,s);return d?"value"in d?d.value:(l=d.get)===null||l===void 0?void 0:l.call(i.k):void 0}(e,o,t);var n=o[t];return e.I||!Pt(n)?n:n===Ci(e.t,t)?(Ei(e),e.o[t]=Ri(e.A.h,n,e)):n},has:function(e,t){return t in se(e)},ownKeys:function(e){return Reflect.ownKeys(se(e))},set:function(e,t,o){var n=Hs(se(e),t);if(n?.set)return n.set.call(e.k,o),!0;if(!e.P){var i=Ci(se(e),t),a=i?.[Y];if(a&&a.t===o)return e.o[t]=o,e.R[t]=!1,!0;if(Zs(o,i)&&(o!==void 0||je(e.t,t)))return!0;Ei(e),ce(e)}return e.o[t]===o&&(o!==void 0||t in e.o)||Number.isNaN(o)&&Number.isNaN(e.o[t])||(e.o[t]=o,e.R[t]=!0),!0},deleteProperty:function(e,t){return Ci(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,Ei(e),ce(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var o=se(e),n=Reflect.getOwnPropertyDescriptor(o,t);return n&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:n.enumerable,value:o[t]}},defineProperty:function(){Ct(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Ct(12)}},Wr={};Te(zr,function(e,t){Wr[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Wr.deleteProperty=function(e,t){return Wr.set.call(this,e,t,void 0)},Wr.set=function(e,t,o){return zr.set.call(this,e[0],t,o,e[0])};var Pp=function(){function e(o){var n=this;this.O=Vs,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(O){var N=this;O===void 0&&(O=l);for(var P=arguments.length,L=Array(P>1?P-1:0),C=1;C<P;C++)L[C-1]=arguments[C];return d.produce(O,function(S){var E;return(E=a).call.apply(E,[N,S].concat(L))})}}var p;if(typeof a!="function"&&Ct(6),s!==void 0&&typeof s!="function"&&Ct(7),Pt(i)){var h=Fs(n),u=Ri(n,i,void 0),m=!0;try{p=a(u),m=!1}finally{m?Ao(h):Ai(h)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(O){return Si(h,s),Oi(O,h)},function(O){throw Ao(h),O}):(Si(h,s),Oi(p,h))}if(!i||typeof i!="object"){if((p=a(i))===void 0&&(p=i),p===Ys&&(p=void 0),n.D&&Ti(p,!0),s){var b=[],x=[];Wt("Patches").M(i,p,b,x),s(b,x)}return p}Ct(21,i)},this.produceWithPatches=function(i,a){if(typeof i=="function")return function(p){for(var h=arguments.length,u=Array(h>1?h-1:0),m=1;m<h;m++)u[m-1]=arguments[m];return n.produceWithPatches(p,function(b){return i.apply(void 0,[b].concat(u))})};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 t=e.prototype;return t.createDraft=function(o){Pt(o)||Ct(8),Qt(o)&&(o=Ap(o));var n=Fs(this),i=Ri(this,o,void 0);return i[Y].C=!0,Ai(n),i},t.finishDraft=function(o,n){var i=o&&o[Y],a=i.A;return Si(a,n),Oi(void 0,a)},t.setAutoFreeze=function(o){this.D=o},t.setUseProxies=function(o){o&&!Vs&&Ct(20),this.O=o},t.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=Wt("Patches").$;return Qt(o)?s(o,n):this.produce(o,function(l){return s(l,n)})},e}(),vt=new Pp,Lp=vt.produce,Dg=vt.produceWithPatches.bind(vt),Bg=vt.setAutoFreeze.bind(vt),Ug=vt.setUseProxies.bind(vt),Mg=vt.applyPatches.bind(vt),Fg=vt.createDraft.bind(vt),Wg=vt.finishDraft.bind(vt),_o=Lp;function le(e){"@babel/helpers - typeof";return le=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},le(e)}function ki(e,t){if(le(e)!=="object"||e===null)return e;var o=e[Symbol.toPrimitive];if(o!==void 0){var n=o.call(e,t||"default");if(le(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Di(e){var t=ki(e,"string");return le(t)==="symbol"?t:String(t)}function Bi(e,t,o){return t=Di(t),t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function Js(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),o.push.apply(o,n)}return o}function Po(e){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?arguments[t]:{};t%2?Js(Object(o),!0).forEach(function(n){Bi(e,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Js(Object(o)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(o,n))})}return e}function pt(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Qs=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Ui=function(){return Math.random().toString(36).substring(7).split("").join(".")},Lo={INIT:"@@redux/INIT"+Ui(),REPLACE:"@@redux/REPLACE"+Ui(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Ui()}};function Tp(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Mi(e,t,o){var n;if(typeof t=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(pt(0));if(typeof t=="function"&&typeof o>"u"&&(o=t,t=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(pt(1));return o(Mi)(e,t)}if(typeof e!="function")throw new Error(pt(2));var i=e,a=t,s=[],l=s,d=!1;function p(){l===s&&(l=s.slice())}function h(){if(d)throw new Error(pt(3));return a}function u(O){if(typeof O!="function")throw new Error(pt(4));if(d)throw new Error(pt(5));var N=!0;return p(),l.push(O),function(){if(N){if(d)throw new Error(pt(6));N=!1,p();var L=l.indexOf(O);l.splice(L,1),s=null}}}function m(O){if(!Tp(O))throw new Error(pt(7));if(typeof O.type>"u")throw new Error(pt(8));if(d)throw new Error(pt(9));try{d=!0,a=i(a,O)}finally{d=!1}for(var N=s=l,P=0;P<N.length;P++){var L=N[P];L()}return O}function b(O){if(typeof O!="function")throw new Error(pt(10));i=O,m({type:Lo.REPLACE})}function x(){var O,N=u;return O={subscribe:function(L){if(typeof L!="object"||L===null)throw new Error(pt(11));function C(){L.next&&L.next(h())}C();var S=N(C);return{unsubscribe:S}}},O[Qs]=function(){return this},O}return m({type:Lo.INIT}),n={dispatch:m,subscribe:u,getState:h,replaceReducer:b},n[Qs]=x,n}function Ip(e){Object.keys(e).forEach(function(t){var o=e[t],n=o(void 0,{type:Lo.INIT});if(typeof n>"u")throw new Error(pt(12));if(typeof o(void 0,{type:Lo.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(pt(13))})}function tc(e){for(var t=Object.keys(e),o={},n=0;n<t.length;n++){var i=t[n];typeof e[i]=="function"&&(o[i]=e[i])}var a=Object.keys(o),s,l;try{Ip(o)}catch(d){l=d}return function(p,h){if(p===void 0&&(p={}),l)throw l;if(0)var u;for(var m=!1,b={},x=0;x<a.length;x++){var O=a[x],N=o[O],P=p[O],L=N(P,h);if(typeof L>"u"){var C=h&&h.type;throw new Error(pt(14))}b[O]=L,m=m||L!==P}return m=m||a.length!==Object.keys(p).length,m?b:p}}function qe(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return t.length===0?function(n){return n}:t.length===1?t[0]:t.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function ec(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return function(n){return function(){var i=n.apply(void 0,arguments),a=function(){throw new Error(pt(15))},s={getState:i.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=t.map(function(d){return d(s)});return a=qe.apply(void 0,l)(i.dispatch),Po(Po({},i),{},{dispatch:a})}}}function rc(e){var t=function(n){var i=n.dispatch,a=n.getState;return function(s){return function(l){return typeof l=="function"?l(i,a,e):s(l)}}};return t}var oc=rc();oc.withExtraArgument=rc;var Fi=oc;var cc=function(){var e=function(t,o){return e=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])},e(t,o)};return function(t,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");e(t,o);function n(){this.constructor=t}t.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),$p=function(e,t){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=t.call(e,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}}},Ye=function(e,t){for(var o=0,n=t.length,i=e.length;o<n;o++,i++)e[i]=t[o];return e},kp=Object.defineProperty,Dp=Object.defineProperties,Bp=Object.getOwnPropertyDescriptors,nc=Object.getOwnPropertySymbols,Up=Object.prototype.hasOwnProperty,Mp=Object.prototype.propertyIsEnumerable,ic=function(e,t,o){return t in e?kp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o},de=function(e,t){for(var o in t||(t={}))Up.call(t,o)&&ic(e,o,t[o]);if(nc)for(var n=0,i=nc(t);n<i.length;n++){var o=i[n];Mp.call(t,o)&&ic(e,o,t[o])}return e},Wi=function(e,t){return Dp(e,Bp(t))},Fp=function(e,t,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(e,t)).next())})};var Wp=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?qe:qe.apply(null,arguments)},ib=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function Hp(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var o=t;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return t===o}var zp=function(e){cc(t,e);function t(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var i=e.apply(this,o)||this;return Object.setPrototypeOf(i,t.prototype),i}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return e.prototype.concat.apply(this,o)},t.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(t.bind.apply(t,Ye([void 0],o[0].concat(this)))):new(t.bind.apply(t,Ye([void 0],o.concat(this))))},t}(Array),Gp=function(e){cc(t,e);function t(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var i=e.apply(this,o)||this;return Object.setPrototypeOf(i,t.prototype),i}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return e.prototype.concat.apply(this,o)},t.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(t.bind.apply(t,Ye([void 0],o[0].concat(this)))):new(t.bind.apply(t,Ye([void 0],o.concat(this))))},t}(Array);function Gi(e){return Pt(e)?_o(e,function(){}):e}function Vp(e){return typeof e=="boolean"}function jp(){return function(t){return Kp(t)}}function Kp(e){e===void 0&&(e={});var t=e.thunk,o=t===void 0?!0:t,n=e.immutableCheck,i=n===void 0?!0:n,a=e.serializableCheck,s=a===void 0?!0:a,l=new zp;if(o&&(Vp(o)?l.push(Fi):l.push(Fi.withExtraArgument(o.extraArgument))),0){if(i)var d;if(s)var p}return l}var Hi=!0;function lc(e){var t=jp(),o=e||{},n=o.reducer,i=n===void 0?void 0:n,a=o.middleware,s=a===void 0?t():a,l=o.devTools,d=l===void 0?!0:l,p=o.preloadedState,h=p===void 0?void 0:p,u=o.enhancers,m=u===void 0?void 0:u,b;if(typeof i=="function")b=i;else if(Hp(i))b=tc(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 x=s;if(typeof x=="function"&&(x=x(t),!Hi&&!Array.isArray(x)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Hi&&x.some(function(S){return typeof S!="function"}))throw new Error("each middleware provided to configureStore must be a function");var O=ec.apply(void 0,x),N=qe;d&&(N=Wp(de({trace:!Hi},typeof d=="object"&&d)));var P=new Gp(O),L=P;Array.isArray(m)?L=Ye([O],m):typeof m=="function"&&(L=m(P));var C=N.apply(void 0,L);return Mi(b,h,C)}function pe(e,t){function o(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(t){var a=t.apply(void 0,n);if(!a)throw new Error("prepareAction did not return an object");return de(de({type:e,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:e,payload:n[0]}}return o.toString=function(){return""+e},o.type=e,o.match=function(n){return n.type===e},o}function dc(e){var t={},o=[],n,i={addCase:function(a,s){var l=typeof a=="string"?a:a.type;if(l in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[l]=s,i},addMatcher:function(a,s){return o.push({matcher:a,reducer:s}),i},addDefaultCase:function(a){return n=a,i}};return e(i),[t,o,n]}function Zp(e){return typeof e=="function"}function qp(e,t,o,n){o===void 0&&(o=[]);var i=typeof t=="function"?dc(t):[t,o,n],a=i[0],s=i[1],l=i[2],d;if(Zp(e))d=function(){return Gi(e())};else{var p=Gi(e);d=function(){return p}}function h(u,m){u===void 0&&(u=d());var b=Ye([a[m.type]],s.filter(function(x){var O=x.matcher;return O(m)}).map(function(x){var O=x.reducer;return O}));return b.filter(function(x){return!!x}).length===0&&(b=[l]),b.reduce(function(x,O){if(O)if(Qt(x)){var N=x,P=O(N,m);return P===void 0?x:P}else{if(Pt(x))return _o(x,function(L){return O(L,m)});var P=O(x,m);if(P===void 0){if(x===null)return x;throw Error("A case reducer on a non-draftable value must not return undefined")}return P}return x},u)}return h.getInitialState=d,h}function Yp(e,t){return e+"/"+t}function pc(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof e.initialState=="function"?e.initialState:Gi(e.initialState),n=e.reducers||{},i=Object.keys(n),a={},s={},l={};i.forEach(function(h){var u=n[h],m=Yp(t,h),b,x;"reducer"in u?(b=u.reducer,x=u.prepare):b=u,a[h]=b,s[m]=b,l[h]=x?pe(m,x):pe(m)});function d(){var h=typeof e.extraReducers=="function"?dc(e.extraReducers):[e.extraReducers],u=h[0],m=u===void 0?{}:u,b=h[1],x=b===void 0?[]:b,O=h[2],N=O===void 0?void 0:O,P=de(de({},m),s);return qp(o,function(L){for(var C in P)L.addCase(C,P[C]);for(var S=0,E=x;S<E.length;S++){var T=E[S];L.addMatcher(T.matcher,T.reducer)}N&&L.addDefaultCase(N)})}var p;return{name:t,reducer:function(h,u){return p||(p=d()),p(h,u)},actions:l,caseReducers:a,getInitialState:function(){return p||(p=d()),p.getInitialState()}}}var Xp="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Jp=function(e){e===void 0&&(e=21);for(var t="",o=e;o--;)t+=Xp[Math.random()*64|0];return t},Qp=["name","message","stack","code"],zi=function(){function e(t,o){this.payload=t,this.meta=o}return e}(),ac=function(){function e(t,o){this.payload=t,this.meta=o}return e}(),tf=function(e){if(typeof e=="object"&&e!==null){for(var t={},o=0,n=Qp;o<n.length;o++){var i=n[o];typeof e[i]=="string"&&(t[i]=e[i])}return t}return{message:String(e)}},lb=function(){function e(t,o,n){var i=pe(t+"/fulfilled",function(h,u,m,b){return{payload:h,meta:Wi(de({},b||{}),{arg:m,requestId:u,requestStatus:"fulfilled"})}}),a=pe(t+"/pending",function(h,u,m){return{payload:void 0,meta:Wi(de({},m||{}),{arg:u,requestId:h,requestStatus:"pending"})}}),s=pe(t+"/rejected",function(h,u,m,b,x){return{payload:b,error:(n&&n.serializeError||tf)(h||"Rejected"),meta:Wi(de({},x||{}),{arg:m,requestId:u,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(u,m,b){var x=n?.idGenerator?n.idGenerator(h):Jp(),O=new d,N,P=!1;function L(S){N=S,O.abort()}var C=function(){return Fp(this,null,function(){var S,E,T,B,H,W,$;return $p(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),B=(S=n?.condition)==null?void 0:S.call(n,h,{getState:m,extra:b}),rf(B)?[4,B]:[3,2];case 1:B=y.sent(),y.label=2;case 2:if(B===!1||O.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return P=!0,H=new Promise(function(v,I){return O.signal.addEventListener("abort",function(){return I({name:"AbortError",message:N||"Aborted"})})}),u(a(x,h,(E=n?.getPendingMeta)==null?void 0:E.call(n,{requestId:x,arg:h},{getState:m,extra:b}))),[4,Promise.race([H,Promise.resolve(o(h,{dispatch:u,getState:m,extra:b,requestId:x,signal:O.signal,abort:L,rejectWithValue:function(v,I){return new zi(v,I)},fulfillWithValue:function(v,I){return new ac(v,I)}})).then(function(v){if(v instanceof zi)throw v;return v instanceof ac?i(v.payload,x,h,v.meta):i(v,x,h)})])];case 3:return T=y.sent(),[3,5];case 4:return W=y.sent(),T=W instanceof zi?s(null,x,h,W.payload,W.meta):s(W,x,h),[3,5];case 5:return $=n&&!n.dispatchConditionRejection&&s.match(T)&&T.meta.condition,$||u(T),[2,T]}})})}();return Object.assign(C,{abort:L,requestId:x,arg:h,unwrap:function(){return C.then(ef)}})}}return Object.assign(p,{pending:a,rejected:s,fulfilled:i,typePrefix:t})}return e.withTypes=function(){return e},e}();function ef(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function rf(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var fc="listener",uc="completed",hc="cancelled",db="task-"+hc,pb="task-"+uc,fb=fc+"-"+hc,ub=fc+"-"+uc;var Vi="listenerMiddleware";var hb=pe(Vi+"/add"),yb=pe(Vi+"/removeAll"),mb=pe(Vi+"/remove");var sc,gb=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(sc||(sc=Promise.resolve())).then(e).catch(function(t){return setTimeout(function(){throw t},0)})},of=function(e){return function(t){setTimeout(t,e)}},bb=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:of(10);qs();window.ftReduxStores||(window.ftReduxStores={});var ji=class e extends we{static get(t){var o;let n=typeof t=="string"?t:t.name,i=typeof t=="string"?void 0:t,a=window.ftReduxStores[n];if(Pe(a))return a;if(i==null)return;let s=pc({...i,reducers:(o=i.reducers)!==null&&o!==void 0?o:{}}),l=lc({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 e(s,l)}constructor(t,o){super(),this.reduxSlice=t,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new Fr,this.actions=new Proxy(this.reduxSlice.actions,{get:(n,i,a)=>{let s=i,l=n[s];return l?(...d)=>{let p=l(...d);return this.reduxStore.dispatch(p),p}:d=>{this.setState({[s]:d})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}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(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};function nf(){var e;for(let t of Object.values((e=window.ftReduxStores)!==null&&e!==void 0?e:{}))Pe(t)&&t.clear()}var Yi={};V(Yi,{scrollHelper:()=>af});var Zi,To=new Map,qi=class{lock(t,o){if(o){let n=To.get(o);if(n==null||n===t)return To.set(o,t),o}}release(t,o){o&&To.get(o)===t&&To.delete(o)}findFirstScrollableParent(t){let o,n=i=>{var a;i.stopPropagation();let s,l;for(let d of i.composedPath()){let p=d,h=this.elementCanScroll(p);if(h&&p.clientHeight&&p.clientHeight<p.scrollHeight){s=p;break}else h&&l==null&&(l=p)}o=(a=s??l)!==null&&a!==void 0?a:document.body};return t.addEventListener("find-scrollable-parent",n),t.dispatchEvent(new Event("find-scrollable-parent",{composed:!0})),t.removeEventListener("find-scrollable-parent",n),o}elementCanScroll(t){try{return["auto","scroll"].includes(getComputedStyle(t).overflowY)}catch{return!1}}getAbsoluteScrollOffset(t,o){let n=0;for(;o&&o.offsetParent!==t.offsetParent;)n+=o.offsetTop,o=o.offsetParent;return n+o.offsetTop-t.offsetTop}computeTopOffsetRatio(t,o){if(typeof t=="number")return t;switch(t){case"end":return 1;case"center":return .5;case"nearest":return o;default:return 0}}scrollIntoViewIfPossible(t,o){let n=this.findFirstScrollableParent(t);if(t&&this.lock(this,n)){let i=this.getAbsoluteScrollOffset(n,t),a=i-n.clientHeight+t.clientHeight,s=i,l=Ar(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",t,n);this.release(this,n)}};window.FluidTopicsScrollHelper=(Zi=window.FluidTopicsScrollHelper)!==null&&Zi!==void 0?Zi:new qi;var af=window.FluidTopicsScrollHelper;var Xi={};V(Xi,{shadowQuerySelector:()=>sf,shadowQuerySelectorAll:()=>cf});function sf(e,t,...o){var n;let i=e.querySelector(t);for(let a of o)i=(n=i?.shadowRoot)===null||n===void 0?void 0:n.querySelector(a);return i}function cf(e,t,...o){let n=[...e.querySelectorAll(t)];for(let i of o)n=n.flatMap(a=>{var s,l;return[...(l=(s=a.shadowRoot)===null||s===void 0?void 0:s.querySelectorAll(i))!==null&&l!==void 0?l:[]]});return n}var Ji={};V(Ji,{SearchPlaceConverter:()=>ko,SearchPlaceQueryParams:()=>j,isSearchPlaceQueryParams:()=>Mc,serializeRequest:()=>pf});var lf=_l(mc(),1);var gc;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(gc||(gc={}));var bc;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(bc||(bc={}));var xc;(function(e){e.THIRD_PARTY="THIRD_PARTY",e.OFF_THE_GRID="OFF_THE_GRID",e.CONTENT_PACKAGER="CONTENT_PACKAGER",e.PAGES="PAGES",e.DESIGNED_READER="DESIGNED_READER"})(xc||(xc={}));var vc;(function(e){e.HOMEPAGE="HOMEPAGE",e.CUSTOM="CUSTOM",e.HEADER="HEADER",e.READER="READER",e.TOPIC_TEMPLATE="TOPIC_TEMPLATE",e.SEARCH="SEARCH",e.SEARCH_RESULT="SEARCH_RESULT"})(vc||(vc={}));var Sc;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(Sc||(Sc={}));var Oc;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(Oc||(Oc={}));var Cc;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(Cc||(Cc={}));var Ec;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(Ec||(Ec={}));var wc;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR",e.CUSTOM="CUSTOM"})(wc||(wc={}));var Ac;(function(e){e.ASC="ASC",e.DESC="DESC"})(Ac||(Ac={}));var Rc;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(Rc||(Rc={}));var Nc;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(Nc||(Nc={}));var $c=e=>["EVERYWHERE","TITLE_ONLY","NONE"].includes(e);var _c;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK"})(_c||(_c={}));var Pc;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(Pc||(Pc={}));var Lc;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.PERSONAL_BOOK="PERSONAL_BOOK",e.SHARED_BOOK="SHARED_BOOK"})(Lc||(Lc={}));var Gr;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(Gr||(Gr={}));var kc=e=>["LAST_WEEK","LAST_MONTH","LAST_QUARTER","LAST_YEAR"].includes(e);var Tc;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC"})(Tc||(Tc={}));var Ic;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Ic||(Ic={}));var st;(function(e){e.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",e.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",e.HTML_EXPORT_USER="HTML_EXPORT_USER",e.PDF_EXPORT_USER="PDF_EXPORT_USER",e.SAVED_SEARCH_USER="SAVED_SEARCH_USER",e.COLLECTION_USER="COLLECTION_USER",e.OFFLINE_USER="OFFLINE_USER",e.ANALYTICS_USER="ANALYTICS_USER",e.BETA_USER="BETA_USER",e.DEBUG_USER="DEBUG_USER",e.PRINT_USER="PRINT_USER",e.RATING_USER="RATING_USER",e.FEEDBACK_USER="FEEDBACK_USER",e.GENERATIVE_AI_USER="GENERATIVE_AI_USER",e.CONTENT_PUBLISHER="CONTENT_PUBLISHER",e.KHUB_ADMIN="KHUB_ADMIN",e.USERS_ADMIN="USERS_ADMIN",e.PORTAL_ADMIN="PORTAL_ADMIN",e.ADMIN="ADMIN",e.DEVELOPER="DEVELOPER"})(st||(st={}));var Dc;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(Dc||(Dc={}));var Bc;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(Bc||(Bc={}));var Db={[st.PERSONAL_BOOK_SHARE_USER]:[st.PERSONAL_BOOK_USER],[st.HTML_EXPORT_USER]:[st.PERSONAL_BOOK_USER],[st.PDF_EXPORT_USER]:[st.PERSONAL_BOOK_USER],[st.KHUB_ADMIN]:[st.CONTENT_PUBLISHER],[st.ADMIN]:[st.KHUB_ADMIN,st.USERS_ADMIN,st.PORTAL_ADMIN],[st.DEVELOPER]:[st.BETA_USER,st.DEBUG_USER]};function df(e){return`"${e}"`}function Uc(e){return e.startsWith('"')&&e.endsWith('"')?e.replace(/(^"+)|("+$)/g,""):e}function pf(e,t){return new ko(e).serialize(t)}var j;(function(e){e.LOCALE="content-lang",e.QUERY="query",e.SCOPE="scope",e.FILTERS="filters",e.VIRTUAL_FIELD="virtual-field",e.PERIOD="period",e.VALUE_FILTERS="value-filters",e.DATE_FILTERS="date-filters",e.RANGE_FILTERS="range-filters",e.SORT="sort",e.PER_PAGE="per-page"})(j||(j={}));var ff=new Set(Object.values(j));function Mc(e){return ff.has(e)}var ko=class{constructor(t,o={},n=20,i=!1,a="en-US"){this.baseUrl=t,this.predefinedSorts=o,this.defaultPerPage=n,this.allLanguagesAllowed=i,this.defaultContentLocale=a,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"},this.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]]}serialize(t,o){return this.serializeToCurrentPageIfPossible(t,o??"/search")}serializeToCurrentPageIfPossible(t,o){let n=this.toURLSearchParams(t).toString(),i=o==null||o.trim().length===0,a=new URL(i?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${o}`);return a.search=n,a.toString()}toURLSearchParams(t,o=!1){var n,i,a,s,l,d,p,h,u,m,b,x;let O=new URLSearchParams;t.contentLocale?(!o||t.contentLocale!==this.defaultContentLocale)&&O.append(j.LOCALE,t.contentLocale):O.append(j.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((n=t.query)===null||n===void 0?void 0:n.length)>0&&O.append(j.QUERY,t.query),t.scope&&t.scope!=="DEFAULT"&&O.append(j.SCOPE,t.scope.toLowerCase()),t.virtualField&&t.virtualField!=="EVERYWHERE"&&O.append(j.VIRTUAL_FIELD,t.virtualField.toLowerCase()),((i=t.sort)===null||i===void 0?void 0:i.length)>0&&t.sort[0].key==="ft:lastEdition"&&O.append(j.SORT,"last_update");let N=(s=(a=t.metadataFilters)===null||a===void 0?void 0:a.filter(S=>S.valueFilter))!==null&&s!==void 0?s:[];if(N.length>0){let S=N.map(E=>{var T,B;let H=((B=(T=E.valueFilter)===null||T===void 0?void 0:T.values)!==null&&B!==void 0?B:[]).map(W=>this.escapeFilters(W)).map(W=>encodeURIComponent(df(Uc(W)))).join("_");return`${E.key}~${H}`}).join("*");O.append(j.VALUE_FILTERS,S)}let P=(d=(l=t.metadataFilters)===null||l===void 0?void 0:l.filter(S=>S.dateFilter))!==null&&d!==void 0?d:[];if(P.length>0){let S=P.map(E=>{var T;return`${E.key}~${(T=E.dateFilter)===null||T===void 0?void 0:T.type.toLowerCase()}`}).join("*");O.append(j.DATE_FILTERS,S)}let L=(h=(p=t.metadataFilters)===null||p===void 0?void 0:p.filter(S=>S.rangeFilter))!==null&&h!==void 0?h:[];if(L.length>0){let S=L.map(E=>{var T,B;return`${E.key}~${(T=E.rangeFilter)===null||T===void 0?void 0:T.from}_${(B=E.rangeFilter)===null||B===void 0?void 0:B.to}`}).join("*");O.append(j.RANGE_FILTERS,S)}let C=(u=t.otherQueryParams)!==null&&u!==void 0?u:{};for(let S in C)O.append(S,C[S]);return!((m=t.paging)===null||m===void 0)&&m.perPage&&((x=(b=t.paging)===null||b===void 0?void 0:b.perPage)!==null&&x!==void 0?x:this.defaultPerPage)!=this.defaultPerPage&&O.append(j.PER_PAGE,String(t.paging.perPage)),O}parse(t){var o;let n=t.split("?"),i=this.fromURLSearchParams(new URLSearchParams(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(t){var o,n,i,a,s,l,d,p;let h=t.get(j.LOCALE)==="all"?void 0:t.get(j.LOCALE),u=((o=t.get(j.VIRTUAL_FIELD))!==null&&o!==void 0?o:"EVERYWHERE").toUpperCase(),m=((n=t.get(j.SORT))!==null&&n!==void 0?n:"DEFAULT").toUpperCase(),b=(i=t.get(j.SCOPE))!==null&&i!==void 0?i:"default",x=+((a=t.get(j.PER_PAGE))!==null&&a!==void 0?a:this.defaultPerPage),O={};for(let N of t.keys())Mc(N)||(O[N]=t.get(N));return{contentLocale:h??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:decodeURIComponent((s=t.get(j.QUERY))!==null&&s!==void 0?s:""),scope:(l=this.scopeMapping[b])!==null&&l!==void 0?l:"DEFAULT",virtualField:$c(u)?u:"EVERYWHERE",sort:(p=(d=this.predefinedSorts[m])!==null&&d!==void 0?d:this.predefinedSorts.DEFAULT)!==null&&p!==void 0?p:[],metadataFilters:this.parseCompatFilters(t),facets:[],paging:{page:1,perPage:Ar(1,isNaN(x)?this.defaultPerPage:x,1e3)},otherQueryParams:O}}parseCompatFilters(t){var o,n,i,a,s,l;let d=[];return t.has(j.FILTERS)&&(d=this.parseValueFilters((o=t.get(j.FILTERS))!==null&&o!==void 0?o:"")),(n=t.has(j.PERIOD))!==null&&n!==void 0&&n&&(d=[...d,...this.parseLegacyPeriodFilter(((i=t.get(j.PERIOD))!==null&&i!==void 0?i:"").toUpperCase())]),[...d,...this.parseValueFilters((a=t.get(j.VALUE_FILTERS))!==null&&a!==void 0?a:""),...this.parseDateFilters((s=t.get(j.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=t.get(j.RANGE_FILTERS))!==null&&l!==void 0?l:"")]}splitUnknownFilter(t){return this.superEscapeFilters(decodeURIComponent(t)).split("*").map(o=>o.split("~"))}parseValueFilters(t){return t.length===0?[]:this.splitUnknownFilter(t).map(o=>({key:o[0],valueFilter:{values:o[1].split("_").map(Uc).map(n=>this.unescapeFilterValue(n)),negative:!1}}))}parseDateFilters(t){return t.length===0?[]:this.splitUnknownFilter(t).map(o=>({key:o[0],dateFilter:{type:Gr[o[1].toUpperCase()]}}))}parseRangeFilters(t){return t.length===0?[]:this.splitUnknownFilter(t).map(o=>({key:o[0],rangeFilter:{from:o[1].split("_")[0],to:o[1].split("_")[1]}}))}escapeFilters(t){for(let[o,n,i]of this.filtersEscapeMapping)t=t.replaceAll(o,n);return t}superEscapeFilters(t){for(let[o,n,i]of this.filtersEscapeMapping)t=t.replaceAll(n,i);return t}unescapeFilterValue(t){for(let[o,n,i]of this.filtersEscapeMapping)t=t.replace(i,o);return t}parseLegacyPeriodFilter(t){if(kc(t))return[{key:"ft:lastEdition",dateFilter:{type:Gr[t]}}];if(t.startsWith("CUSTOM_")){let[o,n,i]=t.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:n,to:i}}]}return[]}};var ta={};V(ta,{toFtFormComponent:()=>Qi});var Do=Symbol("elementInternals");function Qi(e,t){class o extends e{static get formAssociated(){return!0}get form(){return this[Do].form}constructor(...i){super(i),this[Do]=this.attachInternals(),this[Do].role=t}setFormValue(i){this[Do].setFormValue(i)}}return o}var ra={};V(ra,{DateFormatter:()=>ea});var ea=class{static format(t,o,n,i){return window.moment?window.moment(t).locale(o).format(this.getDateFormat(n,i)):t}static getDateFormat(t,o){return t?o?"lll":"ll":o?"L LT":"L"}};var oa,na,ia,aa,Vr=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((ia=(na=(oa=window.safari)===null||oa===void 0?void 0:oa.pushNotification)===null||na===void 0?void 0:na.toString())!==null&&ia!==void 0?ia:"")==="[object SafariRemoteNotification]",uf="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(aa=window.ftGlobals)!==null&&aa!==void 0?aa:{lit:tn,litDecorators:rn,litRepeat:on,litClassMap:nn,litStyleMap:an,litUnsafeHTML:cn,wcUtils:{...mn,...dn,...bn,...ra,...xn,...On,...Xn,...hn,...fi,...Yn,...yi,...hi,...$s,...vn,...gi,...bi,...Ds,...vi,...Ki,...ui,...Yi,...Xi,...Ji,...ta,isSafari:Vr,isTouchScreen:uf,setVariable:w}};var Fc=r.extend("--ft-ripple-color","",G.colorContent),A={color:Fc,backgroundColor:r.extend("--ft-ripple-background-color","",Fc),opacityContentOnSurfacePressed:r.external(G.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:r.external(G.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:r.external(G.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:r.external(G.opacityContentOnSurfaceSelected,"Design system"),borderRadius:r.create("--ft-ripple-border-radius","","SIZE","0px")},Wc=r.extend("--ft-ripple-color","",G.colorPrimary),Hc={color:Wc,backgroundColor:r.extend("--ft-ripple-background-color","",Wc)},zc=r.extend("--ft-ripple-color","",G.colorSecondary),Gc={color:zc,backgroundColor:r.extend("--ft-ripple-background-color","",zc)},Vc=D`
50
+ `;var Ds={};var vi={};V(vi,{ParametrizedLabelResolver:()=>xi});var xi=class e{constructor(t,o){this.defaultLabels=t,this.labels=o}resolve(t,...o){var n,i;t=this.resolvePluralKey(t,o);let a=(i=(n=this.labels[t])!==null&&n!==void 0?n:this.defaultLabels[t])!==null&&i!==void 0?i:"";return e.replaceParameters(a,...o)}static replaceParameters(t,...o){return o.forEach((n,i)=>t=t.replace(new RegExp(`\\{${i}([^}]*)\\}`,"g"),(a,s)=>e.formatValue(n,s))),t}resolvePluralKey(t,o){for(let n of o)if(typeof n=="number"){let i=`${String(t)}[\\=${n}]`;if(i in this.labels||i in this.defaultLabels)return i}return t}static formatValue(t,o){return t instanceof Date?e.formatDate(t,o):t??""}static formatDate(t,o){let n=i=>o?.includes("date")?t.toLocaleDateString(i):o?.includes("time")?t.toLocaleTimeString(i):t.toLocaleString(i);try{return n(document.documentElement.lang)}catch{return n()}}};var Ki={};V(Ki,{FtCommandQueue:()=>Fr,FtLitElementRedux:()=>Ve,FtReduxStore:()=>ji,clearAllStores:()=>nf,isFtReduxStore:()=>Pe,redux:()=>vp,reduxEventListener:()=>Sp,reduxReactive:()=>xp});var xp=()=>(e,t)=>{var o;let n=e.constructor;n.reduxReactiveProperties=new Set(n.reduxReactiveProperties),(o=n.reduxReactiveProperties)===null||o===void 0||o.add(t)},vp=e=>{let t=e??{};return(o,n)=>{var i;let a={hasChanged:wr,attribute:!1,...t};R(a)(o,n);let s=o.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(n,{selector:(i=t.selector)!==null&&i!==void 0?i:l=>l[n],store:t.store})}},Sp=e=>(t,o)=>{let n=t.constructor;n.reduxEventListeners=new Map(n.reduxEventListeners),n.reduxEventListeners.set(o,e)};var Fr=class{constructor(){this.queue=[]}add(t,o=!1){o&&(this.queue=this.queue.filter(n=>n.type!==t.type)),this.queue.push(t)}consume(t){let o=this.queue.find(n=>n.type===t);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}};function Pe(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var Bs,Us,Ms,wo=Symbol("internalReduxEventsUnsubscribers"),ae=Symbol("internalStoresUnsubscribers"),Le=Symbol("internalStores"),Ve=class extends q{constructor(){super(...arguments),this[Bs]=new Map,this[Us]=new Map,this[Ms]=[]}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some(o=>t.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[Le].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Le].values()][0]}getStore(t){return t==null?this.getUnnamedStore():this[Le].get(t)}addStore(t,o){var n;o=(n=o??(Pe(t)?t.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(o),this.setupStore(o,t)}removeStore(t){let o=typeof t=="string"?t:t.name;this.unsubscribeFromStore(o),this[Le].delete(o)}setupStore(t,o){this[Le].set(t,o),this.subscribeToStore(t,o),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Le].forEach((t,o)=>this.subscribeToStore(o,t)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((t,o)=>{let n=this.constructor.getPropertyOptions(o);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:o)){let i=this.getStore(t.store);i&&(t.store?this[ae].has(t.store):this[ae].size>0)&&(this[o]=t.selector(i.getState(),this))}})}subscribeToStore(t,o){var n;this[ae].set(t,o.subscribe(()=>this.updateFromStores())),Pe(o)&&o.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((i,a)=>{if(typeof this[a]=="function"&&(!i.store||o.name===i.store)){let s=l=>this[a](l);o.addEventListener(i.eventName,s),this[wo].push(()=>o.removeEventListener(i.eventName,s))}})),this.onStoreAvailable(t)}unsubscribeFromStores(){this[ae].forEach((t,o)=>this.unsubscribeFromStore(o)),this[wo].forEach(t=>t()),this[wo]=[]}unsubscribeFromStore(t){this[ae].has(t)&&this[ae].get(t)(),this[ae].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Bs=ae,Us=Le,Ms=wo;Ve.reduxProperties=new Map;Ve.reduxReactiveProperties=new Set;Ve.reduxEventListeners=new Map;function Ct(e){for(var t=arguments.length,o=Array(t>1?t-1:0),n=1;n<t;n++)o[n-1]=arguments[n];if(0)var i,a;throw Error("[Immer] minified error nr: "+e+(o.length?" "+o.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Qt(e){return!!e&&!!e[Y]}function Pt(e){var t;return!!e&&(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)===_p}(e)||Array.isArray(e)||!!e[js]||!!(!((t=e.constructor)===null||t===void 0)&&t[js])||_i(e)||Pi(e))}function Te(e,t,o){o===void 0&&(o=!1),Ze(e)===0?(o?Object.keys:Ke)(e).forEach(function(n){o&&typeof n=="symbol"||t(n,e[n],e)}):e.forEach(function(n,i){return t(i,n,e)})}function Ze(e){var t=e[Y];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:_i(e)?2:Pi(e)?3:0}function je(e,t){return Ze(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Op(e,t){return Ze(e)===2?e.get(t):e[t]}function Ks(e,t,o){var n=Ze(e);n===2?e.set(t,o):n===3?e.add(o):e[t]=o}function Zs(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function _i(e){return Rp&&e instanceof Map}function Pi(e){return Np&&e instanceof Set}function se(e){return e.o||e.t}function Li(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Xs(e);delete t[Y];for(var o=Ke(t),n=0;n<o.length;n++){var i=o[n],a=t[i];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function Ti(e,t){return t===void 0&&(t=!1),Ii(e)||Qt(e)||!Pt(e)||(Ze(e)>1&&(e.set=e.add=e.clear=e.delete=Cp),Object.freeze(e),t&&Te(e,function(o,n){return Ti(n,!0)},!0)),e}function Cp(){Ct(2)}function Ii(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Wt(e){var t=Ni[e];return t||Ct(18,e),t}function Ep(e,t){Ni[e]||(Ni[e]=t)}function wi(){return Hr}function Si(e,t){t&&(Wt("Patches"),e.u=[],e.s=[],e.v=t)}function Ao(e){Ai(e),e.p.forEach(wp),e.p=null}function Ai(e){e===Hr&&(Hr=e.l)}function Fs(e){return Hr={p:[],l:Hr,h:e,m:!0,_:0}}function wp(e){var t=e[Y];t.i===0||t.i===1?t.j():t.g=!0}function Oi(e,t){t._=t.p.length;var o=t.p[0],n=e!==void 0&&e!==o;return t.h.O||Wt("ES5").S(t,e,n),n?(o[Y].P&&(Ao(t),Ct(4)),Pt(e)&&(e=Ro(t,e),t.l||No(t,e)),t.u&&Wt("Patches").M(o[Y].t,e,t.u,t.s)):e=Ro(t,o,[]),Ao(t),t.u&&t.v(t.u,t.s),e!==Ys?e:void 0}function Ro(e,t,o){if(Ii(t))return t;var n=t[Y];if(!n)return Te(t,function(l,d){return Ws(e,n,t,l,d,o)},!0),t;if(n.A!==e)return t;if(!n.P)return No(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=Li(n.k):n.o,a=i,s=!1;n.i===3&&(a=new Set(i),i.clear(),s=!0),Te(a,function(l,d){return Ws(e,n,i,l,d,o,s)}),No(e,i,!1),o&&e.u&&Wt("Patches").N(n,o,e.u,e.s)}return n.o}function Ws(e,t,o,n,i,a,s){if(Qt(i)){var l=Ro(e,i,a&&t&&t.i!==3&&!je(t.R,n)?a.concat(n):void 0);if(Ks(o,n,l),!Qt(l))return;e.m=!1}else s&&o.add(i);if(Pt(i)&&!Ii(i)){if(!e.h.D&&e._<1)return;Ro(e,i),t&&t.A.l||No(e,i)}}function No(e,t,o){o===void 0&&(o=!1),!e.l&&e.h.D&&e.m&&Ti(t,o)}function Ci(e,t){var o=e[Y];return(o?se(o):e)[t]}function Hs(e,t){if(t in e)for(var o=Object.getPrototypeOf(e);o;){var n=Object.getOwnPropertyDescriptor(o,t);if(n)return n;o=Object.getPrototypeOf(o)}}function ce(e){e.P||(e.P=!0,e.l&&ce(e.l))}function Ei(e){e.o||(e.o=Li(e.t))}function Ri(e,t,o){var n=_i(t)?Wt("MapSet").F(t,o):Pi(t)?Wt("MapSet").T(t,o):e.O?function(i,a){var s=Array.isArray(i),l={i:s?1:0,A:a?a.A:wi(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},d=l,p=zr;s&&(d=[l],p=Wr);var h=Proxy.revocable(d,p),u=h.revoke,m=h.proxy;return l.k=m,l.j=u,m}(t,o):Wt("ES5").J(t,o);return(o?o.A:wi()).p.push(n),n}function Ap(e){return Qt(e)||Ct(22,e),function t(o){if(!Pt(o))return o;var n,i=o[Y],a=Ze(o);if(i){if(!i.P&&(i.i<4||!Wt("ES5").K(i)))return i.t;i.I=!0,n=zs(o,a),i.I=!1}else n=zs(o,a);return Te(n,function(s,l){i&&Op(i.t,s)===l||Ks(n,s,t(l))}),a===3?new Set(n):n}(e)}function zs(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Li(e)}function qs(){function e(s,l){var d=a[s];return d?d.enumerable=l:a[s]=d={configurable:!0,enumerable:l,get:function(){var p=this[Y];return zr.get(p,s)},set:function(p){var h=this[Y];zr.set(h,s,p)}},d}function t(s){for(var l=s.length-1;l>=0;l--){var d=s[l][Y];if(!d.P)switch(d.i){case 5:n(d)&&ce(d);break;case 4:o(d)&&ce(d)}}}function o(s){for(var l=s.t,d=s.k,p=Ke(d),h=p.length-1;h>=0;h--){var u=p[h];if(u!==Y){var m=l[u];if(m===void 0&&!je(l,u))return!0;var b=d[u],x=b&&b[Y];if(x?x.t!==m:!Zs(b,m))return!0}}var O=!!l[Y];return p.length!==Ke(l).length+(O?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&&Ct(3,JSON.stringify(se(s)))}var a={};Ep("ES5",{J:function(s,l){var d=Array.isArray(s),p=function(u,m){if(u){for(var b=Array(m.length),x=0;x<m.length;x++)Object.defineProperty(b,""+x,e(x,!0));return b}var O=Xs(m);delete O[Y];for(var N=Ke(O),P=0;P<N.length;P++){var L=N[P];O[L]=e(L,u||!!O[L].enumerable)}return Object.create(Object.getPrototypeOf(m),O)}(d,s),h={i:d?5:4,A:l?l.A:wi(),P:!1,I:!1,R:{},l,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,Y,{value:h,writable:!0}),p},S:function(s,l,d){d?Qt(l)&&l[Y].A===s&&t(s.p):(s.u&&function p(h){if(h&&typeof h=="object"){var u=h[Y];if(u){var m=u.t,b=u.k,x=u.R,O=u.i;if(O===4)Te(b,function(S){S!==Y&&(m[S]!==void 0||je(m,S)?x[S]||p(b[S]):(x[S]=!0,ce(u)))}),Te(m,function(S){b[S]!==void 0||je(b,S)||(x[S]=!1,ce(u))});else if(O===5){if(n(u)&&(ce(u),x.length=!0),b.length<m.length)for(var N=b.length;N<m.length;N++)x[N]=!1;else for(var P=m.length;P<b.length;P++)x[P]=!0;for(var L=Math.min(b.length,m.length),C=0;C<L;C++)b.hasOwnProperty(C)||(x[C]=!0),x[C]===void 0&&p(b[C])}}}}(s.p[0]),t(s.p))},K:function(s){return s.i===4?o(s):n(s)}})}var Gs,Hr,$i=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Rp=typeof Map<"u",Np=typeof Set<"u",Vs=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Ys=$i?Symbol.for("immer-nothing"):((Gs={})["immer-nothing"]=!0,Gs),js=$i?Symbol.for("immer-draftable"):"__$immer_draftable",Y=$i?Symbol.for("immer-state"):"__$immer_state";var _p=""+Object.prototype.constructor,Ke=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Xs=Object.getOwnPropertyDescriptors||function(e){var t={};return Ke(e).forEach(function(o){t[o]=Object.getOwnPropertyDescriptor(e,o)}),t},Ni={},zr={get:function(e,t){if(t===Y)return e;var o=se(e);if(!je(o,t))return function(i,a,s){var l,d=Hs(a,s);return d?"value"in d?d.value:(l=d.get)===null||l===void 0?void 0:l.call(i.k):void 0}(e,o,t);var n=o[t];return e.I||!Pt(n)?n:n===Ci(e.t,t)?(Ei(e),e.o[t]=Ri(e.A.h,n,e)):n},has:function(e,t){return t in se(e)},ownKeys:function(e){return Reflect.ownKeys(se(e))},set:function(e,t,o){var n=Hs(se(e),t);if(n?.set)return n.set.call(e.k,o),!0;if(!e.P){var i=Ci(se(e),t),a=i?.[Y];if(a&&a.t===o)return e.o[t]=o,e.R[t]=!1,!0;if(Zs(o,i)&&(o!==void 0||je(e.t,t)))return!0;Ei(e),ce(e)}return e.o[t]===o&&(o!==void 0||t in e.o)||Number.isNaN(o)&&Number.isNaN(e.o[t])||(e.o[t]=o,e.R[t]=!0),!0},deleteProperty:function(e,t){return Ci(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,Ei(e),ce(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var o=se(e),n=Reflect.getOwnPropertyDescriptor(o,t);return n&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:n.enumerable,value:o[t]}},defineProperty:function(){Ct(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Ct(12)}},Wr={};Te(zr,function(e,t){Wr[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Wr.deleteProperty=function(e,t){return Wr.set.call(this,e,t,void 0)},Wr.set=function(e,t,o){return zr.set.call(this,e[0],t,o,e[0])};var Pp=function(){function e(o){var n=this;this.O=Vs,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(O){var N=this;O===void 0&&(O=l);for(var P=arguments.length,L=Array(P>1?P-1:0),C=1;C<P;C++)L[C-1]=arguments[C];return d.produce(O,function(S){var E;return(E=a).call.apply(E,[N,S].concat(L))})}}var p;if(typeof a!="function"&&Ct(6),s!==void 0&&typeof s!="function"&&Ct(7),Pt(i)){var h=Fs(n),u=Ri(n,i,void 0),m=!0;try{p=a(u),m=!1}finally{m?Ao(h):Ai(h)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(O){return Si(h,s),Oi(O,h)},function(O){throw Ao(h),O}):(Si(h,s),Oi(p,h))}if(!i||typeof i!="object"){if((p=a(i))===void 0&&(p=i),p===Ys&&(p=void 0),n.D&&Ti(p,!0),s){var b=[],x=[];Wt("Patches").M(i,p,b,x),s(b,x)}return p}Ct(21,i)},this.produceWithPatches=function(i,a){if(typeof i=="function")return function(p){for(var h=arguments.length,u=Array(h>1?h-1:0),m=1;m<h;m++)u[m-1]=arguments[m];return n.produceWithPatches(p,function(b){return i.apply(void 0,[b].concat(u))})};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 t=e.prototype;return t.createDraft=function(o){Pt(o)||Ct(8),Qt(o)&&(o=Ap(o));var n=Fs(this),i=Ri(this,o,void 0);return i[Y].C=!0,Ai(n),i},t.finishDraft=function(o,n){var i=o&&o[Y],a=i.A;return Si(a,n),Oi(void 0,a)},t.setAutoFreeze=function(o){this.D=o},t.setUseProxies=function(o){o&&!Vs&&Ct(20),this.O=o},t.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=Wt("Patches").$;return Qt(o)?s(o,n):this.produce(o,function(l){return s(l,n)})},e}(),vt=new Pp,Lp=vt.produce,Dg=vt.produceWithPatches.bind(vt),Bg=vt.setAutoFreeze.bind(vt),Ug=vt.setUseProxies.bind(vt),Mg=vt.applyPatches.bind(vt),Fg=vt.createDraft.bind(vt),Wg=vt.finishDraft.bind(vt),_o=Lp;function le(e){"@babel/helpers - typeof";return le=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},le(e)}function ki(e,t){if(le(e)!=="object"||e===null)return e;var o=e[Symbol.toPrimitive];if(o!==void 0){var n=o.call(e,t||"default");if(le(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Di(e){var t=ki(e,"string");return le(t)==="symbol"?t:String(t)}function Bi(e,t,o){return t=Di(t),t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function Js(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),o.push.apply(o,n)}return o}function Po(e){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?arguments[t]:{};t%2?Js(Object(o),!0).forEach(function(n){Bi(e,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Js(Object(o)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(o,n))})}return e}function pt(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Qs=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Ui=function(){return Math.random().toString(36).substring(7).split("").join(".")},Lo={INIT:"@@redux/INIT"+Ui(),REPLACE:"@@redux/REPLACE"+Ui(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Ui()}};function Tp(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Mi(e,t,o){var n;if(typeof t=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(pt(0));if(typeof t=="function"&&typeof o>"u"&&(o=t,t=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(pt(1));return o(Mi)(e,t)}if(typeof e!="function")throw new Error(pt(2));var i=e,a=t,s=[],l=s,d=!1;function p(){l===s&&(l=s.slice())}function h(){if(d)throw new Error(pt(3));return a}function u(O){if(typeof O!="function")throw new Error(pt(4));if(d)throw new Error(pt(5));var N=!0;return p(),l.push(O),function(){if(N){if(d)throw new Error(pt(6));N=!1,p();var L=l.indexOf(O);l.splice(L,1),s=null}}}function m(O){if(!Tp(O))throw new Error(pt(7));if(typeof O.type>"u")throw new Error(pt(8));if(d)throw new Error(pt(9));try{d=!0,a=i(a,O)}finally{d=!1}for(var N=s=l,P=0;P<N.length;P++){var L=N[P];L()}return O}function b(O){if(typeof O!="function")throw new Error(pt(10));i=O,m({type:Lo.REPLACE})}function x(){var O,N=u;return O={subscribe:function(L){if(typeof L!="object"||L===null)throw new Error(pt(11));function C(){L.next&&L.next(h())}C();var S=N(C);return{unsubscribe:S}}},O[Qs]=function(){return this},O}return m({type:Lo.INIT}),n={dispatch:m,subscribe:u,getState:h,replaceReducer:b},n[Qs]=x,n}function Ip(e){Object.keys(e).forEach(function(t){var o=e[t],n=o(void 0,{type:Lo.INIT});if(typeof n>"u")throw new Error(pt(12));if(typeof o(void 0,{type:Lo.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(pt(13))})}function tc(e){for(var t=Object.keys(e),o={},n=0;n<t.length;n++){var i=t[n];typeof e[i]=="function"&&(o[i]=e[i])}var a=Object.keys(o),s,l;try{Ip(o)}catch(d){l=d}return function(p,h){if(p===void 0&&(p={}),l)throw l;if(0)var u;for(var m=!1,b={},x=0;x<a.length;x++){var O=a[x],N=o[O],P=p[O],L=N(P,h);if(typeof L>"u"){var C=h&&h.type;throw new Error(pt(14))}b[O]=L,m=m||L!==P}return m=m||a.length!==Object.keys(p).length,m?b:p}}function qe(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return t.length===0?function(n){return n}:t.length===1?t[0]:t.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function ec(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return function(n){return function(){var i=n.apply(void 0,arguments),a=function(){throw new Error(pt(15))},s={getState:i.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=t.map(function(d){return d(s)});return a=qe.apply(void 0,l)(i.dispatch),Po(Po({},i),{},{dispatch:a})}}}function rc(e){var t=function(n){var i=n.dispatch,a=n.getState;return function(s){return function(l){return typeof l=="function"?l(i,a,e):s(l)}}};return t}var oc=rc();oc.withExtraArgument=rc;var Fi=oc;var cc=function(){var e=function(t,o){return e=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])},e(t,o)};return function(t,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");e(t,o);function n(){this.constructor=t}t.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),$p=function(e,t){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=t.call(e,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}}},Ye=function(e,t){for(var o=0,n=t.length,i=e.length;o<n;o++,i++)e[i]=t[o];return e},kp=Object.defineProperty,Dp=Object.defineProperties,Bp=Object.getOwnPropertyDescriptors,nc=Object.getOwnPropertySymbols,Up=Object.prototype.hasOwnProperty,Mp=Object.prototype.propertyIsEnumerable,ic=function(e,t,o){return t in e?kp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o},de=function(e,t){for(var o in t||(t={}))Up.call(t,o)&&ic(e,o,t[o]);if(nc)for(var n=0,i=nc(t);n<i.length;n++){var o=i[n];Mp.call(t,o)&&ic(e,o,t[o])}return e},Wi=function(e,t){return Dp(e,Bp(t))},Fp=function(e,t,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(e,t)).next())})};var Wp=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?qe:qe.apply(null,arguments)},ib=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function Hp(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var o=t;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return t===o}var zp=function(e){cc(t,e);function t(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var i=e.apply(this,o)||this;return Object.setPrototypeOf(i,t.prototype),i}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return e.prototype.concat.apply(this,o)},t.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(t.bind.apply(t,Ye([void 0],o[0].concat(this)))):new(t.bind.apply(t,Ye([void 0],o.concat(this))))},t}(Array),Gp=function(e){cc(t,e);function t(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var i=e.apply(this,o)||this;return Object.setPrototypeOf(i,t.prototype),i}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return e.prototype.concat.apply(this,o)},t.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(t.bind.apply(t,Ye([void 0],o[0].concat(this)))):new(t.bind.apply(t,Ye([void 0],o.concat(this))))},t}(Array);function Gi(e){return Pt(e)?_o(e,function(){}):e}function Vp(e){return typeof e=="boolean"}function jp(){return function(t){return Kp(t)}}function Kp(e){e===void 0&&(e={});var t=e.thunk,o=t===void 0?!0:t,n=e.immutableCheck,i=n===void 0?!0:n,a=e.serializableCheck,s=a===void 0?!0:a,l=new zp;if(o&&(Vp(o)?l.push(Fi):l.push(Fi.withExtraArgument(o.extraArgument))),0){if(i)var d;if(s)var p}return l}var Hi=!0;function lc(e){var t=jp(),o=e||{},n=o.reducer,i=n===void 0?void 0:n,a=o.middleware,s=a===void 0?t():a,l=o.devTools,d=l===void 0?!0:l,p=o.preloadedState,h=p===void 0?void 0:p,u=o.enhancers,m=u===void 0?void 0:u,b;if(typeof i=="function")b=i;else if(Hp(i))b=tc(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 x=s;if(typeof x=="function"&&(x=x(t),!Hi&&!Array.isArray(x)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Hi&&x.some(function(S){return typeof S!="function"}))throw new Error("each middleware provided to configureStore must be a function");var O=ec.apply(void 0,x),N=qe;d&&(N=Wp(de({trace:!Hi},typeof d=="object"&&d)));var P=new Gp(O),L=P;Array.isArray(m)?L=Ye([O],m):typeof m=="function"&&(L=m(P));var C=N.apply(void 0,L);return Mi(b,h,C)}function pe(e,t){function o(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(t){var a=t.apply(void 0,n);if(!a)throw new Error("prepareAction did not return an object");return de(de({type:e,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:e,payload:n[0]}}return o.toString=function(){return""+e},o.type=e,o.match=function(n){return n.type===e},o}function dc(e){var t={},o=[],n,i={addCase:function(a,s){var l=typeof a=="string"?a:a.type;if(l in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[l]=s,i},addMatcher:function(a,s){return o.push({matcher:a,reducer:s}),i},addDefaultCase:function(a){return n=a,i}};return e(i),[t,o,n]}function Zp(e){return typeof e=="function"}function qp(e,t,o,n){o===void 0&&(o=[]);var i=typeof t=="function"?dc(t):[t,o,n],a=i[0],s=i[1],l=i[2],d;if(Zp(e))d=function(){return Gi(e())};else{var p=Gi(e);d=function(){return p}}function h(u,m){u===void 0&&(u=d());var b=Ye([a[m.type]],s.filter(function(x){var O=x.matcher;return O(m)}).map(function(x){var O=x.reducer;return O}));return b.filter(function(x){return!!x}).length===0&&(b=[l]),b.reduce(function(x,O){if(O)if(Qt(x)){var N=x,P=O(N,m);return P===void 0?x:P}else{if(Pt(x))return _o(x,function(L){return O(L,m)});var P=O(x,m);if(P===void 0){if(x===null)return x;throw Error("A case reducer on a non-draftable value must not return undefined")}return P}return x},u)}return h.getInitialState=d,h}function Yp(e,t){return e+"/"+t}function pc(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof e.initialState=="function"?e.initialState:Gi(e.initialState),n=e.reducers||{},i=Object.keys(n),a={},s={},l={};i.forEach(function(h){var u=n[h],m=Yp(t,h),b,x;"reducer"in u?(b=u.reducer,x=u.prepare):b=u,a[h]=b,s[m]=b,l[h]=x?pe(m,x):pe(m)});function d(){var h=typeof e.extraReducers=="function"?dc(e.extraReducers):[e.extraReducers],u=h[0],m=u===void 0?{}:u,b=h[1],x=b===void 0?[]:b,O=h[2],N=O===void 0?void 0:O,P=de(de({},m),s);return qp(o,function(L){for(var C in P)L.addCase(C,P[C]);for(var S=0,E=x;S<E.length;S++){var T=E[S];L.addMatcher(T.matcher,T.reducer)}N&&L.addDefaultCase(N)})}var p;return{name:t,reducer:function(h,u){return p||(p=d()),p(h,u)},actions:l,caseReducers:a,getInitialState:function(){return p||(p=d()),p.getInitialState()}}}var Xp="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Jp=function(e){e===void 0&&(e=21);for(var t="",o=e;o--;)t+=Xp[Math.random()*64|0];return t},Qp=["name","message","stack","code"],zi=function(){function e(t,o){this.payload=t,this.meta=o}return e}(),ac=function(){function e(t,o){this.payload=t,this.meta=o}return e}(),tf=function(e){if(typeof e=="object"&&e!==null){for(var t={},o=0,n=Qp;o<n.length;o++){var i=n[o];typeof e[i]=="string"&&(t[i]=e[i])}return t}return{message:String(e)}},lb=function(){function e(t,o,n){var i=pe(t+"/fulfilled",function(h,u,m,b){return{payload:h,meta:Wi(de({},b||{}),{arg:m,requestId:u,requestStatus:"fulfilled"})}}),a=pe(t+"/pending",function(h,u,m){return{payload:void 0,meta:Wi(de({},m||{}),{arg:u,requestId:h,requestStatus:"pending"})}}),s=pe(t+"/rejected",function(h,u,m,b,x){return{payload:b,error:(n&&n.serializeError||tf)(h||"Rejected"),meta:Wi(de({},x||{}),{arg:m,requestId:u,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(u,m,b){var x=n?.idGenerator?n.idGenerator(h):Jp(),O=new d,N,P=!1;function L(S){N=S,O.abort()}var C=function(){return Fp(this,null,function(){var S,E,T,B,H,W,$;return $p(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),B=(S=n?.condition)==null?void 0:S.call(n,h,{getState:m,extra:b}),rf(B)?[4,B]:[3,2];case 1:B=y.sent(),y.label=2;case 2:if(B===!1||O.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return P=!0,H=new Promise(function(v,I){return O.signal.addEventListener("abort",function(){return I({name:"AbortError",message:N||"Aborted"})})}),u(a(x,h,(E=n?.getPendingMeta)==null?void 0:E.call(n,{requestId:x,arg:h},{getState:m,extra:b}))),[4,Promise.race([H,Promise.resolve(o(h,{dispatch:u,getState:m,extra:b,requestId:x,signal:O.signal,abort:L,rejectWithValue:function(v,I){return new zi(v,I)},fulfillWithValue:function(v,I){return new ac(v,I)}})).then(function(v){if(v instanceof zi)throw v;return v instanceof ac?i(v.payload,x,h,v.meta):i(v,x,h)})])];case 3:return T=y.sent(),[3,5];case 4:return W=y.sent(),T=W instanceof zi?s(null,x,h,W.payload,W.meta):s(W,x,h),[3,5];case 5:return $=n&&!n.dispatchConditionRejection&&s.match(T)&&T.meta.condition,$||u(T),[2,T]}})})}();return Object.assign(C,{abort:L,requestId:x,arg:h,unwrap:function(){return C.then(ef)}})}}return Object.assign(p,{pending:a,rejected:s,fulfilled:i,typePrefix:t})}return e.withTypes=function(){return e},e}();function ef(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function rf(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var fc="listener",uc="completed",hc="cancelled",db="task-"+hc,pb="task-"+uc,fb=fc+"-"+hc,ub=fc+"-"+uc;var Vi="listenerMiddleware";var hb=pe(Vi+"/add"),yb=pe(Vi+"/removeAll"),mb=pe(Vi+"/remove");var sc,gb=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(sc||(sc=Promise.resolve())).then(e).catch(function(t){return setTimeout(function(){throw t},0)})},of=function(e){return function(t){setTimeout(t,e)}},bb=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:of(10);qs();window.ftReduxStores||(window.ftReduxStores={});var ji=class e extends we{static get(t){var o;let n=typeof t=="string"?t:t.name,i=typeof t=="string"?void 0:t,a=window.ftReduxStores[n];if(Pe(a))return a;if(i==null)return;let s=pc({...i,reducers:(o=i.reducers)!==null&&o!==void 0?o:{}}),l=lc({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 e(s,l)}constructor(t,o){super(),this.reduxSlice=t,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new Fr,this.actions=new Proxy(this.reduxSlice.actions,{get:(n,i,a)=>{let s=i,l=n[s];return l?(...d)=>{let p=l(...d);return this.reduxStore.dispatch(p),p}:d=>{this.setState({[s]:d})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}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(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};function nf(){var e;for(let t of Object.values((e=window.ftReduxStores)!==null&&e!==void 0?e:{}))Pe(t)&&t.clear()}var Yi={};V(Yi,{scrollHelper:()=>af});var Zi,To=new Map,qi=class{lock(t,o){if(o){let n=To.get(o);if(n==null||n===t)return To.set(o,t),o}}release(t,o){o&&To.get(o)===t&&To.delete(o)}findFirstScrollableParent(t){let o,n=i=>{var a;i.stopPropagation();let s,l;for(let d of i.composedPath()){let p=d,h=this.elementCanScroll(p);if(h&&p.clientHeight&&p.clientHeight<p.scrollHeight){s=p;break}else h&&l==null&&(l=p)}o=(a=s??l)!==null&&a!==void 0?a:document.body};return t.addEventListener("find-scrollable-parent",n),t.dispatchEvent(new Event("find-scrollable-parent",{composed:!0})),t.removeEventListener("find-scrollable-parent",n),o}elementCanScroll(t){try{return["auto","scroll"].includes(getComputedStyle(t).overflowY)}catch{return!1}}getAbsoluteScrollOffset(t,o){var n,i;let a=0;for(;o&&o.offsetParent!==t.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)-t.offsetTop}computeTopOffsetRatio(t,o){if(typeof t=="number")return t;switch(t){case"end":return 1;case"center":return .5;case"nearest":return o;default:return 0}}scrollIntoViewIfPossible(t,o){let n=this.findFirstScrollableParent(t);if(t&&this.lock(this,n)){let i=this.getAbsoluteScrollOffset(n,t),a=i-n.clientHeight+t.clientHeight,s=i,l=Ar(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",t,n);this.release(this,n)}};window.FluidTopicsScrollHelper=(Zi=window.FluidTopicsScrollHelper)!==null&&Zi!==void 0?Zi:new qi;var af=window.FluidTopicsScrollHelper;var Xi={};V(Xi,{shadowQuerySelector:()=>sf,shadowQuerySelectorAll:()=>cf});function sf(e,t,...o){var n;let i=e.querySelector(t);for(let a of o)i=(n=i?.shadowRoot)===null||n===void 0?void 0:n.querySelector(a);return i}function cf(e,t,...o){let n=[...e.querySelectorAll(t)];for(let i of o)n=n.flatMap(a=>{var s,l;return[...(l=(s=a.shadowRoot)===null||s===void 0?void 0:s.querySelectorAll(i))!==null&&l!==void 0?l:[]]});return n}var Ji={};V(Ji,{SearchPlaceConverter:()=>ko,SearchPlaceQueryParams:()=>j,isSearchPlaceQueryParams:()=>Mc,serializeRequest:()=>pf});var lf=_l(mc(),1);var gc;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(gc||(gc={}));var bc;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(bc||(bc={}));var xc;(function(e){e.THIRD_PARTY="THIRD_PARTY",e.OFF_THE_GRID="OFF_THE_GRID",e.CONTENT_PACKAGER="CONTENT_PACKAGER",e.PAGES="PAGES",e.DESIGNED_READER="DESIGNED_READER"})(xc||(xc={}));var vc;(function(e){e.HOMEPAGE="HOMEPAGE",e.CUSTOM="CUSTOM",e.HEADER="HEADER",e.READER="READER",e.TOPIC_TEMPLATE="TOPIC_TEMPLATE",e.SEARCH="SEARCH",e.SEARCH_RESULT="SEARCH_RESULT"})(vc||(vc={}));var Sc;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(Sc||(Sc={}));var Oc;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(Oc||(Oc={}));var Cc;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(Cc||(Cc={}));var Ec;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(Ec||(Ec={}));var wc;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR",e.CUSTOM="CUSTOM"})(wc||(wc={}));var Ac;(function(e){e.ASC="ASC",e.DESC="DESC"})(Ac||(Ac={}));var Rc;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(Rc||(Rc={}));var Nc;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(Nc||(Nc={}));var $c=e=>["EVERYWHERE","TITLE_ONLY","NONE"].includes(e);var _c;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK"})(_c||(_c={}));var Pc;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(Pc||(Pc={}));var Lc;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.PERSONAL_BOOK="PERSONAL_BOOK",e.SHARED_BOOK="SHARED_BOOK"})(Lc||(Lc={}));var Gr;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(Gr||(Gr={}));var kc=e=>["LAST_WEEK","LAST_MONTH","LAST_QUARTER","LAST_YEAR"].includes(e);var Tc;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC"})(Tc||(Tc={}));var Ic;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Ic||(Ic={}));var st;(function(e){e.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",e.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",e.HTML_EXPORT_USER="HTML_EXPORT_USER",e.PDF_EXPORT_USER="PDF_EXPORT_USER",e.SAVED_SEARCH_USER="SAVED_SEARCH_USER",e.COLLECTION_USER="COLLECTION_USER",e.OFFLINE_USER="OFFLINE_USER",e.ANALYTICS_USER="ANALYTICS_USER",e.BETA_USER="BETA_USER",e.DEBUG_USER="DEBUG_USER",e.PRINT_USER="PRINT_USER",e.RATING_USER="RATING_USER",e.FEEDBACK_USER="FEEDBACK_USER",e.GENERATIVE_AI_USER="GENERATIVE_AI_USER",e.CONTENT_PUBLISHER="CONTENT_PUBLISHER",e.KHUB_ADMIN="KHUB_ADMIN",e.USERS_ADMIN="USERS_ADMIN",e.PORTAL_ADMIN="PORTAL_ADMIN",e.ADMIN="ADMIN",e.DEVELOPER="DEVELOPER"})(st||(st={}));var Dc;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(Dc||(Dc={}));var Bc;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(Bc||(Bc={}));var Db={[st.PERSONAL_BOOK_SHARE_USER]:[st.PERSONAL_BOOK_USER],[st.HTML_EXPORT_USER]:[st.PERSONAL_BOOK_USER],[st.PDF_EXPORT_USER]:[st.PERSONAL_BOOK_USER],[st.KHUB_ADMIN]:[st.CONTENT_PUBLISHER],[st.ADMIN]:[st.KHUB_ADMIN,st.USERS_ADMIN,st.PORTAL_ADMIN],[st.DEVELOPER]:[st.BETA_USER,st.DEBUG_USER]};function df(e){return`"${e}"`}function Uc(e){return e.startsWith('"')&&e.endsWith('"')?e.replace(/(^"+)|("+$)/g,""):e}function pf(e,t){return new ko(e).serialize(t)}var j;(function(e){e.LOCALE="content-lang",e.QUERY="query",e.SCOPE="scope",e.FILTERS="filters",e.VIRTUAL_FIELD="virtual-field",e.PERIOD="period",e.VALUE_FILTERS="value-filters",e.DATE_FILTERS="date-filters",e.RANGE_FILTERS="range-filters",e.SORT="sort",e.PER_PAGE="per-page"})(j||(j={}));var ff=new Set(Object.values(j));function Mc(e){return ff.has(e)}var ko=class{constructor(t,o={},n=20,i=!1,a="en-US"){this.baseUrl=t,this.predefinedSorts=o,this.defaultPerPage=n,this.allLanguagesAllowed=i,this.defaultContentLocale=a,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"},this.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]]}serialize(t,o){return this.serializeToCurrentPageIfPossible(t,o??"/search")}serializeToCurrentPageIfPossible(t,o){let n=this.toURLSearchParams(t).toString(),i=o==null||o.trim().length===0,a=new URL(i?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${o}`);return a.search=n,a.toString()}toURLSearchParams(t,o=!1){var n,i,a,s,l,d,p,h,u,m,b,x;let O=new URLSearchParams;t.contentLocale?(!o||t.contentLocale!==this.defaultContentLocale)&&O.append(j.LOCALE,t.contentLocale):O.append(j.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((n=t.query)===null||n===void 0?void 0:n.length)>0&&O.append(j.QUERY,t.query),t.scope&&t.scope!=="DEFAULT"&&O.append(j.SCOPE,t.scope.toLowerCase()),t.virtualField&&t.virtualField!=="EVERYWHERE"&&O.append(j.VIRTUAL_FIELD,t.virtualField.toLowerCase()),((i=t.sort)===null||i===void 0?void 0:i.length)>0&&t.sort[0].key==="ft:lastEdition"&&O.append(j.SORT,"last_update");let N=(s=(a=t.metadataFilters)===null||a===void 0?void 0:a.filter(S=>S.valueFilter))!==null&&s!==void 0?s:[];if(N.length>0){let S=N.map(E=>{var T,B;let H=((B=(T=E.valueFilter)===null||T===void 0?void 0:T.values)!==null&&B!==void 0?B:[]).map(W=>this.escapeFilters(W)).map(W=>encodeURIComponent(df(Uc(W)))).join("_");return`${E.key}~${H}`}).join("*");O.append(j.VALUE_FILTERS,S)}let P=(d=(l=t.metadataFilters)===null||l===void 0?void 0:l.filter(S=>S.dateFilter))!==null&&d!==void 0?d:[];if(P.length>0){let S=P.map(E=>{var T;return`${E.key}~${(T=E.dateFilter)===null||T===void 0?void 0:T.type.toLowerCase()}`}).join("*");O.append(j.DATE_FILTERS,S)}let L=(h=(p=t.metadataFilters)===null||p===void 0?void 0:p.filter(S=>S.rangeFilter))!==null&&h!==void 0?h:[];if(L.length>0){let S=L.map(E=>{var T,B;return`${E.key}~${(T=E.rangeFilter)===null||T===void 0?void 0:T.from}_${(B=E.rangeFilter)===null||B===void 0?void 0:B.to}`}).join("*");O.append(j.RANGE_FILTERS,S)}let C=(u=t.otherQueryParams)!==null&&u!==void 0?u:{};for(let S in C)O.append(S,C[S]);return!((m=t.paging)===null||m===void 0)&&m.perPage&&((x=(b=t.paging)===null||b===void 0?void 0:b.perPage)!==null&&x!==void 0?x:this.defaultPerPage)!=this.defaultPerPage&&O.append(j.PER_PAGE,String(t.paging.perPage)),O}parse(t){var o;let n=t.split("?"),i=this.fromURLSearchParams(new URLSearchParams(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(t){var o,n,i,a,s,l,d,p;let h=t.get(j.LOCALE)==="all"?void 0:t.get(j.LOCALE),u=((o=t.get(j.VIRTUAL_FIELD))!==null&&o!==void 0?o:"EVERYWHERE").toUpperCase(),m=((n=t.get(j.SORT))!==null&&n!==void 0?n:"DEFAULT").toUpperCase(),b=(i=t.get(j.SCOPE))!==null&&i!==void 0?i:"default",x=+((a=t.get(j.PER_PAGE))!==null&&a!==void 0?a:this.defaultPerPage),O={};for(let N of t.keys())Mc(N)||(O[N]=t.get(N));return{contentLocale:h??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:decodeURIComponent((s=t.get(j.QUERY))!==null&&s!==void 0?s:""),scope:(l=this.scopeMapping[b])!==null&&l!==void 0?l:"DEFAULT",virtualField:$c(u)?u:"EVERYWHERE",sort:(p=(d=this.predefinedSorts[m])!==null&&d!==void 0?d:this.predefinedSorts.DEFAULT)!==null&&p!==void 0?p:[],metadataFilters:this.parseCompatFilters(t),facets:[],paging:{page:1,perPage:Ar(1,isNaN(x)?this.defaultPerPage:x,1e3)},otherQueryParams:O}}parseCompatFilters(t){var o,n,i,a,s,l;let d=[];return t.has(j.FILTERS)&&(d=this.parseValueFilters((o=t.get(j.FILTERS))!==null&&o!==void 0?o:"")),(n=t.has(j.PERIOD))!==null&&n!==void 0&&n&&(d=[...d,...this.parseLegacyPeriodFilter(((i=t.get(j.PERIOD))!==null&&i!==void 0?i:"").toUpperCase())]),[...d,...this.parseValueFilters((a=t.get(j.VALUE_FILTERS))!==null&&a!==void 0?a:""),...this.parseDateFilters((s=t.get(j.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=t.get(j.RANGE_FILTERS))!==null&&l!==void 0?l:"")]}splitUnknownFilter(t){return this.superEscapeFilters(decodeURIComponent(t)).split("*").map(o=>o.split("~"))}parseValueFilters(t){return t.length===0?[]:this.splitUnknownFilter(t).map(o=>({key:o[0],valueFilter:{values:o[1].split("_").map(Uc).map(n=>this.unescapeFilterValue(n)),negative:!1}}))}parseDateFilters(t){return t.length===0?[]:this.splitUnknownFilter(t).map(o=>({key:o[0],dateFilter:{type:Gr[o[1].toUpperCase()]}}))}parseRangeFilters(t){return t.length===0?[]:this.splitUnknownFilter(t).map(o=>({key:o[0],rangeFilter:{from:o[1].split("_")[0],to:o[1].split("_")[1]}}))}escapeFilters(t){for(let[o,n,i]of this.filtersEscapeMapping)t=t.replaceAll(o,n);return t}superEscapeFilters(t){for(let[o,n,i]of this.filtersEscapeMapping)t=t.replaceAll(n,i);return t}unescapeFilterValue(t){for(let[o,n,i]of this.filtersEscapeMapping)t=t.replace(i,o);return t}parseLegacyPeriodFilter(t){if(kc(t))return[{key:"ft:lastEdition",dateFilter:{type:Gr[t]}}];if(t.startsWith("CUSTOM_")){let[o,n,i]=t.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:n,to:i}}]}return[]}};var ta={};V(ta,{toFtFormComponent:()=>Qi});var Do=Symbol("elementInternals");function Qi(e,t){class o extends e{static get formAssociated(){return!0}get form(){return this[Do].form}constructor(...i){super(i),this[Do]=this.attachInternals(),this[Do].role=t}setFormValue(i){this[Do].setFormValue(i)}}return o}var ra={};V(ra,{DateFormatter:()=>ea});var ea=class{static format(t,o,n,i){return window.moment?window.moment(t).locale(o).format(this.getDateFormat(n,i)):t}static getDateFormat(t,o){return t?o?"lll":"ll":o?"L LT":"L"}};var oa,na,ia,aa,Vr=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((ia=(na=(oa=window.safari)===null||oa===void 0?void 0:oa.pushNotification)===null||na===void 0?void 0:na.toString())!==null&&ia!==void 0?ia:"")==="[object SafariRemoteNotification]",uf="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(aa=window.ftGlobals)!==null&&aa!==void 0?aa:{lit:tn,litDecorators:rn,litRepeat:on,litClassMap:nn,litStyleMap:an,litUnsafeHTML:cn,wcUtils:{...mn,...dn,...bn,...ra,...xn,...On,...Xn,...hn,...fi,...Yn,...yi,...hi,...$s,...vn,...gi,...bi,...Ds,...vi,...Ki,...ui,...Yi,...Xi,...Ji,...ta,isSafari:Vr,isTouchScreen:uf,setVariable:w}};var Fc=r.extend("--ft-ripple-color","",G.colorContent),A={color:Fc,backgroundColor:r.extend("--ft-ripple-background-color","",Fc),opacityContentOnSurfacePressed:r.external(G.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:r.external(G.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:r.external(G.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:r.external(G.opacityContentOnSurfaceSelected,"Design system"),borderRadius:r.create("--ft-ripple-border-radius","","SIZE","0px")},Wc=r.extend("--ft-ripple-color","",G.colorPrimary),Hc={color:Wc,backgroundColor:r.extend("--ft-ripple-background-color","",Wc)},zc=r.extend("--ft-ripple-color","",G.colorSecondary),Gc={color:zc,backgroundColor:r.extend("--ft-ripple-background-color","",zc)},Vc=D`
51
51
  :host {
52
52
  display: contents;
53
53
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-chip",
3
- "version": "1.2.14",
3
+ "version": "1.2.16",
4
4
  "description": "A generic Fluid Topics chip",
5
5
  "keywords": [
6
6
  "Lit"
@@ -20,11 +20,11 @@
20
20
  },
21
21
  "dependencies": {
22
22
  "@fluid-topics/design-system-variables": "0.1.8",
23
- "@fluid-topics/ft-icon": "1.2.14",
24
- "@fluid-topics/ft-ripple": "1.2.14",
25
- "@fluid-topics/ft-typography": "1.2.14",
26
- "@fluid-topics/ft-wc-utils": "1.2.14",
23
+ "@fluid-topics/ft-icon": "1.2.16",
24
+ "@fluid-topics/ft-ripple": "1.2.16",
25
+ "@fluid-topics/ft-typography": "1.2.16",
26
+ "@fluid-topics/ft-wc-utils": "1.2.16",
27
27
  "lit": "3.1.0"
28
28
  },
29
- "gitHead": "65d295da2a5a17f24ca4957f74595755a2550c3d"
29
+ "gitHead": "ede6b43f06ac3cf4720eace3f556b8917e364248"
30
30
  }