@fluid-topics/ft-tabs 1.2.44 → 1.2.46

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.
@@ -45,7 +45,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
45
45
  input::-webkit-search-results-decoration {
46
46
  display: none;
47
47
  }
48
- `;var ki={};var Bn={};W(Bn,{ParametrizedLabelResolver:()=>Mn});var Mn=class t{constructor(e,o){this.defaultLabels=e,this.labels=o}resolve(e,...o){var n,a;e=this.resolvePluralKey(e,o);let i=(a=(n=this.labels[e])!==null&&n!==void 0?n:this.defaultLabels[e])!==null&&a!==void 0?a:"";return t.replaceParameters(i,...o)}static replaceParameters(e,...o){return o.forEach((n,a)=>e=e.replace(new RegExp(`\\{${a}([^}]*)\\}`,"g"),(i,s)=>t.formatValue(n,s))),e}resolvePluralKey(e,o){for(let n of o)if(typeof n=="number"){let a=`${String(e)}[\\=${n}]`;if(a in this.labels||a in this.defaultLabels)return a}return e}static formatValue(e,o){return e instanceof Date?t.formatDate(e,o):e??""}static formatDate(e,o){let n=a=>o?.includes("date")?e.toLocaleDateString(a):o?.includes("time")?e.toLocaleTimeString(a):e.toLocaleString(a);try{return n(document.documentElement.lang)}catch{return n()}}};var ca={};W(ca,{FtCommandQueue:()=>br,FtLitElementRedux:()=>wt,FtReduxStore:()=>la,ReduxWatcher:()=>Kr,clearAllStores:()=>Wd,isFtReduxStore:()=>at,redux:()=>rd,reduxEventListener:()=>od,reduxReactive:()=>td,watch:()=>Fd});var td=()=>(t,e)=>{var o;let n=t.constructor;n.reduxReactiveProperties=new Set(n.reduxReactiveProperties),(o=n.reduxReactiveProperties)===null||o===void 0||o.add(e)},rd=t=>{let e=t??{};return(o,n)=>{var a;let i={hasChanged:tt,attribute:!1,...e};P(i)(o,n);let s=o.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(n,{selector:(a=e.selector)!==null&&a!==void 0?a:c=>c[n],store:e.store})}},od=t=>(e,o)=>{let n=e.constructor;n.reduxEventListeners=new Map(n.reduxEventListeners),n.reduxEventListeners.set(o,t)};var br=class{constructor(){this.queue=[]}add(e,o=!1){o&&(this.queue=this.queue.filter(n=>n.type!==e.type)),this.queue.push(e)}consume(e){let o=this.queue.find(n=>n.type===e);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}};function at(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Di,Ui,Mi,xr=Symbol("internalReduxEventsUnsubscribers"),We=Symbol("internalStoresUnsubscribers"),it=Symbol("internalStores"),wt=class extends G{constructor(){super(...arguments),this[Di]=new Map,this[Ui]=new Map,this[Mi]=new Map}get reduxConstructor(){return this.constructor}update(e){super.update(e),[...this.reduxConstructor.reduxReactiveProperties].some(o=>e.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[it].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[it].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[it].get(e)}addStore(e,o){var n;o=(n=o??(at(e)?e.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(o),this[it].set(o,e),this.subscribeToStore(o,e),this.updateFromStores()}removeStore(e){let o=typeof e=="string"?e:e.name;this.unsubscribeFromStore(o),this[it].delete(o)}setupStores(){this.unsubscribeFromStores(),this[it].forEach((e,o)=>this.subscribeToStore(o,e)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((e,o)=>{let n=this.constructor.getPropertyOptions(o);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:o)){let a=this.getStore(e.store);a&&(e.store?this[We].has(e.store):this[We].size>0)&&(this[o]=e.selector(a.getState(),this))}})}subscribeToStore(e,o){var n;this[We].set(e,o.subscribe(()=>this.updateFromStores())),this[xr].set(e,[]),at(o)&&o.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((a,i)=>{if(typeof this[i]=="function"&&(!a.store||o.name===a.store)){let s=c=>this[i](c);o.addEventListener(a.eventName,s),this[xr].get(e).push(()=>o.removeEventListener(a.eventName,s))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[We].forEach((e,o)=>this.unsubscribeFromStore(o))}unsubscribeFromStore(e){var o;this[We].has(e)&&this[We].get(e)(),this[We].delete(e),(o=this[xr].get(e))===null||o===void 0||o.forEach(n=>n()),this[xr].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Di=We,Ui=it,Mi=xr;wt.reduxProperties=new Map;wt.reduxReactiveProperties=new Set;wt.reduxEventListeners=new Map;function ue(t){for(var e=arguments.length,o=Array(e>1?e-1:0),n=1;n<e;n++)o[n-1]=arguments[n];if(0)var a,i;throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Te(t){return!!t&&!!t[j]}function ye(t){var e;return!!t&&(function(o){if(!o||typeof o!="object")return!1;var n=Object.getPrototypeOf(o);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===pd}(t)||Array.isArray(t)||!!t[ji]||!!(!((e=t.constructor)===null||e===void 0)&&e[ji])||Kn(t)||Zn(t))}function st(t,e,o){o===void 0&&(o=!1),Nt(t)===0?(o?Object.keys:Rt)(t).forEach(function(n){o&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,a){return e(a,n,t)})}function Nt(t){var e=t[j];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Kn(t)?2:Zn(t)?3:0}function At(t,e){return Nt(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function nd(t,e){return Nt(t)===2?t.get(e):t[e]}function Gi(t,e,o){var n=Nt(t);n===2?t.set(e,o):n===3?t.add(o):t[e]=o}function Vi(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function Kn(t){return cd&&t instanceof Map}function Zn(t){return dd&&t instanceof Set}function Fe(t){return t.o||t.t}function qn(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=qi(t);delete e[j];for(var o=Rt(e),n=0;n<o.length;n++){var a=o[n],i=e[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(e[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:t[a]})}return Object.create(Object.getPrototypeOf(t),e)}function Yn(t,e){return e===void 0&&(e=!1),Xn(t)||Te(t)||!ye(t)||(Nt(t)>1&&(t.set=t.add=t.clear=t.delete=ad),Object.freeze(t),e&&st(t,function(o,n){return Yn(n,!0)},!0)),t}function ad(){ue(2)}function Xn(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function Se(t){var e=Vn[t];return e||ue(18,t),e}function id(t,e){Vn[t]||(Vn[t]=e)}function zn(){return Sr}function $n(t,e){e&&(Se("Patches"),t.u=[],t.s=[],t.v=e)}function Hr(t){jn(t),t.p.forEach(sd),t.p=null}function jn(t){t===Sr&&(Sr=t.l)}function Bi(t){return Sr={p:[],l:Sr,h:t,m:!0,_:0}}function sd(t){var e=t[j];e.i===0||e.i===1?e.j():e.g=!0}function Wn(t,e){e._=e.p.length;var o=e.p[0],n=t!==void 0&&t!==o;return e.h.O||Se("ES5").S(e,t,n),n?(o[j].P&&(Hr(e),ue(4)),ye(t)&&(t=zr(e,t),e.l||jr(e,t)),e.u&&Se("Patches").M(o[j].t,t,e.u,e.s)):t=zr(e,o,[]),Hr(e),e.u&&e.v(e.u,e.s),t!==Zi?t:void 0}function zr(t,e,o){if(Xn(e))return e;var n=e[j];if(!n)return st(e,function(c,d){return $i(t,n,e,c,d,o)},!0),e;if(n.A!==t)return e;if(!n.P)return jr(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=qn(n.k):n.o,i=a,s=!1;n.i===3&&(i=new Set(a),a.clear(),s=!0),st(i,function(c,d){return $i(t,n,a,c,d,o,s)}),jr(t,a,!1),o&&t.u&&Se("Patches").N(n,o,t.u,t.s)}return n.o}function $i(t,e,o,n,a,i,s){if(Te(a)){var c=zr(t,a,i&&e&&e.i!==3&&!At(e.R,n)?i.concat(n):void 0);if(Gi(o,n,c),!Te(c))return;t.m=!1}else s&&o.add(a);if(ye(a)&&!Xn(a)){if(!t.h.D&&t._<1)return;zr(t,a),e&&e.A.l||jr(t,a)}}function jr(t,e,o){o===void 0&&(o=!1),!t.l&&t.h.D&&t.m&&Yn(e,o)}function Fn(t,e){var o=t[j];return(o?Fe(o):t)[e]}function Wi(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var n=Object.getOwnPropertyDescriptor(o,e);if(n)return n;o=Object.getPrototypeOf(o)}}function He(t){t.P||(t.P=!0,t.l&&He(t.l))}function Hn(t){t.o||(t.o=qn(t.t))}function Gn(t,e,o){var n=Kn(e)?Se("MapSet").F(e,o):Zn(e)?Se("MapSet").T(e,o):t.O?function(a,i){var s=Array.isArray(a),c={i:s?1:0,A:i?i.A:zn(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},d=c,u=Or;s&&(d=[c],u=vr);var h=Proxy.revocable(d,u),f=h.revoke,y=h.proxy;return c.k=y,c.j=f,y}(e,o):Se("ES5").J(e,o);return(o?o.A:zn()).p.push(n),n}function ld(t){return Te(t)||ue(22,t),function e(o){if(!ye(o))return o;var n,a=o[j],i=Nt(o);if(a){if(!a.P&&(a.i<4||!Se("ES5").K(a)))return a.t;a.I=!0,n=Fi(o,i),a.I=!1}else n=Fi(o,i);return st(n,function(s,c){a&&nd(a.t,s)===c||Gi(n,s,e(c))}),i===3?new Set(n):n}(t)}function Fi(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return qn(t)}function Ki(){function t(s,c){var d=i[s];return d?d.enumerable=c:i[s]=d={configurable:!0,enumerable:c,get:function(){var u=this[j];return Or.get(u,s)},set:function(u){var h=this[j];Or.set(h,s,u)}},d}function e(s){for(var c=s.length-1;c>=0;c--){var d=s[c][j];if(!d.P)switch(d.i){case 5:n(d)&&He(d);break;case 4:o(d)&&He(d)}}}function o(s){for(var c=s.t,d=s.k,u=Rt(d),h=u.length-1;h>=0;h--){var f=u[h];if(f!==j){var y=c[f];if(y===void 0&&!At(c,f))return!0;var b=d[f],g=b&&b[j];if(g?g.t!==y:!Vi(b,y))return!0}}var v=!!c[j];return u.length!==Rt(c).length+(v?0:1)}function n(s){var c=s.k;if(c.length!==s.t.length)return!0;var d=Object.getOwnPropertyDescriptor(c,c.length-1);if(d&&!d.get)return!0;for(var u=0;u<c.length;u++)if(!c.hasOwnProperty(u))return!0;return!1}function a(s){s.g&&ue(3,JSON.stringify(Fe(s)))}var i={};id("ES5",{J:function(s,c){var d=Array.isArray(s),u=function(f,y){if(f){for(var b=Array(y.length),g=0;g<y.length;g++)Object.defineProperty(b,""+g,t(g,!0));return b}var v=qi(y);delete v[j];for(var C=Rt(v),A=0;A<C.length;A++){var R=C[A];v[R]=t(R,f||!!v[R].enumerable)}return Object.create(Object.getPrototypeOf(y),v)}(d,s),h={i:d?5:4,A:c?c.A:zn(),P:!1,I:!1,R:{},l:c,t:s,k:u,o:null,g:!1,C:!1};return Object.defineProperty(u,j,{value:h,writable:!0}),u},S:function(s,c,d){d?Te(c)&&c[j].A===s&&e(s.p):(s.u&&function u(h){if(h&&typeof h=="object"){var f=h[j];if(f){var y=f.t,b=f.k,g=f.R,v=f.i;if(v===4)st(b,function(x){x!==j&&(y[x]!==void 0||At(y,x)?g[x]||u(b[x]):(g[x]=!0,He(f)))}),st(y,function(x){b[x]!==void 0||At(b,x)||(g[x]=!1,He(f))});else if(v===5){if(n(f)&&(He(f),g.length=!0),b.length<y.length)for(var C=b.length;C<y.length;C++)g[C]=!1;else for(var A=y.length;A<b.length;A++)g[A]=!0;for(var R=Math.min(b.length,y.length),O=0;O<R;O++)b.hasOwnProperty(O)||(g[O]=!0),g[O]===void 0&&u(b[O])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?o(s):n(s)}})}var Hi,Sr,Jn=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",cd=typeof Map<"u",dd=typeof Set<"u",zi=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Zi=Jn?Symbol.for("immer-nothing"):((Hi={})["immer-nothing"]=!0,Hi),ji=Jn?Symbol.for("immer-draftable"):"__$immer_draftable",j=Jn?Symbol.for("immer-state"):"__$immer_state";var pd=""+Object.prototype.constructor,Rt=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,qi=Object.getOwnPropertyDescriptors||function(t){var e={};return Rt(t).forEach(function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)}),e},Vn={},Or={get:function(t,e){if(e===j)return t;var o=Fe(t);if(!At(o,e))return function(a,i,s){var c,d=Wi(i,s);return d?"value"in d?d.value:(c=d.get)===null||c===void 0?void 0:c.call(a.k):void 0}(t,o,e);var n=o[e];return t.I||!ye(n)?n:n===Fn(t.t,e)?(Hn(t),t.o[e]=Gn(t.A.h,n,t)):n},has:function(t,e){return e in Fe(t)},ownKeys:function(t){return Reflect.ownKeys(Fe(t))},set:function(t,e,o){var n=Wi(Fe(t),e);if(n?.set)return n.set.call(t.k,o),!0;if(!t.P){var a=Fn(Fe(t),e),i=a?.[j];if(i&&i.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(Vi(o,a)&&(o!==void 0||At(t.t,e)))return!0;Hn(t),He(t)}return t.o[e]===o&&(o!==void 0||e in t.o)||Number.isNaN(o)&&Number.isNaN(t.o[e])||(t.o[e]=o,t.R[e]=!0),!0},deleteProperty:function(t,e){return Fn(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,Hn(t),He(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=Fe(t),n=Reflect.getOwnPropertyDescriptor(o,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:o[e]}},defineProperty:function(){ue(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){ue(12)}},vr={};st(Or,function(t,e){vr[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),vr.deleteProperty=function(t,e){return vr.set.call(this,t,e,void 0)},vr.set=function(t,e,o){return Or.set.call(this,t[0],e,o,t[0])};var ud=function(){function t(o){var n=this;this.O=zi,this.D=!0,this.produce=function(a,i,s){if(typeof a=="function"&&typeof i!="function"){var c=i;i=a;var d=n;return function(v){var C=this;v===void 0&&(v=c);for(var A=arguments.length,R=Array(A>1?A-1:0),O=1;O<A;O++)R[O-1]=arguments[O];return d.produce(v,function(x){var E;return(E=i).call.apply(E,[C,x].concat(R))})}}var u;if(typeof i!="function"&&ue(6),s!==void 0&&typeof s!="function"&&ue(7),ye(a)){var h=Bi(n),f=Gn(n,a,void 0),y=!0;try{u=i(f),y=!1}finally{y?Hr(h):jn(h)}return typeof Promise<"u"&&u instanceof Promise?u.then(function(v){return $n(h,s),Wn(v,h)},function(v){throw Hr(h),v}):($n(h,s),Wn(u,h))}if(!a||typeof a!="object"){if((u=i(a))===void 0&&(u=a),u===Zi&&(u=void 0),n.D&&Yn(u,!0),s){var b=[],g=[];Se("Patches").M(a,u,b,g),s(b,g)}return u}ue(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(u){for(var h=arguments.length,f=Array(h>1?h-1:0),y=1;y<h;y++)f[y-1]=arguments[y];return n.produceWithPatches(u,function(b){return a.apply(void 0,[b].concat(f))})};var s,c,d=n.produce(a,i,function(u,h){s=u,c=h});return typeof Promise<"u"&&d instanceof Promise?d.then(function(u){return[u,s,c]}):[d,s,c]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var e=t.prototype;return e.createDraft=function(o){ye(o)||ue(8),Te(o)&&(o=ld(o));var n=Bi(this),a=Gn(this,o,void 0);return a[j].C=!0,jn(n),a},e.finishDraft=function(o,n){var a=o&&o[j],i=a.A;return $n(i,n),Wn(void 0,i)},e.setAutoFreeze=function(o){this.D=o},e.setUseProxies=function(o){o&&!zi&&ue(20),this.O=o},e.applyPatches=function(o,n){var a;for(a=n.length-1;a>=0;a--){var i=n[a];if(i.path.length===0&&i.op==="replace"){o=i.value;break}}a>-1&&(n=n.slice(a+1));var s=Se("Patches").$;return Te(o)?s(o,n):this.produce(o,function(c){return s(c,n)})},t}(),de=new ud,fd=de.produce,Om=de.produceWithPatches.bind(de),Em=de.setAutoFreeze.bind(de),Cm=de.setUseProxies.bind(de),wm=de.applyPatches.bind(de),Am=de.createDraft.bind(de),Rm=de.finishDraft.bind(de),Gr=fd;function lt(t){"@babel/helpers - typeof";return lt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},lt(t)}function Yi(t,e){if(lt(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var n=o.call(t,e||"default");if(lt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Xi(t){var e=Yi(t,"string");return lt(e)=="symbol"?e:e+""}function Ji(t,e,o){return(e=Xi(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function Qi(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),o.push.apply(o,n)}return o}function Qn(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?Qi(Object(o),!0).forEach(function(n){Ji(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Qi(Object(o)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))})}return t}function ee(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var es=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),ea=function(){return Math.random().toString(36).substring(7).split("").join(".")},Vr={INIT:"@@redux/INIT"+ea(),REPLACE:"@@redux/REPLACE"+ea(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ea()}};function hd(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function ta(t,e,o){var n;if(typeof e=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(ee(0));if(typeof e=="function"&&typeof o>"u"&&(o=e,e=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(ee(1));return o(ta)(t,e)}if(typeof t!="function")throw new Error(ee(2));var a=t,i=e,s=[],c=s,d=!1;function u(){c===s&&(c=s.slice())}function h(){if(d)throw new Error(ee(3));return i}function f(v){if(typeof v!="function")throw new Error(ee(4));if(d)throw new Error(ee(5));var C=!0;return u(),c.push(v),function(){if(C){if(d)throw new Error(ee(6));C=!1,u();var R=c.indexOf(v);c.splice(R,1),s=null}}}function y(v){if(!hd(v))throw new Error(ee(7));if(typeof v.type>"u")throw new Error(ee(8));if(d)throw new Error(ee(9));try{d=!0,i=a(i,v)}finally{d=!1}for(var C=s=c,A=0;A<C.length;A++){var R=C[A];R()}return v}function b(v){if(typeof v!="function")throw new Error(ee(10));a=v,y({type:Vr.REPLACE})}function g(){var v,C=f;return v={subscribe:function(R){if(typeof R!="object"||R===null)throw new Error(ee(11));function O(){R.next&&R.next(h())}O();var x=C(O);return{unsubscribe:x}}},v[es]=function(){return this},v}return y({type:Vr.INIT}),n={dispatch:y,subscribe:f,getState:h,replaceReducer:b},n[es]=g,n}function yd(t){Object.keys(t).forEach(function(e){var o=t[e],n=o(void 0,{type:Vr.INIT});if(typeof n>"u")throw new Error(ee(12));if(typeof o(void 0,{type:Vr.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ee(13))})}function ts(t){for(var e=Object.keys(t),o={},n=0;n<e.length;n++){var a=e[n];typeof t[a]=="function"&&(o[a]=t[a])}var i=Object.keys(o),s,c;try{yd(o)}catch(d){c=d}return function(u,h){if(u===void 0&&(u={}),c)throw c;if(0)var f;for(var y=!1,b={},g=0;g<i.length;g++){var v=i[g],C=o[v],A=u[v],R=C(A,h);if(typeof R>"u"){var O=h&&h.type;throw new Error(ee(14))}b[v]=R,y=y||R!==A}return y=y||i.length!==Object.keys(u).length,y?b:u}}function _t(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function rs(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(n){return function(){var a=n.apply(void 0,arguments),i=function(){throw new Error(ee(15))},s={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},c=e.map(function(d){return d(s)});return i=_t.apply(void 0,c)(a.dispatch),Qn(Qn({},a),{},{dispatch:i})}}}function os(t){var e=function(n){var a=n.dispatch,i=n.getState;return function(s){return function(c){return typeof c=="function"?c(a,i,t):s(c)}}};return e}var ns=os();ns.withExtraArgument=os;var ra=ns;var cs=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},t(e,o)};return function(e,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");t(e,o);function n(){this.constructor=e}e.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),md=function(t,e){var o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(u){return function(h){return d([u,h])}}function d(u){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,a=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(i=o.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){o=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){o.label=u[1];break}if(u[0]===6&&o.label<i[1]){o.label=i[1],i=u;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(u);break}i[2]&&o.ops.pop(),o.trys.pop();continue}u=e.call(t,o)}catch(h){u=[6,h],a=0}finally{n=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},Tt=function(t,e){for(var o=0,n=e.length,a=t.length;o<n;o++,a++)t[a]=e[o];return t},gd=Object.defineProperty,bd=Object.defineProperties,xd=Object.getOwnPropertyDescriptors,as=Object.getOwnPropertySymbols,vd=Object.prototype.hasOwnProperty,Sd=Object.prototype.propertyIsEnumerable,is=function(t,e,o){return e in t?gd(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},ze=function(t,e){for(var o in e||(e={}))vd.call(e,o)&&is(t,o,e[o]);if(as)for(var n=0,a=as(e);n<a.length;n++){var o=a[n];Sd.call(e,o)&&is(t,o,e[o])}return t},oa=function(t,e){return bd(t,xd(e))},Od=function(t,e,o){return new Promise(function(n,a){var i=function(d){try{c(o.next(d))}catch(u){a(u)}},s=function(d){try{c(o.throw(d))}catch(u){a(u)}},c=function(d){return d.done?n(d.value):Promise.resolve(d.value).then(i,s)};c((o=o.apply(t,e)).next())})};var Ed=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?_t:_t.apply(null,arguments)},Gm=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function Cd(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var o=e;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return e===o}var wd=function(t){cs(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=t.apply(this,o)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,Tt([void 0],o[0].concat(this)))):new(e.bind.apply(e,Tt([void 0],o.concat(this))))},e}(Array),Ad=function(t){cs(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=t.apply(this,o)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,Tt([void 0],o[0].concat(this)))):new(e.bind.apply(e,Tt([void 0],o.concat(this))))},e}(Array);function ia(t){return ye(t)?Gr(t,function(){}):t}function Rd(t){return typeof t=="boolean"}function Nd(){return function(e){return _d(e)}}function _d(t){t===void 0&&(t={});var e=t.thunk,o=e===void 0?!0:e,n=t.immutableCheck,a=n===void 0?!0:n,i=t.serializableCheck,s=i===void 0?!0:i,c=new wd;if(o&&(Rd(o)?c.push(ra):c.push(ra.withExtraArgument(o.extraArgument))),0){if(a)var d;if(s)var u}return c}var na=!0;function ds(t){var e=Nd(),o=t||{},n=o.reducer,a=n===void 0?void 0:n,i=o.middleware,s=i===void 0?e():i,c=o.devTools,d=c===void 0?!0:c,u=o.preloadedState,h=u===void 0?void 0:u,f=o.enhancers,y=f===void 0?void 0:f,b;if(typeof a=="function")b=a;else if(Cd(a))b=ts(a);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var g=s;if(typeof g=="function"&&(g=g(e),!na&&!Array.isArray(g)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!na&&g.some(function(x){return typeof x!="function"}))throw new Error("each middleware provided to configureStore must be a function");var v=rs.apply(void 0,g),C=_t;d&&(C=Ed(ze({trace:!na},typeof d=="object"&&d)));var A=new Ad(v),R=A;Array.isArray(y)?R=Tt([v],y):typeof y=="function"&&(R=y(A));var O=C.apply(void 0,R);return ta(b,h,O)}function je(t,e){function o(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(e){var i=e.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return ze(ze({type:t,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:t,payload:n[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(n){return n.type===t},o}function ps(t){var e={},o=[],n,a={addCase:function(i,s){var c=typeof i=="string"?i:i.type;if(c in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[c]=s,a},addMatcher:function(i,s){return o.push({matcher:i,reducer:s}),a},addDefaultCase:function(i){return n=i,a}};return t(a),[e,o,n]}function Td(t){return typeof t=="function"}function Pd(t,e,o,n){o===void 0&&(o=[]);var a=typeof e=="function"?ps(e):[e,o,n],i=a[0],s=a[1],c=a[2],d;if(Td(t))d=function(){return ia(t())};else{var u=ia(t);d=function(){return u}}function h(f,y){f===void 0&&(f=d());var b=Tt([i[y.type]],s.filter(function(g){var v=g.matcher;return v(y)}).map(function(g){var v=g.reducer;return v}));return b.filter(function(g){return!!g}).length===0&&(b=[c]),b.reduce(function(g,v){if(v)if(Te(g)){var C=g,A=v(C,y);return A===void 0?g:A}else{if(ye(g))return Gr(g,function(R){return v(R,y)});var A=v(g,y);if(A===void 0){if(g===null)return g;throw Error("A case reducer on a non-draftable value must not return undefined")}return A}return g},f)}return h.getInitialState=d,h}function Ld(t,e){return t+"/"+e}function us(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof t.initialState=="function"?t.initialState:ia(t.initialState),n=t.reducers||{},a=Object.keys(n),i={},s={},c={};a.forEach(function(h){var f=n[h],y=Ld(e,h),b,g;"reducer"in f?(b=f.reducer,g=f.prepare):b=f,i[h]=b,s[y]=b,c[h]=g?je(y,g):je(y)});function d(){var h=typeof t.extraReducers=="function"?ps(t.extraReducers):[t.extraReducers],f=h[0],y=f===void 0?{}:f,b=h[1],g=b===void 0?[]:b,v=h[2],C=v===void 0?void 0:v,A=ze(ze({},y),s);return Pd(o,function(R){for(var O in A)R.addCase(O,A[O]);for(var x=0,E=g;x<E.length;x++){var _=E[x];R.addMatcher(_.matcher,_.reducer)}C&&R.addDefaultCase(C)})}var u;return{name:e,reducer:function(h,f){return u||(u=d()),u(h,f)},actions:c,caseReducers:i,getInitialState:function(){return u||(u=d()),u.getInitialState()}}}var Id="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",kd=function(t){t===void 0&&(t=21);for(var e="",o=t;o--;)e+=Id[Math.random()*64|0];return e},Dd=["name","message","stack","code"],aa=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),ss=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),Ud=function(t){if(typeof t=="object"&&t!==null){for(var e={},o=0,n=Dd;o<n.length;o++){var a=n[o];typeof t[a]=="string"&&(e[a]=t[a])}return e}return{message:String(t)}},qm=function(){function t(e,o,n){var a=je(e+"/fulfilled",function(h,f,y,b){return{payload:h,meta:oa(ze({},b||{}),{arg:y,requestId:f,requestStatus:"fulfilled"})}}),i=je(e+"/pending",function(h,f,y){return{payload:void 0,meta:oa(ze({},y||{}),{arg:f,requestId:h,requestStatus:"pending"})}}),s=je(e+"/rejected",function(h,f,y,b,g){return{payload:b,error:(n&&n.serializeError||Ud)(h||"Rejected"),meta:oa(ze({},g||{}),{arg:y,requestId:f,rejectedWithValue:!!b,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),c=!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 u(h){return function(f,y,b){var g=n?.idGenerator?n.idGenerator(h):kd(),v=new d,C,A=!1;function R(x){C=x,v.abort()}var O=function(){return Od(this,null,function(){var x,E,_,I,B,U,T;return md(this,function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),I=(x=n?.condition)==null?void 0:x.call(n,h,{getState:y,extra:b}),Bd(I)?[4,I]:[3,2];case 1:I=m.sent(),m.label=2;case 2:if(I===!1||v.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return A=!0,B=new Promise(function(S,N){return v.signal.addEventListener("abort",function(){return N({name:"AbortError",message:C||"Aborted"})})}),f(i(g,h,(E=n?.getPendingMeta)==null?void 0:E.call(n,{requestId:g,arg:h},{getState:y,extra:b}))),[4,Promise.race([B,Promise.resolve(o(h,{dispatch:f,getState:y,extra:b,requestId:g,signal:v.signal,abort:R,rejectWithValue:function(S,N){return new aa(S,N)},fulfillWithValue:function(S,N){return new ss(S,N)}})).then(function(S){if(S instanceof aa)throw S;return S instanceof ss?a(S.payload,g,h,S.meta):a(S,g,h)})])];case 3:return _=m.sent(),[3,5];case 4:return U=m.sent(),_=U instanceof aa?s(null,g,h,U.payload,U.meta):s(U,g,h),[3,5];case 5:return T=n&&!n.dispatchConditionRejection&&s.match(_)&&_.meta.condition,T||f(_),[2,_]}})})}();return Object.assign(O,{abort:R,requestId:g,arg:h,unwrap:function(){return O.then(Md)}})}}return Object.assign(u,{pending:i,rejected:s,fulfilled:a,typePrefix:e})}return t.withTypes=function(){return t},t}();function Md(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Bd(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var fs="listener",hs="completed",ys="cancelled",Ym="task-"+ys,Xm="task-"+hs,Jm=fs+"-"+ys,Qm=fs+"-"+hs;var sa="listenerMiddleware";var eg=je(sa+"/add"),tg=je(sa+"/removeAll"),rg=je(sa+"/remove");var ls,og=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(ls||(ls=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},$d=function(t){return function(e){setTimeout(e,t)}},ng=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:$d(10);Ki();window.ftReduxStores||(window.ftReduxStores={});var la=class t extends et{static get(e){var o;let n=typeof e=="string"?e:e.name,a=typeof e=="string"?void 0:e,i=window.ftReduxStores[n];if(at(i))return i;if(a==null)return;let s=us({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),c=ds({reducer:(d,u)=>u.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__")?{...d,...u.overwrites}:s.reducer(d,u)});return window.ftReduxStores[a.name]=new t(s,c,a.eventBus)}constructor(e,o,n){super(),this.reduxSlice=e,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new br;let a=i=>i!=null?JSON.parse(JSON.stringify(i)):i;this.actions=new Proxy(this.reduxSlice.actions,{get:(i,s,c)=>{let d=s,u=i[d];return u?(...h)=>{let f=u(...h.map(a));return this.reduxStore.dispatch(f),f}:h=>{this.setState({[d]:a(h)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};function Wd(){var t;for(let e of Object.values((t=window.ftReduxStores)!==null&&t!==void 0?t:{}))at(e)&&e.clear()}var Kr=class{constructor(e,o,n){this.store=e,this.valueSelector=o,this.callback=n}watch(){return this.stop(),this.lastValue=this.valueSelector(this.store.getState()),this.unsubscribe=this.store.subscribe(()=>{let e=this.store.getState(),o=this.valueSelector(e);tt(this.lastValue,o)&&(this.callback(o,e),this.lastValue=o)}),this}stop(){return this.unsubscribe!=null&&(this.unsubscribe(),this.unsubscribe=void 0),this.lastValue=void 0,this}};function Fd(t,e,o){return new Kr(t,e,o).watch()}var ua={};W(ua,{scrollHelper:()=>Hd});var da,Zr=new Map,pa=class{lock(e,o){if(o){let n=Zr.get(o);if(n==null||n===e)return Zr.set(o,e),o}}release(e,o){o&&Zr.get(o)===e&&Zr.delete(o)}findFirstScrollableParent(e){var o;let n,a;for(let i of Io(e)){let s=i,c=this.elementCanScroll(s);if(c&&s.clientHeight&&s.clientHeight<s.scrollHeight){n=s;break}else c&&a==null&&(a=s)}return(o=n??a)!==null&&o!==void 0?o:document.body}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)}catch{return!1}}getAbsoluteScrollOffset(e,o){var n,a;let i=0;for(;o&&o.offsetParent!==e.offsetParent;)i+=(n=o.offsetTop)!==null&&n!==void 0?n:0,o=o.offsetParent;return i+((a=o?.offsetTop)!==null&&a!==void 0?a:0)-e.offsetTop}computeTopOffsetRatio(e,o){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return o;default:return 0}}scrollIntoViewIfPossible(e,o){let n=this.findFirstScrollableParent(e);if(e&&this.lock(this,n)){let a=this.getAbsoluteScrollOffset(n,e),i=a-n.clientHeight+e.clientHeight,s=a,c=sr(0,(s-n.scrollTop)/(s-i),1),d=this.computeTopOffsetRatio(o?.position,c)*(i-s)+s;n.scrollTo({behavior:o?.behavior,top:d})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,n);this.release(this,n)}};window.FluidTopicsScrollHelper=(da=window.FluidTopicsScrollHelper)!==null&&da!==void 0?da:new pa;var Hd=window.FluidTopicsScrollHelper;var fa={};W(fa,{shadowQuerySelector:()=>zd,shadowQuerySelectorAll:()=>jd});function zd(t,e,...o){var n;let a=t.querySelector(e);for(let i of o)a=(n=a?.shadowRoot)===null||n===void 0?void 0:n.querySelector(i);return a}function jd(t,e,...o){let n=[...t.querySelectorAll(e)];for(let a of o)n=n.flatMap(i=>{var s,c;return[...(c=(s=i.shadowRoot)===null||s===void 0?void 0:s.querySelectorAll(a))!==null&&c!==void 0?c:[]]});return n}var ya={};W(ya,{SearchPlaceConverter:()=>Xr,SearchPlaceQueryParams:()=>F,isSearchPlaceQueryParams:()=>zs,serializeRequest:()=>Kd});var Gd=Cl(gs(),1);var bs;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(bs||(bs={}));var xs;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(xs||(xs={}));var vs;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.MAP_ATTACHMENT="MAP_ATTACHMENT",t.RESOURCE="RESOURCE"})(vs||(vs={}));var Ss;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Ss||(Ss={}));var Os;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(Os||(Os={}));var Es;(function(t){t.BOOKMARK__CREATE="BOOKMARK__CREATE",t.BOOKMARK__DELETE="BOOKMARK__DELETE",t.CASE_DEFLECTION__START="CASE_DEFLECTION__START",t.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",t.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",t.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",t.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",t.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",t.DOCUMENT__PRINT="DOCUMENT__PRINT",t.DOCUMENT__PROCESS="DOCUMENT__PROCESS",t.DOCUMENT__RATE="DOCUMENT__RATE",t.DOCUMENT__SEARCH="DOCUMENT__SEARCH",t.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",t.DOCUMENT__UNRATE="DOCUMENT__UNRATE",t.FEEDBACK__SEND="FEEDBACK__SEND",t.GEN_AI__COMPLETED_QUERY="GEN_AI__COMPLETED_QUERY",t.GEN_AI__RATE="GEN_AI__RATE",t.GENAI_CASE_DEFLECTION__START="GENAI_CASE_DEFLECTION__START",t.GENAI_CASE_DEFLECTION__OPEN_TICKET="GENAI_CASE_DEFLECTION__OPEN_TICKET",t.KHUB__PROCESS="KHUB__PROCESS",t.KHUB__SEARCH="KHUB__SEARCH",t.LABELS__DOWNLOAD="LABELS__DOWNLOAD",t.LINK__SHARE="LINK__SHARE",t.PAGE__DISPLAY="PAGE__DISPLAY",t.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",t.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",t.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",t.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",t.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",t.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",t.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",t.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",t.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",t.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",t.TOPIC__DISPLAY="TOPIC__DISPLAY",t.TOPIC__RATE="TOPIC__RATE",t.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",t.TOPIC__UNRATE="TOPIC__UNRATE",t.USER__LOGIN="USER__LOGIN",t.USER__LOGOUT="USER__LOGOUT",t.HEARTBEAT="HEARTBEAT"})(Es||(Es={}));var Cs;(function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"})(Cs||(Cs={}));var ws;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT"})(ws||(ws={}));var As;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(As||(As={}));var Rs;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Rs||(Rs={}));var Ns;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Ns||(Ns={}));var _s;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(_s||(_s={}));var Ts;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"})(Ts||(Ts={}));var Ps;(function(t){t.ASC="ASC",t.DESC="DESC"})(Ps||(Ps={}));var Ls;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Ls||(Ls={}));var ha;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(ha||(ha={}));var Bs=t=>Object.keys(ha).includes(t);var Is;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"})(Is||(Is={}));var ks;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(ks||(ks={}));var Ds;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"})(Ds||(Ds={}));var Lt;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Lt||(Lt={}));var $s=t=>Object.keys(Lt).includes(t);var Us;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"})(Us||(Us={}));var Ms;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Ms||(Ms={}));var Z;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN",t.DEVELOPER="DEVELOPER"})(Z||(Z={}));var Ws;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Ws||(Ws={}));var Fs;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Fs||(Fs={}));var wg={[Z.PERSONAL_BOOK_SHARE_USER]:[Z.PERSONAL_BOOK_USER],[Z.HTML_EXPORT_USER]:[Z.PERSONAL_BOOK_USER],[Z.PDF_EXPORT_USER]:[Z.PERSONAL_BOOK_USER],[Z.KHUB_ADMIN]:[Z.CONTENT_PUBLISHER],[Z.ADMIN]:[Z.KHUB_ADMIN,Z.USERS_ADMIN,Z.PORTAL_ADMIN],[Z.DEVELOPER]:[Z.BETA_USER,Z.DEBUG_USER],[Z.GENERATIVE_AI_EXPORT_USER]:[Z.GENERATIVE_AI_USER]};function Vd(t){return`"${t}"`}function Hs(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function Kd(t,e){return new Xr(t).serialize(e)}var F;(function(t){t.LOCALE="content-lang",t.QUERY="query",t.SCOPE="scope",t.FILTERS="filters",t.VIRTUAL_FIELD="virtual-field",t.PERIOD="period",t.VALUE_FILTERS="value-filters",t.DATE_FILTERS="date-filters",t.RANGE_FILTERS="range-filters",t.SORT="sort",t.PER_PAGE="per-page"})(F||(F={}));var Zd=new Set(Object.values(F));function zs(t){return Zd.has(t)}var Xr=class{constructor(e,o={},n=20,a=!1,i="en-US"){this.baseUrl=e,this.predefinedSorts=o,this.defaultPerPage=n,this.allLanguagesAllowed=a,this.defaultContentLocale=i,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"},this.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]]}serialize(e,o){return this.serializeToCurrentPageIfPossible(e,o??"/search")}serializeToCurrentPageIfPossible(e,o){let n=this.toURLSearchParams(e).toString(),a=o==null||o.trim().length===0,i=new URL(a?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${o}`);return i.search=n,i.toString()}toURLSearchParams(e,o=!1){var n,a,i,s,c,d,u,h,f,y,b,g;let v=new URLSearchParams;e.contentLocale?(!o||e.contentLocale!==this.defaultContentLocale)&&v.append(F.LOCALE,e.contentLocale):v.append(F.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((n=e.query)===null||n===void 0?void 0:n.length)>0&&v.append(F.QUERY,e.query),e.scope&&e.scope!=="DEFAULT"&&v.append(F.SCOPE,e.scope.toLowerCase()),e.virtualField&&e.virtualField!=="EVERYWHERE"&&v.append(F.VIRTUAL_FIELD,e.virtualField.toLowerCase()),((a=e.sort)===null||a===void 0?void 0:a.length)>0&&e.sort[0].key==="ft:lastEdition"&&v.append(F.SORT,"last_update");let C=(s=(i=e.metadataFilters)===null||i===void 0?void 0:i.filter(x=>x.valueFilter))!==null&&s!==void 0?s:[];if(C.length>0){let x=C.map(E=>{var _,I;let B=((I=(_=E.valueFilter)===null||_===void 0?void 0:_.values)!==null&&I!==void 0?I:[]).map(U=>this.escapeFilters(U)).map(U=>encodeURIComponent(Vd(Hs(U)))).join("_");return`${E.key}~${B}`}).join("*");v.append(F.VALUE_FILTERS,x)}let A=(d=(c=e.metadataFilters)===null||c===void 0?void 0:c.filter(x=>x.dateFilter))!==null&&d!==void 0?d:[];if(A.length>0){let x=A.map(E=>{var _;return`${E.key}~${(_=E.dateFilter)===null||_===void 0?void 0:_.type.toLowerCase()}`}).join("*");v.append(F.DATE_FILTERS,x)}let R=(h=(u=e.metadataFilters)===null||u===void 0?void 0:u.filter(x=>x.rangeFilter))!==null&&h!==void 0?h:[];if(R.length>0){let x=R.map(E=>{var _,I;return`${E.key}~${(_=E.rangeFilter)===null||_===void 0?void 0:_.from}_${(I=E.rangeFilter)===null||I===void 0?void 0:I.to}`}).join("*");v.append(F.RANGE_FILTERS,x)}let O=(f=e.otherQueryParams)!==null&&f!==void 0?f:{};for(let x in O)v.append(x,O[x]);return!((y=e.paging)===null||y===void 0)&&y.perPage&&((g=(b=e.paging)===null||b===void 0?void 0:b.perPage)!==null&&g!==void 0?g:this.defaultPerPage)!=this.defaultPerPage&&v.append(F.PER_PAGE,String(e.paging.perPage)),v}parse(e){var o;let n=e.split("?"),a=this.fromURLSearchParams(new URLSearchParams(n.slice(1).join("?"))),i=n[0].split("/search/")[1];return i==null?a:{...a,scope:(o=this.scopeMapping[i])!==null&&o!==void 0?o:a.scope}}fromURLSearchParams(e){var o,n,a,i,s,c,d,u;let h=e.get(F.LOCALE)==="all"?void 0:e.get(F.LOCALE),f=((o=e.get(F.VIRTUAL_FIELD))!==null&&o!==void 0?o:"EVERYWHERE").toUpperCase(),y=((n=e.get(F.SORT))!==null&&n!==void 0?n:"DEFAULT").toUpperCase(),b=(a=e.get(F.SCOPE))!==null&&a!==void 0?a:"default",g=+((i=e.get(F.PER_PAGE))!==null&&i!==void 0?i:this.defaultPerPage),v={};for(let C of e.keys())zs(C)||(v[C]=e.get(C));return{contentLocale:h??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:decodeURIComponent((s=e.get(F.QUERY))!==null&&s!==void 0?s:""),scope:(c=this.scopeMapping[b])!==null&&c!==void 0?c:"DEFAULT",virtualField:Bs(f)?f:"EVERYWHERE",sort:(u=(d=this.predefinedSorts[y])!==null&&d!==void 0?d:this.predefinedSorts.DEFAULT)!==null&&u!==void 0?u:[],metadataFilters:this.parseCompatFilters(e),facets:[],paging:{page:1,perPage:sr(1,isNaN(g)?this.defaultPerPage:g,1e3)},otherQueryParams:v}}parseCompatFilters(e){var o,n,a,i,s,c;let d=[];return e.has(F.FILTERS)&&(d=this.parseValueFilters((o=e.get(F.FILTERS))!==null&&o!==void 0?o:"")),(n=e.has(F.PERIOD))!==null&&n!==void 0&&n&&(d=[...d,...this.parseLegacyPeriodFilter(((a=e.get(F.PERIOD))!==null&&a!==void 0?a:"").toUpperCase())]),[...d,...this.parseValueFilters((i=e.get(F.VALUE_FILTERS))!==null&&i!==void 0?i:""),...this.parseDateFilters((s=e.get(F.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((c=e.get(F.RANGE_FILTERS))!==null&&c!==void 0?c:"")]}splitUnknownFilter(e){return this.superEscapeFilters(decodeURIComponent(e)).split("*").map(o=>o.split("~"))}parseValueFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],valueFilter:{values:o[1].split("_").map(Hs).map(n=>this.unescapeFilterValue(n)),negative:!1}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],dateFilter:{type:Lt[o[1].toUpperCase()]}}))}parseRangeFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],rangeFilter:{from:o[1].split("_")[0],to:o[1].split("_")[1]}}))}escapeFilters(e){for(let[o,n,a]of this.filtersEscapeMapping)e=e.replaceAll(o,n);return e}superEscapeFilters(e){for(let[o,n,a]of this.filtersEscapeMapping)e=e.replaceAll(n,a);return e}unescapeFilterValue(e){for(let[o,n,a]of this.filtersEscapeMapping)e=e.replace(a,o);return e}parseLegacyPeriodFilter(e){if($s(e))return[{key:"ft:lastEdition",dateFilter:{type:Lt[e]}}];if(e.startsWith("CUSTOM_")){let[o,n,a]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:n,to:a}}]}return[]}};var ma={};W(ma,{toFtFormComponent:()=>qd});var Jr=Symbol("elementInternals");function qd(t,e){class o extends t{static get formAssociated(){return!0}get form(){return this[Jr].form}constructor(...a){super(a),this[Jr]=this.attachInternals(),this[Jr].role=e}setFormValue(a){this[Jr].setFormValue(a)}}return o}var ba={};W(ba,{DateFormatter:()=>ga});var ga=class{static format(e,o,n,a){return window.moment?window.moment(e).locale(o).format(this.getDateFormat(n,a)):e}static getDateFormat(e,o){return e?o?"lll":"ll":o?"L LT":"L"}};var va={};W(va,{ALL_KEYS_VALUE:()=>xa,SameWindowStorageEvent:()=>It});var xa="__all__",It=class extends CustomEvent{constructor(e,o,n){super("same-window-storage",{detail:{key:e,oldValue:o,newValue:n}})}keyMatch(e){return this.detail.key.includes(e)||this.detail.key==xa}};Storage.prototype.setItem=new Proxy(Storage.prototype.setItem,{apply(t,e,o){let n=e.getItem(o[0]);Reflect.apply(t,e,o),window.dispatchEvent(new It(o[0],n,o[1]))}});Storage.prototype.removeItem=new Proxy(Storage.prototype.removeItem,{apply(t,e,o){let n=e.getItem(o[0]);Reflect.apply(t,e,o),window.dispatchEvent(new It(o[0],n))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(t,e,o){Reflect.apply(t,e,o),window.dispatchEvent(new It(xa))}});var Sa,Oa,Ea,Ca,Yd=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((Ea=(Oa=(Sa=window.safari)===null||Sa===void 0?void 0:Sa.pushNotification)===null||Oa===void 0?void 0:Oa.toString())!==null&&Ea!==void 0?Ea:"")==="[object SafariRemoteNotification]",Xd="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(Ca=window.ftGlobals)!==null&&Ca!==void 0?Ca:{lit:yo,litDecorators:go,litRepeat:xo,litClassMap:vo,litStyleMap:So,litUnsafeHTML:Eo,wcUtils:{..._o,...wo,...Po,...ba,...Lo,...Mo,...fn,...Ro,...Nn,...un,...Ln,...Tn,...Li,...ko,...kn,...Un,...ki,...Bn,...ca,..._n,...ua,...fa,...ya,...ma,...va,isSafari:Yd,isTouchScreen:Xd,setVariable:bt}};var Pe=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(i=(a<3?s(i):a>3?s(e,o,i):s(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},te=class extends G{constructor(){super(...arguments),this.label="",this.icon="",this.active=!1,this.disabled=!1,this.uniqueId=(""+Math.floor(Math.random()*1e5)).padStart(5,"0")}render(){return J`
48
+ `;var ki={};var Bn={};W(Bn,{ParametrizedLabelResolver:()=>Mn});var Mn=class t{constructor(e,o){this.defaultLabels=e,this.labels=o}resolve(e,...o){var n,a;e=this.resolvePluralKey(e,o);let i=(a=(n=this.labels[e])!==null&&n!==void 0?n:this.defaultLabels[e])!==null&&a!==void 0?a:"";return t.replaceParameters(i,...o)}static replaceParameters(e,...o){return o.forEach((n,a)=>e=e.replace(new RegExp(`\\{${a}([^}]*)\\}`,"g"),(i,s)=>t.formatValue(n,s))),e}resolvePluralKey(e,o){for(let n of o)if(typeof n=="number"){let a=`${String(e)}[\\=${n}]`;if(a in this.labels||a in this.defaultLabels)return a}return e}static formatValue(e,o){return e instanceof Date?t.formatDate(e,o):e??""}static formatDate(e,o){let n=a=>o?.includes("date")?e.toLocaleDateString(a):o?.includes("time")?e.toLocaleTimeString(a):e.toLocaleString(a);try{return n(document.documentElement.lang)}catch{return n()}}};var ca={};W(ca,{FtCommandQueue:()=>br,FtLitElementRedux:()=>wt,FtReduxStore:()=>la,ReduxWatcher:()=>Kr,clearAllStores:()=>Wd,isFtReduxStore:()=>at,redux:()=>rd,reduxEventListener:()=>od,reduxReactive:()=>td,watch:()=>Fd});var td=()=>(t,e)=>{var o;let n=t.constructor;n.reduxReactiveProperties=new Set(n.reduxReactiveProperties),(o=n.reduxReactiveProperties)===null||o===void 0||o.add(e)},rd=t=>{let e=t??{};return(o,n)=>{var a;let i={hasChanged:tt,attribute:!1,...e};P(i)(o,n);let s=o.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(n,{selector:(a=e.selector)!==null&&a!==void 0?a:c=>c[n],store:e.store})}},od=t=>(e,o)=>{let n=e.constructor;n.reduxEventListeners=new Map(n.reduxEventListeners),n.reduxEventListeners.set(o,t)};var br=class{constructor(){this.queue=[]}add(e,o=!1){o&&(this.queue=this.queue.filter(n=>n.type!==e.type)),this.queue.push(e)}consume(e){let o=this.queue.find(n=>n.type===e);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}};function at(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Di,Ui,Mi,xr=Symbol("internalReduxEventsUnsubscribers"),We=Symbol("internalStoresUnsubscribers"),it=Symbol("internalStores"),wt=class extends G{constructor(){super(...arguments),this[Di]=new Map,this[Ui]=new Map,this[Mi]=new Map}get reduxConstructor(){return this.constructor}update(e){super.update(e),[...this.reduxConstructor.reduxReactiveProperties].some(o=>e.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[it].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[it].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[it].get(e)}addStore(e,o){var n;o=(n=o??(at(e)?e.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(o),this[it].set(o,e),this.subscribeToStore(o,e),this.updateFromStores()}removeStore(e){let o=typeof e=="string"?e:e.name;this.unsubscribeFromStore(o),this[it].delete(o)}setupStores(){this.unsubscribeFromStores(),this[it].forEach((e,o)=>this.subscribeToStore(o,e)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((e,o)=>{let n=this.constructor.getPropertyOptions(o);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:o)){let a=this.getStore(e.store);a&&(e.store?this[We].has(e.store):this[We].size>0)&&(this[o]=e.selector(a.getState(),this))}})}subscribeToStore(e,o){var n;this[We].set(e,o.subscribe(()=>this.updateFromStores())),this[xr].set(e,[]),at(o)&&o.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((a,i)=>{if(typeof this[i]=="function"&&(!a.store||o.name===a.store)){let s=c=>this[i](c);o.addEventListener(a.eventName,s),this[xr].get(e).push(()=>o.removeEventListener(a.eventName,s))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[We].forEach((e,o)=>this.unsubscribeFromStore(o))}unsubscribeFromStore(e){var o;this[We].has(e)&&this[We].get(e)(),this[We].delete(e),(o=this[xr].get(e))===null||o===void 0||o.forEach(n=>n()),this[xr].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Di=We,Ui=it,Mi=xr;wt.reduxProperties=new Map;wt.reduxReactiveProperties=new Set;wt.reduxEventListeners=new Map;function ue(t){for(var e=arguments.length,o=Array(e>1?e-1:0),n=1;n<e;n++)o[n-1]=arguments[n];if(0)var a,i;throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Te(t){return!!t&&!!t[j]}function ye(t){var e;return!!t&&(function(o){if(!o||typeof o!="object")return!1;var n=Object.getPrototypeOf(o);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===pd}(t)||Array.isArray(t)||!!t[ji]||!!(!((e=t.constructor)===null||e===void 0)&&e[ji])||Kn(t)||Zn(t))}function st(t,e,o){o===void 0&&(o=!1),Nt(t)===0?(o?Object.keys:Rt)(t).forEach(function(n){o&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,a){return e(a,n,t)})}function Nt(t){var e=t[j];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Kn(t)?2:Zn(t)?3:0}function At(t,e){return Nt(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function nd(t,e){return Nt(t)===2?t.get(e):t[e]}function Gi(t,e,o){var n=Nt(t);n===2?t.set(e,o):n===3?t.add(o):t[e]=o}function Vi(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function Kn(t){return cd&&t instanceof Map}function Zn(t){return dd&&t instanceof Set}function Fe(t){return t.o||t.t}function qn(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=qi(t);delete e[j];for(var o=Rt(e),n=0;n<o.length;n++){var a=o[n],i=e[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(e[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:t[a]})}return Object.create(Object.getPrototypeOf(t),e)}function Yn(t,e){return e===void 0&&(e=!1),Xn(t)||Te(t)||!ye(t)||(Nt(t)>1&&(t.set=t.add=t.clear=t.delete=ad),Object.freeze(t),e&&st(t,function(o,n){return Yn(n,!0)},!0)),t}function ad(){ue(2)}function Xn(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function Se(t){var e=Vn[t];return e||ue(18,t),e}function id(t,e){Vn[t]||(Vn[t]=e)}function zn(){return Sr}function $n(t,e){e&&(Se("Patches"),t.u=[],t.s=[],t.v=e)}function Hr(t){jn(t),t.p.forEach(sd),t.p=null}function jn(t){t===Sr&&(Sr=t.l)}function Bi(t){return Sr={p:[],l:Sr,h:t,m:!0,_:0}}function sd(t){var e=t[j];e.i===0||e.i===1?e.j():e.g=!0}function Wn(t,e){e._=e.p.length;var o=e.p[0],n=t!==void 0&&t!==o;return e.h.O||Se("ES5").S(e,t,n),n?(o[j].P&&(Hr(e),ue(4)),ye(t)&&(t=zr(e,t),e.l||jr(e,t)),e.u&&Se("Patches").M(o[j].t,t,e.u,e.s)):t=zr(e,o,[]),Hr(e),e.u&&e.v(e.u,e.s),t!==Zi?t:void 0}function zr(t,e,o){if(Xn(e))return e;var n=e[j];if(!n)return st(e,function(c,d){return $i(t,n,e,c,d,o)},!0),e;if(n.A!==t)return e;if(!n.P)return jr(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=qn(n.k):n.o,i=a,s=!1;n.i===3&&(i=new Set(a),a.clear(),s=!0),st(i,function(c,d){return $i(t,n,a,c,d,o,s)}),jr(t,a,!1),o&&t.u&&Se("Patches").N(n,o,t.u,t.s)}return n.o}function $i(t,e,o,n,a,i,s){if(Te(a)){var c=zr(t,a,i&&e&&e.i!==3&&!At(e.R,n)?i.concat(n):void 0);if(Gi(o,n,c),!Te(c))return;t.m=!1}else s&&o.add(a);if(ye(a)&&!Xn(a)){if(!t.h.D&&t._<1)return;zr(t,a),e&&e.A.l||jr(t,a)}}function jr(t,e,o){o===void 0&&(o=!1),!t.l&&t.h.D&&t.m&&Yn(e,o)}function Fn(t,e){var o=t[j];return(o?Fe(o):t)[e]}function Wi(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var n=Object.getOwnPropertyDescriptor(o,e);if(n)return n;o=Object.getPrototypeOf(o)}}function He(t){t.P||(t.P=!0,t.l&&He(t.l))}function Hn(t){t.o||(t.o=qn(t.t))}function Gn(t,e,o){var n=Kn(e)?Se("MapSet").F(e,o):Zn(e)?Se("MapSet").T(e,o):t.O?function(a,i){var s=Array.isArray(a),c={i:s?1:0,A:i?i.A:zn(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},d=c,u=Or;s&&(d=[c],u=vr);var h=Proxy.revocable(d,u),f=h.revoke,y=h.proxy;return c.k=y,c.j=f,y}(e,o):Se("ES5").J(e,o);return(o?o.A:zn()).p.push(n),n}function ld(t){return Te(t)||ue(22,t),function e(o){if(!ye(o))return o;var n,a=o[j],i=Nt(o);if(a){if(!a.P&&(a.i<4||!Se("ES5").K(a)))return a.t;a.I=!0,n=Fi(o,i),a.I=!1}else n=Fi(o,i);return st(n,function(s,c){a&&nd(a.t,s)===c||Gi(n,s,e(c))}),i===3?new Set(n):n}(t)}function Fi(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return qn(t)}function Ki(){function t(s,c){var d=i[s];return d?d.enumerable=c:i[s]=d={configurable:!0,enumerable:c,get:function(){var u=this[j];return Or.get(u,s)},set:function(u){var h=this[j];Or.set(h,s,u)}},d}function e(s){for(var c=s.length-1;c>=0;c--){var d=s[c][j];if(!d.P)switch(d.i){case 5:n(d)&&He(d);break;case 4:o(d)&&He(d)}}}function o(s){for(var c=s.t,d=s.k,u=Rt(d),h=u.length-1;h>=0;h--){var f=u[h];if(f!==j){var y=c[f];if(y===void 0&&!At(c,f))return!0;var b=d[f],g=b&&b[j];if(g?g.t!==y:!Vi(b,y))return!0}}var v=!!c[j];return u.length!==Rt(c).length+(v?0:1)}function n(s){var c=s.k;if(c.length!==s.t.length)return!0;var d=Object.getOwnPropertyDescriptor(c,c.length-1);if(d&&!d.get)return!0;for(var u=0;u<c.length;u++)if(!c.hasOwnProperty(u))return!0;return!1}function a(s){s.g&&ue(3,JSON.stringify(Fe(s)))}var i={};id("ES5",{J:function(s,c){var d=Array.isArray(s),u=function(f,y){if(f){for(var b=Array(y.length),g=0;g<y.length;g++)Object.defineProperty(b,""+g,t(g,!0));return b}var v=qi(y);delete v[j];for(var C=Rt(v),A=0;A<C.length;A++){var R=C[A];v[R]=t(R,f||!!v[R].enumerable)}return Object.create(Object.getPrototypeOf(y),v)}(d,s),h={i:d?5:4,A:c?c.A:zn(),P:!1,I:!1,R:{},l:c,t:s,k:u,o:null,g:!1,C:!1};return Object.defineProperty(u,j,{value:h,writable:!0}),u},S:function(s,c,d){d?Te(c)&&c[j].A===s&&e(s.p):(s.u&&function u(h){if(h&&typeof h=="object"){var f=h[j];if(f){var y=f.t,b=f.k,g=f.R,v=f.i;if(v===4)st(b,function(x){x!==j&&(y[x]!==void 0||At(y,x)?g[x]||u(b[x]):(g[x]=!0,He(f)))}),st(y,function(x){b[x]!==void 0||At(b,x)||(g[x]=!1,He(f))});else if(v===5){if(n(f)&&(He(f),g.length=!0),b.length<y.length)for(var C=b.length;C<y.length;C++)g[C]=!1;else for(var A=y.length;A<b.length;A++)g[A]=!0;for(var R=Math.min(b.length,y.length),O=0;O<R;O++)b.hasOwnProperty(O)||(g[O]=!0),g[O]===void 0&&u(b[O])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?o(s):n(s)}})}var Hi,Sr,Jn=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",cd=typeof Map<"u",dd=typeof Set<"u",zi=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Zi=Jn?Symbol.for("immer-nothing"):((Hi={})["immer-nothing"]=!0,Hi),ji=Jn?Symbol.for("immer-draftable"):"__$immer_draftable",j=Jn?Symbol.for("immer-state"):"__$immer_state";var pd=""+Object.prototype.constructor,Rt=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,qi=Object.getOwnPropertyDescriptors||function(t){var e={};return Rt(t).forEach(function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)}),e},Vn={},Or={get:function(t,e){if(e===j)return t;var o=Fe(t);if(!At(o,e))return function(a,i,s){var c,d=Wi(i,s);return d?"value"in d?d.value:(c=d.get)===null||c===void 0?void 0:c.call(a.k):void 0}(t,o,e);var n=o[e];return t.I||!ye(n)?n:n===Fn(t.t,e)?(Hn(t),t.o[e]=Gn(t.A.h,n,t)):n},has:function(t,e){return e in Fe(t)},ownKeys:function(t){return Reflect.ownKeys(Fe(t))},set:function(t,e,o){var n=Wi(Fe(t),e);if(n?.set)return n.set.call(t.k,o),!0;if(!t.P){var a=Fn(Fe(t),e),i=a?.[j];if(i&&i.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(Vi(o,a)&&(o!==void 0||At(t.t,e)))return!0;Hn(t),He(t)}return t.o[e]===o&&(o!==void 0||e in t.o)||Number.isNaN(o)&&Number.isNaN(t.o[e])||(t.o[e]=o,t.R[e]=!0),!0},deleteProperty:function(t,e){return Fn(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,Hn(t),He(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=Fe(t),n=Reflect.getOwnPropertyDescriptor(o,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:o[e]}},defineProperty:function(){ue(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){ue(12)}},vr={};st(Or,function(t,e){vr[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),vr.deleteProperty=function(t,e){return vr.set.call(this,t,e,void 0)},vr.set=function(t,e,o){return Or.set.call(this,t[0],e,o,t[0])};var ud=function(){function t(o){var n=this;this.O=zi,this.D=!0,this.produce=function(a,i,s){if(typeof a=="function"&&typeof i!="function"){var c=i;i=a;var d=n;return function(v){var C=this;v===void 0&&(v=c);for(var A=arguments.length,R=Array(A>1?A-1:0),O=1;O<A;O++)R[O-1]=arguments[O];return d.produce(v,function(x){var E;return(E=i).call.apply(E,[C,x].concat(R))})}}var u;if(typeof i!="function"&&ue(6),s!==void 0&&typeof s!="function"&&ue(7),ye(a)){var h=Bi(n),f=Gn(n,a,void 0),y=!0;try{u=i(f),y=!1}finally{y?Hr(h):jn(h)}return typeof Promise<"u"&&u instanceof Promise?u.then(function(v){return $n(h,s),Wn(v,h)},function(v){throw Hr(h),v}):($n(h,s),Wn(u,h))}if(!a||typeof a!="object"){if((u=i(a))===void 0&&(u=a),u===Zi&&(u=void 0),n.D&&Yn(u,!0),s){var b=[],g=[];Se("Patches").M(a,u,b,g),s(b,g)}return u}ue(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(u){for(var h=arguments.length,f=Array(h>1?h-1:0),y=1;y<h;y++)f[y-1]=arguments[y];return n.produceWithPatches(u,function(b){return a.apply(void 0,[b].concat(f))})};var s,c,d=n.produce(a,i,function(u,h){s=u,c=h});return typeof Promise<"u"&&d instanceof Promise?d.then(function(u){return[u,s,c]}):[d,s,c]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var e=t.prototype;return e.createDraft=function(o){ye(o)||ue(8),Te(o)&&(o=ld(o));var n=Bi(this),a=Gn(this,o,void 0);return a[j].C=!0,jn(n),a},e.finishDraft=function(o,n){var a=o&&o[j],i=a.A;return $n(i,n),Wn(void 0,i)},e.setAutoFreeze=function(o){this.D=o},e.setUseProxies=function(o){o&&!zi&&ue(20),this.O=o},e.applyPatches=function(o,n){var a;for(a=n.length-1;a>=0;a--){var i=n[a];if(i.path.length===0&&i.op==="replace"){o=i.value;break}}a>-1&&(n=n.slice(a+1));var s=Se("Patches").$;return Te(o)?s(o,n):this.produce(o,function(c){return s(c,n)})},t}(),de=new ud,fd=de.produce,Om=de.produceWithPatches.bind(de),Em=de.setAutoFreeze.bind(de),Cm=de.setUseProxies.bind(de),wm=de.applyPatches.bind(de),Am=de.createDraft.bind(de),Rm=de.finishDraft.bind(de),Gr=fd;function lt(t){"@babel/helpers - typeof";return lt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},lt(t)}function Yi(t,e){if(lt(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var n=o.call(t,e||"default");if(lt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Xi(t){var e=Yi(t,"string");return lt(e)=="symbol"?e:e+""}function Ji(t,e,o){return(e=Xi(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function Qi(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),o.push.apply(o,n)}return o}function Qn(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?Qi(Object(o),!0).forEach(function(n){Ji(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Qi(Object(o)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))})}return t}function ee(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var es=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),ea=function(){return Math.random().toString(36).substring(7).split("").join(".")},Vr={INIT:"@@redux/INIT"+ea(),REPLACE:"@@redux/REPLACE"+ea(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ea()}};function hd(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function ta(t,e,o){var n;if(typeof e=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(ee(0));if(typeof e=="function"&&typeof o>"u"&&(o=e,e=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(ee(1));return o(ta)(t,e)}if(typeof t!="function")throw new Error(ee(2));var a=t,i=e,s=[],c=s,d=!1;function u(){c===s&&(c=s.slice())}function h(){if(d)throw new Error(ee(3));return i}function f(v){if(typeof v!="function")throw new Error(ee(4));if(d)throw new Error(ee(5));var C=!0;return u(),c.push(v),function(){if(C){if(d)throw new Error(ee(6));C=!1,u();var R=c.indexOf(v);c.splice(R,1),s=null}}}function y(v){if(!hd(v))throw new Error(ee(7));if(typeof v.type>"u")throw new Error(ee(8));if(d)throw new Error(ee(9));try{d=!0,i=a(i,v)}finally{d=!1}for(var C=s=c,A=0;A<C.length;A++){var R=C[A];R()}return v}function b(v){if(typeof v!="function")throw new Error(ee(10));a=v,y({type:Vr.REPLACE})}function g(){var v,C=f;return v={subscribe:function(R){if(typeof R!="object"||R===null)throw new Error(ee(11));function O(){R.next&&R.next(h())}O();var x=C(O);return{unsubscribe:x}}},v[es]=function(){return this},v}return y({type:Vr.INIT}),n={dispatch:y,subscribe:f,getState:h,replaceReducer:b},n[es]=g,n}function yd(t){Object.keys(t).forEach(function(e){var o=t[e],n=o(void 0,{type:Vr.INIT});if(typeof n>"u")throw new Error(ee(12));if(typeof o(void 0,{type:Vr.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ee(13))})}function ts(t){for(var e=Object.keys(t),o={},n=0;n<e.length;n++){var a=e[n];typeof t[a]=="function"&&(o[a]=t[a])}var i=Object.keys(o),s,c;try{yd(o)}catch(d){c=d}return function(u,h){if(u===void 0&&(u={}),c)throw c;if(0)var f;for(var y=!1,b={},g=0;g<i.length;g++){var v=i[g],C=o[v],A=u[v],R=C(A,h);if(typeof R>"u"){var O=h&&h.type;throw new Error(ee(14))}b[v]=R,y=y||R!==A}return y=y||i.length!==Object.keys(u).length,y?b:u}}function _t(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function rs(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(n){return function(){var a=n.apply(void 0,arguments),i=function(){throw new Error(ee(15))},s={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},c=e.map(function(d){return d(s)});return i=_t.apply(void 0,c)(a.dispatch),Qn(Qn({},a),{},{dispatch:i})}}}function os(t){var e=function(n){var a=n.dispatch,i=n.getState;return function(s){return function(c){return typeof c=="function"?c(a,i,t):s(c)}}};return e}var ns=os();ns.withExtraArgument=os;var ra=ns;var cs=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},t(e,o)};return function(e,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");t(e,o);function n(){this.constructor=e}e.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),md=function(t,e){var o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(u){return function(h){return d([u,h])}}function d(u){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,a=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(i=o.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){o=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){o.label=u[1];break}if(u[0]===6&&o.label<i[1]){o.label=i[1],i=u;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(u);break}i[2]&&o.ops.pop(),o.trys.pop();continue}u=e.call(t,o)}catch(h){u=[6,h],a=0}finally{n=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},Tt=function(t,e){for(var o=0,n=e.length,a=t.length;o<n;o++,a++)t[a]=e[o];return t},gd=Object.defineProperty,bd=Object.defineProperties,xd=Object.getOwnPropertyDescriptors,as=Object.getOwnPropertySymbols,vd=Object.prototype.hasOwnProperty,Sd=Object.prototype.propertyIsEnumerable,is=function(t,e,o){return e in t?gd(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},ze=function(t,e){for(var o in e||(e={}))vd.call(e,o)&&is(t,o,e[o]);if(as)for(var n=0,a=as(e);n<a.length;n++){var o=a[n];Sd.call(e,o)&&is(t,o,e[o])}return t},oa=function(t,e){return bd(t,xd(e))},Od=function(t,e,o){return new Promise(function(n,a){var i=function(d){try{c(o.next(d))}catch(u){a(u)}},s=function(d){try{c(o.throw(d))}catch(u){a(u)}},c=function(d){return d.done?n(d.value):Promise.resolve(d.value).then(i,s)};c((o=o.apply(t,e)).next())})};var Ed=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?_t:_t.apply(null,arguments)},Gm=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function Cd(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var o=e;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return e===o}var wd=function(t){cs(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=t.apply(this,o)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,Tt([void 0],o[0].concat(this)))):new(e.bind.apply(e,Tt([void 0],o.concat(this))))},e}(Array),Ad=function(t){cs(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=t.apply(this,o)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,Tt([void 0],o[0].concat(this)))):new(e.bind.apply(e,Tt([void 0],o.concat(this))))},e}(Array);function ia(t){return ye(t)?Gr(t,function(){}):t}function Rd(t){return typeof t=="boolean"}function Nd(){return function(e){return _d(e)}}function _d(t){t===void 0&&(t={});var e=t.thunk,o=e===void 0?!0:e,n=t.immutableCheck,a=n===void 0?!0:n,i=t.serializableCheck,s=i===void 0?!0:i,c=new wd;if(o&&(Rd(o)?c.push(ra):c.push(ra.withExtraArgument(o.extraArgument))),0){if(a)var d;if(s)var u}return c}var na=!0;function ds(t){var e=Nd(),o=t||{},n=o.reducer,a=n===void 0?void 0:n,i=o.middleware,s=i===void 0?e():i,c=o.devTools,d=c===void 0?!0:c,u=o.preloadedState,h=u===void 0?void 0:u,f=o.enhancers,y=f===void 0?void 0:f,b;if(typeof a=="function")b=a;else if(Cd(a))b=ts(a);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var g=s;if(typeof g=="function"&&(g=g(e),!na&&!Array.isArray(g)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!na&&g.some(function(x){return typeof x!="function"}))throw new Error("each middleware provided to configureStore must be a function");var v=rs.apply(void 0,g),C=_t;d&&(C=Ed(ze({trace:!na},typeof d=="object"&&d)));var A=new Ad(v),R=A;Array.isArray(y)?R=Tt([v],y):typeof y=="function"&&(R=y(A));var O=C.apply(void 0,R);return ta(b,h,O)}function je(t,e){function o(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(e){var i=e.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return ze(ze({type:t,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:t,payload:n[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(n){return n.type===t},o}function ps(t){var e={},o=[],n,a={addCase:function(i,s){var c=typeof i=="string"?i:i.type;if(c in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[c]=s,a},addMatcher:function(i,s){return o.push({matcher:i,reducer:s}),a},addDefaultCase:function(i){return n=i,a}};return t(a),[e,o,n]}function Td(t){return typeof t=="function"}function Pd(t,e,o,n){o===void 0&&(o=[]);var a=typeof e=="function"?ps(e):[e,o,n],i=a[0],s=a[1],c=a[2],d;if(Td(t))d=function(){return ia(t())};else{var u=ia(t);d=function(){return u}}function h(f,y){f===void 0&&(f=d());var b=Tt([i[y.type]],s.filter(function(g){var v=g.matcher;return v(y)}).map(function(g){var v=g.reducer;return v}));return b.filter(function(g){return!!g}).length===0&&(b=[c]),b.reduce(function(g,v){if(v)if(Te(g)){var C=g,A=v(C,y);return A===void 0?g:A}else{if(ye(g))return Gr(g,function(R){return v(R,y)});var A=v(g,y);if(A===void 0){if(g===null)return g;throw Error("A case reducer on a non-draftable value must not return undefined")}return A}return g},f)}return h.getInitialState=d,h}function Ld(t,e){return t+"/"+e}function us(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof t.initialState=="function"?t.initialState:ia(t.initialState),n=t.reducers||{},a=Object.keys(n),i={},s={},c={};a.forEach(function(h){var f=n[h],y=Ld(e,h),b,g;"reducer"in f?(b=f.reducer,g=f.prepare):b=f,i[h]=b,s[y]=b,c[h]=g?je(y,g):je(y)});function d(){var h=typeof t.extraReducers=="function"?ps(t.extraReducers):[t.extraReducers],f=h[0],y=f===void 0?{}:f,b=h[1],g=b===void 0?[]:b,v=h[2],C=v===void 0?void 0:v,A=ze(ze({},y),s);return Pd(o,function(R){for(var O in A)R.addCase(O,A[O]);for(var x=0,E=g;x<E.length;x++){var _=E[x];R.addMatcher(_.matcher,_.reducer)}C&&R.addDefaultCase(C)})}var u;return{name:e,reducer:function(h,f){return u||(u=d()),u(h,f)},actions:c,caseReducers:i,getInitialState:function(){return u||(u=d()),u.getInitialState()}}}var Id="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",kd=function(t){t===void 0&&(t=21);for(var e="",o=t;o--;)e+=Id[Math.random()*64|0];return e},Dd=["name","message","stack","code"],aa=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),ss=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),Ud=function(t){if(typeof t=="object"&&t!==null){for(var e={},o=0,n=Dd;o<n.length;o++){var a=n[o];typeof t[a]=="string"&&(e[a]=t[a])}return e}return{message:String(t)}},qm=function(){function t(e,o,n){var a=je(e+"/fulfilled",function(h,f,y,b){return{payload:h,meta:oa(ze({},b||{}),{arg:y,requestId:f,requestStatus:"fulfilled"})}}),i=je(e+"/pending",function(h,f,y){return{payload:void 0,meta:oa(ze({},y||{}),{arg:f,requestId:h,requestStatus:"pending"})}}),s=je(e+"/rejected",function(h,f,y,b,g){return{payload:b,error:(n&&n.serializeError||Ud)(h||"Rejected"),meta:oa(ze({},g||{}),{arg:y,requestId:f,rejectedWithValue:!!b,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),c=!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 u(h){return function(f,y,b){var g=n?.idGenerator?n.idGenerator(h):kd(),v=new d,C,A=!1;function R(x){C=x,v.abort()}var O=function(){return Od(this,null,function(){var x,E,_,I,B,U,T;return md(this,function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),I=(x=n?.condition)==null?void 0:x.call(n,h,{getState:y,extra:b}),Bd(I)?[4,I]:[3,2];case 1:I=m.sent(),m.label=2;case 2:if(I===!1||v.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return A=!0,B=new Promise(function(S,N){return v.signal.addEventListener("abort",function(){return N({name:"AbortError",message:C||"Aborted"})})}),f(i(g,h,(E=n?.getPendingMeta)==null?void 0:E.call(n,{requestId:g,arg:h},{getState:y,extra:b}))),[4,Promise.race([B,Promise.resolve(o(h,{dispatch:f,getState:y,extra:b,requestId:g,signal:v.signal,abort:R,rejectWithValue:function(S,N){return new aa(S,N)},fulfillWithValue:function(S,N){return new ss(S,N)}})).then(function(S){if(S instanceof aa)throw S;return S instanceof ss?a(S.payload,g,h,S.meta):a(S,g,h)})])];case 3:return _=m.sent(),[3,5];case 4:return U=m.sent(),_=U instanceof aa?s(null,g,h,U.payload,U.meta):s(U,g,h),[3,5];case 5:return T=n&&!n.dispatchConditionRejection&&s.match(_)&&_.meta.condition,T||f(_),[2,_]}})})}();return Object.assign(O,{abort:R,requestId:g,arg:h,unwrap:function(){return O.then(Md)}})}}return Object.assign(u,{pending:i,rejected:s,fulfilled:a,typePrefix:e})}return t.withTypes=function(){return t},t}();function Md(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Bd(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var fs="listener",hs="completed",ys="cancelled",Ym="task-"+ys,Xm="task-"+hs,Jm=fs+"-"+ys,Qm=fs+"-"+hs;var sa="listenerMiddleware";var eg=je(sa+"/add"),tg=je(sa+"/removeAll"),rg=je(sa+"/remove");var ls,og=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(ls||(ls=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},$d=function(t){return function(e){setTimeout(e,t)}},ng=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:$d(10);Ki();window.ftReduxStores||(window.ftReduxStores={});var la=class t extends et{static get(e){var o;let n=typeof e=="string"?e:e.name,a=typeof e=="string"?void 0:e,i=window.ftReduxStores[n];if(at(i))return i;if(a==null)return;let s=us({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),c=ds({reducer:(d,u)=>u.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__")?{...d,...u.overwrites}:s.reducer(d,u)});return window.ftReduxStores[a.name]=new t(s,c,a.eventBus)}constructor(e,o,n){super(),this.reduxSlice=e,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new br;let a=i=>i!=null?JSON.parse(JSON.stringify(i)):i;this.actions=new Proxy(this.reduxSlice.actions,{get:(i,s,c)=>{let d=s,u=i[d];return u?(...h)=>{let f=u(...h.map(a));return this.reduxStore.dispatch(f),f}:h=>{this.setState({[d]:a(h)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};function Wd(){var t;for(let e of Object.values((t=window.ftReduxStores)!==null&&t!==void 0?t:{}))at(e)&&e.clear()}var Kr=class{constructor(e,o,n){this.store=e,this.valueSelector=o,this.callback=n}watch(){return this.stop(),this.lastValue=this.valueSelector(this.store.getState()),this.unsubscribe=this.store.subscribe(()=>{let e=this.store.getState(),o=this.valueSelector(e);tt(this.lastValue,o)&&(this.callback(o,e),this.lastValue=o)}),this}stop(){return this.unsubscribe!=null&&(this.unsubscribe(),this.unsubscribe=void 0),this.lastValue=void 0,this}};function Fd(t,e,o){return new Kr(t,e,o).watch()}var ua={};W(ua,{scrollHelper:()=>Hd});var da,Zr=new Map,pa=class{lock(e,o){if(o){let n=Zr.get(o);if(n==null||n===e)return Zr.set(o,e),o}}release(e,o){o&&Zr.get(o)===e&&Zr.delete(o)}findFirstScrollableParent(e){var o;let n,a;for(let i of Io(e)){let s=i,c=this.elementCanScroll(s);if(c&&s.clientHeight&&s.clientHeight<s.scrollHeight){n=s;break}else c&&a==null&&(a=s)}return(o=n??a)!==null&&o!==void 0?o:document.body}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)}catch{return!1}}getAbsoluteScrollOffset(e,o){var n,a;let i=0;for(;o&&o.offsetParent!==e.offsetParent;)i+=(n=o.offsetTop)!==null&&n!==void 0?n:0,o=o.offsetParent;return i+((a=o?.offsetTop)!==null&&a!==void 0?a:0)-e.offsetTop}computeTopOffsetRatio(e,o){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return o;default:return 0}}scrollIntoViewIfPossible(e,o){let n=this.findFirstScrollableParent(e);if(e&&this.lock(this,n)){let a=this.getAbsoluteScrollOffset(n,e),i=a-n.clientHeight+e.clientHeight,s=a,c=sr(0,(s-n.scrollTop)/(s-i),1),d=this.computeTopOffsetRatio(o?.position,c)*(i-s)+s;n.scrollTo({behavior:o?.behavior,top:d})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,n);this.release(this,n)}};window.FluidTopicsScrollHelper=(da=window.FluidTopicsScrollHelper)!==null&&da!==void 0?da:new pa;var Hd=window.FluidTopicsScrollHelper;var fa={};W(fa,{shadowQuerySelector:()=>zd,shadowQuerySelectorAll:()=>jd});function zd(t,e,...o){var n;let a=t.querySelector(e);for(let i of o)a=(n=a?.shadowRoot)===null||n===void 0?void 0:n.querySelector(i);return a}function jd(t,e,...o){let n=[...t.querySelectorAll(e)];for(let a of o)n=n.flatMap(i=>{var s,c;return[...(c=(s=i.shadowRoot)===null||s===void 0?void 0:s.querySelectorAll(a))!==null&&c!==void 0?c:[]]});return n}var ya={};W(ya,{SearchPlaceConverter:()=>Xr,SearchPlaceQueryParams:()=>F,isSearchPlaceQueryParams:()=>zs,serializeRequest:()=>Kd});var Gd=Cl(gs(),1);var bs;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(bs||(bs={}));var xs;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(xs||(xs={}));var vs;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.MAP_ATTACHMENT="MAP_ATTACHMENT",t.RESOURCE="RESOURCE"})(vs||(vs={}));var Ss;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Ss||(Ss={}));var Os;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(Os||(Os={}));var Es;(function(t){t.BOOKMARK__CREATE="BOOKMARK__CREATE",t.BOOKMARK__DELETE="BOOKMARK__DELETE",t.CASE_DEFLECTION__START="CASE_DEFLECTION__START",t.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",t.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",t.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",t.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",t.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",t.DOCUMENT__PRINT="DOCUMENT__PRINT",t.DOCUMENT__PROCESS="DOCUMENT__PROCESS",t.DOCUMENT__RATE="DOCUMENT__RATE",t.DOCUMENT__SEARCH="DOCUMENT__SEARCH",t.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",t.DOCUMENT__UNRATE="DOCUMENT__UNRATE",t.FEEDBACK__SEND="FEEDBACK__SEND",t.GEN_AI__COMPLETED_QUERY="GEN_AI__COMPLETED_QUERY",t.GEN_AI__RATE="GEN_AI__RATE",t.GENAI_CASE_DEFLECTION__START="GENAI_CASE_DEFLECTION__START",t.GENAI_CASE_DEFLECTION__OPEN_TICKET="GENAI_CASE_DEFLECTION__OPEN_TICKET",t.KHUB__PROCESS="KHUB__PROCESS",t.KHUB__SEARCH="KHUB__SEARCH",t.LABELS__DOWNLOAD="LABELS__DOWNLOAD",t.LINK__SHARE="LINK__SHARE",t.PAGE__DISPLAY="PAGE__DISPLAY",t.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",t.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",t.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",t.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",t.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",t.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",t.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",t.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",t.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",t.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",t.TOPIC__DISPLAY="TOPIC__DISPLAY",t.TOPIC__RATE="TOPIC__RATE",t.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",t.TOPIC__UNRATE="TOPIC__UNRATE",t.USER__LOGIN="USER__LOGIN",t.USER__LOGOUT="USER__LOGOUT",t.HEARTBEAT="HEARTBEAT"})(Es||(Es={}));var Cs;(function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"})(Cs||(Cs={}));var ws;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT"})(ws||(ws={}));var As;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(As||(As={}));var Rs;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Rs||(Rs={}));var Ns;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Ns||(Ns={}));var _s;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(_s||(_s={}));var Ts;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"})(Ts||(Ts={}));var Ps;(function(t){t.ASC="ASC",t.DESC="DESC"})(Ps||(Ps={}));var Ls;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Ls||(Ls={}));var ha;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(ha||(ha={}));var Bs=t=>Object.keys(ha).includes(t);var Is;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"})(Is||(Is={}));var ks;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(ks||(ks={}));var Ds;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"})(Ds||(Ds={}));var Lt;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Lt||(Lt={}));var $s=t=>Object.keys(Lt).includes(t);var Us;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"})(Us||(Us={}));var Ms;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Ms||(Ms={}));var Z;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN",t.DEVELOPER="DEVELOPER"})(Z||(Z={}));var Ws;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Ws||(Ws={}));var Fs;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Fs||(Fs={}));var wg={[Z.PERSONAL_BOOK_SHARE_USER]:[Z.PERSONAL_BOOK_USER],[Z.HTML_EXPORT_USER]:[Z.PERSONAL_BOOK_USER],[Z.PDF_EXPORT_USER]:[Z.PERSONAL_BOOK_USER],[Z.KHUB_ADMIN]:[Z.CONTENT_PUBLISHER],[Z.ADMIN]:[Z.KHUB_ADMIN,Z.USERS_ADMIN,Z.PORTAL_ADMIN],[Z.DEVELOPER]:[Z.BETA_USER,Z.DEBUG_USER],[Z.GENERATIVE_AI_EXPORT_USER]:[Z.GENERATIVE_AI_USER]};function Vd(t){return`"${t}"`}function Hs(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function Kd(t,e){return new Xr(t).serialize(e)}var F;(function(t){t.LOCALE="content-lang",t.QUERY="query",t.SCOPE="scope",t.FILTERS="filters",t.VIRTUAL_FIELD="virtual-field",t.PERIOD="period",t.VALUE_FILTERS="value-filters",t.DATE_FILTERS="date-filters",t.RANGE_FILTERS="range-filters",t.SORT="sort",t.PER_PAGE="per-page"})(F||(F={}));var Zd=new Set(Object.values(F));function zs(t){return Zd.has(t)}var Xr=class{constructor(e,o={},n=20,a=!1,i="en-US"){this.baseUrl=e,this.predefinedSorts=o,this.defaultPerPage=n,this.allLanguagesAllowed=a,this.defaultContentLocale=i,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"},this.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]]}serialize(e,o){return this.serializeToCurrentPageIfPossible(e,o??"/search")}serializeToCurrentPageIfPossible(e,o){let n=this.toURLSearchParams(e).toString(),a=o==null||o.trim().length===0,i=new URL(a?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${o}`);return i.search=n,i.toString()}toURLSearchParams(e,o=!1){var n,a,i,s,c,d,u,h,f,y,b,g;let v=new URLSearchParams;e.contentLocale?(!o||e.contentLocale!==this.defaultContentLocale)&&v.append(F.LOCALE,e.contentLocale):v.append(F.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((n=e.query)===null||n===void 0?void 0:n.length)>0&&v.append(F.QUERY,encodeURIComponent(e.query)),e.scope&&e.scope!=="DEFAULT"&&v.append(F.SCOPE,e.scope.toLowerCase()),e.virtualField&&e.virtualField!=="EVERYWHERE"&&v.append(F.VIRTUAL_FIELD,e.virtualField.toLowerCase()),((a=e.sort)===null||a===void 0?void 0:a.length)>0&&e.sort[0].key==="ft:lastEdition"&&v.append(F.SORT,"last_update");let C=(s=(i=e.metadataFilters)===null||i===void 0?void 0:i.filter(x=>x.valueFilter))!==null&&s!==void 0?s:[];if(C.length>0){let x=C.map(E=>{var _,I;let B=((I=(_=E.valueFilter)===null||_===void 0?void 0:_.values)!==null&&I!==void 0?I:[]).map(U=>this.escapeFilters(U)).map(U=>encodeURIComponent(Vd(Hs(U)))).join("_");return`${E.key}~${B}`}).join("*");v.append(F.VALUE_FILTERS,x)}let A=(d=(c=e.metadataFilters)===null||c===void 0?void 0:c.filter(x=>x.dateFilter))!==null&&d!==void 0?d:[];if(A.length>0){let x=A.map(E=>{var _;return`${E.key}~${(_=E.dateFilter)===null||_===void 0?void 0:_.type.toLowerCase()}`}).join("*");v.append(F.DATE_FILTERS,x)}let R=(h=(u=e.metadataFilters)===null||u===void 0?void 0:u.filter(x=>x.rangeFilter))!==null&&h!==void 0?h:[];if(R.length>0){let x=R.map(E=>{var _,I;return`${E.key}~${(_=E.rangeFilter)===null||_===void 0?void 0:_.from}_${(I=E.rangeFilter)===null||I===void 0?void 0:I.to}`}).join("*");v.append(F.RANGE_FILTERS,x)}let O=(f=e.otherQueryParams)!==null&&f!==void 0?f:{};for(let x in O)v.append(x,O[x]);return!((y=e.paging)===null||y===void 0)&&y.perPage&&((g=(b=e.paging)===null||b===void 0?void 0:b.perPage)!==null&&g!==void 0?g:this.defaultPerPage)!=this.defaultPerPage&&v.append(F.PER_PAGE,String(e.paging.perPage)),v}parse(e){var o;let n=e.split("?"),a=this.fromURLSearchParams(new URLSearchParams(n.slice(1).join("?"))),i=n[0].split("/search/")[1];return i==null?a:{...a,scope:(o=this.scopeMapping[i])!==null&&o!==void 0?o:a.scope}}fromURLSearchParams(e){var o,n,a,i,s,c,d,u;let h=e.get(F.LOCALE)==="all"?void 0:e.get(F.LOCALE),f=((o=e.get(F.VIRTUAL_FIELD))!==null&&o!==void 0?o:"EVERYWHERE").toUpperCase(),y=((n=e.get(F.SORT))!==null&&n!==void 0?n:"DEFAULT").toUpperCase(),b=(a=e.get(F.SCOPE))!==null&&a!==void 0?a:"default",g=+((i=e.get(F.PER_PAGE))!==null&&i!==void 0?i:this.defaultPerPage),v={};for(let C of e.keys())zs(C)||(v[C]=e.get(C));return{contentLocale:h??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:decodeURIComponent((s=e.get(F.QUERY))!==null&&s!==void 0?s:""),scope:(c=this.scopeMapping[b])!==null&&c!==void 0?c:"DEFAULT",virtualField:Bs(f)?f:"EVERYWHERE",sort:(u=(d=this.predefinedSorts[y])!==null&&d!==void 0?d:this.predefinedSorts.DEFAULT)!==null&&u!==void 0?u:[],metadataFilters:this.parseCompatFilters(e),facets:[],paging:{page:1,perPage:sr(1,isNaN(g)?this.defaultPerPage:g,1e3)},otherQueryParams:v}}parseCompatFilters(e){var o,n,a,i,s,c;let d=[];return e.has(F.FILTERS)&&(d=this.parseValueFilters((o=e.get(F.FILTERS))!==null&&o!==void 0?o:"")),(n=e.has(F.PERIOD))!==null&&n!==void 0&&n&&(d=[...d,...this.parseLegacyPeriodFilter(((a=e.get(F.PERIOD))!==null&&a!==void 0?a:"").toUpperCase())]),[...d,...this.parseValueFilters((i=e.get(F.VALUE_FILTERS))!==null&&i!==void 0?i:""),...this.parseDateFilters((s=e.get(F.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((c=e.get(F.RANGE_FILTERS))!==null&&c!==void 0?c:"")]}splitUnknownFilter(e){return this.superEscapeFilters(decodeURIComponent(e)).split("*").map(o=>o.split("~"))}parseValueFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],valueFilter:{values:o[1].split("_").map(Hs).map(n=>this.unescapeFilterValue(n)),negative:!1}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],dateFilter:{type:Lt[o[1].toUpperCase()]}}))}parseRangeFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],rangeFilter:{from:o[1].split("_")[0],to:o[1].split("_")[1]}}))}escapeFilters(e){for(let[o,n,a]of this.filtersEscapeMapping)e=e.replaceAll(o,n);return e}superEscapeFilters(e){for(let[o,n,a]of this.filtersEscapeMapping)e=e.replaceAll(n,a);return e}unescapeFilterValue(e){for(let[o,n,a]of this.filtersEscapeMapping)e=e.replace(a,o);return e}parseLegacyPeriodFilter(e){if($s(e))return[{key:"ft:lastEdition",dateFilter:{type:Lt[e]}}];if(e.startsWith("CUSTOM_")){let[o,n,a]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:n,to:a}}]}return[]}};var ma={};W(ma,{toFtFormComponent:()=>qd});var Jr=Symbol("elementInternals");function qd(t,e){class o extends t{static get formAssociated(){return!0}get form(){return this[Jr].form}constructor(...a){super(a),this[Jr]=this.attachInternals(),this[Jr].role=e}setFormValue(a){this[Jr].setFormValue(a)}}return o}var ba={};W(ba,{DateFormatter:()=>ga});var ga=class{static format(e,o,n,a){return window.moment?window.moment(e).locale(o).format(this.getDateFormat(n,a)):e}static getDateFormat(e,o){return e?o?"lll":"ll":o?"L LT":"L"}};var va={};W(va,{ALL_KEYS_VALUE:()=>xa,SameWindowStorageEvent:()=>It});var xa="__all__",It=class extends CustomEvent{constructor(e,o,n){super("same-window-storage",{detail:{key:e,oldValue:o,newValue:n}})}keyMatch(e){return this.detail.key.includes(e)||this.detail.key==xa}};Storage.prototype.setItem=new Proxy(Storage.prototype.setItem,{apply(t,e,o){let n=e.getItem(o[0]);Reflect.apply(t,e,o),window.dispatchEvent(new It(o[0],n,o[1]))}});Storage.prototype.removeItem=new Proxy(Storage.prototype.removeItem,{apply(t,e,o){let n=e.getItem(o[0]);Reflect.apply(t,e,o),window.dispatchEvent(new It(o[0],n))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(t,e,o){Reflect.apply(t,e,o),window.dispatchEvent(new It(xa))}});var Sa,Oa,Ea,Ca,Yd=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((Ea=(Oa=(Sa=window.safari)===null||Sa===void 0?void 0:Sa.pushNotification)===null||Oa===void 0?void 0:Oa.toString())!==null&&Ea!==void 0?Ea:"")==="[object SafariRemoteNotification]",Xd="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(Ca=window.ftGlobals)!==null&&Ca!==void 0?Ca:{lit:yo,litDecorators:go,litRepeat:xo,litClassMap:vo,litStyleMap:So,litUnsafeHTML:Eo,wcUtils:{..._o,...wo,...Po,...ba,...Lo,...Mo,...fn,...Ro,...Nn,...un,...Ln,...Tn,...Li,...ko,...kn,...Un,...ki,...Bn,...ca,..._n,...ua,...fa,...ya,...ma,...va,isSafari:Yd,isTouchScreen:Xd,setVariable:bt}};var Pe=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(i=(a<3?s(i):a>3?s(e,o,i):s(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},te=class extends G{constructor(){super(...arguments),this.label="",this.icon="",this.active=!1,this.disabled=!1,this.uniqueId=(""+Math.floor(Math.random()*1e5)).padStart(5,"0")}render(){return J`
49
49
  <style>
50
50
  :host {
51
51
  display: ${Ee(this.active?"block":"none")};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-tabs",
3
- "version": "1.2.44",
3
+ "version": "1.2.46",
4
4
  "description": "Generic tabs component",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,12 +19,12 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-icon": "1.2.44",
23
- "@fluid-topics/ft-ripple": "1.2.44",
24
- "@fluid-topics/ft-tooltip": "1.2.44",
25
- "@fluid-topics/ft-typography": "1.2.44",
26
- "@fluid-topics/ft-wc-utils": "1.2.44",
22
+ "@fluid-topics/ft-icon": "1.2.46",
23
+ "@fluid-topics/ft-ripple": "1.2.46",
24
+ "@fluid-topics/ft-tooltip": "1.2.46",
25
+ "@fluid-topics/ft-typography": "1.2.46",
26
+ "@fluid-topics/ft-wc-utils": "1.2.46",
27
27
  "lit": "3.1.0"
28
28
  },
29
- "gitHead": "9cbc1788339e7a5d3d4dc94c36ec5a28f31dba6c"
29
+ "gitHead": "6f4b20e9b729890b8af13cb79dfc6ed07d4389b0"
30
30
  }