@fluid-topics/ft-reader-topic-metadata 1.1.86 → 1.1.88

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.
@@ -14,7 +14,7 @@ export declare class FtReaderTopicMetadata extends FtReaderTopicMetadata_base im
14
14
  private flatMetadata?;
15
15
  protected render(): import("lit").TemplateResult<1>;
16
16
  private renderChip;
17
- private metadataValues;
17
+ private get metadataValue();
18
18
  private hideIfEmpty;
19
19
  private get tooltipText();
20
20
  protected update(props: PropertyValues): void;
@@ -34,7 +34,9 @@ class FtReaderTopicMetadata extends withDateFormat(FtReaderTopicComponent) {
34
34
  ${this.displayLabel ? html `
35
35
  <span part="label">${(_a = this.flatMetadata) === null || _a === void 0 ? void 0 : _a.label}: </span>
36
36
  ` : nothing}
37
- <span part="values">${this.metadataValues()}</span>
37
+ ${this.metadataValue.length === 0 ? nothing : html `
38
+ <span part="values">${this.metadataValue}</span>
39
+ `}
38
40
  </ft-chip>
39
41
  `;
40
42
  return this.displayLabel && ((_b = this.flatMetadata) === null || _b === void 0 ? void 0 : _b.value) == ((_c = this.flatMetadata) === null || _c === void 0 ? void 0 : _c.displayValue) ? chip : html `
@@ -43,16 +45,16 @@ class FtReaderTopicMetadata extends withDateFormat(FtReaderTopicComponent) {
43
45
  </ft-tooltip>
44
46
  `;
45
47
  }
46
- metadataValues() {
48
+ get metadataValue() {
47
49
  var _a;
48
50
  if (this.flatMetadata) {
49
- return html `${(_a = this.flatMetadata) === null || _a === void 0 ? void 0 : _a.displayValue}`;
51
+ return (_a = this.flatMetadata) === null || _a === void 0 ? void 0 : _a.displayValue;
50
52
  }
51
53
  if (this.key) {
52
- return html `no value for ${this.key}`;
54
+ return `no value for ${this.key}`;
53
55
  }
54
56
  else {
55
- return html `no metadata selected`;
57
+ return `no metadata selected`;
56
58
  }
57
59
  }
58
60
  hideIfEmpty() {
@@ -1,4 +1,4 @@
1
- "use strict";(()=>{var yc=Object.create;var Xr=Object.defineProperty;var gc=Object.getOwnPropertyDescriptor;var bc=Object.getOwnPropertyNames;var xc=Object.getPrototypeOf,vc=Object.prototype.hasOwnProperty;var $e=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Sc=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of bc(e))!vc.call(t,i)&&i!==r&&Xr(t,i,{get:()=>e[i],enumerable:!(n=gc(e,i))||n.enumerable});return t};var S=(t,e,r)=>(r=t!=null?yc(xc(t)):{},Sc(e||!t||!t.__esModule?Xr(r,"default",{value:t,enumerable:!0}):r,t));var _=$e((Wl,Jr)=>{Jr.exports=ftGlobals.wcUtils});var B=$e((Dl,Qr)=>{Qr.exports=ftGlobals.lit});var V=$e((zl,tn)=>{tn.exports=ftGlobals.litDecorators});var je=$e((bu,Mi)=>{Mi.exports=ftGlobals.litClassMap});var Ji=$e((Ru,Xi)=>{Xi.exports=ftGlobals.litUnsafeHTML});var mc=S(_());var bt=S(B()),Xt=S(V());var en=S(B()),Bl={},on=en.css`
1
+ "use strict";(()=>{var yc=Object.create;var Xr=Object.defineProperty;var gc=Object.getOwnPropertyDescriptor;var bc=Object.getOwnPropertyNames;var xc=Object.getPrototypeOf,vc=Object.prototype.hasOwnProperty;var $e=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Sc=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of bc(e))!vc.call(t,i)&&i!==r&&Xr(t,i,{get:()=>e[i],enumerable:!(n=gc(e,i))||n.enumerable});return t};var S=(t,e,r)=>(r=t!=null?yc(xc(t)):{},Sc(e||!t||!t.__esModule?Xr(r,"default",{value:t,enumerable:!0}):r,t));var _=$e((Wl,Jr)=>{Jr.exports=ftGlobals.wcUtils});var B=$e((Dl,Qr)=>{Qr.exports=ftGlobals.lit});var V=$e((zl,tn)=>{tn.exports=ftGlobals.litDecorators});var je=$e((bu,Mi)=>{Mi.exports=ftGlobals.litClassMap});var Ji=$e((Ru,Xi)=>{Xi.exports=ftGlobals.litUnsafeHTML});var mc=S(_());var wt=S(B()),Xt=S(V());var en=S(B()),Bl={},on=en.css`
2
2
  :host {
3
3
  display: inline-block;
4
4
  }
@@ -146,7 +146,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
146
146
  position: relative;
147
147
  word-break: break-word;
148
148
  }
149
- `;var yi=["top","right","bottom","left"],mi=["start","end"],lr=yi.reduce((t,e)=>t.concat(e,e+"-"+mi[0],e+"-"+mi[1]),[]),ze=Math.min,Ht=Math.max,Be=Math.round;var $t=t=>({x:t,y:t}),Ic={left:"right",right:"left",bottom:"top",top:"bottom"},Tc={start:"end",end:"start"};function sr(t,e,r){return Ht(t,ze(e,r))}function uo(t,e){return typeof t=="function"?t(e):t}function Se(t){return t.split("-")[0]}function Gt(t){return t.split("-")[1]}function dr(t){return t==="x"?"y":"x"}function fr(t){return t==="y"?"height":"width"}function ho(t){return["top","bottom"].includes(Se(t))?"y":"x"}function pr(t){return dr(ho(t))}function gi(t,e,r){r===void 0&&(r=!1);let n=Gt(t),i=pr(t),a=fr(i),c=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(c=cr(c)),[c,cr(c)]}function bi(t){return t.replace(/start|end/g,e=>Tc[e])}function cr(t){return t.replace(/left|right|bottom|top/g,e=>Ic[e])}function $c(t){return{top:0,right:0,bottom:0,left:0,...t}}function xi(t){return typeof t!="number"?$c(t):{top:t,right:t,bottom:t,left:t}}function oe(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function vi(t,e,r){let{reference:n,floating:i}=t,a=ho(e),c=pr(e),s=fr(c),p=Se(e),f=a==="y",u=n.x+n.width/2-i.width/2,h=n.y+n.height/2-i.height/2,m=n[s]/2-i[s]/2,g;switch(p){case"top":g={x:u,y:n.y-i.height};break;case"bottom":g={x:u,y:n.y+n.height};break;case"right":g={x:n.x+n.width,y:h};break;case"left":g={x:n.x-i.width,y:h};break;default:g={x:n.x,y:n.y}}switch(Gt(e)){case"start":g[c]-=m*(r&&f?-1:1);break;case"end":g[c]+=m*(r&&f?-1:1);break}return g}var Si=async(t,e,r)=>{let{placement:n="bottom",strategy:i="absolute",middleware:a=[],platform:c}=r,s=a.filter(Boolean),p=await(c.isRTL==null?void 0:c.isRTL(e)),f=await c.getElementRects({reference:t,floating:e,strategy:i}),{x:u,y:h}=vi(f,n,p),m=n,g={},y=0;for(let b=0;b<s.length;b++){let{name:N,fn:C}=s[b],{x:w,y:R,data:I,reset:k}=await C({x:u,y:h,initialPlacement:n,placement:m,strategy:i,middlewareData:g,rects:f,platform:c,elements:{reference:t,floating:e}});if(u=w??u,h=R??h,g={...g,[N]:{...g[N],...I}},k&&y<=50){y++,typeof k=="object"&&(k.placement&&(m=k.placement),k.rects&&(f=k.rects===!0?await c.getElementRects({reference:t,floating:e,strategy:i}):k.rects),{x:u,y:h}=vi(f,m,p)),b=-1;continue}}return{x:u,y:h,placement:m,strategy:i,middlewareData:g}};async function ur(t,e){var r;e===void 0&&(e={});let{x:n,y:i,platform:a,rects:c,elements:s,strategy:p}=t,{boundary:f="clippingAncestors",rootBoundary:u="viewport",elementContext:h="floating",altBoundary:m=!1,padding:g=0}=uo(e,t),y=xi(g),N=s[m?h==="floating"?"reference":"floating":h],C=oe(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(N)))==null||r?N:N.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:f,rootBoundary:u,strategy:p})),w=h==="floating"?{...c.floating,x:n,y:i}:c.reference,R=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),I=await(a.isElement==null?void 0:a.isElement(R))?await(a.getScale==null?void 0:a.getScale(R))||{x:1,y:1}:{x:1,y:1},k=oe(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:w,offsetParent:R,strategy:p}):w);return{top:(C.top-k.top+y.top)/I.y,bottom:(k.bottom-C.bottom+y.bottom)/I.y,left:(C.left-k.left+y.left)/I.x,right:(k.right-C.right+y.right)/I.x}}function _c(t,e,r){return(t?[...r.filter(i=>Gt(i)===t),...r.filter(i=>Gt(i)!==t)]:r.filter(i=>Se(i)===i)).filter(i=>t?Gt(i)===t||(e?bi(i)!==i:!1):!0)}var hr=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,n,i;let{rects:a,middlewareData:c,placement:s,platform:p,elements:f}=e,{crossAxis:u=!1,alignment:h,allowedPlacements:m=lr,autoAlignment:g=!0,...y}=uo(t,e),b=h!==void 0||m===lr?_c(h||null,g,m):m,N=await ur(e,y),C=((r=c.autoPlacement)==null?void 0:r.index)||0,w=b[C];if(w==null)return{};let R=gi(w,a,await(p.isRTL==null?void 0:p.isRTL(f.floating)));if(s!==w)return{reset:{placement:b[0]}};let I=[N[Se(w)],N[R[0]],N[R[1]]],k=[...((n=c.autoPlacement)==null?void 0:n.overflows)||[],{placement:w,overflows:I}],ft=b[C+1];if(ft)return{data:{index:C+1,overflows:k},reset:{placement:ft}};let zt=k.map(it=>{let pt=Gt(it.placement);return[it.placement,pt&&u?it.overflows.slice(0,2).reduce((at,Jt)=>at+Jt,0):it.overflows[0],it.overflows]}).sort((it,pt)=>it[1]-pt[1]),Bt=((i=zt.filter(it=>it[2].slice(0,Gt(it[0])?2:3).every(pt=>pt<=0))[0])==null?void 0:i[0])||zt[0][0];return Bt!==s?{data:{index:C+1,overflows:k},reset:{placement:Bt}}:{}}}};var mr=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:n,placement:i}=e,{mainAxis:a=!0,crossAxis:c=!1,limiter:s={fn:N=>{let{x:C,y:w}=N;return{x:C,y:w}}},...p}=uo(t,e),f={x:r,y:n},u=await ur(e,p),h=ho(Se(i)),m=dr(h),g=f[m],y=f[h];if(a){let N=m==="y"?"top":"left",C=m==="y"?"bottom":"right",w=g+u[N],R=g-u[C];g=sr(w,g,R)}if(c){let N=h==="y"?"top":"left",C=h==="y"?"bottom":"right",w=y+u[N],R=y-u[C];y=sr(w,y,R)}let b=s.fn({...e,[m]:g,[h]:y});return{...b,data:{x:b.x-r,y:b.y-n}}}}};function _t(t){return Ci(t)?(t.nodeName||"").toLowerCase():"#document"}function ot(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function kt(t){var e;return(e=(Ci(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Ci(t){return t instanceof Node||t instanceof ot(t).Node}function Rt(t){return t instanceof Element||t instanceof ot(t).Element}function vt(t){return t instanceof HTMLElement||t instanceof ot(t).HTMLElement}function Oi(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof ot(t).ShadowRoot}function Oe(t){let{overflow:e,overflowX:r,overflowY:n,display:i}=ct(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+r)&&!["inline","contents"].includes(i)}function wi(t){return["table","td","th"].includes(_t(t))}function yo(t){let e=go(),r=ct(t);return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!e&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!e&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function Ei(t){let e=re(t);for(;vt(e)&&!Me(e);){if(yo(e))return e;e=re(e)}return null}function go(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Me(t){return["html","body","#document"].includes(_t(t))}function ct(t){return ot(t).getComputedStyle(t)}function Ue(t){return Rt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function re(t){if(_t(t)==="html")return t;let e=t.assignedSlot||t.parentNode||Oi(t)&&t.host||kt(t);return Oi(e)?e.host:e}function Ni(t){let e=re(t);return Me(e)?t.ownerDocument?t.ownerDocument.body:t.body:vt(e)&&Oe(e)?e:Ni(e)}function mo(t,e,r){var n;e===void 0&&(e=[]),r===void 0&&(r=!0);let i=Ni(t),a=i===((n=t.ownerDocument)==null?void 0:n.body),c=ot(i);return a?e.concat(c,c.visualViewport||[],Oe(i)?i:[],c.frameElement&&r?mo(c.frameElement):[]):e.concat(i,mo(i,[],r))}function Pi(t){let e=ct(t),r=parseFloat(e.width)||0,n=parseFloat(e.height)||0,i=vt(t),a=i?t.offsetWidth:r,c=i?t.offsetHeight:n,s=Be(r)!==a||Be(n)!==c;return s&&(r=a,n=c),{width:r,height:n,$:s}}function Li(t){return Rt(t)?t:t.contextElement}function Ce(t){let e=Li(t);if(!vt(e))return $t(1);let r=e.getBoundingClientRect(),{width:n,height:i,$:a}=Pi(e),c=(a?Be(r.width):r.width)/n,s=(a?Be(r.height):r.height)/i;return(!c||!Number.isFinite(c))&&(c=1),(!s||!Number.isFinite(s))&&(s=1),{x:c,y:s}}var kc=$t(0);function Ii(t){let e=ot(t);return!go()||!e.visualViewport?kc:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Wc(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==ot(t)?!1:e}function He(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r=!1);let i=t.getBoundingClientRect(),a=Li(t),c=$t(1);e&&(n?Rt(n)&&(c=Ce(n)):c=Ce(t));let s=Wc(a,r,n)?Ii(a):$t(0),p=(i.left+s.x)/c.x,f=(i.top+s.y)/c.y,u=i.width/c.x,h=i.height/c.y;if(a){let m=ot(a),g=n&&Rt(n)?ot(n):n,y=m.frameElement;for(;y&&n&&g!==m;){let b=Ce(y),N=y.getBoundingClientRect(),C=ct(y),w=N.left+(y.clientLeft+parseFloat(C.paddingLeft))*b.x,R=N.top+(y.clientTop+parseFloat(C.paddingTop))*b.y;p*=b.x,f*=b.y,u*=b.x,h*=b.y,p+=w,f+=R,y=ot(y).frameElement}}return oe({width:u,height:h,x:p,y:f})}function Dc(t){let{rect:e,offsetParent:r,strategy:n}=t,i=vt(r),a=kt(r);if(r===a)return e;let c={scrollLeft:0,scrollTop:0},s=$t(1),p=$t(0);if((i||!i&&n!=="fixed")&&((_t(r)!=="body"||Oe(a))&&(c=Ue(r)),vt(r))){let f=He(r);s=Ce(r),p.x=f.x+r.clientLeft,p.y=f.y+r.clientTop}return{width:e.width*s.x,height:e.height*s.y,x:e.x*s.x-c.scrollLeft*s.x+p.x,y:e.y*s.y-c.scrollTop*s.y+p.y}}function zc(t){return Array.from(t.getClientRects())}function Ti(t){return He(kt(t)).left+Ue(t).scrollLeft}function Bc(t){let e=kt(t),r=Ue(t),n=t.ownerDocument.body,i=Ht(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),a=Ht(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),c=-r.scrollLeft+Ti(t),s=-r.scrollTop;return ct(n).direction==="rtl"&&(c+=Ht(e.clientWidth,n.clientWidth)-i),{width:i,height:a,x:c,y:s}}function Mc(t,e){let r=ot(t),n=kt(t),i=r.visualViewport,a=n.clientWidth,c=n.clientHeight,s=0,p=0;if(i){a=i.width,c=i.height;let f=go();(!f||f&&e==="fixed")&&(s=i.offsetLeft,p=i.offsetTop)}return{width:a,height:c,x:s,y:p}}function Uc(t,e){let r=He(t,!0,e==="fixed"),n=r.top+t.clientTop,i=r.left+t.clientLeft,a=vt(t)?Ce(t):$t(1),c=t.clientWidth*a.x,s=t.clientHeight*a.y,p=i*a.x,f=n*a.y;return{width:c,height:s,x:p,y:f}}function Ri(t,e,r){let n;if(e==="viewport")n=Mc(t,r);else if(e==="document")n=Bc(kt(t));else if(Rt(e))n=Uc(e,r);else{let i=Ii(t);n={...e,x:e.x-i.x,y:e.y-i.y}}return oe(n)}function $i(t,e){let r=re(t);return r===e||!Rt(r)||Me(r)?!1:ct(r).position==="fixed"||$i(r,e)}function Hc(t,e){let r=e.get(t);if(r)return r;let n=mo(t,[],!1).filter(s=>Rt(s)&&_t(s)!=="body"),i=null,a=ct(t).position==="fixed",c=a?re(t):t;for(;Rt(c)&&!Me(c);){let s=ct(c),p=yo(c);!p&&s.position==="fixed"&&(i=null),(a?!p&&!i:!p&&s.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Oe(c)&&!p&&$i(t,c))?n=n.filter(u=>u!==c):i=s,c=re(c)}return e.set(t,n),n}function Gc(t){let{element:e,boundary:r,rootBoundary:n,strategy:i}=t,c=[...r==="clippingAncestors"?Hc(e,this._c):[].concat(r),n],s=c[0],p=c.reduce((f,u)=>{let h=Ri(e,u,i);return f.top=Ht(h.top,f.top),f.right=ze(h.right,f.right),f.bottom=ze(h.bottom,f.bottom),f.left=Ht(h.left,f.left),f},Ri(e,s,i));return{width:p.right-p.left,height:p.bottom-p.top,x:p.left,y:p.top}}function jc(t){return Pi(t)}function Fc(t,e,r){let n=vt(e),i=kt(e),a=r==="fixed",c=He(t,!0,a,e),s={scrollLeft:0,scrollTop:0},p=$t(0);if(n||!n&&!a)if((_t(e)!=="body"||Oe(i))&&(s=Ue(e)),n){let f=He(e,!0,a,e);p.x=f.x+e.clientLeft,p.y=f.y+e.clientTop}else i&&(p.x=Ti(i));return{x:c.left+s.scrollLeft-p.x,y:c.top+s.scrollTop-p.y,width:c.width,height:c.height}}function Ai(t,e){return!vt(t)||ct(t).position==="fixed"?null:e?e(t):t.offsetParent}function _i(t,e){let r=ot(t);if(!vt(t))return r;let n=Ai(t,e);for(;n&&wi(n)&&ct(n).position==="static";)n=Ai(n,e);return n&&(_t(n)==="html"||_t(n)==="body"&&ct(n).position==="static"&&!yo(n))?r:n||Ei(t)||r}var Kc=async function(t){let{reference:e,floating:r,strategy:n}=t,i=this.getOffsetParent||_i,a=this.getDimensions;return{reference:Fc(e,await i(r),n),floating:{x:0,y:0,...await a(r)}}};function Vc(t){return ct(t).direction==="rtl"}var bo={convertOffsetParentRelativeRectToViewportRelativeRect:Dc,getDocumentElement:kt,getClippingRect:Gc,getOffsetParent:_i,getElementRects:Kc,getClientRects:zc,getDimensions:jc,getScale:Ce,isElement:Rt,isRTL:Vc};var ki=(t,e,r)=>{let n=new Map,i={platform:bo,...r},a={...i.platform,_c:n};return Si(t,e,{...i,platform:a})};function Wi(t){return Zc(t)}function yr(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Zc(t){for(let e=t;e;e=yr(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=yr(t);e;e=yr(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||r.filter!=="none"||e.tagName==="BODY"))return e}return null}async function Di(t,e,r){return ki(t,e,{platform:{...bo,getOffsetParent:n=>bo.getOffsetParent(n,Wi)},middleware:[mr({crossAxis:!0}),hr({allowedPlacements:[r]})]})}var rt=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},W=class extends Ge.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new Ge.Debouncer,this.revealDebouncer=new Ge.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return zi.html`
149
+ `;var yi=["top","right","bottom","left"],mi=["start","end"],lr=yi.reduce((t,e)=>t.concat(e,e+"-"+mi[0],e+"-"+mi[1]),[]),ze=Math.min,Ht=Math.max,Be=Math.round;var $t=t=>({x:t,y:t}),Ic={left:"right",right:"left",bottom:"top",top:"bottom"},Tc={start:"end",end:"start"};function sr(t,e,r){return Ht(t,ze(e,r))}function uo(t,e){return typeof t=="function"?t(e):t}function Se(t){return t.split("-")[0]}function Gt(t){return t.split("-")[1]}function dr(t){return t==="x"?"y":"x"}function fr(t){return t==="y"?"height":"width"}function ho(t){return["top","bottom"].includes(Se(t))?"y":"x"}function pr(t){return dr(ho(t))}function gi(t,e,r){r===void 0&&(r=!1);let n=Gt(t),i=pr(t),a=fr(i),c=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(c=cr(c)),[c,cr(c)]}function bi(t){return t.replace(/start|end/g,e=>Tc[e])}function cr(t){return t.replace(/left|right|bottom|top/g,e=>Ic[e])}function $c(t){return{top:0,right:0,bottom:0,left:0,...t}}function xi(t){return typeof t!="number"?$c(t):{top:t,right:t,bottom:t,left:t}}function oe(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function vi(t,e,r){let{reference:n,floating:i}=t,a=ho(e),c=pr(e),s=fr(c),p=Se(e),f=a==="y",u=n.x+n.width/2-i.width/2,h=n.y+n.height/2-i.height/2,m=n[s]/2-i[s]/2,g;switch(p){case"top":g={x:u,y:n.y-i.height};break;case"bottom":g={x:u,y:n.y+n.height};break;case"right":g={x:n.x+n.width,y:h};break;case"left":g={x:n.x-i.width,y:h};break;default:g={x:n.x,y:n.y}}switch(Gt(e)){case"start":g[c]-=m*(r&&f?-1:1);break;case"end":g[c]+=m*(r&&f?-1:1);break}return g}var Si=async(t,e,r)=>{let{placement:n="bottom",strategy:i="absolute",middleware:a=[],platform:c}=r,s=a.filter(Boolean),p=await(c.isRTL==null?void 0:c.isRTL(e)),f=await c.getElementRects({reference:t,floating:e,strategy:i}),{x:u,y:h}=vi(f,n,p),m=n,g={},y=0;for(let b=0;b<s.length;b++){let{name:N,fn:C}=s[b],{x:w,y:R,data:I,reset:k}=await C({x:u,y:h,initialPlacement:n,placement:m,strategy:i,middlewareData:g,rects:f,platform:c,elements:{reference:t,floating:e}});if(u=w??u,h=R??h,g={...g,[N]:{...g[N],...I}},k&&y<=50){y++,typeof k=="object"&&(k.placement&&(m=k.placement),k.rects&&(f=k.rects===!0?await c.getElementRects({reference:t,floating:e,strategy:i}):k.rects),{x:u,y:h}=vi(f,m,p)),b=-1;continue}}return{x:u,y:h,placement:m,strategy:i,middlewareData:g}};async function ur(t,e){var r;e===void 0&&(e={});let{x:n,y:i,platform:a,rects:c,elements:s,strategy:p}=t,{boundary:f="clippingAncestors",rootBoundary:u="viewport",elementContext:h="floating",altBoundary:m=!1,padding:g=0}=uo(e,t),y=xi(g),N=s[m?h==="floating"?"reference":"floating":h],C=oe(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(N)))==null||r?N:N.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:f,rootBoundary:u,strategy:p})),w=h==="floating"?{...c.floating,x:n,y:i}:c.reference,R=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),I=await(a.isElement==null?void 0:a.isElement(R))?await(a.getScale==null?void 0:a.getScale(R))||{x:1,y:1}:{x:1,y:1},k=oe(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:w,offsetParent:R,strategy:p}):w);return{top:(C.top-k.top+y.top)/I.y,bottom:(k.bottom-C.bottom+y.bottom)/I.y,left:(C.left-k.left+y.left)/I.x,right:(k.right-C.right+y.right)/I.x}}function _c(t,e,r){return(t?[...r.filter(i=>Gt(i)===t),...r.filter(i=>Gt(i)!==t)]:r.filter(i=>Se(i)===i)).filter(i=>t?Gt(i)===t||(e?bi(i)!==i:!1):!0)}var hr=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,n,i;let{rects:a,middlewareData:c,placement:s,platform:p,elements:f}=e,{crossAxis:u=!1,alignment:h,allowedPlacements:m=lr,autoAlignment:g=!0,...y}=uo(t,e),b=h!==void 0||m===lr?_c(h||null,g,m):m,N=await ur(e,y),C=((r=c.autoPlacement)==null?void 0:r.index)||0,w=b[C];if(w==null)return{};let R=gi(w,a,await(p.isRTL==null?void 0:p.isRTL(f.floating)));if(s!==w)return{reset:{placement:b[0]}};let I=[N[Se(w)],N[R[0]],N[R[1]]],k=[...((n=c.autoPlacement)==null?void 0:n.overflows)||[],{placement:w,overflows:I}],ft=b[C+1];if(ft)return{data:{index:C+1,overflows:k},reset:{placement:ft}};let zt=k.map(it=>{let pt=Gt(it.placement);return[it.placement,pt&&u?it.overflows.slice(0,2).reduce((at,Jt)=>at+Jt,0):it.overflows[0],it.overflows]}).sort((it,pt)=>it[1]-pt[1]),Bt=((i=zt.filter(it=>it[2].slice(0,Gt(it[0])?2:3).every(pt=>pt<=0))[0])==null?void 0:i[0])||zt[0][0];return Bt!==s?{data:{index:C+1,overflows:k},reset:{placement:Bt}}:{}}}};var mr=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:n,placement:i}=e,{mainAxis:a=!0,crossAxis:c=!1,limiter:s={fn:N=>{let{x:C,y:w}=N;return{x:C,y:w}}},...p}=uo(t,e),f={x:r,y:n},u=await ur(e,p),h=ho(Se(i)),m=dr(h),g=f[m],y=f[h];if(a){let N=m==="y"?"top":"left",C=m==="y"?"bottom":"right",w=g+u[N],R=g-u[C];g=sr(w,g,R)}if(c){let N=h==="y"?"top":"left",C=h==="y"?"bottom":"right",w=y+u[N],R=y-u[C];y=sr(w,y,R)}let b=s.fn({...e,[m]:g,[h]:y});return{...b,data:{x:b.x-r,y:b.y-n}}}}};function _t(t){return Ci(t)?(t.nodeName||"").toLowerCase():"#document"}function ot(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function kt(t){var e;return(e=(Ci(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Ci(t){return t instanceof Node||t instanceof ot(t).Node}function Rt(t){return t instanceof Element||t instanceof ot(t).Element}function xt(t){return t instanceof HTMLElement||t instanceof ot(t).HTMLElement}function Oi(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof ot(t).ShadowRoot}function Oe(t){let{overflow:e,overflowX:r,overflowY:n,display:i}=ct(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+r)&&!["inline","contents"].includes(i)}function wi(t){return["table","td","th"].includes(_t(t))}function yo(t){let e=go(),r=ct(t);return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!e&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!e&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function Ei(t){let e=re(t);for(;xt(e)&&!Me(e);){if(yo(e))return e;e=re(e)}return null}function go(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Me(t){return["html","body","#document"].includes(_t(t))}function ct(t){return ot(t).getComputedStyle(t)}function Ue(t){return Rt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function re(t){if(_t(t)==="html")return t;let e=t.assignedSlot||t.parentNode||Oi(t)&&t.host||kt(t);return Oi(e)?e.host:e}function Ni(t){let e=re(t);return Me(e)?t.ownerDocument?t.ownerDocument.body:t.body:xt(e)&&Oe(e)?e:Ni(e)}function mo(t,e,r){var n;e===void 0&&(e=[]),r===void 0&&(r=!0);let i=Ni(t),a=i===((n=t.ownerDocument)==null?void 0:n.body),c=ot(i);return a?e.concat(c,c.visualViewport||[],Oe(i)?i:[],c.frameElement&&r?mo(c.frameElement):[]):e.concat(i,mo(i,[],r))}function Pi(t){let e=ct(t),r=parseFloat(e.width)||0,n=parseFloat(e.height)||0,i=xt(t),a=i?t.offsetWidth:r,c=i?t.offsetHeight:n,s=Be(r)!==a||Be(n)!==c;return s&&(r=a,n=c),{width:r,height:n,$:s}}function Li(t){return Rt(t)?t:t.contextElement}function Ce(t){let e=Li(t);if(!xt(e))return $t(1);let r=e.getBoundingClientRect(),{width:n,height:i,$:a}=Pi(e),c=(a?Be(r.width):r.width)/n,s=(a?Be(r.height):r.height)/i;return(!c||!Number.isFinite(c))&&(c=1),(!s||!Number.isFinite(s))&&(s=1),{x:c,y:s}}var kc=$t(0);function Ii(t){let e=ot(t);return!go()||!e.visualViewport?kc:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Wc(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==ot(t)?!1:e}function He(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r=!1);let i=t.getBoundingClientRect(),a=Li(t),c=$t(1);e&&(n?Rt(n)&&(c=Ce(n)):c=Ce(t));let s=Wc(a,r,n)?Ii(a):$t(0),p=(i.left+s.x)/c.x,f=(i.top+s.y)/c.y,u=i.width/c.x,h=i.height/c.y;if(a){let m=ot(a),g=n&&Rt(n)?ot(n):n,y=m.frameElement;for(;y&&n&&g!==m;){let b=Ce(y),N=y.getBoundingClientRect(),C=ct(y),w=N.left+(y.clientLeft+parseFloat(C.paddingLeft))*b.x,R=N.top+(y.clientTop+parseFloat(C.paddingTop))*b.y;p*=b.x,f*=b.y,u*=b.x,h*=b.y,p+=w,f+=R,y=ot(y).frameElement}}return oe({width:u,height:h,x:p,y:f})}function Dc(t){let{rect:e,offsetParent:r,strategy:n}=t,i=xt(r),a=kt(r);if(r===a)return e;let c={scrollLeft:0,scrollTop:0},s=$t(1),p=$t(0);if((i||!i&&n!=="fixed")&&((_t(r)!=="body"||Oe(a))&&(c=Ue(r)),xt(r))){let f=He(r);s=Ce(r),p.x=f.x+r.clientLeft,p.y=f.y+r.clientTop}return{width:e.width*s.x,height:e.height*s.y,x:e.x*s.x-c.scrollLeft*s.x+p.x,y:e.y*s.y-c.scrollTop*s.y+p.y}}function zc(t){return Array.from(t.getClientRects())}function Ti(t){return He(kt(t)).left+Ue(t).scrollLeft}function Bc(t){let e=kt(t),r=Ue(t),n=t.ownerDocument.body,i=Ht(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),a=Ht(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),c=-r.scrollLeft+Ti(t),s=-r.scrollTop;return ct(n).direction==="rtl"&&(c+=Ht(e.clientWidth,n.clientWidth)-i),{width:i,height:a,x:c,y:s}}function Mc(t,e){let r=ot(t),n=kt(t),i=r.visualViewport,a=n.clientWidth,c=n.clientHeight,s=0,p=0;if(i){a=i.width,c=i.height;let f=go();(!f||f&&e==="fixed")&&(s=i.offsetLeft,p=i.offsetTop)}return{width:a,height:c,x:s,y:p}}function Uc(t,e){let r=He(t,!0,e==="fixed"),n=r.top+t.clientTop,i=r.left+t.clientLeft,a=xt(t)?Ce(t):$t(1),c=t.clientWidth*a.x,s=t.clientHeight*a.y,p=i*a.x,f=n*a.y;return{width:c,height:s,x:p,y:f}}function Ri(t,e,r){let n;if(e==="viewport")n=Mc(t,r);else if(e==="document")n=Bc(kt(t));else if(Rt(e))n=Uc(e,r);else{let i=Ii(t);n={...e,x:e.x-i.x,y:e.y-i.y}}return oe(n)}function $i(t,e){let r=re(t);return r===e||!Rt(r)||Me(r)?!1:ct(r).position==="fixed"||$i(r,e)}function Hc(t,e){let r=e.get(t);if(r)return r;let n=mo(t,[],!1).filter(s=>Rt(s)&&_t(s)!=="body"),i=null,a=ct(t).position==="fixed",c=a?re(t):t;for(;Rt(c)&&!Me(c);){let s=ct(c),p=yo(c);!p&&s.position==="fixed"&&(i=null),(a?!p&&!i:!p&&s.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Oe(c)&&!p&&$i(t,c))?n=n.filter(u=>u!==c):i=s,c=re(c)}return e.set(t,n),n}function Gc(t){let{element:e,boundary:r,rootBoundary:n,strategy:i}=t,c=[...r==="clippingAncestors"?Hc(e,this._c):[].concat(r),n],s=c[0],p=c.reduce((f,u)=>{let h=Ri(e,u,i);return f.top=Ht(h.top,f.top),f.right=ze(h.right,f.right),f.bottom=ze(h.bottom,f.bottom),f.left=Ht(h.left,f.left),f},Ri(e,s,i));return{width:p.right-p.left,height:p.bottom-p.top,x:p.left,y:p.top}}function jc(t){return Pi(t)}function Fc(t,e,r){let n=xt(e),i=kt(e),a=r==="fixed",c=He(t,!0,a,e),s={scrollLeft:0,scrollTop:0},p=$t(0);if(n||!n&&!a)if((_t(e)!=="body"||Oe(i))&&(s=Ue(e)),n){let f=He(e,!0,a,e);p.x=f.x+e.clientLeft,p.y=f.y+e.clientTop}else i&&(p.x=Ti(i));return{x:c.left+s.scrollLeft-p.x,y:c.top+s.scrollTop-p.y,width:c.width,height:c.height}}function Ai(t,e){return!xt(t)||ct(t).position==="fixed"?null:e?e(t):t.offsetParent}function _i(t,e){let r=ot(t);if(!xt(t))return r;let n=Ai(t,e);for(;n&&wi(n)&&ct(n).position==="static";)n=Ai(n,e);return n&&(_t(n)==="html"||_t(n)==="body"&&ct(n).position==="static"&&!yo(n))?r:n||Ei(t)||r}var Kc=async function(t){let{reference:e,floating:r,strategy:n}=t,i=this.getOffsetParent||_i,a=this.getDimensions;return{reference:Fc(e,await i(r),n),floating:{x:0,y:0,...await a(r)}}};function Vc(t){return ct(t).direction==="rtl"}var bo={convertOffsetParentRelativeRectToViewportRelativeRect:Dc,getDocumentElement:kt,getClippingRect:Gc,getOffsetParent:_i,getElementRects:Kc,getClientRects:zc,getDimensions:jc,getScale:Ce,isElement:Rt,isRTL:Vc};var ki=(t,e,r)=>{let n=new Map,i={platform:bo,...r},a={...i.platform,_c:n};return Si(t,e,{...i,platform:a})};function Wi(t){return Zc(t)}function yr(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Zc(t){for(let e=t;e;e=yr(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=yr(t);e;e=yr(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||r.filter!=="none"||e.tagName==="BODY"))return e}return null}async function Di(t,e,r){return ki(t,e,{platform:{...bo,getOffsetParent:n=>bo.getOffsetParent(n,Wi)},middleware:[mr({crossAxis:!0}),hr({allowedPlacements:[r]})]})}var rt=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},W=class extends Ge.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new Ge.Debouncer,this.revealDebouncer=new Ge.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return zi.html`
150
150
  <div part="container"
151
151
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
152
152
  @mouseenter=${this.onHover}
@@ -287,7 +287,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
287
287
  <div class="ft-ripple--background"></div>
288
288
  <div class="ft-ripple--effect"></div>
289
289
  </div>
290
- `}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var r,n;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(n=this.target)===null||n===void 0||n.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var e,r;let n=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;n&&this.setupFor((r=this.target)!==null&&r!==void 0?r:n)}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let r=(...s)=>p=>{s.forEach(f=>window.addEventListener(f,this.endPress,{once:!0})),this.startPress(p)},n=r("mouseup","contextmenu"),i=r("touchend","touchcancel"),a=s=>{["Enter"," "].includes(s.key)&&r("keyup")(s)},c={passive:!0};e.addEventListener("mouseover",this.startHover,c),e.addEventListener("mousemove",this.moveRipple,c),e.addEventListener("mouseleave",this.endHover,c),e.addEventListener("mousedown",n,c),e.addEventListener("touchstart",i,c),e.addEventListener("touchmove",this.moveRipple,c),e.addEventListener("keydown",a,c),e.addEventListener("focus",this.startFocus,c),e.addEventListener("blur",this.endFocus,c),e.addEventListener("focusin",this.startFocus,c),e.addEventListener("focusout",this.endFocus,c),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,c),e.removeEventListener("mousemove",this.moveRipple,c),e.removeEventListener("mouseleave",this.endHover,c),e.removeEventListener("mousedown",n,c),e.removeEventListener("touchstart",i,c),e.removeEventListener("touchmove",this.moveRipple,c),e.removeEventListener("keydown",a,c),e.removeEventListener("focus",this.startFocus,c),e.removeEventListener("blur",this.endFocus,c),e.removeEventListener("focusin",this.startFocus,c),e.removeEventListener("focusout",this.endFocus,c),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let r=e,n=e,i,a;return r.x!=null?{x:i,y:a}=r:n.touches!=null&&(i=n.touches[0].clientX,a=n.touches[0].clientY),{x:i,y:a}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let r of e.composedPath()){if(r===this.target)break;if("hasAttribute"in r&&r.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};D.elementDefinitions={};D.styles=Vi;nt([(0,Z.property)({type:Boolean})],D.prototype,"primary",void 0);nt([(0,Z.property)({type:Boolean})],D.prototype,"secondary",void 0);nt([(0,Z.property)({type:Boolean})],D.prototype,"unbounded",void 0);nt([(0,Z.property)({type:Boolean})],D.prototype,"activated",void 0);nt([(0,Z.property)({type:Boolean})],D.prototype,"selected",void 0);nt([(0,Z.property)({type:Boolean})],D.prototype,"disabled",void 0);nt([(0,Z.state)()],D.prototype,"hovered",void 0);nt([(0,Z.state)()],D.prototype,"focused",void 0);nt([(0,Z.state)()],D.prototype,"pressed",void 0);nt([(0,Z.state)()],D.prototype,"rippling",void 0);nt([(0,Z.state)()],D.prototype,"originX",void 0);nt([(0,Z.state)()],D.prototype,"originY",void 0);nt([(0,Z.query)(".ft-ripple")],D.prototype,"ripple",void 0);nt([(0,Z.query)(".ft-ripple--effect")],D.prototype,"rippleEffect",void 0);(0,qi.customElement)("ft-ripple")(D);var ra=S(_());var Ke=S(B()),ne=S(V()),ea=S(_()),oa=S(Ji());var we;(function(t){t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.BOOKS="&#xe806;",t.MENU="&#xe807;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.HOME="&#xe80b;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.EXPORT="&#xe80f;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.USER="&#xe813;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.OFFLINE="&#xe816;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.STAR_PLAIN="&#xe900;",t.TOPICS="&#xe901;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN="&#xe90f;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_THEME="&#xe911;",t.ADMIN_USERS="&#xe912;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.INFO="&#xe919;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.THIN_ARROW="&#xe921;",t.SIGN_IN="&#xe922;",t.LOGOUT="&#xe923;",t.TRANSLATE="&#xe924;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.ARTICLE="&#xe927;",t.COLUMNS="&#xe928;",t.ANALYTICS="&#xe929;",t.COLLECTIONS="&#xe92a;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.COPY_TO_CLIPBOARD="&#xe930;",t.SHARED_PBK="&#xe931;",t.ATTACHMENTS="&#xe932;",t.STRIPE_ARROW_LEFT="&#xe933;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.FILTERS="&#xe935;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.SAVE="&#xe93a;",t.LOCKER="&#xe93b;",t.ADMIN_INTEGRATION="&#xe93c;",t.SYNC="&#xe93d;",t.TAG="&#xe93e;",t.BOOK_PLAIN="&#xe93f;",t.UPLOAD="&#xe940;",t.ONLINE="&#xe941;",t.TAG_PLAIN="&#xe942;",t.ACCOUNT_SETTINGS="&#xe943;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.SHORTCUT_MENU="&#xe946;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.ADMIN_PORTAL="&#xe94b;",t.STAR="&#xe94c;",t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.FEEDBACK_PLAIN="&#xe951;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_COLLECTIONS="&#xe955;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.RESET="&#xe958;",t.MY_LIBRARY="&#xe959;",t.UNSTRUCTURED_DOC="&#xe95a;",t.CONTEXTUAL="&#xe95b;",t.THIN_ARROW_UP="&#xe95c;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.DESKTOP="&#xe95e;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.CHART_BAR_STACKED="&#xe96e;",t.CHART_BAR_GROUPED="&#xe96f;",t.EYE_SLASH="&#xe970;",t.X_MARK="&#xe971;",t.EXPAND_WIDE="&#xe972;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.EXTLINK_LIGHT="&#xe978;",t.CLONE="&#xe979;",t.CLONE_LINK_SIMPLE="&#xe97a;",t.CHART_BAR_NORMALIZED="&#xe97b;",t.CONSUMER="&#xe97c;",t.OCTAGON_XMARK="&#xe97d;",t.HOURGLASS_HALF="&#xe97e;",t.CLOCK="&#xe97f;",t.CLOCK_THREE="&#xe97f;",t.CALENDAR_DAY="&#xe980;",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",t.WAND_MAGIC_SPARKLES="&#xe982;",t.PAPER_PLANE="&#xe983;",t.CIRCLE_STOP="&#xe984;",t.ARROW_ROTATE_RIGHT="&#xe985;",t.ARROWS_ROTATE="&#xe986;",t.ALIGN_RIGHT="&#xe987;",t.FORMAT_CLEAR="&#xe988;",t.ALIGN_CENTER="&#xe989;",t.ALIGN_LEFT="&#xe98a;",t.PALETTE="&#xe98b;",t.BOLD="&#xe98c;",t.ITALIC="&#xe98d;",t.UNDERLINE="&#xe98e;",t.STRIKETHROUGH="&#xe98f;",t.LINK_SIMPLE_SLASH="&#xe990;",t.LINK_SIMPLE="&#xe991;",t.ROUTE="&#xe992;",t.CIRCLE_USER_SLASH="&#xe993;",t.CIRCLE_USER_CHECK="&#xe994;",t.EYE="&#xf06e;",t.SHARE="&#xe80f1;"})(we||(we={}));var v;(function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"})(v||(v={}));var Au=new Map([...["abw"].map(t=>[t,v.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(t=>[t,v.AUDIO]),...["avi"].map(t=>[t,v.AVI]),...["chm","xhs"].map(t=>[t,v.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(t=>[t,v.CODE]),...["csv"].map(t=>[t,v.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,v.DITA]),...["epub"].map(t=>[t,v.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,v.EXCEL]),...["flac"].map(t=>[t,v.FLAC]),...["gif"].map(t=>[t,v.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,v.GZIP]),...["html","htm","xhtml"].map(t=>[t,v.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(t=>[t,v.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,v.JPEG]),...["json"].map(t=>[t,v.JSON]),...["m4a","m4p"].map(t=>[t,v.M4A]),...["mov","qt"].map(t=>[t,v.MOV]),...["mp3"].map(t=>[t,v.MP3]),...["mp4","m4v"].map(t=>[t,v.MP4]),...["ogg","oga"].map(t=>[t,v.OGG]),...["pdf","ps"].map(t=>[t,v.PDF]),...["png"].map(t=>[t,v.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,v.POWERPOINT]),...["rar"].map(t=>[t,v.RAR]),...["stp"].map(t=>[t,v.STP]),...["txt","rtf","md","mdown"].map(t=>[t,v.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(t=>[t,v.VIDEO]),...["wav"].map(t=>[t,v.WAV]),...["wma"].map(t=>[t,v.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,v.WORD]),...["xml","xsl","rdf"].map(t=>[t,v.XML]),...["yaml","yml","x-yaml"].map(t=>[t,v.YAML]),...["zip"].map(t=>[t,v.ZIP])]);var Pu={[v.ABW]:"#91ABC6",[v.AUDIO]:"#1795E3",[v.AVI]:"#E63324",[v.CHM]:"#71C3EB",[v.CODE]:"#71C3EB",[v.CSV]:"#1F7345",[v.DITA]:"#71C3EB",[v.EPUB]:"#85B926",[v.EXCEL]:"#1F7345",[v.FLAC]:"#1795E3",[v.GIF]:"#59B031",[v.GZIP]:"#F8AB36",[v.HTML]:"#71C3EB",[v.IMAGE]:"#59B031",[v.JPEG]:"#59B031",[v.JSON]:"#71C3EB",[v.M4A]:"#1795E3",[v.MOV]:"#E63324",[v.MP3]:"#1795E3",[v.MP4]:"#E63324",[v.OGG]:"#1795E3",[v.PDF]:"#E44948",[v.PNG]:"#59B031",[v.POWERPOINT]:"#B54A2B",[v.RAR]:"#F8AB36",[v.STP]:"#3764B1",[v.TEXT]:"#3162AB",[v.UNKNOWN]:"#999999",[v.VIDEO]:"#E63324",[v.WAV]:"#1795E3",[v.WMA]:"#1795E3",[v.WORD]:"#3162AB",[v.XML]:"#71C3EB",[v.YAML]:"#71C3EB",[v.ZIP]:"#F8AB36"};var Qi=S(B()),Wt=S(_()),G={size:Wt.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:Wt.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",Wt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:Wt.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",Wt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:Wt.FtCssVariableFactory.extend("--ft-icon-material-font-family","",Wt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:Wt.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},ta=Qi.css`
290
+ `}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var r,n;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(n=this.target)===null||n===void 0||n.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var e,r;let n=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;n&&this.setupFor((r=this.target)!==null&&r!==void 0?r:n)}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let r=(...s)=>p=>{s.forEach(f=>window.addEventListener(f,this.endPress,{once:!0})),this.startPress(p)},n=r("mouseup","contextmenu"),i=r("touchend","touchcancel"),a=s=>{["Enter"," "].includes(s.key)&&r("keyup")(s)},c={passive:!0};e.addEventListener("mouseover",this.startHover,c),e.addEventListener("mousemove",this.moveRipple,c),e.addEventListener("mouseleave",this.endHover,c),e.addEventListener("mousedown",n,c),e.addEventListener("touchstart",i,c),e.addEventListener("touchmove",this.moveRipple,c),e.addEventListener("keydown",a,c),e.addEventListener("focus",this.startFocus,c),e.addEventListener("blur",this.endFocus,c),e.addEventListener("focusin",this.startFocus,c),e.addEventListener("focusout",this.endFocus,c),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,c),e.removeEventListener("mousemove",this.moveRipple,c),e.removeEventListener("mouseleave",this.endHover,c),e.removeEventListener("mousedown",n,c),e.removeEventListener("touchstart",i,c),e.removeEventListener("touchmove",this.moveRipple,c),e.removeEventListener("keydown",a,c),e.removeEventListener("focus",this.startFocus,c),e.removeEventListener("blur",this.endFocus,c),e.removeEventListener("focusin",this.startFocus,c),e.removeEventListener("focusout",this.endFocus,c),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let r=e,n=e,i,a;return r.x!=null?{x:i,y:a}=r:n.touches!=null&&(i=n.touches[0].clientX,a=n.touches[0].clientY),{x:i,y:a}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let r of e.composedPath()){if(r===this.target)break;if("hasAttribute"in r&&r.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};D.elementDefinitions={};D.styles=Vi;nt([(0,Z.property)({type:Boolean})],D.prototype,"primary",void 0);nt([(0,Z.property)({type:Boolean})],D.prototype,"secondary",void 0);nt([(0,Z.property)({type:Boolean})],D.prototype,"unbounded",void 0);nt([(0,Z.property)({type:Boolean})],D.prototype,"activated",void 0);nt([(0,Z.property)({type:Boolean})],D.prototype,"selected",void 0);nt([(0,Z.property)({type:Boolean})],D.prototype,"disabled",void 0);nt([(0,Z.state)()],D.prototype,"hovered",void 0);nt([(0,Z.state)()],D.prototype,"focused",void 0);nt([(0,Z.state)()],D.prototype,"pressed",void 0);nt([(0,Z.state)()],D.prototype,"rippling",void 0);nt([(0,Z.state)()],D.prototype,"originX",void 0);nt([(0,Z.state)()],D.prototype,"originY",void 0);nt([(0,Z.query)(".ft-ripple")],D.prototype,"ripple",void 0);nt([(0,Z.query)(".ft-ripple--effect")],D.prototype,"rippleEffect",void 0);(0,qi.customElement)("ft-ripple")(D);var ra=S(_());var Ke=S(B()),ne=S(V()),ea=S(_()),oa=S(Ji());var we;(function(t){t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.BOOKS="&#xe806;",t.MENU="&#xe807;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.HOME="&#xe80b;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.EXPORT="&#xe80f;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.USER="&#xe813;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.OFFLINE="&#xe816;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.STAR_PLAIN="&#xe900;",t.TOPICS="&#xe901;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN="&#xe90f;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_THEME="&#xe911;",t.ADMIN_USERS="&#xe912;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.INFO="&#xe919;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.THIN_ARROW="&#xe921;",t.SIGN_IN="&#xe922;",t.LOGOUT="&#xe923;",t.TRANSLATE="&#xe924;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.ARTICLE="&#xe927;",t.COLUMNS="&#xe928;",t.ANALYTICS="&#xe929;",t.COLLECTIONS="&#xe92a;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.COPY_TO_CLIPBOARD="&#xe930;",t.SHARED_PBK="&#xe931;",t.ATTACHMENTS="&#xe932;",t.STRIPE_ARROW_LEFT="&#xe933;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.FILTERS="&#xe935;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.SAVE="&#xe93a;",t.LOCKER="&#xe93b;",t.ADMIN_INTEGRATION="&#xe93c;",t.SYNC="&#xe93d;",t.TAG="&#xe93e;",t.BOOK_PLAIN="&#xe93f;",t.UPLOAD="&#xe940;",t.ONLINE="&#xe941;",t.TAG_PLAIN="&#xe942;",t.ACCOUNT_SETTINGS="&#xe943;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.SHORTCUT_MENU="&#xe946;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.ADMIN_PORTAL="&#xe94b;",t.STAR="&#xe94c;",t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.FEEDBACK_PLAIN="&#xe951;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_COLLECTIONS="&#xe955;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.RESET="&#xe958;",t.MY_LIBRARY="&#xe959;",t.UNSTRUCTURED_DOC="&#xe95a;",t.CONTEXTUAL="&#xe95b;",t.THIN_ARROW_UP="&#xe95c;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.DESKTOP="&#xe95e;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.CHART_BAR_STACKED="&#xe96e;",t.CHART_BAR_GROUPED="&#xe96f;",t.EYE_SLASH="&#xe970;",t.X_MARK="&#xe971;",t.EXPAND_WIDE="&#xe972;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.EXTLINK_LIGHT="&#xe978;",t.CLONE="&#xe979;",t.CLONE_LINK_SIMPLE="&#xe97a;",t.CHART_BAR_NORMALIZED="&#xe97b;",t.CONSUMER="&#xe97c;",t.OCTAGON_XMARK="&#xe97d;",t.HOURGLASS_HALF="&#xe97e;",t.CLOCK="&#xe97f;",t.CLOCK_THREE="&#xe97f;",t.CALENDAR_DAY="&#xe980;",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",t.WAND_MAGIC_SPARKLES="&#xe982;",t.PAPER_PLANE="&#xe983;",t.CIRCLE_STOP="&#xe984;",t.ARROW_ROTATE_RIGHT="&#xe985;",t.ARROWS_ROTATE="&#xe986;",t.ALIGN_RIGHT="&#xe987;",t.FORMAT_CLEAR="&#xe988;",t.ALIGN_CENTER="&#xe989;",t.ALIGN_LEFT="&#xe98a;",t.PALETTE="&#xe98b;",t.BOLD="&#xe98c;",t.ITALIC="&#xe98d;",t.UNDERLINE="&#xe98e;",t.STRIKETHROUGH="&#xe98f;",t.LINK_SIMPLE_SLASH="&#xe990;",t.LINK_SIMPLE="&#xe991;",t.ROUTE="&#xe992;",t.CIRCLE_USER_SLASH="&#xe993;",t.CIRCLE_USER_CHECK="&#xe994;",t.LIST_MAGNIFYING_GLASS="&#xe995;",t.MEDAL="&#xe996;",t.EYE="&#xf06e;",t.SHARE="&#xe80f1;"})(we||(we={}));var v;(function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"})(v||(v={}));var Au=new Map([...["abw"].map(t=>[t,v.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(t=>[t,v.AUDIO]),...["avi"].map(t=>[t,v.AVI]),...["chm","xhs"].map(t=>[t,v.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(t=>[t,v.CODE]),...["csv"].map(t=>[t,v.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,v.DITA]),...["epub"].map(t=>[t,v.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,v.EXCEL]),...["flac"].map(t=>[t,v.FLAC]),...["gif"].map(t=>[t,v.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,v.GZIP]),...["html","htm","xhtml"].map(t=>[t,v.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(t=>[t,v.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,v.JPEG]),...["json"].map(t=>[t,v.JSON]),...["m4a","m4p"].map(t=>[t,v.M4A]),...["mov","qt"].map(t=>[t,v.MOV]),...["mp3"].map(t=>[t,v.MP3]),...["mp4","m4v"].map(t=>[t,v.MP4]),...["ogg","oga"].map(t=>[t,v.OGG]),...["pdf","ps"].map(t=>[t,v.PDF]),...["png"].map(t=>[t,v.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,v.POWERPOINT]),...["rar"].map(t=>[t,v.RAR]),...["stp"].map(t=>[t,v.STP]),...["txt","rtf","md","mdown"].map(t=>[t,v.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(t=>[t,v.VIDEO]),...["wav"].map(t=>[t,v.WAV]),...["wma"].map(t=>[t,v.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,v.WORD]),...["xml","xsl","rdf"].map(t=>[t,v.XML]),...["yaml","yml","x-yaml"].map(t=>[t,v.YAML]),...["zip"].map(t=>[t,v.ZIP])]);var Pu={[v.ABW]:"#91ABC6",[v.AUDIO]:"#1795E3",[v.AVI]:"#E63324",[v.CHM]:"#71C3EB",[v.CODE]:"#71C3EB",[v.CSV]:"#1F7345",[v.DITA]:"#71C3EB",[v.EPUB]:"#85B926",[v.EXCEL]:"#1F7345",[v.FLAC]:"#1795E3",[v.GIF]:"#59B031",[v.GZIP]:"#F8AB36",[v.HTML]:"#71C3EB",[v.IMAGE]:"#59B031",[v.JPEG]:"#59B031",[v.JSON]:"#71C3EB",[v.M4A]:"#1795E3",[v.MOV]:"#E63324",[v.MP3]:"#1795E3",[v.MP4]:"#E63324",[v.OGG]:"#1795E3",[v.PDF]:"#E44948",[v.PNG]:"#59B031",[v.POWERPOINT]:"#B54A2B",[v.RAR]:"#F8AB36",[v.STP]:"#3764B1",[v.TEXT]:"#3162AB",[v.UNKNOWN]:"#999999",[v.VIDEO]:"#E63324",[v.WAV]:"#1795E3",[v.WMA]:"#1795E3",[v.WORD]:"#3162AB",[v.XML]:"#71C3EB",[v.YAML]:"#71C3EB",[v.ZIP]:"#F8AB36"};var Qi=S(B()),Wt=S(_()),G={size:Wt.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:Wt.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",Wt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:Wt.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",Wt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:Wt.FtCssVariableFactory.extend("--ft-icon-material-font-family","",Wt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:Wt.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},ta=Qi.css`
291
291
  :host, i.ft-icon {
292
292
  display: inline-flex;
293
293
  align-items: center;
@@ -578,7 +578,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
578
578
  <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
579
579
  `:Ee.html`
580
580
  <slot part="icon" name="icon"></slot>
581
- `}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(e){return e instanceof HTMLSlotElement?e.assignedNodes().map(r=>this.unslotText(r)).join(""):e?.textContent||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};j.elementDefinitions={"ft-ripple":D,"ft-tooltip":W,"ft-typography":J,"ft-icon":Y,"ft-loader":ie};lt([(0,tt.property)({type:String,reflect:!0})],j.prototype,"role",void 0);lt([(0,tt.property)()],j.prototype,"type",void 0);lt([(0,tt.property)({type:Boolean})],j.prototype,"disabled",void 0);lt([(0,tt.property)()],j.prototype,"label",void 0);lt([(0,tt.property)()],j.prototype,"icon",void 0);lt([(0,tt.property)()],j.prototype,"iconVariant",void 0);lt([(0,tt.property)({type:Boolean})],j.prototype,"trailingIcon",void 0);lt([(0,tt.property)({type:Boolean})],j.prototype,"loading",void 0);lt([(0,tt.property)()],j.prototype,"tooltipPosition",void 0);lt([(0,tt.property)({type:Boolean})],j.prototype,"hideTooltip",void 0);lt([(0,tt.property)({type:Boolean})],j.prototype,"forceTooltip",void 0);lt([(0,tt.query)(".ft-button")],j.prototype,"button",void 0);lt([(0,tt.query)(".ft-button--label slot")],j.prototype,"slottedContent",void 0);var vo=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},St=class extends j{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return"button"}};St.styles=[ha.safariEllipsisFix,sa];vo([(0,Ze.property)({type:Boolean})],St.prototype,"primary",void 0);vo([(0,Ze.property)({type:Boolean})],St.prototype,"outlined",void 0);vo([(0,Ze.property)({type:Boolean})],St.prototype,"dense",void 0);vo([(0,Ze.property)({type:Boolean})],St.prototype,"round",void 0);var Ye=S(V());var Oo=S(_());var ma=S(B()),$=S(_());var ya=[ma.css`
581
+ `}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(e){return e instanceof HTMLSlotElement?e.assignedNodes().map(r=>this.unslotText(r)).join(""):e?.textContent||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};j.elementDefinitions={"ft-ripple":D,"ft-tooltip":W,"ft-typography":J,"ft-icon":Y,"ft-loader":ie};lt([(0,tt.property)({type:String,reflect:!0})],j.prototype,"role",void 0);lt([(0,tt.property)()],j.prototype,"type",void 0);lt([(0,tt.property)({type:Boolean})],j.prototype,"disabled",void 0);lt([(0,tt.property)()],j.prototype,"label",void 0);lt([(0,tt.property)()],j.prototype,"icon",void 0);lt([(0,tt.property)()],j.prototype,"iconVariant",void 0);lt([(0,tt.property)({type:Boolean})],j.prototype,"trailingIcon",void 0);lt([(0,tt.property)({type:Boolean})],j.prototype,"loading",void 0);lt([(0,tt.property)()],j.prototype,"tooltipPosition",void 0);lt([(0,tt.property)({type:Boolean})],j.prototype,"hideTooltip",void 0);lt([(0,tt.property)({type:Boolean})],j.prototype,"forceTooltip",void 0);lt([(0,tt.query)(".ft-button")],j.prototype,"button",void 0);lt([(0,tt.query)(".ft-button--label slot")],j.prototype,"slottedContent",void 0);var vo=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},vt=class extends j{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return"button"}};vt.styles=[ha.safariEllipsisFix,sa];vo([(0,Ze.property)({type:Boolean})],vt.prototype,"primary",void 0);vo([(0,Ze.property)({type:Boolean})],vt.prototype,"outlined",void 0);vo([(0,Ze.property)({type:Boolean})],vt.prototype,"dense",void 0);vo([(0,Ze.property)({type:Boolean})],vt.prototype,"round",void 0);var Ye=S(V());var Oo=S(_());var ma=S(B()),$=S(_());var ya=[ma.css`
582
582
  :host {
583
583
  display: inline-block;
584
584
  max-width: 100%;
@@ -822,7 +822,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
822
822
  .ftds--size-small.ft-button--icon-only {
823
823
  width: ${x.smallIconOnlyWidth};
824
824
  }
825
- `,$.noTextSelect];var So=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},Ot=class extends(0,Oo.toFtdsBase)(j){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=fo.brand,this.iconVariant=mt.fluid_topics}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon,"ft-button--round":this.round,...this.getDesignSystemBaseClasses()}}get typographyVariant(){switch(this.size){case X.large:return ut.body2medium;case X.medium:return ut.caption1medium;case X.small:return ut.caption2medium}}};Ot.styles=[Oo.safariEllipsisFix,ya];So([(0,Ye.property)({type:Boolean})],Ot.prototype,"primary",void 0);So([(0,Ye.property)({type:Boolean})],Ot.prototype,"secondary",void 0);So([(0,Ye.property)({type:Boolean})],Ot.prototype,"tertiary",void 0);So([(0,Ye.property)({type:Boolean})],Ot.prototype,"round",void 0);(0,br.customElement)("ft-button")(St);(0,br.customElement)("ftds-button")(Ot);var ga=P.FtCssVariableFactory.extend("--ft-chip-color","",P.designSystemVariables.colorOnSurface),yt={backgroundColor:P.FtCssVariableFactory.extend("--ft-chip-background-color","",P.designSystemVariables.colorSurface),color:ga,fontSize:P.FtCssVariableFactory.extend("--ft-chip-font-size","",Et.fontSize),iconSize:P.FtCssVariableFactory.create("--ft-chip-icon-size","","SIZE","18px"),borderRadius:P.FtCssVariableFactory.create("--ft-chip-border-radius","","SIZE",""),rippleColor:P.FtCssVariableFactory.extend("--ft-chip-ripple-color","",ga),horizontalPadding:P.FtCssVariableFactory.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:P.FtCssVariableFactory.create("--ft-chip-vertical-padding","","SIZE","6px"),colorOutline:P.FtCssVariableFactory.external(P.designSystemVariables.colorOutline,"Design system"),opacityDisabled:P.FtCssVariableFactory.external(P.designSystemVariables.colorOpacityDisabled,"Design system")},ba=P.FtCssVariableFactory.extend("--ft-chip-highlighted-color","",P.FtCssVariableFactory.extend("--ft-chip-color","",P.designSystemVariables.colorOnPrimary)),xr={backgroundColor:P.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color","",P.FtCssVariableFactory.extend("--ft-chip-background-color","",P.designSystemVariables.colorPrimary)),color:ba,rippleColor:P.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color","",ba)},xa={horizontalPadding:P.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:P.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},va=[P.noTextSelect,Co.css`
825
+ `,$.noTextSelect];var So=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},St=class extends(0,Oo.toFtdsBase)(j){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=fo.brand,this.iconVariant=mt.fluid_topics}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon,"ft-button--round":this.round,...this.getDesignSystemBaseClasses()}}get typographyVariant(){switch(this.size){case X.large:return ut.body2medium;case X.medium:return ut.caption1medium;case X.small:return ut.caption2medium}}};St.styles=[Oo.safariEllipsisFix,ya];So([(0,Ye.property)({type:Boolean})],St.prototype,"primary",void 0);So([(0,Ye.property)({type:Boolean})],St.prototype,"secondary",void 0);So([(0,Ye.property)({type:Boolean})],St.prototype,"tertiary",void 0);So([(0,Ye.property)({type:Boolean})],St.prototype,"round",void 0);(0,br.customElement)("ft-button")(vt);(0,br.customElement)("ftds-button")(St);var ga=P.FtCssVariableFactory.extend("--ft-chip-color","",P.designSystemVariables.colorOnSurface),yt={backgroundColor:P.FtCssVariableFactory.extend("--ft-chip-background-color","",P.designSystemVariables.colorSurface),color:ga,fontSize:P.FtCssVariableFactory.extend("--ft-chip-font-size","",Et.fontSize),iconSize:P.FtCssVariableFactory.create("--ft-chip-icon-size","","SIZE","18px"),borderRadius:P.FtCssVariableFactory.create("--ft-chip-border-radius","","SIZE",""),rippleColor:P.FtCssVariableFactory.extend("--ft-chip-ripple-color","",ga),horizontalPadding:P.FtCssVariableFactory.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:P.FtCssVariableFactory.create("--ft-chip-vertical-padding","","SIZE","6px"),colorOutline:P.FtCssVariableFactory.external(P.designSystemVariables.colorOutline,"Design system"),opacityDisabled:P.FtCssVariableFactory.external(P.designSystemVariables.colorOpacityDisabled,"Design system")},ba=P.FtCssVariableFactory.extend("--ft-chip-highlighted-color","",P.FtCssVariableFactory.extend("--ft-chip-color","",P.designSystemVariables.colorOnPrimary)),xr={backgroundColor:P.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color","",P.FtCssVariableFactory.extend("--ft-chip-background-color","",P.designSystemVariables.colorPrimary)),color:ba,rippleColor:P.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color","",ba)},xa={horizontalPadding:P.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:P.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},va=[P.noTextSelect,Co.css`
826
826
  :host {
827
827
  display: inline-block;
828
828
  max-width: 100%;
@@ -984,7 +984,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
984
984
  <div class="ft-chip--icon-container ft-no-text-select" part="icon-container">
985
985
  <ft-icon .variant=${this.iconVariant} .value="${this.internalIcon}" part="icon"></ft-icon>
986
986
  </div>
987
- `}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new Eo))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new Eo))}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:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};U.elementDefinitions={"ft-ripple":D,"ft-typography":J,"ft-icon":Y,"ft-button":St};U.styles=va;st([(0,et.property)({type:Boolean})],U.prototype,"highlighted",void 0);st([(0,et.property)({type:Boolean})],U.prototype,"removable",void 0);st([(0,et.property)({type:Boolean})],U.prototype,"disabled",void 0);st([(0,et.property)({type:Boolean})],U.prototype,"clickable",void 0);st([(0,et.property)({type:Boolean})],U.prototype,"iconClickable",void 0);st([(0,et.property)({type:Boolean})],U.prototype,"dense",void 0);st([(0,et.property)({type:Boolean})],U.prototype,"multiLine",void 0);st([(0,et.property)()],U.prototype,"label",void 0);st([(0,et.property)()],U.prototype,"iconLabel",void 0);st([(0,et.property)()],U.prototype,"icon",void 0);st([(0,et.property)()],U.prototype,"iconVariant",void 0);st([(0,et.property)({type:Boolean})],U.prototype,"trailingIcon",void 0);st([(0,et.query)("ft-typography slot")],U.prototype,"slottedContent",void 0);var ae=S(B()),ce=S(V()),wa=S(je()),Ro=S(_());var Oa=S(B());var vr=S(_());var Ca=[Oa.css`
987
+ `}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new Eo))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new Eo))}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:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};U.elementDefinitions={"ft-ripple":D,"ft-typography":J,"ft-icon":Y,"ft-button":vt};U.styles=va;st([(0,et.property)({type:Boolean})],U.prototype,"highlighted",void 0);st([(0,et.property)({type:Boolean})],U.prototype,"removable",void 0);st([(0,et.property)({type:Boolean})],U.prototype,"disabled",void 0);st([(0,et.property)({type:Boolean})],U.prototype,"clickable",void 0);st([(0,et.property)({type:Boolean})],U.prototype,"iconClickable",void 0);st([(0,et.property)({type:Boolean})],U.prototype,"dense",void 0);st([(0,et.property)({type:Boolean})],U.prototype,"multiLine",void 0);st([(0,et.property)()],U.prototype,"label",void 0);st([(0,et.property)()],U.prototype,"iconLabel",void 0);st([(0,et.property)()],U.prototype,"icon",void 0);st([(0,et.property)()],U.prototype,"iconVariant",void 0);st([(0,et.property)({type:Boolean})],U.prototype,"trailingIcon",void 0);st([(0,et.query)("ft-typography slot")],U.prototype,"slottedContent",void 0);var ae=S(B()),ce=S(V()),wa=S(je()),Ro=S(_());var Oa=S(B());var vr=S(_());var Ca=[Oa.css`
988
988
  :host {
989
989
  display: inline-block;
990
990
  max-width: 100%;
@@ -1090,7 +1090,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1090
1090
  .ftds--family-error .ftds-chip--icon-container {
1091
1091
  color: ${L.errorIconColor};
1092
1092
  }
1093
- `];var qe=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},Sr=class extends CustomEvent{constructor(){super("remove")}},Ct=class extends Ro.FtdsBase{constructor(){super(...arguments),this.removable=!1,this.removeButtonLabel="Remove",this.label=""}render(){let e={"ftds-chip":!0,"ftds-chip--removable":this.removable,"ftds-chip--with-icon":!!this.icon,...this.getDesignSystemBaseClasses()};return ae.html`
1093
+ `];var qe=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},Sr=class extends CustomEvent{constructor(){super("remove")}},Ot=class extends Ro.FtdsBase{constructor(){super(...arguments),this.removable=!1,this.removeButtonLabel="Remove",this.label=""}render(){let e={"ftds-chip":!0,"ftds-chip--removable":this.removable,"ftds-chip--with-icon":!!this.icon,...this.getDesignSystemBaseClasses()};return ae.html`
1094
1094
  <div class="${(0,wa.classMap)(e)}"
1095
1095
  aria-label="${this.getLabel()}"
1096
1096
  part="chip">
@@ -1114,29 +1114,31 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1114
1114
  size=${this.resolveButtonSize()}
1115
1115
  part="icon-button"
1116
1116
  ></ftds-button>
1117
- `: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}}};Ct.elementDefinitions={"ft-typography":J,"ft-icon":Y,"ftds-button":Ot};Ct.styles=Ca;qe([(0,ce.property)({type:Boolean})],Ct.prototype,"removable",void 0);qe([(0,ce.property)()],Ct.prototype,"removeButtonLabel",void 0);qe([(0,ce.property)()],Ct.prototype,"label",void 0);qe([(0,ce.property)()],Ct.prototype,"icon",void 0);qe([(0,ce.query)("ft-typography slot")],Ct.prototype,"slottedContent",void 0);(0,Or.customElement)("ft-chip")(U);(0,Or.customElement)("ftds-chip")(Ct);var qr=S(V());function Yc(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 Yc(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,qc=To.ShadowRoot&&(To.ShadyCSS===void 0||To.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,hm=Symbol();var Aa=(t,e)=>{qc?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},Ta,La=Symbol("constructorPrototype"),Ia=Symbol("constructorName"),$a=Symbol("exportpartsDebouncer"),jt=class extends $o{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Ta]=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(e){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",e)}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(", "))}};Ta=$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 _a,ka,Wa,ko=Symbol("internalReduxEventsUnsubscribers"),Ft=Symbol("internalStoresUnsubscribers"),le=Symbol("internalStores"),Qe=class extends jt{constructor(){super(...arguments),this[_a]=new Map,this[ka]=new Map,this[Wa]=[]}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[Ft].has(e.store):this[Ft].size>0)&&(this[r]=e.selector(i.getState(),this))}})}subscribeToStore(e,r){var n;this[Ft].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[Ft].forEach((e,r)=>this.unsubscribeFromStore(r)),this[ko].forEach(e=>e()),this[ko]=[]}unsubscribeFromStore(e){this[Ft].has(e)&&this[Ft].get(e)(),this[Ft].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};_a=Ft,ka=le,Wa=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 wt(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)===nl}(t)||Array.isArray(t)||!!t[Ga]||!!(!((e=t.constructor)===null||e===void 0)&&e[Ga])||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 Xc(t,e){return Pe(t)===2?t.get(e):t[e]}function ja(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 ol&&t instanceof Map}function $r(t){return rl&&t instanceof Set}function Kt(t){return t.o||t.t}function _r(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Za(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)||!wt(t)||(Pe(t)>1&&(t.set=t.add=t.clear=t.delete=Jc),Object.freeze(t),e&&se(t,function(r,n){return kr(n,!0)},!0)),t}function Jc(){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 Qc(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(tl),t.p=null}function Pr(t){t===eo&&(eo=t.l)}function Da(t){return eo={p:[],l:eo,h:t,m:!0,_:0}}function tl(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)),wt(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!==Va?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 za(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 za(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 za(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(ja(r,n,s),!Dt(s))return;t.m=!1}else c&&r.add(i);if(wt(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?Kt(r):t)[e]}function Ba(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 el(t){return Dt(t)||gt(22,t),function e(r){if(!wt(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=Ma(r,a),i.I=!1}else n=Ma(r,a);return se(n,function(c,s){i&&Xc(i.t,c)===s||ja(n,c,e(s))}),a===3?new Set(n):n}(t)}function Ma(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return _r(t)}function Ka(){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&&gt(3,JSON.stringify(Kt(c)))}var a={};Qc("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=Za(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 Ua,eo,Dr=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",ol=typeof Map<"u",rl=typeof Set<"u",Ha=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Va=Dr?Symbol.for("immer-nothing"):((Ua={})["immer-nothing"]=!0,Ua),Ga=Dr?Symbol.for("immer-draftable"):"__$immer_draftable",z=Dr?Symbol.for("immer-state"):"__$immer_state";var nl=""+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,Za=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=Kt(t);if(!Re(r,e))return function(i,a,c){var s,p=Ba(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||!wt(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 Kt(t)},ownKeys:function(t){return Reflect.ownKeys(Kt(t))},set:function(t,e,r){var n=Ba(Kt(t),e);if(n?.set)return n.set.call(t.k,r),!0;if(!t.P){var i=Nr(Kt(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=Kt(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 il=function(){function t(r){var n=this;this.O=Ha,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"&&gt(6),c!==void 0&&typeof c!="function"&&gt(7),wt(i)){var u=Da(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===Va&&(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){wt(r)||gt(8),Dt(r)&&(r=el(r));var n=Da(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&&!Ha&&gt(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 il,al=dt.produce,Nm=dt.produceWithPatches.bind(dt),Rm=dt.setAutoFreeze.bind(dt),Am=dt.setUseProxies.bind(dt),Pm=dt.applyPatches.bind(dt),Lm=dt.createDraft.bind(dt),Im=dt.finishDraft.bind(dt),Bo=al;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 Ya(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?Ya(Object(r),!0).forEach(function(n){Mr(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ya(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 qa=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 cl(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(!cl(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[qa]=function(){return this},b}return m({type:Uo.INIT}),n={dispatch:m,subscribe:h,getState:u,replaceReducer:g},n[qa]=y,n}function ll(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 Xa(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{ll(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 Ja(){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 Qa(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 tc=Qa();tc.withExtraArgument=Qa;var Gr=tc;var ic=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)}}(),sl=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},dl=Object.defineProperty,fl=Object.defineProperties,pl=Object.getOwnPropertyDescriptors,ec=Object.getOwnPropertySymbols,ul=Object.prototype.hasOwnProperty,hl=Object.prototype.propertyIsEnumerable,oc=function(t,e,r){return e in t?dl(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},Yt=function(t,e){for(var r in e||(e={}))ul.call(e,r)&&oc(t,r,e[r]);if(ec)for(var n=0,i=ec(e);n<i.length;n++){var r=i[n];hl.call(e,r)&&oc(t,r,e[r])}return t},jr=function(t,e){return fl(t,pl(e))},ml=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 yl=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)},Ym=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function gl(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 bl=function(t){ic(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),xl=function(t){ic(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 wt(t)?Bo(t,function(){}):t}function vl(t){return typeof t=="boolean"}function Sl(){return function(e){return Ol(e)}}function Ol(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 bl;if(r&&(vl(r)?s.push(Gr):s.push(Gr.withExtraArgument(r.extraArgument))),0){if(i)var p;if(c)var f}return s}var Fr=!0;function ac(t){var e=Sl(),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(gl(i))g=Xa(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),!Fr&&!Array.isArray(y)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Fr&&y.some(function(I){return typeof I!="function"}))throw new Error("each middleware provided to configureStore must be a function");var b=Ja.apply(void 0,y),N=Le;p&&(N=yl(Yt({trace:!Fr},typeof p=="object"&&p)));var C=new xl(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 cc(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 Cl(t){return typeof t=="function"}function wl(t,e,r,n){r===void 0&&(r=[]);var i=typeof e=="function"?cc(e):[e,r,n],a=i[0],c=i[1],s=i[2],p;if(Cl(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(wt(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 El(t,e){return t+"/"+e}function lc(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=El(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"?cc(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 wl(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 Nl="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Rl=function(t){t===void 0&&(t=21);for(var e="",r=t;r--;)e+=Nl[Math.random()*64|0];return e},Al=["name","message","stack","code"],Kr=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),rc=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),Pl=function(t){if(typeof t=="object"&&t!==null){for(var e={},r=0,n=Al;r<n.length;r++){var i=n[r];typeof t[i]=="string"&&(e[i]=t[i])}return e}return{message:String(t)}},Qm=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||Pl)(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):Rl(),b=new p,N,C=!1;function w(I){N=I,b.abort()}var R=function(){return ml(this,null,function(){var I,k,ft,zt,Fo,Bt,it;return sl(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}),Il(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,Fo=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([Fo,Promise.resolve(r(u,{dispatch:h,getState:m,extra:g,requestId:y,signal:b.signal,abort:w,rejectWithValue:function(at,Jt){return new Kr(at,Jt)},fulfillWithValue:function(at,Jt){return new rc(at,Jt)}})).then(function(at){if(at instanceof Kr)throw at;return at instanceof rc?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 Kr?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(Ll)}})}}return Object.assign(f,{pending:a,rejected:c,fulfilled:i,typePrefix:e})}return t.withTypes=function(){return t},t}();function Ll(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Il(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var sc="listener",dc="completed",fc="cancelled",ty="task-"+fc,ey="task-"+dc,oy=sc+"-"+fc,ry=sc+"-"+dc;var Zr="listenerMiddleware";var ny=qt(Zr+"/add"),iy=qt(Zr+"/removeAll"),ay=qt(Zr+"/remove");var nc,cy=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(nc||(nc=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},Tl=function(t){return function(e){setTimeout(e,t)}},ly=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Tl(10);Ka();window.ftReduxStores||(window.ftReduxStores={});var pc=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=lc({...i,reducers:(r=i.reducers)!==null&&r!==void 0?r:{}}),s=ac({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})}},_l={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:_l,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 uc(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},xt=class extends uc(io){constructor(){super(...arguments),this.multiLine=!1,this.displayLabel=!1,this.editorMode=!1}render(){return bt.html`
1117
+ `: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 Yc(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 Yc(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,qc=To.ShadowRoot&&(To.ShadyCSS===void 0||To.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,hm=Symbol();var Aa=(t,e)=>{qc?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},Ta,La=Symbol("constructorPrototype"),Ia=Symbol("constructorName"),$a=Symbol("exportpartsDebouncer"),jt=class extends $o{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Ta]=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(e){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",e)}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(", "))}};Ta=$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 _a,ka,Wa,ko=Symbol("internalReduxEventsUnsubscribers"),Ft=Symbol("internalStoresUnsubscribers"),le=Symbol("internalStores"),Qe=class extends jt{constructor(){super(...arguments),this[_a]=new Map,this[ka]=new Map,this[Wa]=[]}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[Ft].has(e.store):this[Ft].size>0)&&(this[r]=e.selector(i.getState(),this))}})}subscribeToStore(e,r){var n;this[Ft].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[Ft].forEach((e,r)=>this.unsubscribeFromStore(r)),this[ko].forEach(e=>e()),this[ko]=[]}unsubscribeFromStore(e){this[Ft].has(e)&&this[Ft].get(e)(),this[Ft].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};_a=Ft,ka=le,Wa=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)===nl}(t)||Array.isArray(t)||!!t[Ga]||!!(!((e=t.constructor)===null||e===void 0)&&e[Ga])||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 Xc(t,e){return Pe(t)===2?t.get(e):t[e]}function ja(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 ol&&t instanceof Map}function $r(t){return rl&&t instanceof Set}function Kt(t){return t.o||t.t}function _r(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Za(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=Jc),Object.freeze(t),e&&se(t,function(r,n){return kr(n,!0)},!0)),t}function Jc(){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 Qc(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(tl),t.p=null}function Pr(t){t===eo&&(eo=t.l)}function Da(t){return eo={p:[],l:eo,h:t,m:!0,_:0}}function tl(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!==Va?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 za(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 za(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 za(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(ja(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?Kt(r):t)[e]}function Ba(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 el(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=Ma(r,a),i.I=!1}else n=Ma(r,a);return se(n,function(c,s){i&&Xc(i.t,c)===s||ja(n,c,e(s))}),a===3?new Set(n):n}(t)}function Ma(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return _r(t)}function Ka(){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&&gt(3,JSON.stringify(Kt(c)))}var a={};Qc("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=Za(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 Ua,eo,Dr=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",ol=typeof Map<"u",rl=typeof Set<"u",Ha=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Va=Dr?Symbol.for("immer-nothing"):((Ua={})["immer-nothing"]=!0,Ua),Ga=Dr?Symbol.for("immer-draftable"):"__$immer_draftable",z=Dr?Symbol.for("immer-state"):"__$immer_state";var nl=""+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,Za=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=Kt(t);if(!Re(r,e))return function(i,a,c){var s,p=Ba(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 Kt(t)},ownKeys:function(t){return Reflect.ownKeys(Kt(t))},set:function(t,e,r){var n=Ba(Kt(t),e);if(n?.set)return n.set.call(t.k,r),!0;if(!t.P){var i=Nr(Kt(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=Kt(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 il=function(){function t(r){var n=this;this.O=Ha,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"&&gt(6),c!==void 0&&typeof c!="function"&&gt(7),Ct(i)){var u=Da(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===Va&&(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=el(r));var n=Da(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&&!Ha&&gt(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 il,al=dt.produce,Nm=dt.produceWithPatches.bind(dt),Rm=dt.setAutoFreeze.bind(dt),Am=dt.setUseProxies.bind(dt),Pm=dt.applyPatches.bind(dt),Lm=dt.createDraft.bind(dt),Im=dt.finishDraft.bind(dt),Bo=al;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 Ya(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?Ya(Object(r),!0).forEach(function(n){Mr(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ya(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 qa=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 cl(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(!cl(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[qa]=function(){return this},b}return m({type:Uo.INIT}),n={dispatch:m,subscribe:h,getState:u,replaceReducer:g},n[qa]=y,n}function ll(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 Xa(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{ll(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 Ja(){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 Qa(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 tc=Qa();tc.withExtraArgument=Qa;var Gr=tc;var ic=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)}}(),sl=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},dl=Object.defineProperty,fl=Object.defineProperties,pl=Object.getOwnPropertyDescriptors,ec=Object.getOwnPropertySymbols,ul=Object.prototype.hasOwnProperty,hl=Object.prototype.propertyIsEnumerable,oc=function(t,e,r){return e in t?dl(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},Yt=function(t,e){for(var r in e||(e={}))ul.call(e,r)&&oc(t,r,e[r]);if(ec)for(var n=0,i=ec(e);n<i.length;n++){var r=i[n];hl.call(e,r)&&oc(t,r,e[r])}return t},jr=function(t,e){return fl(t,pl(e))},ml=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 yl=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)},Ym=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function gl(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 bl=function(t){ic(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),xl=function(t){ic(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 vl(t){return typeof t=="boolean"}function Sl(){return function(e){return Ol(e)}}function Ol(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 bl;if(r&&(vl(r)?s.push(Gr):s.push(Gr.withExtraArgument(r.extraArgument))),0){if(i)var p;if(c)var f}return s}var Fr=!0;function ac(t){var e=Sl(),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(gl(i))g=Xa(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),!Fr&&!Array.isArray(y)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Fr&&y.some(function(I){return typeof I!="function"}))throw new Error("each middleware provided to configureStore must be a function");var b=Ja.apply(void 0,y),N=Le;p&&(N=yl(Yt({trace:!Fr},typeof p=="object"&&p)));var C=new xl(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 cc(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 Cl(t){return typeof t=="function"}function wl(t,e,r,n){r===void 0&&(r=[]);var i=typeof e=="function"?cc(e):[e,r,n],a=i[0],c=i[1],s=i[2],p;if(Cl(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 El(t,e){return t+"/"+e}function lc(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=El(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"?cc(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 wl(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 Nl="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Rl=function(t){t===void 0&&(t=21);for(var e="",r=t;r--;)e+=Nl[Math.random()*64|0];return e},Al=["name","message","stack","code"],Kr=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),rc=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),Pl=function(t){if(typeof t=="object"&&t!==null){for(var e={},r=0,n=Al;r<n.length;r++){var i=n[r];typeof t[i]=="string"&&(e[i]=t[i])}return e}return{message:String(t)}},Qm=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||Pl)(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):Rl(),b=new p,N,C=!1;function w(I){N=I,b.abort()}var R=function(){return ml(this,null,function(){var I,k,ft,zt,Fo,Bt,it;return sl(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}),Il(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,Fo=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([Fo,Promise.resolve(r(u,{dispatch:h,getState:m,extra:g,requestId:y,signal:b.signal,abort:w,rejectWithValue:function(at,Jt){return new Kr(at,Jt)},fulfillWithValue:function(at,Jt){return new rc(at,Jt)}})).then(function(at){if(at instanceof Kr)throw at;return at instanceof rc?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 Kr?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(Ll)}})}}return Object.assign(f,{pending:a,rejected:c,fulfilled:i,typePrefix:e})}return t.withTypes=function(){return t},t}();function Ll(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Il(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var sc="listener",dc="completed",fc="cancelled",ty="task-"+fc,ey="task-"+dc,oy=sc+"-"+fc,ry=sc+"-"+dc;var Zr="listenerMiddleware";var ny=qt(Zr+"/add"),iy=qt(Zr+"/removeAll"),ay=qt(Zr+"/remove");var nc,cy=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(nc||(nc=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},Tl=function(t){return function(e){setTimeout(e,t)}},ly=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Tl(10);Ka();window.ftReduxStores||(window.ftReduxStores={});var pc=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=lc({...i,reducers:(r=i.reducers)!==null&&r!==void 0?r:{}}),s=ac({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})}},_l={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:_l,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 uc(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 uc(io){constructor(){super(...arguments),this.multiLine=!1,this.displayLabel=!1,this.editorMode=!1}render(){return wt.html`
1118
1118
  ${this.renderChip()}
1119
1119
  ${this.hideIfEmpty()}
1120
- `}renderChip(){var e,r,n;let i=bt.html`
1120
+ `}renderChip(){var e,r,n;let i=wt.html`
1121
1121
  <ft-chip part="chip"
1122
1122
  exportpartsPrefix="chip"
1123
1123
  ?multiLine=${this.multiLine}>
1124
- ${this.displayLabel?bt.html`
1124
+ ${this.displayLabel?wt.html`
1125
1125
  <span part="label">${(e=this.flatMetadata)===null||e===void 0?void 0:e.label}: </span>
1126
- `:bt.nothing}
1127
- <span part="values">${this.metadataValues()}</span>
1126
+ `:wt.nothing}
1127
+ ${this.metadataValue.length===0?wt.nothing:wt.html`
1128
+ <span part="values">${this.metadataValue}</span>
1129
+ `}
1128
1130
  </ft-chip>
1129
- `;return this.displayLabel&&((r=this.flatMetadata)===null||r===void 0?void 0:r.value)==((n=this.flatMetadata)===null||n===void 0?void 0:n.displayValue)?i:bt.html`
1131
+ `;return this.displayLabel&&((r=this.flatMetadata)===null||r===void 0?void 0:r.value)==((n=this.flatMetadata)===null||n===void 0?void 0:n.displayValue)?i:wt.html`
1130
1132
  <ft-tooltip part="tooltip" text="${this.tooltipText}">
1131
1133
  ${i}
1132
1134
  </ft-tooltip>
1133
- `}metadataValues(){var e;return this.flatMetadata?bt.html`${(e=this.flatMetadata)===null||e===void 0?void 0:e.displayValue}`:this.key?bt.html`no value for ${this.key}`:bt.html`no metadata selected`}hideIfEmpty(){return!this.editorMode&&!this.flatMetadata?bt.html`
1135
+ `}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`
1134
1136
  <style>
1135
1137
  :host {
1136
1138
  display: none !important;
1137
1139
  }
1138
1140
  </style>
1139
- `:bt.nothing}get tooltipText(){return this.flatMetadata?this.flatMetadata.label+": "+this.flatMetadata.value:""}update(e){super.update(e),["key","tocNode"].some(r=>e.has(r))&&this.updateContent(),(e.has("metadata")||this.dateFormatOptionsChanged(e))&&(this.flatMetadata=hc.ClusteringHelper.flattenMetadata(this.formatDateValues(this.metadata)))}onStoreAvailable(){super.onStoreAvailable(),this.updateContent()}updateContent(){var e;this.metadata=void 0,this.tocNode&&this.key&&((e=this.service)===null||e===void 0||e.getTopicInfo(this.tocNode).then(r=>this.metadata=r.metadata.find(n=>n.key===this.key)).catch(()=>null))}};xt.elementDefinitions={"ft-tooltip":W,"ft-chip":U};xt.styles=on;Te([(0,Xt.property)()],xt.prototype,"key",void 0);Te([(0,Xt.property)({type:Boolean})],xt.prototype,"multiLine",void 0);Te([(0,Xt.property)({type:Boolean})],xt.prototype,"displayLabel",void 0);Te([(0,Xt.state)()],xt.prototype,"editorMode",void 0);Te([(0,Xt.state)()],xt.prototype,"metadata",void 0);Te([(0,Xt.state)()],xt.prototype,"flatMetadata",void 0);(0,mc.customElement)("ft-reader-topic-metadata")(xt);})();
1141
+ `:wt.nothing}get tooltipText(){return this.flatMetadata?this.flatMetadata.label+": "+this.flatMetadata.value:""}update(e){super.update(e),["key","tocNode"].some(r=>e.has(r))&&this.updateContent(),(e.has("metadata")||this.dateFormatOptionsChanged(e))&&(this.flatMetadata=hc.ClusteringHelper.flattenMetadata(this.formatDateValues(this.metadata)))}onStoreAvailable(){super.onStoreAvailable(),this.updateContent()}updateContent(){var e;this.metadata=void 0,this.tocNode&&this.key&&((e=this.service)===null||e===void 0||e.getTopicInfo(this.tocNode).then(r=>this.metadata=r.metadata.find(n=>n.key===this.key)).catch(()=>null))}};bt.elementDefinitions={"ft-tooltip":W,"ft-chip":U};bt.styles=on;Te([(0,Xt.property)()],bt.prototype,"key",void 0);Te([(0,Xt.property)({type:Boolean})],bt.prototype,"multiLine",void 0);Te([(0,Xt.property)({type:Boolean})],bt.prototype,"displayLabel",void 0);Te([(0,Xt.state)()],bt.prototype,"editorMode",void 0);Te([(0,Xt.state)()],bt.prototype,"metadata",void 0);Te([(0,Xt.state)()],bt.prototype,"flatMetadata",void 0);(0,mc.customElement)("ft-reader-topic-metadata")(bt);})();
1140
1142
  /*! Bundled license information:
1141
1143
 
1142
1144
  lit-html/lit-html.js: