@fluid-topics/ft-in-product-help 1.2.44 → 1.2.45
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.`,c.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
45
45
|
input::-webkit-search-results-decoration {
|
|
46
46
|
display: none;
|
|
47
47
|
}
|
|
48
|
-
`;var zi={};var Zn={};G(Zn,{ParametrizedLabelResolver:()=>Kn});var Kn=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 xa={};G(xa,{FtCommandQueue:()=>Cr,FtLitElementRedux:()=>Ut,FtReduxStore:()=>ba,ReduxWatcher:()=>ro,clearAllStores:()=>rp,isFtReduxStore:()=>St,redux:()=>bd,reduxEventListener:()=>xd,reduxReactive:()=>gd,watch:()=>op});var gd=()=>(t,e)=>{var o;let n=t.constructor;n.reduxReactiveProperties=new Set(n.reduxReactiveProperties),(o=n.reduxReactiveProperties)===null||o===void 0||o.add(e)},bd=t=>{let e=t??{};return(o,n)=>{var a;let i={hasChanged:yt,attribute:!1,...e};A(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:l=>l[n],store:e.store})}},xd=t=>(e,o)=>{let n=e.constructor;n.reduxEventListeners=new Map(n.reduxEventListeners),n.reduxEventListeners.set(o,t)};var Cr=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 St(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Gi,ji,Vi,wr=Symbol("internalReduxEventsUnsubscribers"),et=Symbol("internalStoresUnsubscribers"),Ot=Symbol("internalStores"),Ut=class extends K{constructor(){super(...arguments),this[Gi]=new Map,this[ji]=new Map,this[Vi]=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[Ot].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ot].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[Ot].get(e)}addStore(e,o){var n;o=(n=o??(St(e)?e.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(o),this[Ot].set(o,e),this.subscribeToStore(o,e),this.updateFromStores()}removeStore(e){let o=typeof e=="string"?e:e.name;this.unsubscribeFromStore(o),this[Ot].delete(o)}setupStores(){this.unsubscribeFromStores(),this[Ot].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[et].has(e.store):this[et].size>0)&&(this[o]=e.selector(a.getState(),this))}})}subscribeToStore(e,o){var n;this[et].set(e,o.subscribe(()=>this.updateFromStores())),this[wr].set(e,[]),St(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=l=>this[i](l);o.addEventListener(a.eventName,s),this[wr].get(e).push(()=>o.removeEventListener(a.eventName,s))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[et].forEach((e,o)=>this.unsubscribeFromStore(o))}unsubscribeFromStore(e){var o;this[et].has(e)&&this[et].get(e)(),this[et].delete(e),(o=this[wr].get(e))===null||o===void 0||o.forEach(n=>n()),this[wr].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Gi=et,ji=Ot,Vi=wr;Ut.reduxProperties=new Map;Ut.reduxReactiveProperties=new Set;Ut.reduxEventListeners=new Map;function Oe(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 Ge(t){return!!t&&!!t[Y]}function we(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)===Rd}(t)||Array.isArray(t)||!!t[Qi]||!!(!((e=t.constructor)===null||e===void 0)&&e[Qi])||oa(t)||na(t))}function Et(t,e,o){o===void 0&&(o=!1),Ht(t)===0?(o?Object.keys:Ft)(t).forEach(function(n){o&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,a){return e(a,n,t)})}function Ht(t){var e=t[Y];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:oa(t)?2:na(t)?3:0}function Wt(t,e){return Ht(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function vd(t,e){return Ht(t)===2?t.get(e):t[e]}function es(t,e,o){var n=Ht(t);n===2?t.set(e,o):n===3?t.add(o):t[e]=o}function ts(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function oa(t){return wd&&t instanceof Map}function na(t){return Ad&&t instanceof Set}function tt(t){return t.o||t.t}function aa(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=ns(t);delete e[Y];for(var o=Ft(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 ia(t,e){return e===void 0&&(e=!1),sa(t)||Ge(t)||!we(t)||(Ht(t)>1&&(t.set=t.add=t.clear=t.delete=Sd),Object.freeze(t),e&&Et(t,function(o,n){return ia(n,!0)},!0)),t}function Sd(){Oe(2)}function sa(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function Ie(t){var e=ra[t];return e||Oe(18,t),e}function Od(t,e){ra[t]||(ra[t]=e)}function Qn(){return Rr}function qn(t,e){e&&(Ie("Patches"),t.u=[],t.s=[],t.v=e)}function Xr(t){ea(t),t.p.forEach(Ed),t.p=null}function ea(t){t===Rr&&(Rr=t.l)}function Ki(t){return Rr={p:[],l:Rr,h:t,m:!0,_:0}}function Ed(t){var e=t[Y];e.i===0||e.i===1?e.j():e.g=!0}function Yn(t,e){e._=e.p.length;var o=e.p[0],n=t!==void 0&&t!==o;return e.h.O||Ie("ES5").S(e,t,n),n?(o[Y].P&&(Xr(e),Oe(4)),we(t)&&(t=Jr(e,t),e.l||Qr(e,t)),e.u&&Ie("Patches").M(o[Y].t,t,e.u,e.s)):t=Jr(e,o,[]),Xr(e),e.u&&e.v(e.u,e.s),t!==os?t:void 0}function Jr(t,e,o){if(sa(e))return e;var n=e[Y];if(!n)return Et(e,function(l,d){return Zi(t,n,e,l,d,o)},!0),e;if(n.A!==t)return e;if(!n.P)return Qr(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=aa(n.k):n.o,i=a,s=!1;n.i===3&&(i=new Set(a),a.clear(),s=!0),Et(i,function(l,d){return Zi(t,n,a,l,d,o,s)}),Qr(t,a,!1),o&&t.u&&Ie("Patches").N(n,o,t.u,t.s)}return n.o}function Zi(t,e,o,n,a,i,s){if(Ge(a)){var l=Jr(t,a,i&&e&&e.i!==3&&!Wt(e.R,n)?i.concat(n):void 0);if(es(o,n,l),!Ge(l))return;t.m=!1}else s&&o.add(a);if(we(a)&&!sa(a)){if(!t.h.D&&t._<1)return;Jr(t,a),e&&e.A.l||Qr(t,a)}}function Qr(t,e,o){o===void 0&&(o=!1),!t.l&&t.h.D&&t.m&&ia(e,o)}function Xn(t,e){var o=t[Y];return(o?tt(o):t)[e]}function qi(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 rt(t){t.P||(t.P=!0,t.l&&rt(t.l))}function Jn(t){t.o||(t.o=aa(t.t))}function ta(t,e,o){var n=oa(e)?Ie("MapSet").F(e,o):na(e)?Ie("MapSet").T(e,o):t.O?function(a,i){var s=Array.isArray(a),l={i:s?1:0,A:i?i.A:Qn(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},d=l,u=Nr;s&&(d=[l],u=Ar);var h=Proxy.revocable(d,u),f=h.revoke,g=h.proxy;return l.k=g,l.j=f,g}(e,o):Ie("ES5").J(e,o);return(o?o.A:Qn()).p.push(n),n}function Cd(t){return Ge(t)||Oe(22,t),function e(o){if(!we(o))return o;var n,a=o[Y],i=Ht(o);if(a){if(!a.P&&(a.i<4||!Ie("ES5").K(a)))return a.t;a.I=!0,n=Yi(o,i),a.I=!1}else n=Yi(o,i);return Et(n,function(s,l){a&&vd(a.t,s)===l||es(n,s,e(l))}),i===3?new Set(n):n}(t)}function Yi(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return aa(t)}function rs(){function t(s,l){var d=i[s];return d?d.enumerable=l:i[s]=d={configurable:!0,enumerable:l,get:function(){var u=this[Y];return Nr.get(u,s)},set:function(u){var h=this[Y];Nr.set(h,s,u)}},d}function e(s){for(var l=s.length-1;l>=0;l--){var d=s[l][Y];if(!d.P)switch(d.i){case 5:n(d)&&rt(d);break;case 4:o(d)&&rt(d)}}}function o(s){for(var l=s.t,d=s.k,u=Ft(d),h=u.length-1;h>=0;h--){var f=u[h];if(f!==Y){var g=l[f];if(g===void 0&&!Wt(l,f))return!0;var x=d[f],b=x&&x[Y];if(b?b.t!==g:!ts(x,g))return!0}}var O=!!l[Y];return u.length!==Ft(l).length+(O?0:1)}function n(s){var l=s.k;if(l.length!==s.t.length)return!0;var d=Object.getOwnPropertyDescriptor(l,l.length-1);if(d&&!d.get)return!0;for(var u=0;u<l.length;u++)if(!l.hasOwnProperty(u))return!0;return!1}function a(s){s.g&&Oe(3,JSON.stringify(tt(s)))}var i={};Od("ES5",{J:function(s,l){var d=Array.isArray(s),u=function(f,g){if(f){for(var x=Array(g.length),b=0;b<g.length;b++)Object.defineProperty(x,""+b,t(b,!0));return x}var O=ns(g);delete O[Y];for(var N=Ft(O),_=0;_<N.length;_++){var L=N[_];O[L]=t(L,f||!!O[L].enumerable)}return Object.create(Object.getPrototypeOf(g),O)}(d,s),h={i:d?5:4,A:l?l.A:Qn(),P:!1,I:!1,R:{},l,t:s,k:u,o:null,g:!1,C:!1};return Object.defineProperty(u,Y,{value:h,writable:!0}),u},S:function(s,l,d){d?Ge(l)&&l[Y].A===s&&e(s.p):(s.u&&function u(h){if(h&&typeof h=="object"){var f=h[Y];if(f){var g=f.t,x=f.k,b=f.R,O=f.i;if(O===4)Et(x,function(v){v!==Y&&(g[v]!==void 0||Wt(g,v)?b[v]||u(x[v]):(b[v]=!0,rt(f)))}),Et(g,function(v){x[v]!==void 0||Wt(x,v)||(b[v]=!1,rt(f))});else if(O===5){if(n(f)&&(rt(f),b.length=!0),x.length<g.length)for(var N=x.length;N<g.length;N++)b[N]=!1;else for(var _=g.length;_<x.length;_++)b[_]=!0;for(var L=Math.min(x.length,g.length),E=0;E<L;E++)x.hasOwnProperty(E)||(b[E]=!0),b[E]===void 0&&u(x[E])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?o(s):n(s)}})}var Xi,Rr,ca=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",wd=typeof Map<"u",Ad=typeof Set<"u",Ji=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",os=ca?Symbol.for("immer-nothing"):((Xi={})["immer-nothing"]=!0,Xi),Qi=ca?Symbol.for("immer-draftable"):"__$immer_draftable",Y=ca?Symbol.for("immer-state"):"__$immer_state";var Rd=""+Object.prototype.constructor,Ft=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,ns=Object.getOwnPropertyDescriptors||function(t){var e={};return Ft(t).forEach(function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)}),e},ra={},Nr={get:function(t,e){if(e===Y)return t;var o=tt(t);if(!Wt(o,e))return function(a,i,s){var l,d=qi(i,s);return d?"value"in d?d.value:(l=d.get)===null||l===void 0?void 0:l.call(a.k):void 0}(t,o,e);var n=o[e];return t.I||!we(n)?n:n===Xn(t.t,e)?(Jn(t),t.o[e]=ta(t.A.h,n,t)):n},has:function(t,e){return e in tt(t)},ownKeys:function(t){return Reflect.ownKeys(tt(t))},set:function(t,e,o){var n=qi(tt(t),e);if(n?.set)return n.set.call(t.k,o),!0;if(!t.P){var a=Xn(tt(t),e),i=a?.[Y];if(i&&i.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(ts(o,a)&&(o!==void 0||Wt(t.t,e)))return!0;Jn(t),rt(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 Xn(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,Jn(t),rt(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=tt(t),n=Reflect.getOwnPropertyDescriptor(o,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:o[e]}},defineProperty:function(){Oe(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Oe(12)}},Ar={};Et(Nr,function(t,e){Ar[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),Ar.deleteProperty=function(t,e){return Ar.set.call(this,t,e,void 0)},Ar.set=function(t,e,o){return Nr.set.call(this,t[0],e,o,t[0])};var Nd=function(){function t(o){var n=this;this.O=Ji,this.D=!0,this.produce=function(a,i,s){if(typeof a=="function"&&typeof i!="function"){var l=i;i=a;var d=n;return function(O){var N=this;O===void 0&&(O=l);for(var _=arguments.length,L=Array(_>1?_-1:0),E=1;E<_;E++)L[E-1]=arguments[E];return d.produce(O,function(v){var C;return(C=i).call.apply(C,[N,v].concat(L))})}}var u;if(typeof i!="function"&&Oe(6),s!==void 0&&typeof s!="function"&&Oe(7),we(a)){var h=Ki(n),f=ta(n,a,void 0),g=!0;try{u=i(f),g=!1}finally{g?Xr(h):ea(h)}return typeof Promise<"u"&&u instanceof Promise?u.then(function(O){return qn(h,s),Yn(O,h)},function(O){throw Xr(h),O}):(qn(h,s),Yn(u,h))}if(!a||typeof a!="object"){if((u=i(a))===void 0&&(u=a),u===os&&(u=void 0),n.D&&ia(u,!0),s){var x=[],b=[];Ie("Patches").M(a,u,x,b),s(x,b)}return u}Oe(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),g=1;g<h;g++)f[g-1]=arguments[g];return n.produceWithPatches(u,function(x){return a.apply(void 0,[x].concat(f))})};var s,l,d=n.produce(a,i,function(u,h){s=u,l=h});return typeof Promise<"u"&&d instanceof Promise?d.then(function(u){return[u,s,l]}):[d,s,l]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var e=t.prototype;return e.createDraft=function(o){we(o)||Oe(8),Ge(o)&&(o=Cd(o));var n=Ki(this),a=ta(this,o,void 0);return a[Y].C=!0,ea(n),a},e.finishDraft=function(o,n){var a=o&&o[Y],i=a.A;return qn(i,n),Yn(void 0,i)},e.setAutoFreeze=function(o){this.D=o},e.setUseProxies=function(o){o&&!Ji&&Oe(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=Ie("Patches").$;return Ge(o)?s(o,n):this.produce(o,function(l){return s(l,n)})},t}(),xe=new Nd,Td=xe.produce,Dm=xe.produceWithPatches.bind(xe),Mm=xe.setAutoFreeze.bind(xe),$m=xe.setUseProxies.bind(xe),Bm=xe.applyPatches.bind(xe),Um=xe.createDraft.bind(xe),Wm=xe.finishDraft.bind(xe),eo=Td;function Ct(t){"@babel/helpers - typeof";return Ct=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ct(t)}function as(t,e){if(Ct(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var n=o.call(t,e||"default");if(Ct(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function is(t){var e=as(t,"string");return Ct(e)=="symbol"?e:e+""}function ss(t,e,o){return(e=is(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function cs(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 la(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?cs(Object(o),!0).forEach(function(n){ss(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):cs(Object(o)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))})}return t}function ue(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 ls=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),da=function(){return Math.random().toString(36).substring(7).split("").join(".")},to={INIT:"@@redux/INIT"+da(),REPLACE:"@@redux/REPLACE"+da(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+da()}};function _d(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 pa(t,e,o){var n;if(typeof e=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(ue(0));if(typeof e=="function"&&typeof o>"u"&&(o=e,e=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(ue(1));return o(pa)(t,e)}if(typeof t!="function")throw new Error(ue(2));var a=t,i=e,s=[],l=s,d=!1;function u(){l===s&&(l=s.slice())}function h(){if(d)throw new Error(ue(3));return i}function f(O){if(typeof O!="function")throw new Error(ue(4));if(d)throw new Error(ue(5));var N=!0;return u(),l.push(O),function(){if(N){if(d)throw new Error(ue(6));N=!1,u();var L=l.indexOf(O);l.splice(L,1),s=null}}}function g(O){if(!_d(O))throw new Error(ue(7));if(typeof O.type>"u")throw new Error(ue(8));if(d)throw new Error(ue(9));try{d=!0,i=a(i,O)}finally{d=!1}for(var N=s=l,_=0;_<N.length;_++){var L=N[_];L()}return O}function x(O){if(typeof O!="function")throw new Error(ue(10));a=O,g({type:to.REPLACE})}function b(){var O,N=f;return O={subscribe:function(L){if(typeof L!="object"||L===null)throw new Error(ue(11));function E(){L.next&&L.next(h())}E();var v=N(E);return{unsubscribe:v}}},O[ls]=function(){return this},O}return g({type:to.INIT}),n={dispatch:g,subscribe:f,getState:h,replaceReducer:x},n[ls]=b,n}function Ld(t){Object.keys(t).forEach(function(e){var o=t[e],n=o(void 0,{type:to.INIT});if(typeof n>"u")throw new Error(ue(12));if(typeof o(void 0,{type:to.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ue(13))})}function ds(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,l;try{Ld(o)}catch(d){l=d}return function(u,h){if(u===void 0&&(u={}),l)throw l;if(0)var f;for(var g=!1,x={},b=0;b<i.length;b++){var O=i[b],N=o[O],_=u[O],L=N(_,h);if(typeof L>"u"){var E=h&&h.type;throw new Error(ue(14))}x[O]=L,g=g||L!==_}return g=g||i.length!==Object.keys(u).length,g?x:u}}function zt(){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 ps(){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(ue(15))},s={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},l=e.map(function(d){return d(s)});return i=zt.apply(void 0,l)(a.dispatch),la(la({},a),{},{dispatch:i})}}}function us(t){var e=function(n){var a=n.dispatch,i=n.getState;return function(s){return function(l){return typeof l=="function"?l(a,i,t):s(l)}}};return e}var fs=us();fs.withExtraArgument=us;var ua=fs;var bs=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)}}(),Pd=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:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(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}}},Gt=function(t,e){for(var o=0,n=e.length,a=t.length;o<n;o++,a++)t[a]=e[o];return t},Id=Object.defineProperty,kd=Object.defineProperties,Dd=Object.getOwnPropertyDescriptors,hs=Object.getOwnPropertySymbols,Md=Object.prototype.hasOwnProperty,$d=Object.prototype.propertyIsEnumerable,ys=function(t,e,o){return e in t?Id(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},ot=function(t,e){for(var o in e||(e={}))Md.call(e,o)&&ys(t,o,e[o]);if(hs)for(var n=0,a=hs(e);n<a.length;n++){var o=a[n];$d.call(e,o)&&ys(t,o,e[o])}return t},fa=function(t,e){return kd(t,Dd(e))},Bd=function(t,e,o){return new Promise(function(n,a){var i=function(d){try{l(o.next(d))}catch(u){a(u)}},s=function(d){try{l(o.throw(d))}catch(u){a(u)}},l=function(d){return d.done?n(d.value):Promise.resolve(d.value).then(i,s)};l((o=o.apply(t,e)).next())})};var Ud=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?zt:zt.apply(null,arguments)},ng=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function Wd(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 Fd=function(t){bs(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,Gt([void 0],o[0].concat(this)))):new(e.bind.apply(e,Gt([void 0],o.concat(this))))},e}(Array),Hd=function(t){bs(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,Gt([void 0],o[0].concat(this)))):new(e.bind.apply(e,Gt([void 0],o.concat(this))))},e}(Array);function ma(t){return we(t)?eo(t,function(){}):t}function zd(t){return typeof t=="boolean"}function Gd(){return function(e){return jd(e)}}function jd(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,l=new Fd;if(o&&(zd(o)?l.push(ua):l.push(ua.withExtraArgument(o.extraArgument))),0){if(a)var d;if(s)var u}return l}var ha=!0;function xs(t){var e=Gd(),o=t||{},n=o.reducer,a=n===void 0?void 0:n,i=o.middleware,s=i===void 0?e():i,l=o.devTools,d=l===void 0?!0:l,u=o.preloadedState,h=u===void 0?void 0:u,f=o.enhancers,g=f===void 0?void 0:f,x;if(typeof a=="function")x=a;else if(Wd(a))x=ds(a);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var b=s;if(typeof b=="function"&&(b=b(e),!ha&&!Array.isArray(b)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!ha&&b.some(function(v){return typeof v!="function"}))throw new Error("each middleware provided to configureStore must be a function");var O=ps.apply(void 0,b),N=zt;d&&(N=Ud(ot({trace:!ha},typeof d=="object"&&d)));var _=new Hd(O),L=_;Array.isArray(g)?L=Gt([O],g):typeof g=="function"&&(L=g(_));var E=N.apply(void 0,L);return pa(x,h,E)}function nt(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 ot(ot({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 vs(t){var e={},o=[],n,a={addCase:function(i,s){var l=typeof i=="string"?i:i.type;if(l in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[l]=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 Vd(t){return typeof t=="function"}function Kd(t,e,o,n){o===void 0&&(o=[]);var a=typeof e=="function"?vs(e):[e,o,n],i=a[0],s=a[1],l=a[2],d;if(Vd(t))d=function(){return ma(t())};else{var u=ma(t);d=function(){return u}}function h(f,g){f===void 0&&(f=d());var x=Gt([i[g.type]],s.filter(function(b){var O=b.matcher;return O(g)}).map(function(b){var O=b.reducer;return O}));return x.filter(function(b){return!!b}).length===0&&(x=[l]),x.reduce(function(b,O){if(O)if(Ge(b)){var N=b,_=O(N,g);return _===void 0?b:_}else{if(we(b))return eo(b,function(L){return O(L,g)});var _=O(b,g);if(_===void 0){if(b===null)return b;throw Error("A case reducer on a non-draftable value must not return undefined")}return _}return b},f)}return h.getInitialState=d,h}function Zd(t,e){return t+"/"+e}function Ss(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:ma(t.initialState),n=t.reducers||{},a=Object.keys(n),i={},s={},l={};a.forEach(function(h){var f=n[h],g=Zd(e,h),x,b;"reducer"in f?(x=f.reducer,b=f.prepare):x=f,i[h]=x,s[g]=x,l[h]=b?nt(g,b):nt(g)});function d(){var h=typeof t.extraReducers=="function"?vs(t.extraReducers):[t.extraReducers],f=h[0],g=f===void 0?{}:f,x=h[1],b=x===void 0?[]:x,O=h[2],N=O===void 0?void 0:O,_=ot(ot({},g),s);return Kd(o,function(L){for(var E in _)L.addCase(E,_[E]);for(var v=0,C=b;v<C.length;v++){var I=C[v];L.addMatcher(I.matcher,I.reducer)}N&&L.addDefaultCase(N)})}var u;return{name:e,reducer:function(h,f){return u||(u=d()),u(h,f)},actions:l,caseReducers:i,getInitialState:function(){return u||(u=d()),u.getInitialState()}}}var qd="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Yd=function(t){t===void 0&&(t=21);for(var e="",o=t;o--;)e+=qd[Math.random()*64|0];return e},Xd=["name","message","stack","code"],ya=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),ms=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),Jd=function(t){if(typeof t=="object"&&t!==null){for(var e={},o=0,n=Xd;o<n.length;o++){var a=n[o];typeof t[a]=="string"&&(e[a]=t[a])}return e}return{message:String(t)}},cg=function(){function t(e,o,n){var a=nt(e+"/fulfilled",function(h,f,g,x){return{payload:h,meta:fa(ot({},x||{}),{arg:g,requestId:f,requestStatus:"fulfilled"})}}),i=nt(e+"/pending",function(h,f,g){return{payload:void 0,meta:fa(ot({},g||{}),{arg:f,requestId:h,requestStatus:"pending"})}}),s=nt(e+"/rejected",function(h,f,g,x,b){return{payload:x,error:(n&&n.serializeError||Jd)(h||"Rejected"),meta:fa(ot({},b||{}),{arg:g,requestId:f,rejectedWithValue:!!x,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),l=!1,d=typeof AbortController<"u"?AbortController:function(){function h(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return h.prototype.abort=function(){},h}();function u(h){return function(f,g,x){var b=n?.idGenerator?n.idGenerator(h):Yd(),O=new d,N,_=!1;function L(v){N=v,O.abort()}var E=function(){return Bd(this,null,function(){var v,C,I,$,W,B,k;return Pd(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),$=(v=n?.condition)==null?void 0:v.call(n,h,{getState:g,extra:x}),ep($)?[4,$]:[3,2];case 1:$=y.sent(),y.label=2;case 2:if($===!1||O.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return _=!0,W=new Promise(function(S,P){return O.signal.addEventListener("abort",function(){return P({name:"AbortError",message:N||"Aborted"})})}),f(i(b,h,(C=n?.getPendingMeta)==null?void 0:C.call(n,{requestId:b,arg:h},{getState:g,extra:x}))),[4,Promise.race([W,Promise.resolve(o(h,{dispatch:f,getState:g,extra:x,requestId:b,signal:O.signal,abort:L,rejectWithValue:function(S,P){return new ya(S,P)},fulfillWithValue:function(S,P){return new ms(S,P)}})).then(function(S){if(S instanceof ya)throw S;return S instanceof ms?a(S.payload,b,h,S.meta):a(S,b,h)})])];case 3:return I=y.sent(),[3,5];case 4:return B=y.sent(),I=B instanceof ya?s(null,b,h,B.payload,B.meta):s(B,b,h),[3,5];case 5:return k=n&&!n.dispatchConditionRejection&&s.match(I)&&I.meta.condition,k||f(I),[2,I]}})})}();return Object.assign(E,{abort:L,requestId:b,arg:h,unwrap:function(){return E.then(Qd)}})}}return Object.assign(u,{pending:i,rejected:s,fulfilled:a,typePrefix:e})}return t.withTypes=function(){return t},t}();function Qd(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function ep(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Os="listener",Es="completed",Cs="cancelled",lg="task-"+Cs,dg="task-"+Es,pg=Os+"-"+Cs,ug=Os+"-"+Es;var ga="listenerMiddleware";var fg=nt(ga+"/add"),hg=nt(ga+"/removeAll"),yg=nt(ga+"/remove");var gs,mg=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(gs||(gs=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},tp=function(t){return function(e){setTimeout(e,t)}},gg=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:tp(10);rs();window.ftReduxStores||(window.ftReduxStores={});var ba=class t extends ht{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(St(i))return i;if(a==null)return;let s=Ss({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),l=xs({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,l,a.eventBus)}constructor(e,o,n){super(),this.reduxSlice=e,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new Cr;let a=i=>i!=null?JSON.parse(JSON.stringify(i)):i;this.actions=new Proxy(this.reduxSlice.actions,{get:(i,s,l)=>{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 rp(){var t;for(let e of Object.values((t=window.ftReduxStores)!==null&&t!==void 0?t:{}))St(e)&&e.clear()}var ro=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);yt(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 op(t,e,o){return new ro(t,e,o).watch()}var Oa={};G(Oa,{scrollHelper:()=>np});var va,oo=new Map,Sa=class{lock(e,o){if(o){let n=oo.get(o);if(n==null||n===e)return oo.set(o,e),o}}release(e,o){o&&oo.get(o)===e&&oo.delete(o)}findFirstScrollableParent(e){var o;let n,a;for(let i of jo(e)){let s=i,l=this.elementCanScroll(s);if(l&&s.clientHeight&&s.clientHeight<s.scrollHeight){n=s;break}else l&&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,l=yr(0,(s-n.scrollTop)/(s-i),1),d=this.computeTopOffsetRatio(o?.position,l)*(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=(va=window.FluidTopicsScrollHelper)!==null&&va!==void 0?va:new Sa;var np=window.FluidTopicsScrollHelper;var Ea={};G(Ea,{shadowQuerySelector:()=>ap,shadowQuerySelectorAll:()=>ip});function ap(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 ip(t,e,...o){let n=[...t.querySelectorAll(e)];for(let a of o)n=n.flatMap(i=>{var s,l;return[...(l=(s=i.shadowRoot)===null||s===void 0?void 0:s.querySelectorAll(a))!==null&&l!==void 0?l:[]]});return n}var wa={};G(wa,{SearchPlaceConverter:()=>io,SearchPlaceQueryParams:()=>V,isSearchPlaceQueryParams:()=>Js,serializeRequest:()=>lp});var sp=Bc(As(),1);var Rs;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(Rs||(Rs={}));var Ns;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Ns||(Ns={}));var Ts;(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"})(Ts||(Ts={}));var _s;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(_s||(_s={}));var Ls;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(Ls||(Ls={}));var Ps;(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"})(Ps||(Ps={}));var Is;(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"})(Is||(Is={}));var ks;(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"})(ks||(ks={}));var Ds;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Ds||(Ds={}));var Ms;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Ms||(Ms={}));var $s;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})($s||($s={}));var Bs;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Bs||(Bs={}));var Us;(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"})(Us||(Us={}));var Ws;(function(t){t.ASC="ASC",t.DESC="DESC"})(Ws||(Ws={}));var Fs;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Fs||(Fs={}));var Ca;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(Ca||(Ca={}));var Ks=t=>Object.keys(Ca).includes(t);var Hs;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"})(Hs||(Hs={}));var zs;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(zs||(zs={}));var Gs;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"})(Gs||(Gs={}));var Vt;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Vt||(Vt={}));var Zs=t=>Object.keys(Vt).includes(t);var js;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"})(js||(js={}));var Vs;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Vs||(Vs={}));var oe;(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"})(oe||(oe={}));var qs;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(qs||(qs={}));var Ys;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Ys||(Ys={}));var Bg={[oe.PERSONAL_BOOK_SHARE_USER]:[oe.PERSONAL_BOOK_USER],[oe.HTML_EXPORT_USER]:[oe.PERSONAL_BOOK_USER],[oe.PDF_EXPORT_USER]:[oe.PERSONAL_BOOK_USER],[oe.KHUB_ADMIN]:[oe.CONTENT_PUBLISHER],[oe.ADMIN]:[oe.KHUB_ADMIN,oe.USERS_ADMIN,oe.PORTAL_ADMIN],[oe.DEVELOPER]:[oe.BETA_USER,oe.DEBUG_USER],[oe.GENERATIVE_AI_EXPORT_USER]:[oe.GENERATIVE_AI_USER]};function cp(t){return`"${t}"`}function Xs(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function lp(t,e){return new io(t).serialize(e)}var V;(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"})(V||(V={}));var dp=new Set(Object.values(V));function Js(t){return dp.has(t)}var io=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,l,d,u,h,f,g,x,b;let O=new URLSearchParams;e.contentLocale?(!o||e.contentLocale!==this.defaultContentLocale)&&O.append(V.LOCALE,e.contentLocale):O.append(V.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((n=e.query)===null||n===void 0?void 0:n.length)>0&&O.append(V.QUERY,e.query),e.scope&&e.scope!=="DEFAULT"&&O.append(V.SCOPE,e.scope.toLowerCase()),e.virtualField&&e.virtualField!=="EVERYWHERE"&&O.append(V.VIRTUAL_FIELD,e.virtualField.toLowerCase()),((a=e.sort)===null||a===void 0?void 0:a.length)>0&&e.sort[0].key==="ft:lastEdition"&&O.append(V.SORT,"last_update");let N=(s=(i=e.metadataFilters)===null||i===void 0?void 0:i.filter(v=>v.valueFilter))!==null&&s!==void 0?s:[];if(N.length>0){let v=N.map(C=>{var I,$;let W=(($=(I=C.valueFilter)===null||I===void 0?void 0:I.values)!==null&&$!==void 0?$:[]).map(B=>this.escapeFilters(B)).map(B=>encodeURIComponent(cp(Xs(B)))).join("_");return`${C.key}~${W}`}).join("*");O.append(V.VALUE_FILTERS,v)}let _=(d=(l=e.metadataFilters)===null||l===void 0?void 0:l.filter(v=>v.dateFilter))!==null&&d!==void 0?d:[];if(_.length>0){let v=_.map(C=>{var I;return`${C.key}~${(I=C.dateFilter)===null||I===void 0?void 0:I.type.toLowerCase()}`}).join("*");O.append(V.DATE_FILTERS,v)}let L=(h=(u=e.metadataFilters)===null||u===void 0?void 0:u.filter(v=>v.rangeFilter))!==null&&h!==void 0?h:[];if(L.length>0){let v=L.map(C=>{var I,$;return`${C.key}~${(I=C.rangeFilter)===null||I===void 0?void 0:I.from}_${($=C.rangeFilter)===null||$===void 0?void 0:$.to}`}).join("*");O.append(V.RANGE_FILTERS,v)}let E=(f=e.otherQueryParams)!==null&&f!==void 0?f:{};for(let v in E)O.append(v,E[v]);return!((g=e.paging)===null||g===void 0)&&g.perPage&&((b=(x=e.paging)===null||x===void 0?void 0:x.perPage)!==null&&b!==void 0?b:this.defaultPerPage)!=this.defaultPerPage&&O.append(V.PER_PAGE,String(e.paging.perPage)),O}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,l,d,u;let h=e.get(V.LOCALE)==="all"?void 0:e.get(V.LOCALE),f=((o=e.get(V.VIRTUAL_FIELD))!==null&&o!==void 0?o:"EVERYWHERE").toUpperCase(),g=((n=e.get(V.SORT))!==null&&n!==void 0?n:"DEFAULT").toUpperCase(),x=(a=e.get(V.SCOPE))!==null&&a!==void 0?a:"default",b=+((i=e.get(V.PER_PAGE))!==null&&i!==void 0?i:this.defaultPerPage),O={};for(let N of e.keys())Js(N)||(O[N]=e.get(N));return{contentLocale:h??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:decodeURIComponent((s=e.get(V.QUERY))!==null&&s!==void 0?s:""),scope:(l=this.scopeMapping[x])!==null&&l!==void 0?l:"DEFAULT",virtualField:Ks(f)?f:"EVERYWHERE",sort:(u=(d=this.predefinedSorts[g])!==null&&d!==void 0?d:this.predefinedSorts.DEFAULT)!==null&&u!==void 0?u:[],metadataFilters:this.parseCompatFilters(e),facets:[],paging:{page:1,perPage:yr(1,isNaN(b)?this.defaultPerPage:b,1e3)},otherQueryParams:O}}parseCompatFilters(e){var o,n,a,i,s,l;let d=[];return e.has(V.FILTERS)&&(d=this.parseValueFilters((o=e.get(V.FILTERS))!==null&&o!==void 0?o:"")),(n=e.has(V.PERIOD))!==null&&n!==void 0&&n&&(d=[...d,...this.parseLegacyPeriodFilter(((a=e.get(V.PERIOD))!==null&&a!==void 0?a:"").toUpperCase())]),[...d,...this.parseValueFilters((i=e.get(V.VALUE_FILTERS))!==null&&i!==void 0?i:""),...this.parseDateFilters((s=e.get(V.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=e.get(V.RANGE_FILTERS))!==null&&l!==void 0?l:"")]}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(Xs).map(n=>this.unescapeFilterValue(n)),negative:!1}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],dateFilter:{type:Vt[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(Zs(e))return[{key:"ft:lastEdition",dateFilter:{type:Vt[e]}}];if(e.startsWith("CUSTOM_")){let[o,n,a]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:n,to:a}}]}return[]}};var Ra={};G(Ra,{toFtFormComponent:()=>Aa});var so=Symbol("elementInternals");function Aa(t,e){class o extends t{static get formAssociated(){return!0}get form(){return this[so].form}constructor(...a){super(a),this[so]=this.attachInternals(),this[so].role=e}setFormValue(a){this[so].setFormValue(a)}}return o}var Ta={};G(Ta,{DateFormatter:()=>Na});var Na=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 La={};G(La,{ALL_KEYS_VALUE:()=>_a,SameWindowStorageEvent:()=>Kt});var _a="__all__",Kt=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==_a}};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 Kt(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 Kt(o[0],n))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(t,e,o){Reflect.apply(t,e,o),window.dispatchEvent(new Kt(_a))}});var Pa,Ia,ka,Da,Ma=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((ka=(Ia=(Pa=window.safari)===null||Pa===void 0?void 0:Pa.pushNotification)===null||Ia===void 0?void 0:Ia.toString())!==null&&ka!==void 0?ka:"")==="[object SafariRemoteNotification]",pp="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(Da=window.ftGlobals)!==null&&Da!==void 0?Da:{lit:Ao,litDecorators:No,litRepeat:To,litClassMap:_o,litStyleMap:Lo,litUnsafeHTML:Io,wcUtils:{...Fo,...Do,...zo,...Ta,...Go,...Zo,...Cn,...Uo,...Un,...En,...zn,...Fn,...Fi,...Vo,...jn,...Vn,...zi,...Zn,...xa,...Wn,...Oa,...Ea,...wa,...Ra,...La,isSafari:Ma,isTouchScreen:pp,setVariable:w}};var re;(function(t){t.STANDARD="standard",t.THEATER="theater",t.FULLSCREEN="fullscreen"})(re||(re={}));var co=class extends CustomEvent{constructor(e,o){super("visibility-change",{detail:{opened:e,displayMode:o}})}};var X={standardSizeWidth:r.create("--ft-in-product-help-standard-width","","SIZE","400px"),standardSizeHeight:r.create("--ft-in-product-help-standard-height","","SIZE","630px"),topPosition:r.create("--ft-in-product-help-top","","SIZE","unset"),rightPosition:r.create("--ft-in-product-help-right","","SIZE","1rem"),bottomPosition:r.create("--ft-in-product-help-bottom","","SIZE","1rem"),leftPosition:r.create("--ft-in-product-help-left","","SIZE","unset"),zIndex:r.create("--ft-in-product-help-zindex","","NUMBER","10"),theaterSizeWidth:r.create("--ft-in-product-help-theater-width","","SIZE","90%"),theaterSizeHeight:r.create("--ft-in-product-help-theater-height","","SIZE","60%"),fullscreenSizeWidth:r.create("--ft-in-product-help-fullscreen-width","","SIZE","100%"),fullscreenSizeHeight:r.create("--ft-in-product-help-fullscreen-height","","SIZE","100%"),borderStyle:r.create("--ft-in-product-help-border-style","","BORDER-STYLE","solid"),borderWidth:r.create("--ft-in-product-help-border-width","","SIZE","0"),borderColor:r.extend("--ft-in-product-help-border-color","",z.colorPrimary),borderRadius:r.extend("--ft-in-product-help-border-radius","",z.borderRadiusM),shadow:r.extend("--ft-in-product-help-shadow","",z.elevation02),topBarHeight:r.create("--ft-in-product-help-top-bar-height","","SIZE","28px"),iconColor:r.extend("--ft-in-product-help-icon-color","",z.colorOnSurface),iconGap:r.create("--ft-in-product-help-icon-gap","","SIZE","8px"),tabletBreakpoint:r.create("--ft-in-product-help-tablet-breakpoint","","SIZE","768px"),desktopBreakpoint:r.create("--ft-in-product-help-desktop-breakpoint","","SIZE","1280px"),colorSurface:r.external(z.colorSurface,"Design system"),colorPrimary:r.external(z.colorPrimary,"Design system")},Qs=M`
|
|
48
|
+
`;var zi={};var Zn={};G(Zn,{ParametrizedLabelResolver:()=>Kn});var Kn=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 xa={};G(xa,{FtCommandQueue:()=>Cr,FtLitElementRedux:()=>Ut,FtReduxStore:()=>ba,ReduxWatcher:()=>ro,clearAllStores:()=>rp,isFtReduxStore:()=>St,redux:()=>bd,reduxEventListener:()=>xd,reduxReactive:()=>gd,watch:()=>op});var gd=()=>(t,e)=>{var o;let n=t.constructor;n.reduxReactiveProperties=new Set(n.reduxReactiveProperties),(o=n.reduxReactiveProperties)===null||o===void 0||o.add(e)},bd=t=>{let e=t??{};return(o,n)=>{var a;let i={hasChanged:yt,attribute:!1,...e};A(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:l=>l[n],store:e.store})}},xd=t=>(e,o)=>{let n=e.constructor;n.reduxEventListeners=new Map(n.reduxEventListeners),n.reduxEventListeners.set(o,t)};var Cr=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 St(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Gi,ji,Vi,wr=Symbol("internalReduxEventsUnsubscribers"),et=Symbol("internalStoresUnsubscribers"),Ot=Symbol("internalStores"),Ut=class extends K{constructor(){super(...arguments),this[Gi]=new Map,this[ji]=new Map,this[Vi]=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[Ot].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ot].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[Ot].get(e)}addStore(e,o){var n;o=(n=o??(St(e)?e.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(o),this[Ot].set(o,e),this.subscribeToStore(o,e),this.updateFromStores()}removeStore(e){let o=typeof e=="string"?e:e.name;this.unsubscribeFromStore(o),this[Ot].delete(o)}setupStores(){this.unsubscribeFromStores(),this[Ot].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[et].has(e.store):this[et].size>0)&&(this[o]=e.selector(a.getState(),this))}})}subscribeToStore(e,o){var n;this[et].set(e,o.subscribe(()=>this.updateFromStores())),this[wr].set(e,[]),St(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=l=>this[i](l);o.addEventListener(a.eventName,s),this[wr].get(e).push(()=>o.removeEventListener(a.eventName,s))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[et].forEach((e,o)=>this.unsubscribeFromStore(o))}unsubscribeFromStore(e){var o;this[et].has(e)&&this[et].get(e)(),this[et].delete(e),(o=this[wr].get(e))===null||o===void 0||o.forEach(n=>n()),this[wr].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Gi=et,ji=Ot,Vi=wr;Ut.reduxProperties=new Map;Ut.reduxReactiveProperties=new Set;Ut.reduxEventListeners=new Map;function Oe(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 Ge(t){return!!t&&!!t[Y]}function we(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)===Rd}(t)||Array.isArray(t)||!!t[Qi]||!!(!((e=t.constructor)===null||e===void 0)&&e[Qi])||oa(t)||na(t))}function Et(t,e,o){o===void 0&&(o=!1),Ht(t)===0?(o?Object.keys:Ft)(t).forEach(function(n){o&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,a){return e(a,n,t)})}function Ht(t){var e=t[Y];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:oa(t)?2:na(t)?3:0}function Wt(t,e){return Ht(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function vd(t,e){return Ht(t)===2?t.get(e):t[e]}function es(t,e,o){var n=Ht(t);n===2?t.set(e,o):n===3?t.add(o):t[e]=o}function ts(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function oa(t){return wd&&t instanceof Map}function na(t){return Ad&&t instanceof Set}function tt(t){return t.o||t.t}function aa(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=ns(t);delete e[Y];for(var o=Ft(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 ia(t,e){return e===void 0&&(e=!1),sa(t)||Ge(t)||!we(t)||(Ht(t)>1&&(t.set=t.add=t.clear=t.delete=Sd),Object.freeze(t),e&&Et(t,function(o,n){return ia(n,!0)},!0)),t}function Sd(){Oe(2)}function sa(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function Ie(t){var e=ra[t];return e||Oe(18,t),e}function Od(t,e){ra[t]||(ra[t]=e)}function Qn(){return Rr}function qn(t,e){e&&(Ie("Patches"),t.u=[],t.s=[],t.v=e)}function Xr(t){ea(t),t.p.forEach(Ed),t.p=null}function ea(t){t===Rr&&(Rr=t.l)}function Ki(t){return Rr={p:[],l:Rr,h:t,m:!0,_:0}}function Ed(t){var e=t[Y];e.i===0||e.i===1?e.j():e.g=!0}function Yn(t,e){e._=e.p.length;var o=e.p[0],n=t!==void 0&&t!==o;return e.h.O||Ie("ES5").S(e,t,n),n?(o[Y].P&&(Xr(e),Oe(4)),we(t)&&(t=Jr(e,t),e.l||Qr(e,t)),e.u&&Ie("Patches").M(o[Y].t,t,e.u,e.s)):t=Jr(e,o,[]),Xr(e),e.u&&e.v(e.u,e.s),t!==os?t:void 0}function Jr(t,e,o){if(sa(e))return e;var n=e[Y];if(!n)return Et(e,function(l,d){return Zi(t,n,e,l,d,o)},!0),e;if(n.A!==t)return e;if(!n.P)return Qr(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=aa(n.k):n.o,i=a,s=!1;n.i===3&&(i=new Set(a),a.clear(),s=!0),Et(i,function(l,d){return Zi(t,n,a,l,d,o,s)}),Qr(t,a,!1),o&&t.u&&Ie("Patches").N(n,o,t.u,t.s)}return n.o}function Zi(t,e,o,n,a,i,s){if(Ge(a)){var l=Jr(t,a,i&&e&&e.i!==3&&!Wt(e.R,n)?i.concat(n):void 0);if(es(o,n,l),!Ge(l))return;t.m=!1}else s&&o.add(a);if(we(a)&&!sa(a)){if(!t.h.D&&t._<1)return;Jr(t,a),e&&e.A.l||Qr(t,a)}}function Qr(t,e,o){o===void 0&&(o=!1),!t.l&&t.h.D&&t.m&&ia(e,o)}function Xn(t,e){var o=t[Y];return(o?tt(o):t)[e]}function qi(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 rt(t){t.P||(t.P=!0,t.l&&rt(t.l))}function Jn(t){t.o||(t.o=aa(t.t))}function ta(t,e,o){var n=oa(e)?Ie("MapSet").F(e,o):na(e)?Ie("MapSet").T(e,o):t.O?function(a,i){var s=Array.isArray(a),l={i:s?1:0,A:i?i.A:Qn(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},d=l,u=Nr;s&&(d=[l],u=Ar);var h=Proxy.revocable(d,u),f=h.revoke,g=h.proxy;return l.k=g,l.j=f,g}(e,o):Ie("ES5").J(e,o);return(o?o.A:Qn()).p.push(n),n}function Cd(t){return Ge(t)||Oe(22,t),function e(o){if(!we(o))return o;var n,a=o[Y],i=Ht(o);if(a){if(!a.P&&(a.i<4||!Ie("ES5").K(a)))return a.t;a.I=!0,n=Yi(o,i),a.I=!1}else n=Yi(o,i);return Et(n,function(s,l){a&&vd(a.t,s)===l||es(n,s,e(l))}),i===3?new Set(n):n}(t)}function Yi(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return aa(t)}function rs(){function t(s,l){var d=i[s];return d?d.enumerable=l:i[s]=d={configurable:!0,enumerable:l,get:function(){var u=this[Y];return Nr.get(u,s)},set:function(u){var h=this[Y];Nr.set(h,s,u)}},d}function e(s){for(var l=s.length-1;l>=0;l--){var d=s[l][Y];if(!d.P)switch(d.i){case 5:n(d)&&rt(d);break;case 4:o(d)&&rt(d)}}}function o(s){for(var l=s.t,d=s.k,u=Ft(d),h=u.length-1;h>=0;h--){var f=u[h];if(f!==Y){var g=l[f];if(g===void 0&&!Wt(l,f))return!0;var x=d[f],b=x&&x[Y];if(b?b.t!==g:!ts(x,g))return!0}}var O=!!l[Y];return u.length!==Ft(l).length+(O?0:1)}function n(s){var l=s.k;if(l.length!==s.t.length)return!0;var d=Object.getOwnPropertyDescriptor(l,l.length-1);if(d&&!d.get)return!0;for(var u=0;u<l.length;u++)if(!l.hasOwnProperty(u))return!0;return!1}function a(s){s.g&&Oe(3,JSON.stringify(tt(s)))}var i={};Od("ES5",{J:function(s,l){var d=Array.isArray(s),u=function(f,g){if(f){for(var x=Array(g.length),b=0;b<g.length;b++)Object.defineProperty(x,""+b,t(b,!0));return x}var O=ns(g);delete O[Y];for(var N=Ft(O),_=0;_<N.length;_++){var L=N[_];O[L]=t(L,f||!!O[L].enumerable)}return Object.create(Object.getPrototypeOf(g),O)}(d,s),h={i:d?5:4,A:l?l.A:Qn(),P:!1,I:!1,R:{},l,t:s,k:u,o:null,g:!1,C:!1};return Object.defineProperty(u,Y,{value:h,writable:!0}),u},S:function(s,l,d){d?Ge(l)&&l[Y].A===s&&e(s.p):(s.u&&function u(h){if(h&&typeof h=="object"){var f=h[Y];if(f){var g=f.t,x=f.k,b=f.R,O=f.i;if(O===4)Et(x,function(v){v!==Y&&(g[v]!==void 0||Wt(g,v)?b[v]||u(x[v]):(b[v]=!0,rt(f)))}),Et(g,function(v){x[v]!==void 0||Wt(x,v)||(b[v]=!1,rt(f))});else if(O===5){if(n(f)&&(rt(f),b.length=!0),x.length<g.length)for(var N=x.length;N<g.length;N++)b[N]=!1;else for(var _=g.length;_<x.length;_++)b[_]=!0;for(var L=Math.min(x.length,g.length),E=0;E<L;E++)x.hasOwnProperty(E)||(b[E]=!0),b[E]===void 0&&u(x[E])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?o(s):n(s)}})}var Xi,Rr,ca=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",wd=typeof Map<"u",Ad=typeof Set<"u",Ji=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",os=ca?Symbol.for("immer-nothing"):((Xi={})["immer-nothing"]=!0,Xi),Qi=ca?Symbol.for("immer-draftable"):"__$immer_draftable",Y=ca?Symbol.for("immer-state"):"__$immer_state";var Rd=""+Object.prototype.constructor,Ft=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,ns=Object.getOwnPropertyDescriptors||function(t){var e={};return Ft(t).forEach(function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)}),e},ra={},Nr={get:function(t,e){if(e===Y)return t;var o=tt(t);if(!Wt(o,e))return function(a,i,s){var l,d=qi(i,s);return d?"value"in d?d.value:(l=d.get)===null||l===void 0?void 0:l.call(a.k):void 0}(t,o,e);var n=o[e];return t.I||!we(n)?n:n===Xn(t.t,e)?(Jn(t),t.o[e]=ta(t.A.h,n,t)):n},has:function(t,e){return e in tt(t)},ownKeys:function(t){return Reflect.ownKeys(tt(t))},set:function(t,e,o){var n=qi(tt(t),e);if(n?.set)return n.set.call(t.k,o),!0;if(!t.P){var a=Xn(tt(t),e),i=a?.[Y];if(i&&i.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(ts(o,a)&&(o!==void 0||Wt(t.t,e)))return!0;Jn(t),rt(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 Xn(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,Jn(t),rt(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=tt(t),n=Reflect.getOwnPropertyDescriptor(o,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:o[e]}},defineProperty:function(){Oe(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Oe(12)}},Ar={};Et(Nr,function(t,e){Ar[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),Ar.deleteProperty=function(t,e){return Ar.set.call(this,t,e,void 0)},Ar.set=function(t,e,o){return Nr.set.call(this,t[0],e,o,t[0])};var Nd=function(){function t(o){var n=this;this.O=Ji,this.D=!0,this.produce=function(a,i,s){if(typeof a=="function"&&typeof i!="function"){var l=i;i=a;var d=n;return function(O){var N=this;O===void 0&&(O=l);for(var _=arguments.length,L=Array(_>1?_-1:0),E=1;E<_;E++)L[E-1]=arguments[E];return d.produce(O,function(v){var C;return(C=i).call.apply(C,[N,v].concat(L))})}}var u;if(typeof i!="function"&&Oe(6),s!==void 0&&typeof s!="function"&&Oe(7),we(a)){var h=Ki(n),f=ta(n,a,void 0),g=!0;try{u=i(f),g=!1}finally{g?Xr(h):ea(h)}return typeof Promise<"u"&&u instanceof Promise?u.then(function(O){return qn(h,s),Yn(O,h)},function(O){throw Xr(h),O}):(qn(h,s),Yn(u,h))}if(!a||typeof a!="object"){if((u=i(a))===void 0&&(u=a),u===os&&(u=void 0),n.D&&ia(u,!0),s){var x=[],b=[];Ie("Patches").M(a,u,x,b),s(x,b)}return u}Oe(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),g=1;g<h;g++)f[g-1]=arguments[g];return n.produceWithPatches(u,function(x){return a.apply(void 0,[x].concat(f))})};var s,l,d=n.produce(a,i,function(u,h){s=u,l=h});return typeof Promise<"u"&&d instanceof Promise?d.then(function(u){return[u,s,l]}):[d,s,l]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var e=t.prototype;return e.createDraft=function(o){we(o)||Oe(8),Ge(o)&&(o=Cd(o));var n=Ki(this),a=ta(this,o,void 0);return a[Y].C=!0,ea(n),a},e.finishDraft=function(o,n){var a=o&&o[Y],i=a.A;return qn(i,n),Yn(void 0,i)},e.setAutoFreeze=function(o){this.D=o},e.setUseProxies=function(o){o&&!Ji&&Oe(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=Ie("Patches").$;return Ge(o)?s(o,n):this.produce(o,function(l){return s(l,n)})},t}(),xe=new Nd,Td=xe.produce,Dm=xe.produceWithPatches.bind(xe),Mm=xe.setAutoFreeze.bind(xe),$m=xe.setUseProxies.bind(xe),Bm=xe.applyPatches.bind(xe),Um=xe.createDraft.bind(xe),Wm=xe.finishDraft.bind(xe),eo=Td;function Ct(t){"@babel/helpers - typeof";return Ct=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ct(t)}function as(t,e){if(Ct(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var n=o.call(t,e||"default");if(Ct(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function is(t){var e=as(t,"string");return Ct(e)=="symbol"?e:e+""}function ss(t,e,o){return(e=is(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function cs(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 la(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?cs(Object(o),!0).forEach(function(n){ss(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):cs(Object(o)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))})}return t}function ue(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 ls=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),da=function(){return Math.random().toString(36).substring(7).split("").join(".")},to={INIT:"@@redux/INIT"+da(),REPLACE:"@@redux/REPLACE"+da(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+da()}};function _d(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 pa(t,e,o){var n;if(typeof e=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(ue(0));if(typeof e=="function"&&typeof o>"u"&&(o=e,e=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(ue(1));return o(pa)(t,e)}if(typeof t!="function")throw new Error(ue(2));var a=t,i=e,s=[],l=s,d=!1;function u(){l===s&&(l=s.slice())}function h(){if(d)throw new Error(ue(3));return i}function f(O){if(typeof O!="function")throw new Error(ue(4));if(d)throw new Error(ue(5));var N=!0;return u(),l.push(O),function(){if(N){if(d)throw new Error(ue(6));N=!1,u();var L=l.indexOf(O);l.splice(L,1),s=null}}}function g(O){if(!_d(O))throw new Error(ue(7));if(typeof O.type>"u")throw new Error(ue(8));if(d)throw new Error(ue(9));try{d=!0,i=a(i,O)}finally{d=!1}for(var N=s=l,_=0;_<N.length;_++){var L=N[_];L()}return O}function x(O){if(typeof O!="function")throw new Error(ue(10));a=O,g({type:to.REPLACE})}function b(){var O,N=f;return O={subscribe:function(L){if(typeof L!="object"||L===null)throw new Error(ue(11));function E(){L.next&&L.next(h())}E();var v=N(E);return{unsubscribe:v}}},O[ls]=function(){return this},O}return g({type:to.INIT}),n={dispatch:g,subscribe:f,getState:h,replaceReducer:x},n[ls]=b,n}function Ld(t){Object.keys(t).forEach(function(e){var o=t[e],n=o(void 0,{type:to.INIT});if(typeof n>"u")throw new Error(ue(12));if(typeof o(void 0,{type:to.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ue(13))})}function ds(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,l;try{Ld(o)}catch(d){l=d}return function(u,h){if(u===void 0&&(u={}),l)throw l;if(0)var f;for(var g=!1,x={},b=0;b<i.length;b++){var O=i[b],N=o[O],_=u[O],L=N(_,h);if(typeof L>"u"){var E=h&&h.type;throw new Error(ue(14))}x[O]=L,g=g||L!==_}return g=g||i.length!==Object.keys(u).length,g?x:u}}function zt(){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 ps(){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(ue(15))},s={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},l=e.map(function(d){return d(s)});return i=zt.apply(void 0,l)(a.dispatch),la(la({},a),{},{dispatch:i})}}}function us(t){var e=function(n){var a=n.dispatch,i=n.getState;return function(s){return function(l){return typeof l=="function"?l(a,i,t):s(l)}}};return e}var fs=us();fs.withExtraArgument=us;var ua=fs;var bs=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)}}(),Pd=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:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(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}}},Gt=function(t,e){for(var o=0,n=e.length,a=t.length;o<n;o++,a++)t[a]=e[o];return t},Id=Object.defineProperty,kd=Object.defineProperties,Dd=Object.getOwnPropertyDescriptors,hs=Object.getOwnPropertySymbols,Md=Object.prototype.hasOwnProperty,$d=Object.prototype.propertyIsEnumerable,ys=function(t,e,o){return e in t?Id(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},ot=function(t,e){for(var o in e||(e={}))Md.call(e,o)&&ys(t,o,e[o]);if(hs)for(var n=0,a=hs(e);n<a.length;n++){var o=a[n];$d.call(e,o)&&ys(t,o,e[o])}return t},fa=function(t,e){return kd(t,Dd(e))},Bd=function(t,e,o){return new Promise(function(n,a){var i=function(d){try{l(o.next(d))}catch(u){a(u)}},s=function(d){try{l(o.throw(d))}catch(u){a(u)}},l=function(d){return d.done?n(d.value):Promise.resolve(d.value).then(i,s)};l((o=o.apply(t,e)).next())})};var Ud=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?zt:zt.apply(null,arguments)},ng=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function Wd(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 Fd=function(t){bs(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,Gt([void 0],o[0].concat(this)))):new(e.bind.apply(e,Gt([void 0],o.concat(this))))},e}(Array),Hd=function(t){bs(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,Gt([void 0],o[0].concat(this)))):new(e.bind.apply(e,Gt([void 0],o.concat(this))))},e}(Array);function ma(t){return we(t)?eo(t,function(){}):t}function zd(t){return typeof t=="boolean"}function Gd(){return function(e){return jd(e)}}function jd(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,l=new Fd;if(o&&(zd(o)?l.push(ua):l.push(ua.withExtraArgument(o.extraArgument))),0){if(a)var d;if(s)var u}return l}var ha=!0;function xs(t){var e=Gd(),o=t||{},n=o.reducer,a=n===void 0?void 0:n,i=o.middleware,s=i===void 0?e():i,l=o.devTools,d=l===void 0?!0:l,u=o.preloadedState,h=u===void 0?void 0:u,f=o.enhancers,g=f===void 0?void 0:f,x;if(typeof a=="function")x=a;else if(Wd(a))x=ds(a);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var b=s;if(typeof b=="function"&&(b=b(e),!ha&&!Array.isArray(b)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!ha&&b.some(function(v){return typeof v!="function"}))throw new Error("each middleware provided to configureStore must be a function");var O=ps.apply(void 0,b),N=zt;d&&(N=Ud(ot({trace:!ha},typeof d=="object"&&d)));var _=new Hd(O),L=_;Array.isArray(g)?L=Gt([O],g):typeof g=="function"&&(L=g(_));var E=N.apply(void 0,L);return pa(x,h,E)}function nt(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 ot(ot({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 vs(t){var e={},o=[],n,a={addCase:function(i,s){var l=typeof i=="string"?i:i.type;if(l in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[l]=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 Vd(t){return typeof t=="function"}function Kd(t,e,o,n){o===void 0&&(o=[]);var a=typeof e=="function"?vs(e):[e,o,n],i=a[0],s=a[1],l=a[2],d;if(Vd(t))d=function(){return ma(t())};else{var u=ma(t);d=function(){return u}}function h(f,g){f===void 0&&(f=d());var x=Gt([i[g.type]],s.filter(function(b){var O=b.matcher;return O(g)}).map(function(b){var O=b.reducer;return O}));return x.filter(function(b){return!!b}).length===0&&(x=[l]),x.reduce(function(b,O){if(O)if(Ge(b)){var N=b,_=O(N,g);return _===void 0?b:_}else{if(we(b))return eo(b,function(L){return O(L,g)});var _=O(b,g);if(_===void 0){if(b===null)return b;throw Error("A case reducer on a non-draftable value must not return undefined")}return _}return b},f)}return h.getInitialState=d,h}function Zd(t,e){return t+"/"+e}function Ss(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:ma(t.initialState),n=t.reducers||{},a=Object.keys(n),i={},s={},l={};a.forEach(function(h){var f=n[h],g=Zd(e,h),x,b;"reducer"in f?(x=f.reducer,b=f.prepare):x=f,i[h]=x,s[g]=x,l[h]=b?nt(g,b):nt(g)});function d(){var h=typeof t.extraReducers=="function"?vs(t.extraReducers):[t.extraReducers],f=h[0],g=f===void 0?{}:f,x=h[1],b=x===void 0?[]:x,O=h[2],N=O===void 0?void 0:O,_=ot(ot({},g),s);return Kd(o,function(L){for(var E in _)L.addCase(E,_[E]);for(var v=0,C=b;v<C.length;v++){var I=C[v];L.addMatcher(I.matcher,I.reducer)}N&&L.addDefaultCase(N)})}var u;return{name:e,reducer:function(h,f){return u||(u=d()),u(h,f)},actions:l,caseReducers:i,getInitialState:function(){return u||(u=d()),u.getInitialState()}}}var qd="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Yd=function(t){t===void 0&&(t=21);for(var e="",o=t;o--;)e+=qd[Math.random()*64|0];return e},Xd=["name","message","stack","code"],ya=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),ms=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),Jd=function(t){if(typeof t=="object"&&t!==null){for(var e={},o=0,n=Xd;o<n.length;o++){var a=n[o];typeof t[a]=="string"&&(e[a]=t[a])}return e}return{message:String(t)}},cg=function(){function t(e,o,n){var a=nt(e+"/fulfilled",function(h,f,g,x){return{payload:h,meta:fa(ot({},x||{}),{arg:g,requestId:f,requestStatus:"fulfilled"})}}),i=nt(e+"/pending",function(h,f,g){return{payload:void 0,meta:fa(ot({},g||{}),{arg:f,requestId:h,requestStatus:"pending"})}}),s=nt(e+"/rejected",function(h,f,g,x,b){return{payload:x,error:(n&&n.serializeError||Jd)(h||"Rejected"),meta:fa(ot({},b||{}),{arg:g,requestId:f,rejectedWithValue:!!x,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),l=!1,d=typeof AbortController<"u"?AbortController:function(){function h(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return h.prototype.abort=function(){},h}();function u(h){return function(f,g,x){var b=n?.idGenerator?n.idGenerator(h):Yd(),O=new d,N,_=!1;function L(v){N=v,O.abort()}var E=function(){return Bd(this,null,function(){var v,C,I,$,W,B,k;return Pd(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),$=(v=n?.condition)==null?void 0:v.call(n,h,{getState:g,extra:x}),ep($)?[4,$]:[3,2];case 1:$=y.sent(),y.label=2;case 2:if($===!1||O.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return _=!0,W=new Promise(function(S,P){return O.signal.addEventListener("abort",function(){return P({name:"AbortError",message:N||"Aborted"})})}),f(i(b,h,(C=n?.getPendingMeta)==null?void 0:C.call(n,{requestId:b,arg:h},{getState:g,extra:x}))),[4,Promise.race([W,Promise.resolve(o(h,{dispatch:f,getState:g,extra:x,requestId:b,signal:O.signal,abort:L,rejectWithValue:function(S,P){return new ya(S,P)},fulfillWithValue:function(S,P){return new ms(S,P)}})).then(function(S){if(S instanceof ya)throw S;return S instanceof ms?a(S.payload,b,h,S.meta):a(S,b,h)})])];case 3:return I=y.sent(),[3,5];case 4:return B=y.sent(),I=B instanceof ya?s(null,b,h,B.payload,B.meta):s(B,b,h),[3,5];case 5:return k=n&&!n.dispatchConditionRejection&&s.match(I)&&I.meta.condition,k||f(I),[2,I]}})})}();return Object.assign(E,{abort:L,requestId:b,arg:h,unwrap:function(){return E.then(Qd)}})}}return Object.assign(u,{pending:i,rejected:s,fulfilled:a,typePrefix:e})}return t.withTypes=function(){return t},t}();function Qd(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function ep(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Os="listener",Es="completed",Cs="cancelled",lg="task-"+Cs,dg="task-"+Es,pg=Os+"-"+Cs,ug=Os+"-"+Es;var ga="listenerMiddleware";var fg=nt(ga+"/add"),hg=nt(ga+"/removeAll"),yg=nt(ga+"/remove");var gs,mg=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(gs||(gs=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},tp=function(t){return function(e){setTimeout(e,t)}},gg=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:tp(10);rs();window.ftReduxStores||(window.ftReduxStores={});var ba=class t extends ht{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(St(i))return i;if(a==null)return;let s=Ss({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),l=xs({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,l,a.eventBus)}constructor(e,o,n){super(),this.reduxSlice=e,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new Cr;let a=i=>i!=null?JSON.parse(JSON.stringify(i)):i;this.actions=new Proxy(this.reduxSlice.actions,{get:(i,s,l)=>{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 rp(){var t;for(let e of Object.values((t=window.ftReduxStores)!==null&&t!==void 0?t:{}))St(e)&&e.clear()}var ro=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);yt(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 op(t,e,o){return new ro(t,e,o).watch()}var Oa={};G(Oa,{scrollHelper:()=>np});var va,oo=new Map,Sa=class{lock(e,o){if(o){let n=oo.get(o);if(n==null||n===e)return oo.set(o,e),o}}release(e,o){o&&oo.get(o)===e&&oo.delete(o)}findFirstScrollableParent(e){var o;let n,a;for(let i of jo(e)){let s=i,l=this.elementCanScroll(s);if(l&&s.clientHeight&&s.clientHeight<s.scrollHeight){n=s;break}else l&&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,l=yr(0,(s-n.scrollTop)/(s-i),1),d=this.computeTopOffsetRatio(o?.position,l)*(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=(va=window.FluidTopicsScrollHelper)!==null&&va!==void 0?va:new Sa;var np=window.FluidTopicsScrollHelper;var Ea={};G(Ea,{shadowQuerySelector:()=>ap,shadowQuerySelectorAll:()=>ip});function ap(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 ip(t,e,...o){let n=[...t.querySelectorAll(e)];for(let a of o)n=n.flatMap(i=>{var s,l;return[...(l=(s=i.shadowRoot)===null||s===void 0?void 0:s.querySelectorAll(a))!==null&&l!==void 0?l:[]]});return n}var wa={};G(wa,{SearchPlaceConverter:()=>io,SearchPlaceQueryParams:()=>V,isSearchPlaceQueryParams:()=>Js,serializeRequest:()=>lp});var sp=Bc(As(),1);var Rs;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(Rs||(Rs={}));var Ns;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Ns||(Ns={}));var Ts;(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"})(Ts||(Ts={}));var _s;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(_s||(_s={}));var Ls;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(Ls||(Ls={}));var Ps;(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"})(Ps||(Ps={}));var Is;(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"})(Is||(Is={}));var ks;(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"})(ks||(ks={}));var Ds;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Ds||(Ds={}));var Ms;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Ms||(Ms={}));var $s;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})($s||($s={}));var Bs;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Bs||(Bs={}));var Us;(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"})(Us||(Us={}));var Ws;(function(t){t.ASC="ASC",t.DESC="DESC"})(Ws||(Ws={}));var Fs;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Fs||(Fs={}));var Ca;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(Ca||(Ca={}));var Ks=t=>Object.keys(Ca).includes(t);var Hs;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"})(Hs||(Hs={}));var zs;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(zs||(zs={}));var Gs;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"})(Gs||(Gs={}));var Vt;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Vt||(Vt={}));var Zs=t=>Object.keys(Vt).includes(t);var js;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"})(js||(js={}));var Vs;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Vs||(Vs={}));var oe;(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"})(oe||(oe={}));var qs;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(qs||(qs={}));var Ys;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Ys||(Ys={}));var Bg={[oe.PERSONAL_BOOK_SHARE_USER]:[oe.PERSONAL_BOOK_USER],[oe.HTML_EXPORT_USER]:[oe.PERSONAL_BOOK_USER],[oe.PDF_EXPORT_USER]:[oe.PERSONAL_BOOK_USER],[oe.KHUB_ADMIN]:[oe.CONTENT_PUBLISHER],[oe.ADMIN]:[oe.KHUB_ADMIN,oe.USERS_ADMIN,oe.PORTAL_ADMIN],[oe.DEVELOPER]:[oe.BETA_USER,oe.DEBUG_USER],[oe.GENERATIVE_AI_EXPORT_USER]:[oe.GENERATIVE_AI_USER]};function cp(t){return`"${t}"`}function Xs(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function lp(t,e){return new io(t).serialize(e)}var V;(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"})(V||(V={}));var dp=new Set(Object.values(V));function Js(t){return dp.has(t)}var io=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,l,d,u,h,f,g,x,b;let O=new URLSearchParams;e.contentLocale?(!o||e.contentLocale!==this.defaultContentLocale)&&O.append(V.LOCALE,e.contentLocale):O.append(V.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((n=e.query)===null||n===void 0?void 0:n.length)>0&&O.append(V.QUERY,encodeURIComponent(e.query)),e.scope&&e.scope!=="DEFAULT"&&O.append(V.SCOPE,e.scope.toLowerCase()),e.virtualField&&e.virtualField!=="EVERYWHERE"&&O.append(V.VIRTUAL_FIELD,e.virtualField.toLowerCase()),((a=e.sort)===null||a===void 0?void 0:a.length)>0&&e.sort[0].key==="ft:lastEdition"&&O.append(V.SORT,"last_update");let N=(s=(i=e.metadataFilters)===null||i===void 0?void 0:i.filter(v=>v.valueFilter))!==null&&s!==void 0?s:[];if(N.length>0){let v=N.map(C=>{var I,$;let W=(($=(I=C.valueFilter)===null||I===void 0?void 0:I.values)!==null&&$!==void 0?$:[]).map(B=>this.escapeFilters(B)).map(B=>encodeURIComponent(cp(Xs(B)))).join("_");return`${C.key}~${W}`}).join("*");O.append(V.VALUE_FILTERS,v)}let _=(d=(l=e.metadataFilters)===null||l===void 0?void 0:l.filter(v=>v.dateFilter))!==null&&d!==void 0?d:[];if(_.length>0){let v=_.map(C=>{var I;return`${C.key}~${(I=C.dateFilter)===null||I===void 0?void 0:I.type.toLowerCase()}`}).join("*");O.append(V.DATE_FILTERS,v)}let L=(h=(u=e.metadataFilters)===null||u===void 0?void 0:u.filter(v=>v.rangeFilter))!==null&&h!==void 0?h:[];if(L.length>0){let v=L.map(C=>{var I,$;return`${C.key}~${(I=C.rangeFilter)===null||I===void 0?void 0:I.from}_${($=C.rangeFilter)===null||$===void 0?void 0:$.to}`}).join("*");O.append(V.RANGE_FILTERS,v)}let E=(f=e.otherQueryParams)!==null&&f!==void 0?f:{};for(let v in E)O.append(v,E[v]);return!((g=e.paging)===null||g===void 0)&&g.perPage&&((b=(x=e.paging)===null||x===void 0?void 0:x.perPage)!==null&&b!==void 0?b:this.defaultPerPage)!=this.defaultPerPage&&O.append(V.PER_PAGE,String(e.paging.perPage)),O}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,l,d,u;let h=e.get(V.LOCALE)==="all"?void 0:e.get(V.LOCALE),f=((o=e.get(V.VIRTUAL_FIELD))!==null&&o!==void 0?o:"EVERYWHERE").toUpperCase(),g=((n=e.get(V.SORT))!==null&&n!==void 0?n:"DEFAULT").toUpperCase(),x=(a=e.get(V.SCOPE))!==null&&a!==void 0?a:"default",b=+((i=e.get(V.PER_PAGE))!==null&&i!==void 0?i:this.defaultPerPage),O={};for(let N of e.keys())Js(N)||(O[N]=e.get(N));return{contentLocale:h??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:decodeURIComponent((s=e.get(V.QUERY))!==null&&s!==void 0?s:""),scope:(l=this.scopeMapping[x])!==null&&l!==void 0?l:"DEFAULT",virtualField:Ks(f)?f:"EVERYWHERE",sort:(u=(d=this.predefinedSorts[g])!==null&&d!==void 0?d:this.predefinedSorts.DEFAULT)!==null&&u!==void 0?u:[],metadataFilters:this.parseCompatFilters(e),facets:[],paging:{page:1,perPage:yr(1,isNaN(b)?this.defaultPerPage:b,1e3)},otherQueryParams:O}}parseCompatFilters(e){var o,n,a,i,s,l;let d=[];return e.has(V.FILTERS)&&(d=this.parseValueFilters((o=e.get(V.FILTERS))!==null&&o!==void 0?o:"")),(n=e.has(V.PERIOD))!==null&&n!==void 0&&n&&(d=[...d,...this.parseLegacyPeriodFilter(((a=e.get(V.PERIOD))!==null&&a!==void 0?a:"").toUpperCase())]),[...d,...this.parseValueFilters((i=e.get(V.VALUE_FILTERS))!==null&&i!==void 0?i:""),...this.parseDateFilters((s=e.get(V.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=e.get(V.RANGE_FILTERS))!==null&&l!==void 0?l:"")]}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(Xs).map(n=>this.unescapeFilterValue(n)),negative:!1}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],dateFilter:{type:Vt[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(Zs(e))return[{key:"ft:lastEdition",dateFilter:{type:Vt[e]}}];if(e.startsWith("CUSTOM_")){let[o,n,a]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:n,to:a}}]}return[]}};var Ra={};G(Ra,{toFtFormComponent:()=>Aa});var so=Symbol("elementInternals");function Aa(t,e){class o extends t{static get formAssociated(){return!0}get form(){return this[so].form}constructor(...a){super(a),this[so]=this.attachInternals(),this[so].role=e}setFormValue(a){this[so].setFormValue(a)}}return o}var Ta={};G(Ta,{DateFormatter:()=>Na});var Na=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 La={};G(La,{ALL_KEYS_VALUE:()=>_a,SameWindowStorageEvent:()=>Kt});var _a="__all__",Kt=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==_a}};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 Kt(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 Kt(o[0],n))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(t,e,o){Reflect.apply(t,e,o),window.dispatchEvent(new Kt(_a))}});var Pa,Ia,ka,Da,Ma=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((ka=(Ia=(Pa=window.safari)===null||Pa===void 0?void 0:Pa.pushNotification)===null||Ia===void 0?void 0:Ia.toString())!==null&&ka!==void 0?ka:"")==="[object SafariRemoteNotification]",pp="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(Da=window.ftGlobals)!==null&&Da!==void 0?Da:{lit:Ao,litDecorators:No,litRepeat:To,litClassMap:_o,litStyleMap:Lo,litUnsafeHTML:Io,wcUtils:{...Fo,...Do,...zo,...Ta,...Go,...Zo,...Cn,...Uo,...Un,...En,...zn,...Fn,...Fi,...Vo,...jn,...Vn,...zi,...Zn,...xa,...Wn,...Oa,...Ea,...wa,...Ra,...La,isSafari:Ma,isTouchScreen:pp,setVariable:w}};var re;(function(t){t.STANDARD="standard",t.THEATER="theater",t.FULLSCREEN="fullscreen"})(re||(re={}));var co=class extends CustomEvent{constructor(e,o){super("visibility-change",{detail:{opened:e,displayMode:o}})}};var X={standardSizeWidth:r.create("--ft-in-product-help-standard-width","","SIZE","400px"),standardSizeHeight:r.create("--ft-in-product-help-standard-height","","SIZE","630px"),topPosition:r.create("--ft-in-product-help-top","","SIZE","unset"),rightPosition:r.create("--ft-in-product-help-right","","SIZE","1rem"),bottomPosition:r.create("--ft-in-product-help-bottom","","SIZE","1rem"),leftPosition:r.create("--ft-in-product-help-left","","SIZE","unset"),zIndex:r.create("--ft-in-product-help-zindex","","NUMBER","10"),theaterSizeWidth:r.create("--ft-in-product-help-theater-width","","SIZE","90%"),theaterSizeHeight:r.create("--ft-in-product-help-theater-height","","SIZE","60%"),fullscreenSizeWidth:r.create("--ft-in-product-help-fullscreen-width","","SIZE","100%"),fullscreenSizeHeight:r.create("--ft-in-product-help-fullscreen-height","","SIZE","100%"),borderStyle:r.create("--ft-in-product-help-border-style","","BORDER-STYLE","solid"),borderWidth:r.create("--ft-in-product-help-border-width","","SIZE","0"),borderColor:r.extend("--ft-in-product-help-border-color","",z.colorPrimary),borderRadius:r.extend("--ft-in-product-help-border-radius","",z.borderRadiusM),shadow:r.extend("--ft-in-product-help-shadow","",z.elevation02),topBarHeight:r.create("--ft-in-product-help-top-bar-height","","SIZE","28px"),iconColor:r.extend("--ft-in-product-help-icon-color","",z.colorOnSurface),iconGap:r.create("--ft-in-product-help-icon-gap","","SIZE","8px"),tabletBreakpoint:r.create("--ft-in-product-help-tablet-breakpoint","","SIZE","768px"),desktopBreakpoint:r.create("--ft-in-product-help-desktop-breakpoint","","SIZE","1280px"),colorSurface:r.external(z.colorSurface,"Design system"),colorPrimary:r.external(z.colorPrimary,"Design system")},Qs=M`
|
|
49
49
|
.ft-in-product-help {
|
|
50
50
|
display: none;
|
|
51
51
|
position: fixed;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-in-product-help",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.45",
|
|
4
4
|
"description": "Embeddable fluid-topics iframe",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-wc-utils": "1.2.
|
|
22
|
+
"@fluid-topics/ft-wc-utils": "1.2.45",
|
|
23
23
|
"lit": "3.1.0"
|
|
24
24
|
},
|
|
25
|
-
"gitHead": "
|
|
25
|
+
"gitHead": "bbd991e9c3516c89eeb4db7a7b40f7aca2a6bc28"
|
|
26
26
|
}
|