@fluid-topics/ft-search-load-more-button 1.2.19 → 1.2.21

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.
@@ -334,7 +334,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
334
334
  .ft-icon--material {
335
335
  font-family: ${ce.materialFontFamily}, "Material Icons", sans-serif;
336
336
  }
337
- `;var Ca=D.FtCssVariableFactory.extend("--ft-button-color","",D.designSystemVariables.colorPrimary),X={backgroundColor:D.FtCssVariableFactory.extend("--ft-button-background-color","",D.designSystemVariables.colorSurface),borderRadius:D.FtCssVariableFactory.extend("--ft-button-border-radius","",D.designSystemVariables.borderRadiusL),color:Ca,fontSize:D.FtCssVariableFactory.extend("--ft-button-font-size","",Ne.fontSize),iconSize:D.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:D.FtCssVariableFactory.extend("--ft-button-ripple-color","",Ca),verticalPadding:D.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:D.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:D.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:D.FtCssVariableFactory.external(D.designSystemVariables.colorOpacityDisabled,"Design system")},Ea=D.FtCssVariableFactory.extend("--ft-button-primary-color","",D.FtCssVariableFactory.extend("--ft-button-color","",D.designSystemVariables.colorOnPrimary)),io={backgroundColor:D.FtCssVariableFactory.extend("--ft-button-primary-background-color","",D.FtCssVariableFactory.extend("--ft-button-background-color","",D.designSystemVariables.colorPrimary)),color:Ea,rippleColor:D.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",Ea)},Re={borderRadius:D.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",D.FtCssVariableFactory.extend("--ft-button-border-radius","",D.designSystemVariables.borderRadiusM)),verticalPadding:D.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:D.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:D.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},Aa=[wa.css`
337
+ `;var Ca=D.FtCssVariableFactory.extend("--ft-button-color","",D.designSystemVariables.colorPrimary),Q={backgroundColor:D.FtCssVariableFactory.extend("--ft-button-background-color","",D.designSystemVariables.colorSurface),borderRadius:D.FtCssVariableFactory.extend("--ft-button-border-radius","",D.designSystemVariables.borderRadiusL),color:Ca,fontSize:D.FtCssVariableFactory.extend("--ft-button-font-size","",Ne.fontSize),iconSize:D.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:D.FtCssVariableFactory.extend("--ft-button-ripple-color","",Ca),verticalPadding:D.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:D.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:D.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:D.FtCssVariableFactory.external(D.designSystemVariables.colorOpacityDisabled,"Design system")},Ea=D.FtCssVariableFactory.extend("--ft-button-primary-color","",D.FtCssVariableFactory.extend("--ft-button-color","",D.designSystemVariables.colorOnPrimary)),io={backgroundColor:D.FtCssVariableFactory.extend("--ft-button-primary-background-color","",D.FtCssVariableFactory.extend("--ft-button-background-color","",D.designSystemVariables.colorPrimary)),color:Ea,rippleColor:D.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",Ea)},Re={borderRadius:D.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",D.FtCssVariableFactory.extend("--ft-button-border-radius","",D.designSystemVariables.borderRadiusM)),verticalPadding:D.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:D.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:D.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},Aa=[wa.css`
338
338
  :host {
339
339
  display: inline-block;
340
340
  max-width: 100%;
@@ -345,7 +345,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
345
345
  box-shadow: 0px 0px 0px transparent;
346
346
  border: 0px solid transparent;
347
347
  text-shadow: 0px 0px 0px transparent;
348
- font-size: ${X.fontSize};
348
+ font-size: ${Q.fontSize};
349
349
  text-decoration: none;
350
350
  }
351
351
 
@@ -375,21 +375,21 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
375
375
  border: none;
376
376
  pointer-events: auto;
377
377
 
378
- --ft-button-internal-line-height: max(calc(${X.fontSize} + 2px), ${X.iconSize});
379
- --ft-button-internal-color: ${X.color};
380
- ${(0,D.setVariable)(ce.size,X.iconSize)};
381
- ${(0,D.setVariable)(E.color,X.rippleColor)};
378
+ --ft-button-internal-line-height: max(calc(${Q.fontSize} + 2px), ${Q.iconSize});
379
+ --ft-button-internal-color: ${Q.color};
380
+ ${(0,D.setVariable)(ce.size,Q.iconSize)};
381
+ ${(0,D.setVariable)(E.color,Q.rippleColor)};
382
382
 
383
- border-radius: ${X.borderRadius};
384
- padding: ${X.verticalPadding} ${X.horizontalPadding};
385
- background-color: ${X.backgroundColor};
383
+ border-radius: ${Q.borderRadius};
384
+ padding: ${Q.verticalPadding} ${Q.horizontalPadding};
385
+ background-color: ${Q.backgroundColor};
386
386
  color: var(--ft-button-internal-color);
387
387
  -webkit-mask-image: radial-gradient(white, black);
388
388
  }
389
389
 
390
390
  .ft-button.ft-button--outlined {
391
391
  border: 1px solid var(--ft-button-internal-color);
392
- padding: calc(${X.verticalPadding} - 1px) calc(${X.horizontalPadding} - 1px);
392
+ padding: calc(${Q.verticalPadding} - 1px) calc(${Q.horizontalPadding} - 1px);
393
393
  }
394
394
 
395
395
  .ft-button.ft-button--dense {
@@ -407,7 +407,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
407
407
  }
408
408
 
409
409
  .ft-button--round {
410
- border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${X.verticalPadding});
410
+ border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Q.verticalPadding});
411
411
  }
412
412
 
413
413
  .ft-button--round.ft-button--dense {
@@ -416,7 +416,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
416
416
 
417
417
  .ft-button[disabled] {
418
418
  filter: grayscale(1);
419
- opacity: ${X.opacityDisabled};
419
+ opacity: ${Q.opacityDisabled};
420
420
  }
421
421
 
422
422
  .ft-button.ft-button--primary {
@@ -435,7 +435,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
435
435
  white-space: nowrap;
436
436
  text-overflow: ellipsis;
437
437
  display: block;
438
- margin: 0 ${X.iconPadding};
438
+ margin: 0 ${Q.iconPadding};
439
439
  ${(0,D.setVariable)(Ne.fontSize,"1em")};
440
440
  ${(0,D.setVariable)(Ne.lineHeight,"var(--ft-button-internal-line-height)")};
441
441
  }
@@ -454,8 +454,8 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
454
454
  }
455
455
 
456
456
  .ft-button--label[hidden] + [part="icon"] {
457
- margin: 0 calc(${X.horizontalPadding} * -1);
458
- padding: 0 ${X.verticalPadding};
457
+ margin: 0 calc(${Q.horizontalPadding} * -1);
458
+ padding: 0 ${Q.verticalPadding};
459
459
  }
460
460
 
461
461
  .ft-button--dense .ft-button--label[hidden] + [part="icon"] {
@@ -468,7 +468,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
468
468
  }
469
469
 
470
470
  ft-loader {
471
- ${(0,D.setVariable)(W.size,X.iconSize)};
471
+ ${(0,D.setVariable)(W.size,Q.iconSize)};
472
472
  ${(0,D.setVariable)(W.color,"var(--ft-button-internal-color)")};
473
473
  }
474
474
  `,D.noTextSelect];var Ze=C(k());var Ia=C(k());var Ra=C(G()),re=C(ne()),La=C(so()),Ft=C(k());var de=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},j=class extends Ft.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new Ft.Debouncer(1e3),this.onTransitionStart=r=>{r.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=r=>{r.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new Ft.Debouncer(10),this.moveRipple=r=>{var o,n;let{x:a,y:i}=this.getCoordinates(r),c=(n=(o=this.ripple)===null||o===void 0?void 0:o.getBoundingClientRect())!==null&&n!==void 0?n:{x:0,y:0,width:0,height:0};this.originX=Math.round(a!=null?a-c.x:c.width/2),this.originY=Math.round(i!=null?i-c.y:c.height/2)},this.startPress=r=>{this.moveRipple(r),this.pressed=!this.isIgnored(r)},this.endPress=()=>{this.pressed=!1},this.startHover=r=>{this.hovered=!this.isIgnored(r)},this.endHover=()=>{this.hovered=!1},this.startFocus=r=>{this.focused=this.isFocusVisible(r?.target)&&!this.isIgnored(r)},this.endFocus=()=>{this.focused=!1}}render(){let r={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return Ra.html`
@@ -482,9 +482,9 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
482
482
  <div class="ft-ripple--background"></div>
483
483
  <div class="ft-ripple--effect"></div>
484
484
  </div>
485
- `}contentAvailableCallback(r){super.contentAvailableCallback(r),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(r){var o,n;super.update(r),r.has("disabled")&&(this.disabled?(this.endRipple(),(o=this.target)===null||o===void 0||o.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 r,o;let n=(r=this.shadowRoot)===null||r===void 0?void 0:r.host.parentElement;n&&this.setupFor((o=this.target)!==null&&o!==void 0?o:n)}setupFor(r){if(this.setupDebouncer.cancel(),this.target===r)return;this.onDisconnect&&this.onDisconnect(),this.target=r,r.setAttribute("data-is-ft-ripple-target","true");let o=(...d)=>f=>{d.forEach(u=>window.addEventListener(u,this.endPress,{once:!0})),this.startPress(f)},n=o("mouseup","contextmenu"),a=o("touchend","touchcancel"),i=d=>{["Enter"," "].includes(d.key)&&o("keyup")(d)},c={passive:!0};r.addEventListener("mouseover",this.startHover,c),r.addEventListener("mousemove",this.moveRipple,c),r.addEventListener("mouseleave",this.endHover,c),r.addEventListener("mousedown",n,c),r.addEventListener("touchstart",a,c),r.addEventListener("touchmove",this.moveRipple,c),r.addEventListener("keydown",i,c),r.addEventListener("focus",this.startFocus,c),r.addEventListener("blur",this.endFocus,c),r.addEventListener("focusin",this.startFocus,c),r.addEventListener("focusout",this.endFocus,c),this.onDisconnect=()=>{r.removeAttribute("data-is-ft-ripple-target"),r.removeEventListener("mouseover",this.startHover,c),r.removeEventListener("mousemove",this.moveRipple,c),r.removeEventListener("mouseleave",this.endHover,c),r.removeEventListener("mousedown",n,c),r.removeEventListener("touchstart",a,c),r.removeEventListener("touchmove",this.moveRipple,c),r.removeEventListener("keydown",i,c),r.removeEventListener("focus",this.startFocus,c),r.removeEventListener("blur",this.endFocus,c),r.removeEventListener("focusin",this.startFocus,c),r.removeEventListener("focusout",this.endFocus,c),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(r){let o=r,n=r,a,i;return o.x!=null?{x:a,y:i}=o:n.touches!=null&&(a=n.touches[0].clientX,i=n.touches[0].clientY),{x:a,y:i}}isFocusVisible(r){return r instanceof HTMLElement?r.matches(":focus-visible"):!0}isIgnored(r){if(this.disabled)return!0;if(r!=null)for(let o of r.composedPath()){if(o===this.target)break;if("hasAttribute"in o&&o.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};j.elementDefinitions={};j.styles=_n;de([(0,re.property)({type:Boolean})],j.prototype,"primary",void 0);de([(0,re.property)({type:Boolean})],j.prototype,"secondary",void 0);de([(0,re.property)({type:Boolean})],j.prototype,"unbounded",void 0);de([(0,re.property)({type:Boolean})],j.prototype,"activated",void 0);de([(0,re.property)({type:Boolean})],j.prototype,"selected",void 0);de([(0,re.property)({type:Boolean})],j.prototype,"disabled",void 0);de([(0,re.state)()],j.prototype,"hovered",void 0);de([(0,re.state)()],j.prototype,"focused",void 0);de([(0,re.state)()],j.prototype,"pressed",void 0);de([(0,re.state)()],j.prototype,"rippling",void 0);de([(0,re.state)()],j.prototype,"originX",void 0);de([(0,re.state)()],j.prototype,"originY",void 0);de([(0,re.query)(".ft-ripple")],j.prototype,"ripple",void 0);de([(0,re.query)(".ft-ripple--effect")],j.prototype,"rippleEffect",void 0);(0,Ia.customElement)("ft-ripple")(j);var Ci=C(k());var Oi=C(G()),q=C(ne()),Xt=C(k());var Ya=C(k());var yo=globalThis,hr=yo.trustedTypes,Pa=hr?hr.createPolicy("lit-html",{createHTML:e=>e}):void 0,Ua="$lit$",ze=`lit$${(Math.random()+"").slice(9)}$`,Ma="?"+ze,hc=`<${Ma}>`,ct=document,yr=()=>ct.createComment(""),zt=e=>e===null||typeof e!="object"&&typeof e!="function",$a=Array.isArray,yc=e=>$a(e)||typeof e?.[Symbol.iterator]=="function",co=`[
485
+ `}contentAvailableCallback(r){super.contentAvailableCallback(r),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(r){var o,n;super.update(r),r.has("disabled")&&(this.disabled?(this.endRipple(),(o=this.target)===null||o===void 0||o.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 r,o;let n=(r=this.shadowRoot)===null||r===void 0?void 0:r.host.parentElement;n&&this.setupFor((o=this.target)!==null&&o!==void 0?o:n)}setupFor(r){if(this.setupDebouncer.cancel(),this.target===r)return;this.onDisconnect&&this.onDisconnect(),this.target=r,r.setAttribute("data-is-ft-ripple-target","true");let o=(...d)=>f=>{d.forEach(u=>window.addEventListener(u,this.endPress,{once:!0})),this.startPress(f)},n=o("mouseup","contextmenu"),a=o("touchend","touchcancel"),i=d=>{["Enter"," "].includes(d.key)&&o("keyup")(d)},c={passive:!0};r.addEventListener("mouseover",this.startHover,c),r.addEventListener("mousemove",this.moveRipple,c),r.addEventListener("mouseleave",this.endHover,c),r.addEventListener("mousedown",n,c),r.addEventListener("touchstart",a,c),r.addEventListener("touchmove",this.moveRipple,c),r.addEventListener("keydown",i,c),r.addEventListener("focus",this.startFocus,c),r.addEventListener("blur",this.endFocus,c),r.addEventListener("focusin",this.startFocus,c),r.addEventListener("focusout",this.endFocus,c),this.onDisconnect=()=>{r.removeAttribute("data-is-ft-ripple-target"),r.removeEventListener("mouseover",this.startHover,c),r.removeEventListener("mousemove",this.moveRipple,c),r.removeEventListener("mouseleave",this.endHover,c),r.removeEventListener("mousedown",n,c),r.removeEventListener("touchstart",a,c),r.removeEventListener("touchmove",this.moveRipple,c),r.removeEventListener("keydown",i,c),r.removeEventListener("focus",this.startFocus,c),r.removeEventListener("blur",this.endFocus,c),r.removeEventListener("focusin",this.startFocus,c),r.removeEventListener("focusout",this.endFocus,c),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(r){let o=r,n=r,a,i;return o.x!=null?{x:a,y:i}=o:n.touches!=null&&(a=n.touches[0].clientX,i=n.touches[0].clientY),{x:a,y:i}}isFocusVisible(r){return r instanceof HTMLElement?r.matches(":focus-visible"):!0}isIgnored(r){if(this.disabled)return!0;if(r!=null)for(let o of r.composedPath()){if(o===this.target)break;if("hasAttribute"in o&&o.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};j.elementDefinitions={};j.styles=_n;de([(0,re.property)({type:Boolean})],j.prototype,"primary",void 0);de([(0,re.property)({type:Boolean})],j.prototype,"secondary",void 0);de([(0,re.property)({type:Boolean})],j.prototype,"unbounded",void 0);de([(0,re.property)({type:Boolean})],j.prototype,"activated",void 0);de([(0,re.property)({type:Boolean})],j.prototype,"selected",void 0);de([(0,re.property)({type:Boolean})],j.prototype,"disabled",void 0);de([(0,re.state)()],j.prototype,"hovered",void 0);de([(0,re.state)()],j.prototype,"focused",void 0);de([(0,re.state)()],j.prototype,"pressed",void 0);de([(0,re.state)()],j.prototype,"rippling",void 0);de([(0,re.state)()],j.prototype,"originX",void 0);de([(0,re.state)()],j.prototype,"originY",void 0);de([(0,re.query)(".ft-ripple")],j.prototype,"ripple",void 0);de([(0,re.query)(".ft-ripple--effect")],j.prototype,"rippleEffect",void 0);(0,Ia.customElement)("ft-ripple")(j);var Ci=C(k());var Oi=C(G()),Y=C(ne()),Xt=C(k());var Ya=C(k());var yo=globalThis,hr=yo.trustedTypes,Pa=hr?hr.createPolicy("lit-html",{createHTML:e=>e}):void 0,Ua="$lit$",ze=`lit$${(Math.random()+"").slice(9)}$`,Ma="?"+ze,hc=`<${Ma}>`,ct=document,yr=()=>ct.createComment(""),zt=e=>e===null||typeof e!="object"&&typeof e!="function",$a=Array.isArray,yc=e=>$a(e)||typeof e?.[Symbol.iterator]=="function",co=`[
486
486
  \f\r]`,Ht=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ta=/-->/g,_a=/>/g,it=RegExp(`>|${co}(?:([^\\s"'>=/]+)(${co}*=${co}*(?:[^
487
- \f\r"'\`<>=]|("|')|))|$)`,"g"),ka=/'/g,Da=/"/g,Wa=/^(?:script|style|textarea|title)$/i,Fa=e=>(r,...o)=>({_$litType$:e,strings:r,values:o}),Ha=Fa(1),za=Fa(2),Gt=Symbol.for("lit-noChange"),Q=Symbol.for("lit-nothing"),Ba=new WeakMap,st=ct.createTreeWalker(ct,129);function Ga(e,r){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return Pa!==void 0?Pa.createHTML(r):r}var mc=(e,r)=>{let o=e.length-1,n=[],a,i=r===2?"<svg>":"",c=Ht;for(let d=0;d<o;d++){let f=e[d],u,h,m=-1,g=0;for(;g<f.length&&(c.lastIndex=g,h=c.exec(f),h!==null);)g=c.lastIndex,c===Ht?h[1]==="!--"?c=Ta:h[1]!==void 0?c=_a:h[2]!==void 0?(Wa.test(h[2])&&(a=RegExp("</"+h[2],"g")),c=it):h[3]!==void 0&&(c=it):c===it?h[0]===">"?(c=a??Ht,m=-1):h[1]===void 0?m=-2:(m=c.lastIndex-h[2].length,u=h[1],c=h[3]===void 0?it:h[3]==='"'?Da:ka):c===Da||c===ka?c=it:c===Ta||c===_a?c=Ht:(c=it,a=void 0);let v=c===it&&e[d+1].startsWith("/>")?" ":"";i+=c===Ht?f+hc:m>=0?(n.push(u),f.slice(0,m)+Ua+f.slice(m)+ze+v):f+ze+(m===-2?d:v)}return[Ga(e,i+(e[o]||"<?>")+(r===2?"</svg>":"")),n]},jt=class e{constructor({strings:r,_$litType$:o},n){let a;this.parts=[];let i=0,c=0,d=r.length-1,f=this.parts,[u,h]=mc(r,o);if(this.el=e.createElement(u,n),st.currentNode=this.el.content,o===2){let m=this.el.content.firstChild;m.replaceWith(...m.childNodes)}for(;(a=st.nextNode())!==null&&f.length<d;){if(a.nodeType===1){if(a.hasAttributes())for(let m of a.getAttributeNames())if(m.endsWith(Ua)){let g=h[c++],v=a.getAttribute(m).split(ze),x=/([.?@])?(.*)/.exec(g);f.push({type:1,index:i,name:x[2],strings:v,ctor:x[1]==="."?uo:x[1]==="?"?fo:x[1]==="@"?po:Lt}),a.removeAttribute(m)}else m.startsWith(ze)&&(f.push({type:6,index:i}),a.removeAttribute(m));if(Wa.test(a.tagName)){let m=a.textContent.split(ze),g=m.length-1;if(g>0){a.textContent=hr?hr.emptyScript:"";for(let v=0;v<g;v++)a.append(m[v],yr()),st.nextNode(),f.push({type:2,index:++i});a.append(m[g],yr())}}}else if(a.nodeType===8)if(a.data===Ma)f.push({type:2,index:i});else{let m=-1;for(;(m=a.data.indexOf(ze,m+1))!==-1;)f.push({type:7,index:i}),m+=ze.length-1}i++}}static createElement(r,o){let n=ct.createElement("template");return n.innerHTML=r,n}};function Rt(e,r,o=e,n){if(r===Gt)return r;let a=n!==void 0?o._$Co?.[n]:o._$Cl,i=zt(r)?void 0:r._$litDirective$;return a?.constructor!==i&&(a?._$AO?.(!1),i===void 0?a=void 0:(a=new i(e),a._$AT(e,o,n)),n!==void 0?(o._$Co??=[])[n]=a:o._$Cl=a),a!==void 0&&(r=Rt(e,a._$AS(e,r.values),a,n)),r}var lo=class{constructor(r,o){this._$AV=[],this._$AN=void 0,this._$AD=r,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(r){let{el:{content:o},parts:n}=this._$AD,a=(r?.creationScope??ct).importNode(o,!0);st.currentNode=a;let i=st.nextNode(),c=0,d=0,f=n[0];for(;f!==void 0;){if(c===f.index){let u;f.type===2?u=new mr(i,i.nextSibling,this,r):f.type===1?u=new f.ctor(i,f.name,f.strings,this,r):f.type===6&&(u=new ho(i,this,r)),this._$AV.push(u),f=n[++d]}c!==f?.index&&(i=st.nextNode(),c++)}return st.currentNode=ct,a}p(r){let o=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(r,n,o),o+=n.strings.length-2):n._$AI(r[o])),o++}},mr=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(r,o,n,a){this.type=2,this._$AH=Q,this._$AN=void 0,this._$AA=r,this._$AB=o,this._$AM=n,this.options=a,this._$Cv=a?.isConnected??!0}get parentNode(){let r=this._$AA.parentNode,o=this._$AM;return o!==void 0&&r?.nodeType===11&&(r=o.parentNode),r}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(r,o=this){r=Rt(this,r,o),zt(r)?r===Q||r==null||r===""?(this._$AH!==Q&&this._$AR(),this._$AH=Q):r!==this._$AH&&r!==Gt&&this._(r):r._$litType$!==void 0?this.g(r):r.nodeType!==void 0?this.$(r):yc(r)?this.T(r):this._(r)}k(r){return this._$AA.parentNode.insertBefore(r,this._$AB)}$(r){this._$AH!==r&&(this._$AR(),this._$AH=this.k(r))}_(r){this._$AH!==Q&&zt(this._$AH)?this._$AA.nextSibling.data=r:this.$(ct.createTextNode(r)),this._$AH=r}g(r){let{values:o,_$litType$:n}=r,a=typeof n=="number"?this._$AC(r):(n.el===void 0&&(n.el=jt.createElement(Ga(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===a)this._$AH.p(o);else{let i=new lo(a,this),c=i.u(this.options);i.p(o),this.$(c),this._$AH=i}}_$AC(r){let o=Ba.get(r.strings);return o===void 0&&Ba.set(r.strings,o=new jt(r)),o}T(r){$a(this._$AH)||(this._$AH=[],this._$AR());let o=this._$AH,n,a=0;for(let i of r)a===o.length?o.push(n=new e(this.k(yr()),this.k(yr()),this,this.options)):n=o[a],n._$AI(i),a++;a<o.length&&(this._$AR(n&&n._$AB.nextSibling,a),o.length=a)}_$AR(r=this._$AA.nextSibling,o){for(this._$AP?.(!1,!0,o);r&&r!==this._$AB;){let n=r.nextSibling;r.remove(),r=n}}setConnected(r){this._$AM===void 0&&(this._$Cv=r,this._$AP?.(r))}},Lt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(r,o,n,a,i){this.type=1,this._$AH=Q,this._$AN=void 0,this.element=r,this.name=o,this._$AM=a,this.options=i,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=Q}_$AI(r,o=this,n,a){let i=this.strings,c=!1;if(i===void 0)r=Rt(this,r,o,0),c=!zt(r)||r!==this._$AH&&r!==Gt,c&&(this._$AH=r);else{let d=r,f,u;for(r=i[0],f=0;f<i.length-1;f++)u=Rt(this,d[n+f],o,f),u===Gt&&(u=this._$AH[f]),c||=!zt(u)||u!==this._$AH[f],u===Q?r=Q:r!==Q&&(r+=(u??"")+i[f+1]),this._$AH[f]=u}c&&!a&&this.O(r)}O(r){r===Q?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,r??"")}},uo=class extends Lt{constructor(){super(...arguments),this.type=3}O(r){this.element[this.name]=r===Q?void 0:r}},fo=class extends Lt{constructor(){super(...arguments),this.type=4}O(r){this.element.toggleAttribute(this.name,!!r&&r!==Q)}},po=class extends Lt{constructor(r,o,n,a,i){super(r,o,n,a,i),this.type=5}_$AI(r,o=this){if((r=Rt(this,r,o,0)??Q)===Gt)return;let n=this._$AH,a=r===Q&&n!==Q||r.capture!==n.capture||r.once!==n.once||r.passive!==n.passive,i=r!==Q&&(n===Q||a);a&&this.element.removeEventListener(this.name,this,n),i&&this.element.addEventListener(this.name,this,r),this._$AH=r}handleEvent(r){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,r):this._$AH.handleEvent(r)}},ho=class{constructor(r,o,n){this.element=r,this.type=6,this._$AN=void 0,this._$AM=o,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(r){Rt(this,r)}};var gc=yo.litHtmlPolyfillSupport;gc?.(jt,mr),(yo.litHtmlVersions??=[]).push("3.1.0");var Va=Symbol.for(""),bc=e=>{if(e?.r===Va)return e?._$litStatic$},mo=e=>({_$litStatic$:e,r:Va});var ja=new Map,Ka=e=>(r,...o)=>{let n=o.length,a,i,c=[],d=[],f,u=0,h=!1;for(;u<n;){for(f=r[u];u<n&&(i=o[u],(a=bc(i))!==void 0);)f+=a+r[++u],h=!0;u!==n&&d.push(i),c.push(f),u++}if(u===n&&c.push(r[n]),h){let m=c.join("$$lit$$");(r=ja.get(m))===void 0&&(c.raw=c,ja.set(m,r=c)),o=d}return e(r,...o)},go=Ka(Ha),dh=Ka(za);var bo=C(ne()),qa=C(k());var Ge;(function(e){e.title="title",e.title_dense="title-dense",e.subtitle1="subtitle1",e.subtitle2="subtitle2",e.body1="body1",e.body2="body2",e.caption="caption",e.breadcrumb="breadcrumb",e.overline="overline",e.button="button",e.display="display",e.title1="title-1",e.title2="title-2",e.title3="title-3",e.body1regular="body-1-regular",e.body1medium="body-1-medium",e.body1semibold="body-1-semibold",e.body2regular="body-2-regular",e.body2medium="body-2-medium",e.body2semibold="body-2-semibold",e.label1medium="label-1-medium",e.label1semibold="label-1-semibold",e.label1bold="label-1-bold",e.label2medium="label-2-medium",e.label2semibold="label-2-semibold",e.label2bold="label-2-bold",e.caption1medium="caption-1-medium",e.caption1semibold="caption-1-semibold",e.caption1bold="caption-1-bold",e.caption2medium="caption-2-medium",e.caption2semibold="caption-2-semibold",e.caption2bold="caption-2-bold"})(Ge||(Ge={}));var Za=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},xe=class extends qa.FtLitElement{constructor(){super(...arguments),this.variant=Ge.body1}render(){return this.element?go`
487
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),ka=/'/g,Da=/"/g,Wa=/^(?:script|style|textarea|title)$/i,Fa=e=>(r,...o)=>({_$litType$:e,strings:r,values:o}),Ha=Fa(1),za=Fa(2),Gt=Symbol.for("lit-noChange"),J=Symbol.for("lit-nothing"),Ba=new WeakMap,st=ct.createTreeWalker(ct,129);function Ga(e,r){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return Pa!==void 0?Pa.createHTML(r):r}var mc=(e,r)=>{let o=e.length-1,n=[],a,i=r===2?"<svg>":"",c=Ht;for(let d=0;d<o;d++){let f=e[d],u,h,m=-1,g=0;for(;g<f.length&&(c.lastIndex=g,h=c.exec(f),h!==null);)g=c.lastIndex,c===Ht?h[1]==="!--"?c=Ta:h[1]!==void 0?c=_a:h[2]!==void 0?(Wa.test(h[2])&&(a=RegExp("</"+h[2],"g")),c=it):h[3]!==void 0&&(c=it):c===it?h[0]===">"?(c=a??Ht,m=-1):h[1]===void 0?m=-2:(m=c.lastIndex-h[2].length,u=h[1],c=h[3]===void 0?it:h[3]==='"'?Da:ka):c===Da||c===ka?c=it:c===Ta||c===_a?c=Ht:(c=it,a=void 0);let v=c===it&&e[d+1].startsWith("/>")?" ":"";i+=c===Ht?f+hc:m>=0?(n.push(u),f.slice(0,m)+Ua+f.slice(m)+ze+v):f+ze+(m===-2?d:v)}return[Ga(e,i+(e[o]||"<?>")+(r===2?"</svg>":"")),n]},jt=class e{constructor({strings:r,_$litType$:o},n){let a;this.parts=[];let i=0,c=0,d=r.length-1,f=this.parts,[u,h]=mc(r,o);if(this.el=e.createElement(u,n),st.currentNode=this.el.content,o===2){let m=this.el.content.firstChild;m.replaceWith(...m.childNodes)}for(;(a=st.nextNode())!==null&&f.length<d;){if(a.nodeType===1){if(a.hasAttributes())for(let m of a.getAttributeNames())if(m.endsWith(Ua)){let g=h[c++],v=a.getAttribute(m).split(ze),x=/([.?@])?(.*)/.exec(g);f.push({type:1,index:i,name:x[2],strings:v,ctor:x[1]==="."?uo:x[1]==="?"?fo:x[1]==="@"?po:Lt}),a.removeAttribute(m)}else m.startsWith(ze)&&(f.push({type:6,index:i}),a.removeAttribute(m));if(Wa.test(a.tagName)){let m=a.textContent.split(ze),g=m.length-1;if(g>0){a.textContent=hr?hr.emptyScript:"";for(let v=0;v<g;v++)a.append(m[v],yr()),st.nextNode(),f.push({type:2,index:++i});a.append(m[g],yr())}}}else if(a.nodeType===8)if(a.data===Ma)f.push({type:2,index:i});else{let m=-1;for(;(m=a.data.indexOf(ze,m+1))!==-1;)f.push({type:7,index:i}),m+=ze.length-1}i++}}static createElement(r,o){let n=ct.createElement("template");return n.innerHTML=r,n}};function Rt(e,r,o=e,n){if(r===Gt)return r;let a=n!==void 0?o._$Co?.[n]:o._$Cl,i=zt(r)?void 0:r._$litDirective$;return a?.constructor!==i&&(a?._$AO?.(!1),i===void 0?a=void 0:(a=new i(e),a._$AT(e,o,n)),n!==void 0?(o._$Co??=[])[n]=a:o._$Cl=a),a!==void 0&&(r=Rt(e,a._$AS(e,r.values),a,n)),r}var lo=class{constructor(r,o){this._$AV=[],this._$AN=void 0,this._$AD=r,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(r){let{el:{content:o},parts:n}=this._$AD,a=(r?.creationScope??ct).importNode(o,!0);st.currentNode=a;let i=st.nextNode(),c=0,d=0,f=n[0];for(;f!==void 0;){if(c===f.index){let u;f.type===2?u=new mr(i,i.nextSibling,this,r):f.type===1?u=new f.ctor(i,f.name,f.strings,this,r):f.type===6&&(u=new ho(i,this,r)),this._$AV.push(u),f=n[++d]}c!==f?.index&&(i=st.nextNode(),c++)}return st.currentNode=ct,a}p(r){let o=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(r,n,o),o+=n.strings.length-2):n._$AI(r[o])),o++}},mr=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(r,o,n,a){this.type=2,this._$AH=J,this._$AN=void 0,this._$AA=r,this._$AB=o,this._$AM=n,this.options=a,this._$Cv=a?.isConnected??!0}get parentNode(){let r=this._$AA.parentNode,o=this._$AM;return o!==void 0&&r?.nodeType===11&&(r=o.parentNode),r}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(r,o=this){r=Rt(this,r,o),zt(r)?r===J||r==null||r===""?(this._$AH!==J&&this._$AR(),this._$AH=J):r!==this._$AH&&r!==Gt&&this._(r):r._$litType$!==void 0?this.g(r):r.nodeType!==void 0?this.$(r):yc(r)?this.T(r):this._(r)}k(r){return this._$AA.parentNode.insertBefore(r,this._$AB)}$(r){this._$AH!==r&&(this._$AR(),this._$AH=this.k(r))}_(r){this._$AH!==J&&zt(this._$AH)?this._$AA.nextSibling.data=r:this.$(ct.createTextNode(r)),this._$AH=r}g(r){let{values:o,_$litType$:n}=r,a=typeof n=="number"?this._$AC(r):(n.el===void 0&&(n.el=jt.createElement(Ga(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===a)this._$AH.p(o);else{let i=new lo(a,this),c=i.u(this.options);i.p(o),this.$(c),this._$AH=i}}_$AC(r){let o=Ba.get(r.strings);return o===void 0&&Ba.set(r.strings,o=new jt(r)),o}T(r){$a(this._$AH)||(this._$AH=[],this._$AR());let o=this._$AH,n,a=0;for(let i of r)a===o.length?o.push(n=new e(this.k(yr()),this.k(yr()),this,this.options)):n=o[a],n._$AI(i),a++;a<o.length&&(this._$AR(n&&n._$AB.nextSibling,a),o.length=a)}_$AR(r=this._$AA.nextSibling,o){for(this._$AP?.(!1,!0,o);r&&r!==this._$AB;){let n=r.nextSibling;r.remove(),r=n}}setConnected(r){this._$AM===void 0&&(this._$Cv=r,this._$AP?.(r))}},Lt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(r,o,n,a,i){this.type=1,this._$AH=J,this._$AN=void 0,this.element=r,this.name=o,this._$AM=a,this.options=i,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=J}_$AI(r,o=this,n,a){let i=this.strings,c=!1;if(i===void 0)r=Rt(this,r,o,0),c=!zt(r)||r!==this._$AH&&r!==Gt,c&&(this._$AH=r);else{let d=r,f,u;for(r=i[0],f=0;f<i.length-1;f++)u=Rt(this,d[n+f],o,f),u===Gt&&(u=this._$AH[f]),c||=!zt(u)||u!==this._$AH[f],u===J?r=J:r!==J&&(r+=(u??"")+i[f+1]),this._$AH[f]=u}c&&!a&&this.O(r)}O(r){r===J?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,r??"")}},uo=class extends Lt{constructor(){super(...arguments),this.type=3}O(r){this.element[this.name]=r===J?void 0:r}},fo=class extends Lt{constructor(){super(...arguments),this.type=4}O(r){this.element.toggleAttribute(this.name,!!r&&r!==J)}},po=class extends Lt{constructor(r,o,n,a,i){super(r,o,n,a,i),this.type=5}_$AI(r,o=this){if((r=Rt(this,r,o,0)??J)===Gt)return;let n=this._$AH,a=r===J&&n!==J||r.capture!==n.capture||r.once!==n.once||r.passive!==n.passive,i=r!==J&&(n===J||a);a&&this.element.removeEventListener(this.name,this,n),i&&this.element.addEventListener(this.name,this,r),this._$AH=r}handleEvent(r){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,r):this._$AH.handleEvent(r)}},ho=class{constructor(r,o,n){this.element=r,this.type=6,this._$AN=void 0,this._$AM=o,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(r){Rt(this,r)}};var gc=yo.litHtmlPolyfillSupport;gc?.(jt,mr),(yo.litHtmlVersions??=[]).push("3.1.0");var Va=Symbol.for(""),bc=e=>{if(e?.r===Va)return e?._$litStatic$},mo=e=>({_$litStatic$:e,r:Va});var ja=new Map,Ka=e=>(r,...o)=>{let n=o.length,a,i,c=[],d=[],f,u=0,h=!1;for(;u<n;){for(f=r[u];u<n&&(i=o[u],(a=bc(i))!==void 0);)f+=a+r[++u],h=!0;u!==n&&d.push(i),c.push(f),u++}if(u===n&&c.push(r[n]),h){let m=c.join("$$lit$$");(r=ja.get(m))===void 0&&(c.raw=c,ja.set(m,r=c)),o=d}return e(r,...o)},go=Ka(Ha),dh=Ka(za);var bo=C(ne()),qa=C(k());var Ge;(function(e){e.title="title",e.title_dense="title-dense",e.subtitle1="subtitle1",e.subtitle2="subtitle2",e.body1="body1",e.body2="body2",e.caption="caption",e.breadcrumb="breadcrumb",e.overline="overline",e.button="button",e.display="display",e.title1="title-1",e.title2="title-2",e.title3="title-3",e.body1regular="body-1-regular",e.body1medium="body-1-medium",e.body1semibold="body-1-semibold",e.body2regular="body-2-regular",e.body2medium="body-2-medium",e.body2semibold="body-2-semibold",e.label1medium="label-1-medium",e.label1semibold="label-1-semibold",e.label1bold="label-1-bold",e.label2medium="label-2-medium",e.label2semibold="label-2-semibold",e.label2bold="label-2-bold",e.caption1medium="caption-1-medium",e.caption1semibold="caption-1-semibold",e.caption1bold="caption-1-bold",e.caption2medium="caption-2-medium",e.caption2semibold="caption-2-semibold",e.caption2bold="caption-2-bold"})(Ge||(Ge={}));var Za=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},xe=class extends qa.FtLitElement{constructor(){super(...arguments),this.variant=Ge.body1}render(){return this.element?go`
488
488
  <${mo(this.element)}
489
489
  part="text"
490
490
  class="ft-typography ft-typography--${this.variant}">
@@ -539,7 +539,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
539
539
  </div>
540
540
  </div>
541
541
  </div>
542
- `}updated(r){r.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(r)}contentAvailableCallback(r){super.contentAvailableCallback(r),["visible","text"].some(o=>r.has(o))&&this.visible&&this.positionTooltip()}async show(r){this.visible=!0,r!=null&&await this.hideDebounce.run(()=>{this.hide()},r)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var r;return((r=this.slotNodes)!==null&&r!==void 0?r:[]).filter(o=>o.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let r=this.tooltipContent.style;switch(r.transition="none",this.validPosition){case"top":r.top=this.tooltip.clientHeight+"px",r.left="0";break;case"bottom":r.top=-this.tooltip.clientHeight+"px",r.left="0";break;case"left":r.top="0",r.left=this.tooltip.clientWidth+"px";break;case"right":r.top="0",r.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",Si(this.slottedElement,this.tooltip,this.position).then(({x:r,y:o})=>{this.tooltip&&(this.tooltip.style.left=`${r}px`,this.tooltip.style.top=`${o}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout(()=>window.addEventListener("touchstart",r=>{r.composedPath().includes(this.container)||this.onOut()},{once:!0}),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(r,o){return Math.max(r,Math.min(0,-o))}};V.elementDefinitions={"ft-typography":xe};V.styles=Qa;fe([(0,q.property)()],V.prototype,"text",void 0);fe([(0,q.property)({type:Boolean})],V.prototype,"manual",void 0);fe([(0,q.property)({type:Boolean})],V.prototype,"inline",void 0);fe([(0,q.property)({type:Number})],V.prototype,"delay",void 0);fe([(0,q.property)()],V.prototype,"position",void 0);fe([(0,q.queryAssignedNodes)()],V.prototype,"slotNodes",void 0);fe([(0,q.query)(".ft-tooltip--container")],V.prototype,"container",void 0);fe([(0,q.query)(".ft-tooltip")],V.prototype,"tooltip",void 0);fe([(0,q.query)(".ft-tooltip--content")],V.prototype,"tooltipContent",void 0);fe([(0,q.state)()],V.prototype,"visible",void 0);fe([(0,q.eventOptions)({passive:!0})],V.prototype,"onTouch",null);fe([(0,q.eventOptions)({passive:!0})],V.prototype,"onHover",null);fe([(0,q.eventOptions)({passive:!0})],V.prototype,"onOut",null);fe([(0,q.eventOptions)({passive:!0})],V.prototype,"onClick",null);(0,Ci.customElement)("ft-tooltip")(V);var Ri=C(k());var Qt=C(G()),ut=C(ne()),Ai=C(k()),Ni=C(wi());var Cr;(function(e){e.ADD_TO_PBK="&#xe800;",e.ALERT="&#xe801;",e.ADD_ALERT="&#xe802;",e.BACK_TO_SEARCH="&#xe803;",e.ADD_BOOKMARK="&#xe804;",e.BOOKMARK="&#xe805;",e.BOOKS="&#xe806;",e.MENU="&#xe807;",e.DOWNLOAD="&#xe808;",e.EDIT="&#xe809;",e.FEEDBACK="&#xe80a;",e.HOME="&#xe80b;",e.MODIFY_PBK="&#xe80c;",e.SCHEDULED="&#xe80d;",e.SEARCH="&#xe80e;",e.EXPORT="&#xe80f;",e.TOC="&#xe810;",e.WRITE_UGC="&#xe811;",e.TRASH="&#xe812;",e.USER="&#xe813;",e.EXTLINK="&#xe814;",e.CALENDAR="&#xe815;",e.OFFLINE="&#xe816;",e.BOOK="&#xe817;",e.DOWNLOAD_PLAIN="&#xe818;",e.CHECK="&#xe819;",e.STAR_PLAIN="&#xe900;",e.TOPICS="&#xe901;",e.DISC="&#xe902;",e.CIRCLE="&#xe903;",e.SHARED="&#xe904;",e.SORT_UNSORTED="&#xe905;",e.SORT_UP="&#xe906;",e.SORT_DOWN="&#xe907;",e.WORKING="&#xe908;",e.CLOSE="&#xe909;",e.ZOOM_OUT="&#xe90a;",e.ZOOM_IN="&#xe90b;",e.ZOOM_REALSIZE="&#xe90c;",e.ZOOM_FULLSCREEN="&#xe90d;",e.ADMIN_RESTRICTED="&#xe90e;",e.ADMIN="&#xe90f;",e.ADMIN_KHUB="&#xe910;",e.ADMIN_THEME="&#xe911;",e.ADMIN_USERS="&#xe912;",e.WARNING="&#xe913;",e.CONTEXT="&#xe914;",e.SEARCH_HOME="&#xe915;",e.STEPS="&#xe916;",e.ICON_EXPAND="&#xe917;",e.ICON_COLLAPSE="&#xe918;",e.EXPAND="&#xe9a3",e.COMPRESS="&#xe9a2;",e.INFO="&#xe919;",e.MINUS_PLAIN="&#xe91a;",e.PLUS_PLAIN="&#xe91b;",e.FACET_HAS_DESCENDANT="&#xe91c;",e.TRIANGLE_BOTTOM="&#xe91d;",e.TRIANGLE_LEFT="&#xe91e;",e.TRIANGLE_RIGHT="&#xe91f;",e.TRIANGLE_TOP="&#xe920;",e.THIN_ARROW="&#xe921;",e.SIGN_IN="&#xe922;",e.LOGOUT="&#xe923;",e.TRANSLATE="&#xe924;",e.CLOSE_PLAIN="&#xe925;",e.CHECK_PLAIN="&#xe926;",e.ARTICLE="&#xe927;",e.COLUMNS="&#xe928;",e.ANALYTICS="&#xe929;",e.COLLECTIONS="&#xe92a;",e.ARROW_DOWN="&#xe92b;",e.ARROW_LEFT="&#xe92c;",e.ARROW_RIGHT="&#xe92d;",e.ARROW_UP="&#xe92e;",e.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="&#xe9a0;",e.SEARCH_IN_PUBLICATION="&#xe92f;",e.COPY_TO_CLIPBOARD="&#xe930;",e.SHARED_PBK="&#xe931;",e.ATTACHMENTS="&#xe932;",e.STRIPE_ARROW_LEFT="&#xe933;",e.STRIPE_ARROW_RIGHT="&#xe934;",e.FILTERS="&#xe935;",e.DOT="&#xe936;",e.MINUS="&#xe937;",e.PLUS="&#xe938;",e.MAILS_AND_NOTIFICATIONS="&#xe939;",e.SAVE="&#xe93a;",e.LOCKER="&#xe93b;",e.ADMIN_INTEGRATION="&#xe93c;",e.SYNC="&#xe93d;",e.TAG="&#xe93e;",e.BOOK_PLAIN="&#xe93f;",e.UPLOAD="&#xe940;",e.ONLINE="&#xe941;",e.TAG_PLAIN="&#xe942;",e.ACCOUNT_SETTINGS="&#xe943;",e.PRINT="&#xe944;",e.DEFAULT_ROLES="&#xe945;",e.SHORTCUT_MENU="&#xe946;",e.RELATIVES_PLAIN="&#xe947;",e.RELATIVES="&#xe948;",e.PAUSE="&#xe949;",e.PLAY="&#xe94a;",e.ADMIN_PORTAL="&#xe94b;",e.STAR="&#xe94c;",e.THUMBS_DOWN="&#xe94d;",e.THUMBS_DOWN_PLAIN="&#xe94e;",e.THUMBS_UP="&#xe94f;",e.THUMBS_UP_PLAIN="&#xe950;",e.FEEDBACK_PLAIN="&#xe951;",e.RATE_PLAIN="&#xe952;",e.RATE="&#xe953;",e.OFFLINE_SETTINGS="&#xe954;",e.MY_COLLECTIONS="&#xe955;",e.THIN_ARROW_LEFT="&#xe956;",e.THIN_ARROW_RIGHT="&#xe957;",e.RESET="&#xe958;",e.MY_LIBRARY="&#xe959;",e.UNSTRUCTURED_DOC="&#xe95a;",e.CONTEXTUAL="&#xe95b;",e.THIN_ARROW_UP="&#xe95c;",e.ARROW_RIGHT_TO_LINE="&#xe95d;",e.DESKTOP="&#xe95e;",e.TABLET_LANDSCAPE="&#xe95f;",e.TABLET_PORTRAIT="&#xe960;",e.MOBILE_LANDSCAPE="&#xe961;",e.MOBILE_PORTRAIT="&#xe962;",e.DIAGRAM_SUNBURST="&#xe963;",e.DIAGRAM_SANKEY="&#xe964;",e.COMMENT_QUESTION="&#xe965;",e.COMMENT_QUESTION_PLAIN="&#xe966;",e.MESSAGE_BOT="&#xe967;",e.CHART_SIMPLE="&#xe968;",e.BARS_PROGRESS="&#xe969;",e.BOOK_OPEN_GEAR="&#xe96a;",e.BOOK_OPEN_GEAR_SLASH="&#xe96b;",e.LINE_CHART="&#xe96c;",e.STACKED_CHART="&#xe96d;",e.CHART_BAR_STACKED="&#xe96e;",e.CHART_BAR_GROUPED="&#xe96f;",e.EYE_SLASH="&#xe970;",e.X_MARK="&#xe971;",e.EXPAND_WIDE="&#xe972;",e.PIP="&#xe973;",e.PIP_WIDE="&#xe974;",e.LIFE_RING="&#xe975;",e.GLOBE="&#xe976;",e.PIGGY_BANK="&#xe977;",e.EXTLINK_LIGHT="&#xe978;",e.CLONE="&#xe979;",e.CLONE_LINK_SIMPLE="&#xe97a;",e.CHART_BAR_NORMALIZED="&#xe97b;",e.CONSUMER="&#xe97c;",e.OCTAGON_XMARK="&#xe97d;",e.HOURGLASS_HALF="&#xe97e;",e.CLOCK="&#xe97f;",e.CLOCK_THREE="&#xe97f;",e.CALENDAR_DAY="&#xe980;",e.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",e.WAND_MAGIC_SPARKLES="&#xe982;",e.PAPER_PLANE="&#xe983;",e.PAPER_PLANE_SLASH="&#xe9a1;",e.CIRCLE_STOP="&#xe984;",e.ARROW_ROTATE_RIGHT="&#xe985;",e.ARROW_ROTATE_LEFT="&#xe9a4;",e.ARROWS_ROTATE="&#xe986;",e.ALIGN_RIGHT="&#xe987;",e.FORMAT_CLEAR="&#xe988;",e.ALIGN_CENTER="&#xe989;",e.ALIGN_LEFT="&#xe98a;",e.PALETTE="&#xe98b;",e.BOLD="&#xe98c;",e.ITALIC="&#xe98d;",e.UNDERLINE="&#xe98e;",e.STRIKETHROUGH="&#xe98f;",e.LINK_SIMPLE_SLASH="&#xe990;",e.LINK_SIMPLE="&#xe991;",e.ROUTE="&#xe992;",e.CIRCLE_USER_SLASH="&#xe993;",e.CIRCLE_USER_CHECK="&#xe994;",e.LIST_MAGNIFYING_GLASS="&#xe995;",e.MEDAL="&#xe996;",e.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",e.ARROW_TURN_DOWN_RIGHT="&#xe998;",e.FLASK="&#xe999;",e.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",e.HOURGLASS_END="&#xe99b;",e.CIRCLE_QUESTION="&#xe99c;",e.EYE="&#xf06e;",e.SHARE="&#xe80f1;",e.GRIP_LINES_SOLID="&#xe99d;",e.TRANSLATE_SPARKLE_SOLID="&#xe99e;",e.CODE="&#xe99f;"})(Cr||(Cr={}));var w;(function(e){e.UNKNOWN="&#xe90a;",e.ABW="&#xe900;",e.AUDIO="&#xe901;",e.AVI="&#xe902;",e.CHM="&#xe904;",e.CODE="&#xe905;",e.CSV="&#xe903;",e.DITA="&#xe906;",e.EPUB="&#xe907;",e.EXCEL="&#xe908;",e.FLAC="&#xe909;",e.GIF="&#xe90b;",e.GZIP="&#xe90c;",e.HTML="&#xe90d;",e.IMAGE="&#xe90e;",e.JPEG="&#xe90f;",e.JSON="&#xe910;",e.M4A="&#xe911;",e.MOV="&#xe912;",e.MP3="&#xe913;",e.MP4="&#xe914;",e.OGG="&#xe915;",e.PDF="&#xe916;",e.PNG="&#xe917;",e.POWERPOINT="&#xe918;",e.RAR="&#xe91a;",e.STP="&#xe91b;",e.TEXT="&#xe91c;",e.VIDEO="&#xe91e;",e.WAV="&#xe91f;",e.WMA="&#xe920;",e.WORD="&#xe921;",e.XML="&#xe922;",e.YAML="&#xe919;",e.ZIP="&#xe923;"})(w||(w={}));var oy=new Map([...["abw"].map(e=>[e,w.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(e=>[e,w.AUDIO]),...["avi"].map(e=>[e,w.AVI]),...["chm","xhs"].map(e=>[e,w.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(e=>[e,w.CODE]),...["csv"].map(e=>[e,w.CSV]),...["dita","ditamap","ditaval"].map(e=>[e,w.DITA]),...["epub"].map(e=>[e,w.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(e=>[e,w.EXCEL]),...["flac"].map(e=>[e,w.FLAC]),...["gif"].map(e=>[e,w.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(e=>[e,w.GZIP]),...["html","htm","xhtml"].map(e=>[e,w.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(e=>[e,w.IMAGE]),...["jpeg","jpg","jpe"].map(e=>[e,w.JPEG]),...["json"].map(e=>[e,w.JSON]),...["m4a","m4p"].map(e=>[e,w.M4A]),...["mov","qt"].map(e=>[e,w.MOV]),...["mp3"].map(e=>[e,w.MP3]),...["mp4","m4v"].map(e=>[e,w.MP4]),...["ogg","oga"].map(e=>[e,w.OGG]),...["pdf","ps"].map(e=>[e,w.PDF]),...["png"].map(e=>[e,w.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(e=>[e,w.POWERPOINT]),...["rar"].map(e=>[e,w.RAR]),...["stp"].map(e=>[e,w.STP]),...["txt","rtf","md","mdown"].map(e=>[e,w.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(e=>[e,w.VIDEO]),...["wav"].map(e=>[e,w.WAV]),...["wma"].map(e=>[e,w.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(e=>[e,w.WORD]),...["xml","xsl","rdf"].map(e=>[e,w.XML]),...["yaml","yml","x-yaml"].map(e=>[e,w.YAML]),...["zip"].map(e=>[e,w.ZIP])]);var ny={[w.ABW]:"#91ABC6",[w.AUDIO]:"#1795E3",[w.AVI]:"#E63324",[w.CHM]:"#71C3EB",[w.CODE]:"#71C3EB",[w.CSV]:"#1F7345",[w.DITA]:"#71C3EB",[w.EPUB]:"#85B926",[w.EXCEL]:"#1F7345",[w.FLAC]:"#1795E3",[w.GIF]:"#59B031",[w.GZIP]:"#F8AB36",[w.HTML]:"#71C3EB",[w.IMAGE]:"#59B031",[w.JPEG]:"#59B031",[w.JSON]:"#71C3EB",[w.M4A]:"#1795E3",[w.MOV]:"#E63324",[w.MP3]:"#1795E3",[w.MP4]:"#E63324",[w.OGG]:"#1795E3",[w.PDF]:"#E44948",[w.PNG]:"#59B031",[w.POWERPOINT]:"#B54A2B",[w.RAR]:"#F8AB36",[w.STP]:"#3764B1",[w.TEXT]:"#3162AB",[w.UNKNOWN]:"#999999",[w.VIDEO]:"#E63324",[w.WAV]:"#1795E3",[w.WMA]:"#1795E3",[w.WORD]:"#3162AB",[w.XML]:"#71C3EB",[w.YAML]:"#71C3EB",[w.ZIP]:"#F8AB36"};var Ie;(function(e){e.fluid_topics="fluid-topics",e.file_format="file-format",e.material="material"})(Ie||(Ie={}));var Er=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},ge=class extends Ai.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=Qt.nothing}render(){let r=this.variant&&Object.values(Ie).includes(this.variant)?this.variant:Ie.fluid_topics,o=r!==Ie.material||!!this.value;return Qt.html`
542
+ `}updated(r){r.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(r)}contentAvailableCallback(r){super.contentAvailableCallback(r),["visible","text"].some(o=>r.has(o))&&this.visible&&this.positionTooltip()}async show(r){this.visible=!0,r!=null&&await this.hideDebounce.run(()=>{this.hide()},r)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var r;return((r=this.slotNodes)!==null&&r!==void 0?r:[]).filter(o=>o.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let r=this.tooltipContent.style;switch(r.transition="none",this.validPosition){case"top":r.top=this.tooltip.clientHeight+"px",r.left="0";break;case"bottom":r.top=-this.tooltip.clientHeight+"px",r.left="0";break;case"left":r.top="0",r.left=this.tooltip.clientWidth+"px";break;case"right":r.top="0",r.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",Si(this.slottedElement,this.tooltip,this.position).then(({x:r,y:o})=>{this.tooltip&&(this.tooltip.style.left=`${r}px`,this.tooltip.style.top=`${o}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout(()=>window.addEventListener("touchstart",r=>{r.composedPath().includes(this.container)||this.onOut()},{once:!0}),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(r,o){return Math.max(r,Math.min(0,-o))}};V.elementDefinitions={"ft-typography":xe};V.styles=Qa;fe([(0,Y.property)()],V.prototype,"text",void 0);fe([(0,Y.property)({type:Boolean})],V.prototype,"manual",void 0);fe([(0,Y.property)({type:Boolean})],V.prototype,"inline",void 0);fe([(0,Y.property)({type:Number})],V.prototype,"delay",void 0);fe([(0,Y.property)()],V.prototype,"position",void 0);fe([(0,Y.queryAssignedNodes)()],V.prototype,"slotNodes",void 0);fe([(0,Y.query)(".ft-tooltip--container")],V.prototype,"container",void 0);fe([(0,Y.query)(".ft-tooltip")],V.prototype,"tooltip",void 0);fe([(0,Y.query)(".ft-tooltip--content")],V.prototype,"tooltipContent",void 0);fe([(0,Y.state)()],V.prototype,"visible",void 0);fe([(0,Y.eventOptions)({passive:!0})],V.prototype,"onTouch",null);fe([(0,Y.eventOptions)({passive:!0})],V.prototype,"onHover",null);fe([(0,Y.eventOptions)({passive:!0})],V.prototype,"onOut",null);fe([(0,Y.eventOptions)({passive:!0})],V.prototype,"onClick",null);(0,Ci.customElement)("ft-tooltip")(V);var Ri=C(k());var Qt=C(G()),ut=C(ne()),Ai=C(k()),Ni=C(wi());var Cr;(function(e){e.ADD_TO_PBK="&#xe800;",e.ALERT="&#xe801;",e.ADD_ALERT="&#xe802;",e.BACK_TO_SEARCH="&#xe803;",e.ADD_BOOKMARK="&#xe804;",e.BOOKMARK="&#xe805;",e.BOOKS="&#xe806;",e.MENU="&#xe807;",e.DOWNLOAD="&#xe808;",e.EDIT="&#xe809;",e.FEEDBACK="&#xe80a;",e.HOME="&#xe80b;",e.MODIFY_PBK="&#xe80c;",e.SCHEDULED="&#xe80d;",e.SEARCH="&#xe80e;",e.EXPORT="&#xe80f;",e.TOC="&#xe810;",e.WRITE_UGC="&#xe811;",e.TRASH="&#xe812;",e.USER="&#xe813;",e.EXTLINK="&#xe814;",e.CALENDAR="&#xe815;",e.OFFLINE="&#xe816;",e.BOOK="&#xe817;",e.DOWNLOAD_PLAIN="&#xe818;",e.CHECK="&#xe819;",e.STAR_PLAIN="&#xe900;",e.TOPICS="&#xe901;",e.DISC="&#xe902;",e.CIRCLE="&#xe903;",e.SHARED="&#xe904;",e.SORT_UNSORTED="&#xe905;",e.SORT_UP="&#xe906;",e.SORT_DOWN="&#xe907;",e.WORKING="&#xe908;",e.CLOSE="&#xe909;",e.ZOOM_OUT="&#xe90a;",e.ZOOM_IN="&#xe90b;",e.ZOOM_REALSIZE="&#xe90c;",e.ZOOM_FULLSCREEN="&#xe90d;",e.ADMIN_RESTRICTED="&#xe90e;",e.ADMIN="&#xe90f;",e.ADMIN_KHUB="&#xe910;",e.ADMIN_THEME="&#xe911;",e.ADMIN_USERS="&#xe912;",e.WARNING="&#xe913;",e.CONTEXT="&#xe914;",e.SEARCH_HOME="&#xe915;",e.STEPS="&#xe916;",e.ICON_EXPAND="&#xe917;",e.ICON_COLLAPSE="&#xe918;",e.EXPAND="&#xe9a3",e.COMPRESS="&#xe9a2;",e.INFO="&#xe919;",e.MINUS_PLAIN="&#xe91a;",e.PLUS_PLAIN="&#xe91b;",e.FACET_HAS_DESCENDANT="&#xe91c;",e.TRIANGLE_BOTTOM="&#xe91d;",e.TRIANGLE_LEFT="&#xe91e;",e.TRIANGLE_RIGHT="&#xe91f;",e.TRIANGLE_TOP="&#xe920;",e.THIN_ARROW="&#xe921;",e.SIGN_IN="&#xe922;",e.LOGOUT="&#xe923;",e.TRANSLATE="&#xe924;",e.CLOSE_PLAIN="&#xe925;",e.CHECK_PLAIN="&#xe926;",e.ARTICLE="&#xe927;",e.COLUMNS="&#xe928;",e.ANALYTICS="&#xe929;",e.COLLECTIONS="&#xe92a;",e.ARROW_DOWN="&#xe92b;",e.ARROW_LEFT="&#xe92c;",e.ARROW_RIGHT="&#xe92d;",e.ARROW_UP="&#xe92e;",e.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="&#xe9a0;",e.SEARCH_IN_PUBLICATION="&#xe92f;",e.COPY_TO_CLIPBOARD="&#xe930;",e.SHARED_PBK="&#xe931;",e.ATTACHMENTS="&#xe932;",e.STRIPE_ARROW_LEFT="&#xe933;",e.STRIPE_ARROW_RIGHT="&#xe934;",e.FILTERS="&#xe935;",e.DOT="&#xe936;",e.MINUS="&#xe937;",e.PLUS="&#xe938;",e.MAILS_AND_NOTIFICATIONS="&#xe939;",e.SAVE="&#xe93a;",e.LOCKER="&#xe93b;",e.ADMIN_INTEGRATION="&#xe93c;",e.SYNC="&#xe93d;",e.TAG="&#xe93e;",e.BOOK_PLAIN="&#xe93f;",e.UPLOAD="&#xe940;",e.ONLINE="&#xe941;",e.TAG_PLAIN="&#xe942;",e.ACCOUNT_SETTINGS="&#xe943;",e.PRINT="&#xe944;",e.DEFAULT_ROLES="&#xe945;",e.SHORTCUT_MENU="&#xe946;",e.RELATIVES_PLAIN="&#xe947;",e.RELATIVES="&#xe948;",e.PAUSE="&#xe949;",e.PLAY="&#xe94a;",e.ADMIN_PORTAL="&#xe94b;",e.STAR="&#xe94c;",e.THUMBS_DOWN="&#xe94d;",e.THUMBS_DOWN_PLAIN="&#xe94e;",e.THUMBS_UP="&#xe94f;",e.THUMBS_UP_PLAIN="&#xe950;",e.FEEDBACK_PLAIN="&#xe951;",e.RATE_PLAIN="&#xe952;",e.RATE="&#xe953;",e.OFFLINE_SETTINGS="&#xe954;",e.MY_COLLECTIONS="&#xe955;",e.THIN_ARROW_LEFT="&#xe956;",e.THIN_ARROW_RIGHT="&#xe957;",e.RESET="&#xe958;",e.MY_LIBRARY="&#xe959;",e.UNSTRUCTURED_DOC="&#xe95a;",e.CONTEXTUAL="&#xe95b;",e.THIN_ARROW_UP="&#xe95c;",e.ARROW_RIGHT_TO_LINE="&#xe95d;",e.DESKTOP="&#xe95e;",e.TABLET_LANDSCAPE="&#xe95f;",e.TABLET_PORTRAIT="&#xe960;",e.MOBILE_LANDSCAPE="&#xe961;",e.MOBILE_PORTRAIT="&#xe962;",e.DIAGRAM_SUNBURST="&#xe963;",e.DIAGRAM_SANKEY="&#xe964;",e.COMMENT_QUESTION="&#xe965;",e.COMMENT_QUESTION_PLAIN="&#xe966;",e.MESSAGE_BOT="&#xe967;",e.CHART_SIMPLE="&#xe968;",e.BARS_PROGRESS="&#xe969;",e.BOOK_OPEN_GEAR="&#xe96a;",e.BOOK_OPEN_GEAR_SLASH="&#xe96b;",e.LINE_CHART="&#xe96c;",e.STACKED_CHART="&#xe96d;",e.CHART_BAR_STACKED="&#xe96e;",e.CHART_BAR_GROUPED="&#xe96f;",e.EYE_SLASH="&#xe970;",e.X_MARK="&#xe971;",e.EXPAND_WIDE="&#xe972;",e.PIP="&#xe973;",e.PIP_WIDE="&#xe974;",e.LIFE_RING="&#xe975;",e.GLOBE="&#xe976;",e.PIGGY_BANK="&#xe977;",e.EXTLINK_LIGHT="&#xe978;",e.CLONE="&#xe979;",e.CLONE_LINK_SIMPLE="&#xe97a;",e.CHART_BAR_NORMALIZED="&#xe97b;",e.CONSUMER="&#xe97c;",e.OCTAGON_XMARK="&#xe97d;",e.HOURGLASS_HALF="&#xe97e;",e.CLOCK="&#xe97f;",e.CLOCK_THREE="&#xe97f;",e.CALENDAR_DAY="&#xe980;",e.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",e.WAND_MAGIC_SPARKLES="&#xe982;",e.PAPER_PLANE="&#xe983;",e.PAPER_PLANE_SLASH="&#xe9a1;",e.CIRCLE_STOP="&#xe984;",e.ARROW_ROTATE_RIGHT="&#xe985;",e.ARROW_ROTATE_LEFT="&#xe9a4;",e.ARROWS_ROTATE="&#xe986;",e.ALIGN_RIGHT="&#xe987;",e.FORMAT_CLEAR="&#xe988;",e.ALIGN_CENTER="&#xe989;",e.ALIGN_LEFT="&#xe98a;",e.PALETTE="&#xe98b;",e.BOLD="&#xe98c;",e.ITALIC="&#xe98d;",e.UNDERLINE="&#xe98e;",e.STRIKETHROUGH="&#xe98f;",e.LINK_SIMPLE_SLASH="&#xe990;",e.LINK_SIMPLE="&#xe991;",e.ROUTE="&#xe992;",e.CIRCLE_USER_SLASH="&#xe993;",e.CIRCLE_USER_CHECK="&#xe994;",e.LIST_MAGNIFYING_GLASS="&#xe995;",e.MEDAL="&#xe996;",e.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",e.ARROW_TURN_DOWN_RIGHT="&#xe998;",e.FLASK="&#xe999;",e.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",e.HOURGLASS_END="&#xe99b;",e.CIRCLE_QUESTION="&#xe99c;",e.EYE="&#xf06e;",e.SHARE="&#xe80f1;",e.GRIP_LINES_SOLID="&#xe99d;",e.TRANSLATE_SPARKLE_SOLID="&#xe99e;",e.CODE="&#xe99f;"})(Cr||(Cr={}));var w;(function(e){e.UNKNOWN="&#xe90a;",e.ABW="&#xe900;",e.AUDIO="&#xe901;",e.AVI="&#xe902;",e.CHM="&#xe904;",e.CODE="&#xe905;",e.CSV="&#xe903;",e.DITA="&#xe906;",e.EPUB="&#xe907;",e.EXCEL="&#xe908;",e.FLAC="&#xe909;",e.GIF="&#xe90b;",e.GZIP="&#xe90c;",e.HTML="&#xe90d;",e.IMAGE="&#xe90e;",e.JPEG="&#xe90f;",e.JSON="&#xe910;",e.M4A="&#xe911;",e.MOV="&#xe912;",e.MP3="&#xe913;",e.MP4="&#xe914;",e.OGG="&#xe915;",e.PDF="&#xe916;",e.PNG="&#xe917;",e.POWERPOINT="&#xe918;",e.RAR="&#xe91a;",e.STP="&#xe91b;",e.TEXT="&#xe91c;",e.VIDEO="&#xe91e;",e.WAV="&#xe91f;",e.WMA="&#xe920;",e.WORD="&#xe921;",e.XML="&#xe922;",e.YAML="&#xe919;",e.ZIP="&#xe923;"})(w||(w={}));var oy=new Map([...["abw"].map(e=>[e,w.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(e=>[e,w.AUDIO]),...["avi"].map(e=>[e,w.AVI]),...["chm","xhs"].map(e=>[e,w.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(e=>[e,w.CODE]),...["csv"].map(e=>[e,w.CSV]),...["dita","ditamap","ditaval"].map(e=>[e,w.DITA]),...["epub"].map(e=>[e,w.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(e=>[e,w.EXCEL]),...["flac"].map(e=>[e,w.FLAC]),...["gif"].map(e=>[e,w.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(e=>[e,w.GZIP]),...["html","htm","xhtml"].map(e=>[e,w.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(e=>[e,w.IMAGE]),...["jpeg","jpg","jpe"].map(e=>[e,w.JPEG]),...["json"].map(e=>[e,w.JSON]),...["m4a","m4p"].map(e=>[e,w.M4A]),...["mov","qt"].map(e=>[e,w.MOV]),...["mp3"].map(e=>[e,w.MP3]),...["mp4","m4v"].map(e=>[e,w.MP4]),...["ogg","oga"].map(e=>[e,w.OGG]),...["pdf","ps"].map(e=>[e,w.PDF]),...["png"].map(e=>[e,w.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(e=>[e,w.POWERPOINT]),...["rar"].map(e=>[e,w.RAR]),...["stp"].map(e=>[e,w.STP]),...["txt","rtf","md","mdown"].map(e=>[e,w.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(e=>[e,w.VIDEO]),...["wav"].map(e=>[e,w.WAV]),...["wma"].map(e=>[e,w.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(e=>[e,w.WORD]),...["xml","xsl","rdf"].map(e=>[e,w.XML]),...["yaml","yml","x-yaml"].map(e=>[e,w.YAML]),...["zip"].map(e=>[e,w.ZIP])]);var ny={[w.ABW]:"#91ABC6",[w.AUDIO]:"#1795E3",[w.AVI]:"#E63324",[w.CHM]:"#71C3EB",[w.CODE]:"#71C3EB",[w.CSV]:"#1F7345",[w.DITA]:"#71C3EB",[w.EPUB]:"#85B926",[w.EXCEL]:"#1F7345",[w.FLAC]:"#1795E3",[w.GIF]:"#59B031",[w.GZIP]:"#F8AB36",[w.HTML]:"#71C3EB",[w.IMAGE]:"#59B031",[w.JPEG]:"#59B031",[w.JSON]:"#71C3EB",[w.M4A]:"#1795E3",[w.MOV]:"#E63324",[w.MP3]:"#1795E3",[w.MP4]:"#E63324",[w.OGG]:"#1795E3",[w.PDF]:"#E44948",[w.PNG]:"#59B031",[w.POWERPOINT]:"#B54A2B",[w.RAR]:"#F8AB36",[w.STP]:"#3764B1",[w.TEXT]:"#3162AB",[w.UNKNOWN]:"#999999",[w.VIDEO]:"#E63324",[w.WAV]:"#1795E3",[w.WMA]:"#1795E3",[w.WORD]:"#3162AB",[w.XML]:"#71C3EB",[w.YAML]:"#71C3EB",[w.ZIP]:"#F8AB36"};var Ie;(function(e){e.fluid_topics="fluid-topics",e.file_format="file-format",e.material="material"})(Ie||(Ie={}));var Er=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},ge=class extends Ai.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=Qt.nothing}render(){let r=this.variant&&Object.values(Ie).includes(this.variant)?this.variant:Ie.fluid_topics,o=r!==Ie.material||!!this.value;return Qt.html`
543
543
  <i class="ft-icon ft-icon--${r}" part="icon icon-${r}">
544
544
  ${(0,Ni.unsafeHTML)(this.resolvedIcon)}
545
545
  <slot ?hidden=${o}></slot>
@@ -551,7 +551,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
551
551
  <div></div>
552
552
  <div></div>
553
553
  </div>
554
- `}};ft.styles=va;(0,Pi.customElement)("ft-loader")(ft);var Ke=C(G()),Lo=C(so()),Y=C(ne()),oe=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},F=class extends(0,Ze.toFtFormComponent)(Ze.FtLitElement,"button"){get buttonClasses(){return{}}get typographyVariant(){return""}constructor(){super(),this.href=void 0,this.target=void 0,this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.ariaLabel=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.addEventListener("click",r=>{var o;this.isDisabled()?(r.preventDefault(),r.stopPropagation(),r.stopImmediatePropagation()):this.type=="submit"&&((o=this.form)===null||o===void 0||o.requestSubmit())})}render(){var r,o,n;let a=Ke.html`
554
+ `}};ft.styles=va;(0,Pi.customElement)("ft-loader")(ft);var Ke=C(G()),Lo=C(so()),X=C(ne()),oe=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},F=class extends(0,Ze.toFtFormComponent)(Ze.FtLitElement,"button"){get buttonClasses(){return{}}get typographyVariant(){return""}constructor(){super(),this.href=void 0,this.target=void 0,this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.ariaLabel=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.addEventListener("click",r=>{var o;this.isDisabled()?(r.preventDefault(),r.stopPropagation(),r.stopImmediatePropagation()):this.type=="submit"&&((o=this.form)===null||o===void 0||o.requestSubmit())})}render(){var r,o,n;let a=Ke.html`
555
555
  <ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
556
556
  <ft-typography part="label"
557
557
  variant=${this.typographyVariant}
@@ -588,7 +588,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
588
588
  <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
589
589
  `:Ke.html`
590
590
  <slot part="icon" name="icon"></slot>
591
- `}focus(){var r;(r=this.button)===null||r===void 0||r.focus()}focusWithoutTooltip(){var r;this.setTooltipManual(!0),(r=this.button)===null||r===void 0||r.focus(),this.setTooltipManual(!1)}setTooltipManual(r){this.tooltip&&(this.tooltip.manual=r)}click(){var r;(r=this.button)===null||r===void 0||r.click()}getLabel(){return this.label||this.textContent}get textContent(){return(0,Ze.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};F.elementDefinitions={"ft-ripple":j,"ft-tooltip":V,"ft-typography":xe,"ft-icon":ge,"ft-loader":ft};oe([(0,Y.property)()],F.prototype,"href",void 0);oe([(0,Y.property)()],F.prototype,"target",void 0);oe([(0,Y.property)({type:String,reflect:!0})],F.prototype,"role",void 0);oe([(0,Y.property)()],F.prototype,"type",void 0);oe([(0,Y.property)({type:Boolean})],F.prototype,"disabled",void 0);oe([(0,Y.property)()],F.prototype,"label",void 0);oe([(0,Y.property)()],F.prototype,"icon",void 0);oe([(0,Y.property)()],F.prototype,"iconVariant",void 0);oe([(0,Y.property)({type:Boolean})],F.prototype,"trailingIcon",void 0);oe([(0,Y.property)({type:Boolean})],F.prototype,"loading",void 0);oe([(0,Y.property)({attribute:"aria-label"})],F.prototype,"ariaLabel",void 0);oe([(0,Y.property)()],F.prototype,"tooltipPosition",void 0);oe([(0,Y.property)({type:Boolean})],F.prototype,"hideTooltip",void 0);oe([(0,Y.property)({type:Boolean})],F.prototype,"forceTooltip",void 0);oe([(0,Y.query)(".ft-button")],F.prototype,"button",void 0);oe([(0,Y.query)(".ft-button--label slot")],F.prototype,"slottedContent",void 0);oe([(0,Y.query)("[part=tooltip]")],F.prototype,"tooltip",void 0);var wr=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},Se=class extends F{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"}};Se.styles=[Ti.safariEllipsisFix,Aa];wr([(0,Jt.property)({type:Boolean})],Se.prototype,"primary",void 0);wr([(0,Jt.property)({type:Boolean})],Se.prototype,"outlined",void 0);wr([(0,Jt.property)({type:Boolean})],Se.prototype,"dense",void 0);wr([(0,Jt.property)({type:Boolean})],Se.prototype,"round",void 0);var er=C(ne());var Nr=C(k());var _i=C(G()),O=C(k());var ki=[_i.css`
591
+ `}focus(){var r;(r=this.button)===null||r===void 0||r.focus()}focusWithoutTooltip(){var r;this.setTooltipManual(!0),(r=this.button)===null||r===void 0||r.focus(),this.setTooltipManual(!1)}setTooltipManual(r){this.tooltip&&(this.tooltip.manual=r)}click(){var r;(r=this.button)===null||r===void 0||r.click()}getLabel(){return this.label||this.textContent}get textContent(){return(0,Ze.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};F.elementDefinitions={"ft-ripple":j,"ft-tooltip":V,"ft-typography":xe,"ft-icon":ge,"ft-loader":ft};oe([(0,X.property)()],F.prototype,"href",void 0);oe([(0,X.property)()],F.prototype,"target",void 0);oe([(0,X.property)({type:String,reflect:!0})],F.prototype,"role",void 0);oe([(0,X.property)()],F.prototype,"type",void 0);oe([(0,X.property)({type:Boolean})],F.prototype,"disabled",void 0);oe([(0,X.property)()],F.prototype,"label",void 0);oe([(0,X.property)()],F.prototype,"icon",void 0);oe([(0,X.property)()],F.prototype,"iconVariant",void 0);oe([(0,X.property)({type:Boolean})],F.prototype,"trailingIcon",void 0);oe([(0,X.property)({type:Boolean})],F.prototype,"loading",void 0);oe([(0,X.property)({attribute:"aria-label"})],F.prototype,"ariaLabel",void 0);oe([(0,X.property)()],F.prototype,"tooltipPosition",void 0);oe([(0,X.property)({type:Boolean})],F.prototype,"hideTooltip",void 0);oe([(0,X.property)({type:Boolean})],F.prototype,"forceTooltip",void 0);oe([(0,X.query)(".ft-button")],F.prototype,"button",void 0);oe([(0,X.query)(".ft-button--label slot")],F.prototype,"slottedContent",void 0);oe([(0,X.query)("[part=tooltip]")],F.prototype,"tooltip",void 0);var wr=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},Se=class extends F{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"}};Se.styles=[Ti.safariEllipsisFix,Aa];wr([(0,Jt.property)({type:Boolean})],Se.prototype,"primary",void 0);wr([(0,Jt.property)({type:Boolean})],Se.prototype,"outlined",void 0);wr([(0,Jt.property)({type:Boolean})],Se.prototype,"dense",void 0);wr([(0,Jt.property)({type:Boolean})],Se.prototype,"round",void 0);var er=C(ne());var Nr=C(k());var _i=C(G()),O=C(k());var ki=[_i.css`
592
592
  :host {
593
593
  display: inline-block;
594
594
  max-width: 100%;
@@ -1054,7 +1054,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
1054
1054
  .ftds--size-small.ft-button--icon-only {
1055
1055
  width: ${p.smallIconOnlyWidth};
1056
1056
  }
1057
- `,O.noTextSelect];var Ar=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},$e=class extends(0,Nr.toFtdsBase)(F){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=fr.brand,this.iconVariant=Ie.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 bt.large:return Ge.body2medium;case bt.medium:return Ge.caption1medium;case bt.small:return Ge.caption2medium}}};$e.styles=[Nr.safariEllipsisFix,ki];Ar([(0,er.property)({type:Boolean})],$e.prototype,"primary",void 0);Ar([(0,er.property)({type:Boolean})],$e.prototype,"secondary",void 0);Ar([(0,er.property)({type:Boolean})],$e.prototype,"tertiary",void 0);Ar([(0,er.property)({type:Boolean})],$e.prototype,"round",void 0);(0,Io.customElement)("ft-button")(Se);(0,Io.customElement)("ftds-button")($e);var Qs=C(k()),Js=C(ne());var pn=C(k());var Di=C(k());var $c=C(Ui(),1);var Mi;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(Mi||(Mi={}));var $i;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})($i||($i={}));var Wi;(function(e){e.THIRD_PARTY="THIRD_PARTY",e.OFF_THE_GRID="OFF_THE_GRID",e.CONTENT_PACKAGER="CONTENT_PACKAGER",e.PAGES="PAGES",e.DESIGNED_READER="DESIGNED_READER"})(Wi||(Wi={}));var Fi;(function(e){e.HOMEPAGE="HOMEPAGE",e.CUSTOM="CUSTOM",e.HEADER="HEADER",e.READER="READER",e.TOPIC_TEMPLATE="TOPIC_TEMPLATE",e.SEARCH="SEARCH",e.SEARCH_RESULT="SEARCH_RESULT"})(Fi||(Fi={}));var Hi;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(Hi||(Hi={}));var zi;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(zi||(zi={}));var Gi;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(Gi||(Gi={}));var ji;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(ji||(ji={}));var Vi;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR",e.CUSTOM="CUSTOM"})(Vi||(Vi={}));var Ki;(function(e){e.ASC="ASC",e.DESC="DESC"})(Ki||(Ki={}));var Zi;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(Zi||(Zi={}));var Po;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(Po||(Po={}));var qi;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK"})(qi||(qi={}));var Yi;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(Yi||(Yi={}));var Xi;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.PERSONAL_BOOK="PERSONAL_BOOK",e.SHARED_BOOK="SHARED_BOOK"})(Xi||(Xi={}));var Qi;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(Qi||(Qi={}));var Ji;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC"})(Ji||(Ji={}));var To;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(To||(To={}));var J;(function(e){e.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",e.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",e.HTML_EXPORT_USER="HTML_EXPORT_USER",e.PDF_EXPORT_USER="PDF_EXPORT_USER",e.SAVED_SEARCH_USER="SAVED_SEARCH_USER",e.COLLECTION_USER="COLLECTION_USER",e.OFFLINE_USER="OFFLINE_USER",e.ANALYTICS_USER="ANALYTICS_USER",e.BETA_USER="BETA_USER",e.DEBUG_USER="DEBUG_USER",e.PRINT_USER="PRINT_USER",e.RATING_USER="RATING_USER",e.FEEDBACK_USER="FEEDBACK_USER",e.GENERATIVE_AI_USER="GENERATIVE_AI_USER",e.CONTENT_PUBLISHER="CONTENT_PUBLISHER",e.KHUB_ADMIN="KHUB_ADMIN",e.USERS_ADMIN="USERS_ADMIN",e.PORTAL_ADMIN="PORTAL_ADMIN",e.ADMIN="ADMIN",e.DEVELOPER="DEVELOPER"})(J||(J={}));var es;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(es||(es={}));var ts;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(ts||(ts={}));var am={[J.PERSONAL_BOOK_SHARE_USER]:[J.PERSONAL_BOOK_USER],[J.HTML_EXPORT_USER]:[J.PERSONAL_BOOK_USER],[J.PDF_EXPORT_USER]:[J.PERSONAL_BOOK_USER],[J.KHUB_ADMIN]:[J.CONTENT_PUBLISHER],[J.ADMIN]:[J.KHUB_ADMIN,J.USERS_ADMIN,J.PORTAL_ADMIN],[J.DEVELOPER]:[J.BETA_USER,J.DEBUG_USER]};var Xs=C(k());var is=C(G()),pe=C(ne()),Oe=C(k());var rs=C(G());var os=rs.css`
1057
+ `,O.noTextSelect];var Ar=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},$e=class extends(0,Nr.toFtdsBase)(F){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=fr.brand,this.iconVariant=Ie.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 bt.large:return Ge.body2medium;case bt.medium:return Ge.caption1medium;case bt.small:return Ge.caption2medium}}};$e.styles=[Nr.safariEllipsisFix,ki];Ar([(0,er.property)({type:Boolean})],$e.prototype,"primary",void 0);Ar([(0,er.property)({type:Boolean})],$e.prototype,"secondary",void 0);Ar([(0,er.property)({type:Boolean})],$e.prototype,"tertiary",void 0);Ar([(0,er.property)({type:Boolean})],$e.prototype,"round",void 0);(0,Io.customElement)("ft-button")(Se);(0,Io.customElement)("ftds-button")($e);var Qs=C(k()),Js=C(ne());var pn=C(k());var Di=C(k());var $c=C(Ui(),1);var Mi;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(Mi||(Mi={}));var $i;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})($i||($i={}));var Wi;(function(e){e.THIRD_PARTY="THIRD_PARTY",e.OFF_THE_GRID="OFF_THE_GRID",e.CONTENT_PACKAGER="CONTENT_PACKAGER",e.PAGES="PAGES",e.DESIGNED_READER="DESIGNED_READER"})(Wi||(Wi={}));var Fi;(function(e){e.HOMEPAGE="HOMEPAGE",e.CUSTOM="CUSTOM",e.HEADER="HEADER",e.READER="READER",e.TOPIC_TEMPLATE="TOPIC_TEMPLATE",e.SEARCH="SEARCH",e.SEARCH_RESULT="SEARCH_RESULT"})(Fi||(Fi={}));var Hi;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(Hi||(Hi={}));var zi;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(zi||(zi={}));var Gi;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(Gi||(Gi={}));var ji;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(ji||(ji={}));var Vi;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR",e.CUSTOM="CUSTOM"})(Vi||(Vi={}));var Ki;(function(e){e.ASC="ASC",e.DESC="DESC"})(Ki||(Ki={}));var Zi;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(Zi||(Zi={}));var Po;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(Po||(Po={}));var qi;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK"})(qi||(qi={}));var Yi;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(Yi||(Yi={}));var Xi;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.PERSONAL_BOOK="PERSONAL_BOOK",e.SHARED_BOOK="SHARED_BOOK"})(Xi||(Xi={}));var Qi;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(Qi||(Qi={}));var Ji;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC"})(Ji||(Ji={}));var To;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(To||(To={}));var q;(function(e){e.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",e.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",e.HTML_EXPORT_USER="HTML_EXPORT_USER",e.PDF_EXPORT_USER="PDF_EXPORT_USER",e.SAVED_SEARCH_USER="SAVED_SEARCH_USER",e.COLLECTION_USER="COLLECTION_USER",e.OFFLINE_USER="OFFLINE_USER",e.ANALYTICS_USER="ANALYTICS_USER",e.BETA_USER="BETA_USER",e.DEBUG_USER="DEBUG_USER",e.PRINT_USER="PRINT_USER",e.RATING_USER="RATING_USER",e.FEEDBACK_USER="FEEDBACK_USER",e.GENERATIVE_AI_USER="GENERATIVE_AI_USER",e.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",e.CONTENT_PUBLISHER="CONTENT_PUBLISHER",e.KHUB_ADMIN="KHUB_ADMIN",e.USERS_ADMIN="USERS_ADMIN",e.PORTAL_ADMIN="PORTAL_ADMIN",e.ADMIN="ADMIN",e.DEVELOPER="DEVELOPER"})(q||(q={}));var es;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(es||(es={}));var ts;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(ts||(ts={}));var am={[q.PERSONAL_BOOK_SHARE_USER]:[q.PERSONAL_BOOK_USER],[q.HTML_EXPORT_USER]:[q.PERSONAL_BOOK_USER],[q.PDF_EXPORT_USER]:[q.PERSONAL_BOOK_USER],[q.KHUB_ADMIN]:[q.CONTENT_PUBLISHER],[q.ADMIN]:[q.KHUB_ADMIN,q.USERS_ADMIN,q.PORTAL_ADMIN],[q.DEVELOPER]:[q.BETA_USER,q.DEBUG_USER],[q.GENERATIVE_AI_EXPORT_USER]:[q.GENERATIVE_AI_USER]};var Xs=C(k());var is=C(G()),pe=C(ne()),Oe=C(k());var rs=C(G());var os=rs.css`
1058
1058
  `;var Ir=C(k()),Wc="ft-app-info",_o=class extends CustomEvent{constructor(r){super("authentication-change",{detail:r})}},Fc={session:(e,r)=>{(0,Ir.deepEqual)(e.session,r.payload)||(e.session=r.payload,setTimeout(()=>_.dispatchEvent(new _o(r.payload)),0))}},_=Ir.FtReduxStore.get({name:Wc,reducers:Fc,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,metadataConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1}});var Ye=C(k());var ko=C(k());var pt=class e{static get(r){let{baseUrl:o,apiIntegrationIdentifier:n}=_.getState(),a=r??n;if(o&&a&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,a,!0)}static await(r){return new Promise(o=>{let n=e.get(r);if(n)o(n);else{let a=_.subscribe(()=>{n=e.get(r),n&&(a(),o(n))})}})}};var We=class{constructor(r=!0,o){var n;this.overrideApi=o;let a=this.constructor;a.commonCache=(n=a.commonCache)!==null&&n!==void 0?n:new ko.CacheRegistry,this.cache=r?a.commonCache:new ko.CacheRegistry}get api(){var r;return(r=this.overrideApi)!==null&&r!==void 0?r:pt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):pt.await()}clearCache(){this.cache.clearAll()}};var ns,Hc=Symbol("clearAfterUnitTest"),Pr=class extends We{constructor(r){super(),this.messageContextProvider=r,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[ns]=()=>{this.defaultMessages={},this.cache=new Ye.CacheRegistry,this.listeners={}},this.currentUiLocale=_.getState().uiLocale,_.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:r}=_.getState();this.currentUiLocale!==r&&(this.currentUiLocale=r,this.cache.clearAll(),this.notifyAll())}addContext(r){let o=r.name.toLowerCase();this.cache.setFinal(o,r),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(r,o){var n;if(r=r.toLowerCase(),Object.keys(o).length>0){let a={...(n=this.defaultMessages[r])!==null&&n!==void 0?n:{},...o};(0,Ye.deepEqual)(this.defaultMessages[r],a)||(this.defaultMessages[r]=a,await this.notify(r))}await this.fetchContext(r)}resolveContext(r){var o,n;return this.fetchContext(r),(n=(o=this.cache.getNow(r))===null||o===void 0?void 0:o.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(r,o){let n=r.toLowerCase();return this.resolveContext(n)[o]}resolveMessage(r,o,...n){var a;let i=r.toLowerCase(),c=this.resolveContext(i);return new Ye.ParametrizedLabelResolver((a=this.defaultMessages[i])!==null&&a!==void 0?a:{},c).resolve(o,...n)}async fetchContext(r){if(!this.cache.has(r))try{await this.cache.get(r,()=>this.messageContextProvider(this.currentUiLocale,r)),await this.notify(r)}catch(o){console.error(o)}}subscribe(r,o){var n;return r=r.toLowerCase(),this.listeners[r]=(n=this.listeners[r])!==null&&n!==void 0?n:new Set,this.listeners[r].add(o),()=>{var a;return(a=this.listeners[r])===null||a===void 0?void 0:a.delete(o)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map(r=>this.notify(r)))}async notify(r){this.listeners[r]!=null&&await Promise.all([...this.listeners[r].values()].map(o=>(0,Ye.delay)(0).then(()=>o()).catch(()=>null)))}};ns=Hc;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Pr{constructor(){super(async(e,r)=>(await this.awaitApi).getFluidTopicsMessageContext(e,r))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Pr{constructor(){super(async(e,r)=>(await this.awaitApi).getCustomMessageContext(e,r))}});var ht=window.FluidTopicsI18nService,as=window.FluidTopicsCustomI18nService;var ae=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},K=class extends Oe.FtLitElement{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.apiProvider=()=>pt.get(),this.messageContexts=[],this.cache=new Oe.CacheRegistry,this.cleanSessionDebouncer=new Oe.Debouncer}render(){return is.html`
1059
1059
  <slot></slot>
1060
1060
  `}update(r){var o,n,a,i,c;super.update(r),r.has("baseUrl")&&(_.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),r.has("apiIntegrationIdentifier")&&_.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),r.has("uiLocale")&&_.actions.uiLocale(this.uiLocale),r.has("metadataConfiguration")&&_.actions.metadataConfiguration(this.metadataConfiguration),r.has("noCustom")&&_.actions.noCustom(this.noCustom),r.has("editorMode")&&_.actions.editorMode(this.editorMode),r.has("noCustomComponent")&&_.actions.noCustomComponent(this.noCustomComponent),r.has("session")&&_.actions.session(this.session),r.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(d=>ht.addContext(d)),r.has("openExternalDocumentInNewTab")&&_.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),r.has("navigatorOnline")&&_.actions.navigatorOnline(this.navigatorOnline),r.has("forcedOffline")&&_.actions.forcedOffline(this.forcedOffline),r.has("localesConfiguration")&&(_.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),_.actions.availableUiLocales((a=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&a!==void 0?a:[]),_.actions.searchInAllLanguagesAllowed((c=(i=this.localesConfiguration)===null||i===void 0?void 0:i.allLanguagesAllowed)!==null&&c!==void 0?c:!1)),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration())}async updateSession(){this.session=await this.cache.get("session",async()=>{let r=await this.apiProvider().getCurrentSession();return r.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},r.idleTimeoutInMillis),r})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}};K.elementDefinitions={};K.styles=os;ae([(0,pe.property)()],K.prototype,"baseUrl",void 0);ae([(0,pe.property)()],K.prototype,"apiIntegrationIdentifier",void 0);ae([(0,pe.property)()],K.prototype,"uiLocale",void 0);ae([(0,Oe.jsonProperty)(null)],K.prototype,"availableUiLocales",void 0);ae([(0,Oe.jsonProperty)(null)],K.prototype,"metadataConfiguration",void 0);ae([(0,pe.property)({type:Boolean})],K.prototype,"editorMode",void 0);ae([(0,pe.property)({type:Boolean})],K.prototype,"noCustom",void 0);ae([(0,pe.property)({type:Boolean})],K.prototype,"openExternalDocumentInNewTab",void 0);ae([(0,pe.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],K.prototype,"noCustomComponent",void 0);ae([(0,pe.property)({type:Boolean})],K.prototype,"withManualResources",void 0);ae([(0,pe.property)({type:Boolean})],K.prototype,"navigatorOnline",void 0);ae([(0,pe.property)({type:Boolean})],K.prototype,"forcedOffline",void 0);ae([(0,pe.property)({type:Object})],K.prototype,"apiProvider",void 0);ae([(0,Oe.jsonProperty)([])],K.prototype,"messageContexts",void 0);ae([(0,Oe.jsonProperty)(void 0)],K.prototype,"session",void 0);ae([(0,pe.state)()],K.prototype,"localesConfiguration",void 0);var Ll=C(ne());function zc(e,r){if(e===r)return!0;if(e&&r&&typeof e=="object"&&typeof r=="object"){if(e.constructor!==r.constructor)return!1;var o,n,a;if(Array.isArray(e)){if(o=e.length,o!=r.length)return!1;for(n=o;n--!==0;)if(!Tr(e[n],r[n]))return!1;return!0}if(e instanceof Map&&r instanceof Map){if(e.size!==r.size)return!1;for(n of e.entries())if(!r.has(n[0]))return!1;for(n of e.entries())if(!Tr(n[1],r.get(n[0])))return!1;return!0}if(e instanceof Set&&r instanceof Set){if(e.size!==r.size)return!1;for(n of e.entries())if(!r.has(n[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(a=Object.keys(e),o=a.length,o!==Object.keys(r).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(r,a[n]))return!1;for(n=o;n--!==0;){var i=a[n];if(!Tr(e[i],r[i]))return!1}return!0}return e!==e&&r!==r}function Tr(e,r){try{return zc(e,r)}catch{return!1}}function Do(e,r){return!Tr(e,r)}var Gc=C(ne(),1);var _r=class{constructor(){this.queue=[]}add(r,o=!1){o&&(this.queue=this.queue.filter(n=>n.type!==r.type)),this.queue.push(r)}consume(r){let o=this.queue.find(n=>n.type===r);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}};var tr=C(ne(),1);var ss=C(ne(),1);function cs(e,r){let o=()=>JSON.parse(JSON.stringify(e));return(0,ss.property)({type:Object,converter:{fromAttribute:n=>{if(n==null)return o();try{return JSON.parse(n)}catch{return o()}},toAttribute:n=>JSON.stringify(n)},hasChanged:Do,...r??{}})}var kr=class{constructor(r=0){this.timeout=r,this.callbacks=[]}run(r,o){return this.callbacks=[r],this.debounce(o)}queue(r,o){return this.callbacks.push(r),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(r){return this.promise==null&&(this.promise=new Promise((o,n)=>{this.resolvePromise=o,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),r??this.timeout),this.promise}async runCallbacks(){var r,o;let n=[...this.callbacks];this.callbacks=[];let a=(r=this.rejectPromise)!==null&&r!==void 0?r:()=>null,i=(o=this.resolvePromise)!==null&&o!==void 0?o:()=>null;this.clearPromise();for(let c of n)try{await c()}catch(d){a(d);return}i(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var ds=C(G(),1);var Dr=window,jc=Dr.ShadowRoot&&(Dr.ShadyCSS===void 0||Dr.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Mm=Symbol();var ls=(e,r)=>{jc?e.adoptedStyleSheets=r.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet):r.forEach(o=>{let n=document.createElement("style"),a=Dr.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=o.cssText,e.appendChild(n)})};var Br=class extends ds.LitElement{createRenderRoot(){let r=this.constructor;r.elementDefinitions&&!r.registry&&(r.registry=new CustomElementRegistry,Object.entries(r.elementDefinitions).forEach(([a,i])=>r.registry.define(a,i)));let o={...r.shadowRootOptions,customElements:r.registry},n=this.renderOptions.creationScope=this.attachShadow(o);return ls(n,r.elementStyles),n}};var Ur=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},hs,us=Symbol("constructorPrototype"),fs=Symbol("constructorName"),ys=Symbol("exportpartsDebouncer"),ps=Symbol("dynamicDependenciesLoaded"),Xe=class extends Br{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[hs]=new kr(5),this[fs]=this.constructor.name,this[us]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[fs]&&Object.setPrototypeOf(this,this[us])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(o){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",o)}let r=this.constructor;r[ps]||(r[ps]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(r){super.updated(r),this.updateComplete.then(()=>{this.contentAvailableCallback(r),this.applyCustomStylesheet(r),this.scheduleExportpartsUpdate()})}contentAvailableCallback(r){}applyCustomStylesheet(r){var o,n,a;if(((n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(i=>i.remove()),this.useAdoptedStyleSheets){if(r.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((a=this.customStylesheet)!==null&&a!==void 0?a:"")}catch(i){console.error(i,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let i=document.createElement("style");i.classList.add("ft-lit-element--custom-stylesheet"),i.innerHTML=this.customStylesheet,this.shadowRoot.append(i)}}scheduleExportpartsUpdate(){var r,o,n;(!((r=this.exportpartsPrefix)===null||r===void 0)&&r.trim()||(n=(o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)!==null&&n!==void 0&&n)&&this[ys].run(()=>{var a,i;!((a=this.exportpartsPrefix)===null||a===void 0)&&a.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((i=this.exportpartsPrefixes)===null||i===void 0?void 0:i.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(r){var o,n,a,i,c,d;let f=g=>g!=null&&g.trim().length>0,u=r.filter(f).map(g=>g.trim());if(u.length===0){this.removeAttribute("exportparts");return}let h=new Set;for(let g of(n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let v=(i=(a=g.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&i!==void 0?i:[],x=(d=(c=g.getAttribute("exportparts"))===null||c===void 0?void 0:c.split(",").map(S=>S.split(":")[1]))!==null&&d!==void 0?d:[];new Array(...v,...x).filter(f).map(S=>S.trim()).forEach(S=>h.add(S))}if(h.size===0){this.removeAttribute("exportparts");return}let m=[...h.values()].flatMap(g=>u.map(v=>`${g}:${v}--${g}`));this.setAttribute("exportparts",[...this.part,...m].join(", "))}};hs=ys;Ur([(0,tr.property)()],Xe.prototype,"exportpartsPrefix",void 0);Ur([cs([])],Xe.prototype,"exportpartsPrefixes",void 0);Ur([(0,tr.property)()],Xe.prototype,"customStylesheet",void 0);Ur([(0,tr.state)()],Xe.prototype,"useAdoptedStyleSheets",void 0);function rr(e){var r;return(r=e?.isFtReduxStore)!==null&&r!==void 0?r:!1}var ms,gs,bs,or=Symbol("internalReduxEventsUnsubscribers"),Qe=Symbol("internalStoresUnsubscribers"),yt=Symbol("internalStores"),nr=class extends Xe{constructor(){super(...arguments),this[ms]=new Map,this[gs]=new Map,this[bs]=new Map}get reduxConstructor(){return this.constructor}update(r){super.update(r),[...this.reduxConstructor.reduxReactiveProperties].some(o=>r.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[yt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[yt].values()][0]}getStore(r){return r==null?this.getUnnamedStore():this[yt].get(r)}addStore(r,o){var n;o=(n=o??(rr(r)?r.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(o),this[yt].set(o,r),this.subscribeToStore(o,r),this.updateFromStores()}removeStore(r){let o=typeof r=="string"?r:r.name;this.unsubscribeFromStore(o),this[yt].delete(o)}setupStores(){this.unsubscribeFromStores(),this[yt].forEach((r,o)=>this.subscribeToStore(o,r)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((r,o)=>{let n=this.constructor.getPropertyOptions(o);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:o)){let a=this.getStore(r.store);a&&(r.store?this[Qe].has(r.store):this[Qe].size>0)&&(this[o]=r.selector(a.getState(),this))}})}subscribeToStore(r,o){var n;this[Qe].set(r,o.subscribe(()=>this.updateFromStores())),this[or].set(r,[]),rr(o)&&o.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((a,i)=>{if(typeof this[i]=="function"&&(!a.store||o.name===a.store)){let c=d=>this[i](d);o.addEventListener(a.eventName,c),this[or].get(r).push(()=>o.removeEventListener(a.eventName,c))}})),this.onStoreAvailable(r)}unsubscribeFromStores(){this[Qe].forEach((r,o)=>this.unsubscribeFromStore(o))}unsubscribeFromStore(r){var o;this[Qe].has(r)&&this[Qe].get(r)(),this[Qe].delete(r),(o=this[or].get(r))===null||o===void 0||o.forEach(n=>n()),this[or].delete(r)}onStoreAvailable(r){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};ms=Qe,gs=yt,bs=or;nr.reduxProperties=new Map;nr.reduxReactiveProperties=new Set;nr.reduxEventListeners=new Map;function be(e){for(var r=arguments.length,o=Array(r>1?r-1:0),n=1;n<r;n++)o[n-1]=arguments[n];if(0)var a,i;throw Error("[Immer] minified error nr: "+e+(o.length?" "+o.map(function(c){return"'"+c+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Fe(e){return!!e&&!!e[H]}function Ce(e){var r;return!!e&&(function(o){if(!o||typeof o!="object")return!1;var n=Object.getPrototypeOf(o);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===Jc}(e)||Array.isArray(e)||!!e[ws]||!!(!((r=e.constructor)===null||r===void 0)&&r[ws])||Go(e)||jo(e))}function mt(e,r,o){o===void 0&&(o=!1),Ut(e)===0?(o?Object.keys:Bt)(e).forEach(function(n){o&&typeof n=="symbol"||r(n,e[n],e)}):e.forEach(function(n,a){return r(a,n,e)})}function Ut(e){var r=e[H];return r?r.i>3?r.i-4:r.i:Array.isArray(e)?1:Go(e)?2:jo(e)?3:0}function Dt(e,r){return Ut(e)===2?e.has(r):Object.prototype.hasOwnProperty.call(e,r)}function Vc(e,r){return Ut(e)===2?e.get(r):e[r]}function As(e,r,o){var n=Ut(e);n===2?e.set(r,o):n===3?e.add(o):e[r]=o}function Ns(e,r){return e===r?e!==0||1/e==1/r:e!=e&&r!=r}function Go(e){return Xc&&e instanceof Map}function jo(e){return Qc&&e instanceof Set}function Je(e){return e.o||e.t}function Vo(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var r=Is(e);delete r[H];for(var o=Bt(r),n=0;n<o.length;n++){var a=o[n],i=r[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(r[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[a]})}return Object.create(Object.getPrototypeOf(e),r)}function Ko(e,r){return r===void 0&&(r=!1),Zo(e)||Fe(e)||!Ce(e)||(Ut(e)>1&&(e.set=e.add=e.clear=e.delete=Kc),Object.freeze(e),r&&mt(e,function(o,n){return Ko(n,!0)},!0)),e}function Kc(){be(2)}function Zo(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Pe(e){var r=zo[e];return r||be(18,e),r}function Zc(e,r){zo[e]||(zo[e]=r)}function Wo(){return ir}function Bo(e,r){r&&(Pe("Patches"),e.u=[],e.s=[],e.v=r)}function Mr(e){Fo(e),e.p.forEach(qc),e.p=null}function Fo(e){e===ir&&(ir=e.l)}function xs(e){return ir={p:[],l:ir,h:e,m:!0,_:0}}function qc(e){var r=e[H];r.i===0||r.i===1?r.j():r.g=!0}function Uo(e,r){r._=r.p.length;var o=r.p[0],n=e!==void 0&&e!==o;return r.h.O||Pe("ES5").S(r,e,n),n?(o[H].P&&(Mr(r),be(4)),Ce(e)&&(e=$r(r,e),r.l||Wr(r,e)),r.u&&Pe("Patches").M(o[H].t,e,r.u,r.s)):e=$r(r,o,[]),Mr(r),r.u&&r.v(r.u,r.s),e!==Ls?e:void 0}function $r(e,r,o){if(Zo(r))return r;var n=r[H];if(!n)return mt(r,function(d,f){return vs(e,n,r,d,f,o)},!0),r;if(n.A!==e)return r;if(!n.P)return Wr(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=Vo(n.k):n.o,i=a,c=!1;n.i===3&&(i=new Set(a),a.clear(),c=!0),mt(i,function(d,f){return vs(e,n,a,d,f,o,c)}),Wr(e,a,!1),o&&e.u&&Pe("Patches").N(n,o,e.u,e.s)}return n.o}function vs(e,r,o,n,a,i,c){if(Fe(a)){var d=$r(e,a,i&&r&&r.i!==3&&!Dt(r.R,n)?i.concat(n):void 0);if(As(o,n,d),!Fe(d))return;e.m=!1}else c&&o.add(a);if(Ce(a)&&!Zo(a)){if(!e.h.D&&e._<1)return;$r(e,a),r&&r.A.l||Wr(e,a)}}function Wr(e,r,o){o===void 0&&(o=!1),!e.l&&e.h.D&&e.m&&Ko(r,o)}function Mo(e,r){var o=e[H];return(o?Je(o):e)[r]}function Ss(e,r){if(r in e)for(var o=Object.getPrototypeOf(e);o;){var n=Object.getOwnPropertyDescriptor(o,r);if(n)return n;o=Object.getPrototypeOf(o)}}function et(e){e.P||(e.P=!0,e.l&&et(e.l))}function $o(e){e.o||(e.o=Vo(e.t))}function Ho(e,r,o){var n=Go(r)?Pe("MapSet").F(r,o):jo(r)?Pe("MapSet").T(r,o):e.O?function(a,i){var c=Array.isArray(a),d={i:c?1:0,A:i?i.A:Wo(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},f=d,u=sr;c&&(f=[d],u=ar);var h=Proxy.revocable(f,u),m=h.revoke,g=h.proxy;return d.k=g,d.j=m,g}(r,o):Pe("ES5").J(r,o);return(o?o.A:Wo()).p.push(n),n}function Yc(e){return Fe(e)||be(22,e),function r(o){if(!Ce(o))return o;var n,a=o[H],i=Ut(o);if(a){if(!a.P&&(a.i<4||!Pe("ES5").K(a)))return a.t;a.I=!0,n=Os(o,i),a.I=!1}else n=Os(o,i);return mt(n,function(c,d){a&&Vc(a.t,c)===d||As(n,c,r(d))}),i===3?new Set(n):n}(e)}function Os(e,r){switch(r){case 2:return new Map(e);case 3:return Array.from(e)}return Vo(e)}function Rs(){function e(c,d){var f=i[c];return f?f.enumerable=d:i[c]=f={configurable:!0,enumerable:d,get:function(){var u=this[H];return sr.get(u,c)},set:function(u){var h=this[H];sr.set(h,c,u)}},f}function r(c){for(var d=c.length-1;d>=0;d--){var f=c[d][H];if(!f.P)switch(f.i){case 5:n(f)&&et(f);break;case 4:o(f)&&et(f)}}}function o(c){for(var d=c.t,f=c.k,u=Bt(f),h=u.length-1;h>=0;h--){var m=u[h];if(m!==H){var g=d[m];if(g===void 0&&!Dt(d,m))return!0;var v=f[m],x=v&&v[H];if(x?x.t!==g:!Ns(v,g))return!0}}var S=!!d[H];return u.length!==Bt(d).length+(S?0:1)}function n(c){var d=c.k;if(d.length!==c.t.length)return!0;var f=Object.getOwnPropertyDescriptor(d,d.length-1);if(f&&!f.get)return!0;for(var u=0;u<d.length;u++)if(!d.hasOwnProperty(u))return!0;return!1}function a(c){c.g&&be(3,JSON.stringify(Je(c)))}var i={};Zc("ES5",{J:function(c,d){var f=Array.isArray(c),u=function(m,g){if(m){for(var v=Array(g.length),x=0;x<g.length;x++)Object.defineProperty(v,""+x,e(x,!0));return v}var S=Is(g);delete S[H];for(var L=Bt(S),N=0;N<L.length;N++){var R=L[N];S[R]=e(R,m||!!S[R].enumerable)}return Object.create(Object.getPrototypeOf(g),S)}(f,c),h={i:f?5:4,A:d?d.A:Wo(),P:!1,I:!1,R:{},l:d,t:c,k:u,o:null,g:!1,C:!1};return Object.defineProperty(u,H,{value:h,writable:!0}),u},S:function(c,d,f){f?Fe(d)&&d[H].A===c&&r(c.p):(c.u&&function u(h){if(h&&typeof h=="object"){var m=h[H];if(m){var g=m.t,v=m.k,x=m.R,S=m.i;if(S===4)mt(v,function(B){B!==H&&(g[B]!==void 0||Dt(g,B)?x[B]||u(v[B]):(x[B]=!0,et(m)))}),mt(g,function(B){v[B]!==void 0||Dt(v,B)||(x[B]=!1,et(m))});else if(S===5){if(n(m)&&(et(m),x.length=!0),v.length<g.length)for(var L=v.length;L<g.length;L++)x[L]=!1;else for(var N=g.length;N<v.length;N++)x[N]=!0;for(var R=Math.min(v.length,g.length),T=0;T<R;T++)v.hasOwnProperty(T)||(x[T]=!0),x[T]===void 0&&u(v[T])}}}}(c.p[0]),r(c.p))},K:function(c){return c.i===4?o(c):n(c)}})}var Cs,ir,qo=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Xc=typeof Map<"u",Qc=typeof Set<"u",Es=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Ls=qo?Symbol.for("immer-nothing"):((Cs={})["immer-nothing"]=!0,Cs),ws=qo?Symbol.for("immer-draftable"):"__$immer_draftable",H=qo?Symbol.for("immer-state"):"__$immer_state";var Jc=""+Object.prototype.constructor,Bt=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Is=Object.getOwnPropertyDescriptors||function(e){var r={};return Bt(e).forEach(function(o){r[o]=Object.getOwnPropertyDescriptor(e,o)}),r},zo={},sr={get:function(e,r){if(r===H)return e;var o=Je(e);if(!Dt(o,r))return function(a,i,c){var d,f=Ss(i,c);return f?"value"in f?f.value:(d=f.get)===null||d===void 0?void 0:d.call(a.k):void 0}(e,o,r);var n=o[r];return e.I||!Ce(n)?n:n===Mo(e.t,r)?($o(e),e.o[r]=Ho(e.A.h,n,e)):n},has:function(e,r){return r in Je(e)},ownKeys:function(e){return Reflect.ownKeys(Je(e))},set:function(e,r,o){var n=Ss(Je(e),r);if(n?.set)return n.set.call(e.k,o),!0;if(!e.P){var a=Mo(Je(e),r),i=a?.[H];if(i&&i.t===o)return e.o[r]=o,e.R[r]=!1,!0;if(Ns(o,a)&&(o!==void 0||Dt(e.t,r)))return!0;$o(e),et(e)}return e.o[r]===o&&(o!==void 0||r in e.o)||Number.isNaN(o)&&Number.isNaN(e.o[r])||(e.o[r]=o,e.R[r]=!0),!0},deleteProperty:function(e,r){return Mo(e.t,r)!==void 0||r in e.t?(e.R[r]=!1,$o(e),et(e)):delete e.R[r],e.o&&delete e.o[r],!0},getOwnPropertyDescriptor:function(e,r){var o=Je(e),n=Reflect.getOwnPropertyDescriptor(o,r);return n&&{writable:!0,configurable:e.i!==1||r!=="length",enumerable:n.enumerable,value:o[r]}},defineProperty:function(){be(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){be(12)}},ar={};mt(sr,function(e,r){ar[e]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)}}),ar.deleteProperty=function(e,r){return ar.set.call(this,e,r,void 0)},ar.set=function(e,r,o){return sr.set.call(this,e[0],r,o,e[0])};var el=function(){function e(o){var n=this;this.O=Es,this.D=!0,this.produce=function(a,i,c){if(typeof a=="function"&&typeof i!="function"){var d=i;i=a;var f=n;return function(S){var L=this;S===void 0&&(S=d);for(var N=arguments.length,R=Array(N>1?N-1:0),T=1;T<N;T++)R[T-1]=arguments[T];return f.produce(S,function(B){var U;return(U=i).call.apply(U,[L,B].concat(R))})}}var u;if(typeof i!="function"&&be(6),c!==void 0&&typeof c!="function"&&be(7),Ce(a)){var h=xs(n),m=Ho(n,a,void 0),g=!0;try{u=i(m),g=!1}finally{g?Mr(h):Fo(h)}return typeof Promise<"u"&&u instanceof Promise?u.then(function(S){return Bo(h,c),Uo(S,h)},function(S){throw Mr(h),S}):(Bo(h,c),Uo(u,h))}if(!a||typeof a!="object"){if((u=i(a))===void 0&&(u=a),u===Ls&&(u=void 0),n.D&&Ko(u,!0),c){var v=[],x=[];Pe("Patches").M(a,u,v,x),c(v,x)}return u}be(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(u){for(var h=arguments.length,m=Array(h>1?h-1:0),g=1;g<h;g++)m[g-1]=arguments[g];return n.produceWithPatches(u,function(v){return a.apply(void 0,[v].concat(m))})};var c,d,f=n.produce(a,i,function(u,h){c=u,d=h});return typeof Promise<"u"&&f instanceof Promise?f.then(function(u){return[u,c,d]}):[f,c,d]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var r=e.prototype;return r.createDraft=function(o){Ce(o)||be(8),Fe(o)&&(o=Yc(o));var n=xs(this),a=Ho(this,o,void 0);return a[H].C=!0,Fo(n),a},r.finishDraft=function(o,n){var a=o&&o[H],i=a.A;return Bo(i,n),Uo(void 0,i)},r.setAutoFreeze=function(o){this.D=o},r.setUseProxies=function(o){o&&!Es&&be(20),this.O=o},r.applyPatches=function(o,n){var a;for(a=n.length-1;a>=0;a--){var i=n[a];if(i.path.length===0&&i.op==="replace"){o=i.value;break}}a>-1&&(n=n.slice(a+1));var c=Pe("Patches").$;return Fe(o)?c(o,n):this.produce(o,function(d){return c(d,n)})},e}(),ye=new el,tl=ye.produce,Ym=ye.produceWithPatches.bind(ye),Xm=ye.setAutoFreeze.bind(ye),Qm=ye.setUseProxies.bind(ye),Jm=ye.applyPatches.bind(ye),eg=ye.createDraft.bind(ye),tg=ye.finishDraft.bind(ye),Fr=tl;function tt(e){"@babel/helpers - typeof";return tt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},tt(e)}function Yo(e,r){if(tt(e)!=="object"||e===null)return e;var o=e[Symbol.toPrimitive];if(o!==void 0){var n=o.call(e,r||"default");if(tt(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function Xo(e){var r=Yo(e,"string");return tt(r)==="symbol"?r:String(r)}function Qo(e,r,o){return r=Xo(r),r in e?Object.defineProperty(e,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[r]=o,e}function Ps(e,r){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),o.push.apply(o,n)}return o}function Hr(e){for(var r=1;r<arguments.length;r++){var o=arguments[r]!=null?arguments[r]:{};r%2?Ps(Object(o),!0).forEach(function(n){Qo(e,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Ps(Object(o)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(o,n))})}return e}function ie(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Ts=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Jo=function(){return Math.random().toString(36).substring(7).split("").join(".")},zr={INIT:"@@redux/INIT"+Jo(),REPLACE:"@@redux/REPLACE"+Jo(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Jo()}};function rl(e){if(typeof e!="object"||e===null)return!1;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(e)===r}function en(e,r,o){var n;if(typeof r=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(ie(0));if(typeof r=="function"&&typeof o>"u"&&(o=r,r=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(ie(1));return o(en)(e,r)}if(typeof e!="function")throw new Error(ie(2));var a=e,i=r,c=[],d=c,f=!1;function u(){d===c&&(d=c.slice())}function h(){if(f)throw new Error(ie(3));return i}function m(S){if(typeof S!="function")throw new Error(ie(4));if(f)throw new Error(ie(5));var L=!0;return u(),d.push(S),function(){if(L){if(f)throw new Error(ie(6));L=!1,u();var R=d.indexOf(S);d.splice(R,1),c=null}}}function g(S){if(!rl(S))throw new Error(ie(7));if(typeof S.type>"u")throw new Error(ie(8));if(f)throw new Error(ie(9));try{f=!0,i=a(i,S)}finally{f=!1}for(var L=c=d,N=0;N<L.length;N++){var R=L[N];R()}return S}function v(S){if(typeof S!="function")throw new Error(ie(10));a=S,g({type:zr.REPLACE})}function x(){var S,L=m;return S={subscribe:function(R){if(typeof R!="object"||R===null)throw new Error(ie(11));function T(){R.next&&R.next(h())}T();var B=L(T);return{unsubscribe:B}}},S[Ts]=function(){return this},S}return g({type:zr.INIT}),n={dispatch:g,subscribe:m,getState:h,replaceReducer:v},n[Ts]=x,n}function ol(e){Object.keys(e).forEach(function(r){var o=e[r],n=o(void 0,{type:zr.INIT});if(typeof n>"u")throw new Error(ie(12));if(typeof o(void 0,{type:zr.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ie(13))})}function _s(e){for(var r=Object.keys(e),o={},n=0;n<r.length;n++){var a=r[n];typeof e[a]=="function"&&(o[a]=e[a])}var i=Object.keys(o),c,d;try{ol(o)}catch(f){d=f}return function(u,h){if(u===void 0&&(u={}),d)throw d;if(0)var m;for(var g=!1,v={},x=0;x<i.length;x++){var S=i[x],L=o[S],N=u[S],R=L(N,h);if(typeof R>"u"){var T=h&&h.type;throw new Error(ie(14))}v[S]=R,g=g||R!==N}return g=g||i.length!==Object.keys(u).length,g?v:u}}function Mt(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return r.length===0?function(n){return n}:r.length===1?r[0]:r.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function ks(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return function(n){return function(){var a=n.apply(void 0,arguments),i=function(){throw new Error(ie(15))},c={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},d=r.map(function(f){return f(c)});return i=Mt.apply(void 0,d)(a.dispatch),Hr(Hr({},a),{},{dispatch:i})}}}function Ds(e){var r=function(n){var a=n.dispatch,i=n.getState;return function(c){return function(d){return typeof d=="function"?d(a,i,e):c(d)}}};return r}var Bs=Ds();Bs.withExtraArgument=Ds;var tn=Bs;var Fs=function(){var e=function(r,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},e(r,o)};return function(r,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");e(r,o);function n(){this.constructor=r}r.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),nl=function(e,r){var o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,c;return c={next:d(0),throw:d(1),return:d(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function d(u){return function(h){return f([u,h])}}function f(u){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,a=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(i=o.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){o=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){o.label=u[1];break}if(u[0]===6&&o.label<i[1]){o.label=i[1],i=u;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(u);break}i[2]&&o.ops.pop(),o.trys.pop();continue}u=r.call(e,o)}catch(h){u=[6,h],a=0}finally{n=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},$t=function(e,r){for(var o=0,n=r.length,a=e.length;o<n;o++,a++)e[a]=r[o];return e},al=Object.defineProperty,il=Object.defineProperties,sl=Object.getOwnPropertyDescriptors,Us=Object.getOwnPropertySymbols,cl=Object.prototype.hasOwnProperty,ll=Object.prototype.propertyIsEnumerable,Ms=function(e,r,o){return r in e?al(e,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[r]=o},rt=function(e,r){for(var o in r||(r={}))cl.call(r,o)&&Ms(e,o,r[o]);if(Us)for(var n=0,a=Us(r);n<a.length;n++){var o=a[n];ll.call(r,o)&&Ms(e,o,r[o])}return e},rn=function(e,r){return il(e,sl(r))},dl=function(e,r,o){return new Promise(function(n,a){var i=function(f){try{d(o.next(f))}catch(u){a(u)}},c=function(f){try{d(o.throw(f))}catch(u){a(u)}},d=function(f){return f.done?n(f.value):Promise.resolve(f.value).then(i,c)};d((o=o.apply(e,r)).next())})};var ul=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Mt:Mt.apply(null,arguments)},xg=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function fl(e){if(typeof e!="object"||e===null)return!1;var r=Object.getPrototypeOf(e);if(r===null)return!0;for(var o=r;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return r===o}var pl=function(e){Fs(r,e);function r(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=e.apply(this,o)||this;return Object.setPrototypeOf(a,r.prototype),a}return Object.defineProperty(r,Symbol.species,{get:function(){return r},enumerable:!1,configurable:!0}),r.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return e.prototype.concat.apply(this,o)},r.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(r.bind.apply(r,$t([void 0],o[0].concat(this)))):new(r.bind.apply(r,$t([void 0],o.concat(this))))},r}(Array),hl=function(e){Fs(r,e);function r(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=e.apply(this,o)||this;return Object.setPrototypeOf(a,r.prototype),a}return Object.defineProperty(r,Symbol.species,{get:function(){return r},enumerable:!1,configurable:!0}),r.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return e.prototype.concat.apply(this,o)},r.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(r.bind.apply(r,$t([void 0],o[0].concat(this)))):new(r.bind.apply(r,$t([void 0],o.concat(this))))},r}(Array);function an(e){return Ce(e)?Fr(e,function(){}):e}function yl(e){return typeof e=="boolean"}function ml(){return function(r){return gl(r)}}function gl(e){e===void 0&&(e={});var r=e.thunk,o=r===void 0?!0:r,n=e.immutableCheck,a=n===void 0?!0:n,i=e.serializableCheck,c=i===void 0?!0:i,d=new pl;if(o&&(yl(o)?d.push(tn):d.push(tn.withExtraArgument(o.extraArgument))),0){if(a)var f;if(c)var u}return d}var on=!0;function Hs(e){var r=ml(),o=e||{},n=o.reducer,a=n===void 0?void 0:n,i=o.middleware,c=i===void 0?r():i,d=o.devTools,f=d===void 0?!0:d,u=o.preloadedState,h=u===void 0?void 0:u,m=o.enhancers,g=m===void 0?void 0:m,v;if(typeof a=="function")v=a;else if(fl(a))v=_s(a);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var x=c;if(typeof x=="function"&&(x=x(r),!on&&!Array.isArray(x)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!on&&x.some(function(B){return typeof B!="function"}))throw new Error("each middleware provided to configureStore must be a function");var S=ks.apply(void 0,x),L=Mt;f&&(L=ul(rt({trace:!on},typeof f=="object"&&f)));var N=new hl(S),R=N;Array.isArray(g)?R=$t([S],g):typeof g=="function"&&(R=g(N));var T=L.apply(void 0,R);return en(v,h,T)}function ot(e,r){function o(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(r){var i=r.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return rt(rt({type:e,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:e,payload:n[0]}}return o.toString=function(){return""+e},o.type=e,o.match=function(n){return n.type===e},o}function zs(e){var r={},o=[],n,a={addCase:function(i,c){var d=typeof i=="string"?i:i.type;if(d in r)throw new Error("addCase cannot be called with two reducers for the same action type");return r[d]=c,a},addMatcher:function(i,c){return o.push({matcher:i,reducer:c}),a},addDefaultCase:function(i){return n=i,a}};return e(a),[r,o,n]}function bl(e){return typeof e=="function"}function xl(e,r,o,n){o===void 0&&(o=[]);var a=typeof r=="function"?zs(r):[r,o,n],i=a[0],c=a[1],d=a[2],f;if(bl(e))f=function(){return an(e())};else{var u=an(e);f=function(){return u}}function h(m,g){m===void 0&&(m=f());var v=$t([i[g.type]],c.filter(function(x){var S=x.matcher;return S(g)}).map(function(x){var S=x.reducer;return S}));return v.filter(function(x){return!!x}).length===0&&(v=[d]),v.reduce(function(x,S){if(S)if(Fe(x)){var L=x,N=S(L,g);return N===void 0?x:N}else{if(Ce(x))return Fr(x,function(R){return S(R,g)});var N=S(x,g);if(N===void 0){if(x===null)return x;throw Error("A case reducer on a non-draftable value must not return undefined")}return N}return x},m)}return h.getInitialState=f,h}function vl(e,r){return e+"/"+r}function Gs(e){var r=e.name;if(!r)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof e.initialState=="function"?e.initialState:an(e.initialState),n=e.reducers||{},a=Object.keys(n),i={},c={},d={};a.forEach(function(h){var m=n[h],g=vl(r,h),v,x;"reducer"in m?(v=m.reducer,x=m.prepare):v=m,i[h]=v,c[g]=v,d[h]=x?ot(g,x):ot(g)});function f(){var h=typeof e.extraReducers=="function"?zs(e.extraReducers):[e.extraReducers],m=h[0],g=m===void 0?{}:m,v=h[1],x=v===void 0?[]:v,S=h[2],L=S===void 0?void 0:S,N=rt(rt({},g),c);return xl(o,function(R){for(var T in N)R.addCase(T,N[T]);for(var B=0,U=x;B<U.length;B++){var le=U[B];R.addMatcher(le.matcher,le.reducer)}L&&R.addDefaultCase(L)})}var u;return{name:r,reducer:function(h,m){return u||(u=f()),u(h,m)},actions:d,caseReducers:i,getInitialState:function(){return u||(u=f()),u.getInitialState()}}}var Sl="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Ol=function(e){e===void 0&&(e=21);for(var r="",o=e;o--;)r+=Sl[Math.random()*64|0];return r},Cl=["name","message","stack","code"],nn=function(){function e(r,o){this.payload=r,this.meta=o}return e}(),$s=function(){function e(r,o){this.payload=r,this.meta=o}return e}(),El=function(e){if(typeof e=="object"&&e!==null){for(var r={},o=0,n=Cl;o<n.length;o++){var a=n[o];typeof e[a]=="string"&&(r[a]=e[a])}return r}return{message:String(e)}},Cg=function(){function e(r,o,n){var a=ot(r+"/fulfilled",function(h,m,g,v){return{payload:h,meta:rn(rt({},v||{}),{arg:g,requestId:m,requestStatus:"fulfilled"})}}),i=ot(r+"/pending",function(h,m,g){return{payload:void 0,meta:rn(rt({},g||{}),{arg:m,requestId:h,requestStatus:"pending"})}}),c=ot(r+"/rejected",function(h,m,g,v,x){return{payload:v,error:(n&&n.serializeError||El)(h||"Rejected"),meta:rn(rt({},x||{}),{arg:g,requestId:m,rejectedWithValue:!!v,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),d=!1,f=typeof AbortController<"u"?AbortController:function(){function h(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return h.prototype.abort=function(){},h}();function u(h){return function(m,g,v){var x=n?.idGenerator?n.idGenerator(h):Ol(),S=new f,L,N=!1;function R(B){L=B,S.abort()}var T=function(){return dl(this,null,function(){var B,U,le,we,se,Ae,ee;return nl(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),we=(B=n?.condition)==null?void 0:B.call(n,h,{getState:g,extra:v}),Al(we)?[4,we]:[3,2];case 1:we=y.sent(),y.label=2;case 2:if(we===!1||S.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return N=!0,se=new Promise(function(b,P){return S.signal.addEventListener("abort",function(){return P({name:"AbortError",message:L||"Aborted"})})}),m(i(x,h,(U=n?.getPendingMeta)==null?void 0:U.call(n,{requestId:x,arg:h},{getState:g,extra:v}))),[4,Promise.race([se,Promise.resolve(o(h,{dispatch:m,getState:g,extra:v,requestId:x,signal:S.signal,abort:R,rejectWithValue:function(b,P){return new nn(b,P)},fulfillWithValue:function(b,P){return new $s(b,P)}})).then(function(b){if(b instanceof nn)throw b;return b instanceof $s?a(b.payload,x,h,b.meta):a(b,x,h)})])];case 3:return le=y.sent(),[3,5];case 4:return Ae=y.sent(),le=Ae instanceof nn?c(null,x,h,Ae.payload,Ae.meta):c(Ae,x,h),[3,5];case 5:return ee=n&&!n.dispatchConditionRejection&&c.match(le)&&le.meta.condition,ee||m(le),[2,le]}})})}();return Object.assign(T,{abort:R,requestId:x,arg:h,unwrap:function(){return T.then(wl)}})}}return Object.assign(u,{pending:i,rejected:c,fulfilled:a,typePrefix:r})}return e.withTypes=function(){return e},e}();function wl(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Al(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var js="listener",Vs="completed",Ks="cancelled",Eg="task-"+Ks,wg="task-"+Vs,Ag=js+"-"+Ks,Ng=js+"-"+Vs;var sn="listenerMiddleware";var Rg=ot(sn+"/add"),Lg=ot(sn+"/removeAll"),Ig=ot(sn+"/remove");var Ws,Pg=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(Ws||(Ws=Promise.resolve())).then(e).catch(function(r){return setTimeout(function(){throw r},0)})},Nl=function(e){return function(r){setTimeout(r,e)}},Tg=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Nl(10);Rs();function Rl(e,r){return class extends e{constructor(){super(...arguments),this.eventBus=r??document.createElement("span")}addEventListener(o,n,a){this.eventBus.addEventListener(o,n,a)}dispatchEvent(o){return this.eventBus.dispatchEvent(o)}removeEventListener(o,n,a){this.eventBus.removeEventListener(o,n,a)}}}var Gr=class extends Rl(Object){};window.ftReduxStores||(window.ftReduxStores={});var Zs=class e extends Gr{static get(r){var o;let n=typeof r=="string"?r:r.name,a=typeof r=="string"?void 0:r,i=window.ftReduxStores[n];if(rr(i))return i;if(a==null)return;let c=Gs({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),d=Hs({reducer:(f,u)=>u.type==="CLEAR_FT_REDUX_STORE"?c.getInitialState():typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__")?{...f,...u.overwrites}:c.reducer(f,u)});return window.ftReduxStores[a.name]=new e(c,d)}constructor(r,o){super(),this.reduxSlice=r,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new _r,this.actions=new Proxy(this.reduxSlice.actions,{get:(n,a,i)=>{let c=a,d=n[c];return d?(...f)=>{let u=d(...f);return this.reduxStore.dispatch(u),u}:f=>{this.setState({[c]:f})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(r){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(r).join("_"),overwrites:r})}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(r){throw new Error("Not implemented yet.")}subscribe(r){return this.reduxStore.subscribe(r)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var Zr=C(k());var jr=class extends We{async listMySearches(){let r=_.getState().session;return r?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(r.profile.userId),5*60*1e3):[]}};var Vr=class extends We{async listMyBookmarks(){let r=_.getState().session;return r?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(r.profile.userId),5*60*1e3):[]}};var Il="ft-user-assets",Kr=Zr.FtReduxStore.get({name:Il,initialState:{savedSearches:void 0,bookmarks:void 0}}),cn=class{constructor(){this.currentSession=_.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Vr,this.savedSearchesService=new jr,_.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var r;let{session:o}=_.getState();(0,Zr.deepEqual)((r=this.currentSession)===null||r===void 0?void 0:r.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Kr.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Kr.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let r=await this.savedSearchesService.listMySearches();Kr.actions.savedSearches(r)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var r;if(this.bookmarksAreUsed){let o=!((r=this.currentSession)===null||r===void 0)&&r.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Kr.actions.bookmarks(o)}}},db=new cn;var ln=class{addCommand(r,o=!1){_.commands.add(r,o)}consumeCommand(r){return _.commands.consume(r)}};window.FluidTopicsAppInfoStoreService=new ln;var qs=C(k()),dn=class{highlightHtml(r,o,n){(0,qs.highlightHtml)(r,o,n)}};window.FluidTopicsHighlightHtmlService=new dn;var Ys=C(k());var un=class{isDate(r){var o,n,a,i;return(i=(a=((n=(o=_.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]).find(d=>d.key===r))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1}format(r,o){var n,a,i;return Ys.DateFormatter.format(r,(n=o?.locale)!==null&&n!==void 0?n:_.getState().uiLocale,(a=o?.longFormat)!==null&&a!==void 0?a:!1,(i=o?.withTime)!==null&&i!==void 0?i:!1)}};window.FluidTopicsDateService=new un;var Pl=C(k());(0,Xs.customElement)("ft-app-context")(K);var fn=class e extends Event{constructor(){super(e.eventName)}};fn.eventName="search-context-clear-all-filters";var Tl=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},yn=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},hn=Symbol("registerInterval");function _l(e){var r;class o extends e{constructor(){super(...arguments),this[r]=0}setSearchStateManager(a){this.clearStateManager(),this.stateManager=a,this.addStore(a.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[hn]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[hn]):this.dispatchEvent(new yn)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return r=hn,Tl([(0,Js.state)()],o.prototype,"stateManager",void 0),o}var qr=class extends _l(Qs.FtLitElementRedux){};var nc=C(k());var eo=C(G()),to=C(ne()),ro=C(k());var ec=C(G());var tc=ec.css`