@fluid-topics/ft-chart 1.2.15 → 1.2.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -47,7 +47,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:n.extend("--ft-conte
47
47
  input::-webkit-search-results-decoration {
48
48
  display: none;
49
49
  }
50
- `;var jc={};var Ia={};j(Ia,{ParametrizedLabelResolver:()=>Pa});var Pa=class t{constructor(e,r){this.defaultLabels=e,this.labels=r}resolve(e,...r){var o,a;e=this.resolvePluralKey(e,r);let i=(a=(o=this.labels[e])!==null&&o!==void 0?o:this.defaultLabels[e])!==null&&a!==void 0?a:"";return t.replaceParameters(i,...r)}static replaceParameters(e,...r){return r.forEach((o,a)=>e=e.replace(new RegExp(`\\{${a}([^}]*)\\}`,"g"),(i,s)=>t.formatValue(o,s))),e}resolvePluralKey(e,r){for(let o of r)if(typeof o=="number"){let a=`${String(e)}[\\=${o}]`;if(a in this.labels||a in this.defaultLabels)return a}return e}static formatValue(e,r){return e instanceof Date?t.formatDate(e,r):e??""}static formatDate(e,r){let o=a=>r?.includes("date")?e.toLocaleDateString(a):r?.includes("time")?e.toLocaleTimeString(a):e.toLocaleString(a);try{return o(document.documentElement.lang)}catch{return o()}}};var ai={};j(ai,{FtCommandQueue:()=>Zr,FtLitElementRedux:()=>er,FtReduxStore:()=>ni,clearAllStores:()=>$p,isFtReduxStore:()=>Ft,redux:()=>rp,reduxEventListener:()=>op,reduxReactive:()=>tp});var tp=()=>(t,e)=>{var r;let o=t.constructor;o.reduxReactiveProperties=new Set(o.reduxReactiveProperties),(r=o.reduxReactiveProperties)===null||r===void 0||r.add(e)},rp=t=>{let e=t??{};return(r,o)=>{var a;let i={hasChanged:Mr,attribute:!1,...e};K(i)(r,o);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(o,{selector:(a=e.selector)!==null&&a!==void 0?a:l=>l[o],store:e.store})}},op=t=>(e,r)=>{let o=e.constructor;o.reduxEventListeners=new Map(o.reduxEventListeners),o.reduxEventListeners.set(r,t)};var Zr=class{constructor(){this.queue=[]}add(e,r=!1){r&&(this.queue=this.queue.filter(o=>o.type!==e.type)),this.queue.push(e)}consume(e){let r=this.queue.find(o=>o.type===e);return r&&(this.queue=this.queue.filter(o=>o!==r)),r}};function Ft(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Gc,Vc,Kc,zo=Symbol("internalReduxEventsUnsubscribers"),dt=Symbol("internalStoresUnsubscribers"),Ut=Symbol("internalStores"),er=class extends ge{constructor(){super(...arguments),this[Gc]=new Map,this[Vc]=new Map,this[Kc]=[]}get reduxConstructor(){return this.constructor}update(e){super.update(e),[...this.reduxConstructor.reduxReactiveProperties].some(r=>e.has(r))&&this.updateFromStores()}getUnnamedStore(){if(this[Ut].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ut].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[Ut].get(e)}addStore(e,r){var o;r=(o=r??(Ft(e)?e.name:void 0))!==null&&o!==void 0?o:"default-store",this.unsubscribeFromStore(r),this.setupStore(r,e)}removeStore(e){let r=typeof e=="string"?e:e.name;this.unsubscribeFromStore(r),this[Ut].delete(r)}setupStore(e,r){this[Ut].set(e,r),this.subscribeToStore(e,r),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Ut].forEach((e,r)=>this.subscribeToStore(r,e)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((e,r)=>{let o=this.constructor.getPropertyOptions(r);if(!o?.attribute||!this.hasAttribute(typeof o?.attribute=="string"?o.attribute:r)){let a=this.getStore(e.store);a&&(e.store?this[dt].has(e.store):this[dt].size>0)&&(this[r]=e.selector(a.getState(),this))}})}subscribeToStore(e,r){var o;this[dt].set(e,r.subscribe(()=>this.updateFromStores())),Ft(r)&&r.eventBus&&((o=this.reduxConstructor.reduxEventListeners)===null||o===void 0||o.forEach((a,i)=>{if(typeof this[i]=="function"&&(!a.store||r.name===a.store)){let s=l=>this[i](l);r.addEventListener(a.eventName,s),this[zo].push(()=>r.removeEventListener(a.eventName,s))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[dt].forEach((e,r)=>this.unsubscribeFromStore(r)),this[zo].forEach(e=>e()),this[zo]=[]}unsubscribeFromStore(e){this[dt].has(e)&&this[dt].get(e)(),this[dt].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Gc=dt,Vc=Ut,Kc=zo;er.reduxProperties=new Map;er.reduxReactiveProperties=new Set;er.reduxEventListeners=new Map;function Se(t){for(var e=arguments.length,r=Array(e>1?e-1:0),o=1;o<e;o++)r[o-1]=arguments[o];if(0)var a,i;throw Error("[Immer] minified error nr: "+t+(r.length?" "+r.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function qe(t){return!!t&&!!t[J]}function Ae(t){var e;return!!t&&(function(r){if(!r||typeof r!="object")return!1;var o=Object.getPrototypeOf(r);if(o===null)return!0;var a=Object.hasOwnProperty.call(o,"constructor")&&o.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===up}(t)||Array.isArray(t)||!!t[tl]||!!(!((e=t.constructor)===null||e===void 0)&&e[tl])||Ba(t)||Ha(t))}function Wt(t,e,r){r===void 0&&(r=!1),or(t)===0?(r?Object.keys:rr)(t).forEach(function(o){r&&typeof o=="symbol"||e(o,t[o],t)}):t.forEach(function(o,a){return e(a,o,t)})}function or(t){var e=t[J];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Ba(t)?2:Ha(t)?3:0}function tr(t,e){return or(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function np(t,e){return or(t)===2?t.get(e):t[e]}function rl(t,e,r){var o=or(t);o===2?t.set(e,r):o===3?t.add(r):t[e]=r}function ol(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function Ba(t){return lp&&t instanceof Map}function Ha(t){return dp&&t instanceof Set}function ut(t){return t.o||t.t}function za(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=il(t);delete e[J];for(var r=rr(e),o=0;o<r.length;o++){var a=r[o],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 Ya(t,e){return e===void 0&&(e=!1),ja(t)||qe(t)||!Ae(t)||(or(t)>1&&(t.set=t.add=t.clear=t.delete=ap),Object.freeze(t),e&&Wt(t,function(r,o){return Ya(o,!0)},!0)),t}function ap(){Se(2)}function ja(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function Ue(t){var e=$a[t];return e||Se(18,t),e}function ip(t,e){$a[t]||($a[t]=e)}function Fa(){return Jr}function Ta(t,e){e&&(Ue("Patches"),t.u=[],t.s=[],t.v=e)}function Yo(t){Ua(t),t.p.forEach(sp),t.p=null}function Ua(t){t===Jr&&(Jr=t.l)}function Zc(t){return Jr={p:[],l:Jr,h:t,m:!0,_:0}}function sp(t){var e=t[J];e.i===0||e.i===1?e.j():e.g=!0}function Ma(t,e){e._=e.p.length;var r=e.p[0],o=t!==void 0&&t!==r;return e.h.O||Ue("ES5").S(e,t,o),o?(r[J].P&&(Yo(e),Se(4)),Ae(t)&&(t=jo(e,t),e.l||Go(e,t)),e.u&&Ue("Patches").M(r[J].t,t,e.u,e.s)):t=jo(e,r,[]),Yo(e),e.u&&e.v(e.u,e.s),t!==al?t:void 0}function jo(t,e,r){if(ja(e))return e;var o=e[J];if(!o)return Wt(e,function(l,d){return qc(t,o,e,l,d,r)},!0),e;if(o.A!==t)return e;if(!o.P)return Go(t,o.t,!0),o.t;if(!o.I){o.I=!0,o.A._--;var a=o.i===4||o.i===5?o.o=za(o.k):o.o,i=a,s=!1;o.i===3&&(i=new Set(a),a.clear(),s=!0),Wt(i,function(l,d){return qc(t,o,a,l,d,r,s)}),Go(t,a,!1),r&&t.u&&Ue("Patches").N(o,r,t.u,t.s)}return o.o}function qc(t,e,r,o,a,i,s){if(qe(a)){var l=jo(t,a,i&&e&&e.i!==3&&!tr(e.R,o)?i.concat(o):void 0);if(rl(r,o,l),!qe(l))return;t.m=!1}else s&&r.add(a);if(Ae(a)&&!ja(a)){if(!t.h.D&&t._<1)return;jo(t,a),e&&e.A.l||Go(t,a)}}function Go(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&Ya(e,r)}function Da(t,e){var r=t[J];return(r?ut(r):t)[e]}function Jc(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var o=Object.getOwnPropertyDescriptor(r,e);if(o)return o;r=Object.getPrototypeOf(r)}}function ft(t){t.P||(t.P=!0,t.l&&ft(t.l))}function La(t){t.o||(t.o=za(t.t))}function Wa(t,e,r){var o=Ba(e)?Ue("MapSet").F(e,r):Ha(e)?Ue("MapSet").T(e,r):t.O?function(a,i){var s=Array.isArray(a),l={i:s?1:0,A:i?i.A:Fa(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},d=l,u=Xr;s&&(d=[l],u=qr);var h=Proxy.revocable(d,u),p=h.revoke,m=h.proxy;return l.k=m,l.j=p,m}(e,r):Ue("ES5").J(e,r);return(r?r.A:Fa()).p.push(o),o}function cp(t){return qe(t)||Se(22,t),function e(r){if(!Ae(r))return r;var o,a=r[J],i=or(r);if(a){if(!a.P&&(a.i<4||!Ue("ES5").K(a)))return a.t;a.I=!0,o=Xc(r,i),a.I=!1}else o=Xc(r,i);return Wt(o,function(s,l){a&&np(a.t,s)===l||rl(o,s,e(l))}),i===3?new Set(o):o}(t)}function Xc(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return za(t)}function nl(){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[J];return Xr.get(u,s)},set:function(u){var h=this[J];Xr.set(h,s,u)}},d}function e(s){for(var l=s.length-1;l>=0;l--){var d=s[l][J];if(!d.P)switch(d.i){case 5:o(d)&&ft(d);break;case 4:r(d)&&ft(d)}}}function r(s){for(var l=s.t,d=s.k,u=rr(d),h=u.length-1;h>=0;h--){var p=u[h];if(p!==J){var m=l[p];if(m===void 0&&!tr(l,p))return!0;var g=d[p],b=g&&g[J];if(b?b.t!==m:!ol(g,m))return!0}}var S=!!l[J];return u.length!==rr(l).length+(S?0:1)}function o(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&&Se(3,JSON.stringify(ut(s)))}var i={};ip("ES5",{J:function(s,l){var d=Array.isArray(s),u=function(p,m){if(p){for(var g=Array(m.length),b=0;b<m.length;b++)Object.defineProperty(g,""+b,t(b,!0));return g}var S=il(m);delete S[J];for(var C=rr(S),A=0;A<C.length;A++){var R=C[A];S[R]=t(R,p||!!S[R].enumerable)}return Object.create(Object.getPrototypeOf(m),S)}(d,s),h={i:d?5:4,A:l?l.A:Fa(),P:!1,I:!1,R:{},l,t:s,k:u,o:null,g:!1,C:!1};return Object.defineProperty(u,J,{value:h,writable:!0}),u},S:function(s,l,d){d?qe(l)&&l[J].A===s&&e(s.p):(s.u&&function u(h){if(h&&typeof h=="object"){var p=h[J];if(p){var m=p.t,g=p.k,b=p.R,S=p.i;if(S===4)Wt(g,function(v){v!==J&&(m[v]!==void 0||tr(m,v)?b[v]||u(g[v]):(b[v]=!0,ft(p)))}),Wt(m,function(v){g[v]!==void 0||tr(g,v)||(b[v]=!1,ft(p))});else if(S===5){if(o(p)&&(ft(p),b.length=!0),g.length<m.length)for(var C=g.length;C<m.length;C++)b[C]=!1;else for(var A=m.length;A<g.length;A++)b[A]=!0;for(var R=Math.min(g.length,m.length),O=0;O<R;O++)g.hasOwnProperty(O)||(b[O]=!0),b[O]===void 0&&u(g[O])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?r(s):o(s)}})}var Qc,Jr,Ga=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",lp=typeof Map<"u",dp=typeof Set<"u",el=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",al=Ga?Symbol.for("immer-nothing"):((Qc={})["immer-nothing"]=!0,Qc),tl=Ga?Symbol.for("immer-draftable"):"__$immer_draftable",J=Ga?Symbol.for("immer-state"):"__$immer_state";var up=""+Object.prototype.constructor,rr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,il=Object.getOwnPropertyDescriptors||function(t){var e={};return rr(t).forEach(function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)}),e},$a={},Xr={get:function(t,e){if(e===J)return t;var r=ut(t);if(!tr(r,e))return function(a,i,s){var l,d=Jc(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,r,e);var o=r[e];return t.I||!Ae(o)?o:o===Da(t.t,e)?(La(t),t.o[e]=Wa(t.A.h,o,t)):o},has:function(t,e){return e in ut(t)},ownKeys:function(t){return Reflect.ownKeys(ut(t))},set:function(t,e,r){var o=Jc(ut(t),e);if(o?.set)return o.set.call(t.k,r),!0;if(!t.P){var a=Da(ut(t),e),i=a?.[J];if(i&&i.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(ol(r,a)&&(r!==void 0||tr(t.t,e)))return!0;La(t),ft(t)}return t.o[e]===r&&(r!==void 0||e in t.o)||Number.isNaN(r)&&Number.isNaN(t.o[e])||(t.o[e]=r,t.R[e]=!0),!0},deleteProperty:function(t,e){return Da(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,La(t),ft(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=ut(t),o=Reflect.getOwnPropertyDescriptor(r,e);return o&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:o.enumerable,value:r[e]}},defineProperty:function(){Se(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Se(12)}},qr={};Wt(Xr,function(t,e){qr[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),qr.deleteProperty=function(t,e){return qr.set.call(this,t,e,void 0)},qr.set=function(t,e,r){return Xr.set.call(this,t[0],e,r,t[0])};var fp=function(){function t(r){var o=this;this.O=el,this.D=!0,this.produce=function(a,i,s){if(typeof a=="function"&&typeof i!="function"){var l=i;i=a;var d=o;return function(S){var C=this;S===void 0&&(S=l);for(var A=arguments.length,R=Array(A>1?A-1:0),O=1;O<A;O++)R[O-1]=arguments[O];return d.produce(S,function(v){var w;return(w=i).call.apply(w,[C,v].concat(R))})}}var u;if(typeof i!="function"&&Se(6),s!==void 0&&typeof s!="function"&&Se(7),Ae(a)){var h=Zc(o),p=Wa(o,a,void 0),m=!0;try{u=i(p),m=!1}finally{m?Yo(h):Ua(h)}return typeof Promise<"u"&&u instanceof Promise?u.then(function(S){return Ta(h,s),Ma(S,h)},function(S){throw Yo(h),S}):(Ta(h,s),Ma(u,h))}if(!a||typeof a!="object"){if((u=i(a))===void 0&&(u=a),u===al&&(u=void 0),o.D&&Ya(u,!0),s){var g=[],b=[];Ue("Patches").M(a,u,g,b),s(g,b)}return u}Se(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(u){for(var h=arguments.length,p=Array(h>1?h-1:0),m=1;m<h;m++)p[m-1]=arguments[m];return o.produceWithPatches(u,function(g){return a.apply(void 0,[g].concat(p))})};var s,l,d=o.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 r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var e=t.prototype;return e.createDraft=function(r){Ae(r)||Se(8),qe(r)&&(r=cp(r));var o=Zc(this),a=Wa(this,r,void 0);return a[J].C=!0,Ua(o),a},e.finishDraft=function(r,o){var a=r&&r[J],i=a.A;return Ta(i,o),Ma(void 0,i)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!el&&Se(20),this.O=r},e.applyPatches=function(r,o){var a;for(a=o.length-1;a>=0;a--){var i=o[a];if(i.path.length===0&&i.op==="replace"){r=i.value;break}}a>-1&&(o=o.slice(a+1));var s=Ue("Patches").$;return qe(r)?s(r,o):this.produce(r,function(l){return s(l,o)})},t}(),be=new fp,pp=be.produce,vO=be.produceWithPatches.bind(be),SO=be.setAutoFreeze.bind(be),OO=be.setUseProxies.bind(be),wO=be.applyPatches.bind(be),EO=be.createDraft.bind(be),CO=be.finishDraft.bind(be),Vo=pp;function pt(t){"@babel/helpers - typeof";return pt=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},pt(t)}function Va(t,e){if(pt(t)!=="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var o=r.call(t,e||"default");if(pt(o)!=="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Ka(t){var e=Va(t,"string");return pt(e)==="symbol"?e:String(e)}function Za(t,e,r){return e=Ka(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function sl(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,o)}return r}function Ko(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?sl(Object(r),!0).forEach(function(o){Za(t,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):sl(Object(r)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(r,o))})}return t}function se(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 cl=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),qa=function(){return Math.random().toString(36).substring(7).split("").join(".")},Zo={INIT:"@@redux/INIT"+qa(),REPLACE:"@@redux/REPLACE"+qa(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+qa()}};function hp(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 Ja(t,e,r){var o;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(se(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(se(1));return r(Ja)(t,e)}if(typeof t!="function")throw new Error(se(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(se(3));return i}function p(S){if(typeof S!="function")throw new Error(se(4));if(d)throw new Error(se(5));var C=!0;return u(),l.push(S),function(){if(C){if(d)throw new Error(se(6));C=!1,u();var R=l.indexOf(S);l.splice(R,1),s=null}}}function m(S){if(!hp(S))throw new Error(se(7));if(typeof S.type>"u")throw new Error(se(8));if(d)throw new Error(se(9));try{d=!0,i=a(i,S)}finally{d=!1}for(var C=s=l,A=0;A<C.length;A++){var R=C[A];R()}return S}function g(S){if(typeof S!="function")throw new Error(se(10));a=S,m({type:Zo.REPLACE})}function b(){var S,C=p;return S={subscribe:function(R){if(typeof R!="object"||R===null)throw new Error(se(11));function O(){R.next&&R.next(h())}O();var v=C(O);return{unsubscribe:v}}},S[cl]=function(){return this},S}return m({type:Zo.INIT}),o={dispatch:m,subscribe:p,getState:h,replaceReducer:g},o[cl]=b,o}function yp(t){Object.keys(t).forEach(function(e){var r=t[e],o=r(void 0,{type:Zo.INIT});if(typeof o>"u")throw new Error(se(12));if(typeof r(void 0,{type:Zo.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(se(13))})}function ll(t){for(var e=Object.keys(t),r={},o=0;o<e.length;o++){var a=e[o];typeof t[a]=="function"&&(r[a]=t[a])}var i=Object.keys(r),s,l;try{yp(r)}catch(d){l=d}return function(u,h){if(u===void 0&&(u={}),l)throw l;if(0)var p;for(var m=!1,g={},b=0;b<i.length;b++){var S=i[b],C=r[S],A=u[S],R=C(A,h);if(typeof R>"u"){var O=h&&h.type;throw new Error(se(14))}g[S]=R,m=m||R!==A}return m=m||i.length!==Object.keys(u).length,m?g:u}}function nr(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.length===0?function(o){return o}:e.length===1?e[0]:e.reduce(function(o,a){return function(){return o(a.apply(void 0,arguments))}})}function dl(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(o){return function(){var a=o.apply(void 0,arguments),i=function(){throw new Error(se(15))},s={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},l=e.map(function(d){return d(s)});return i=nr.apply(void 0,l)(a.dispatch),Ko(Ko({},a),{},{dispatch:i})}}}function ul(t){var e=function(o){var a=o.dispatch,i=o.getState;return function(s){return function(l){return typeof l=="function"?l(a,i,t):s(l)}}};return e}var fl=ul();fl.withExtraArgument=ul;var Xa=fl;var gl=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,a){o.__proto__=a}||function(o,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(o[i]=a[i])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function o(){this.constructor=e}e.prototype=r===null?Object.create(r):(o.prototype=r.prototype,new o)}}(),mp=function(t,e){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},o,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(o)throw new TypeError("Generator is already executing.");for(;r;)try{if(o=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 r.label++,{value:u[1],done:!1};case 5:r.label++,a=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){r.label=u[1];break}if(u[0]===6&&r.label<i[1]){r.label=i[1],i=u;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(u);break}i[2]&&r.ops.pop(),r.trys.pop();continue}u=e.call(t,r)}catch(h){u=[6,h],a=0}finally{o=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},ar=function(t,e){for(var r=0,o=e.length,a=t.length;r<o;r++,a++)t[a]=e[r];return t},gp=Object.defineProperty,bp=Object.defineProperties,xp=Object.getOwnPropertyDescriptors,pl=Object.getOwnPropertySymbols,vp=Object.prototype.hasOwnProperty,Sp=Object.prototype.propertyIsEnumerable,hl=function(t,e,r){return e in t?gp(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},ht=function(t,e){for(var r in e||(e={}))vp.call(e,r)&&hl(t,r,e[r]);if(pl)for(var o=0,a=pl(e);o<a.length;o++){var r=a[o];Sp.call(e,r)&&hl(t,r,e[r])}return t},Qa=function(t,e){return bp(t,xp(e))},Op=function(t,e,r){return new Promise(function(o,a){var i=function(d){try{l(r.next(d))}catch(u){a(u)}},s=function(d){try{l(r.throw(d))}catch(u){a(u)}},l=function(d){return d.done?o(d.value):Promise.resolve(d.value).then(i,s)};l((r=r.apply(t,e)).next())})};var wp=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?nr:nr.apply(null,arguments)},zO=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function Ep(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return e===r}var Cp=function(t){gl(e,t);function e(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var a=t.apply(this,r)||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 r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,ar([void 0],r[0].concat(this)))):new(e.bind.apply(e,ar([void 0],r.concat(this))))},e}(Array),_p=function(t){gl(e,t);function e(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var a=t.apply(this,r)||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 r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,ar([void 0],r[0].concat(this)))):new(e.bind.apply(e,ar([void 0],r.concat(this))))},e}(Array);function ri(t){return Ae(t)?Vo(t,function(){}):t}function Ap(t){return typeof t=="boolean"}function Np(){return function(e){return Rp(e)}}function Rp(t){t===void 0&&(t={});var e=t.thunk,r=e===void 0?!0:e,o=t.immutableCheck,a=o===void 0?!0:o,i=t.serializableCheck,s=i===void 0?!0:i,l=new Cp;if(r&&(Ap(r)?l.push(Xa):l.push(Xa.withExtraArgument(r.extraArgument))),0){if(a)var d;if(s)var u}return l}var ei=!0;function bl(t){var e=Np(),r=t||{},o=r.reducer,a=o===void 0?void 0:o,i=r.middleware,s=i===void 0?e():i,l=r.devTools,d=l===void 0?!0:l,u=r.preloadedState,h=u===void 0?void 0:u,p=r.enhancers,m=p===void 0?void 0:p,g;if(typeof a=="function")g=a;else if(Ep(a))g=ll(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),!ei&&!Array.isArray(b)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!ei&&b.some(function(v){return typeof v!="function"}))throw new Error("each middleware provided to configureStore must be a function");var S=dl.apply(void 0,b),C=nr;d&&(C=wp(ht({trace:!ei},typeof d=="object"&&d)));var A=new _p(S),R=A;Array.isArray(m)?R=ar([S],m):typeof m=="function"&&(R=m(A));var O=C.apply(void 0,R);return Ja(g,h,O)}function yt(t,e){function r(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];if(e){var i=e.apply(void 0,o);if(!i)throw new Error("prepareAction did not return an object");return ht(ht({type:t,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:t,payload:o[0]}}return r.toString=function(){return""+t},r.type=t,r.match=function(o){return o.type===t},r}function xl(t){var e={},r=[],o,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 r.push({matcher:i,reducer:s}),a},addDefaultCase:function(i){return o=i,a}};return t(a),[e,r,o]}function kp(t){return typeof t=="function"}function Pp(t,e,r,o){r===void 0&&(r=[]);var a=typeof e=="function"?xl(e):[e,r,o],i=a[0],s=a[1],l=a[2],d;if(kp(t))d=function(){return ri(t())};else{var u=ri(t);d=function(){return u}}function h(p,m){p===void 0&&(p=d());var g=ar([i[m.type]],s.filter(function(b){var S=b.matcher;return S(m)}).map(function(b){var S=b.reducer;return S}));return g.filter(function(b){return!!b}).length===0&&(g=[l]),g.reduce(function(b,S){if(S)if(qe(b)){var C=b,A=S(C,m);return A===void 0?b:A}else{if(Ae(b))return Vo(b,function(R){return S(R,m)});var A=S(b,m);if(A===void 0){if(b===null)return b;throw Error("A case reducer on a non-draftable value must not return undefined")}return A}return b},p)}return h.getInitialState=d,h}function Ip(t,e){return t+"/"+e}function vl(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof t.initialState=="function"?t.initialState:ri(t.initialState),o=t.reducers||{},a=Object.keys(o),i={},s={},l={};a.forEach(function(h){var p=o[h],m=Ip(e,h),g,b;"reducer"in p?(g=p.reducer,b=p.prepare):g=p,i[h]=g,s[m]=g,l[h]=b?yt(m,b):yt(m)});function d(){var h=typeof t.extraReducers=="function"?xl(t.extraReducers):[t.extraReducers],p=h[0],m=p===void 0?{}:p,g=h[1],b=g===void 0?[]:g,S=h[2],C=S===void 0?void 0:S,A=ht(ht({},m),s);return Pp(r,function(R){for(var O in A)R.addCase(O,A[O]);for(var v=0,w=b;v<w.length;v++){var k=w[v];R.addMatcher(k.matcher,k.reducer)}C&&R.addDefaultCase(C)})}var u;return{name:e,reducer:function(h,p){return u||(u=d()),u(h,p)},actions:l,caseReducers:i,getInitialState:function(){return u||(u=d()),u.getInitialState()}}}var Tp="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Mp=function(t){t===void 0&&(t=21);for(var e="",r=t;r--;)e+=Tp[Math.random()*64|0];return e},Dp=["name","message","stack","code"],ti=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),yl=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),Lp=function(t){if(typeof t=="object"&&t!==null){for(var e={},r=0,o=Dp;r<o.length;r++){var a=o[r];typeof t[a]=="string"&&(e[a]=t[a])}return e}return{message:String(t)}},VO=function(){function t(e,r,o){var a=yt(e+"/fulfilled",function(h,p,m,g){return{payload:h,meta:Qa(ht({},g||{}),{arg:m,requestId:p,requestStatus:"fulfilled"})}}),i=yt(e+"/pending",function(h,p,m){return{payload:void 0,meta:Qa(ht({},m||{}),{arg:p,requestId:h,requestStatus:"pending"})}}),s=yt(e+"/rejected",function(h,p,m,g,b){return{payload:g,error:(o&&o.serializeError||Lp)(h||"Rejected"),meta:Qa(ht({},b||{}),{arg:m,requestId:p,rejectedWithValue:!!g,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(p,m,g){var b=o?.idGenerator?o.idGenerator(h):Mp(),S=new d,C,A=!1;function R(v){C=v,S.abort()}var O=function(){return Op(this,null,function(){var v,w,k,M,$,W,I;return mp(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),M=(v=o?.condition)==null?void 0:v.call(o,h,{getState:m,extra:g}),Up(M)?[4,M]:[3,2];case 1:M=y.sent(),y.label=2;case 2:if(M===!1||S.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return A=!0,$=new Promise(function(x,P){return S.signal.addEventListener("abort",function(){return P({name:"AbortError",message:C||"Aborted"})})}),p(i(b,h,(w=o?.getPendingMeta)==null?void 0:w.call(o,{requestId:b,arg:h},{getState:m,extra:g}))),[4,Promise.race([$,Promise.resolve(r(h,{dispatch:p,getState:m,extra:g,requestId:b,signal:S.signal,abort:R,rejectWithValue:function(x,P){return new ti(x,P)},fulfillWithValue:function(x,P){return new yl(x,P)}})).then(function(x){if(x instanceof ti)throw x;return x instanceof yl?a(x.payload,b,h,x.meta):a(x,b,h)})])];case 3:return k=y.sent(),[3,5];case 4:return W=y.sent(),k=W instanceof ti?s(null,b,h,W.payload,W.meta):s(W,b,h),[3,5];case 5:return I=o&&!o.dispatchConditionRejection&&s.match(k)&&k.meta.condition,I||p(k),[2,k]}})})}();return Object.assign(O,{abort:R,requestId:b,arg:h,unwrap:function(){return O.then(Fp)}})}}return Object.assign(u,{pending:i,rejected:s,fulfilled:a,typePrefix:e})}return t.withTypes=function(){return t},t}();function Fp(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Up(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Sl="listener",Ol="completed",wl="cancelled",KO="task-"+wl,ZO="task-"+Ol,qO=Sl+"-"+wl,JO=Sl+"-"+Ol;var oi="listenerMiddleware";var XO=yt(oi+"/add"),QO=yt(oi+"/removeAll"),ew=yt(oi+"/remove");var ml,tw=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(ml||(ml=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},Wp=function(t){return function(e){setTimeout(e,t)}},rw=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Wp(10);nl();window.ftReduxStores||(window.ftReduxStores={});var ni=class t extends It{static get(e){var r;let o=typeof e=="string"?e:e.name,a=typeof e=="string"?void 0:e,i=window.ftReduxStores[o];if(Ft(i))return i;if(a==null)return;let s=vl({...a,reducers:(r=a.reducers)!==null&&r!==void 0?r:{}}),l=bl({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)}constructor(e,r){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new Zr,this.actions=new Proxy(this.reduxSlice.actions,{get:(o,a,i)=>{let s=a,l=o[s];return l?(...d)=>{let u=l(...d);return this.reduxStore.dispatch(u),u}:d=>{this.setState({[s]:d})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};function $p(){var t;for(let e of Object.values((t=window.ftReduxStores)!==null&&t!==void 0?t:{}))Ft(e)&&e.clear()}var ci={};j(ci,{scrollHelper:()=>Bp});var ii,qo=new Map,si=class{lock(e,r){if(r){let o=qo.get(r);if(o==null||o===e)return qo.set(r,e),r}}release(e,r){r&&qo.get(r)===e&&qo.delete(r)}findFirstScrollableParent(e){let r,o=a=>{var i;a.stopPropagation();let s,l;for(let d of a.composedPath()){let u=d,h=this.elementCanScroll(u);if(h&&u.clientHeight&&u.clientHeight<u.scrollHeight){s=u;break}else h&&l==null&&(l=u)}r=(i=s??l)!==null&&i!==void 0?i:document.body};return e.addEventListener("find-scrollable-parent",o),e.dispatchEvent(new Event("find-scrollable-parent",{composed:!0})),e.removeEventListener("find-scrollable-parent",o),r}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)}catch{return!1}}getAbsoluteScrollOffset(e,r){let o=0;for(;r&&r.offsetParent!==e.offsetParent;)o+=r.offsetTop,r=r.offsetParent;return o+r.offsetTop-e.offsetTop}computeTopOffsetRatio(e,r){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return r;default:return 0}}scrollIntoViewIfPossible(e,r){let o=this.findFirstScrollableParent(e);if(e&&this.lock(this,o)){let a=this.getAbsoluteScrollOffset(o,e),i=a-o.clientHeight+e.clientHeight,s=a,l=Dr(0,(s-o.scrollTop)/(s-i),1),d=this.computeTopOffsetRatio(r?.position,l)*(i-s)+s;o.scrollTo({behavior:r?.behavior,top:d})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,o);this.release(this,o)}};window.FluidTopicsScrollHelper=(ii=window.FluidTopicsScrollHelper)!==null&&ii!==void 0?ii:new si;var Bp=window.FluidTopicsScrollHelper;var li={};j(li,{shadowQuerySelector:()=>Hp,shadowQuerySelectorAll:()=>zp});function Hp(t,e,...r){var o;let a=t.querySelector(e);for(let i of r)a=(o=a?.shadowRoot)===null||o===void 0?void 0:o.querySelector(i);return a}function zp(t,e,...r){let o=[...t.querySelectorAll(e)];for(let a of r)o=o.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 o}var di={};j(di,{SearchPlaceConverter:()=>Qo,SearchPlaceQueryParams:()=>G,isSearchPlaceQueryParams:()=>Kl,serializeRequest:()=>Gp});var Yp=Qd(Cl(),1);var _l;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(_l||(_l={}));var Al;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Al||(Al={}));var Nl;(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"})(Nl||(Nl={}));var Rl;(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"})(Rl||(Rl={}));var kl;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(kl||(kl={}));var Pl;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Pl||(Pl={}));var Il;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Il||(Il={}));var Tl;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Tl||(Tl={}));var Ml;(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"})(Ml||(Ml={}));var Dl;(function(t){t.ASC="ASC",t.DESC="DESC"})(Dl||(Dl={}));var Ll;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Ll||(Ll={}));var Fl;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(Fl||(Fl={}));var zl=t=>["EVERYWHERE","TITLE_ONLY","NONE"].includes(t);var Ul;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"})(Ul||(Ul={}));var Wl;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Wl||(Wl={}));var $l;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"})($l||($l={}));var Qr;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Qr||(Qr={}));var Yl=t=>["LAST_WEEK","LAST_MONTH","LAST_QUARTER","LAST_YEAR"].includes(t);var Bl;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"})(Bl||(Bl={}));var Hl;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Hl||(Hl={}));var ae;(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.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"})(ae||(ae={}));var jl;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(jl||(jl={}));var Gl;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Gl||(Gl={}));var vw={[ae.PERSONAL_BOOK_SHARE_USER]:[ae.PERSONAL_BOOK_USER],[ae.HTML_EXPORT_USER]:[ae.PERSONAL_BOOK_USER],[ae.PDF_EXPORT_USER]:[ae.PERSONAL_BOOK_USER],[ae.KHUB_ADMIN]:[ae.CONTENT_PUBLISHER],[ae.ADMIN]:[ae.KHUB_ADMIN,ae.USERS_ADMIN,ae.PORTAL_ADMIN],[ae.DEVELOPER]:[ae.BETA_USER,ae.DEBUG_USER]};function jp(t){return`"${t}"`}function Vl(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function Gp(t,e){return new Qo(t).serialize(e)}var G;(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"})(G||(G={}));var Vp=new Set(Object.values(G));function Kl(t){return Vp.has(t)}var Qo=class{constructor(e,r={},o=20,a=!1,i="en-US"){this.baseUrl=e,this.predefinedSorts=r,this.defaultPerPage=o,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,r){return this.serializeToCurrentPageIfPossible(e,r??"/search")}serializeToCurrentPageIfPossible(e,r){let o=this.toURLSearchParams(e).toString(),a=r==null||r.trim().length===0,i=new URL(a?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${r}`);return i.search=o,i.toString()}toURLSearchParams(e,r=!1){var o,a,i,s,l,d,u,h,p,m,g,b;let S=new URLSearchParams;e.contentLocale?(!r||e.contentLocale!==this.defaultContentLocale)&&S.append(G.LOCALE,e.contentLocale):S.append(G.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((o=e.query)===null||o===void 0?void 0:o.length)>0&&S.append(G.QUERY,e.query),e.scope&&e.scope!=="DEFAULT"&&S.append(G.SCOPE,e.scope.toLowerCase()),e.virtualField&&e.virtualField!=="EVERYWHERE"&&S.append(G.VIRTUAL_FIELD,e.virtualField.toLowerCase()),((a=e.sort)===null||a===void 0?void 0:a.length)>0&&e.sort[0].key==="ft:lastEdition"&&S.append(G.SORT,"last_update");let C=(s=(i=e.metadataFilters)===null||i===void 0?void 0:i.filter(v=>v.valueFilter))!==null&&s!==void 0?s:[];if(C.length>0){let v=C.map(w=>{var k,M;let $=((M=(k=w.valueFilter)===null||k===void 0?void 0:k.values)!==null&&M!==void 0?M:[]).map(W=>this.escapeFilters(W)).map(W=>encodeURIComponent(jp(Vl(W)))).join("_");return`${w.key}~${$}`}).join("*");S.append(G.VALUE_FILTERS,v)}let A=(d=(l=e.metadataFilters)===null||l===void 0?void 0:l.filter(v=>v.dateFilter))!==null&&d!==void 0?d:[];if(A.length>0){let v=A.map(w=>{var k;return`${w.key}~${(k=w.dateFilter)===null||k===void 0?void 0:k.type.toLowerCase()}`}).join("*");S.append(G.DATE_FILTERS,v)}let R=(h=(u=e.metadataFilters)===null||u===void 0?void 0:u.filter(v=>v.rangeFilter))!==null&&h!==void 0?h:[];if(R.length>0){let v=R.map(w=>{var k,M;return`${w.key}~${(k=w.rangeFilter)===null||k===void 0?void 0:k.from}_${(M=w.rangeFilter)===null||M===void 0?void 0:M.to}`}).join("*");S.append(G.RANGE_FILTERS,v)}let O=(p=e.otherQueryParams)!==null&&p!==void 0?p:{};for(let v in O)S.append(v,O[v]);return!((m=e.paging)===null||m===void 0)&&m.perPage&&((b=(g=e.paging)===null||g===void 0?void 0:g.perPage)!==null&&b!==void 0?b:this.defaultPerPage)!=this.defaultPerPage&&S.append(G.PER_PAGE,String(e.paging.perPage)),S}parse(e){var r;let o=e.split("?"),a=this.fromURLSearchParams(new URLSearchParams(o.slice(1).join("?"))),i=o[0].split("/search/")[1];return i==null?a:{...a,scope:(r=this.scopeMapping[i])!==null&&r!==void 0?r:a.scope}}fromURLSearchParams(e){var r,o,a,i,s,l,d,u;let h=e.get(G.LOCALE)==="all"?void 0:e.get(G.LOCALE),p=((r=e.get(G.VIRTUAL_FIELD))!==null&&r!==void 0?r:"EVERYWHERE").toUpperCase(),m=((o=e.get(G.SORT))!==null&&o!==void 0?o:"DEFAULT").toUpperCase(),g=(a=e.get(G.SCOPE))!==null&&a!==void 0?a:"default",b=+((i=e.get(G.PER_PAGE))!==null&&i!==void 0?i:this.defaultPerPage),S={};for(let C of e.keys())Kl(C)||(S[C]=e.get(C));return{contentLocale:h??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:decodeURIComponent((s=e.get(G.QUERY))!==null&&s!==void 0?s:""),scope:(l=this.scopeMapping[g])!==null&&l!==void 0?l:"DEFAULT",virtualField:zl(p)?p:"EVERYWHERE",sort:(u=(d=this.predefinedSorts[m])!==null&&d!==void 0?d:this.predefinedSorts.DEFAULT)!==null&&u!==void 0?u:[],metadataFilters:this.parseCompatFilters(e),facets:[],paging:{page:1,perPage:Dr(1,isNaN(b)?this.defaultPerPage:b,1e3)},otherQueryParams:S}}parseCompatFilters(e){var r,o,a,i,s,l;let d=[];return e.has(G.FILTERS)&&(d=this.parseValueFilters((r=e.get(G.FILTERS))!==null&&r!==void 0?r:"")),(o=e.has(G.PERIOD))!==null&&o!==void 0&&o&&(d=[...d,...this.parseLegacyPeriodFilter(((a=e.get(G.PERIOD))!==null&&a!==void 0?a:"").toUpperCase())]),[...d,...this.parseValueFilters((i=e.get(G.VALUE_FILTERS))!==null&&i!==void 0?i:""),...this.parseDateFilters((s=e.get(G.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=e.get(G.RANGE_FILTERS))!==null&&l!==void 0?l:"")]}splitUnknownFilter(e){return this.superEscapeFilters(decodeURIComponent(e)).split("*").map(r=>r.split("~"))}parseValueFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(r=>({key:r[0],valueFilter:{values:r[1].split("_").map(Vl).map(o=>this.unescapeFilterValue(o)),negative:!1}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(r=>({key:r[0],dateFilter:{type:Qr[r[1].toUpperCase()]}}))}parseRangeFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(r=>({key:r[0],rangeFilter:{from:r[1].split("_")[0],to:r[1].split("_")[1]}}))}escapeFilters(e){for(let[r,o,a]of this.filtersEscapeMapping)e=e.replaceAll(r,o);return e}superEscapeFilters(e){for(let[r,o,a]of this.filtersEscapeMapping)e=e.replaceAll(o,a);return e}unescapeFilterValue(e){for(let[r,o,a]of this.filtersEscapeMapping)e=e.replace(a,r);return e}parseLegacyPeriodFilter(e){if(Yl(e))return[{key:"ft:lastEdition",dateFilter:{type:Qr[e]}}];if(e.startsWith("CUSTOM_")){let[r,o,a]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:o,to:a}}]}return[]}};var ui={};j(ui,{toFtFormComponent:()=>Kp});var en=Symbol("elementInternals");function Kp(t,e){class r extends t{static get formAssociated(){return!0}get form(){return this[en].form}constructor(...a){super(a),this[en]=this.attachInternals(),this[en].role=e}setFormValue(a){this[en].setFormValue(a)}}return r}var pi={};j(pi,{DateFormatter:()=>fi});var fi=class{static format(e,r,o,a){return window.moment?window.moment(e).locale(r).format(this.getDateFormat(o,a)):e}static getDateFormat(e,r){return e?r?"lll":"ll":r?"L LT":"L"}};var hi,yi,mi,gi,Zp=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((mi=(yi=(hi=window.safari)===null||hi===void 0?void 0:hi.pushNotification)===null||yi===void 0?void 0:yi.toString())!==null&&mi!==void 0?mi:"")==="[object SafariRemoteNotification]",qp="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(gi=window.ftGlobals)!==null&&gi!==void 0?gi:{lit:Wn,litDecorators:Hn,litRepeat:zn,litClassMap:Yn,litStyleMap:jn,litUnsafeHTML:Gn,wcUtils:{...ea,...Kn,...ra,...pi,...oa,...aa,...la,...Xn,...wa,...ca,...Aa,...Ca,...zc,...na,...Ra,...ka,...jc,...Ia,...ai,...Ea,...ci,...li,...di,...ui,isSafari:Zp,isTouchScreen:qp,setVariable:Lo}};var ed;function _(){return ed.apply(null,arguments)}function Jp(t){ed=t}function Re(t){return t instanceof Array||Object.prototype.toString.call(t)==="[object Array]"}function Ht(t){return t!=null&&Object.prototype.toString.call(t)==="[object Object]"}function z(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function Ri(t){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(t).length===0;var e;for(e in t)if(z(t,e))return!1;return!0}function he(t){return t===void 0}function rt(t){return typeof t=="number"||Object.prototype.toString.call(t)==="[object Number]"}function so(t){return t instanceof Date||Object.prototype.toString.call(t)==="[object Date]"}function td(t,e){var r=[],o,a=t.length;for(o=0;o<a;++o)r.push(e(t[o],o));return r}function gt(t,e){for(var r in e)z(e,r)&&(t[r]=e[r]);return z(e,"toString")&&(t.toString=e.toString),z(e,"valueOf")&&(t.valueOf=e.valueOf),t}function Be(t,e,r,o){return Cd(t,e,r,o,!0).utc()}function Xp(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function L(t){return t._pf==null&&(t._pf=Xp()),t._pf}var Oi;Array.prototype.some?Oi=Array.prototype.some:Oi=function(t){var e=Object(this),r=e.length>>>0,o;for(o=0;o<r;o++)if(o in e&&t.call(this,e[o],o,e))return!0;return!1};function ki(t){if(t._isValid==null){var e=L(t),r=Oi.call(e.parsedDateParts,function(a){return a!=null}),o=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidEra&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&r);if(t._strict&&(o=o&&e.charsLeftOver===0&&e.unusedTokens.length===0&&e.bigHour===void 0),Object.isFrozen==null||!Object.isFrozen(t))t._isValid=o;else return o}return t._isValid}function pn(t){var e=Be(NaN);return t!=null?gt(L(e),t):L(e).userInvalidated=!0,e}var Zl=_.momentProperties=[],bi=!1;function Pi(t,e){var r,o,a,i=Zl.length;if(he(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),he(e._i)||(t._i=e._i),he(e._f)||(t._f=e._f),he(e._l)||(t._l=e._l),he(e._strict)||(t._strict=e._strict),he(e._tzm)||(t._tzm=e._tzm),he(e._isUTC)||(t._isUTC=e._isUTC),he(e._offset)||(t._offset=e._offset),he(e._pf)||(t._pf=L(e)),he(e._locale)||(t._locale=e._locale),i>0)for(r=0;r<i;r++)o=Zl[r],a=e[o],he(a)||(t[o]=a);return t}function co(t){Pi(this,t),this._d=new Date(t._d!=null?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),bi===!1&&(bi=!0,_.updateOffset(this),bi=!1)}function ke(t){return t instanceof co||t!=null&&t._isAMomentObject!=null}function rd(t){_.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+t)}function we(t,e){var r=!0;return gt(function(){if(_.deprecationHandler!=null&&_.deprecationHandler(null,t),r){var o=[],a,i,s,l=arguments.length;for(i=0;i<l;i++){if(a="",typeof arguments[i]=="object"){a+=`
50
+ `;var jc={};var Ia={};j(Ia,{ParametrizedLabelResolver:()=>Pa});var Pa=class t{constructor(e,r){this.defaultLabels=e,this.labels=r}resolve(e,...r){var o,a;e=this.resolvePluralKey(e,r);let i=(a=(o=this.labels[e])!==null&&o!==void 0?o:this.defaultLabels[e])!==null&&a!==void 0?a:"";return t.replaceParameters(i,...r)}static replaceParameters(e,...r){return r.forEach((o,a)=>e=e.replace(new RegExp(`\\{${a}([^}]*)\\}`,"g"),(i,s)=>t.formatValue(o,s))),e}resolvePluralKey(e,r){for(let o of r)if(typeof o=="number"){let a=`${String(e)}[\\=${o}]`;if(a in this.labels||a in this.defaultLabels)return a}return e}static formatValue(e,r){return e instanceof Date?t.formatDate(e,r):e??""}static formatDate(e,r){let o=a=>r?.includes("date")?e.toLocaleDateString(a):r?.includes("time")?e.toLocaleTimeString(a):e.toLocaleString(a);try{return o(document.documentElement.lang)}catch{return o()}}};var ai={};j(ai,{FtCommandQueue:()=>Zr,FtLitElementRedux:()=>er,FtReduxStore:()=>ni,clearAllStores:()=>$p,isFtReduxStore:()=>Ft,redux:()=>rp,reduxEventListener:()=>op,reduxReactive:()=>tp});var tp=()=>(t,e)=>{var r;let o=t.constructor;o.reduxReactiveProperties=new Set(o.reduxReactiveProperties),(r=o.reduxReactiveProperties)===null||r===void 0||r.add(e)},rp=t=>{let e=t??{};return(r,o)=>{var a;let i={hasChanged:Mr,attribute:!1,...e};K(i)(r,o);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(o,{selector:(a=e.selector)!==null&&a!==void 0?a:l=>l[o],store:e.store})}},op=t=>(e,r)=>{let o=e.constructor;o.reduxEventListeners=new Map(o.reduxEventListeners),o.reduxEventListeners.set(r,t)};var Zr=class{constructor(){this.queue=[]}add(e,r=!1){r&&(this.queue=this.queue.filter(o=>o.type!==e.type)),this.queue.push(e)}consume(e){let r=this.queue.find(o=>o.type===e);return r&&(this.queue=this.queue.filter(o=>o!==r)),r}};function Ft(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Gc,Vc,Kc,zo=Symbol("internalReduxEventsUnsubscribers"),dt=Symbol("internalStoresUnsubscribers"),Ut=Symbol("internalStores"),er=class extends ge{constructor(){super(...arguments),this[Gc]=new Map,this[Vc]=new Map,this[Kc]=[]}get reduxConstructor(){return this.constructor}update(e){super.update(e),[...this.reduxConstructor.reduxReactiveProperties].some(r=>e.has(r))&&this.updateFromStores()}getUnnamedStore(){if(this[Ut].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ut].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[Ut].get(e)}addStore(e,r){var o;r=(o=r??(Ft(e)?e.name:void 0))!==null&&o!==void 0?o:"default-store",this.unsubscribeFromStore(r),this.setupStore(r,e)}removeStore(e){let r=typeof e=="string"?e:e.name;this.unsubscribeFromStore(r),this[Ut].delete(r)}setupStore(e,r){this[Ut].set(e,r),this.subscribeToStore(e,r),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Ut].forEach((e,r)=>this.subscribeToStore(r,e)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((e,r)=>{let o=this.constructor.getPropertyOptions(r);if(!o?.attribute||!this.hasAttribute(typeof o?.attribute=="string"?o.attribute:r)){let a=this.getStore(e.store);a&&(e.store?this[dt].has(e.store):this[dt].size>0)&&(this[r]=e.selector(a.getState(),this))}})}subscribeToStore(e,r){var o;this[dt].set(e,r.subscribe(()=>this.updateFromStores())),Ft(r)&&r.eventBus&&((o=this.reduxConstructor.reduxEventListeners)===null||o===void 0||o.forEach((a,i)=>{if(typeof this[i]=="function"&&(!a.store||r.name===a.store)){let s=l=>this[i](l);r.addEventListener(a.eventName,s),this[zo].push(()=>r.removeEventListener(a.eventName,s))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[dt].forEach((e,r)=>this.unsubscribeFromStore(r)),this[zo].forEach(e=>e()),this[zo]=[]}unsubscribeFromStore(e){this[dt].has(e)&&this[dt].get(e)(),this[dt].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Gc=dt,Vc=Ut,Kc=zo;er.reduxProperties=new Map;er.reduxReactiveProperties=new Set;er.reduxEventListeners=new Map;function Se(t){for(var e=arguments.length,r=Array(e>1?e-1:0),o=1;o<e;o++)r[o-1]=arguments[o];if(0)var a,i;throw Error("[Immer] minified error nr: "+t+(r.length?" "+r.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function qe(t){return!!t&&!!t[J]}function Ae(t){var e;return!!t&&(function(r){if(!r||typeof r!="object")return!1;var o=Object.getPrototypeOf(r);if(o===null)return!0;var a=Object.hasOwnProperty.call(o,"constructor")&&o.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===up}(t)||Array.isArray(t)||!!t[tl]||!!(!((e=t.constructor)===null||e===void 0)&&e[tl])||Ba(t)||Ha(t))}function Wt(t,e,r){r===void 0&&(r=!1),or(t)===0?(r?Object.keys:rr)(t).forEach(function(o){r&&typeof o=="symbol"||e(o,t[o],t)}):t.forEach(function(o,a){return e(a,o,t)})}function or(t){var e=t[J];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Ba(t)?2:Ha(t)?3:0}function tr(t,e){return or(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function np(t,e){return or(t)===2?t.get(e):t[e]}function rl(t,e,r){var o=or(t);o===2?t.set(e,r):o===3?t.add(r):t[e]=r}function ol(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function Ba(t){return lp&&t instanceof Map}function Ha(t){return dp&&t instanceof Set}function ut(t){return t.o||t.t}function za(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=il(t);delete e[J];for(var r=rr(e),o=0;o<r.length;o++){var a=r[o],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 Ya(t,e){return e===void 0&&(e=!1),ja(t)||qe(t)||!Ae(t)||(or(t)>1&&(t.set=t.add=t.clear=t.delete=ap),Object.freeze(t),e&&Wt(t,function(r,o){return Ya(o,!0)},!0)),t}function ap(){Se(2)}function ja(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function Ue(t){var e=$a[t];return e||Se(18,t),e}function ip(t,e){$a[t]||($a[t]=e)}function Fa(){return Jr}function Ta(t,e){e&&(Ue("Patches"),t.u=[],t.s=[],t.v=e)}function Yo(t){Ua(t),t.p.forEach(sp),t.p=null}function Ua(t){t===Jr&&(Jr=t.l)}function Zc(t){return Jr={p:[],l:Jr,h:t,m:!0,_:0}}function sp(t){var e=t[J];e.i===0||e.i===1?e.j():e.g=!0}function Ma(t,e){e._=e.p.length;var r=e.p[0],o=t!==void 0&&t!==r;return e.h.O||Ue("ES5").S(e,t,o),o?(r[J].P&&(Yo(e),Se(4)),Ae(t)&&(t=jo(e,t),e.l||Go(e,t)),e.u&&Ue("Patches").M(r[J].t,t,e.u,e.s)):t=jo(e,r,[]),Yo(e),e.u&&e.v(e.u,e.s),t!==al?t:void 0}function jo(t,e,r){if(ja(e))return e;var o=e[J];if(!o)return Wt(e,function(l,d){return qc(t,o,e,l,d,r)},!0),e;if(o.A!==t)return e;if(!o.P)return Go(t,o.t,!0),o.t;if(!o.I){o.I=!0,o.A._--;var a=o.i===4||o.i===5?o.o=za(o.k):o.o,i=a,s=!1;o.i===3&&(i=new Set(a),a.clear(),s=!0),Wt(i,function(l,d){return qc(t,o,a,l,d,r,s)}),Go(t,a,!1),r&&t.u&&Ue("Patches").N(o,r,t.u,t.s)}return o.o}function qc(t,e,r,o,a,i,s){if(qe(a)){var l=jo(t,a,i&&e&&e.i!==3&&!tr(e.R,o)?i.concat(o):void 0);if(rl(r,o,l),!qe(l))return;t.m=!1}else s&&r.add(a);if(Ae(a)&&!ja(a)){if(!t.h.D&&t._<1)return;jo(t,a),e&&e.A.l||Go(t,a)}}function Go(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&Ya(e,r)}function Da(t,e){var r=t[J];return(r?ut(r):t)[e]}function Jc(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var o=Object.getOwnPropertyDescriptor(r,e);if(o)return o;r=Object.getPrototypeOf(r)}}function ft(t){t.P||(t.P=!0,t.l&&ft(t.l))}function La(t){t.o||(t.o=za(t.t))}function Wa(t,e,r){var o=Ba(e)?Ue("MapSet").F(e,r):Ha(e)?Ue("MapSet").T(e,r):t.O?function(a,i){var s=Array.isArray(a),l={i:s?1:0,A:i?i.A:Fa(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},d=l,u=Xr;s&&(d=[l],u=qr);var h=Proxy.revocable(d,u),p=h.revoke,m=h.proxy;return l.k=m,l.j=p,m}(e,r):Ue("ES5").J(e,r);return(r?r.A:Fa()).p.push(o),o}function cp(t){return qe(t)||Se(22,t),function e(r){if(!Ae(r))return r;var o,a=r[J],i=or(r);if(a){if(!a.P&&(a.i<4||!Ue("ES5").K(a)))return a.t;a.I=!0,o=Xc(r,i),a.I=!1}else o=Xc(r,i);return Wt(o,function(s,l){a&&np(a.t,s)===l||rl(o,s,e(l))}),i===3?new Set(o):o}(t)}function Xc(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return za(t)}function nl(){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[J];return Xr.get(u,s)},set:function(u){var h=this[J];Xr.set(h,s,u)}},d}function e(s){for(var l=s.length-1;l>=0;l--){var d=s[l][J];if(!d.P)switch(d.i){case 5:o(d)&&ft(d);break;case 4:r(d)&&ft(d)}}}function r(s){for(var l=s.t,d=s.k,u=rr(d),h=u.length-1;h>=0;h--){var p=u[h];if(p!==J){var m=l[p];if(m===void 0&&!tr(l,p))return!0;var g=d[p],b=g&&g[J];if(b?b.t!==m:!ol(g,m))return!0}}var S=!!l[J];return u.length!==rr(l).length+(S?0:1)}function o(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&&Se(3,JSON.stringify(ut(s)))}var i={};ip("ES5",{J:function(s,l){var d=Array.isArray(s),u=function(p,m){if(p){for(var g=Array(m.length),b=0;b<m.length;b++)Object.defineProperty(g,""+b,t(b,!0));return g}var S=il(m);delete S[J];for(var C=rr(S),A=0;A<C.length;A++){var R=C[A];S[R]=t(R,p||!!S[R].enumerable)}return Object.create(Object.getPrototypeOf(m),S)}(d,s),h={i:d?5:4,A:l?l.A:Fa(),P:!1,I:!1,R:{},l,t:s,k:u,o:null,g:!1,C:!1};return Object.defineProperty(u,J,{value:h,writable:!0}),u},S:function(s,l,d){d?qe(l)&&l[J].A===s&&e(s.p):(s.u&&function u(h){if(h&&typeof h=="object"){var p=h[J];if(p){var m=p.t,g=p.k,b=p.R,S=p.i;if(S===4)Wt(g,function(v){v!==J&&(m[v]!==void 0||tr(m,v)?b[v]||u(g[v]):(b[v]=!0,ft(p)))}),Wt(m,function(v){g[v]!==void 0||tr(g,v)||(b[v]=!1,ft(p))});else if(S===5){if(o(p)&&(ft(p),b.length=!0),g.length<m.length)for(var C=g.length;C<m.length;C++)b[C]=!1;else for(var A=m.length;A<g.length;A++)b[A]=!0;for(var R=Math.min(g.length,m.length),O=0;O<R;O++)g.hasOwnProperty(O)||(b[O]=!0),b[O]===void 0&&u(g[O])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?r(s):o(s)}})}var Qc,Jr,Ga=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",lp=typeof Map<"u",dp=typeof Set<"u",el=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",al=Ga?Symbol.for("immer-nothing"):((Qc={})["immer-nothing"]=!0,Qc),tl=Ga?Symbol.for("immer-draftable"):"__$immer_draftable",J=Ga?Symbol.for("immer-state"):"__$immer_state";var up=""+Object.prototype.constructor,rr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,il=Object.getOwnPropertyDescriptors||function(t){var e={};return rr(t).forEach(function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)}),e},$a={},Xr={get:function(t,e){if(e===J)return t;var r=ut(t);if(!tr(r,e))return function(a,i,s){var l,d=Jc(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,r,e);var o=r[e];return t.I||!Ae(o)?o:o===Da(t.t,e)?(La(t),t.o[e]=Wa(t.A.h,o,t)):o},has:function(t,e){return e in ut(t)},ownKeys:function(t){return Reflect.ownKeys(ut(t))},set:function(t,e,r){var o=Jc(ut(t),e);if(o?.set)return o.set.call(t.k,r),!0;if(!t.P){var a=Da(ut(t),e),i=a?.[J];if(i&&i.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(ol(r,a)&&(r!==void 0||tr(t.t,e)))return!0;La(t),ft(t)}return t.o[e]===r&&(r!==void 0||e in t.o)||Number.isNaN(r)&&Number.isNaN(t.o[e])||(t.o[e]=r,t.R[e]=!0),!0},deleteProperty:function(t,e){return Da(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,La(t),ft(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=ut(t),o=Reflect.getOwnPropertyDescriptor(r,e);return o&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:o.enumerable,value:r[e]}},defineProperty:function(){Se(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Se(12)}},qr={};Wt(Xr,function(t,e){qr[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),qr.deleteProperty=function(t,e){return qr.set.call(this,t,e,void 0)},qr.set=function(t,e,r){return Xr.set.call(this,t[0],e,r,t[0])};var fp=function(){function t(r){var o=this;this.O=el,this.D=!0,this.produce=function(a,i,s){if(typeof a=="function"&&typeof i!="function"){var l=i;i=a;var d=o;return function(S){var C=this;S===void 0&&(S=l);for(var A=arguments.length,R=Array(A>1?A-1:0),O=1;O<A;O++)R[O-1]=arguments[O];return d.produce(S,function(v){var w;return(w=i).call.apply(w,[C,v].concat(R))})}}var u;if(typeof i!="function"&&Se(6),s!==void 0&&typeof s!="function"&&Se(7),Ae(a)){var h=Zc(o),p=Wa(o,a,void 0),m=!0;try{u=i(p),m=!1}finally{m?Yo(h):Ua(h)}return typeof Promise<"u"&&u instanceof Promise?u.then(function(S){return Ta(h,s),Ma(S,h)},function(S){throw Yo(h),S}):(Ta(h,s),Ma(u,h))}if(!a||typeof a!="object"){if((u=i(a))===void 0&&(u=a),u===al&&(u=void 0),o.D&&Ya(u,!0),s){var g=[],b=[];Ue("Patches").M(a,u,g,b),s(g,b)}return u}Se(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(u){for(var h=arguments.length,p=Array(h>1?h-1:0),m=1;m<h;m++)p[m-1]=arguments[m];return o.produceWithPatches(u,function(g){return a.apply(void 0,[g].concat(p))})};var s,l,d=o.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 r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var e=t.prototype;return e.createDraft=function(r){Ae(r)||Se(8),qe(r)&&(r=cp(r));var o=Zc(this),a=Wa(this,r,void 0);return a[J].C=!0,Ua(o),a},e.finishDraft=function(r,o){var a=r&&r[J],i=a.A;return Ta(i,o),Ma(void 0,i)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!el&&Se(20),this.O=r},e.applyPatches=function(r,o){var a;for(a=o.length-1;a>=0;a--){var i=o[a];if(i.path.length===0&&i.op==="replace"){r=i.value;break}}a>-1&&(o=o.slice(a+1));var s=Ue("Patches").$;return qe(r)?s(r,o):this.produce(r,function(l){return s(l,o)})},t}(),be=new fp,pp=be.produce,vO=be.produceWithPatches.bind(be),SO=be.setAutoFreeze.bind(be),OO=be.setUseProxies.bind(be),wO=be.applyPatches.bind(be),EO=be.createDraft.bind(be),CO=be.finishDraft.bind(be),Vo=pp;function pt(t){"@babel/helpers - typeof";return pt=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},pt(t)}function Va(t,e){if(pt(t)!=="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var o=r.call(t,e||"default");if(pt(o)!=="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Ka(t){var e=Va(t,"string");return pt(e)==="symbol"?e:String(e)}function Za(t,e,r){return e=Ka(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function sl(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,o)}return r}function Ko(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?sl(Object(r),!0).forEach(function(o){Za(t,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):sl(Object(r)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(r,o))})}return t}function se(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 cl=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),qa=function(){return Math.random().toString(36).substring(7).split("").join(".")},Zo={INIT:"@@redux/INIT"+qa(),REPLACE:"@@redux/REPLACE"+qa(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+qa()}};function hp(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 Ja(t,e,r){var o;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(se(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(se(1));return r(Ja)(t,e)}if(typeof t!="function")throw new Error(se(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(se(3));return i}function p(S){if(typeof S!="function")throw new Error(se(4));if(d)throw new Error(se(5));var C=!0;return u(),l.push(S),function(){if(C){if(d)throw new Error(se(6));C=!1,u();var R=l.indexOf(S);l.splice(R,1),s=null}}}function m(S){if(!hp(S))throw new Error(se(7));if(typeof S.type>"u")throw new Error(se(8));if(d)throw new Error(se(9));try{d=!0,i=a(i,S)}finally{d=!1}for(var C=s=l,A=0;A<C.length;A++){var R=C[A];R()}return S}function g(S){if(typeof S!="function")throw new Error(se(10));a=S,m({type:Zo.REPLACE})}function b(){var S,C=p;return S={subscribe:function(R){if(typeof R!="object"||R===null)throw new Error(se(11));function O(){R.next&&R.next(h())}O();var v=C(O);return{unsubscribe:v}}},S[cl]=function(){return this},S}return m({type:Zo.INIT}),o={dispatch:m,subscribe:p,getState:h,replaceReducer:g},o[cl]=b,o}function yp(t){Object.keys(t).forEach(function(e){var r=t[e],o=r(void 0,{type:Zo.INIT});if(typeof o>"u")throw new Error(se(12));if(typeof r(void 0,{type:Zo.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(se(13))})}function ll(t){for(var e=Object.keys(t),r={},o=0;o<e.length;o++){var a=e[o];typeof t[a]=="function"&&(r[a]=t[a])}var i=Object.keys(r),s,l;try{yp(r)}catch(d){l=d}return function(u,h){if(u===void 0&&(u={}),l)throw l;if(0)var p;for(var m=!1,g={},b=0;b<i.length;b++){var S=i[b],C=r[S],A=u[S],R=C(A,h);if(typeof R>"u"){var O=h&&h.type;throw new Error(se(14))}g[S]=R,m=m||R!==A}return m=m||i.length!==Object.keys(u).length,m?g:u}}function nr(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.length===0?function(o){return o}:e.length===1?e[0]:e.reduce(function(o,a){return function(){return o(a.apply(void 0,arguments))}})}function dl(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(o){return function(){var a=o.apply(void 0,arguments),i=function(){throw new Error(se(15))},s={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},l=e.map(function(d){return d(s)});return i=nr.apply(void 0,l)(a.dispatch),Ko(Ko({},a),{},{dispatch:i})}}}function ul(t){var e=function(o){var a=o.dispatch,i=o.getState;return function(s){return function(l){return typeof l=="function"?l(a,i,t):s(l)}}};return e}var fl=ul();fl.withExtraArgument=ul;var Xa=fl;var gl=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,a){o.__proto__=a}||function(o,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(o[i]=a[i])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function o(){this.constructor=e}e.prototype=r===null?Object.create(r):(o.prototype=r.prototype,new o)}}(),mp=function(t,e){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},o,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(o)throw new TypeError("Generator is already executing.");for(;r;)try{if(o=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 r.label++,{value:u[1],done:!1};case 5:r.label++,a=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){r.label=u[1];break}if(u[0]===6&&r.label<i[1]){r.label=i[1],i=u;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(u);break}i[2]&&r.ops.pop(),r.trys.pop();continue}u=e.call(t,r)}catch(h){u=[6,h],a=0}finally{o=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},ar=function(t,e){for(var r=0,o=e.length,a=t.length;r<o;r++,a++)t[a]=e[r];return t},gp=Object.defineProperty,bp=Object.defineProperties,xp=Object.getOwnPropertyDescriptors,pl=Object.getOwnPropertySymbols,vp=Object.prototype.hasOwnProperty,Sp=Object.prototype.propertyIsEnumerable,hl=function(t,e,r){return e in t?gp(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},ht=function(t,e){for(var r in e||(e={}))vp.call(e,r)&&hl(t,r,e[r]);if(pl)for(var o=0,a=pl(e);o<a.length;o++){var r=a[o];Sp.call(e,r)&&hl(t,r,e[r])}return t},Qa=function(t,e){return bp(t,xp(e))},Op=function(t,e,r){return new Promise(function(o,a){var i=function(d){try{l(r.next(d))}catch(u){a(u)}},s=function(d){try{l(r.throw(d))}catch(u){a(u)}},l=function(d){return d.done?o(d.value):Promise.resolve(d.value).then(i,s)};l((r=r.apply(t,e)).next())})};var wp=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?nr:nr.apply(null,arguments)},zO=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function Ep(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return e===r}var Cp=function(t){gl(e,t);function e(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var a=t.apply(this,r)||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 r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,ar([void 0],r[0].concat(this)))):new(e.bind.apply(e,ar([void 0],r.concat(this))))},e}(Array),_p=function(t){gl(e,t);function e(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var a=t.apply(this,r)||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 r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,ar([void 0],r[0].concat(this)))):new(e.bind.apply(e,ar([void 0],r.concat(this))))},e}(Array);function ri(t){return Ae(t)?Vo(t,function(){}):t}function Ap(t){return typeof t=="boolean"}function Np(){return function(e){return Rp(e)}}function Rp(t){t===void 0&&(t={});var e=t.thunk,r=e===void 0?!0:e,o=t.immutableCheck,a=o===void 0?!0:o,i=t.serializableCheck,s=i===void 0?!0:i,l=new Cp;if(r&&(Ap(r)?l.push(Xa):l.push(Xa.withExtraArgument(r.extraArgument))),0){if(a)var d;if(s)var u}return l}var ei=!0;function bl(t){var e=Np(),r=t||{},o=r.reducer,a=o===void 0?void 0:o,i=r.middleware,s=i===void 0?e():i,l=r.devTools,d=l===void 0?!0:l,u=r.preloadedState,h=u===void 0?void 0:u,p=r.enhancers,m=p===void 0?void 0:p,g;if(typeof a=="function")g=a;else if(Ep(a))g=ll(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),!ei&&!Array.isArray(b)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!ei&&b.some(function(v){return typeof v!="function"}))throw new Error("each middleware provided to configureStore must be a function");var S=dl.apply(void 0,b),C=nr;d&&(C=wp(ht({trace:!ei},typeof d=="object"&&d)));var A=new _p(S),R=A;Array.isArray(m)?R=ar([S],m):typeof m=="function"&&(R=m(A));var O=C.apply(void 0,R);return Ja(g,h,O)}function yt(t,e){function r(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];if(e){var i=e.apply(void 0,o);if(!i)throw new Error("prepareAction did not return an object");return ht(ht({type:t,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:t,payload:o[0]}}return r.toString=function(){return""+t},r.type=t,r.match=function(o){return o.type===t},r}function xl(t){var e={},r=[],o,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 r.push({matcher:i,reducer:s}),a},addDefaultCase:function(i){return o=i,a}};return t(a),[e,r,o]}function kp(t){return typeof t=="function"}function Pp(t,e,r,o){r===void 0&&(r=[]);var a=typeof e=="function"?xl(e):[e,r,o],i=a[0],s=a[1],l=a[2],d;if(kp(t))d=function(){return ri(t())};else{var u=ri(t);d=function(){return u}}function h(p,m){p===void 0&&(p=d());var g=ar([i[m.type]],s.filter(function(b){var S=b.matcher;return S(m)}).map(function(b){var S=b.reducer;return S}));return g.filter(function(b){return!!b}).length===0&&(g=[l]),g.reduce(function(b,S){if(S)if(qe(b)){var C=b,A=S(C,m);return A===void 0?b:A}else{if(Ae(b))return Vo(b,function(R){return S(R,m)});var A=S(b,m);if(A===void 0){if(b===null)return b;throw Error("A case reducer on a non-draftable value must not return undefined")}return A}return b},p)}return h.getInitialState=d,h}function Ip(t,e){return t+"/"+e}function vl(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof t.initialState=="function"?t.initialState:ri(t.initialState),o=t.reducers||{},a=Object.keys(o),i={},s={},l={};a.forEach(function(h){var p=o[h],m=Ip(e,h),g,b;"reducer"in p?(g=p.reducer,b=p.prepare):g=p,i[h]=g,s[m]=g,l[h]=b?yt(m,b):yt(m)});function d(){var h=typeof t.extraReducers=="function"?xl(t.extraReducers):[t.extraReducers],p=h[0],m=p===void 0?{}:p,g=h[1],b=g===void 0?[]:g,S=h[2],C=S===void 0?void 0:S,A=ht(ht({},m),s);return Pp(r,function(R){for(var O in A)R.addCase(O,A[O]);for(var v=0,w=b;v<w.length;v++){var k=w[v];R.addMatcher(k.matcher,k.reducer)}C&&R.addDefaultCase(C)})}var u;return{name:e,reducer:function(h,p){return u||(u=d()),u(h,p)},actions:l,caseReducers:i,getInitialState:function(){return u||(u=d()),u.getInitialState()}}}var Tp="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Mp=function(t){t===void 0&&(t=21);for(var e="",r=t;r--;)e+=Tp[Math.random()*64|0];return e},Dp=["name","message","stack","code"],ti=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),yl=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),Lp=function(t){if(typeof t=="object"&&t!==null){for(var e={},r=0,o=Dp;r<o.length;r++){var a=o[r];typeof t[a]=="string"&&(e[a]=t[a])}return e}return{message:String(t)}},VO=function(){function t(e,r,o){var a=yt(e+"/fulfilled",function(h,p,m,g){return{payload:h,meta:Qa(ht({},g||{}),{arg:m,requestId:p,requestStatus:"fulfilled"})}}),i=yt(e+"/pending",function(h,p,m){return{payload:void 0,meta:Qa(ht({},m||{}),{arg:p,requestId:h,requestStatus:"pending"})}}),s=yt(e+"/rejected",function(h,p,m,g,b){return{payload:g,error:(o&&o.serializeError||Lp)(h||"Rejected"),meta:Qa(ht({},b||{}),{arg:m,requestId:p,rejectedWithValue:!!g,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(p,m,g){var b=o?.idGenerator?o.idGenerator(h):Mp(),S=new d,C,A=!1;function R(v){C=v,S.abort()}var O=function(){return Op(this,null,function(){var v,w,k,M,$,W,I;return mp(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),M=(v=o?.condition)==null?void 0:v.call(o,h,{getState:m,extra:g}),Up(M)?[4,M]:[3,2];case 1:M=y.sent(),y.label=2;case 2:if(M===!1||S.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return A=!0,$=new Promise(function(x,P){return S.signal.addEventListener("abort",function(){return P({name:"AbortError",message:C||"Aborted"})})}),p(i(b,h,(w=o?.getPendingMeta)==null?void 0:w.call(o,{requestId:b,arg:h},{getState:m,extra:g}))),[4,Promise.race([$,Promise.resolve(r(h,{dispatch:p,getState:m,extra:g,requestId:b,signal:S.signal,abort:R,rejectWithValue:function(x,P){return new ti(x,P)},fulfillWithValue:function(x,P){return new yl(x,P)}})).then(function(x){if(x instanceof ti)throw x;return x instanceof yl?a(x.payload,b,h,x.meta):a(x,b,h)})])];case 3:return k=y.sent(),[3,5];case 4:return W=y.sent(),k=W instanceof ti?s(null,b,h,W.payload,W.meta):s(W,b,h),[3,5];case 5:return I=o&&!o.dispatchConditionRejection&&s.match(k)&&k.meta.condition,I||p(k),[2,k]}})})}();return Object.assign(O,{abort:R,requestId:b,arg:h,unwrap:function(){return O.then(Fp)}})}}return Object.assign(u,{pending:i,rejected:s,fulfilled:a,typePrefix:e})}return t.withTypes=function(){return t},t}();function Fp(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Up(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Sl="listener",Ol="completed",wl="cancelled",KO="task-"+wl,ZO="task-"+Ol,qO=Sl+"-"+wl,JO=Sl+"-"+Ol;var oi="listenerMiddleware";var XO=yt(oi+"/add"),QO=yt(oi+"/removeAll"),ew=yt(oi+"/remove");var ml,tw=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(ml||(ml=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},Wp=function(t){return function(e){setTimeout(e,t)}},rw=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Wp(10);nl();window.ftReduxStores||(window.ftReduxStores={});var ni=class t extends It{static get(e){var r;let o=typeof e=="string"?e:e.name,a=typeof e=="string"?void 0:e,i=window.ftReduxStores[o];if(Ft(i))return i;if(a==null)return;let s=vl({...a,reducers:(r=a.reducers)!==null&&r!==void 0?r:{}}),l=bl({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)}constructor(e,r){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new Zr,this.actions=new Proxy(this.reduxSlice.actions,{get:(o,a,i)=>{let s=a,l=o[s];return l?(...d)=>{let u=l(...d);return this.reduxStore.dispatch(u),u}:d=>{this.setState({[s]:d})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};function $p(){var t;for(let e of Object.values((t=window.ftReduxStores)!==null&&t!==void 0?t:{}))Ft(e)&&e.clear()}var ci={};j(ci,{scrollHelper:()=>Bp});var ii,qo=new Map,si=class{lock(e,r){if(r){let o=qo.get(r);if(o==null||o===e)return qo.set(r,e),r}}release(e,r){r&&qo.get(r)===e&&qo.delete(r)}findFirstScrollableParent(e){let r,o=a=>{var i;a.stopPropagation();let s,l;for(let d of a.composedPath()){let u=d,h=this.elementCanScroll(u);if(h&&u.clientHeight&&u.clientHeight<u.scrollHeight){s=u;break}else h&&l==null&&(l=u)}r=(i=s??l)!==null&&i!==void 0?i:document.body};return e.addEventListener("find-scrollable-parent",o),e.dispatchEvent(new Event("find-scrollable-parent",{composed:!0})),e.removeEventListener("find-scrollable-parent",o),r}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)}catch{return!1}}getAbsoluteScrollOffset(e,r){var o,a;let i=0;for(;r&&r.offsetParent!==e.offsetParent;)i+=(o=r.offsetTop)!==null&&o!==void 0?o:0,r=r.offsetParent;return i+((a=r?.offsetTop)!==null&&a!==void 0?a:0)-e.offsetTop}computeTopOffsetRatio(e,r){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return r;default:return 0}}scrollIntoViewIfPossible(e,r){let o=this.findFirstScrollableParent(e);if(e&&this.lock(this,o)){let a=this.getAbsoluteScrollOffset(o,e),i=a-o.clientHeight+e.clientHeight,s=a,l=Dr(0,(s-o.scrollTop)/(s-i),1),d=this.computeTopOffsetRatio(r?.position,l)*(i-s)+s;o.scrollTo({behavior:r?.behavior,top:d})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,o);this.release(this,o)}};window.FluidTopicsScrollHelper=(ii=window.FluidTopicsScrollHelper)!==null&&ii!==void 0?ii:new si;var Bp=window.FluidTopicsScrollHelper;var li={};j(li,{shadowQuerySelector:()=>Hp,shadowQuerySelectorAll:()=>zp});function Hp(t,e,...r){var o;let a=t.querySelector(e);for(let i of r)a=(o=a?.shadowRoot)===null||o===void 0?void 0:o.querySelector(i);return a}function zp(t,e,...r){let o=[...t.querySelectorAll(e)];for(let a of r)o=o.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 o}var di={};j(di,{SearchPlaceConverter:()=>Qo,SearchPlaceQueryParams:()=>G,isSearchPlaceQueryParams:()=>Kl,serializeRequest:()=>Gp});var Yp=Qd(Cl(),1);var _l;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(_l||(_l={}));var Al;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Al||(Al={}));var Nl;(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"})(Nl||(Nl={}));var Rl;(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"})(Rl||(Rl={}));var kl;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(kl||(kl={}));var Pl;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Pl||(Pl={}));var Il;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Il||(Il={}));var Tl;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Tl||(Tl={}));var Ml;(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"})(Ml||(Ml={}));var Dl;(function(t){t.ASC="ASC",t.DESC="DESC"})(Dl||(Dl={}));var Ll;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Ll||(Ll={}));var Fl;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(Fl||(Fl={}));var zl=t=>["EVERYWHERE","TITLE_ONLY","NONE"].includes(t);var Ul;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"})(Ul||(Ul={}));var Wl;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Wl||(Wl={}));var $l;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"})($l||($l={}));var Qr;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Qr||(Qr={}));var Yl=t=>["LAST_WEEK","LAST_MONTH","LAST_QUARTER","LAST_YEAR"].includes(t);var Bl;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"})(Bl||(Bl={}));var Hl;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Hl||(Hl={}));var ae;(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.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"})(ae||(ae={}));var jl;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(jl||(jl={}));var Gl;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Gl||(Gl={}));var vw={[ae.PERSONAL_BOOK_SHARE_USER]:[ae.PERSONAL_BOOK_USER],[ae.HTML_EXPORT_USER]:[ae.PERSONAL_BOOK_USER],[ae.PDF_EXPORT_USER]:[ae.PERSONAL_BOOK_USER],[ae.KHUB_ADMIN]:[ae.CONTENT_PUBLISHER],[ae.ADMIN]:[ae.KHUB_ADMIN,ae.USERS_ADMIN,ae.PORTAL_ADMIN],[ae.DEVELOPER]:[ae.BETA_USER,ae.DEBUG_USER]};function jp(t){return`"${t}"`}function Vl(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function Gp(t,e){return new Qo(t).serialize(e)}var G;(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"})(G||(G={}));var Vp=new Set(Object.values(G));function Kl(t){return Vp.has(t)}var Qo=class{constructor(e,r={},o=20,a=!1,i="en-US"){this.baseUrl=e,this.predefinedSorts=r,this.defaultPerPage=o,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,r){return this.serializeToCurrentPageIfPossible(e,r??"/search")}serializeToCurrentPageIfPossible(e,r){let o=this.toURLSearchParams(e).toString(),a=r==null||r.trim().length===0,i=new URL(a?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${r}`);return i.search=o,i.toString()}toURLSearchParams(e,r=!1){var o,a,i,s,l,d,u,h,p,m,g,b;let S=new URLSearchParams;e.contentLocale?(!r||e.contentLocale!==this.defaultContentLocale)&&S.append(G.LOCALE,e.contentLocale):S.append(G.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((o=e.query)===null||o===void 0?void 0:o.length)>0&&S.append(G.QUERY,e.query),e.scope&&e.scope!=="DEFAULT"&&S.append(G.SCOPE,e.scope.toLowerCase()),e.virtualField&&e.virtualField!=="EVERYWHERE"&&S.append(G.VIRTUAL_FIELD,e.virtualField.toLowerCase()),((a=e.sort)===null||a===void 0?void 0:a.length)>0&&e.sort[0].key==="ft:lastEdition"&&S.append(G.SORT,"last_update");let C=(s=(i=e.metadataFilters)===null||i===void 0?void 0:i.filter(v=>v.valueFilter))!==null&&s!==void 0?s:[];if(C.length>0){let v=C.map(w=>{var k,M;let $=((M=(k=w.valueFilter)===null||k===void 0?void 0:k.values)!==null&&M!==void 0?M:[]).map(W=>this.escapeFilters(W)).map(W=>encodeURIComponent(jp(Vl(W)))).join("_");return`${w.key}~${$}`}).join("*");S.append(G.VALUE_FILTERS,v)}let A=(d=(l=e.metadataFilters)===null||l===void 0?void 0:l.filter(v=>v.dateFilter))!==null&&d!==void 0?d:[];if(A.length>0){let v=A.map(w=>{var k;return`${w.key}~${(k=w.dateFilter)===null||k===void 0?void 0:k.type.toLowerCase()}`}).join("*");S.append(G.DATE_FILTERS,v)}let R=(h=(u=e.metadataFilters)===null||u===void 0?void 0:u.filter(v=>v.rangeFilter))!==null&&h!==void 0?h:[];if(R.length>0){let v=R.map(w=>{var k,M;return`${w.key}~${(k=w.rangeFilter)===null||k===void 0?void 0:k.from}_${(M=w.rangeFilter)===null||M===void 0?void 0:M.to}`}).join("*");S.append(G.RANGE_FILTERS,v)}let O=(p=e.otherQueryParams)!==null&&p!==void 0?p:{};for(let v in O)S.append(v,O[v]);return!((m=e.paging)===null||m===void 0)&&m.perPage&&((b=(g=e.paging)===null||g===void 0?void 0:g.perPage)!==null&&b!==void 0?b:this.defaultPerPage)!=this.defaultPerPage&&S.append(G.PER_PAGE,String(e.paging.perPage)),S}parse(e){var r;let o=e.split("?"),a=this.fromURLSearchParams(new URLSearchParams(o.slice(1).join("?"))),i=o[0].split("/search/")[1];return i==null?a:{...a,scope:(r=this.scopeMapping[i])!==null&&r!==void 0?r:a.scope}}fromURLSearchParams(e){var r,o,a,i,s,l,d,u;let h=e.get(G.LOCALE)==="all"?void 0:e.get(G.LOCALE),p=((r=e.get(G.VIRTUAL_FIELD))!==null&&r!==void 0?r:"EVERYWHERE").toUpperCase(),m=((o=e.get(G.SORT))!==null&&o!==void 0?o:"DEFAULT").toUpperCase(),g=(a=e.get(G.SCOPE))!==null&&a!==void 0?a:"default",b=+((i=e.get(G.PER_PAGE))!==null&&i!==void 0?i:this.defaultPerPage),S={};for(let C of e.keys())Kl(C)||(S[C]=e.get(C));return{contentLocale:h??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:decodeURIComponent((s=e.get(G.QUERY))!==null&&s!==void 0?s:""),scope:(l=this.scopeMapping[g])!==null&&l!==void 0?l:"DEFAULT",virtualField:zl(p)?p:"EVERYWHERE",sort:(u=(d=this.predefinedSorts[m])!==null&&d!==void 0?d:this.predefinedSorts.DEFAULT)!==null&&u!==void 0?u:[],metadataFilters:this.parseCompatFilters(e),facets:[],paging:{page:1,perPage:Dr(1,isNaN(b)?this.defaultPerPage:b,1e3)},otherQueryParams:S}}parseCompatFilters(e){var r,o,a,i,s,l;let d=[];return e.has(G.FILTERS)&&(d=this.parseValueFilters((r=e.get(G.FILTERS))!==null&&r!==void 0?r:"")),(o=e.has(G.PERIOD))!==null&&o!==void 0&&o&&(d=[...d,...this.parseLegacyPeriodFilter(((a=e.get(G.PERIOD))!==null&&a!==void 0?a:"").toUpperCase())]),[...d,...this.parseValueFilters((i=e.get(G.VALUE_FILTERS))!==null&&i!==void 0?i:""),...this.parseDateFilters((s=e.get(G.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=e.get(G.RANGE_FILTERS))!==null&&l!==void 0?l:"")]}splitUnknownFilter(e){return this.superEscapeFilters(decodeURIComponent(e)).split("*").map(r=>r.split("~"))}parseValueFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(r=>({key:r[0],valueFilter:{values:r[1].split("_").map(Vl).map(o=>this.unescapeFilterValue(o)),negative:!1}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(r=>({key:r[0],dateFilter:{type:Qr[r[1].toUpperCase()]}}))}parseRangeFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(r=>({key:r[0],rangeFilter:{from:r[1].split("_")[0],to:r[1].split("_")[1]}}))}escapeFilters(e){for(let[r,o,a]of this.filtersEscapeMapping)e=e.replaceAll(r,o);return e}superEscapeFilters(e){for(let[r,o,a]of this.filtersEscapeMapping)e=e.replaceAll(o,a);return e}unescapeFilterValue(e){for(let[r,o,a]of this.filtersEscapeMapping)e=e.replace(a,r);return e}parseLegacyPeriodFilter(e){if(Yl(e))return[{key:"ft:lastEdition",dateFilter:{type:Qr[e]}}];if(e.startsWith("CUSTOM_")){let[r,o,a]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:o,to:a}}]}return[]}};var ui={};j(ui,{toFtFormComponent:()=>Kp});var en=Symbol("elementInternals");function Kp(t,e){class r extends t{static get formAssociated(){return!0}get form(){return this[en].form}constructor(...a){super(a),this[en]=this.attachInternals(),this[en].role=e}setFormValue(a){this[en].setFormValue(a)}}return r}var pi={};j(pi,{DateFormatter:()=>fi});var fi=class{static format(e,r,o,a){return window.moment?window.moment(e).locale(r).format(this.getDateFormat(o,a)):e}static getDateFormat(e,r){return e?r?"lll":"ll":r?"L LT":"L"}};var hi,yi,mi,gi,Zp=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((mi=(yi=(hi=window.safari)===null||hi===void 0?void 0:hi.pushNotification)===null||yi===void 0?void 0:yi.toString())!==null&&mi!==void 0?mi:"")==="[object SafariRemoteNotification]",qp="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(gi=window.ftGlobals)!==null&&gi!==void 0?gi:{lit:Wn,litDecorators:Hn,litRepeat:zn,litClassMap:Yn,litStyleMap:jn,litUnsafeHTML:Gn,wcUtils:{...ea,...Kn,...ra,...pi,...oa,...aa,...la,...Xn,...wa,...ca,...Aa,...Ca,...zc,...na,...Ra,...ka,...jc,...Ia,...ai,...Ea,...ci,...li,...di,...ui,isSafari:Zp,isTouchScreen:qp,setVariable:Lo}};var ed;function _(){return ed.apply(null,arguments)}function Jp(t){ed=t}function Re(t){return t instanceof Array||Object.prototype.toString.call(t)==="[object Array]"}function Ht(t){return t!=null&&Object.prototype.toString.call(t)==="[object Object]"}function z(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function Ri(t){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(t).length===0;var e;for(e in t)if(z(t,e))return!1;return!0}function he(t){return t===void 0}function rt(t){return typeof t=="number"||Object.prototype.toString.call(t)==="[object Number]"}function so(t){return t instanceof Date||Object.prototype.toString.call(t)==="[object Date]"}function td(t,e){var r=[],o,a=t.length;for(o=0;o<a;++o)r.push(e(t[o],o));return r}function gt(t,e){for(var r in e)z(e,r)&&(t[r]=e[r]);return z(e,"toString")&&(t.toString=e.toString),z(e,"valueOf")&&(t.valueOf=e.valueOf),t}function Be(t,e,r,o){return Cd(t,e,r,o,!0).utc()}function Xp(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function L(t){return t._pf==null&&(t._pf=Xp()),t._pf}var Oi;Array.prototype.some?Oi=Array.prototype.some:Oi=function(t){var e=Object(this),r=e.length>>>0,o;for(o=0;o<r;o++)if(o in e&&t.call(this,e[o],o,e))return!0;return!1};function ki(t){if(t._isValid==null){var e=L(t),r=Oi.call(e.parsedDateParts,function(a){return a!=null}),o=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidEra&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&r);if(t._strict&&(o=o&&e.charsLeftOver===0&&e.unusedTokens.length===0&&e.bigHour===void 0),Object.isFrozen==null||!Object.isFrozen(t))t._isValid=o;else return o}return t._isValid}function pn(t){var e=Be(NaN);return t!=null?gt(L(e),t):L(e).userInvalidated=!0,e}var Zl=_.momentProperties=[],bi=!1;function Pi(t,e){var r,o,a,i=Zl.length;if(he(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),he(e._i)||(t._i=e._i),he(e._f)||(t._f=e._f),he(e._l)||(t._l=e._l),he(e._strict)||(t._strict=e._strict),he(e._tzm)||(t._tzm=e._tzm),he(e._isUTC)||(t._isUTC=e._isUTC),he(e._offset)||(t._offset=e._offset),he(e._pf)||(t._pf=L(e)),he(e._locale)||(t._locale=e._locale),i>0)for(r=0;r<i;r++)o=Zl[r],a=e[o],he(a)||(t[o]=a);return t}function co(t){Pi(this,t),this._d=new Date(t._d!=null?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),bi===!1&&(bi=!0,_.updateOffset(this),bi=!1)}function ke(t){return t instanceof co||t!=null&&t._isAMomentObject!=null}function rd(t){_.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+t)}function we(t,e){var r=!0;return gt(function(){if(_.deprecationHandler!=null&&_.deprecationHandler(null,t),r){var o=[],a,i,s,l=arguments.length;for(i=0;i<l;i++){if(a="",typeof arguments[i]=="object"){a+=`
51
51
  [`+i+"] ";for(s in arguments[0])z(arguments[0],s)&&(a+=s+": "+arguments[0][s]+", ");a=a.slice(0,-2)}else a=arguments[i];o.push(a)}rd(t+`
52
52
  Arguments: `+Array.prototype.slice.call(o).join("")+`
53
53
  `+new Error().stack),r=!1}return e.apply(this,arguments)},e)}var ql={};function od(t,e){_.deprecationHandler!=null&&_.deprecationHandler(t,e),ql[t]||(rd(e),ql[t]=!0)}_.suppressDeprecationWarnings=!1;_.deprecationHandler=null;function He(t){return typeof Function<"u"&&t instanceof Function||Object.prototype.toString.call(t)==="[object Function]"}function Qp(t){var e,r;for(r in t)z(t,r)&&(e=t[r],He(e)?this[r]=e:this["_"+r]=e);this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function wi(t,e){var r=gt({},t),o;for(o in e)z(e,o)&&(Ht(t[o])&&Ht(e[o])?(r[o]={},gt(r[o],t[o]),gt(r[o],e[o])):e[o]!=null?r[o]=e[o]:delete r[o]);for(o in t)z(t,o)&&!z(e,o)&&Ht(t[o])&&(r[o]=gt({},r[o]));return r}function Ii(t){t!=null&&this.set(t)}var Ei;Object.keys?Ei=Object.keys:Ei=function(t){var e,r=[];for(e in t)z(t,e)&&r.push(e);return r};var eh={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function th(t,e,r){var o=this._calendar[t]||this._calendar.sameElse;return He(o)?o.call(e,r):o}function $e(t,e,r){var o=""+Math.abs(t),a=e-o.length,i=t>=0;return(i?r?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+o}var Ti=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,tn=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,xi={},dr={};function T(t,e,r,o){var a=o;typeof o=="string"&&(a=function(){return this[o]()}),t&&(dr[t]=a),e&&(dr[e[0]]=function(){return $e(a.apply(this,arguments),e[1],e[2])}),r&&(dr[r]=function(){return this.localeData().ordinal(a.apply(this,arguments),t)})}function rh(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function oh(t){var e=t.match(Ti),r,o;for(r=0,o=e.length;r<o;r++)dr[e[r]]?e[r]=dr[e[r]]:e[r]=rh(e[r]);return function(a){var i="",s;for(s=0;s<o;s++)i+=He(e[s])?e[s].call(a,t):e[s];return i}}function on(t,e){return t.isValid()?(e=nd(e,t.localeData()),xi[e]=xi[e]||oh(e),xi[e](t)):t.localeData().invalidDate()}function nd(t,e){var r=5;function o(a){return e.longDateFormat(a)||a}for(tn.lastIndex=0;r>=0&&tn.test(t);)t=t.replace(tn,o),tn.lastIndex=0,r-=1;return t}var nh={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function ah(t){var e=this._longDateFormat[t],r=this._longDateFormat[t.toUpperCase()];return e||!r?e:(this._longDateFormat[t]=r.match(Ti).map(function(o){return o==="MMMM"||o==="MM"||o==="DD"||o==="dddd"?o.slice(1):o}).join(""),this._longDateFormat[t])}var ih="Invalid date";function sh(){return this._invalidDate}var ch="%d",lh=/\d{1,2}/;function dh(t){return this._ordinal.replace("%d",t)}var uh={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function fh(t,e,r,o){var a=this._relativeTime[r];return He(a)?a(t,e,r,o):a.replace(/%d/i,t)}function ph(t,e){var r=this._relativeTime[t>0?"future":"past"];return He(r)?r(e):r.replace(/%s/i,e)}var ro={};function le(t,e){var r=t.toLowerCase();ro[r]=ro[r+"s"]=ro[e]=t}function Ee(t){return typeof t=="string"?ro[t]||ro[t.toLowerCase()]:void 0}function Mi(t){var e={},r,o;for(o in t)z(t,o)&&(r=Ee(o),r&&(e[r]=t[o]));return e}var ad={};function de(t,e){ad[t]=e}function hh(t){var e=[],r;for(r in t)z(t,r)&&e.push({unit:r,priority:ad[r]});return e.sort(function(o,a){return o.priority-a.priority}),e}function hn(t){return t%4===0&&t%100!==0||t%400===0}function Oe(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function F(t){var e=+t,r=0;return e!==0&&isFinite(e)&&(r=Oe(e)),r}function pr(t,e){return function(r){return r!=null?(id(this,t,r),_.updateOffset(this,e),this):sn(this,t)}}function sn(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function id(t,e,r){t.isValid()&&!isNaN(r)&&(e==="FullYear"&&hn(t.year())&&t.month()===1&&t.date()===29?(r=F(r),t._d["set"+(t._isUTC?"UTC":"")+e](r,t.month(),vn(r,t.month()))):t._d["set"+(t._isUTC?"UTC":"")+e](r))}function yh(t){return t=Ee(t),He(this[t])?this[t]():this}function mh(t,e){if(typeof t=="object"){t=Mi(t);var r=hh(t),o,a=r.length;for(o=0;o<a;o++)this[r[o].unit](t[r[o].unit])}else if(t=Ee(t),He(this[t]))return this[t](e);return this}var sd=/\d/,ve=/\d\d/,cd=/\d{3}/,Di=/\d{4}/,yn=/[+-]?\d{6}/,q=/\d\d?/,ld=/\d\d\d\d?/,dd=/\d\d\d\d\d\d?/,mn=/\d{1,3}/,Li=/\d{1,4}/,gn=/[+-]?\d{1,6}/,hr=/\d+/,bn=/[+-]?\d+/,gh=/Z|[+-]\d\d:?\d\d/gi,xn=/Z|[+-]\d\d(?::?\d\d)?/gi,bh=/[+-]?\d+(\.\d{1,3})?/,lo=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,cn;cn={};function N(t,e,r){cn[t]=He(e)?e:function(o,a){return o&&r?r:e}}function xh(t,e){return z(cn,t)?cn[t](e._strict,e._locale):new RegExp(vh(t))}function vh(t){return xe(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,r,o,a,i){return r||o||a||i}))}function xe(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var Ci={};function V(t,e){var r,o=e,a;for(typeof t=="string"&&(t=[t]),rt(e)&&(o=function(i,s){s[e]=F(i)}),a=t.length,r=0;r<a;r++)Ci[t[r]]=o}function uo(t,e){V(t,function(r,o,a,i){a._w=a._w||{},e(r,a._w,a,i)})}function Sh(t,e,r){e!=null&&z(Ci,t)&&Ci[t](e,r._a,r,t)}var ce=0,Qe=1,We=2,re=3,Ne=4,et=5,Bt=6,Oh=7,wh=8;function Eh(t,e){return(t%e+e)%e}var ee;Array.prototype.indexOf?ee=Array.prototype.indexOf:ee=function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1};function vn(t,e){if(isNaN(t)||isNaN(e))return NaN;var r=Eh(e,12);return t+=(e-r)/12,r===1?hn(t)?29:28:31-r%7%2}T("M",["MM",2],"Mo",function(){return this.month()+1});T("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)});T("MMMM",0,0,function(t){return this.localeData().months(this,t)});le("month","M");de("month",8);N("M",q);N("MM",q,ve);N("MMM",function(t,e){return e.monthsShortRegex(t)});N("MMMM",function(t,e){return e.monthsRegex(t)});V(["M","MM"],function(t,e){e[Qe]=F(t)-1});V(["MMM","MMMM"],function(t,e,r,o){var a=r._locale.monthsParse(t,o,r._strict);a!=null?e[Qe]=a:L(r).invalidMonth=t});var Ch="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ud="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),fd=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,_h=lo,Ah=lo;function Nh(t,e){return t?Re(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||fd).test(e)?"format":"standalone"][t.month()]:Re(this._months)?this._months:this._months.standalone}function Rh(t,e){return t?Re(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[fd.test(e)?"format":"standalone"][t.month()]:Re(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function kh(t,e,r){var o,a,i,s=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],o=0;o<12;++o)i=Be([2e3,o]),this._shortMonthsParse[o]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[o]=this.months(i,"").toLocaleLowerCase();return r?e==="MMM"?(a=ee.call(this._shortMonthsParse,s),a!==-1?a:null):(a=ee.call(this._longMonthsParse,s),a!==-1?a:null):e==="MMM"?(a=ee.call(this._shortMonthsParse,s),a!==-1?a:(a=ee.call(this._longMonthsParse,s),a!==-1?a:null)):(a=ee.call(this._longMonthsParse,s),a!==-1?a:(a=ee.call(this._shortMonthsParse,s),a!==-1?a:null))}function Ph(t,e,r){var o,a,i;if(this._monthsParseExact)return kh.call(this,t,e,r);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),o=0;o<12;o++){if(a=Be([2e3,o]),r&&!this._longMonthsParse[o]&&(this._longMonthsParse[o]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[o]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),!r&&!this._monthsParse[o]&&(i="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[o]=new RegExp(i.replace(".",""),"i")),r&&e==="MMMM"&&this._longMonthsParse[o].test(t))return o;if(r&&e==="MMM"&&this._shortMonthsParse[o].test(t))return o;if(!r&&this._monthsParse[o].test(t))return o}}function pd(t,e){var r;if(!t.isValid())return t;if(typeof e=="string"){if(/^\d+$/.test(e))e=F(e);else if(e=t.localeData().monthsParse(e),!rt(e))return t}return r=Math.min(t.date(),vn(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,r),t}function hd(t){return t!=null?(pd(this,t),_.updateOffset(this,!0),this):sn(this,"Month")}function Ih(){return vn(this.year(),this.month())}function Th(t){return this._monthsParseExact?(z(this,"_monthsRegex")||yd.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(z(this,"_monthsShortRegex")||(this._monthsShortRegex=_h),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)}function Mh(t){return this._monthsParseExact?(z(this,"_monthsRegex")||yd.call(this),t?this._monthsStrictRegex:this._monthsRegex):(z(this,"_monthsRegex")||(this._monthsRegex=Ah),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)}function yd(){function t(s,l){return l.length-s.length}var e=[],r=[],o=[],a,i;for(a=0;a<12;a++)i=Be([2e3,a]),e.push(this.monthsShort(i,"")),r.push(this.months(i,"")),o.push(this.months(i,"")),o.push(this.monthsShort(i,""));for(e.sort(t),r.sort(t),o.sort(t),a=0;a<12;a++)e[a]=xe(e[a]),r[a]=xe(r[a]);for(a=0;a<24;a++)o[a]=xe(o[a]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+e.join("|")+")","i")}T("Y",0,0,function(){var t=this.year();return t<=9999?$e(t,4):"+"+t});T(0,["YY",2],0,function(){return this.year()%100});T(0,["YYYY",4],0,"year");T(0,["YYYYY",5],0,"year");T(0,["YYYYYY",6,!0],0,"year");le("year","y");de("year",1);N("Y",bn);N("YY",q,ve);N("YYYY",Li,Di);N("YYYYY",gn,yn);N("YYYYYY",gn,yn);V(["YYYYY","YYYYYY"],ce);V("YYYY",function(t,e){e[ce]=t.length===2?_.parseTwoDigitYear(t):F(t)});V("YY",function(t,e){e[ce]=_.parseTwoDigitYear(t)});V("Y",function(t,e){e[ce]=parseInt(t,10)});function oo(t){return hn(t)?366:365}_.parseTwoDigitYear=function(t){return F(t)+(F(t)>68?1900:2e3)};var md=pr("FullYear",!0);function Dh(){return hn(this.year())}function Lh(t,e,r,o,a,i,s){var l;return t<100&&t>=0?(l=new Date(t+400,e,r,o,a,i,s),isFinite(l.getFullYear())&&l.setFullYear(t)):l=new Date(t,e,r,o,a,i,s),l}function no(t){var e,r;return t<100&&t>=0?(r=Array.prototype.slice.call(arguments),r[0]=t+400,e=new Date(Date.UTC.apply(null,r)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC.apply(null,arguments)),e}function ln(t,e,r){var o=7+e-r,a=(7+no(t,0,o).getUTCDay()-e)%7;return-a+o-1}function gd(t,e,r,o,a){var i=(7+r-o)%7,s=ln(t,o,a),l=1+7*(e-1)+i+s,d,u;return l<=0?(d=t-1,u=oo(d)+l):l>oo(t)?(d=t+1,u=l-oo(t)):(d=t,u=l),{year:d,dayOfYear:u}}function ao(t,e,r){var o=ln(t.year(),e,r),a=Math.floor((t.dayOfYear()-o-1)/7)+1,i,s;return a<1?(s=t.year()-1,i=a+tt(s,e,r)):a>tt(t.year(),e,r)?(i=a-tt(t.year(),e,r),s=t.year()+1):(s=t.year(),i=a),{week:i,year:s}}function tt(t,e,r){var o=ln(t,e,r),a=ln(t+1,e,r);return(oo(t)-o+a)/7}T("w",["ww",2],"wo","week");T("W",["WW",2],"Wo","isoWeek");le("week","w");le("isoWeek","W");de("week",5);de("isoWeek",5);N("w",q);N("ww",q,ve);N("W",q);N("WW",q,ve);uo(["w","ww","W","WW"],function(t,e,r,o){e[o.substr(0,1)]=F(t)});function Fh(t){return ao(t,this._week.dow,this._week.doy).week}var Uh={dow:0,doy:6};function Wh(){return this._week.dow}function $h(){return this._week.doy}function Bh(t){var e=this.localeData().week(this);return t==null?e:this.add((t-e)*7,"d")}function Hh(t){var e=ao(this,1,4).week;return t==null?e:this.add((t-e)*7,"d")}T("d",0,"do","day");T("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)});T("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)});T("dddd",0,0,function(t){return this.localeData().weekdays(this,t)});T("e",0,0,"weekday");T("E",0,0,"isoWeekday");le("day","d");le("weekday","e");le("isoWeekday","E");de("day",11);de("weekday",11);de("isoWeekday",11);N("d",q);N("e",q);N("E",q);N("dd",function(t,e){return e.weekdaysMinRegex(t)});N("ddd",function(t,e){return e.weekdaysShortRegex(t)});N("dddd",function(t,e){return e.weekdaysRegex(t)});uo(["dd","ddd","dddd"],function(t,e,r,o){var a=r._locale.weekdaysParse(t,o,r._strict);a!=null?e.d=a:L(r).invalidWeekday=t});uo(["d","e","E"],function(t,e,r,o){e[o]=F(t)});function zh(t,e){return typeof t!="string"?t:isNaN(t)?(t=e.weekdaysParse(t),typeof t=="number"?t:null):parseInt(t,10)}function Yh(t,e){return typeof t=="string"?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}function Fi(t,e){return t.slice(e,7).concat(t.slice(0,e))}var jh="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),bd="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Gh="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Vh=lo,Kh=lo,Zh=lo;function qh(t,e){var r=Re(this._weekdays)?this._weekdays:this._weekdays[t&&t!==!0&&this._weekdays.isFormat.test(e)?"format":"standalone"];return t===!0?Fi(r,this._week.dow):t?r[t.day()]:r}function Jh(t){return t===!0?Fi(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort}function Xh(t){return t===!0?Fi(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin}function Qh(t,e,r){var o,a,i,s=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],o=0;o<7;++o)i=Be([2e3,1]).day(o),this._minWeekdaysParse[o]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[o]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[o]=this.weekdays(i,"").toLocaleLowerCase();return r?e==="dddd"?(a=ee.call(this._weekdaysParse,s),a!==-1?a:null):e==="ddd"?(a=ee.call(this._shortWeekdaysParse,s),a!==-1?a:null):(a=ee.call(this._minWeekdaysParse,s),a!==-1?a:null):e==="dddd"?(a=ee.call(this._weekdaysParse,s),a!==-1||(a=ee.call(this._shortWeekdaysParse,s),a!==-1)?a:(a=ee.call(this._minWeekdaysParse,s),a!==-1?a:null)):e==="ddd"?(a=ee.call(this._shortWeekdaysParse,s),a!==-1||(a=ee.call(this._weekdaysParse,s),a!==-1)?a:(a=ee.call(this._minWeekdaysParse,s),a!==-1?a:null)):(a=ee.call(this._minWeekdaysParse,s),a!==-1||(a=ee.call(this._weekdaysParse,s),a!==-1)?a:(a=ee.call(this._shortWeekdaysParse,s),a!==-1?a:null))}function ey(t,e,r){var o,a,i;if(this._weekdaysParseExact)return Qh.call(this,t,e,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),o=0;o<7;o++){if(a=Be([2e3,1]).day(o),r&&!this._fullWeekdaysParse[o]&&(this._fullWeekdaysParse[o]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[o]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[o]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[o]||(i="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[o]=new RegExp(i.replace(".",""),"i")),r&&e==="dddd"&&this._fullWeekdaysParse[o].test(t))return o;if(r&&e==="ddd"&&this._shortWeekdaysParse[o].test(t))return o;if(r&&e==="dd"&&this._minWeekdaysParse[o].test(t))return o;if(!r&&this._weekdaysParse[o].test(t))return o}}function ty(t){if(!this.isValid())return t!=null?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return t!=null?(t=zh(t,this.localeData()),this.add(t-e,"d")):e}function ry(t){if(!this.isValid())return t!=null?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return t==null?e:this.add(t-e,"d")}function oy(t){if(!this.isValid())return t!=null?this:NaN;if(t!=null){var e=Yh(t,this.localeData());return this.day(this.day()%7?e:e-7)}else return this.day()||7}function ny(t){return this._weekdaysParseExact?(z(this,"_weekdaysRegex")||Ui.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(z(this,"_weekdaysRegex")||(this._weekdaysRegex=Vh),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}function ay(t){return this._weekdaysParseExact?(z(this,"_weekdaysRegex")||Ui.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(z(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Kh),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function iy(t){return this._weekdaysParseExact?(z(this,"_weekdaysRegex")||Ui.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(z(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Zh),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Ui(){function t(h,p){return p.length-h.length}var e=[],r=[],o=[],a=[],i,s,l,d,u;for(i=0;i<7;i++)s=Be([2e3,1]).day(i),l=xe(this.weekdaysMin(s,"")),d=xe(this.weekdaysShort(s,"")),u=xe(this.weekdays(s,"")),e.push(l),r.push(d),o.push(u),a.push(l),a.push(d),a.push(u);e.sort(t),r.sort(t),o.sort(t),a.sort(t),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+e.join("|")+")","i")}function Wi(){return this.hours()%12||12}function sy(){return this.hours()||24}T("H",["HH",2],0,"hour");T("h",["hh",2],0,Wi);T("k",["kk",2],0,sy);T("hmm",0,0,function(){return""+Wi.apply(this)+$e(this.minutes(),2)});T("hmmss",0,0,function(){return""+Wi.apply(this)+$e(this.minutes(),2)+$e(this.seconds(),2)});T("Hmm",0,0,function(){return""+this.hours()+$e(this.minutes(),2)});T("Hmmss",0,0,function(){return""+this.hours()+$e(this.minutes(),2)+$e(this.seconds(),2)});function xd(t,e){T(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}xd("a",!0);xd("A",!1);le("hour","h");de("hour",13);function vd(t,e){return e._meridiemParse}N("a",vd);N("A",vd);N("H",q);N("h",q);N("k",q);N("HH",q,ve);N("hh",q,ve);N("kk",q,ve);N("hmm",ld);N("hmmss",dd);N("Hmm",ld);N("Hmmss",dd);V(["H","HH"],re);V(["k","kk"],function(t,e,r){var o=F(t);e[re]=o===24?0:o});V(["a","A"],function(t,e,r){r._isPm=r._locale.isPM(t),r._meridiem=t});V(["h","hh"],function(t,e,r){e[re]=F(t),L(r).bigHour=!0});V("hmm",function(t,e,r){var o=t.length-2;e[re]=F(t.substr(0,o)),e[Ne]=F(t.substr(o)),L(r).bigHour=!0});V("hmmss",function(t,e,r){var o=t.length-4,a=t.length-2;e[re]=F(t.substr(0,o)),e[Ne]=F(t.substr(o,2)),e[et]=F(t.substr(a)),L(r).bigHour=!0});V("Hmm",function(t,e,r){var o=t.length-2;e[re]=F(t.substr(0,o)),e[Ne]=F(t.substr(o))});V("Hmmss",function(t,e,r){var o=t.length-4,a=t.length-2;e[re]=F(t.substr(0,o)),e[Ne]=F(t.substr(o,2)),e[et]=F(t.substr(a))});function cy(t){return(t+"").toLowerCase().charAt(0)==="p"}var ly=/[ap]\.?m?\.?/i,dy=pr("Hours",!0);function uy(t,e,r){return t>11?r?"pm":"PM":r?"am":"AM"}var Sd={calendar:eh,longDateFormat:nh,invalidDate:ih,ordinal:ch,dayOfMonthOrdinalParse:lh,relativeTime:uh,months:Ch,monthsShort:ud,week:Uh,weekdays:jh,weekdaysMin:Gh,weekdaysShort:bd,meridiemParse:ly},X={},eo={},io;function fy(t,e){var r,o=Math.min(t.length,e.length);for(r=0;r<o;r+=1)if(t[r]!==e[r])return r;return o}function Jl(t){return t&&t.toLowerCase().replace("_","-")}function py(t){for(var e=0,r,o,a,i;e<t.length;){for(i=Jl(t[e]).split("-"),r=i.length,o=Jl(t[e+1]),o=o?o.split("-"):null;r>0;){if(a=Sn(i.slice(0,r).join("-")),a)return a;if(o&&o.length>=r&&fy(i,o)>=r-1)break;r--}e++}return io}function hy(t){return t.match("^[^/\\\\]*$")!=null}function Sn(t){var e=null,r;if(X[t]===void 0&&typeof module<"u"&&module&&module.exports&&hy(t))try{e=io._abbr,r=qi,r("./locale/"+t),xt(e)}catch{X[t]=null}return X[t]}function xt(t,e){var r;return t&&(he(e)?r=ot(t):r=$i(t,e),r?io=r:typeof console<"u"&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),io._abbr}function $i(t,e){if(e!==null){var r,o=Sd;if(e.abbr=t,X[t]!=null)od("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),o=X[t]._config;else if(e.parentLocale!=null)if(X[e.parentLocale]!=null)o=X[e.parentLocale]._config;else if(r=Sn(e.parentLocale),r!=null)o=r._config;else return eo[e.parentLocale]||(eo[e.parentLocale]=[]),eo[e.parentLocale].push({name:t,config:e}),null;return X[t]=new Ii(wi(o,e)),eo[t]&&eo[t].forEach(function(a){$i(a.name,a.config)}),xt(t),X[t]}else return delete X[t],null}function yy(t,e){if(e!=null){var r,o,a=Sd;X[t]!=null&&X[t].parentLocale!=null?X[t].set(wi(X[t]._config,e)):(o=Sn(t),o!=null&&(a=o._config),e=wi(a,e),o==null&&(e.abbr=t),r=new Ii(e),r.parentLocale=X[t],X[t]=r),xt(t)}else X[t]!=null&&(X[t].parentLocale!=null?(X[t]=X[t].parentLocale,t===xt()&&xt(t)):X[t]!=null&&delete X[t]);return X[t]}function ot(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return io;if(!Re(t)){if(e=Sn(t),e)return e;t=[t]}return py(t)}function my(){return Ei(X)}function Bi(t){var e,r=t._a;return r&&L(t).overflow===-2&&(e=r[Qe]<0||r[Qe]>11?Qe:r[We]<1||r[We]>vn(r[ce],r[Qe])?We:r[re]<0||r[re]>24||r[re]===24&&(r[Ne]!==0||r[et]!==0||r[Bt]!==0)?re:r[Ne]<0||r[Ne]>59?Ne:r[et]<0||r[et]>59?et:r[Bt]<0||r[Bt]>999?Bt:-1,L(t)._overflowDayOfYear&&(e<ce||e>We)&&(e=We),L(t)._overflowWeeks&&e===-1&&(e=Oh),L(t)._overflowWeekday&&e===-1&&(e=wh),L(t).overflow=e),t}var gy=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,by=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,xy=/Z|[+-]\d\d(?::?\d\d)?/,rn=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],vi=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],vy=/^\/?Date\((-?\d+)/i,Sy=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Oy={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Od(t){var e,r,o=t._i,a=gy.exec(o)||by.exec(o),i,s,l,d,u=rn.length,h=vi.length;if(a){for(L(t).iso=!0,e=0,r=u;e<r;e++)if(rn[e][1].exec(a[1])){s=rn[e][0],i=rn[e][2]!==!1;break}if(s==null){t._isValid=!1;return}if(a[3]){for(e=0,r=h;e<r;e++)if(vi[e][1].exec(a[3])){l=(a[2]||" ")+vi[e][0];break}if(l==null){t._isValid=!1;return}}if(!i&&l!=null){t._isValid=!1;return}if(a[4])if(xy.exec(a[4]))d="Z";else{t._isValid=!1;return}t._f=s+(l||"")+(d||""),zi(t)}else t._isValid=!1}function wy(t,e,r,o,a,i){var s=[Ey(t),ud.indexOf(e),parseInt(r,10),parseInt(o,10),parseInt(a,10)];return i&&s.push(parseInt(i,10)),s}function Ey(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}function Cy(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function _y(t,e,r){if(t){var o=bd.indexOf(t),a=new Date(e[0],e[1],e[2]).getDay();if(o!==a)return L(r).weekdayMismatch=!0,r._isValid=!1,!1}return!0}function Ay(t,e,r){if(t)return Oy[t];if(e)return 0;var o=parseInt(r,10),a=o%100,i=(o-a)/100;return i*60+a}function wd(t){var e=Sy.exec(Cy(t._i)),r;if(e){if(r=wy(e[4],e[3],e[2],e[5],e[6],e[7]),!_y(e[1],r,t))return;t._a=r,t._tzm=Ay(e[8],e[9],e[10]),t._d=no.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),L(t).rfc2822=!0}else t._isValid=!1}function Ny(t){var e=vy.exec(t._i);if(e!==null){t._d=new Date(+e[1]);return}if(Od(t),t._isValid===!1)delete t._isValid;else return;if(wd(t),t._isValid===!1)delete t._isValid;else return;t._strict?t._isValid=!1:_.createFromInputFallback(t)}_.createFromInputFallback=we("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))});function cr(t,e,r){return t??e??r}function Ry(t){var e=new Date(_.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}function Hi(t){var e,r,o=[],a,i,s;if(!t._d){for(a=Ry(t),t._w&&t._a[We]==null&&t._a[Qe]==null&&ky(t),t._dayOfYear!=null&&(s=cr(t._a[ce],a[ce]),(t._dayOfYear>oo(s)||t._dayOfYear===0)&&(L(t)._overflowDayOfYear=!0),r=no(s,0,t._dayOfYear),t._a[Qe]=r.getUTCMonth(),t._a[We]=r.getUTCDate()),e=0;e<3&&t._a[e]==null;++e)t._a[e]=o[e]=a[e];for(;e<7;e++)t._a[e]=o[e]=t._a[e]==null?e===2?1:0:t._a[e];t._a[re]===24&&t._a[Ne]===0&&t._a[et]===0&&t._a[Bt]===0&&(t._nextDay=!0,t._a[re]=0),t._d=(t._useUTC?no:Lh).apply(null,o),i=t._useUTC?t._d.getUTCDay():t._d.getDay(),t._tzm!=null&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[re]=24),t._w&&typeof t._w.d<"u"&&t._w.d!==i&&(L(t).weekdayMismatch=!0)}}function ky(t){var e,r,o,a,i,s,l,d,u;e=t._w,e.GG!=null||e.W!=null||e.E!=null?(i=1,s=4,r=cr(e.GG,t._a[ce],ao(Z(),1,4).year),o=cr(e.W,1),a=cr(e.E,1),(a<1||a>7)&&(d=!0)):(i=t._locale._week.dow,s=t._locale._week.doy,u=ao(Z(),i,s),r=cr(e.gg,t._a[ce],u.year),o=cr(e.w,u.week),e.d!=null?(a=e.d,(a<0||a>6)&&(d=!0)):e.e!=null?(a=e.e+i,(e.e<0||e.e>6)&&(d=!0)):a=i),o<1||o>tt(r,i,s)?L(t)._overflowWeeks=!0:d!=null?L(t)._overflowWeekday=!0:(l=gd(r,o,a,i,s),t._a[ce]=l.year,t._dayOfYear=l.dayOfYear)}_.ISO_8601=function(){};_.RFC_2822=function(){};function zi(t){if(t._f===_.ISO_8601){Od(t);return}if(t._f===_.RFC_2822){wd(t);return}t._a=[],L(t).empty=!0;var e=""+t._i,r,o,a,i,s,l=e.length,d=0,u,h;for(a=nd(t._f,t._locale).match(Ti)||[],h=a.length,r=0;r<h;r++)i=a[r],o=(e.match(xh(i,t))||[])[0],o&&(s=e.substr(0,e.indexOf(o)),s.length>0&&L(t).unusedInput.push(s),e=e.slice(e.indexOf(o)+o.length),d+=o.length),dr[i]?(o?L(t).empty=!1:L(t).unusedTokens.push(i),Sh(i,o,t)):t._strict&&!o&&L(t).unusedTokens.push(i);L(t).charsLeftOver=l-d,e.length>0&&L(t).unusedInput.push(e),t._a[re]<=12&&L(t).bigHour===!0&&t._a[re]>0&&(L(t).bigHour=void 0),L(t).parsedDateParts=t._a.slice(0),L(t).meridiem=t._meridiem,t._a[re]=Py(t._locale,t._a[re],t._meridiem),u=L(t).era,u!==null&&(t._a[ce]=t._locale.erasConvertYear(u,t._a[ce])),Hi(t),Bi(t)}function Py(t,e,r){var o;return r==null?e:t.meridiemHour!=null?t.meridiemHour(e,r):(t.isPM!=null&&(o=t.isPM(r),o&&e<12&&(e+=12),!o&&e===12&&(e=0)),e)}function Iy(t){var e,r,o,a,i,s,l=!1,d=t._f.length;if(d===0){L(t).invalidFormat=!0,t._d=new Date(NaN);return}for(a=0;a<d;a++)i=0,s=!1,e=Pi({},t),t._useUTC!=null&&(e._useUTC=t._useUTC),e._f=t._f[a],zi(e),ki(e)&&(s=!0),i+=L(e).charsLeftOver,i+=L(e).unusedTokens.length*10,L(e).score=i,l?i<o&&(o=i,r=e):(o==null||i<o||s)&&(o=i,r=e,s&&(l=!0));gt(t,r||e)}function Ty(t){if(!t._d){var e=Mi(t._i),r=e.day===void 0?e.date:e.day;t._a=td([e.year,e.month,r,e.hour,e.minute,e.second,e.millisecond],function(o){return o&&parseInt(o,10)}),Hi(t)}}function My(t){var e=new co(Bi(Ed(t)));return e._nextDay&&(e.add(1,"d"),e._nextDay=void 0),e}function Ed(t){var e=t._i,r=t._f;return t._locale=t._locale||ot(t._l),e===null||r===void 0&&e===""?pn({nullInput:!0}):(typeof e=="string"&&(t._i=e=t._locale.preparse(e)),ke(e)?new co(Bi(e)):(so(e)?t._d=e:Re(r)?Iy(t):r?zi(t):Dy(t),ki(t)||(t._d=null),t))}function Dy(t){var e=t._i;he(e)?t._d=new Date(_.now()):so(e)?t._d=new Date(e.valueOf()):typeof e=="string"?Ny(t):Re(e)?(t._a=td(e.slice(0),function(r){return parseInt(r,10)}),Hi(t)):Ht(e)?Ty(t):rt(e)?t._d=new Date(e):_.createFromInputFallback(t)}function Cd(t,e,r,o,a){var i={};return(e===!0||e===!1)&&(o=e,e=void 0),(r===!0||r===!1)&&(o=r,r=void 0),(Ht(t)&&Ri(t)||Re(t)&&t.length===0)&&(t=void 0),i._isAMomentObject=!0,i._useUTC=i._isUTC=a,i._l=r,i._i=t,i._f=e,i._strict=o,My(i)}function Z(t,e,r,o){return Cd(t,e,r,o,!1)}var Ly=we("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Z.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:pn()}),Fy=we("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Z.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:pn()});function _d(t,e){var r,o;if(e.length===1&&Re(e[0])&&(e=e[0]),!e.length)return Z();for(r=e[0],o=1;o<e.length;++o)(!e[o].isValid()||e[o][t](r))&&(r=e[o]);return r}function Uy(){var t=[].slice.call(arguments,0);return _d("isBefore",t)}function Wy(){var t=[].slice.call(arguments,0);return _d("isAfter",t)}var $y=function(){return Date.now?Date.now():+new Date},to=["year","quarter","month","week","day","hour","minute","second","millisecond"];function By(t){var e,r=!1,o,a=to.length;for(e in t)if(z(t,e)&&!(ee.call(to,e)!==-1&&(t[e]==null||!isNaN(t[e]))))return!1;for(o=0;o<a;++o)if(t[to[o]]){if(r)return!1;parseFloat(t[to[o]])!==F(t[to[o]])&&(r=!0)}return!0}function Hy(){return this._isValid}function zy(){return Pe(NaN)}function On(t){var e=Mi(t),r=e.year||0,o=e.quarter||0,a=e.month||0,i=e.week||e.isoWeek||0,s=e.day||0,l=e.hour||0,d=e.minute||0,u=e.second||0,h=e.millisecond||0;this._isValid=By(e),this._milliseconds=+h+u*1e3+d*6e4+l*1e3*60*60,this._days=+s+i*7,this._months=+a+o*3+r*12,this._data={},this._locale=ot(),this._bubble()}function nn(t){return t instanceof On}function _i(t){return t<0?Math.round(-1*t)*-1:Math.round(t)}function Yy(t,e,r){var o=Math.min(t.length,e.length),a=Math.abs(t.length-e.length),i=0,s;for(s=0;s<o;s++)(r&&t[s]!==e[s]||!r&&F(t[s])!==F(e[s]))&&i++;return i+a}function Ad(t,e){T(t,0,0,function(){var r=this.utcOffset(),o="+";return r<0&&(r=-r,o="-"),o+$e(~~(r/60),2)+e+$e(~~r%60,2)})}Ad("Z",":");Ad("ZZ","");N("Z",xn);N("ZZ",xn);V(["Z","ZZ"],function(t,e,r){r._useUTC=!0,r._tzm=Yi(xn,t)});var jy=/([\+\-]|\d\d)/gi;function Yi(t,e){var r=(e||"").match(t),o,a,i;return r===null?null:(o=r[r.length-1]||[],a=(o+"").match(jy)||["-",0,0],i=+(a[1]*60)+F(a[2]),i===0?0:a[0]==="+"?i:-i)}function ji(t,e){var r,o;return e._isUTC?(r=e.clone(),o=(ke(t)||so(t)?t.valueOf():Z(t).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+o),_.updateOffset(r,!1),r):Z(t).local()}function Ai(t){return-Math.round(t._d.getTimezoneOffset())}_.updateOffset=function(){};function Gy(t,e,r){var o=this._offset||0,a;if(!this.isValid())return t!=null?this:NaN;if(t!=null){if(typeof t=="string"){if(t=Yi(xn,t),t===null)return this}else Math.abs(t)<16&&!r&&(t=t*60);return!this._isUTC&&e&&(a=Ai(this)),this._offset=t,this._isUTC=!0,a!=null&&this.add(a,"m"),o!==t&&(!e||this._changeInProgress?kd(this,Pe(t-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,_.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?o:Ai(this)}function Vy(t,e){return t!=null?(typeof t!="string"&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}function Ky(t){return this.utcOffset(0,t)}function Zy(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Ai(this),"m")),this}function qy(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var t=Yi(gh,this._i);t!=null?this.utcOffset(t):this.utcOffset(0,!0)}return this}function Jy(t){return this.isValid()?(t=t?Z(t).utcOffset():0,(this.utcOffset()-t)%60===0):!1}function Xy(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Qy(){if(!he(this._isDSTShifted))return this._isDSTShifted;var t={},e;return Pi(t,this),t=Ed(t),t._a?(e=t._isUTC?Be(t._a):Z(t._a),this._isDSTShifted=this.isValid()&&Yy(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function em(){return this.isValid()?!this._isUTC:!1}function tm(){return this.isValid()?this._isUTC:!1}function Nd(){return this.isValid()?this._isUTC&&this._offset===0:!1}var rm=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,om=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Pe(t,e){var r=t,o=null,a,i,s;return nn(t)?r={ms:t._milliseconds,d:t._days,M:t._months}:rt(t)||!isNaN(+t)?(r={},e?r[e]=+t:r.milliseconds=+t):(o=rm.exec(t))?(a=o[1]==="-"?-1:1,r={y:0,d:F(o[We])*a,h:F(o[re])*a,m:F(o[Ne])*a,s:F(o[et])*a,ms:F(_i(o[Bt]*1e3))*a}):(o=om.exec(t))?(a=o[1]==="-"?-1:1,r={y:$t(o[2],a),M:$t(o[3],a),w:$t(o[4],a),d:$t(o[5],a),h:$t(o[6],a),m:$t(o[7],a),s:$t(o[8],a)}):r==null?r={}:typeof r=="object"&&("from"in r||"to"in r)&&(s=nm(Z(r.from),Z(r.to)),r={},r.ms=s.milliseconds,r.M=s.months),i=new On(r),nn(t)&&z(t,"_locale")&&(i._locale=t._locale),nn(t)&&z(t,"_isValid")&&(i._isValid=t._isValid),i}Pe.fn=On.prototype;Pe.invalid=zy;function $t(t,e){var r=t&&parseFloat(t.replace(",","."));return(isNaN(r)?0:r)*e}function Xl(t,e){var r={};return r.months=e.month()-t.month()+(e.year()-t.year())*12,t.clone().add(r.months,"M").isAfter(e)&&--r.months,r.milliseconds=+e-+t.clone().add(r.months,"M"),r}function nm(t,e){var r;return t.isValid()&&e.isValid()?(e=ji(e,t),t.isBefore(e)?r=Xl(t,e):(r=Xl(e,t),r.milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0}}function Rd(t,e){return function(r,o){var a,i;return o!==null&&!isNaN(+o)&&(od(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=r,r=o,o=i),a=Pe(r,o),kd(this,a,t),this}}function kd(t,e,r,o){var a=e._milliseconds,i=_i(e._days),s=_i(e._months);t.isValid()&&(o=o??!0,s&&pd(t,sn(t,"Month")+s*r),i&&id(t,"Date",sn(t,"Date")+i*r),a&&t._d.setTime(t._d.valueOf()+a*r),o&&_.updateOffset(t,i||s))}var am=Rd(1,"add"),im=Rd(-1,"subtract");function Pd(t){return typeof t=="string"||t instanceof String}function sm(t){return ke(t)||so(t)||Pd(t)||rt(t)||lm(t)||cm(t)||t===null||t===void 0}function cm(t){var e=Ht(t)&&!Ri(t),r=!1,o=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a,i,s=o.length;for(a=0;a<s;a+=1)i=o[a],r=r||z(t,i);return e&&r}function lm(t){var e=Re(t),r=!1;return e&&(r=t.filter(function(o){return!rt(o)&&Pd(t)}).length===0),e&&r}function dm(t){var e=Ht(t)&&!Ri(t),r=!1,o=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],a,i;for(a=0;a<o.length;a+=1)i=o[a],r=r||z(t,i);return e&&r}function um(t,e){var r=t.diff(e,"days",!0);return r<-6?"sameElse":r<-1?"lastWeek":r<0?"lastDay":r<1?"sameDay":r<2?"nextDay":r<7?"nextWeek":"sameElse"}function fm(t,e){arguments.length===1&&(arguments[0]?sm(arguments[0])?(t=arguments[0],e=void 0):dm(arguments[0])&&(e=arguments[0],t=void 0):(t=void 0,e=void 0));var r=t||Z(),o=ji(r,this).startOf("day"),a=_.calendarFormat(this,o)||"sameElse",i=e&&(He(e[a])?e[a].call(this,r):e[a]);return this.format(i||this.localeData().calendar(a,this,Z(r)))}function pm(){return new co(this)}function hm(t,e){var r=ke(t)?t:Z(t);return this.isValid()&&r.isValid()?(e=Ee(e)||"millisecond",e==="millisecond"?this.valueOf()>r.valueOf():r.valueOf()<this.clone().startOf(e).valueOf()):!1}function ym(t,e){var r=ke(t)?t:Z(t);return this.isValid()&&r.isValid()?(e=Ee(e)||"millisecond",e==="millisecond"?this.valueOf()<r.valueOf():this.clone().endOf(e).valueOf()<r.valueOf()):!1}function mm(t,e,r,o){var a=ke(t)?t:Z(t),i=ke(e)?e:Z(e);return this.isValid()&&a.isValid()&&i.isValid()?(o=o||"()",(o[0]==="("?this.isAfter(a,r):!this.isBefore(a,r))&&(o[1]===")"?this.isBefore(i,r):!this.isAfter(i,r))):!1}function gm(t,e){var r=ke(t)?t:Z(t),o;return this.isValid()&&r.isValid()?(e=Ee(e)||"millisecond",e==="millisecond"?this.valueOf()===r.valueOf():(o=r.valueOf(),this.clone().startOf(e).valueOf()<=o&&o<=this.clone().endOf(e).valueOf())):!1}function bm(t,e){return this.isSame(t,e)||this.isAfter(t,e)}function xm(t,e){return this.isSame(t,e)||this.isBefore(t,e)}function vm(t,e,r){var o,a,i;if(!this.isValid())return NaN;if(o=ji(t,this),!o.isValid())return NaN;switch(a=(o.utcOffset()-this.utcOffset())*6e4,e=Ee(e),e){case"year":i=an(this,o)/12;break;case"month":i=an(this,o);break;case"quarter":i=an(this,o)/3;break;case"second":i=(this-o)/1e3;break;case"minute":i=(this-o)/6e4;break;case"hour":i=(this-o)/36e5;break;case"day":i=(this-o-a)/864e5;break;case"week":i=(this-o-a)/6048e5;break;default:i=this-o}return r?i:Oe(i)}function an(t,e){if(t.date()<e.date())return-an(e,t);var r=(e.year()-t.year())*12+(e.month()-t.month()),o=t.clone().add(r,"months"),a,i;return e-o<0?(a=t.clone().add(r-1,"months"),i=(e-o)/(o-a)):(a=t.clone().add(r+1,"months"),i=(e-o)/(a-o)),-(r+i)||0}_.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";_.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function Sm(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Om(t){if(!this.isValid())return null;var e=t!==!0,r=e?this.clone().utc():this;return r.year()<0||r.year()>9999?on(r,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):He(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",on(r,"Z")):on(r,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function wm(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="",r,o,a,i;return this.isLocal()||(t=this.utcOffset()===0?"moment.utc":"moment.parseZone",e="Z"),r="["+t+'("]',o=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a="-MM-DD[T]HH:mm:ss.SSS",i=e+'[")]',this.format(r+o+a+i)}function Em(t){t||(t=this.isUtc()?_.defaultFormatUtc:_.defaultFormat);var e=on(this,t);return this.localeData().postformat(e)}function Cm(t,e){return this.isValid()&&(ke(t)&&t.isValid()||Z(t).isValid())?Pe({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function _m(t){return this.from(Z(),t)}function Am(t,e){return this.isValid()&&(ke(t)&&t.isValid()||Z(t).isValid())?Pe({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function Nm(t){return this.to(Z(),t)}function Id(t){var e;return t===void 0?this._locale._abbr:(e=ot(t),e!=null&&(this._locale=e),this)}var Td=we("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return t===void 0?this.localeData():this.locale(t)});function Md(){return this._locale}var dn=1e3,ur=60*dn,un=60*ur,Dd=(365*400+97)*24*un;function fr(t,e){return(t%e+e)%e}function Ld(t,e,r){return t<100&&t>=0?new Date(t+400,e,r)-Dd:new Date(t,e,r).valueOf()}function Fd(t,e,r){return t<100&&t>=0?Date.UTC(t+400,e,r)-Dd:Date.UTC(t,e,r)}function Rm(t){var e,r;if(t=Ee(t),t===void 0||t==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?Fd:Ld,t){case"year":e=r(this.year(),0,1);break;case"quarter":e=r(this.year(),this.month()-this.month()%3,1);break;case"month":e=r(this.year(),this.month(),1);break;case"week":e=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=r(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=fr(e+(this._isUTC?0:this.utcOffset()*ur),un);break;case"minute":e=this._d.valueOf(),e-=fr(e,ur);break;case"second":e=this._d.valueOf(),e-=fr(e,dn);break}return this._d.setTime(e),_.updateOffset(this,!0),this}function km(t){var e,r;if(t=Ee(t),t===void 0||t==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?Fd:Ld,t){case"year":e=r(this.year()+1,0,1)-1;break;case"quarter":e=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=r(this.year(),this.month()+1,1)-1;break;case"week":e=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=un-fr(e+(this._isUTC?0:this.utcOffset()*ur),un)-1;break;case"minute":e=this._d.valueOf(),e+=ur-fr(e,ur)-1;break;case"second":e=this._d.valueOf(),e+=dn-fr(e,dn)-1;break}return this._d.setTime(e),_.updateOffset(this,!0),this}function Pm(){return this._d.valueOf()-(this._offset||0)*6e4}function Im(){return Math.floor(this.valueOf()/1e3)}function Tm(){return new Date(this.valueOf())}function Mm(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function Dm(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}}function Lm(){return this.isValid()?this.toISOString():null}function Fm(){return ki(this)}function Um(){return gt({},L(this))}function Wm(){return L(this).overflow}function $m(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}T("N",0,0,"eraAbbr");T("NN",0,0,"eraAbbr");T("NNN",0,0,"eraAbbr");T("NNNN",0,0,"eraName");T("NNNNN",0,0,"eraNarrow");T("y",["y",1],"yo","eraYear");T("y",["yy",2],0,"eraYear");T("y",["yyy",3],0,"eraYear");T("y",["yyyy",4],0,"eraYear");N("N",Gi);N("NN",Gi);N("NNN",Gi);N("NNNN",Jm);N("NNNNN",Xm);V(["N","NN","NNN","NNNN","NNNNN"],function(t,e,r,o){var a=r._locale.erasParse(t,o,r._strict);a?L(r).era=a:L(r).invalidEra=t});N("y",hr);N("yy",hr);N("yyy",hr);N("yyyy",hr);N("yo",Qm);V(["y","yy","yyy","yyyy"],ce);V(["yo"],function(t,e,r,o){var a;r._locale._eraYearOrdinalRegex&&(a=t.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?e[ce]=r._locale.eraYearOrdinalParse(t,a):e[ce]=parseInt(t,10)});function Bm(t,e){var r,o,a,i=this._eras||ot("en")._eras;for(r=0,o=i.length;r<o;++r){switch(typeof i[r].since){case"string":a=_(i[r].since).startOf("day"),i[r].since=a.valueOf();break}switch(typeof i[r].until){case"undefined":i[r].until=1/0;break;case"string":a=_(i[r].until).startOf("day").valueOf(),i[r].until=a.valueOf();break}}return i}function Hm(t,e,r){var o,a,i=this.eras(),s,l,d;for(t=t.toUpperCase(),o=0,a=i.length;o<a;++o)if(s=i[o].name.toUpperCase(),l=i[o].abbr.toUpperCase(),d=i[o].narrow.toUpperCase(),r)switch(e){case"N":case"NN":case"NNN":if(l===t)return i[o];break;case"NNNN":if(s===t)return i[o];break;case"NNNNN":if(d===t)return i[o];break}else if([s,l,d].indexOf(t)>=0)return i[o]}function zm(t,e){var r=t.since<=t.until?1:-1;return e===void 0?_(t.since).year():_(t.since).year()+(e-t.offset)*r}function Ym(){var t,e,r,o=this.localeData().eras();for(t=0,e=o.length;t<e;++t)if(r=this.clone().startOf("day").valueOf(),o[t].since<=r&&r<=o[t].until||o[t].until<=r&&r<=o[t].since)return o[t].name;return""}function jm(){var t,e,r,o=this.localeData().eras();for(t=0,e=o.length;t<e;++t)if(r=this.clone().startOf("day").valueOf(),o[t].since<=r&&r<=o[t].until||o[t].until<=r&&r<=o[t].since)return o[t].narrow;return""}function Gm(){var t,e,r,o=this.localeData().eras();for(t=0,e=o.length;t<e;++t)if(r=this.clone().startOf("day").valueOf(),o[t].since<=r&&r<=o[t].until||o[t].until<=r&&r<=o[t].since)return o[t].abbr;return""}function Vm(){var t,e,r,o,a=this.localeData().eras();for(t=0,e=a.length;t<e;++t)if(r=a[t].since<=a[t].until?1:-1,o=this.clone().startOf("day").valueOf(),a[t].since<=o&&o<=a[t].until||a[t].until<=o&&o<=a[t].since)return(this.year()-_(a[t].since).year())*r+a[t].offset;return this.year()}function Km(t){return z(this,"_erasNameRegex")||Vi.call(this),t?this._erasNameRegex:this._erasRegex}function Zm(t){return z(this,"_erasAbbrRegex")||Vi.call(this),t?this._erasAbbrRegex:this._erasRegex}function qm(t){return z(this,"_erasNarrowRegex")||Vi.call(this),t?this._erasNarrowRegex:this._erasRegex}function Gi(t,e){return e.erasAbbrRegex(t)}function Jm(t,e){return e.erasNameRegex(t)}function Xm(t,e){return e.erasNarrowRegex(t)}function Qm(t,e){return e._eraYearOrdinalRegex||hr}function Vi(){var t=[],e=[],r=[],o=[],a,i,s=this.eras();for(a=0,i=s.length;a<i;++a)e.push(xe(s[a].name)),t.push(xe(s[a].abbr)),r.push(xe(s[a].narrow)),o.push(xe(s[a].name)),o.push(xe(s[a].abbr)),o.push(xe(s[a].narrow));this._erasRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+e.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+t.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}T(0,["gg",2],0,function(){return this.weekYear()%100});T(0,["GG",2],0,function(){return this.isoWeekYear()%100});function wn(t,e){T(0,[t,t.length],0,e)}wn("gggg","weekYear");wn("ggggg","weekYear");wn("GGGG","isoWeekYear");wn("GGGGG","isoWeekYear");le("weekYear","gg");le("isoWeekYear","GG");de("weekYear",1);de("isoWeekYear",1);N("G",bn);N("g",bn);N("GG",q,ve);N("gg",q,ve);N("GGGG",Li,Di);N("gggg",Li,Di);N("GGGGG",gn,yn);N("ggggg",gn,yn);uo(["gggg","ggggg","GGGG","GGGGG"],function(t,e,r,o){e[o.substr(0,2)]=F(t)});uo(["gg","GG"],function(t,e,r,o){e[o]=_.parseTwoDigitYear(t)});function eg(t){return Ud.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function tg(t){return Ud.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)}function rg(){return tt(this.year(),1,4)}function og(){return tt(this.isoWeekYear(),1,4)}function ng(){var t=this.localeData()._week;return tt(this.year(),t.dow,t.doy)}function ag(){var t=this.localeData()._week;return tt(this.weekYear(),t.dow,t.doy)}function Ud(t,e,r,o,a){var i;return t==null?ao(this,o,a).year:(i=tt(t,o,a),e>i&&(e=i),ig.call(this,t,e,r,o,a))}function ig(t,e,r,o,a){var i=gd(t,e,r,o,a),s=no(i.year,0,i.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}T("Q",0,"Qo","quarter");le("quarter","Q");de("quarter",7);N("Q",sd);V("Q",function(t,e){e[Qe]=(F(t)-1)*3});function sg(t){return t==null?Math.ceil((this.month()+1)/3):this.month((t-1)*3+this.month()%3)}T("D",["DD",2],"Do","date");le("date","D");de("date",9);N("D",q);N("DD",q,ve);N("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient});V(["D","DD"],We);V("Do",function(t,e){e[We]=F(t.match(q)[0])});var Wd=pr("Date",!0);T("DDD",["DDDD",3],"DDDo","dayOfYear");le("dayOfYear","DDD");de("dayOfYear",4);N("DDD",mn);N("DDDD",cd);V(["DDD","DDDD"],function(t,e,r){r._dayOfYear=F(t)});function cg(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return t==null?e:this.add(t-e,"d")}T("m",["mm",2],0,"minute");le("minute","m");de("minute",14);N("m",q);N("mm",q,ve);V(["m","mm"],Ne);var lg=pr("Minutes",!1);T("s",["ss",2],0,"second");le("second","s");de("second",15);N("s",q);N("ss",q,ve);V(["s","ss"],et);var dg=pr("Seconds",!1);T("S",0,0,function(){return~~(this.millisecond()/100)});T(0,["SS",2],0,function(){return~~(this.millisecond()/10)});T(0,["SSS",3],0,"millisecond");T(0,["SSSS",4],0,function(){return this.millisecond()*10});T(0,["SSSSS",5],0,function(){return this.millisecond()*100});T(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});T(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});T(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});T(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});le("millisecond","ms");de("millisecond",16);N("S",mn,sd);N("SS",mn,ve);N("SSS",mn,cd);var bt,$d;for(bt="SSSS";bt.length<=9;bt+="S")N(bt,hr);function ug(t,e){e[Bt]=F(("0."+t)*1e3)}for(bt="S";bt.length<=9;bt+="S")V(bt,ug);$d=pr("Milliseconds",!1);T("z",0,0,"zoneAbbr");T("zz",0,0,"zoneName");function fg(){return this._isUTC?"UTC":""}function pg(){return this._isUTC?"Coordinated Universal Time":""}var E=co.prototype;E.add=am;E.calendar=fm;E.clone=pm;E.diff=vm;E.endOf=km;E.format=Em;E.from=Cm;E.fromNow=_m;E.to=Am;E.toNow=Nm;E.get=yh;E.invalidAt=Wm;E.isAfter=hm;E.isBefore=ym;E.isBetween=mm;E.isSame=gm;E.isSameOrAfter=bm;E.isSameOrBefore=xm;E.isValid=Fm;E.lang=Td;E.locale=Id;E.localeData=Md;E.max=Fy;E.min=Ly;E.parsingFlags=Um;E.set=mh;E.startOf=Rm;E.subtract=im;E.toArray=Mm;E.toObject=Dm;E.toDate=Tm;E.toISOString=Om;E.inspect=wm;typeof Symbol<"u"&&Symbol.for!=null&&(E[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});E.toJSON=Lm;E.toString=Sm;E.unix=Im;E.valueOf=Pm;E.creationData=$m;E.eraName=Ym;E.eraNarrow=jm;E.eraAbbr=Gm;E.eraYear=Vm;E.year=md;E.isLeapYear=Dh;E.weekYear=eg;E.isoWeekYear=tg;E.quarter=E.quarters=sg;E.month=hd;E.daysInMonth=Ih;E.week=E.weeks=Bh;E.isoWeek=E.isoWeeks=Hh;E.weeksInYear=ng;E.weeksInWeekYear=ag;E.isoWeeksInYear=rg;E.isoWeeksInISOWeekYear=og;E.date=Wd;E.day=E.days=ty;E.weekday=ry;E.isoWeekday=oy;E.dayOfYear=cg;E.hour=E.hours=dy;E.minute=E.minutes=lg;E.second=E.seconds=dg;E.millisecond=E.milliseconds=$d;E.utcOffset=Gy;E.utc=Ky;E.local=Zy;E.parseZone=qy;E.hasAlignedHourOffset=Jy;E.isDST=Xy;E.isLocal=em;E.isUtcOffset=tm;E.isUtc=Nd;E.isUTC=Nd;E.zoneAbbr=fg;E.zoneName=pg;E.dates=we("dates accessor is deprecated. Use date instead.",Wd);E.months=we("months accessor is deprecated. Use month instead",hd);E.years=we("years accessor is deprecated. Use year instead",md);E.zone=we("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Vy);E.isDSTShifted=we("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Qy);function hg(t){return Z(t*1e3)}function yg(){return Z.apply(null,arguments).parseZone()}function Bd(t){return t}var Y=Ii.prototype;Y.calendar=th;Y.longDateFormat=ah;Y.invalidDate=sh;Y.ordinal=dh;Y.preparse=Bd;Y.postformat=Bd;Y.relativeTime=fh;Y.pastFuture=ph;Y.set=Qp;Y.eras=Bm;Y.erasParse=Hm;Y.erasConvertYear=zm;Y.erasAbbrRegex=Zm;Y.erasNameRegex=Km;Y.erasNarrowRegex=qm;Y.months=Nh;Y.monthsShort=Rh;Y.monthsParse=Ph;Y.monthsRegex=Mh;Y.monthsShortRegex=Th;Y.week=Fh;Y.firstDayOfYear=$h;Y.firstDayOfWeek=Wh;Y.weekdays=qh;Y.weekdaysMin=Xh;Y.weekdaysShort=Jh;Y.weekdaysParse=ey;Y.weekdaysRegex=ny;Y.weekdaysShortRegex=ay;Y.weekdaysMinRegex=iy;Y.isPM=cy;Y.meridiem=uy;function fn(t,e,r,o){var a=ot(),i=Be().set(o,e);return a[r](i,t)}function Hd(t,e,r){if(rt(t)&&(e=t,t=void 0),t=t||"",e!=null)return fn(t,e,r,"month");var o,a=[];for(o=0;o<12;o++)a[o]=fn(t,o,r,"month");return a}function Ki(t,e,r,o){typeof t=="boolean"?(rt(e)&&(r=e,e=void 0),e=e||""):(e=t,r=e,t=!1,rt(e)&&(r=e,e=void 0),e=e||"");var a=ot(),i=t?a._week.dow:0,s,l=[];if(r!=null)return fn(e,(r+i)%7,o,"day");for(s=0;s<7;s++)l[s]=fn(e,(s+i)%7,o,"day");return l}function mg(t,e){return Hd(t,e,"months")}function gg(t,e){return Hd(t,e,"monthsShort")}function bg(t,e,r){return Ki(t,e,r,"weekdays")}function xg(t,e,r){return Ki(t,e,r,"weekdaysShort")}function vg(t,e,r){return Ki(t,e,r,"weekdaysMin")}xt("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10,r=F(t%100/10)===1?"th":e===1?"st":e===2?"nd":e===3?"rd":"th";return t+r}});_.lang=we("moment.lang is deprecated. Use moment.locale instead.",xt);_.langData=we("moment.langData is deprecated. Use moment.localeData instead.",ot);var Je=Math.abs;function Sg(){var t=this._data;return this._milliseconds=Je(this._milliseconds),this._days=Je(this._days),this._months=Je(this._months),t.milliseconds=Je(t.milliseconds),t.seconds=Je(t.seconds),t.minutes=Je(t.minutes),t.hours=Je(t.hours),t.months=Je(t.months),t.years=Je(t.years),this}function zd(t,e,r,o){var a=Pe(e,r);return t._milliseconds+=o*a._milliseconds,t._days+=o*a._days,t._months+=o*a._months,t._bubble()}function Og(t,e){return zd(this,t,e,1)}function wg(t,e){return zd(this,t,e,-1)}function Ql(t){return t<0?Math.floor(t):Math.ceil(t)}function Eg(){var t=this._milliseconds,e=this._days,r=this._months,o=this._data,a,i,s,l,d;return t>=0&&e>=0&&r>=0||t<=0&&e<=0&&r<=0||(t+=Ql(Ni(r)+e)*864e5,e=0,r=0),o.milliseconds=t%1e3,a=Oe(t/1e3),o.seconds=a%60,i=Oe(a/60),o.minutes=i%60,s=Oe(i/60),o.hours=s%24,e+=Oe(s/24),d=Oe(Yd(e)),r+=d,e-=Ql(Ni(d)),l=Oe(r/12),r%=12,o.days=e,o.months=r,o.years=l,this}function Yd(t){return t*4800/146097}function Ni(t){return t*146097/4800}function Cg(t){if(!this.isValid())return NaN;var e,r,o=this._milliseconds;if(t=Ee(t),t==="month"||t==="quarter"||t==="year")switch(e=this._days+o/864e5,r=this._months+Yd(e),t){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(e=this._days+Math.round(Ni(this._months)),t){case"week":return e/7+o/6048e5;case"day":return e+o/864e5;case"hour":return e*24+o/36e5;case"minute":return e*1440+o/6e4;case"second":return e*86400+o/1e3;case"millisecond":return Math.floor(e*864e5)+o;default:throw new Error("Unknown unit "+t)}}function _g(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+F(this._months/12)*31536e6:NaN}function nt(t){return function(){return this.as(t)}}var Ag=nt("ms"),Ng=nt("s"),Rg=nt("m"),kg=nt("h"),Pg=nt("d"),Ig=nt("w"),Tg=nt("M"),Mg=nt("Q"),Dg=nt("y");function Lg(){return Pe(this)}function Fg(t){return t=Ee(t),this.isValid()?this[t+"s"]():NaN}function zt(t){return function(){return this.isValid()?this._data[t]:NaN}}var Ug=zt("milliseconds"),Wg=zt("seconds"),$g=zt("minutes"),Bg=zt("hours"),Hg=zt("days"),zg=zt("months"),Yg=zt("years");function jg(){return Oe(this.days()/7)}var Xe=Math.round,lr={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Gg(t,e,r,o,a){return a.relativeTime(e||1,!!r,t,o)}function Vg(t,e,r,o){var a=Pe(t).abs(),i=Xe(a.as("s")),s=Xe(a.as("m")),l=Xe(a.as("h")),d=Xe(a.as("d")),u=Xe(a.as("M")),h=Xe(a.as("w")),p=Xe(a.as("y")),m=i<=r.ss&&["s",i]||i<r.s&&["ss",i]||s<=1&&["m"]||s<r.m&&["mm",s]||l<=1&&["h"]||l<r.h&&["hh",l]||d<=1&&["d"]||d<r.d&&["dd",d];return r.w!=null&&(m=m||h<=1&&["w"]||h<r.w&&["ww",h]),m=m||u<=1&&["M"]||u<r.M&&["MM",u]||p<=1&&["y"]||["yy",p],m[2]=e,m[3]=+t>0,m[4]=o,Gg.apply(null,m)}function Kg(t){return t===void 0?Xe:typeof t=="function"?(Xe=t,!0):!1}function Zg(t,e){return lr[t]===void 0?!1:e===void 0?lr[t]:(lr[t]=e,t==="s"&&(lr.ss=e-1),!0)}function qg(t,e){if(!this.isValid())return this.localeData().invalidDate();var r=!1,o=lr,a,i;return typeof t=="object"&&(e=t,t=!1),typeof t=="boolean"&&(r=t),typeof e=="object"&&(o=Object.assign({},lr,e),e.s!=null&&e.ss==null&&(o.ss=e.s-1)),a=this.localeData(),i=Vg(this,!r,o,a),r&&(i=a.pastFuture(+this,i)),a.postformat(i)}var Si=Math.abs;function sr(t){return(t>0)-(t<0)||+t}function En(){if(!this.isValid())return this.localeData().invalidDate();var t=Si(this._milliseconds)/1e3,e=Si(this._days),r=Si(this._months),o,a,i,s,l=this.asSeconds(),d,u,h,p;return l?(o=Oe(t/60),a=Oe(o/60),t%=60,o%=60,i=Oe(r/12),r%=12,s=t?t.toFixed(3).replace(/\.?0+$/,""):"",d=l<0?"-":"",u=sr(this._months)!==sr(l)?"-":"",h=sr(this._days)!==sr(l)?"-":"",p=sr(this._milliseconds)!==sr(l)?"-":"",d+"P"+(i?u+i+"Y":"")+(r?u+r+"M":"")+(e?h+e+"D":"")+(a||o||t?"T":"")+(a?p+a+"H":"")+(o?p+o+"M":"")+(t?p+s+"S":"")):"P0D"}var B=On.prototype;B.isValid=Hy;B.abs=Sg;B.add=Og;B.subtract=wg;B.as=Cg;B.asMilliseconds=Ag;B.asSeconds=Ng;B.asMinutes=Rg;B.asHours=kg;B.asDays=Pg;B.asWeeks=Ig;B.asMonths=Tg;B.asQuarters=Mg;B.asYears=Dg;B.valueOf=_g;B._bubble=Eg;B.clone=Lg;B.get=Fg;B.milliseconds=Ug;B.seconds=Wg;B.minutes=$g;B.hours=Bg;B.days=Hg;B.weeks=jg;B.months=zg;B.years=Yg;B.humanize=qg;B.toISOString=En;B.toString=En;B.toJSON=En;B.locale=Id;B.localeData=Md;B.toIsoString=we("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",En);B.lang=Td;T("X",0,0,"unix");T("x",0,0,"valueOf");N("x",bn);N("X",bh);V("X",function(t,e,r){r._d=new Date(parseFloat(t)*1e3)});V("x",function(t,e,r){r._d=new Date(F(t))});_.version="2.29.4";Jp(Z);_.fn=E;_.min=Uy;_.max=Wy;_.now=$y;_.utc=Be;_.unix=hg;_.months=mg;_.isDate=so;_.locale=xt;_.invalid=pn;_.duration=Pe;_.isMoment=ke;_.weekdays=bg;_.parseZone=yg;_.localeData=ot;_.isDuration=nn;_.monthsShort=gg;_.weekdaysMin=vg;_.defineLocale=$i;_.updateLocale=yy;_.locales=my;_.weekdaysShort=xg;_.normalizeUnits=Ee;_.relativeTimeRounding=Kg;_.relativeTimeThreshold=Zg;_.calendarFormat=um;_.prototype=E;_.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};var Yt=_;var ue;(function(t){t.DAY="DAY",t.WEEK="WEEK",t.MONTH="MONTH"})(ue||(ue={}));var jd=ne`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-chart",
3
- "version": "1.2.15",
3
+ "version": "1.2.16",
4
4
  "description": "Display charts from data",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,7 +19,7 @@
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.15",
22
+ "@fluid-topics/ft-wc-utils": "1.2.16",
23
23
  "lit": "3.1.0",
24
24
  "moment": "2.29.4"
25
25
  },
@@ -29,5 +29,5 @@
29
29
  "peerDependencies": {
30
30
  "echarts": "^5.3.0"
31
31
  },
32
- "gitHead": "158c47a3701bd302f5e9ed9103d9709158596371"
32
+ "gitHead": "ede6b43f06ac3cf4720eace3f556b8917e364248"
33
33
  }