@fluid-topics/ft-reader-topic-metadata 1.1.94 → 1.1.96
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.
|
@@ -26,20 +26,20 @@ class FtReaderTopicMetadata extends withDateFormat(FtReaderTopicComponent) {
|
|
|
26
26
|
`;
|
|
27
27
|
}
|
|
28
28
|
renderChip() {
|
|
29
|
-
var _a, _b, _c;
|
|
29
|
+
var _a, _b, _c, _d;
|
|
30
30
|
let chip = html `
|
|
31
31
|
<ft-chip part="chip"
|
|
32
32
|
exportpartsPrefix="chip"
|
|
33
33
|
?multiLine=${this.multiLine}>
|
|
34
34
|
${this.displayLabel ? html `
|
|
35
|
-
<span part="label">${(_a = this.flatMetadata) === null || _a === void 0 ? void 0 : _a.label}: </span>
|
|
35
|
+
<span part="label">${(_b = (_a = this.flatMetadata) === null || _a === void 0 ? void 0 : _a.label) !== null && _b !== void 0 ? _b : this.key}: </span>
|
|
36
36
|
` : nothing}
|
|
37
37
|
${this.metadataValue.length === 0 ? nothing : html `
|
|
38
38
|
<span part="values">${this.metadataValue}</span>
|
|
39
39
|
`}
|
|
40
40
|
</ft-chip>
|
|
41
41
|
`;
|
|
42
|
-
return this.displayLabel && ((
|
|
42
|
+
return this.displayLabel && ((_c = this.flatMetadata) === null || _c === void 0 ? void 0 : _c.value) == ((_d = this.flatMetadata) === null || _d === void 0 ? void 0 : _d.displayValue) ? chip : html `
|
|
43
43
|
<ft-tooltip part="tooltip" text="${this.tooltipText}">
|
|
44
44
|
${chip}
|
|
45
45
|
</ft-tooltip>
|
|
@@ -978,6 +978,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
978
978
|
.iconVariant=${this.iconVariant}
|
|
979
979
|
icon="${this.internalIcon}"
|
|
980
980
|
label="${this.iconLabel}"
|
|
981
|
+
tooltipposition="top"
|
|
981
982
|
part="icon-button"
|
|
982
983
|
></ft-button>
|
|
983
984
|
`:wo.html`
|
|
@@ -1117,20 +1118,20 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1117
1118
|
`:ae.nothing}resolveButtonSize(){switch(this.size){case X.large:return X.medium;case X.medium:case X.small:return X.small}}getLabel(){return this.label||this.textContent}get textContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(n=>n.textContent).join("").trim())!==null&&r!==void 0?r:""}onSlotchange(){this.requestUpdate()}dispatchRemoveEvent(){this.dispatchEvent(new Sr)}typographyVariant(){switch(this.size){case X.large:return ut.body2medium;case X.medium:return ut.caption1medium;case X.small:return ut.caption2medium}}};Ot.elementDefinitions={"ft-typography":J,"ft-icon":Y,"ftds-button":St};Ot.styles=Ca;qe([(0,ce.property)({type:Boolean})],Ot.prototype,"removable",void 0);qe([(0,ce.property)()],Ot.prototype,"removeButtonLabel",void 0);qe([(0,ce.property)()],Ot.prototype,"label",void 0);qe([(0,ce.property)()],Ot.prototype,"icon",void 0);qe([(0,ce.query)("ft-typography slot")],Ot.prototype,"slottedContent",void 0);(0,Or.customElement)("ft-chip")(U);(0,Or.customElement)("ftds-chip")(Ot);var qr=S(V());function qc(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var r,n,i;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(n=r;n--!==0;)if(!Ao(t[n],e[n]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;for(n of t.entries())if(!Ao(n[1],e.get(n[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if(i=Object.keys(t),r=i.length,r!==Object.keys(e).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(e,i[n]))return!1;for(n=r;n--!==0;){var a=i[n];if(!Ao(t[a],e[a]))return!1}return!0}return t!==t&&e!==e}function Ao(t,e){try{return qc(t,e)}catch{return!1}}function Po(t,e){return!Ao(t,e)}var Ea=S(V(),1);var Cr=t=>{let e=t??{};return(r,n)=>{var i;let a={hasChanged:Po,attribute:!1,...e};(0,Ea.property)(a)(r,n);let c=r.constructor;c.reduxProperties=new Map(c.reduxProperties),c.reduxProperties.set(n,{selector:(i=e.selector)!==null&&i!==void 0?i:s=>s[n],store:e.store})}};var Lo=class{constructor(){this.queue=[]}add(e,r=!1){r&&(this.queue=this.queue.filter(n=>n.type!==e.type)),this.queue.push(e)}consume(e){let r=this.queue.find(n=>n.type===e);return r&&(this.queue=this.queue.filter(n=>n!==r)),r}};var Xe=S(V(),1);var Na=S(V(),1);function Ra(t,e){let r=()=>JSON.parse(JSON.stringify(t));return(0,Na.property)({type:Object,converter:{fromAttribute:n=>{if(n==null)return r();try{return JSON.parse(n)}catch{return r()}},toAttribute:n=>JSON.stringify(n)},hasChanged:Po,...e??{}})}var Io=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,r){return this.callbacks=[e],this.debounce(r)}queue(e,r){return this.callbacks.push(e),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((r,n)=>{this.resolvePromise=r,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let n=[...this.callbacks];this.callbacks=[];let i=(e=this.rejectPromise)!==null&&e!==void 0?e:()=>null,a=(r=this.resolvePromise)!==null&&r!==void 0?r:()=>null;this.clearPromise();for(let c of n)try{await c()}catch(s){i(s);return}a(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Pa=S(B(),1);var To=window,Xc=To.ShadowRoot&&(To.ShadyCSS===void 0||To.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,mm=Symbol();var Aa=(t,e)=>{Xc?t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet):e.forEach(r=>{let n=document.createElement("style"),i=To.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=r.cssText,t.appendChild(n)})};var $o=class extends Pa.LitElement{createRenderRoot(){let e=this.constructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,Object.entries(e.elementDefinitions).forEach(([i,a])=>e.registry.define(i,a)));let r={...e.shadowRootOptions,customElements:e.registry},n=this.renderOptions.creationScope=this.attachShadow(r);return Aa(n,e.elementStyles),n}};var _o=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var s=t.length-1;s>=0;s--)(c=t[s])&&(a=(i<3?c(a):i>3?c(e,r,a):c(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},$a,La=Symbol("constructorPrototype"),Ia=Symbol("constructorName"),_a=Symbol("exportpartsDebouncer"),Ta=Symbol("dynamicDependenciesLoaded"),jt=class extends $o{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[$a]=new Io(5),this[Ia]=this.constructor.name,this[La]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Ia]&&Object.setPrototypeOf(this,this[La])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(r){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",r)}let e=this.constructor;e[Ta]||(e[Ta]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate()})}contentAvailableCallback(e){}applyCustomStylesheet(e){var r,n,i;if(((n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((i=this.customStylesheet)!==null&&i!==void 0?i:"")}catch(a){console.error(a,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let a=document.createElement("style");a.classList.add("ft-lit-element--custom-stylesheet"),a.innerHTML=this.customStylesheet,this.shadowRoot.append(a)}}scheduleExportpartsUpdate(){var e,r,n;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(n=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&n!==void 0&&n)&&this[_a].run(()=>{var i,a;!((i=this.exportpartsPrefix)===null||i===void 0)&&i.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((a=this.exportpartsPrefixes)===null||a===void 0?void 0:a.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(e){var r,n,i,a,c,s;let p=m=>m!=null&&m.trim().length>0,f=e.filter(p).map(m=>m.trim());if(f.length===0){this.removeAttribute("exportparts");return}let u=new Set;for(let m of(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let g=(a=(i=m.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&a!==void 0?a:[],y=(s=(c=m.getAttribute("exportparts"))===null||c===void 0?void 0:c.split(",").map(b=>b.split(":")[1]))!==null&&s!==void 0?s:[];new Array(...g,...y).filter(p).map(b=>b.trim()).forEach(b=>u.add(b))}if(u.size===0){this.removeAttribute("exportparts");return}let h=[...u.values()].flatMap(m=>f.map(g=>`${m}:${g}--${m}`));this.setAttribute("exportparts",[...this.part,...h].join(", "))}};$a=_a;_o([(0,Xe.property)()],jt.prototype,"exportpartsPrefix",void 0);_o([Ra([])],jt.prototype,"exportpartsPrefixes",void 0);_o([(0,Xe.property)()],jt.prototype,"customStylesheet",void 0);_o([(0,Xe.state)()],jt.prototype,"useAdoptedStyleSheets",void 0);function Je(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var ka,Wa,Da,ko=Symbol("internalReduxEventsUnsubscribers"),Kt=Symbol("internalStoresUnsubscribers"),le=Symbol("internalStores"),Qe=class extends jt{constructor(){super(...arguments),this[ka]=new Map,this[Wa]=new Map,this[Da]=[]}get reduxConstructor(){return this.constructor}update(e){super.update(e),[...this.reduxConstructor.reduxReactiveProperties].some(r=>e.has(r))&&this.updateFromStores()}getUnnamedStore(){if(this[le].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[le].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[le].get(e)}addStore(e,r){var n;r=(n=r??(Je(e)?e.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(r),this.setupStore(r,e)}removeStore(e){let r=typeof e=="string"?e:e.name;this.unsubscribeFromStore(r),this[le].delete(r)}setupStore(e,r){this[le].set(e,r),this.subscribeToStore(e,r),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[le].forEach((e,r)=>this.subscribeToStore(r,e)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((e,r)=>{let n=this.constructor.getPropertyOptions(r);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:r)){let i=this.getStore(e.store);i&&(e.store?this[Kt].has(e.store):this[Kt].size>0)&&(this[r]=e.selector(i.getState(),this))}})}subscribeToStore(e,r){var n;this[Kt].set(e,r.subscribe(()=>this.updateFromStores())),Je(r)&&r.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((i,a)=>{if(typeof this[a]=="function"&&(!i.store||r.name===i.store)){let c=s=>this[a](s);r.eventBus.addEventListener(i.eventName,c),this[ko].push(()=>r.eventBus.removeEventListener(i.eventName,c))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[Kt].forEach((e,r)=>this.unsubscribeFromStore(r)),this[ko].forEach(e=>e()),this[ko]=[]}unsubscribeFromStore(e){this[Kt].has(e)&&this[Kt].get(e)(),this[Kt].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};ka=Kt,Wa=le,Da=ko;Qe.reduxProperties=new Map;Qe.reduxReactiveProperties=new Set;Qe.reduxEventListeners=new Map;function gt(t){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];if(0)var i,a;throw Error("[Immer] minified error nr: "+t+(r.length?" "+r.map(function(c){return"'"+c+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Dt(t){return!!t&&!!t[z]}function Ct(t){var e;return!!t&&(function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===il}(t)||Array.isArray(t)||!!t[ja]||!!(!((e=t.constructor)===null||e===void 0)&&e[ja])||Tr(t)||$r(t))}function se(t,e,r){r===void 0&&(r=!1),Pe(t)===0?(r?Object.keys:Ae)(t).forEach(function(n){r&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,i){return e(i,n,t)})}function Pe(t){var e=t[z];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Tr(t)?2:$r(t)?3:0}function Re(t,e){return Pe(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Jc(t,e){return Pe(t)===2?t.get(e):t[e]}function Ka(t,e,r){var n=Pe(t);n===2?t.set(e,r):n===3?t.add(r):t[e]=r}function Fa(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function Tr(t){return rl&&t instanceof Map}function $r(t){return nl&&t instanceof Set}function Ft(t){return t.o||t.t}function _r(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Ya(t);delete e[z];for(var r=Ae(e),n=0;n<r.length;n++){var i=r[n],a=e[i];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:t[i]})}return Object.create(Object.getPrototypeOf(t),e)}function kr(t,e){return e===void 0&&(e=!1),Wr(t)||Dt(t)||!Ct(t)||(Pe(t)>1&&(t.set=t.add=t.clear=t.delete=Qc),Object.freeze(t),e&&se(t,function(r,n){return kr(n,!0)},!0)),t}function Qc(){gt(2)}function Wr(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function Pt(t){var e=Ir[t];return e||gt(18,t),e}function tl(t,e){Ir[t]||(Ir[t]=e)}function Ar(){return eo}function wr(t,e){e&&(Pt("Patches"),t.u=[],t.s=[],t.v=e)}function Wo(t){Pr(t),t.p.forEach(el),t.p=null}function Pr(t){t===eo&&(eo=t.l)}function za(t){return eo={p:[],l:eo,h:t,m:!0,_:0}}function el(t){var e=t[z];e.i===0||e.i===1?e.j():e.g=!0}function Er(t,e){e._=e.p.length;var r=e.p[0],n=t!==void 0&&t!==r;return e.h.O||Pt("ES5").S(e,t,n),n?(r[z].P&&(Wo(e),gt(4)),Ct(t)&&(t=Do(e,t),e.l||zo(e,t)),e.u&&Pt("Patches").M(r[z].t,t,e.u,e.s)):t=Do(e,r,[]),Wo(e),e.u&&e.v(e.u,e.s),t!==Za?t:void 0}function Do(t,e,r){if(Wr(e))return e;var n=e[z];if(!n)return se(e,function(s,p){return Ba(t,n,e,s,p,r)},!0),e;if(n.A!==t)return e;if(!n.P)return zo(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=_r(n.k):n.o,a=i,c=!1;n.i===3&&(a=new Set(i),i.clear(),c=!0),se(a,function(s,p){return Ba(t,n,i,s,p,r,c)}),zo(t,i,!1),r&&t.u&&Pt("Patches").N(n,r,t.u,t.s)}return n.o}function Ba(t,e,r,n,i,a,c){if(Dt(i)){var s=Do(t,i,a&&e&&e.i!==3&&!Re(e.R,n)?a.concat(n):void 0);if(Ka(r,n,s),!Dt(s))return;t.m=!1}else c&&r.add(i);if(Ct(i)&&!Wr(i)){if(!t.h.D&&t._<1)return;Do(t,i),e&&e.A.l||zo(t,i)}}function zo(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&kr(e,r)}function Nr(t,e){var r=t[z];return(r?Ft(r):t)[e]}function Ma(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var n=Object.getOwnPropertyDescriptor(r,e);if(n)return n;r=Object.getPrototypeOf(r)}}function Vt(t){t.P||(t.P=!0,t.l&&Vt(t.l))}function Rr(t){t.o||(t.o=_r(t.t))}function Lr(t,e,r){var n=Tr(e)?Pt("MapSet").F(e,r):$r(e)?Pt("MapSet").T(e,r):t.O?function(i,a){var c=Array.isArray(i),s={i:c?1:0,A:a?a.A:Ar(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},p=s,f=oo;c&&(p=[s],f=to);var u=Proxy.revocable(p,f),h=u.revoke,m=u.proxy;return s.k=m,s.j=h,m}(e,r):Pt("ES5").J(e,r);return(r?r.A:Ar()).p.push(n),n}function ol(t){return Dt(t)||gt(22,t),function e(r){if(!Ct(r))return r;var n,i=r[z],a=Pe(r);if(i){if(!i.P&&(i.i<4||!Pt("ES5").K(i)))return i.t;i.I=!0,n=Ua(r,a),i.I=!1}else n=Ua(r,a);return se(n,function(c,s){i&&Jc(i.t,c)===s||Ka(n,c,e(s))}),a===3?new Set(n):n}(t)}function Ua(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return _r(t)}function Va(){function t(c,s){var p=a[c];return p?p.enumerable=s:a[c]=p={configurable:!0,enumerable:s,get:function(){var f=this[z];return oo.get(f,c)},set:function(f){var u=this[z];oo.set(u,c,f)}},p}function e(c){for(var s=c.length-1;s>=0;s--){var p=c[s][z];if(!p.P)switch(p.i){case 5:n(p)&&Vt(p);break;case 4:r(p)&&Vt(p)}}}function r(c){for(var s=c.t,p=c.k,f=Ae(p),u=f.length-1;u>=0;u--){var h=f[u];if(h!==z){var m=s[h];if(m===void 0&&!Re(s,h))return!0;var g=p[h],y=g&&g[z];if(y?y.t!==m:!Fa(g,m))return!0}}var b=!!s[z];return f.length!==Ae(s).length+(b?0:1)}function n(c){var s=c.k;if(s.length!==c.t.length)return!0;var p=Object.getOwnPropertyDescriptor(s,s.length-1);if(p&&!p.get)return!0;for(var f=0;f<s.length;f++)if(!s.hasOwnProperty(f))return!0;return!1}function i(c){c.g&>(3,JSON.stringify(Ft(c)))}var a={};tl("ES5",{J:function(c,s){var p=Array.isArray(c),f=function(h,m){if(h){for(var g=Array(m.length),y=0;y<m.length;y++)Object.defineProperty(g,""+y,t(y,!0));return g}var b=Ya(m);delete b[z];for(var N=Ae(b),C=0;C<N.length;C++){var w=N[C];b[w]=t(w,h||!!b[w].enumerable)}return Object.create(Object.getPrototypeOf(m),b)}(p,c),u={i:p?5:4,A:s?s.A:Ar(),P:!1,I:!1,R:{},l:s,t:c,k:f,o:null,g:!1,C:!1};return Object.defineProperty(f,z,{value:u,writable:!0}),f},S:function(c,s,p){p?Dt(s)&&s[z].A===c&&e(c.p):(c.u&&function f(u){if(u&&typeof u=="object"){var h=u[z];if(h){var m=h.t,g=h.k,y=h.R,b=h.i;if(b===4)se(g,function(I){I!==z&&(m[I]!==void 0||Re(m,I)?y[I]||f(g[I]):(y[I]=!0,Vt(h)))}),se(m,function(I){g[I]!==void 0||Re(g,I)||(y[I]=!1,Vt(h))});else if(b===5){if(n(h)&&(Vt(h),y.length=!0),g.length<m.length)for(var N=g.length;N<m.length;N++)y[N]=!1;else for(var C=m.length;C<g.length;C++)y[C]=!0;for(var w=Math.min(g.length,m.length),R=0;R<w;R++)g.hasOwnProperty(R)||(y[R]=!0),y[R]===void 0&&f(g[R])}}}}(c.p[0]),e(c.p))},K:function(c){return c.i===4?r(c):n(c)}})}var Ha,eo,Dr=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",rl=typeof Map<"u",nl=typeof Set<"u",Ga=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Za=Dr?Symbol.for("immer-nothing"):((Ha={})["immer-nothing"]=!0,Ha),ja=Dr?Symbol.for("immer-draftable"):"__$immer_draftable",z=Dr?Symbol.for("immer-state"):"__$immer_state";var il=""+Object.prototype.constructor,Ae=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Ya=Object.getOwnPropertyDescriptors||function(t){var e={};return Ae(t).forEach(function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)}),e},Ir={},oo={get:function(t,e){if(e===z)return t;var r=Ft(t);if(!Re(r,e))return function(i,a,c){var s,p=Ma(a,c);return p?"value"in p?p.value:(s=p.get)===null||s===void 0?void 0:s.call(i.k):void 0}(t,r,e);var n=r[e];return t.I||!Ct(n)?n:n===Nr(t.t,e)?(Rr(t),t.o[e]=Lr(t.A.h,n,t)):n},has:function(t,e){return e in Ft(t)},ownKeys:function(t){return Reflect.ownKeys(Ft(t))},set:function(t,e,r){var n=Ma(Ft(t),e);if(n?.set)return n.set.call(t.k,r),!0;if(!t.P){var i=Nr(Ft(t),e),a=i?.[z];if(a&&a.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(Fa(r,i)&&(r!==void 0||Re(t.t,e)))return!0;Rr(t),Vt(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 Nr(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,Rr(t),Vt(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=Ft(t),n=Reflect.getOwnPropertyDescriptor(r,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:r[e]}},defineProperty:function(){gt(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){gt(12)}},to={};se(oo,function(t,e){to[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),to.deleteProperty=function(t,e){return to.set.call(this,t,e,void 0)},to.set=function(t,e,r){return oo.set.call(this,t[0],e,r,t[0])};var al=function(){function t(r){var n=this;this.O=Ga,this.D=!0,this.produce=function(i,a,c){if(typeof i=="function"&&typeof a!="function"){var s=a;a=i;var p=n;return function(b){var N=this;b===void 0&&(b=s);for(var C=arguments.length,w=Array(C>1?C-1:0),R=1;R<C;R++)w[R-1]=arguments[R];return p.produce(b,function(I){var k;return(k=a).call.apply(k,[N,I].concat(w))})}}var f;if(typeof a!="function"&>(6),c!==void 0&&typeof c!="function"&>(7),Ct(i)){var u=za(n),h=Lr(n,i,void 0),m=!0;try{f=a(h),m=!1}finally{m?Wo(u):Pr(u)}return typeof Promise<"u"&&f instanceof Promise?f.then(function(b){return wr(u,c),Er(b,u)},function(b){throw Wo(u),b}):(wr(u,c),Er(f,u))}if(!i||typeof i!="object"){if((f=a(i))===void 0&&(f=i),f===Za&&(f=void 0),n.D&&kr(f,!0),c){var g=[],y=[];Pt("Patches").M(i,f,g,y),c(g,y)}return f}gt(21,i)},this.produceWithPatches=function(i,a){if(typeof i=="function")return function(f){for(var u=arguments.length,h=Array(u>1?u-1:0),m=1;m<u;m++)h[m-1]=arguments[m];return n.produceWithPatches(f,function(g){return i.apply(void 0,[g].concat(h))})};var c,s,p=n.produce(i,a,function(f,u){c=f,s=u});return typeof Promise<"u"&&p instanceof Promise?p.then(function(f){return[f,c,s]}):[p,c,s]},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){Ct(r)||gt(8),Dt(r)&&(r=ol(r));var n=za(this),i=Lr(this,r,void 0);return i[z].C=!0,Pr(n),i},e.finishDraft=function(r,n){var i=r&&r[z],a=i.A;return wr(a,n),Er(void 0,a)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!Ga&>(20),this.O=r},e.applyPatches=function(r,n){var i;for(i=n.length-1;i>=0;i--){var a=n[i];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}i>-1&&(n=n.slice(i+1));var c=Pt("Patches").$;return Dt(r)?c(r,n):this.produce(r,function(s){return c(s,n)})},t}(),dt=new al,cl=dt.produce,Rm=dt.produceWithPatches.bind(dt),Am=dt.setAutoFreeze.bind(dt),Pm=dt.setUseProxies.bind(dt),Lm=dt.applyPatches.bind(dt),Im=dt.createDraft.bind(dt),Tm=dt.finishDraft.bind(dt),Bo=cl;function Zt(t){"@babel/helpers - typeof";return Zt=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},Zt(t)}function zr(t,e){if(Zt(t)!=="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Zt(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Br(t){var e=zr(t,"string");return Zt(e)==="symbol"?e:String(e)}function Mr(t,e,r){return e=Br(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function qa(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Mo(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?qa(Object(r),!0).forEach(function(n){Mr(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):qa(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function q(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 Xa=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Ur=function(){return Math.random().toString(36).substring(7).split("").join(".")},Uo={INIT:"@@redux/INIT"+Ur(),REPLACE:"@@redux/REPLACE"+Ur(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Ur()}};function ll(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 Hr(t,e,r){var n;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(q(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(q(1));return r(Hr)(t,e)}if(typeof t!="function")throw new Error(q(2));var i=t,a=e,c=[],s=c,p=!1;function f(){s===c&&(s=c.slice())}function u(){if(p)throw new Error(q(3));return a}function h(b){if(typeof b!="function")throw new Error(q(4));if(p)throw new Error(q(5));var N=!0;return f(),s.push(b),function(){if(N){if(p)throw new Error(q(6));N=!1,f();var w=s.indexOf(b);s.splice(w,1),c=null}}}function m(b){if(!ll(b))throw new Error(q(7));if(typeof b.type>"u")throw new Error(q(8));if(p)throw new Error(q(9));try{p=!0,a=i(a,b)}finally{p=!1}for(var N=c=s,C=0;C<N.length;C++){var w=N[C];w()}return b}function g(b){if(typeof b!="function")throw new Error(q(10));i=b,m({type:Uo.REPLACE})}function y(){var b,N=h;return b={subscribe:function(w){if(typeof w!="object"||w===null)throw new Error(q(11));function R(){w.next&&w.next(u())}R();var I=N(R);return{unsubscribe:I}}},b[Xa]=function(){return this},b}return m({type:Uo.INIT}),n={dispatch:m,subscribe:h,getState:u,replaceReducer:g},n[Xa]=y,n}function sl(t){Object.keys(t).forEach(function(e){var r=t[e],n=r(void 0,{type:Uo.INIT});if(typeof n>"u")throw new Error(q(12));if(typeof r(void 0,{type:Uo.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(q(13))})}function Ja(t){for(var e=Object.keys(t),r={},n=0;n<e.length;n++){var i=e[n];typeof t[i]=="function"&&(r[i]=t[i])}var a=Object.keys(r),c,s;try{sl(r)}catch(p){s=p}return function(f,u){if(f===void 0&&(f={}),s)throw s;if(0)var h;for(var m=!1,g={},y=0;y<a.length;y++){var b=a[y],N=r[b],C=f[b],w=N(C,u);if(typeof w>"u"){var R=u&&u.type;throw new Error(q(14))}g[b]=w,m=m||w!==C}return m=m||a.length!==Object.keys(f).length,m?g:f}}function Le(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function Qa(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(n){return function(){var i=n.apply(void 0,arguments),a=function(){throw new Error(q(15))},c={getState:i.getState,dispatch:function(){return a.apply(void 0,arguments)}},s=e.map(function(p){return p(c)});return a=Le.apply(void 0,s)(i.dispatch),Mo(Mo({},i),{},{dispatch:a})}}}function tc(t){var e=function(n){var i=n.dispatch,a=n.getState;return function(c){return function(s){return typeof s=="function"?s(i,a,t):c(s)}}};return e}var ec=tc();ec.withExtraArgument=tc;var Gr=ec;var ac=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},t(e,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 n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),dl=function(t,e){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,c;return c={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function s(f){return function(u){return p([f,u])}}function p(f){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(a=f[0]&2?i.return:f[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,f[1])).done)return a;switch(i=0,a&&(f=[f[0]&2,a.value]),f[0]){case 0:case 1:a=f;break;case 4:return r.label++,{value:f[1],done:!1};case 5:r.label++,i=f[1],f=[0];continue;case 7:f=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(f[0]===6||f[0]===2)){r=0;continue}if(f[0]===3&&(!a||f[1]>a[0]&&f[1]<a[3])){r.label=f[1];break}if(f[0]===6&&r.label<a[1]){r.label=a[1],a=f;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(f);break}a[2]&&r.ops.pop(),r.trys.pop();continue}f=e.call(t,r)}catch(u){f=[6,u],i=0}finally{n=a=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},Ie=function(t,e){for(var r=0,n=e.length,i=t.length;r<n;r++,i++)t[i]=e[r];return t},fl=Object.defineProperty,pl=Object.defineProperties,ul=Object.getOwnPropertyDescriptors,oc=Object.getOwnPropertySymbols,hl=Object.prototype.hasOwnProperty,ml=Object.prototype.propertyIsEnumerable,rc=function(t,e,r){return e in t?fl(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},Yt=function(t,e){for(var r in e||(e={}))hl.call(e,r)&&rc(t,r,e[r]);if(oc)for(var n=0,i=oc(e);n<i.length;n++){var r=i[n];ml.call(e,r)&&rc(t,r,e[r])}return t},jr=function(t,e){return pl(t,ul(e))},yl=function(t,e,r){return new Promise(function(n,i){var a=function(p){try{s(r.next(p))}catch(f){i(f)}},c=function(p){try{s(r.throw(p))}catch(f){i(f)}},s=function(p){return p.done?n(p.value):Promise.resolve(p.value).then(a,c)};s((r=r.apply(t,e)).next())})};var gl=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Le:Le.apply(null,arguments)},qm=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function bl(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 xl=function(t){ac(e,t);function e(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=t.apply(this,r)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,Ie([void 0],r[0].concat(this)))):new(e.bind.apply(e,Ie([void 0],r.concat(this))))},e}(Array),vl=function(t){ac(e,t);function e(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=t.apply(this,r)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,Ie([void 0],r[0].concat(this)))):new(e.bind.apply(e,Ie([void 0],r.concat(this))))},e}(Array);function Vr(t){return Ct(t)?Bo(t,function(){}):t}function Sl(t){return typeof t=="boolean"}function Ol(){return function(e){return Cl(e)}}function Cl(t){t===void 0&&(t={});var e=t.thunk,r=e===void 0?!0:e,n=t.immutableCheck,i=n===void 0?!0:n,a=t.serializableCheck,c=a===void 0?!0:a,s=new xl;if(r&&(Sl(r)?s.push(Gr):s.push(Gr.withExtraArgument(r.extraArgument))),0){if(i)var p;if(c)var f}return s}var Kr=!0;function cc(t){var e=Ol(),r=t||{},n=r.reducer,i=n===void 0?void 0:n,a=r.middleware,c=a===void 0?e():a,s=r.devTools,p=s===void 0?!0:s,f=r.preloadedState,u=f===void 0?void 0:f,h=r.enhancers,m=h===void 0?void 0:h,g;if(typeof i=="function")g=i;else if(bl(i))g=Ja(i);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var y=c;if(typeof y=="function"&&(y=y(e),!Kr&&!Array.isArray(y)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Kr&&y.some(function(I){return typeof I!="function"}))throw new Error("each middleware provided to configureStore must be a function");var b=Qa.apply(void 0,y),N=Le;p&&(N=gl(Yt({trace:!Kr},typeof p=="object"&&p)));var C=new vl(b),w=C;Array.isArray(m)?w=Ie([b],m):typeof m=="function"&&(w=m(C));var R=N.apply(void 0,w);return Hr(g,u,R)}function qt(t,e){function r(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(e){var a=e.apply(void 0,n);if(!a)throw new Error("prepareAction did not return an object");return Yt(Yt({type:t,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:t,payload:n[0]}}return r.toString=function(){return""+t},r.type=t,r.match=function(n){return n.type===t},r}function lc(t){var e={},r=[],n,i={addCase:function(a,c){var s=typeof a=="string"?a:a.type;if(s in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[s]=c,i},addMatcher:function(a,c){return r.push({matcher:a,reducer:c}),i},addDefaultCase:function(a){return n=a,i}};return t(i),[e,r,n]}function wl(t){return typeof t=="function"}function El(t,e,r,n){r===void 0&&(r=[]);var i=typeof e=="function"?lc(e):[e,r,n],a=i[0],c=i[1],s=i[2],p;if(wl(t))p=function(){return Vr(t())};else{var f=Vr(t);p=function(){return f}}function u(h,m){h===void 0&&(h=p());var g=Ie([a[m.type]],c.filter(function(y){var b=y.matcher;return b(m)}).map(function(y){var b=y.reducer;return b}));return g.filter(function(y){return!!y}).length===0&&(g=[s]),g.reduce(function(y,b){if(b)if(Dt(y)){var N=y,C=b(N,m);return C===void 0?y:C}else{if(Ct(y))return Bo(y,function(w){return b(w,m)});var C=b(y,m);if(C===void 0){if(y===null)return y;throw Error("A case reducer on a non-draftable value must not return undefined")}return C}return y},h)}return u.getInitialState=p,u}function Nl(t,e){return t+"/"+e}function sc(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof t.initialState=="function"?t.initialState:Vr(t.initialState),n=t.reducers||{},i=Object.keys(n),a={},c={},s={};i.forEach(function(u){var h=n[u],m=Nl(e,u),g,y;"reducer"in h?(g=h.reducer,y=h.prepare):g=h,a[u]=g,c[m]=g,s[u]=y?qt(m,y):qt(m)});function p(){var u=typeof t.extraReducers=="function"?lc(t.extraReducers):[t.extraReducers],h=u[0],m=h===void 0?{}:h,g=u[1],y=g===void 0?[]:g,b=u[2],N=b===void 0?void 0:b,C=Yt(Yt({},m),c);return El(r,function(w){for(var R in C)w.addCase(R,C[R]);for(var I=0,k=y;I<k.length;I++){var ft=k[I];w.addMatcher(ft.matcher,ft.reducer)}N&&w.addDefaultCase(N)})}var f;return{name:e,reducer:function(u,h){return f||(f=p()),f(u,h)},actions:s,caseReducers:a,getInitialState:function(){return f||(f=p()),f.getInitialState()}}}var Rl="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Al=function(t){t===void 0&&(t=21);for(var e="",r=t;r--;)e+=Rl[Math.random()*64|0];return e},Pl=["name","message","stack","code"],Fr=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),nc=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),Ll=function(t){if(typeof t=="object"&&t!==null){for(var e={},r=0,n=Pl;r<n.length;r++){var i=n[r];typeof t[i]=="string"&&(e[i]=t[i])}return e}return{message:String(t)}},ty=function(){function t(e,r,n){var i=qt(e+"/fulfilled",function(u,h,m,g){return{payload:u,meta:jr(Yt({},g||{}),{arg:m,requestId:h,requestStatus:"fulfilled"})}}),a=qt(e+"/pending",function(u,h,m){return{payload:void 0,meta:jr(Yt({},m||{}),{arg:h,requestId:u,requestStatus:"pending"})}}),c=qt(e+"/rejected",function(u,h,m,g,y){return{payload:g,error:(n&&n.serializeError||Ll)(u||"Rejected"),meta:jr(Yt({},y||{}),{arg:m,requestId:h,rejectedWithValue:!!g,requestStatus:"rejected",aborted:u?.name==="AbortError",condition:u?.name==="ConditionError"})}}),s=!1,p=typeof AbortController<"u"?AbortController:function(){function u(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return u.prototype.abort=function(){},u}();function f(u){return function(h,m,g){var y=n?.idGenerator?n.idGenerator(u):Al(),b=new p,N,C=!1;function w(I){N=I,b.abort()}var R=function(){return yl(this,null,function(){var I,k,ft,zt,Ko,Bt,it;return dl(this,function(pt){switch(pt.label){case 0:return pt.trys.push([0,4,,5]),zt=(I=n?.condition)==null?void 0:I.call(n,u,{getState:m,extra:g}),Tl(zt)?[4,zt]:[3,2];case 1:zt=pt.sent(),pt.label=2;case 2:if(zt===!1||b.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return C=!0,Ko=new Promise(function(at,Jt){return b.signal.addEventListener("abort",function(){return Jt({name:"AbortError",message:N||"Aborted"})})}),h(a(y,u,(k=n?.getPendingMeta)==null?void 0:k.call(n,{requestId:y,arg:u},{getState:m,extra:g}))),[4,Promise.race([Ko,Promise.resolve(r(u,{dispatch:h,getState:m,extra:g,requestId:y,signal:b.signal,abort:w,rejectWithValue:function(at,Jt){return new Fr(at,Jt)},fulfillWithValue:function(at,Jt){return new nc(at,Jt)}})).then(function(at){if(at instanceof Fr)throw at;return at instanceof nc?i(at.payload,y,u,at.meta):i(at,y,u)})])];case 3:return ft=pt.sent(),[3,5];case 4:return Bt=pt.sent(),ft=Bt instanceof Fr?c(null,y,u,Bt.payload,Bt.meta):c(Bt,y,u),[3,5];case 5:return it=n&&!n.dispatchConditionRejection&&c.match(ft)&&ft.meta.condition,it||h(ft),[2,ft]}})})}();return Object.assign(R,{abort:w,requestId:y,arg:u,unwrap:function(){return R.then(Il)}})}}return Object.assign(f,{pending:a,rejected:c,fulfilled:i,typePrefix:e})}return t.withTypes=function(){return t},t}();function Il(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Tl(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var dc="listener",fc="completed",pc="cancelled",ey="task-"+pc,oy="task-"+fc,ry=dc+"-"+pc,ny=dc+"-"+fc;var Zr="listenerMiddleware";var iy=qt(Zr+"/add"),ay=qt(Zr+"/removeAll"),cy=qt(Zr+"/remove");var ic,ly=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(ic||(ic=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},$l=function(t){return function(e){setTimeout(e,t)}},sy=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:$l(10);Va();window.ftReduxStores||(window.ftReduxStores={});var uc=class t{static get(e){var r;let n=typeof e=="string"?e:e.name,i=typeof e=="string"?void 0:e,a=window.ftReduxStores[n];if(Je(a))return a;if(i==null)return;let c=sc({...i,reducers:(r=i.reducers)!==null&&r!==void 0?r:{}}),s=cc({reducer:(p,f)=>f.type==="CLEAR_FT_REDUX_STORE"?c.getInitialState():typeof f.type=="string"&&f.type.startsWith("DEFAULT_VALUE_SETTER__")?{...p,...f.overwrites}:c.reducer(p,f)});return window.ftReduxStores[i.name]=new t(c,s)}constructor(e,r){this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new Lo,this.actions=new Proxy(this.reduxSlice.actions,{get:(n,i,a)=>{let c=i,s=n[c];return s?(...p)=>{let f=s(...p);return this.reduxStore.dispatch(f),f}:p=>{this.setState({[c]:p})}}})}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()}};var Ho=class{static format(e,r,n,i){return window.moment?window.moment(e).locale(r).format(this.getDateFormat(n,i)):e}static getDateFormat(e,r){return e?r?"lll":"ll":r?"L LT":"L"}};var Go=S(_()),_l="ft-app-info",Yr=class extends CustomEvent{constructor(e){super("authentication-change",{detail:e})}},kl={session:(t,e)=>{(0,Go.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>ro.eventBus.dispatchEvent(new Yr(e.payload)),0))}},ro=Go.FtReduxStore.get({name:_l,reducers:kl,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],metadataConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1}});var jo=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var s=t.length-1;s>=0;s--)(c=t[s])&&(a=(i<3?c(a):i>3?c(e,r,a):c(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a};function hc(t){class e extends t{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(ro)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}formatDateValues(n){var i,a;return((a=(i=this.metadataDescriptors.find(s=>s.key===n?.key))===null||i===void 0?void 0:i.date)!==null&&a!==void 0?a:!1)?this.formatMetadataDates(n):n}formatMetadataDates(n){return{key:n.key,label:n.label,values:n.values.map(i=>Ho.format(i,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat)),hierarchicalValues:n.hierarchicalValues}}}return jo([(0,qr.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),jo([(0,qr.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),jo([Cr({store:ro.name,selector:r=>{var n,i;return(i=(n=r.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&i!==void 0?i:[]}})],e.prototype,"metadataDescriptors",void 0),jo([Cr({store:ro.name})],e.prototype,"uiLocale",void 0),e}var Te=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var s=t.length-1;s>=0;s--)(c=t[s])&&(a=(i<3?c(a):i>3?c(e,r,a):c(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},bt=class extends hc(io){constructor(){super(...arguments),this.multiLine=!1,this.displayLabel=!1,this.editorMode=!1}render(){return wt.html`
|
|
1118
1119
|
${this.renderChip()}
|
|
1119
1120
|
${this.hideIfEmpty()}
|
|
1120
|
-
`}renderChip(){var e,r,n;let
|
|
1121
|
+
`}renderChip(){var e,r,n,i;let a=wt.html`
|
|
1121
1122
|
<ft-chip part="chip"
|
|
1122
1123
|
exportpartsPrefix="chip"
|
|
1123
1124
|
?multiLine=${this.multiLine}>
|
|
1124
1125
|
${this.displayLabel?wt.html`
|
|
1125
|
-
<span part="label">${(e=this.flatMetadata)===null||e===void 0?void 0:e.label}: </span>
|
|
1126
|
+
<span part="label">${(r=(e=this.flatMetadata)===null||e===void 0?void 0:e.label)!==null&&r!==void 0?r:this.key}: </span>
|
|
1126
1127
|
`:wt.nothing}
|
|
1127
1128
|
${this.metadataValue.length===0?wt.nothing:wt.html`
|
|
1128
1129
|
<span part="values">${this.metadataValue}</span>
|
|
1129
1130
|
`}
|
|
1130
1131
|
</ft-chip>
|
|
1131
|
-
`;return this.displayLabel&&((
|
|
1132
|
+
`;return this.displayLabel&&((n=this.flatMetadata)===null||n===void 0?void 0:n.value)==((i=this.flatMetadata)===null||i===void 0?void 0:i.displayValue)?a:wt.html`
|
|
1132
1133
|
<ft-tooltip part="tooltip" text="${this.tooltipText}">
|
|
1133
|
-
${
|
|
1134
|
+
${a}
|
|
1134
1135
|
</ft-tooltip>
|
|
1135
1136
|
`}get metadataValue(){var e;return this.flatMetadata?(e=this.flatMetadata)===null||e===void 0?void 0:e.displayValue:this.key?`no value for ${this.key}`:"no metadata selected"}hideIfEmpty(){return!this.editorMode&&!this.flatMetadata?wt.html`
|
|
1136
1137
|
<style>
|