@fluid-topics/ft-search-input 0.3.66 → 0.3.67

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.
@@ -1,4 +1,4 @@
1
- !function(t,i,e,o,n,s,r){const a=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorContent),l={color:a,backgroundColor:i.FtCssVariableFactory.extend("--ft-ripple-background-color",a),opacityContentOnSurfacePressed:i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfaceSelected,"Design system")},p=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorPrimary),h=p,c=i.FtCssVariableFactory.extend("--ft-ripple-background-color",p),f=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorSecondary),d=f,u=i.FtCssVariableFactory.extend("--ft-ripple-background-color",f),g=e.css`
1
+ !function(t,i,e,o,s,n,r){const a=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorContent),l={color:a,backgroundColor:i.FtCssVariableFactory.extend("--ft-ripple-background-color",a),opacityContentOnSurfacePressed:i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfaceSelected,"Design system")},p=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorPrimary),h=p,c=i.FtCssVariableFactory.extend("--ft-ripple-background-color",p),f=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorSecondary),d=f,u=i.FtCssVariableFactory.extend("--ft-ripple-background-color",f),g=e.css`
2
2
  :host {
3
3
  display: contents;
4
4
  }
@@ -87,7 +87,7 @@
87
87
  opacity: ${l.opacityContentOnSurfacePressed};
88
88
  transform: translate(-50%, -50%) scale(1);
89
89
  }
90
- `;var v,x=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class y extends i.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.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new i.Debouncer(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new i.Debouncer(10),this.moveRipple=t=>{var i,e;let{x:o,y:n}=this.getCoordinates(t),s=null!==(e=null===(i=this.ripple)||void 0===i?void 0:i.getBoundingClientRect())&&void 0!==e?e:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-s.x:s.width/2),this.originY=Math.round(null!=n?n-s.y:s.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"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 e.html`
90
+ `;var v,x=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class y extends i.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.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new i.Debouncer(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new i.Debouncer(10),this.moveRipple=t=>{var i,e;let{x:o,y:s}=this.getCoordinates(t),n=null!==(e=null===(i=this.ripple)||void 0===i?void 0:i.getBoundingClientRect())&&void 0!==e?e:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-n.x:n.width/2),this.originY=Math.round(null!=s?s-n.y:n.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"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 e.html`
91
91
  <style>
92
92
  .ft-ripple .ft-ripple--effect,
93
93
  .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
@@ -100,17 +100,17 @@
100
100
  top: ${this.originY}px;
101
101
  }
102
102
  </style>
103
- <div class="${n.classMap(t)}">
103
+ <div class="${s.classMap(t)}">
104
104
  <div class="ft-ripple--background"></div>
105
105
  <div class="ft-ripple--effect"></div>
106
106
  </div>
107
- `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var i,e;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(i=this.target)||void 0===i||i.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>{var t;const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(i),this.setRippleSize()}))}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const i=(...t)=>i=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(i)},e=i("mouseup","contextmenu"),o=i("touchend","touchcancel"),n=t=>{["Enter"," "].includes(t.key)&&i("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",n),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",e),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",n),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const i=t,e=t;let o,n;return null!=i.x?({x:o,y:n}=i):null!=e.touches&&(o=e.touches[0].clientX,n=e.touches[0].clientY),{x:o,y:n}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let i of t.composedPath()){if(i===this.target)break;if("hasAttribute"in i&&i.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}y.elementDefinitions={},y.styles=g,x([o.property({type:Boolean})],y.prototype,"primary",void 0),x([o.property({type:Boolean})],y.prototype,"secondary",void 0),x([o.property({type:Boolean})],y.prototype,"unbounded",void 0),x([o.property({type:Boolean})],y.prototype,"activated",void 0),x([o.property({type:Boolean})],y.prototype,"selected",void 0),x([o.property({type:Boolean})],y.prototype,"disabled",void 0),x([o.state()],y.prototype,"hovered",void 0),x([o.state()],y.prototype,"focused",void 0),x([o.state()],y.prototype,"pressed",void 0),x([o.state()],y.prototype,"rippling",void 0),x([o.state()],y.prototype,"rippleSize",void 0),x([o.state()],y.prototype,"originX",void 0),x([o.state()],y.prototype,"originY",void 0),x([o.query(".ft-ripple")],y.prototype,"ripple",void 0),x([o.query(".ft-ripple--effect")],y.prototype,"rippleEffect",void 0),i.customElement("ft-ripple")(y);const b=window,m=b.trustedTypes,$=m?m.createPolicy("lit-html",{createHTML:t=>t}):void 0,w=`lit$${(Math.random()+"").slice(9)}$`,k="?"+w,S=`<${k}>`,z=document,C=(t="")=>z.createComment(t),O=t=>null===t||"object"!=typeof t&&"function"!=typeof t,j=Array.isArray,E=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,I=/-->/g,U=/>/g,N=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),M=/'/g,A=/"/g,B=/^(?:script|style|textarea|title)$/i,T=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),F=Symbol.for("lit-noChange"),D=Symbol.for("lit-nothing"),R=new WeakMap,_=z.createTreeWalker(z,129,null,!1),L=(t,i)=>{const e=t.length-1,o=[];let n,s=2===i?"<svg>":"",r=E;for(let i=0;i<e;i++){const e=t[i];let a,l,p=-1,h=0;for(;h<e.length&&(r.lastIndex=h,l=r.exec(e),null!==l);)h=r.lastIndex,r===E?"!--"===l[1]?r=I:void 0!==l[1]?r=U:void 0!==l[2]?(B.test(l[2])&&(n=RegExp("</"+l[2],"g")),r=N):void 0!==l[3]&&(r=N):r===N?">"===l[0]?(r=null!=n?n:E,p=-1):void 0===l[1]?p=-2:(p=r.lastIndex-l[2].length,a=l[1],r=void 0===l[3]?N:'"'===l[3]?A:M):r===A||r===M?r=N:r===I||r===U?r=E:(r=N,n=void 0);const c=r===N&&t[i+1].startsWith("/>")?" ":"";s+=r===E?e+S:p>=0?(o.push(a),e.slice(0,p)+"$lit$"+e.slice(p)+w+c):e+w+(-2===p?(o.push(void 0),i):c)}const a=s+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==$?$.createHTML(a):a,o]};class P{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let n=0,s=0;const r=t.length-1,a=this.parts,[l,p]=L(t,i);if(this.el=P.createElement(l,e),_.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=_.nextNode())&&a.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith("$lit$")||i.startsWith(w)){const e=p[s++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+"$lit$").split(w),i=/([.?@])?(.*)/.exec(e);a.push({type:1,index:n,name:i[2],strings:t,ctor:"."===i[1]?H:"?"===i[1]?Q:"@"===i[1]?V:G})}else a.push({type:6,index:n})}for(const i of t)o.removeAttribute(i)}if(B.test(o.tagName)){const t=o.textContent.split(w),i=t.length-1;if(i>0){o.textContent=m?m.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],C()),_.nextNode(),a.push({type:2,index:++n});o.append(t[i],C())}}}else if(8===o.nodeType)if(o.data===k)a.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(w,t+1));)a.push({type:7,index:n}),t+=w.length-1}n++}}static createElement(t,i){const e=z.createElement("template");return e.innerHTML=t,e}}function Z(t,i,e=t,o){var n,s,r,a;if(i===F)return i;let l=void 0!==o?null===(n=e._$Co)||void 0===n?void 0:n[o]:e._$Cl;const p=O(i)?void 0:i._$litDirective$;return(null==l?void 0:l.constructor)!==p&&(null===(s=null==l?void 0:l._$AO)||void 0===s||s.call(l,!1),void 0===p?l=void 0:(l=new p(t),l._$AT(t,e,o)),void 0!==o?(null!==(r=(a=e)._$Co)&&void 0!==r?r:a._$Co=[])[o]=l:e._$Cl=l),void 0!==l&&(i=Z(t,l._$AS(t,i.values),l,o)),i}class K{constructor(t,i){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var i;const{el:{content:e},parts:o}=this._$AD,n=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:z).importNode(e,!0);_.currentNode=n;let s=_.nextNode(),r=0,a=0,l=o[0];for(;void 0!==l;){if(r===l.index){let i;2===l.type?i=new W(s,s.nextSibling,this,t):1===l.type?i=new l.ctor(s,l.name,l.strings,this,t):6===l.type&&(i=new X(s,this,t)),this.u.push(i),l=o[++a]}r!==(null==l?void 0:l.index)&&(s=_.nextNode(),r++)}return n}p(t){let i=0;for(const e of this.u)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class W{constructor(t,i,e,o){var n;this.type=2,this._$AH=D,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cm=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cm}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=Z(this,t,i),O(t)?t===D||null==t||""===t?(this._$AH!==D&&this._$AR(),this._$AH=D):t!==this._$AH&&t!==F&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>j(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.k(t):this.g(t)}O(t,i=this._$AB){return this._$AA.parentNode.insertBefore(t,i)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==D&&O(this._$AH)?this._$AA.nextSibling.data=t:this.T(z.createTextNode(t)),this._$AH=t}$(t){var i;const{values:e,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=P.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===n)this._$AH.p(e);else{const t=new K(n,this),i=t.v(this.options);t.p(e),this.T(i),this._$AH=t}}_$AC(t){let i=R.get(t.strings);return void 0===i&&R.set(t.strings,i=new P(t)),i}k(t){j(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const n of t)o===i.length?i.push(e=new W(this.O(C()),this.O(C()),this,this.options)):e=i[o],e._$AI(n),o++;o<i.length&&(this._$AR(e&&e._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,i){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cm=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class G{constructor(t,i,e,o,n){this.type=1,this._$AH=D,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=n,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=D}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const n=this.strings;let s=!1;if(void 0===n)t=Z(this,t,i,0),s=!O(t)||t!==this._$AH&&t!==F,s&&(this._$AH=t);else{const o=t;let r,a;for(t=n[0],r=0;r<n.length-1;r++)a=Z(this,o[e+r],i,r),a===F&&(a=this._$AH[r]),s||(s=!O(a)||a!==this._$AH[r]),a===D?t=D:t!==D&&(t+=(null!=a?a:"")+n[r+1]),this._$AH[r]=a}s&&!o&&this.j(t)}j(t){t===D?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class H extends G{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===D?void 0:t}}const q=m?m.emptyScript:"";class Q extends G{constructor(){super(...arguments),this.type=4}j(t){t&&t!==D?this.element.setAttribute(this.name,q):this.element.removeAttribute(this.name)}}class V extends G{constructor(t,i,e,o,n){super(t,i,e,o,n),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=Z(this,t,i,0))&&void 0!==e?e:D)===F)return;const o=this._$AH,n=t===D&&o!==D||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==D&&(o===D||n);n&&this.element.removeEventListener(this.name,this,o),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class X{constructor(t,i,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){Z(this,t)}}const Y=b.litHtmlPolyfillSupport;null==Y||Y(P,W),(null!==(v=b.litHtmlVersions)&&void 0!==v?v:b.litHtmlVersions=[]).push("2.4.0");
107
+ `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var i,e;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(i=this.target)||void 0===i||i.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>{var t;const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(i),this.setRippleSize()}))}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const i=(...t)=>i=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(i)},e=i("mouseup","contextmenu"),o=i("touchend","touchcancel"),s=t=>{["Enter"," "].includes(t.key)&&i("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",s),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",e),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",s),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const i=t,e=t;let o,s;return null!=i.x?({x:o,y:s}=i):null!=e.touches&&(o=e.touches[0].clientX,s=e.touches[0].clientY),{x:o,y:s}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let i of t.composedPath()){if(i===this.target)break;if("hasAttribute"in i&&i.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}y.elementDefinitions={},y.styles=g,x([o.property({type:Boolean})],y.prototype,"primary",void 0),x([o.property({type:Boolean})],y.prototype,"secondary",void 0),x([o.property({type:Boolean})],y.prototype,"unbounded",void 0),x([o.property({type:Boolean})],y.prototype,"activated",void 0),x([o.property({type:Boolean})],y.prototype,"selected",void 0),x([o.property({type:Boolean})],y.prototype,"disabled",void 0),x([o.state()],y.prototype,"hovered",void 0),x([o.state()],y.prototype,"focused",void 0),x([o.state()],y.prototype,"pressed",void 0),x([o.state()],y.prototype,"rippling",void 0),x([o.state()],y.prototype,"rippleSize",void 0),x([o.state()],y.prototype,"originX",void 0),x([o.state()],y.prototype,"originY",void 0),x([o.query(".ft-ripple")],y.prototype,"ripple",void 0),x([o.query(".ft-ripple--effect")],y.prototype,"rippleEffect",void 0),i.customElement("ft-ripple")(y);const b=window,m=b.trustedTypes,$=m?m.createPolicy("lit-html",{createHTML:t=>t}):void 0,w=`lit$${(Math.random()+"").slice(9)}$`,k="?"+w,S=`<${k}>`,z=document,C=(t="")=>z.createComment(t),O=t=>null===t||"object"!=typeof t&&"function"!=typeof t,E=Array.isArray,j=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,I=/-->/g,U=/>/g,N=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),M=/'/g,A=/"/g,B=/^(?:script|style|textarea|title)$/i,T=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),F=Symbol.for("lit-noChange"),D=Symbol.for("lit-nothing"),R=new WeakMap,_=z.createTreeWalker(z,129,null,!1),L=(t,i)=>{const e=t.length-1,o=[];let s,n=2===i?"<svg>":"",r=j;for(let i=0;i<e;i++){const e=t[i];let a,l,p=-1,h=0;for(;h<e.length&&(r.lastIndex=h,l=r.exec(e),null!==l);)h=r.lastIndex,r===j?"!--"===l[1]?r=I:void 0!==l[1]?r=U:void 0!==l[2]?(B.test(l[2])&&(s=RegExp("</"+l[2],"g")),r=N):void 0!==l[3]&&(r=N):r===N?">"===l[0]?(r=null!=s?s:j,p=-1):void 0===l[1]?p=-2:(p=r.lastIndex-l[2].length,a=l[1],r=void 0===l[3]?N:'"'===l[3]?A:M):r===A||r===M?r=N:r===I||r===U?r=j:(r=N,s=void 0);const c=r===N&&t[i+1].startsWith("/>")?" ":"";n+=r===j?e+S:p>=0?(o.push(a),e.slice(0,p)+"$lit$"+e.slice(p)+w+c):e+w+(-2===p?(o.push(void 0),i):c)}const a=n+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==$?$.createHTML(a):a,o]};class P{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let s=0,n=0;const r=t.length-1,a=this.parts,[l,p]=L(t,i);if(this.el=P.createElement(l,e),_.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=_.nextNode())&&a.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith("$lit$")||i.startsWith(w)){const e=p[n++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+"$lit$").split(w),i=/([.?@])?(.*)/.exec(e);a.push({type:1,index:s,name:i[2],strings:t,ctor:"."===i[1]?H:"?"===i[1]?Q:"@"===i[1]?V:G})}else a.push({type:6,index:s})}for(const i of t)o.removeAttribute(i)}if(B.test(o.tagName)){const t=o.textContent.split(w),i=t.length-1;if(i>0){o.textContent=m?m.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],C()),_.nextNode(),a.push({type:2,index:++s});o.append(t[i],C())}}}else if(8===o.nodeType)if(o.data===k)a.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(w,t+1));)a.push({type:7,index:s}),t+=w.length-1}s++}}static createElement(t,i){const e=z.createElement("template");return e.innerHTML=t,e}}function Z(t,i,e=t,o){var s,n,r,a;if(i===F)return i;let l=void 0!==o?null===(s=e._$Co)||void 0===s?void 0:s[o]:e._$Cl;const p=O(i)?void 0:i._$litDirective$;return(null==l?void 0:l.constructor)!==p&&(null===(n=null==l?void 0:l._$AO)||void 0===n||n.call(l,!1),void 0===p?l=void 0:(l=new p(t),l._$AT(t,e,o)),void 0!==o?(null!==(r=(a=e)._$Co)&&void 0!==r?r:a._$Co=[])[o]=l:e._$Cl=l),void 0!==l&&(i=Z(t,l._$AS(t,i.values),l,o)),i}class K{constructor(t,i){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var i;const{el:{content:e},parts:o}=this._$AD,s=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:z).importNode(e,!0);_.currentNode=s;let n=_.nextNode(),r=0,a=0,l=o[0];for(;void 0!==l;){if(r===l.index){let i;2===l.type?i=new W(n,n.nextSibling,this,t):1===l.type?i=new l.ctor(n,l.name,l.strings,this,t):6===l.type&&(i=new X(n,this,t)),this.u.push(i),l=o[++a]}r!==(null==l?void 0:l.index)&&(n=_.nextNode(),r++)}return s}p(t){let i=0;for(const e of this.u)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class W{constructor(t,i,e,o){var s;this.type=2,this._$AH=D,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cm=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cm}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=Z(this,t,i),O(t)?t===D||null==t||""===t?(this._$AH!==D&&this._$AR(),this._$AH=D):t!==this._$AH&&t!==F&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>E(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.k(t):this.g(t)}O(t,i=this._$AB){return this._$AA.parentNode.insertBefore(t,i)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==D&&O(this._$AH)?this._$AA.nextSibling.data=t:this.T(z.createTextNode(t)),this._$AH=t}$(t){var i;const{values:e,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=P.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===s)this._$AH.p(e);else{const t=new K(s,this),i=t.v(this.options);t.p(e),this.T(i),this._$AH=t}}_$AC(t){let i=R.get(t.strings);return void 0===i&&R.set(t.strings,i=new P(t)),i}k(t){E(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const s of t)o===i.length?i.push(e=new W(this.O(C()),this.O(C()),this,this.options)):e=i[o],e._$AI(s),o++;o<i.length&&(this._$AR(e&&e._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,i){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cm=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class G{constructor(t,i,e,o,s){this.type=1,this._$AH=D,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=s,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=D}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const s=this.strings;let n=!1;if(void 0===s)t=Z(this,t,i,0),n=!O(t)||t!==this._$AH&&t!==F,n&&(this._$AH=t);else{const o=t;let r,a;for(t=s[0],r=0;r<s.length-1;r++)a=Z(this,o[e+r],i,r),a===F&&(a=this._$AH[r]),n||(n=!O(a)||a!==this._$AH[r]),a===D?t=D:t!==D&&(t+=(null!=a?a:"")+s[r+1]),this._$AH[r]=a}n&&!o&&this.j(t)}j(t){t===D?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class H extends G{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===D?void 0:t}}const q=m?m.emptyScript:"";class Q extends G{constructor(){super(...arguments),this.type=4}j(t){t&&t!==D?this.element.setAttribute(this.name,q):this.element.removeAttribute(this.name)}}class V extends G{constructor(t,i,e,o,s){super(t,i,e,o,s),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=Z(this,t,i,0))&&void 0!==e?e:D)===F)return;const o=this._$AH,s=t===D&&o!==D||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==D&&(o===D||s);s&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class X{constructor(t,i,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){Z(this,t)}}const Y=b.litHtmlPolyfillSupport;null==Y||Y(P,W),(null!==(v=b.litHtmlVersions)&&void 0!==v?v:b.litHtmlVersions=[]).push("2.4.0");
108
108
  /**
109
109
  * @license
110
110
  * Copyright 2020 Google LLC
111
111
  * SPDX-License-Identifier: BSD-3-Clause
112
112
  */
113
- const J=Symbol.for(""),tt=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:t._$litStatic$},it=t=>({_$litStatic$:t,r:J}),et=new Map,ot=(t=>(i,...e)=>{const o=e.length;let n,s;const r=[],a=[];let l,p=0,h=!1;for(;p<o;){for(l=i[p];p<o&&void 0!==(s=e[p],n=tt(s));)l+=n+i[++p],h=!0;a.push(s),r.push(l),p++}if(p===o&&r.push(i[o]),h){const t=r.join("$$lit$$");void 0===(i=et.get(t))&&(r.raw=r,et.set(t,i=r)),e=a}return t(i,...e)})(T);var nt;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(nt||(nt={}));const st=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.titleFont),rt=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.contentFont),at={fontFamily:rt,fontSize:i.FtCssVariableFactory.create("--ft-typography-font-size","SIZE","16px"),fontWeight:i.FtCssVariableFactory.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:i.FtCssVariableFactory.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:i.FtCssVariableFactory.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:i.FtCssVariableFactory.create("--ft-typography-text-transform","UNKNOWN","inherit")},lt=i.FtCssVariableFactory.extend("--ft-typography-title-font-family",st),pt=i.FtCssVariableFactory.extend("--ft-typography-title-font-size",at.fontSize,"20px"),ht=i.FtCssVariableFactory.extend("--ft-typography-title-font-weight",at.fontWeight,"normal"),ct=i.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",at.letterSpacing,"0.15px"),ft=i.FtCssVariableFactory.extend("--ft-typography-title-line-height",at.lineHeight,"1.2"),dt=i.FtCssVariableFactory.extend("--ft-typography-title-text-transform",at.textTransform,"inherit"),ut=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",st),gt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",at.fontSize,"14px"),vt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",at.fontWeight,"normal"),xt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",at.letterSpacing,"0.105px"),yt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",at.lineHeight,"1.7"),bt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",at.textTransform,"inherit"),mt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",rt),$t=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",at.fontSize,"16px"),wt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",at.fontWeight,"600"),kt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",at.letterSpacing,"0.144px"),St=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",at.lineHeight,"1.5"),zt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",at.textTransform,"inherit"),Ct=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",rt),Ot=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",at.fontSize,"14px"),jt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",at.fontWeight,"normal"),Et=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",at.letterSpacing,"0.098px"),It=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",at.lineHeight,"1.7"),Ut=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",at.textTransform,"inherit"),Nt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-family",rt),Mt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-size",at.fontSize,"16px"),At=i.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",at.fontWeight,"normal"),Bt=i.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",at.letterSpacing,"0.496px"),Tt=i.FtCssVariableFactory.extend("--ft-typography-body1-line-height",at.lineHeight,"1.5"),Ft=i.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",at.textTransform,"inherit"),Dt=i.FtCssVariableFactory.extend("--ft-typography-body2-font-family",rt),Rt=i.FtCssVariableFactory.extend("--ft-typography-body2-font-size",at.fontSize,"14px"),_t=i.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",at.fontWeight,"normal"),Lt=i.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",at.letterSpacing,"0.252px"),Pt=i.FtCssVariableFactory.extend("--ft-typography-body2-line-height",at.lineHeight,"1.4"),Zt=i.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",at.textTransform,"inherit"),Kt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-family",rt),Wt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-size",at.fontSize,"12px"),Gt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",at.fontWeight,"normal"),Ht=i.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",at.letterSpacing,"0.396px"),qt=i.FtCssVariableFactory.extend("--ft-typography-caption-line-height",at.lineHeight,"1.33"),Qt=i.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",at.textTransform,"inherit"),Vt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",rt),Xt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",at.fontSize,"10px"),Yt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",at.fontWeight,"normal"),Jt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",at.letterSpacing,"0.33px"),ti=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",at.lineHeight,"1.6"),ii=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",at.textTransform,"inherit"),ei=i.FtCssVariableFactory.extend("--ft-typography-overline-font-family",rt),oi=i.FtCssVariableFactory.extend("--ft-typography-overline-font-size",at.fontSize,"10px"),ni=i.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",at.fontWeight,"normal"),si=i.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",at.letterSpacing,"1.5px"),ri=i.FtCssVariableFactory.extend("--ft-typography-overline-line-height",at.lineHeight,"1.6"),ai=i.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",at.textTransform,"uppercase"),li={fontFamily:i.FtCssVariableFactory.extend("--ft-typography-button-font-family",rt),fontSize:i.FtCssVariableFactory.extend("--ft-typography-button-font-size",at.fontSize,"14px"),fontWeight:i.FtCssVariableFactory.extend("--ft-typography-button-font-weight",at.fontWeight,"600"),letterSpacing:i.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",at.letterSpacing,"1.246px"),lineHeight:i.FtCssVariableFactory.extend("--ft-typography-button-line-height",at.lineHeight,"1.15"),textTransform:i.FtCssVariableFactory.extend("--ft-typography-button-text-transform",at.textTransform,"uppercase")},pi=e.css`
113
+ const J=Symbol.for(""),tt=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:t._$litStatic$},it=t=>({_$litStatic$:t,r:J}),et=new Map,ot=(t=>(i,...e)=>{const o=e.length;let s,n;const r=[],a=[];let l,p=0,h=!1;for(;p<o;){for(l=i[p];p<o&&void 0!==(n=e[p],s=tt(n));)l+=s+i[++p],h=!0;a.push(n),r.push(l),p++}if(p===o&&r.push(i[o]),h){const t=r.join("$$lit$$");void 0===(i=et.get(t))&&(r.raw=r,et.set(t,i=r)),e=a}return t(i,...e)})(T);var st;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(st||(st={}));const nt=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.titleFont),rt=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.contentFont),at={fontFamily:rt,fontSize:i.FtCssVariableFactory.create("--ft-typography-font-size","SIZE","16px"),fontWeight:i.FtCssVariableFactory.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:i.FtCssVariableFactory.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:i.FtCssVariableFactory.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:i.FtCssVariableFactory.create("--ft-typography-text-transform","UNKNOWN","inherit")},lt=i.FtCssVariableFactory.extend("--ft-typography-title-font-family",nt),pt=i.FtCssVariableFactory.extend("--ft-typography-title-font-size",at.fontSize,"20px"),ht=i.FtCssVariableFactory.extend("--ft-typography-title-font-weight",at.fontWeight,"normal"),ct=i.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",at.letterSpacing,"0.15px"),ft=i.FtCssVariableFactory.extend("--ft-typography-title-line-height",at.lineHeight,"1.2"),dt=i.FtCssVariableFactory.extend("--ft-typography-title-text-transform",at.textTransform,"inherit"),ut=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",nt),gt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",at.fontSize,"14px"),vt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",at.fontWeight,"normal"),xt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",at.letterSpacing,"0.105px"),yt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",at.lineHeight,"1.7"),bt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",at.textTransform,"inherit"),mt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",rt),$t=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",at.fontSize,"16px"),wt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",at.fontWeight,"600"),kt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",at.letterSpacing,"0.144px"),St=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",at.lineHeight,"1.5"),zt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",at.textTransform,"inherit"),Ct=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",rt),Ot=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",at.fontSize,"14px"),Et=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",at.fontWeight,"normal"),jt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",at.letterSpacing,"0.098px"),It=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",at.lineHeight,"1.7"),Ut=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",at.textTransform,"inherit"),Nt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-family",rt),Mt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-size",at.fontSize,"16px"),At=i.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",at.fontWeight,"normal"),Bt=i.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",at.letterSpacing,"0.496px"),Tt=i.FtCssVariableFactory.extend("--ft-typography-body1-line-height",at.lineHeight,"1.5"),Ft=i.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",at.textTransform,"inherit"),Dt=i.FtCssVariableFactory.extend("--ft-typography-body2-font-family",rt),Rt=i.FtCssVariableFactory.extend("--ft-typography-body2-font-size",at.fontSize,"14px"),_t=i.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",at.fontWeight,"normal"),Lt=i.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",at.letterSpacing,"0.252px"),Pt=i.FtCssVariableFactory.extend("--ft-typography-body2-line-height",at.lineHeight,"1.4"),Zt=i.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",at.textTransform,"inherit"),Kt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-family",rt),Wt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-size",at.fontSize,"12px"),Gt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",at.fontWeight,"normal"),Ht=i.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",at.letterSpacing,"0.396px"),qt=i.FtCssVariableFactory.extend("--ft-typography-caption-line-height",at.lineHeight,"1.33"),Qt=i.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",at.textTransform,"inherit"),Vt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",rt),Xt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",at.fontSize,"10px"),Yt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",at.fontWeight,"normal"),Jt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",at.letterSpacing,"0.33px"),ti=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",at.lineHeight,"1.6"),ii=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",at.textTransform,"inherit"),ei=i.FtCssVariableFactory.extend("--ft-typography-overline-font-family",rt),oi=i.FtCssVariableFactory.extend("--ft-typography-overline-font-size",at.fontSize,"10px"),si=i.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",at.fontWeight,"normal"),ni=i.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",at.letterSpacing,"1.5px"),ri=i.FtCssVariableFactory.extend("--ft-typography-overline-line-height",at.lineHeight,"1.6"),ai=i.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",at.textTransform,"uppercase"),li={fontFamily:i.FtCssVariableFactory.extend("--ft-typography-button-font-family",rt),fontSize:i.FtCssVariableFactory.extend("--ft-typography-button-font-size",at.fontSize,"14px"),fontWeight:i.FtCssVariableFactory.extend("--ft-typography-button-font-weight",at.fontWeight,"600"),letterSpacing:i.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",at.letterSpacing,"1.246px"),lineHeight:i.FtCssVariableFactory.extend("--ft-typography-button-line-height",at.lineHeight,"1.15"),textTransform:i.FtCssVariableFactory.extend("--ft-typography-button-text-transform",at.textTransform,"uppercase")},pi=e.css`
114
114
  .ft-typography--title {
115
115
  font-family: ${lt};
116
116
  font-size: ${pt};
@@ -141,8 +141,8 @@ const J=Symbol.for(""),tt=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:
141
141
  .ft-typography--subtitle2 {
142
142
  font-family: ${Ct};
143
143
  font-size: ${Ot};
144
- font-weight: ${jt};
145
- letter-spacing: ${Et};
144
+ font-weight: ${Et};
145
+ letter-spacing: ${jt};
146
146
  line-height: ${It};
147
147
  text-transform: ${Ut};
148
148
  }
@@ -187,8 +187,8 @@ const J=Symbol.for(""),tt=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:
187
187
  .ft-typography--overline {
188
188
  font-family: ${ei};
189
189
  font-size: ${oi};
190
- font-weight: ${ni};
191
- letter-spacing: ${si};
190
+ font-weight: ${si};
191
+ letter-spacing: ${ni};
192
192
  line-height: ${ri};
193
193
  text-transform: ${ai};
194
194
  }
@@ -205,7 +205,7 @@ const J=Symbol.for(""),tt=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:
205
205
  .ft-typography {
206
206
  vertical-align: inherit;
207
207
  }
208
- `;var mi=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class $i extends i.FtLitElement{constructor(){super(...arguments),this.variant=nt.body1}render(){return this.element?ot`
208
+ `;var mi=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class $i extends i.FtLitElement{constructor(){super(...arguments),this.variant=st.body1}render(){return this.element?ot`
209
209
  <${it(this.element)}
210
210
  class="ft-typography ft-typography--${this.variant}">
211
211
  <slot></slot>
@@ -244,7 +244,7 @@ const J=Symbol.for(""),tt=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:
244
244
  position: relative;
245
245
  word-break: break-word;
246
246
  }
247
- `;var Si=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class zi extends i.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new i.Debouncer,this.revealDebouncer=new i.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return e.html`
247
+ `;var Si=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class zi extends i.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new i.Debouncer,this.revealDebouncer=new i.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return e.html`
248
248
  <div part="container"
249
249
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
250
250
  @mouseenter=${this.onHover}
@@ -262,7 +262,7 @@ const J=Symbol.for(""),tt=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:
262
262
  </div>
263
263
  </div>
264
264
  </div>
265
- `}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){["visible","text"].some((i=>t.has(i)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const i=t.getBoundingClientRect(),e=(i.height-this.tooltip.clientHeight)/2,o=(i.width-this.tooltip.clientWidth)/2;let n=0,s=0;switch(this.validPosition){case"top":s=-this.tooltip.clientHeight,n=o;break;case"bottom":s=i.height,n=o;break;case"left":s=e,n=-this.tooltip.clientWidth;break;case"right":s=e,n=i.width}i.left+n+this.tooltip.clientWidth>window.innerWidth&&(n=window.innerWidth-this.tooltip.clientWidth-i.left),i.left+n<0&&(n=0);const r=this.tooltip.style;r.left=n+"px",r.top=s+"px",r.maxWidth=`max(${i.width}px, ${wi.maxWidth})`}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",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}}zi.elementDefinitions={"ft-typography":$i},zi.styles=ki,Si([o.property()],zi.prototype,"text",void 0),Si([o.property({type:Boolean})],zi.prototype,"manual",void 0),Si([o.property({type:Boolean})],zi.prototype,"inline",void 0),Si([o.property({type:Number})],zi.prototype,"delay",void 0),Si([o.property()],zi.prototype,"position",void 0),Si([o.queryAssignedNodes("",!0)],zi.prototype,"slotNodes",void 0),Si([o.query(".ft-tooltip--container")],zi.prototype,"container",void 0),Si([o.query("slot")],zi.prototype,"target",void 0),Si([o.query(".ft-tooltip")],zi.prototype,"tooltip",void 0),Si([o.query(".ft-tooltip--content")],zi.prototype,"tooltipContent",void 0),Si([o.state()],zi.prototype,"visible",void 0),i.customElement("ft-tooltip")(zi);const Ci={color:i.FtCssVariableFactory.extend("--ft-loader-color",i.designSystemVariables.colorPrimary),size:i.FtCssVariableFactory.create("--ft-loader-size","SIZE","80px")},Oi=e.css`
265
+ `}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){["visible","text"].some((i=>t.has(i)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const i=t.getBoundingClientRect(),e=(i.height-this.tooltip.clientHeight)/2,o=(i.width-this.tooltip.clientWidth)/2;let s=0,n=0;switch(this.validPosition){case"top":n=-this.tooltip.clientHeight,s=o;break;case"bottom":n=i.height,s=o;break;case"left":n=e,s=-this.tooltip.clientWidth;break;case"right":n=e,s=i.width}i.left+s+this.tooltip.clientWidth>window.innerWidth&&(s=window.innerWidth-this.tooltip.clientWidth-i.left),i.left+s<0&&(s=0);const r=this.tooltip.style;r.left=s+"px",r.top=n+"px",r.maxWidth=`max(${i.width}px, ${wi.maxWidth})`}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",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}}zi.elementDefinitions={"ft-typography":$i},zi.styles=ki,Si([o.property()],zi.prototype,"text",void 0),Si([o.property({type:Boolean})],zi.prototype,"manual",void 0),Si([o.property({type:Boolean})],zi.prototype,"inline",void 0),Si([o.property({type:Number})],zi.prototype,"delay",void 0),Si([o.property()],zi.prototype,"position",void 0),Si([o.queryAssignedNodes("",!0)],zi.prototype,"slotNodes",void 0),Si([o.query(".ft-tooltip--container")],zi.prototype,"container",void 0),Si([o.query("slot")],zi.prototype,"target",void 0),Si([o.query(".ft-tooltip")],zi.prototype,"tooltip",void 0),Si([o.query(".ft-tooltip--content")],zi.prototype,"tooltipContent",void 0),Si([o.state()],zi.prototype,"visible",void 0),i.customElement("ft-tooltip")(zi);const Ci={color:i.FtCssVariableFactory.extend("--ft-loader-color",i.designSystemVariables.colorPrimary),size:i.FtCssVariableFactory.create("--ft-loader-size","SIZE","80px")},Oi=e.css`
266
266
  :host {
267
267
  line-height: 0;
268
268
  }
@@ -331,14 +331,14 @@ const J=Symbol.for(""),tt=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:
331
331
  transform: translate(calc(0.35 * ${Ci.size}), 0);
332
332
  }
333
333
  }
334
- `;class ji extends i.FtLitElement{render(){return e.html`
334
+ `;class Ei extends i.FtLitElement{render(){return e.html`
335
335
  <div class="ft-loader">
336
336
  <div></div>
337
337
  <div></div>
338
338
  <div></div>
339
339
  <div></div>
340
340
  </div>
341
- `}}var Ei,Ii;ji.styles=Oi,i.customElement("ft-loader")(ji),function(t){t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.STAR="&#xe94c;",t.STAR_PLAIN="&#xe900;",t.DESKTOP="&#xe95e;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.THIN_ARROW_UP="&#xe95c;",t.CONTEXTUAL="&#xe95b;",t.UNSTRUCTURED_DOC="&#xe95a;",t.RESET="&#xe958;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe90f;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_USERS="&#xe912;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe94b;"}(Ei||(Ei={})),function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"}(Ii||(Ii={}));const Ui=new Map([...["abw"].map((t=>[t,Ii.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((t=>[t,Ii.AUDIO])),...["avi"].map((t=>[t,Ii.AVI])),...["chm","xhs"].map((t=>[t,Ii.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((t=>[t,Ii.CODE])),...["csv"].map((t=>[t,Ii.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Ii.DITA])),...["epub"].map((t=>[t,Ii.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Ii.EXCEL])),...["flac"].map((t=>[t,Ii.FLAC])),...["gif"].map((t=>[t,Ii.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Ii.GZIP])),...["html","htm","xhtml"].map((t=>[t,Ii.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,Ii.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Ii.JPEG])),...["json"].map((t=>[t,Ii.JSON])),...["m4a","m4p"].map((t=>[t,Ii.M4A])),...["mov","qt"].map((t=>[t,Ii.MOV])),...["mp3"].map((t=>[t,Ii.MP3])),...["mp4","m4v"].map((t=>[t,Ii.MP4])),...["ogg","oga"].map((t=>[t,Ii.OGG])),...["pdf","ps"].map((t=>[t,Ii.PDF])),...["png"].map((t=>[t,Ii.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Ii.POWERPOINT])),...["rar"].map((t=>[t,Ii.RAR])),...["stp"].map((t=>[t,Ii.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Ii.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((t=>[t,Ii.VIDEO])),...["wav"].map((t=>[t,Ii.WAV])),...["wma"].map((t=>[t,Ii.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Ii.WORD])),...["xml","xsl","rdf"].map((t=>[t,Ii.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Ii.YAML])),...["zip"].map((t=>[t,Ii.ZIP]))]),Ni=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);const Mi={size:i.FtCssVariableFactory.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:i.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family",i.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:i.FtCssVariableFactory.extend("--ft-icon-file-format-font-family",i.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:i.FtCssVariableFactory.extend("--ft-icon-material-font-family",i.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:i.FtCssVariableFactory.create("--ft-icon-vertical-align","UNKNOWN","unset")},Ai=e.css`
341
+ `}}var ji,Ii;Ei.styles=Oi,i.customElement("ft-loader")(Ei),function(t){t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.STAR="&#xe94c;",t.STAR_PLAIN="&#xe900;",t.DESKTOP="&#xe95e;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.THIN_ARROW_UP="&#xe95c;",t.CONTEXTUAL="&#xe95b;",t.UNSTRUCTURED_DOC="&#xe95a;",t.RESET="&#xe958;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe90f;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_USERS="&#xe912;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe94b;"}(ji||(ji={})),function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"}(Ii||(Ii={}));const Ui=new Map([...["abw"].map((t=>[t,Ii.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((t=>[t,Ii.AUDIO])),...["avi"].map((t=>[t,Ii.AVI])),...["chm","xhs"].map((t=>[t,Ii.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((t=>[t,Ii.CODE])),...["csv"].map((t=>[t,Ii.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Ii.DITA])),...["epub"].map((t=>[t,Ii.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Ii.EXCEL])),...["flac"].map((t=>[t,Ii.FLAC])),...["gif"].map((t=>[t,Ii.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Ii.GZIP])),...["html","htm","xhtml"].map((t=>[t,Ii.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,Ii.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Ii.JPEG])),...["json"].map((t=>[t,Ii.JSON])),...["m4a","m4p"].map((t=>[t,Ii.M4A])),...["mov","qt"].map((t=>[t,Ii.MOV])),...["mp3"].map((t=>[t,Ii.MP3])),...["mp4","m4v"].map((t=>[t,Ii.MP4])),...["ogg","oga"].map((t=>[t,Ii.OGG])),...["pdf","ps"].map((t=>[t,Ii.PDF])),...["png"].map((t=>[t,Ii.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Ii.POWERPOINT])),...["rar"].map((t=>[t,Ii.RAR])),...["stp"].map((t=>[t,Ii.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Ii.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((t=>[t,Ii.VIDEO])),...["wav"].map((t=>[t,Ii.WAV])),...["wma"].map((t=>[t,Ii.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Ii.WORD])),...["xml","xsl","rdf"].map((t=>[t,Ii.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Ii.YAML])),...["zip"].map((t=>[t,Ii.ZIP]))]),Ni=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);const Mi={size:i.FtCssVariableFactory.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:i.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family",i.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:i.FtCssVariableFactory.extend("--ft-icon-file-format-font-family",i.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:i.FtCssVariableFactory.extend("--ft-icon-material-font-family",i.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:i.FtCssVariableFactory.create("--ft-icon-vertical-align","UNKNOWN","unset")},Ai=e.css`
342
342
  :host, i.ft-icon {
343
343
  display: inline-flex;
344
344
  align-items: center;
@@ -385,12 +385,12 @@ const J=Symbol.for(""),tt=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:
385
385
  .ft-icon--material {
386
386
  font-family: ${Mi.materialFontFamily}, "Material Icons", sans-serif;
387
387
  }
388
- `;var Bi;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Bi||(Bi={}));var Ti=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class Fi extends i.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=e.nothing}render(){var t;const i=null!==(t=this.variant)&&void 0!==t?t:Bi.fluid_topics,o="material"!==i||this.value;return e.html`
388
+ `;var Bi;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Bi||(Bi={}));var Ti=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class Fi extends i.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=e.nothing}render(){var t;const i=null!==(t=this.variant)&&void 0!==t?t:Bi.fluid_topics,o="material"!==i||this.value;return e.html`
389
389
  <i class="ft-icon ${"ft-icon--"+i}">
390
- ${s.unsafeHTML(this.resolvedIcon)}
390
+ ${n.unsafeHTML(this.resolvedIcon)}
391
391
  <slot ?hidden=${o}></slot>
392
392
  </i>
393
- `}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}update(t){super.update(t),["value","variant"].some((i=>t.has(i)))&&this.resolveIcon()}resolveIcon(){var t,i;let o=this.value||this.textContent;switch(this.variant){case Bi.file_format:this.resolvedIcon=null!==(t=Ii[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case Bi.material:this.resolvedIcon=this.value||e.nothing;break;default:this.resolvedIcon=null!==(i=Ei[o.replace("-","_").toUpperCase()])&&void 0!==i?i:o}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Fi.elementDefinitions={},Fi.styles=Ai,Ti([o.property()],Fi.prototype,"variant",void 0),Ti([o.property()],Fi.prototype,"value",void 0),Ti([o.state()],Fi.prototype,"resolvedIcon",void 0),Ti([o.query("slot")],Fi.prototype,"slottedContent",void 0),i.customElement("ft-icon")(Fi);const Di=i.FtCssVariableFactory.extend("--ft-button-color",i.designSystemVariables.colorPrimary),Ri={backgroundColor:i.FtCssVariableFactory.extend("--ft-button-background-color",i.designSystemVariables.colorSurface),borderRadius:i.FtCssVariableFactory.extend("--ft-button-border-radius",i.designSystemVariables.borderRadiusL),color:Di,fontSize:i.FtCssVariableFactory.extend("--ft-button-font-size",li.fontSize),iconSize:i.FtCssVariableFactory.create("--ft-button-icon-size","SIZE","24px"),rippleColor:i.FtCssVariableFactory.extend("--ft-button-ripple-color",Di),opacityDisabled:i.FtCssVariableFactory.external(i.designSystemVariables.colorOpacityDisabled,"Design system")},_i=i.FtCssVariableFactory.extend("--ft-button-primary-color",i.FtCssVariableFactory.extend("--ft-button-color",i.designSystemVariables.colorOnPrimary)),Li={backgroundColor:i.FtCssVariableFactory.extend("--ft-button-primary-background-color",i.FtCssVariableFactory.extend("--ft-button-background-color",i.designSystemVariables.colorPrimary)),color:_i,rippleColor:i.FtCssVariableFactory.extend("--ft-button-primary-ripple-color",_i)},Pi=i.FtCssVariableFactory.extend("--ft-button-dense-border-radius",i.FtCssVariableFactory.extend("--ft-button-border-radius",i.designSystemVariables.borderRadiusM)),Zi=[i.noTextSelect,e.css`
393
+ `}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}update(t){super.update(t),["value","variant"].some((i=>t.has(i)))&&this.resolveIcon()}resolveIcon(){var t,i;let o=this.value||this.textContent;switch(this.variant){case Bi.file_format:this.resolvedIcon=null!==(t=Ii[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case Bi.material:this.resolvedIcon=this.value||e.nothing;break;default:this.resolvedIcon=null!==(i=ji[o.replace("-","_").toUpperCase()])&&void 0!==i?i:o}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Fi.elementDefinitions={},Fi.styles=Ai,Ti([o.property()],Fi.prototype,"variant",void 0),Ti([o.property()],Fi.prototype,"value",void 0),Ti([o.state()],Fi.prototype,"resolvedIcon",void 0),Ti([o.query("slot")],Fi.prototype,"slottedContent",void 0),i.customElement("ft-icon")(Fi);const Di=i.FtCssVariableFactory.extend("--ft-button-color",i.designSystemVariables.colorPrimary),Ri={backgroundColor:i.FtCssVariableFactory.extend("--ft-button-background-color",i.designSystemVariables.colorSurface),borderRadius:i.FtCssVariableFactory.extend("--ft-button-border-radius",i.designSystemVariables.borderRadiusL),color:Di,fontSize:i.FtCssVariableFactory.extend("--ft-button-font-size",li.fontSize),iconSize:i.FtCssVariableFactory.create("--ft-button-icon-size","SIZE","24px"),rippleColor:i.FtCssVariableFactory.extend("--ft-button-ripple-color",Di),verticalPadding:i.FtCssVariableFactory.create("--ft-button-vertical-padding","SIZE","6px"),horizontalPadding:i.FtCssVariableFactory.create("--ft-button-horizontal-padding","SIZE","8px"),opacityDisabled:i.FtCssVariableFactory.external(i.designSystemVariables.colorOpacityDisabled,"Design system")},_i=i.FtCssVariableFactory.extend("--ft-button-primary-color",i.FtCssVariableFactory.extend("--ft-button-color",i.designSystemVariables.colorOnPrimary)),Li={backgroundColor:i.FtCssVariableFactory.extend("--ft-button-primary-background-color",i.FtCssVariableFactory.extend("--ft-button-background-color",i.designSystemVariables.colorPrimary)),color:_i,rippleColor:i.FtCssVariableFactory.extend("--ft-button-primary-ripple-color",_i)},Pi=i.FtCssVariableFactory.extend("--ft-button-dense-border-radius",i.FtCssVariableFactory.extend("--ft-button-border-radius",i.designSystemVariables.borderRadiusM)),Zi=[i.noTextSelect,e.css`
394
394
  :host {
395
395
  display: inline-block;
396
396
  max-width: 100%;
@@ -439,7 +439,7 @@ const J=Symbol.for(""),tt=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:
439
439
  --ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${Ri.iconSize});
440
440
 
441
441
  border-radius: ${Ri.borderRadius};
442
- padding: var(--ft-button-internal-vertical-padding) var(--ft-button-internal-horizontal-padding);
442
+ padding: ${Ri.verticalPadding} ${Ri.horizontalPadding};
443
443
  background-color: ${Ri.backgroundColor};
444
444
  color: var(--ft-button-internal-color);
445
445
  -webkit-mask-image: radial-gradient(white, black);
@@ -472,7 +472,7 @@ const J=Symbol.for(""),tt=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:
472
472
 
473
473
  .ft-button.ft-button--outlined {
474
474
  border: 1px solid var(--ft-button-internal-color);
475
- padding: calc(var(--ft-button-internal-vertical-padding) - 1px) calc(var(--ft-button-internal-horizontal-padding) - 1px);
475
+ padding: calc(${Ri.verticalPadding} - 1px) calc(${Ri.horizontalPadding} - 1px);
476
476
  }
477
477
 
478
478
  .ft-button:focus {
@@ -489,7 +489,7 @@ const J=Symbol.for(""),tt=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:
489
489
  ${i.setVariable(li.fontSize,"1em")};
490
490
  ${i.setVariable(li.lineHeight,"var(--ft-button-internal-content-height)")};
491
491
  }
492
-
492
+
493
493
  .ft-button--label[hidden] {
494
494
  display: none;
495
495
  }
@@ -513,9 +513,9 @@ const J=Symbol.for(""),tt=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:
513
513
  ${i.setVariable(Ci.size,Ri.iconSize)};
514
514
  ${i.setVariable(Ci.color,"var(--ft-button-internal-color)")};
515
515
  }
516
- `];var Ki=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class Wi extends i.FtLitElement{constructor(){super(...arguments),this.role="button",this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.iconVariant=Bi.material,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}render(){const t={"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};return this.addTooltipIfNeeded(e.html`
516
+ `];var Ki=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class Wi extends i.FtLitElement{constructor(){super(...arguments),this.role="button",this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.iconVariant=Bi.material,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}render(){const t={"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};return this.addTooltipIfNeeded(e.html`
517
517
  <button part="button"
518
- class="${n.classMap(t)}"
518
+ class="${s.classMap(t)}"
519
519
  aria-label="${this.getLabel()}"
520
520
  ?disabled=${this.isDisabled()}>
521
521
  <ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
@@ -536,7 +536,7 @@ const J=Symbol.for(""),tt=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:
536
536
  </ft-tooltip>
537
537
  `:t}resolveIcon(){return this.loading?e.html`
538
538
  <ft-loader part="loader icon"></ft-loader> `:this.icon?e.html`
539
- <ft-icon part="icon" variant="${this.iconVariant}" value="${this.icon}"></ft-icon> `:e.nothing}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}Wi.elementDefinitions={"ft-ripple":y,"ft-tooltip":zi,"ft-typography":$i,"ft-icon":Fi,"ft-loader":ji},Wi.styles=[i.safariEllipsisFix,Zi],Ki([o.property({type:String,reflect:!0})],Wi.prototype,"role",void 0),Ki([o.property({type:Boolean})],Wi.prototype,"primary",void 0),Ki([o.property({type:Boolean})],Wi.prototype,"outlined",void 0),Ki([o.property({type:Boolean})],Wi.prototype,"disabled",void 0),Ki([o.property({type:Boolean})],Wi.prototype,"dense",void 0),Ki([o.property({type:Boolean})],Wi.prototype,"round",void 0),Ki([o.property({type:String})],Wi.prototype,"label",void 0),Ki([o.property({type:String})],Wi.prototype,"icon",void 0),Ki([o.property({type:String})],Wi.prototype,"iconVariant",void 0),Ki([o.property({type:Boolean})],Wi.prototype,"trailingIcon",void 0),Ki([o.property({type:Boolean})],Wi.prototype,"loading",void 0),Ki([o.property({type:String})],Wi.prototype,"tooltipPosition",void 0),Ki([o.property({type:Boolean})],Wi.prototype,"hideTooltip",void 0),Ki([o.property({type:Boolean})],Wi.prototype,"forceTooltip",void 0),Ki([o.query(".ft-button")],Wi.prototype,"button",void 0),Ki([o.query(".ft-button--label slot")],Wi.prototype,"slottedContent",void 0),i.customElement("ft-button")(Wi);const Gi={height:i.FtCssVariableFactory.create("--ft-search-input-height","SIZE","38px"),borderRadius:i.FtCssVariableFactory.extend("--ft-search-input-border-radius",i.designSystemVariables.borderRadiusS),desktopFiltersHeight:i.FtCssVariableFactory.create("--ft-search-input-desktop-filters-height","SIZE","350px"),floatingZIndex:i.FtCssVariableFactory.create("--ft-search-input-floating-components-z-index","NUMBER","3"),colorSurface:i.FtCssVariableFactory.external(i.designSystemVariables.colorSurface,"Design system"),colorOnSurface:i.FtCssVariableFactory.external(i.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:i.FtCssVariableFactory.external(i.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOutline:i.FtCssVariableFactory.external(i.designSystemVariables.colorOutline,"Design system"),colorPrimary:i.FtCssVariableFactory.external(i.designSystemVariables.colorPrimary,"Design system"),elevation02:i.FtCssVariableFactory.external(i.designSystemVariables.elevation02,"Design system"),buttonColor:i.FtCssVariableFactory.external(Ri.color,"Button"),buttonRippleColor:i.FtCssVariableFactory.external(Ri.rippleColor,"Button")},Hi=e.css`
539
+ <ft-icon part="icon" variant="${this.iconVariant}" value="${this.icon}"></ft-icon> `:e.nothing}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}Wi.elementDefinitions={"ft-ripple":y,"ft-tooltip":zi,"ft-typography":$i,"ft-icon":Fi,"ft-loader":Ei},Wi.styles=[i.safariEllipsisFix,Zi],Ki([o.property({type:String,reflect:!0})],Wi.prototype,"role",void 0),Ki([o.property({type:Boolean})],Wi.prototype,"primary",void 0),Ki([o.property({type:Boolean})],Wi.prototype,"outlined",void 0),Ki([o.property({type:Boolean})],Wi.prototype,"disabled",void 0),Ki([o.property({type:Boolean})],Wi.prototype,"dense",void 0),Ki([o.property({type:Boolean})],Wi.prototype,"round",void 0),Ki([o.property({type:String})],Wi.prototype,"label",void 0),Ki([o.property({type:String})],Wi.prototype,"icon",void 0),Ki([o.property({type:String})],Wi.prototype,"iconVariant",void 0),Ki([o.property({type:Boolean})],Wi.prototype,"trailingIcon",void 0),Ki([o.property({type:Boolean})],Wi.prototype,"loading",void 0),Ki([o.property({type:String})],Wi.prototype,"tooltipPosition",void 0),Ki([o.property({type:Boolean})],Wi.prototype,"hideTooltip",void 0),Ki([o.property({type:Boolean})],Wi.prototype,"forceTooltip",void 0),Ki([o.query(".ft-button")],Wi.prototype,"button",void 0),Ki([o.query(".ft-button--label slot")],Wi.prototype,"slottedContent",void 0),i.customElement("ft-button")(Wi);const Gi={height:i.FtCssVariableFactory.create("--ft-search-input-height","SIZE","38px"),borderRadius:i.FtCssVariableFactory.extend("--ft-search-input-border-radius",i.designSystemVariables.borderRadiusS),desktopFiltersHeight:i.FtCssVariableFactory.create("--ft-search-input-desktop-filters-height","SIZE","350px"),floatingZIndex:i.FtCssVariableFactory.create("--ft-search-input-floating-components-z-index","NUMBER","3"),colorSurface:i.FtCssVariableFactory.external(i.designSystemVariables.colorSurface,"Design system"),colorOnSurface:i.FtCssVariableFactory.external(i.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:i.FtCssVariableFactory.external(i.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOutline:i.FtCssVariableFactory.external(i.designSystemVariables.colorOutline,"Design system"),colorPrimary:i.FtCssVariableFactory.external(i.designSystemVariables.colorPrimary,"Design system"),elevation02:i.FtCssVariableFactory.external(i.designSystemVariables.elevation02,"Design system"),buttonColor:i.FtCssVariableFactory.external(Ri.color,"Button"),buttonRippleColor:i.FtCssVariableFactory.external(Ri.rippleColor,"Button")},Hi=e.css`
540
540
  * {
541
541
  box-sizing: border-box;
542
542
  }
@@ -612,10 +612,10 @@ const J=Symbol.for(""),tt=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:
612
612
  display: block;
613
613
  }
614
614
  `,qi=e.css`
615
- `,Qi=i.FtReduxStore.get({name:"ft-app-info",reducers:{setBaseUrl:(t,i)=>{t.baseUrl=i.payload},setApiIntegrationIdentifier:(t,i)=>{t.apiIntegrationIdentifier=i.payload},setUiLocale:(t,i)=>{t.uiLocale=i.payload},setAvailableUiLocales:(t,i)=>{t.availableUiLocales=i.payload},setEditorMode:(t,i)=>{t.editorMode=i.payload},setNoCustom:(t,i)=>{t.noCustom=i.payload},setNoCustomComponent:(t,i)=>{t.noCustomComponent=i.payload},setSession:(t,i)=>{t.session=i.payload}},initialState:{uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],editorMode:!1,noCustom:!1,noCustomComponent:!1}});class Vi{static build(t){const{baseUrl:i,apiIntegrationIdentifier:e}=Qi.getState(),o=null!=t?t:e;if(i&&o&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(i,o,!0)}static get(t){var i;return null!=t?Vi.build(t):null!==(i=Vi.API)&&void 0!==i?i:Vi.API=Vi.build()}static await(t){return new Promise((i=>{let e=Vi.get(t);if(e)i(e);else{const o=Qi.subscribe((()=>{e=Vi.get(t),e&&(o(),i(e))}))}}))}}var Xi;const Yi=Symbol("clearAfterUnitTest");class Ji{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new i.CacheRegistry,this.listeners={},this.currentUiLocale="",this[Xi]=()=>{this.defaultMessages={},this.cache=new i.CacheRegistry,this.listeners={}},this.currentUiLocale=Qi.getState().uiLocale,Qi.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=Qi.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const i=t.name.toLowerCase();this.cache.setFinal(i,t),this.notify(i)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,e){var o;if(t=t.toLowerCase(),Object.keys(e).length>0){const n={...null!==(o=this.defaultMessages[t])&&void 0!==o?o:{},...e};i.deepEqual(this.defaultMessages[t],n)||(this.defaultMessages[t]=n,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...o){var n,s,r;t=t.toLowerCase(),this.fetchContext(t);const a=null!==(s=null===(n=this.cache.getNow(t))||void 0===n?void 0:n.messages)&&void 0!==s?s:{};return new i.ParametrizedLabelResolver(null!==(r=this.defaultMessages[t])&&void 0!==r?r:{},a).resolve(e,...o)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,(()=>this.messageContextProvider(this.currentUiLocale,t))),await this.notify(t)}catch(t){console.error(t)}}subscribe(t,i){var e;return t=t.toLowerCase(),this.listeners[t]=null!==(e=this.listeners[t])&&void 0!==e?e:new Set,this.listeners[t].add(i),()=>{var e;return null===(e=this.listeners[t])||void 0===e?void 0:e.delete(i)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map((t=>this.notify(t))))}async notify(t){null!=this.listeners[t]&&await Promise.all([...this.listeners[t].values()].map((t=>i.delay(0).then((()=>t())).catch((()=>null)))))}}Xi=Yi,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new Ji((async(t,i)=>(await Vi.await()).getFluidTopicsMessageContext(t,i)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new Ji((async(t,i)=>(await Vi.await()).getCustomMessageContext(t,i))));const te=window.FluidTopicsI18nService,ie=window.FluidTopicsCustomI18nService;var ee=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class oe extends i.FtLitElement{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.availableUiLocales=[],this.editorMode=!1,this.noCustom=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.messageContexts=[],this.apiProvider=()=>Vi.get(),this.cache=new i.CacheRegistry,this.cleanSessionDebouncer=new i.Debouncer}render(){return e.html`
615
+ `,Qi=i.FtReduxStore.get({name:"ft-app-info",reducers:{setBaseUrl:(t,i)=>{t.baseUrl=i.payload},setApiIntegrationIdentifier:(t,i)=>{t.apiIntegrationIdentifier=i.payload},setUiLocale:(t,i)=>{t.uiLocale=i.payload},setAvailableUiLocales:(t,i)=>{t.availableUiLocales=i.payload},setEditorMode:(t,i)=>{t.editorMode=i.payload},setNoCustom:(t,i)=>{t.noCustom=i.payload},setNoCustomComponent:(t,i)=>{t.noCustomComponent=i.payload},setSession:(t,i)=>{t.session=i.payload}},initialState:{uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],editorMode:!1,noCustom:!1,noCustomComponent:!1}});class Vi{static build(t){const{baseUrl:i,apiIntegrationIdentifier:e}=Qi.getState(),o=null!=t?t:e;if(i&&o&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(i,o,!0)}static get(t){var i;return null!=t?Vi.build(t):null!==(i=Vi.API)&&void 0!==i?i:Vi.API=Vi.build()}static await(t){return new Promise((i=>{let e=Vi.get(t);if(e)i(e);else{const o=Qi.subscribe((()=>{e=Vi.get(t),e&&(o(),i(e))}))}}))}}var Xi;const Yi=Symbol("clearAfterUnitTest");class Ji{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new i.CacheRegistry,this.listeners={},this.currentUiLocale="",this[Xi]=()=>{this.defaultMessages={},this.cache=new i.CacheRegistry,this.listeners={}},this.currentUiLocale=Qi.getState().uiLocale,Qi.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=Qi.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const i=t.name.toLowerCase();this.cache.setFinal(i,t),this.notify(i)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,e){var o;if(t=t.toLowerCase(),Object.keys(e).length>0){const s={...null!==(o=this.defaultMessages[t])&&void 0!==o?o:{},...e};i.deepEqual(this.defaultMessages[t],s)||(this.defaultMessages[t]=s,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...o){var s,n,r;t=t.toLowerCase(),this.fetchContext(t);const a=null!==(n=null===(s=this.cache.getNow(t))||void 0===s?void 0:s.messages)&&void 0!==n?n:{};return new i.ParametrizedLabelResolver(null!==(r=this.defaultMessages[t])&&void 0!==r?r:{},a).resolve(e,...o)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,(()=>this.messageContextProvider(this.currentUiLocale,t))),await this.notify(t)}catch(t){console.error(t)}}subscribe(t,i){var e;return t=t.toLowerCase(),this.listeners[t]=null!==(e=this.listeners[t])&&void 0!==e?e:new Set,this.listeners[t].add(i),()=>{var e;return null===(e=this.listeners[t])||void 0===e?void 0:e.delete(i)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map((t=>this.notify(t))))}async notify(t){null!=this.listeners[t]&&await Promise.all([...this.listeners[t].values()].map((t=>i.delay(0).then((()=>t())).catch((()=>null)))))}}Xi=Yi,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new Ji((async(t,i)=>(await Vi.await()).getFluidTopicsMessageContext(t,i)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new Ji((async(t,i)=>(await Vi.await()).getCustomMessageContext(t,i))));const te=window.FluidTopicsI18nService,ie=window.FluidTopicsCustomI18nService;var ee=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class oe extends i.FtLitElement{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.availableUiLocales=[],this.editorMode=!1,this.noCustom=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.messageContexts=[],this.apiProvider=()=>Vi.get(),this.cache=new i.CacheRegistry,this.cleanSessionDebouncer=new i.Debouncer}render(){return e.html`
616
616
  <slot></slot>
617
- `}updated(t){super.updated(t),t.has("baseUrl")&&Qi.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&Qi.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&Qi.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&Qi.actions.setNoCustom(this.noCustom),t.has("editorMode")&&Qi.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&Qi.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&Qi.actions.setSession(this.session),t.has("availableUiLocales")&&Qi.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>te.addContext(t))),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){const t=this.apiProvider();!this.withManualResources&&t&&(null==this.session&&(this.session=await this.cache.get("session",(async()=>{const i=await t.getCurrentSession();return i.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),i.idleTimeoutInMillis),i}))),null==this.availableUiLocales&&(this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>t.getAvailableUiLocales()))))}}oe.elementDefinitions={},oe.styles=qi,ee([o.property()],oe.prototype,"baseUrl",void 0),ee([o.property()],oe.prototype,"apiIntegrationIdentifier",void 0),ee([o.property()],oe.prototype,"uiLocale",void 0),ee([i.jsonProperty([])],oe.prototype,"availableUiLocales",void 0),ee([o.property({type:Boolean})],oe.prototype,"editorMode",void 0),ee([o.property({type:Boolean})],oe.prototype,"noCustom",void 0),ee([o.property({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],oe.prototype,"noCustomComponent",void 0),ee([o.property({type:Boolean})],oe.prototype,"withManualResources",void 0),ee([i.jsonProperty([])],oe.prototype,"messageContexts",void 0),ee([i.jsonProperty(void 0)],oe.prototype,"session",void 0),ee([o.property({type:Object})],oe.prototype,"apiProvider",void 0),i.customElement("ft-app-context")(oe);var ne=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class se extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}}const re=Symbol("registerInterval");class ae extends(function(t){var i;class e extends t{constructor(){super(...arguments),this[i]=0}setSearchStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[re]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[re]):this.dispatchEvent(new se)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return i=re,ne([o.state()],e.prototype,"stateManager",void 0),e}(i.FtLitElementRedux)){}const le=e.css`
618
- `;var pe=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};const he=Symbol("i18nProperties"),ce=Symbol("i18nUnsubs");function fe(t){var i;class e extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[i]=new Map}get i18nService(){return this.useCustomMessageContexts?ie:te}i18n(t,i,...e){var o;if("string"==typeof t)return this.i18nService.resolveMessage(t,i,...e);const n=null!==(o=t.args)&&void 0!==o?o:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...n)}onI18nUpdate(t){var i;null===(i=this[he])||void 0===i||i.forEach(((i,e)=>{i.context.toLowerCase()===t.toLowerCase()&&(this[e]=this.i18n(i))})),setTimeout((()=>this.requestUpdate()),0)}updated(t){var i;super.updated(t),null===(i=this[he])||void 0===i||i.forEach(((t,i)=>{null!=t.argsProvider&&(this[i]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[he]&&new Set([...this[he].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,i){t=t.toLowerCase(),this[ce].has(t)||this[ce].set(t,this.i18nService.subscribe(t,(()=>this.onI18nUpdate(t)))),this.i18nService.prepareContext(t,null!=i?i:{})}addI18nContext(t,i){this.addI18nMessages(t.name,i)}disconnectedCallback(){super.disconnectedCallback(),this[ce].forEach((t=>t())),this[ce].clear()}}return i=ce,pe([o.property({type:Boolean})],e.prototype,"useCustomMessageContexts",void 0),e}class de extends(fe(i.FtLitElement)){}class ue extends(fe(i.FtLitElementRedux)){}var ge=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class ve extends ue{constructor(){super(),this.editorMode=!1,this.addStore(Qi)}render(){return this.key&&this.context?e.html`
617
+ `}updated(t){super.updated(t),t.has("baseUrl")&&Qi.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&Qi.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&Qi.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&Qi.actions.setNoCustom(this.noCustom),t.has("editorMode")&&Qi.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&Qi.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&Qi.actions.setSession(this.session),t.has("availableUiLocales")&&Qi.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>te.addContext(t))),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){const t=this.apiProvider();!this.withManualResources&&t&&(null==this.session&&(this.session=await this.cache.get("session",(async()=>{const i=await t.getCurrentSession();return i.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),i.idleTimeoutInMillis),i}))),null==this.availableUiLocales&&(this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>t.getAvailableUiLocales()))))}}oe.elementDefinitions={},oe.styles=qi,ee([o.property()],oe.prototype,"baseUrl",void 0),ee([o.property()],oe.prototype,"apiIntegrationIdentifier",void 0),ee([o.property()],oe.prototype,"uiLocale",void 0),ee([i.jsonProperty([])],oe.prototype,"availableUiLocales",void 0),ee([o.property({type:Boolean})],oe.prototype,"editorMode",void 0),ee([o.property({type:Boolean})],oe.prototype,"noCustom",void 0),ee([o.property({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],oe.prototype,"noCustomComponent",void 0),ee([o.property({type:Boolean})],oe.prototype,"withManualResources",void 0),ee([i.jsonProperty([])],oe.prototype,"messageContexts",void 0),ee([i.jsonProperty(void 0)],oe.prototype,"session",void 0),ee([o.property({type:Object})],oe.prototype,"apiProvider",void 0),i.customElement("ft-app-context")(oe);var se=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class ne extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}}const re=Symbol("registerInterval");class ae extends(function(t){var i;class e extends t{constructor(){super(...arguments),this[i]=0}setSearchStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[re]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[re]):this.dispatchEvent(new ne)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return i=re,se([o.state()],e.prototype,"stateManager",void 0),e}(i.FtLitElementRedux)){}const le=e.css`
618
+ `;var pe=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};const he=Symbol("i18nProperties"),ce=Symbol("i18nUnsubs");function fe(t){var i;class e extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[i]=new Map}get i18nService(){return this.useCustomMessageContexts?ie:te}i18n(t,i,...e){var o;if("string"==typeof t)return this.i18nService.resolveMessage(t,i,...e);const s=null!==(o=t.args)&&void 0!==o?o:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...s)}onI18nUpdate(t){var i;null===(i=this[he])||void 0===i||i.forEach(((i,e)=>{i.context.toLowerCase()===t.toLowerCase()&&(this[e]=this.i18n(i))})),setTimeout((()=>this.requestUpdate()),0)}updated(t){var i;super.updated(t),null===(i=this[he])||void 0===i||i.forEach(((t,i)=>{null!=t.argsProvider&&(this[i]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[he]&&new Set([...this[he].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,i){t=t.toLowerCase(),this[ce].has(t)||this[ce].set(t,this.i18nService.subscribe(t,(()=>this.onI18nUpdate(t)))),this.i18nService.prepareContext(t,null!=i?i:{})}addI18nContext(t,i){this.addI18nMessages(t.name,i)}disconnectedCallback(){super.disconnectedCallback(),this[ce].forEach((t=>t())),this[ce].clear()}}return i=ce,pe([o.property({type:Boolean})],e.prototype,"useCustomMessageContexts",void 0),e}class de extends(fe(i.FtLitElement)){}class ue extends(fe(i.FtLitElementRedux)){}var ge=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class ve extends ue{constructor(){super(),this.editorMode=!1,this.addStore(Qi)}render(){return this.key&&this.context?e.html`
619
619
  <span class="ft-i18n">${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}</span>
620
620
  `:this.editorMode?"Select a context and a label key.":e.nothing}update(t){super.update(t),this.context&&this.key&&this.defaultMessage&&this.addI18nMessages(this.context,{[this.key]:this.defaultMessage})}}ve.elementDefinitions={},ve.styles=le,ge([i.redux()],ve.prototype,"editorMode",void 0),ge([o.property()],ve.prototype,"context",void 0),ge([o.property()],ve.prototype,"key",void 0),ge([i.jsonProperty([])],ve.prototype,"args",void 0),ge([o.property()],ve.prototype,"defaultMessage",void 0);class xe{constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,i)=>{const e=i;return t=>({context:this.name,key:e,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,i)=>(...t)=>te.resolveMessage(this.name,i,...t)})}static build(t){return new xe(t)}static fromGwt(t){return new xe(t)}}i.customElement("ft-i18n")(ve);const ye=xe.build("designedSearchInput"),be=e.css`
621
621
  * {
@@ -659,7 +659,7 @@ const J=Symbol.for(""),tt=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:
659
659
  flex-grow: 1;
660
660
  flex-shrink: 1;
661
661
  }
662
- `;var me=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class $e extends CustomEvent{constructor(t){super("suggestion-selected",{detail:t})}}let we=class extends ae{constructor(){super(...arguments),this.suggestResults=[]}render(){return e.html`
662
+ `;var me=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class $e extends CustomEvent{constructor(t){super("suggestion-selected",{detail:t})}}let we=class extends ae{constructor(){super(...arguments),this.suggestResults=[]}render(){return e.html`
663
663
  <div class="ft-search-input-suggestion ft-word-wrap"
664
664
  part="container"
665
665
  @keydown=${t=>this.onSuggestKeyDown(t)}>
@@ -675,12 +675,12 @@ const J=Symbol.for(""),tt=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:
675
675
  </a>
676
676
  `))}
677
677
  </div>
678
- `}onSuggestKeyDown(t){var i,e,o,n,s,r;switch(t.key){case"ArrowUp":null===(o=null!==(e=null===(i=this.getFocusedSuggestionElement())||void 0===i?void 0:i.previousElementSibling)&&void 0!==e?e:this.getLastSuggestionElement())||void 0===o||o.focus(),t.preventDefault(),t.stopPropagation();break;case"ArrowDown":null===(r=null!==(s=null===(n=this.getFocusedSuggestionElement())||void 0===n?void 0:n.nextElementSibling)&&void 0!==s?s:this.getFirstSuggestionElement())||void 0===r||r.focus(),t.preventDefault(),t.stopPropagation()}}onSuggestKeyUp(t,i){"Enter"!==t.key&&" "!==t.key||this.onSuggestSelected(t,i)}onSuggestSelected(t,i){t.preventDefault(),this.dispatchEvent(new $e(i))}getIcon(t){const i="DOCUMENT"===t.type?Bi.file_format:Bi.fluid_topics;let o;switch(t.type){case"MAP":o="BOOK"===t.editorialType?Ei.BOOK:Ei.ARTICLE;break;case"DOCUMENT":o=function(t,i){var e,o,n,s;t=(null!=t?t:"").toLowerCase(),i=(null!=i?i:"").toLowerCase();const[r,a]=((null!==(e=Ni.get(t))&&void 0!==e?e:t)+"/").split("/");return null!==(s=null!==(n=null!==(o=Ui.get(a))&&void 0!==o?o:Ui.get(i))&&void 0!==n?n:Ui.get(r))&&void 0!==s?s:Ii.UNKNOWN}(t.mimeType,t.filenameExtension);break;case"TOPIC":o=Ei.TOPICS}return e.html`
678
+ `}onSuggestKeyDown(t){var i,e,o,s,n,r;switch(t.key){case"ArrowUp":null===(o=null!==(e=null===(i=this.getFocusedSuggestionElement())||void 0===i?void 0:i.previousElementSibling)&&void 0!==e?e:this.getLastSuggestionElement())||void 0===o||o.focus(),t.preventDefault(),t.stopPropagation();break;case"ArrowDown":null===(r=null!==(n=null===(s=this.getFocusedSuggestionElement())||void 0===s?void 0:s.nextElementSibling)&&void 0!==n?n:this.getFirstSuggestionElement())||void 0===r||r.focus(),t.preventDefault(),t.stopPropagation()}}onSuggestKeyUp(t,i){"Enter"!==t.key&&" "!==t.key||this.onSuggestSelected(t,i)}onSuggestSelected(t,i){t.preventDefault(),this.dispatchEvent(new $e(i))}getIcon(t){const i="DOCUMENT"===t.type?Bi.file_format:Bi.fluid_topics;let o;switch(t.type){case"MAP":o="BOOK"===t.editorialType?ji.BOOK:ji.ARTICLE;break;case"DOCUMENT":o=function(t,i){var e,o,s,n;t=(null!=t?t:"").toLowerCase(),i=(null!=i?i:"").toLowerCase();const[r,a]=((null!==(e=Ni.get(t))&&void 0!==e?e:t)+"/").split("/");return null!==(n=null!==(s=null!==(o=Ui.get(a))&&void 0!==o?o:Ui.get(i))&&void 0!==s?s:Ui.get(r))&&void 0!==n?n:Ii.UNKNOWN}(t.mimeType,t.filenameExtension);break;case"TOPIC":o=ji.TOPICS}return e.html`
679
679
  <ft-icon variant="${i}" part="suggestion-icon">
680
680
  ${o}
681
681
  </ft-icon>
682
- `}getFocusedSuggestionElement(){return this.shadowRoot.querySelector(".ft-search-input-suggestion--suggestion:focus-within")}getLastSuggestionElement(){let t=this.shadowRoot.querySelectorAll(".ft-search-input-suggestion--suggestion");return t.length>0?t[t.length-1]:null}getFirstSuggestionElement(){return this.shadowRoot.querySelector(".ft-search-input-suggestion--suggestion")}focusFirstSuggestion(){var t;null===(t=this.getFirstSuggestionElement())||void 0===t||t.focus()}};we.elementDefinitions={"ft-ripple":y,"ft-typography":$i,"ft-icon":Fi},we.styles=[i.wordWrap,be],me([i.redux()],we.prototype,"suggestResults",void 0),we=me([o.customElement("ft-search-input-suggestion")],we);var ke=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class Se extends(fe(ae)){constructor(){super(),this.liveQuery="",this.suggestResults=[],this.forceCloseSuggestion=!1,this.addI18nContext(ye)}render(){let t={"ft-search-input":!0,"ft-search-input--with-suggestions":this.suggestResults.length>0,"ft-search-input--with-suggestions-closed":this.forceCloseSuggestion};return e.html`
683
- <div class="${n.classMap(t)}" @focusout=${()=>this.forceCloseSuggestion=!1}>
682
+ `}getFocusedSuggestionElement(){return this.shadowRoot.querySelector(".ft-search-input-suggestion--suggestion:focus-within")}getLastSuggestionElement(){let t=this.shadowRoot.querySelectorAll(".ft-search-input-suggestion--suggestion");return t.length>0?t[t.length-1]:null}getFirstSuggestionElement(){return this.shadowRoot.querySelector(".ft-search-input-suggestion--suggestion")}focusFirstSuggestion(){var t;null===(t=this.getFirstSuggestionElement())||void 0===t||t.focus()}};we.elementDefinitions={"ft-ripple":y,"ft-typography":$i,"ft-icon":Fi},we.styles=[i.wordWrap,be],me([i.redux()],we.prototype,"suggestResults",void 0),we=me([o.customElement("ft-search-input-suggestion")],we);var ke=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class Se extends(fe(ae)){constructor(){super(),this.liveQuery="",this.suggestResults=[],this.forceCloseSuggestion=!1,this.addI18nContext(ye)}render(){let t={"ft-search-input":!0,"ft-search-input--with-suggestions":this.suggestResults.length>0,"ft-search-input--with-suggestions-closed":this.forceCloseSuggestion};return e.html`
683
+ <div class="${s.classMap(t)}" @focusout=${()=>this.forceCloseSuggestion=!1}>
684
684
  <div class="ft-search-input--input-container" part="input-container" tabindex="-1">
685
685
  <div class="ft-search-input--input-outline" part="input-outline">
686
686
  <input class="ft-search-input--input ft-typography--body2"
@@ -60,7 +60,7 @@ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.cust
60
60
  * Copyright 2017 Google LLC
61
61
  * SPDX-License-Identifier: BSD-3-Clause
62
62
  */
63
- var U;R.finalized=!0,R.elementProperties=new Map,R.elementStyles=[],R.shadowRootOptions={mode:"open"},null==j||j({ReactiveElement:R}),(null!==(O=S.reactiveElementVersions)&&void 0!==O?O:S.reactiveElementVersions=[]).push("1.4.1");const A=window,P=A.trustedTypes,F=P?P.createPolicy("lit-html",{createHTML:t=>t}):void 0,z=`lit$${(Math.random()+"").slice(9)}$`,B="?"+z,I=`<${B}>`,T=document,L=(t="")=>T.createComment(t),D=t=>null===t||"object"!=typeof t&&"function"!=typeof t,_=Array.isArray,W=t=>_(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),K=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,H=/-->/g,Z=/>/g,V=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),q=/'/g,J=/"/g,X=/^(?:script|style|textarea|title)$/i,G=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),Q=Symbol.for("lit-noChange"),Y=Symbol.for("lit-nothing"),tt=new WeakMap,et=T.createTreeWalker(T,129,null,!1),it=(t,e)=>{const i=t.length-1,n=[];let o,r=2===e?"<svg>":"",s=K;for(let e=0;e<i;e++){const i=t[e];let a,l,c=-1,u=0;for(;u<i.length&&(s.lastIndex=u,l=s.exec(i),null!==l);)u=s.lastIndex,s===K?"!--"===l[1]?s=H:void 0!==l[1]?s=Z:void 0!==l[2]?(X.test(l[2])&&(o=RegExp("</"+l[2],"g")),s=V):void 0!==l[3]&&(s=V):s===V?">"===l[0]?(s=null!=o?o:K,c=-1):void 0===l[1]?c=-2:(c=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?V:'"'===l[3]?J:q):s===J||s===q?s=V:s===H||s===Z?s=K:(s=V,o=void 0);const f=s===V&&t[e+1].startsWith("/>")?" ":"";r+=s===K?i+I:c>=0?(n.push(a),i.slice(0,c)+"$lit$"+i.slice(c)+z+f):i+z+(-2===c?(n.push(void 0),e):f)}const a=r+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==F?F.createHTML(a):a,n]};class nt{constructor({strings:t,_$litType$:e},i){let n;this.parts=[];let o=0,r=0;const s=t.length-1,a=this.parts,[l,c]=it(t,e);if(this.el=nt.createElement(l,i),et.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(n=et.nextNode())&&a.length<s;){if(1===n.nodeType){if(n.hasAttributes()){const t=[];for(const e of n.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(z)){const i=c[r++];if(t.push(e),void 0!==i){const t=n.getAttribute(i.toLowerCase()+"$lit$").split(z),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:o,name:e[2],strings:t,ctor:"."===e[1]?lt:"?"===e[1]?ut:"@"===e[1]?ft:at})}else a.push({type:6,index:o})}for(const e of t)n.removeAttribute(e)}if(X.test(n.tagName)){const t=n.textContent.split(z),e=t.length-1;if(e>0){n.textContent=P?P.emptyScript:"";for(let i=0;i<e;i++)n.append(t[i],L()),et.nextNode(),a.push({type:2,index:++o});n.append(t[e],L())}}}else if(8===n.nodeType)if(n.data===B)a.push({type:2,index:o});else{let t=-1;for(;-1!==(t=n.data.indexOf(z,t+1));)a.push({type:7,index:o}),t+=z.length-1}o++}}static createElement(t,e){const i=T.createElement("template");return i.innerHTML=t,i}}function ot(t,e,i=t,n){var o,r,s,a;if(e===Q)return e;let l=void 0!==n?null===(o=i._$Co)||void 0===o?void 0:o[n]:i._$Cl;const c=D(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==c&&(null===(r=null==l?void 0:l._$AO)||void 0===r||r.call(l,!1),void 0===c?l=void 0:(l=new c(t),l._$AT(t,i,n)),void 0!==n?(null!==(s=(a=i)._$Co)&&void 0!==s?s:a._$Co=[])[n]=l:i._$Cl=l),void 0!==l&&(e=ot(t,l._$AS(t,e.values),l,n)),e}class rt{constructor(t,e){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var e;const{el:{content:i},parts:n}=this._$AD,o=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:T).importNode(i,!0);et.currentNode=o;let r=et.nextNode(),s=0,a=0,l=n[0];for(;void 0!==l;){if(s===l.index){let e;2===l.type?e=new st(r,r.nextSibling,this,t):1===l.type?e=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(e=new ht(r,this,t)),this.u.push(e),l=n[++a]}s!==(null==l?void 0:l.index)&&(r=et.nextNode(),s++)}return o}p(t){let e=0;for(const i of this.u)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class st{constructor(t,e,i,n){var o;this.type=2,this._$AH=Y,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=n,this._$Cm=null===(o=null==n?void 0:n.isConnected)||void 0===o||o}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cm}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=ot(this,t,e),D(t)?t===Y||null==t||""===t?(this._$AH!==Y&&this._$AR(),this._$AH=Y):t!==this._$AH&&t!==Q&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):W(t)?this.k(t):this.g(t)}O(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==Y&&D(this._$AH)?this._$AA.nextSibling.data=t:this.T(T.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:n}=t,o="number"==typeof n?this._$AC(t):(void 0===n.el&&(n.el=nt.createElement(n.h,this.options)),n);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===o)this._$AH.p(i);else{const t=new rt(o,this),e=t.v(this.options);t.p(i),this.T(e),this._$AH=t}}_$AC(t){let e=tt.get(t.strings);return void 0===e&&tt.set(t.strings,e=new nt(t)),e}k(t){_(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,n=0;for(const o of t)n===e.length?e.push(i=new st(this.O(L()),this.O(L()),this,this.options)):i=e[n],i._$AI(o),n++;n<e.length&&(this._$AR(i&&i._$AB.nextSibling,n),e.length=n)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cm=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class at{constructor(t,e,i,n,o){this.type=1,this._$AH=Y,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=o,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Y}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,n){const o=this.strings;let r=!1;if(void 0===o)t=ot(this,t,e,0),r=!D(t)||t!==this._$AH&&t!==Q,r&&(this._$AH=t);else{const n=t;let s,a;for(t=o[0],s=0;s<o.length-1;s++)a=ot(this,n[i+s],e,s),a===Q&&(a=this._$AH[s]),r||(r=!D(a)||a!==this._$AH[s]),a===Y?t=Y:t!==Y&&(t+=(null!=a?a:"")+o[s+1]),this._$AH[s]=a}r&&!n&&this.j(t)}j(t){t===Y?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class lt extends at{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Y?void 0:t}}const ct=P?P.emptyScript:"";class ut extends at{constructor(){super(...arguments),this.type=4}j(t){t&&t!==Y?this.element.setAttribute(this.name,ct):this.element.removeAttribute(this.name)}}class ft extends at{constructor(t,e,i,n,o){super(t,e,i,n,o),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=ot(this,t,e,0))&&void 0!==i?i:Y)===Q)return;const n=this._$AH,o=t===Y&&n!==Y||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,r=t!==Y&&(n===Y||o);o&&this.element.removeEventListener(this.name,this,n),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class ht{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){ot(this,t)}}const pt={P:"$lit$",A:z,M:B,C:1,L:it,R:rt,D:W,V:ot,I:st,H:at,N:ut,U:ft,B:lt,F:ht},dt=A.litHtmlPolyfillSupport;null==dt||dt(nt,st),(null!==(U=A.litHtmlVersions)&&void 0!==U?U:A.litHtmlVersions=[]).push("2.4.0");
63
+ var U;R.finalized=!0,R.elementProperties=new Map,R.elementStyles=[],R.shadowRootOptions={mode:"open"},null==j||j({ReactiveElement:R}),(null!==(O=S.reactiveElementVersions)&&void 0!==O?O:S.reactiveElementVersions=[]).push("1.4.1");const A=window,P=A.trustedTypes,F=P?P.createPolicy("lit-html",{createHTML:t=>t}):void 0,z=`lit$${(Math.random()+"").slice(9)}$`,I="?"+z,B=`<${I}>`,T=document,L=(t="")=>T.createComment(t),D=t=>null===t||"object"!=typeof t&&"function"!=typeof t,_=Array.isArray,W=t=>_(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),K=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,H=/-->/g,Z=/>/g,V=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),q=/'/g,J=/"/g,X=/^(?:script|style|textarea|title)$/i,G=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),Q=Symbol.for("lit-noChange"),Y=Symbol.for("lit-nothing"),tt=new WeakMap,et=T.createTreeWalker(T,129,null,!1),it=(t,e)=>{const i=t.length-1,n=[];let o,r=2===e?"<svg>":"",s=K;for(let e=0;e<i;e++){const i=t[e];let a,l,c=-1,u=0;for(;u<i.length&&(s.lastIndex=u,l=s.exec(i),null!==l);)u=s.lastIndex,s===K?"!--"===l[1]?s=H:void 0!==l[1]?s=Z:void 0!==l[2]?(X.test(l[2])&&(o=RegExp("</"+l[2],"g")),s=V):void 0!==l[3]&&(s=V):s===V?">"===l[0]?(s=null!=o?o:K,c=-1):void 0===l[1]?c=-2:(c=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?V:'"'===l[3]?J:q):s===J||s===q?s=V:s===H||s===Z?s=K:(s=V,o=void 0);const f=s===V&&t[e+1].startsWith("/>")?" ":"";r+=s===K?i+B:c>=0?(n.push(a),i.slice(0,c)+"$lit$"+i.slice(c)+z+f):i+z+(-2===c?(n.push(void 0),e):f)}const a=r+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==F?F.createHTML(a):a,n]};class nt{constructor({strings:t,_$litType$:e},i){let n;this.parts=[];let o=0,r=0;const s=t.length-1,a=this.parts,[l,c]=it(t,e);if(this.el=nt.createElement(l,i),et.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(n=et.nextNode())&&a.length<s;){if(1===n.nodeType){if(n.hasAttributes()){const t=[];for(const e of n.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(z)){const i=c[r++];if(t.push(e),void 0!==i){const t=n.getAttribute(i.toLowerCase()+"$lit$").split(z),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:o,name:e[2],strings:t,ctor:"."===e[1]?lt:"?"===e[1]?ut:"@"===e[1]?ft:at})}else a.push({type:6,index:o})}for(const e of t)n.removeAttribute(e)}if(X.test(n.tagName)){const t=n.textContent.split(z),e=t.length-1;if(e>0){n.textContent=P?P.emptyScript:"";for(let i=0;i<e;i++)n.append(t[i],L()),et.nextNode(),a.push({type:2,index:++o});n.append(t[e],L())}}}else if(8===n.nodeType)if(n.data===I)a.push({type:2,index:o});else{let t=-1;for(;-1!==(t=n.data.indexOf(z,t+1));)a.push({type:7,index:o}),t+=z.length-1}o++}}static createElement(t,e){const i=T.createElement("template");return i.innerHTML=t,i}}function ot(t,e,i=t,n){var o,r,s,a;if(e===Q)return e;let l=void 0!==n?null===(o=i._$Co)||void 0===o?void 0:o[n]:i._$Cl;const c=D(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==c&&(null===(r=null==l?void 0:l._$AO)||void 0===r||r.call(l,!1),void 0===c?l=void 0:(l=new c(t),l._$AT(t,i,n)),void 0!==n?(null!==(s=(a=i)._$Co)&&void 0!==s?s:a._$Co=[])[n]=l:i._$Cl=l),void 0!==l&&(e=ot(t,l._$AS(t,e.values),l,n)),e}class rt{constructor(t,e){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var e;const{el:{content:i},parts:n}=this._$AD,o=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:T).importNode(i,!0);et.currentNode=o;let r=et.nextNode(),s=0,a=0,l=n[0];for(;void 0!==l;){if(s===l.index){let e;2===l.type?e=new st(r,r.nextSibling,this,t):1===l.type?e=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(e=new ht(r,this,t)),this.u.push(e),l=n[++a]}s!==(null==l?void 0:l.index)&&(r=et.nextNode(),s++)}return o}p(t){let e=0;for(const i of this.u)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class st{constructor(t,e,i,n){var o;this.type=2,this._$AH=Y,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=n,this._$Cm=null===(o=null==n?void 0:n.isConnected)||void 0===o||o}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cm}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=ot(this,t,e),D(t)?t===Y||null==t||""===t?(this._$AH!==Y&&this._$AR(),this._$AH=Y):t!==this._$AH&&t!==Q&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):W(t)?this.k(t):this.g(t)}O(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==Y&&D(this._$AH)?this._$AA.nextSibling.data=t:this.T(T.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:n}=t,o="number"==typeof n?this._$AC(t):(void 0===n.el&&(n.el=nt.createElement(n.h,this.options)),n);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===o)this._$AH.p(i);else{const t=new rt(o,this),e=t.v(this.options);t.p(i),this.T(e),this._$AH=t}}_$AC(t){let e=tt.get(t.strings);return void 0===e&&tt.set(t.strings,e=new nt(t)),e}k(t){_(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,n=0;for(const o of t)n===e.length?e.push(i=new st(this.O(L()),this.O(L()),this,this.options)):i=e[n],i._$AI(o),n++;n<e.length&&(this._$AR(i&&i._$AB.nextSibling,n),e.length=n)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cm=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class at{constructor(t,e,i,n,o){this.type=1,this._$AH=Y,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=o,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Y}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,n){const o=this.strings;let r=!1;if(void 0===o)t=ot(this,t,e,0),r=!D(t)||t!==this._$AH&&t!==Q,r&&(this._$AH=t);else{const n=t;let s,a;for(t=o[0],s=0;s<o.length-1;s++)a=ot(this,n[i+s],e,s),a===Q&&(a=this._$AH[s]),r||(r=!D(a)||a!==this._$AH[s]),a===Y?t=Y:t!==Y&&(t+=(null!=a?a:"")+o[s+1]),this._$AH[s]=a}r&&!n&&this.j(t)}j(t){t===Y?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class lt extends at{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Y?void 0:t}}const ct=P?P.emptyScript:"";class ut extends at{constructor(){super(...arguments),this.type=4}j(t){t&&t!==Y?this.element.setAttribute(this.name,ct):this.element.removeAttribute(this.name)}}class ft extends at{constructor(t,e,i,n,o){super(t,e,i,n,o),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=ot(this,t,e,0))&&void 0!==i?i:Y)===Q)return;const n=this._$AH,o=t===Y&&n!==Y||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,r=t!==Y&&(n===Y||o);o&&this.element.removeEventListener(this.name,this,n),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class ht{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){ot(this,t)}}const pt={P:"$lit$",A:z,M:I,C:1,L:it,R:rt,D:W,V:ot,I:st,H:at,N:ut,U:ft,B:lt,F:ht},dt=A.litHtmlPolyfillSupport;null==dt||dt(nt,st),(null!==(U=A.litHtmlVersions)&&void 0!==U?U:A.litHtmlVersions=[]).push("2.4.0");
64
64
  /**
65
65
  * @license
66
66
  * Copyright 2017 Google LLC
@@ -108,7 +108,7 @@ var vt,bt;class yt extends R{constructor(){super(...arguments),this.renderOption
108
108
  display: inline-block;
109
109
  width: 0;
110
110
  }
111
- `;class jt{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var i,n;t=this.resolvePluralKey(t,e);let o=null!==(n=null!==(i=this.labels[t])&&void 0!==i?i:this.defaultLabels[t])&&void 0!==n?n:"";return e.forEach(((t,e)=>o=o.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,i)=>this.formatValue(t,i))))),o}resolvePluralKey(t,e){for(let i of e)if("number"==typeof i){const e=`${t}[\\=${i}]`;if(e in this.labels||e in this.defaultLabels)return e}return t}formatValue(t,e){return t instanceof Date?this.formatDate(t,e):null!=t?t:""}formatDate(t,e){const i=i=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(i):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(i):t.toLocaleString(i);try{return i(document.documentElement.lang)}catch(t){return i()}}}function Ct(t){for(var e=arguments.length,i=Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];throw Error("[Immer] minified error nr: "+t+(i.length?" "+i.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Nt(t){return!!t&&!!t[ve]}function Mt(t){return!!t&&(function(t){if(!t||"object"!=typeof t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;var i=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return i===Object||"function"==typeof i&&Function.toString.call(i)===be}(t)||Array.isArray(t)||!!t[de]||!!t.constructor[de]||zt(t)||Bt(t))}function Rt(t,e,i){void 0===i&&(i=!1),0===Ut(t)?(i?Object.keys:ye)(t).forEach((function(n){i&&"symbol"==typeof n||e(n,t[n],t)})):t.forEach((function(i,n){return e(n,i,t)}))}function Ut(t){var e=t[ve];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:zt(t)?2:Bt(t)?3:0}function At(t,e){return 2===Ut(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Pt(t,e,i){var n=Ut(t);2===n?t.set(e,i):3===n?(t.delete(e),t.add(i)):t[e]=i}function Ft(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function zt(t){return ue&&t instanceof Map}function Bt(t){return fe&&t instanceof Set}function It(t){return t.o||t.t}function Tt(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=ge(t);delete e[ve];for(var i=ye(e),n=0;n<i.length;n++){var o=i[n],r=e[o];!1===r.writable&&(r.writable=!0,r.configurable=!0),(r.get||r.set)&&(e[o]={configurable:!0,writable:!0,enumerable:r.enumerable,value:t[o]})}return Object.create(Object.getPrototypeOf(t),e)}function Lt(t,e){return void 0===e&&(e=!1),_t(t)||Nt(t)||!Mt(t)||(Ut(t)>1&&(t.set=t.add=t.clear=t.delete=Dt),Object.freeze(t),e&&Rt(t,(function(t,e){return Lt(e,!0)}),!0)),t}function Dt(){Ct(2)}function _t(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function Wt(t){var e=me[t];return e||Ct(18,t),e}function Kt(){return le}function Ht(t,e){e&&(Wt("Patches"),t.u=[],t.s=[],t.v=e)}function Zt(t){Vt(t),t.p.forEach(Jt),t.p=null}function Vt(t){t===le&&(le=t.l)}function qt(t){return le={p:[],l:le,h:t,m:!0,_:0}}function Jt(t){var e=t[ve];0===e.i||1===e.i?e.j():e.O=!0}function Xt(t,e){e._=e.p.length;var i=e.p[0],n=void 0!==t&&t!==i;return e.h.g||Wt("ES5").S(e,t,n),n?(i[ve].P&&(Zt(e),Ct(4)),Mt(t)&&(t=Gt(e,t),e.l||Yt(e,t)),e.u&&Wt("Patches").M(i[ve].t,t,e.u,e.s)):t=Gt(e,i,[]),Zt(e),e.u&&e.v(e.u,e.s),t!==pe?t:void 0}function Gt(t,e,i){if(_t(e))return e;var n=e[ve];if(!n)return Rt(e,(function(o,r){return Qt(t,n,e,o,r,i)}),!0),e;if(n.A!==t)return e;if(!n.P)return Yt(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var o=4===n.i||5===n.i?n.o=Tt(n.k):n.o;Rt(3===n.i?new Set(o):o,(function(e,r){return Qt(t,n,o,e,r,i)})),Yt(t,o,!1),i&&t.u&&Wt("Patches").R(n,i,t.u,t.s)}return n.o}function Qt(t,e,i,n,o,r){if(Nt(o)){var s=Gt(t,o,r&&e&&3!==e.i&&!At(e.D,n)?r.concat(n):void 0);if(Pt(i,n,s),!Nt(s))return;t.m=!1}if(Mt(o)&&!_t(o)){if(!t.h.F&&t._<1)return;Gt(t,o),e&&e.A.l||Yt(t,o)}}function Yt(t,e,i){void 0===i&&(i=!1),t.h.F&&t.m&&Lt(e,i)}function te(t,e){var i=t[ve];return(i?It(i):t)[e]}function ee(t,e){if(e in t)for(var i=Object.getPrototypeOf(t);i;){var n=Object.getOwnPropertyDescriptor(i,e);if(n)return n;i=Object.getPrototypeOf(i)}}function ie(t){t.P||(t.P=!0,t.l&&ie(t.l))}function ne(t){t.o||(t.o=Tt(t.t))}function oe(t,e,i){var n=zt(e)?Wt("MapSet").N(e,i):Bt(e)?Wt("MapSet").T(e,i):t.g?function(t,e){var i=Array.isArray(t),n={i:i?1:0,A:e?e.A:Kt(),P:!1,I:!1,D:{},l:e,t,k:null,o:null,j:null,C:!1},o=n,r=xe;i&&(o=[n],r=we);var s=Proxy.revocable(o,r),a=s.revoke,l=s.proxy;return n.k=l,n.j=a,l}(e,i):Wt("ES5").J(e,i);return(i?i.A:Kt()).p.push(n),n}function re(t){return Nt(t)||Ct(22,t),function t(e){if(!Mt(e))return e;var i,n=e[ve],o=Ut(e);if(n){if(!n.P&&(n.i<4||!Wt("ES5").K(n)))return n.t;n.I=!0,i=se(e,o),n.I=!1}else i=se(e,o);return Rt(i,(function(e,o){n&&function(t,e){return 2===Ut(t)?t.get(e):t[e]}(n.t,e)===o||Pt(i,e,t(o))})),3===o?new Set(i):i}(t)}function se(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Tt(t)}var ae,le,ce="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),ue="undefined"!=typeof Map,fe="undefined"!=typeof Set,he="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,pe=ce?Symbol.for("immer-nothing"):((ae={})["immer-nothing"]=!0,ae),de=ce?Symbol.for("immer-draftable"):"__$immer_draftable",ve=ce?Symbol.for("immer-state"):"__$immer_state",be=""+Object.prototype.constructor,ye="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,ge=Object.getOwnPropertyDescriptors||function(t){var e={};return ye(t).forEach((function(i){e[i]=Object.getOwnPropertyDescriptor(t,i)})),e},me={},xe={get:function(t,e){if(e===ve)return t;var i=It(t);if(!At(i,e))return function(t,e,i){var n,o=ee(e,i);return o?"value"in o?o.value:null===(n=o.get)||void 0===n?void 0:n.call(t.k):void 0}(t,i,e);var n=i[e];return t.I||!Mt(n)?n:n===te(t.t,e)?(ne(t),t.o[e]=oe(t.A.h,n,t)):n},has:function(t,e){return e in It(t)},ownKeys:function(t){return Reflect.ownKeys(It(t))},set:function(t,e,i){var n=ee(It(t),e);if(null==n?void 0:n.set)return n.set.call(t.k,i),!0;if(!t.P){var o=te(It(t),e),r=null==o?void 0:o[ve];if(r&&r.t===i)return t.o[e]=i,t.D[e]=!1,!0;if(Ft(i,o)&&(void 0!==i||At(t.t,e)))return!0;ne(t),ie(t)}return t.o[e]===i&&"number"!=typeof i&&(void 0!==i||e in t.o)||(t.o[e]=i,t.D[e]=!0,!0)},deleteProperty:function(t,e){return void 0!==te(t.t,e)||e in t.t?(t.D[e]=!1,ne(t),ie(t)):delete t.D[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var i=It(t),n=Reflect.getOwnPropertyDescriptor(i,e);return n?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:n.enumerable,value:i[e]}:n},defineProperty:function(){Ct(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Ct(12)}},we={};Rt(xe,(function(t,e){we[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),we.deleteProperty=function(t,e){return we.set.call(this,t,e,void 0)},we.set=function(t,e,i){return xe.set.call(this,t[0],e,i,t[0])};var $e=function(){function t(t){var e=this;this.g=he,this.F=!0,this.produce=function(t,i,n){if("function"==typeof t&&"function"!=typeof i){var o=i;i=t;var r=e;return function(t){var e=this;void 0===t&&(t=o);for(var n=arguments.length,s=Array(n>1?n-1:0),a=1;a<n;a++)s[a-1]=arguments[a];return r.produce(t,(function(t){var n;return(n=i).call.apply(n,[e,t].concat(s))}))}}var s;if("function"!=typeof i&&Ct(6),void 0!==n&&"function"!=typeof n&&Ct(7),Mt(t)){var a=qt(e),l=oe(e,t,void 0),c=!0;try{s=i(l),c=!1}finally{c?Zt(a):Vt(a)}return"undefined"!=typeof Promise&&s instanceof Promise?s.then((function(t){return Ht(a,n),Xt(t,a)}),(function(t){throw Zt(a),t})):(Ht(a,n),Xt(s,a))}if(!t||"object"!=typeof t){if(void 0===(s=i(t))&&(s=t),s===pe&&(s=void 0),e.F&&Lt(s,!0),n){var u=[],f=[];Wt("Patches").M(t,s,u,f),n(u,f)}return s}Ct(21,t)},this.produceWithPatches=function(t,i){if("function"==typeof t)return function(i){for(var n=arguments.length,o=Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return e.produceWithPatches(i,(function(e){return t.apply(void 0,[e].concat(o))}))};var n,o,r=e.produce(t,i,(function(t,e){n=t,o=e}));return"undefined"!=typeof Promise&&r instanceof Promise?r.then((function(t){return[t,n,o]})):[r,n,o]},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var e=t.prototype;return e.createDraft=function(t){Mt(t)||Ct(8),Nt(t)&&(t=re(t));var e=qt(this),i=oe(this,t,void 0);return i[ve].C=!0,Vt(e),i},e.finishDraft=function(t,e){var i=(t&&t[ve]).A;return Ht(i,e),Xt(void 0,i)},e.setAutoFreeze=function(t){this.F=t},e.setUseProxies=function(t){t&&!he&&Ct(20),this.g=t},e.applyPatches=function(t,e){var i;for(i=e.length-1;i>=0;i--){var n=e[i];if(0===n.path.length&&"replace"===n.op){t=n.value;break}}i>-1&&(e=e.slice(i+1));var o=Wt("Patches").$;return Nt(t)?o(t,e):this.produce(t,(function(t){return o(t,e)}))},t}(),Oe=new $e,Se=Oe.produce;Oe.produceWithPatches.bind(Oe),Oe.setAutoFreeze.bind(Oe),Oe.setUseProxies.bind(Oe),Oe.applyPatches.bind(Oe),Oe.createDraft.bind(Oe),Oe.finishDraft.bind(Oe);var ke=Se;function Ee(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function je(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function Ce(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?je(Object(i),!0).forEach((function(e){Ee(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):je(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function Ne(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var Me="function"==typeof Symbol&&Symbol.observable||"@@observable",Re=function(){return Math.random().toString(36).substring(7).split("").join(".")},Ue={INIT:"@@redux/INIT"+Re(),REPLACE:"@@redux/REPLACE"+Re(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Re()}};function Ae(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function Pe(t,e,i){var n;if("function"==typeof e&&"function"==typeof i||"function"==typeof i&&"function"==typeof arguments[3])throw new Error(Ne(0));if("function"==typeof e&&void 0===i&&(i=e,e=void 0),void 0!==i){if("function"!=typeof i)throw new Error(Ne(1));return i(Pe)(t,e)}if("function"!=typeof t)throw new Error(Ne(2));var o=t,r=e,s=[],a=s,l=!1;function c(){a===s&&(a=s.slice())}function u(){if(l)throw new Error(Ne(3));return r}function f(t){if("function"!=typeof t)throw new Error(Ne(4));if(l)throw new Error(Ne(5));var e=!0;return c(),a.push(t),function(){if(e){if(l)throw new Error(Ne(6));e=!1,c();var i=a.indexOf(t);a.splice(i,1),s=null}}}function h(t){if(!Ae(t))throw new Error(Ne(7));if(void 0===t.type)throw new Error(Ne(8));if(l)throw new Error(Ne(9));try{l=!0,r=o(r,t)}finally{l=!1}for(var e=s=a,i=0;i<e.length;i++){(0,e[i])()}return t}function p(t){if("function"!=typeof t)throw new Error(Ne(10));o=t,h({type:Ue.REPLACE})}function d(){var t,e=f;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(Ne(11));function i(){t.next&&t.next(u())}return i(),{unsubscribe:e(i)}}})[Me]=function(){return this},t}return h({type:Ue.INIT}),(n={dispatch:h,subscribe:f,getState:u,replaceReducer:p})[Me]=d,n}function Fe(t){for(var e=Object.keys(t),i={},n=0;n<e.length;n++){var o=e[n];"function"==typeof t[o]&&(i[o]=t[o])}var r,s=Object.keys(i);try{!function(t){Object.keys(t).forEach((function(e){var i=t[e];if(void 0===i(void 0,{type:Ue.INIT}))throw new Error(Ne(12));if(void 0===i(void 0,{type:Ue.PROBE_UNKNOWN_ACTION()}))throw new Error(Ne(13))}))}(i)}catch(t){r=t}return function(t,e){if(void 0===t&&(t={}),r)throw r;for(var n=!1,o={},a=0;a<s.length;a++){var l=s[a],c=i[l],u=t[l],f=c(u,e);if(void 0===f)throw e&&e.type,new Error(Ne(14));o[l]=f,n=n||f!==u}return(n=n||s.length!==Object.keys(t).length)?o:t}}function ze(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce((function(t,e){return function(){return t(e.apply(void 0,arguments))}}))}function Be(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return function(t){return function(){var i=t.apply(void 0,arguments),n=function(){throw new Error(Ne(15))},o={getState:i.getState,dispatch:function(){return n.apply(void 0,arguments)}},r=e.map((function(t){return t(o)}));return n=ze.apply(void 0,r)(i.dispatch),Ce(Ce({},i),{},{dispatch:n})}}}function Ie(t){return function(e){var i=e.dispatch,n=e.getState;return function(e){return function(o){return"function"==typeof o?o(i,n,t):e(o)}}}}var Te=Ie();Te.withExtraArgument=Ie;var Le,De=Te,_e=(Le=function(t,e){return Le=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},Le(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}Le(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),We=function(t,e){for(var i=0,n=e.length,o=t.length;i<n;i++,o++)t[o]=e[i];return t},Ke=Object.defineProperty,He=Object.getOwnPropertySymbols,Ze=Object.prototype.hasOwnProperty,Ve=Object.prototype.propertyIsEnumerable,qe=function(t,e,i){return e in t?Ke(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i},Je=function(t,e){for(var i in e||(e={}))Ze.call(e,i)&&qe(t,i,e[i]);if(He)for(var n=0,o=He(e);n<o.length;n++){i=o[n];Ve.call(e,i)&&qe(t,i,e[i])}return t},Xe="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?ze:ze.apply(null,arguments)};var Ge=function(t){function e(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];var o=t.apply(this,i)||this;return Object.setPrototypeOf(o,e.prototype),o}return _e(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,We([void 0],t[0].concat(this)))):new(e.bind.apply(e,We([void 0],t.concat(this))))},e}(Array);function Qe(t){return Mt(t)?ke(t,(function(){})):t}function Ye(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,i=void 0===e||e;t.immutableCheck,t.serializableCheck;var n=new Ge;i&&(!function(t){return"boolean"==typeof t}(i)?n.push(De.withExtraArgument(i.extraArgument)):n.push(De));return n}(t)}}function ti(t){var e,i=Ye(),n=t||{},o=n.reducer,r=void 0===o?void 0:o,s=n.middleware,a=void 0===s?i():s,l=n.devTools,c=void 0===l||l,u=n.preloadedState,f=void 0===u?void 0:u,h=n.enhancers,p=void 0===h?void 0:h;if("function"==typeof r)e=r;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var i=e;null!==Object.getPrototypeOf(i);)i=Object.getPrototypeOf(i);return e===i}(r))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');e=Fe(r)}var d=a;"function"==typeof d&&(d=d(i));var v=Be.apply(void 0,d),b=ze;c&&(b=Xe(Je({trace:!1},"object"==typeof c&&c)));var y=[v];return Array.isArray(p)?y=We([v],p):"function"==typeof p&&(y=p(y)),Pe(e,f,b.apply(void 0,y))}function ei(t,e){function i(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];if(e){var o=e.apply(void 0,i);if(!o)throw new Error("prepareAction did not return an object");return Je(Je({type:t,payload:o.payload},"meta"in o&&{meta:o.meta}),"error"in o&&{error:o.error})}return{type:t,payload:i[0]}}return i.toString=function(){return""+t},i.type=t,i.match=function(e){return e.type===t},i}function ii(t){var e,i={},n=[],o={addCase:function(t,e){var n="string"==typeof t?t:t.type;if(n in i)throw new Error("addCase cannot be called with two reducers for the same action type");return i[n]=e,o},addMatcher:function(t,e){return n.push({matcher:t,reducer:e}),o},addDefaultCase:function(t){return e=t,o}};return t(o),[i,n,e]}function ni(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var i,n="function"==typeof t.initialState?t.initialState:Qe(t.initialState),o=t.reducers||{},r=Object.keys(o),s={},a={},l={};function c(){var e="function"==typeof t.extraReducers?ii(t.extraReducers):[t.extraReducers],i=e[0],o=void 0===i?{}:i,r=e[1],s=void 0===r?[]:r,l=e[2],c=void 0===l?void 0:l,u=Je(Je({},o),a);return function(t,e,i,n){void 0===i&&(i=[]);var o,r="function"==typeof e?ii(e):[e,i,n],s=r[0],a=r[1],l=r[2];if(function(t){return"function"==typeof t}(t))o=function(){return Qe(t())};else{var c=Qe(t);o=function(){return c}}function u(t,e){void 0===t&&(t=o());var i=We([s[e.type]],a.filter((function(t){return(0,t.matcher)(e)})).map((function(t){return t.reducer})));return 0===i.filter((function(t){return!!t})).length&&(i=[l]),i.reduce((function(t,i){if(i){var n;if(Nt(t))return void 0===(n=i(t,e))?t:n;if(Mt(t))return ke(t,(function(t){return i(t,e)}));if(void 0===(n=i(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return n}return t}),t)}return u.getInitialState=o,u}(n,u,s,c)}return r.forEach((function(t){var i,n,r=o[t],c=e+"/"+t;"reducer"in r?(i=r.reducer,n=r.prepare):i=r,s[t]=i,a[c]=i,l[t]=n?ei(c,n):ei(c)})),{name:e,reducer:function(t,e){return i||(i=c()),i(t,e)},actions:l,caseReducers:s,getInitialState:function(){return i||(i=c()),i.getInitialState()}}}var oi="listenerMiddleware";ei(oi+"/add"),ei(oi+"/removeAll"),ei(oi+"/remove"),function(){function t(t,e){var i=o[t];return i?i.enumerable=e:o[t]=i={configurable:!0,enumerable:e,get:function(){var e=this[ve];return xe.get(e,t)},set:function(e){var i=this[ve];xe.set(i,t,e)}},i}function e(t){for(var e=t.length-1;e>=0;e--){var o=t[e][ve];if(!o.P)switch(o.i){case 5:n(o)&&ie(o);break;case 4:i(o)&&ie(o)}}}function i(t){for(var e=t.t,i=t.k,n=ye(i),o=n.length-1;o>=0;o--){var r=n[o];if(r!==ve){var s=e[r];if(void 0===s&&!At(e,r))return!0;var a=i[r],l=a&&a[ve];if(l?l.t!==s:!Ft(a,s))return!0}}var c=!!e[ve];return n.length!==ye(e).length+(c?0:1)}function n(t){var e=t.k;if(e.length!==t.t.length)return!0;var i=Object.getOwnPropertyDescriptor(e,e.length-1);if(i&&!i.get)return!0;for(var n=0;n<e.length;n++)if(!e.hasOwnProperty(n))return!0;return!1}var o={};!function(t,e){me[t]||(me[t]=e)}("ES5",{J:function(e,i){var n=Array.isArray(e),o=function(e,i){if(e){for(var n=Array(i.length),o=0;o<i.length;o++)Object.defineProperty(n,""+o,t(o,!0));return n}var r=ge(i);delete r[ve];for(var s=ye(r),a=0;a<s.length;a++){var l=s[a];r[l]=t(l,e||!!r[l].enumerable)}return Object.create(Object.getPrototypeOf(i),r)}(n,e),r={i:n?5:4,A:i?i.A:Kt(),P:!1,I:!1,D:{},l:i,t:e,k:o,o:null,O:!1,C:!1};return Object.defineProperty(o,ve,{value:r,writable:!0}),o},S:function(t,i,o){o?Nt(i)&&i[ve].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var i=e[ve];if(i){var o=i.t,r=i.k,s=i.D,a=i.i;if(4===a)Rt(r,(function(e){e!==ve&&(void 0!==o[e]||At(o,e)?s[e]||t(r[e]):(s[e]=!0,ie(i)))})),Rt(o,(function(t){void 0!==r[t]||At(r,t)||(s[t]=!1,ie(i))}));else if(5===a){if(n(i)&&(ie(i),s.length=!0),r.length<o.length)for(var l=r.length;l<o.length;l++)s[l]=!1;else for(var c=o.length;c<r.length;c++)s[c]=!0;for(var u=Math.min(r.length,o.length),f=0;f<u;f++)r.hasOwnProperty(f)||(s[f]=!0),void 0===s[f]&&t(r[f])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?i(t):n(t)}})}();const ri=t=>"object"==typeof t&&(0===Object.keys(t).length||"string"==typeof t.store||null!=t.selector||"function"==typeof t.hasChanged||null!=t.attribute),si=(t,e)=>{var i;const n=ri(t)?t:{};return e=null!==(i=null!=e?e:n.hasChanged)&&void 0!==i?i:(t,e)=>!f(t,e),(i,o)=>{var r,s;i.constructor.createProperty(o,{hasChanged:e,attribute:null!==(r=n.attribute)&&void 0!==r&&r});const a=i;a.reduxProperties=a.reduxProperties||new Map;const l=null!==(s=ri(t)?n.selector:t)&&void 0!==s?s:t=>t[o];a.reduxProperties.set(o,{selector:l,store:n.store})}};class ai extends Ot{constructor(){super(...arguments),this.internalStoresUnsubscribers=new Map,this.internalStores=new Map}getUnnamedStore(){if(this.internalStores.size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this.internalStores.values()][0]}get store(){return this.getUnnamedStore()}set store(t){this.unsubscribeFromStores(),this.internalStores.clear(),t&&this.addStore(t)}getStore(t){var e;return null==t?null!==(e=this.getUnnamedStore())&&void 0!==e?e:this.store:this.internalStores.get(t)}addStore(t,e){e=null!=e?e:li(t)?t.name:"ft-lit-element-redux-default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:li(t)?t.name:"ft-lit-element-redux-default-store";this.unsubscribeFromStore(e),this.internalStores.delete(e)}setupStore(t,e){this.internalStores.set(t,e),this.updateFromStores(),this.subscribeToStore(t,e)}setupStores(){this.unsubscribeFromStores(),0===this.internalStores.size&&null!=this.store?this.addStore(this.store):(this.updateFromStores(),this.internalStores.forEach(((t,e)=>this.subscribeToStore(e,t))))}updateFromStores(){this.reduxProperties&&this.reduxProperties.forEach(((t,e)=>{const i=this.constructor.getPropertyOptions(e);if(!(null==i?void 0:i.attribute)||!this.hasAttribute("string"==typeof(null==i?void 0:i.attribute)?i.attribute:e)){const i=this.getStore(t.store);i&&(this[e]=t.selector(i.getState(),this))}}))}subscribeToStore(t,e){this.internalStoresUnsubscribers.set(t,e.subscribe((()=>this.updateFromStores()))),this.onStoreAvailable(t)}unsubscribeFromStores(){Object.keys(this.internalStoresUnsubscribers).forEach((t=>this.unsubscribeFromStore(t)))}unsubscribeFromStore(t){this.internalStoresUnsubscribers.has(t)&&this.internalStoresUnsubscribers.get(t)(),this.internalStoresUnsubscribers.delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){this.unsubscribeFromStores(),super.disconnectedCallback()}}function li(t){var e;return null===(e=t)||void 0===e?void 0:e.isFtReduxStore}class ci{constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.actions=new Proxy(this.reduxSlice.actions,{get:(t,e,i)=>{const n=t[e];if(n)return(...t)=>{const e=n(...t);return this.reduxStore.dispatch(e),e}}})}static get(t){window.ftReduxStores||(window.ftReduxStores={});const e="string"==typeof t?t:t.name,i="string"==typeof t?void 0:t,n=window.ftReduxStores[e];if(li(n))return n;if(null==i)return;const o=ni(i);if(n)return new ci(o,n);const r=ti({reducer:o.reducer});return window.ftReduxStores[i.name]=new ci(o,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(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}var ui,fi,hi;const pi=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(hi=null===(fi=null===(ui=window.safari)||void 0===ui?void 0:ui.pushNotification)||void 0===fi?void 0:fi.toString())&&void 0!==hi?hi:""),di=1,vi=2,bi=t=>(...e)=>({_$litDirective$:t,values:e});
111
+ `;class jt{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var i,n;t=this.resolvePluralKey(t,e);let o=null!==(n=null!==(i=this.labels[t])&&void 0!==i?i:this.defaultLabels[t])&&void 0!==n?n:"";return e.forEach(((t,e)=>o=o.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,i)=>this.formatValue(t,i))))),o}resolvePluralKey(t,e){for(let i of e)if("number"==typeof i){const e=`${t}[\\=${i}]`;if(e in this.labels||e in this.defaultLabels)return e}return t}formatValue(t,e){return t instanceof Date?this.formatDate(t,e):null!=t?t:""}formatDate(t,e){const i=i=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(i):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(i):t.toLocaleString(i);try{return i(document.documentElement.lang)}catch(t){return i()}}}function Ct(t){for(var e=arguments.length,i=Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];throw Error("[Immer] minified error nr: "+t+(i.length?" "+i.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Nt(t){return!!t&&!!t[ve]}function Mt(t){return!!t&&(function(t){if(!t||"object"!=typeof t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;var i=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return i===Object||"function"==typeof i&&Function.toString.call(i)===be}(t)||Array.isArray(t)||!!t[de]||!!t.constructor[de]||zt(t)||It(t))}function Rt(t,e,i){void 0===i&&(i=!1),0===Ut(t)?(i?Object.keys:ye)(t).forEach((function(n){i&&"symbol"==typeof n||e(n,t[n],t)})):t.forEach((function(i,n){return e(n,i,t)}))}function Ut(t){var e=t[ve];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:zt(t)?2:It(t)?3:0}function At(t,e){return 2===Ut(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Pt(t,e,i){var n=Ut(t);2===n?t.set(e,i):3===n?(t.delete(e),t.add(i)):t[e]=i}function Ft(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function zt(t){return ue&&t instanceof Map}function It(t){return fe&&t instanceof Set}function Bt(t){return t.o||t.t}function Tt(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=ge(t);delete e[ve];for(var i=ye(e),n=0;n<i.length;n++){var o=i[n],r=e[o];!1===r.writable&&(r.writable=!0,r.configurable=!0),(r.get||r.set)&&(e[o]={configurable:!0,writable:!0,enumerable:r.enumerable,value:t[o]})}return Object.create(Object.getPrototypeOf(t),e)}function Lt(t,e){return void 0===e&&(e=!1),_t(t)||Nt(t)||!Mt(t)||(Ut(t)>1&&(t.set=t.add=t.clear=t.delete=Dt),Object.freeze(t),e&&Rt(t,(function(t,e){return Lt(e,!0)}),!0)),t}function Dt(){Ct(2)}function _t(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function Wt(t){var e=me[t];return e||Ct(18,t),e}function Kt(){return le}function Ht(t,e){e&&(Wt("Patches"),t.u=[],t.s=[],t.v=e)}function Zt(t){Vt(t),t.p.forEach(Jt),t.p=null}function Vt(t){t===le&&(le=t.l)}function qt(t){return le={p:[],l:le,h:t,m:!0,_:0}}function Jt(t){var e=t[ve];0===e.i||1===e.i?e.j():e.O=!0}function Xt(t,e){e._=e.p.length;var i=e.p[0],n=void 0!==t&&t!==i;return e.h.g||Wt("ES5").S(e,t,n),n?(i[ve].P&&(Zt(e),Ct(4)),Mt(t)&&(t=Gt(e,t),e.l||Yt(e,t)),e.u&&Wt("Patches").M(i[ve].t,t,e.u,e.s)):t=Gt(e,i,[]),Zt(e),e.u&&e.v(e.u,e.s),t!==pe?t:void 0}function Gt(t,e,i){if(_t(e))return e;var n=e[ve];if(!n)return Rt(e,(function(o,r){return Qt(t,n,e,o,r,i)}),!0),e;if(n.A!==t)return e;if(!n.P)return Yt(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var o=4===n.i||5===n.i?n.o=Tt(n.k):n.o;Rt(3===n.i?new Set(o):o,(function(e,r){return Qt(t,n,o,e,r,i)})),Yt(t,o,!1),i&&t.u&&Wt("Patches").R(n,i,t.u,t.s)}return n.o}function Qt(t,e,i,n,o,r){if(Nt(o)){var s=Gt(t,o,r&&e&&3!==e.i&&!At(e.D,n)?r.concat(n):void 0);if(Pt(i,n,s),!Nt(s))return;t.m=!1}if(Mt(o)&&!_t(o)){if(!t.h.F&&t._<1)return;Gt(t,o),e&&e.A.l||Yt(t,o)}}function Yt(t,e,i){void 0===i&&(i=!1),t.h.F&&t.m&&Lt(e,i)}function te(t,e){var i=t[ve];return(i?Bt(i):t)[e]}function ee(t,e){if(e in t)for(var i=Object.getPrototypeOf(t);i;){var n=Object.getOwnPropertyDescriptor(i,e);if(n)return n;i=Object.getPrototypeOf(i)}}function ie(t){t.P||(t.P=!0,t.l&&ie(t.l))}function ne(t){t.o||(t.o=Tt(t.t))}function oe(t,e,i){var n=zt(e)?Wt("MapSet").N(e,i):It(e)?Wt("MapSet").T(e,i):t.g?function(t,e){var i=Array.isArray(t),n={i:i?1:0,A:e?e.A:Kt(),P:!1,I:!1,D:{},l:e,t,k:null,o:null,j:null,C:!1},o=n,r=xe;i&&(o=[n],r=we);var s=Proxy.revocable(o,r),a=s.revoke,l=s.proxy;return n.k=l,n.j=a,l}(e,i):Wt("ES5").J(e,i);return(i?i.A:Kt()).p.push(n),n}function re(t){return Nt(t)||Ct(22,t),function t(e){if(!Mt(e))return e;var i,n=e[ve],o=Ut(e);if(n){if(!n.P&&(n.i<4||!Wt("ES5").K(n)))return n.t;n.I=!0,i=se(e,o),n.I=!1}else i=se(e,o);return Rt(i,(function(e,o){n&&function(t,e){return 2===Ut(t)?t.get(e):t[e]}(n.t,e)===o||Pt(i,e,t(o))})),3===o?new Set(i):i}(t)}function se(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Tt(t)}var ae,le,ce="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),ue="undefined"!=typeof Map,fe="undefined"!=typeof Set,he="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,pe=ce?Symbol.for("immer-nothing"):((ae={})["immer-nothing"]=!0,ae),de=ce?Symbol.for("immer-draftable"):"__$immer_draftable",ve=ce?Symbol.for("immer-state"):"__$immer_state",be=""+Object.prototype.constructor,ye="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,ge=Object.getOwnPropertyDescriptors||function(t){var e={};return ye(t).forEach((function(i){e[i]=Object.getOwnPropertyDescriptor(t,i)})),e},me={},xe={get:function(t,e){if(e===ve)return t;var i=Bt(t);if(!At(i,e))return function(t,e,i){var n,o=ee(e,i);return o?"value"in o?o.value:null===(n=o.get)||void 0===n?void 0:n.call(t.k):void 0}(t,i,e);var n=i[e];return t.I||!Mt(n)?n:n===te(t.t,e)?(ne(t),t.o[e]=oe(t.A.h,n,t)):n},has:function(t,e){return e in Bt(t)},ownKeys:function(t){return Reflect.ownKeys(Bt(t))},set:function(t,e,i){var n=ee(Bt(t),e);if(null==n?void 0:n.set)return n.set.call(t.k,i),!0;if(!t.P){var o=te(Bt(t),e),r=null==o?void 0:o[ve];if(r&&r.t===i)return t.o[e]=i,t.D[e]=!1,!0;if(Ft(i,o)&&(void 0!==i||At(t.t,e)))return!0;ne(t),ie(t)}return t.o[e]===i&&"number"!=typeof i&&(void 0!==i||e in t.o)||(t.o[e]=i,t.D[e]=!0,!0)},deleteProperty:function(t,e){return void 0!==te(t.t,e)||e in t.t?(t.D[e]=!1,ne(t),ie(t)):delete t.D[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var i=Bt(t),n=Reflect.getOwnPropertyDescriptor(i,e);return n?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:n.enumerable,value:i[e]}:n},defineProperty:function(){Ct(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Ct(12)}},we={};Rt(xe,(function(t,e){we[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),we.deleteProperty=function(t,e){return we.set.call(this,t,e,void 0)},we.set=function(t,e,i){return xe.set.call(this,t[0],e,i,t[0])};var $e=function(){function t(t){var e=this;this.g=he,this.F=!0,this.produce=function(t,i,n){if("function"==typeof t&&"function"!=typeof i){var o=i;i=t;var r=e;return function(t){var e=this;void 0===t&&(t=o);for(var n=arguments.length,s=Array(n>1?n-1:0),a=1;a<n;a++)s[a-1]=arguments[a];return r.produce(t,(function(t){var n;return(n=i).call.apply(n,[e,t].concat(s))}))}}var s;if("function"!=typeof i&&Ct(6),void 0!==n&&"function"!=typeof n&&Ct(7),Mt(t)){var a=qt(e),l=oe(e,t,void 0),c=!0;try{s=i(l),c=!1}finally{c?Zt(a):Vt(a)}return"undefined"!=typeof Promise&&s instanceof Promise?s.then((function(t){return Ht(a,n),Xt(t,a)}),(function(t){throw Zt(a),t})):(Ht(a,n),Xt(s,a))}if(!t||"object"!=typeof t){if(void 0===(s=i(t))&&(s=t),s===pe&&(s=void 0),e.F&&Lt(s,!0),n){var u=[],f=[];Wt("Patches").M(t,s,u,f),n(u,f)}return s}Ct(21,t)},this.produceWithPatches=function(t,i){if("function"==typeof t)return function(i){for(var n=arguments.length,o=Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return e.produceWithPatches(i,(function(e){return t.apply(void 0,[e].concat(o))}))};var n,o,r=e.produce(t,i,(function(t,e){n=t,o=e}));return"undefined"!=typeof Promise&&r instanceof Promise?r.then((function(t){return[t,n,o]})):[r,n,o]},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var e=t.prototype;return e.createDraft=function(t){Mt(t)||Ct(8),Nt(t)&&(t=re(t));var e=qt(this),i=oe(this,t,void 0);return i[ve].C=!0,Vt(e),i},e.finishDraft=function(t,e){var i=(t&&t[ve]).A;return Ht(i,e),Xt(void 0,i)},e.setAutoFreeze=function(t){this.F=t},e.setUseProxies=function(t){t&&!he&&Ct(20),this.g=t},e.applyPatches=function(t,e){var i;for(i=e.length-1;i>=0;i--){var n=e[i];if(0===n.path.length&&"replace"===n.op){t=n.value;break}}i>-1&&(e=e.slice(i+1));var o=Wt("Patches").$;return Nt(t)?o(t,e):this.produce(t,(function(t){return o(t,e)}))},t}(),Oe=new $e,Se=Oe.produce;Oe.produceWithPatches.bind(Oe),Oe.setAutoFreeze.bind(Oe),Oe.setUseProxies.bind(Oe),Oe.applyPatches.bind(Oe),Oe.createDraft.bind(Oe),Oe.finishDraft.bind(Oe);var ke=Se;function Ee(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function je(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function Ce(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?je(Object(i),!0).forEach((function(e){Ee(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):je(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function Ne(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var Me="function"==typeof Symbol&&Symbol.observable||"@@observable",Re=function(){return Math.random().toString(36).substring(7).split("").join(".")},Ue={INIT:"@@redux/INIT"+Re(),REPLACE:"@@redux/REPLACE"+Re(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Re()}};function Ae(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function Pe(t,e,i){var n;if("function"==typeof e&&"function"==typeof i||"function"==typeof i&&"function"==typeof arguments[3])throw new Error(Ne(0));if("function"==typeof e&&void 0===i&&(i=e,e=void 0),void 0!==i){if("function"!=typeof i)throw new Error(Ne(1));return i(Pe)(t,e)}if("function"!=typeof t)throw new Error(Ne(2));var o=t,r=e,s=[],a=s,l=!1;function c(){a===s&&(a=s.slice())}function u(){if(l)throw new Error(Ne(3));return r}function f(t){if("function"!=typeof t)throw new Error(Ne(4));if(l)throw new Error(Ne(5));var e=!0;return c(),a.push(t),function(){if(e){if(l)throw new Error(Ne(6));e=!1,c();var i=a.indexOf(t);a.splice(i,1),s=null}}}function h(t){if(!Ae(t))throw new Error(Ne(7));if(void 0===t.type)throw new Error(Ne(8));if(l)throw new Error(Ne(9));try{l=!0,r=o(r,t)}finally{l=!1}for(var e=s=a,i=0;i<e.length;i++){(0,e[i])()}return t}function p(t){if("function"!=typeof t)throw new Error(Ne(10));o=t,h({type:Ue.REPLACE})}function d(){var t,e=f;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(Ne(11));function i(){t.next&&t.next(u())}return i(),{unsubscribe:e(i)}}})[Me]=function(){return this},t}return h({type:Ue.INIT}),(n={dispatch:h,subscribe:f,getState:u,replaceReducer:p})[Me]=d,n}function Fe(t){for(var e=Object.keys(t),i={},n=0;n<e.length;n++){var o=e[n];"function"==typeof t[o]&&(i[o]=t[o])}var r,s=Object.keys(i);try{!function(t){Object.keys(t).forEach((function(e){var i=t[e];if(void 0===i(void 0,{type:Ue.INIT}))throw new Error(Ne(12));if(void 0===i(void 0,{type:Ue.PROBE_UNKNOWN_ACTION()}))throw new Error(Ne(13))}))}(i)}catch(t){r=t}return function(t,e){if(void 0===t&&(t={}),r)throw r;for(var n=!1,o={},a=0;a<s.length;a++){var l=s[a],c=i[l],u=t[l],f=c(u,e);if(void 0===f)throw e&&e.type,new Error(Ne(14));o[l]=f,n=n||f!==u}return(n=n||s.length!==Object.keys(t).length)?o:t}}function ze(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce((function(t,e){return function(){return t(e.apply(void 0,arguments))}}))}function Ie(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return function(t){return function(){var i=t.apply(void 0,arguments),n=function(){throw new Error(Ne(15))},o={getState:i.getState,dispatch:function(){return n.apply(void 0,arguments)}},r=e.map((function(t){return t(o)}));return n=ze.apply(void 0,r)(i.dispatch),Ce(Ce({},i),{},{dispatch:n})}}}function Be(t){return function(e){var i=e.dispatch,n=e.getState;return function(e){return function(o){return"function"==typeof o?o(i,n,t):e(o)}}}}var Te=Be();Te.withExtraArgument=Be;var Le,De=Te,_e=(Le=function(t,e){return Le=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},Le(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}Le(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),We=function(t,e){for(var i=0,n=e.length,o=t.length;i<n;i++,o++)t[o]=e[i];return t},Ke=Object.defineProperty,He=Object.getOwnPropertySymbols,Ze=Object.prototype.hasOwnProperty,Ve=Object.prototype.propertyIsEnumerable,qe=function(t,e,i){return e in t?Ke(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i},Je=function(t,e){for(var i in e||(e={}))Ze.call(e,i)&&qe(t,i,e[i]);if(He)for(var n=0,o=He(e);n<o.length;n++){i=o[n];Ve.call(e,i)&&qe(t,i,e[i])}return t},Xe="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?ze:ze.apply(null,arguments)};var Ge=function(t){function e(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];var o=t.apply(this,i)||this;return Object.setPrototypeOf(o,e.prototype),o}return _e(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,We([void 0],t[0].concat(this)))):new(e.bind.apply(e,We([void 0],t.concat(this))))},e}(Array);function Qe(t){return Mt(t)?ke(t,(function(){})):t}function Ye(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,i=void 0===e||e;t.immutableCheck,t.serializableCheck;var n=new Ge;i&&(!function(t){return"boolean"==typeof t}(i)?n.push(De.withExtraArgument(i.extraArgument)):n.push(De));return n}(t)}}function ti(t){var e,i=Ye(),n=t||{},o=n.reducer,r=void 0===o?void 0:o,s=n.middleware,a=void 0===s?i():s,l=n.devTools,c=void 0===l||l,u=n.preloadedState,f=void 0===u?void 0:u,h=n.enhancers,p=void 0===h?void 0:h;if("function"==typeof r)e=r;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var i=e;null!==Object.getPrototypeOf(i);)i=Object.getPrototypeOf(i);return e===i}(r))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');e=Fe(r)}var d=a;"function"==typeof d&&(d=d(i));var v=Ie.apply(void 0,d),b=ze;c&&(b=Xe(Je({trace:!1},"object"==typeof c&&c)));var y=[v];return Array.isArray(p)?y=We([v],p):"function"==typeof p&&(y=p(y)),Pe(e,f,b.apply(void 0,y))}function ei(t,e){function i(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];if(e){var o=e.apply(void 0,i);if(!o)throw new Error("prepareAction did not return an object");return Je(Je({type:t,payload:o.payload},"meta"in o&&{meta:o.meta}),"error"in o&&{error:o.error})}return{type:t,payload:i[0]}}return i.toString=function(){return""+t},i.type=t,i.match=function(e){return e.type===t},i}function ii(t){var e,i={},n=[],o={addCase:function(t,e){var n="string"==typeof t?t:t.type;if(n in i)throw new Error("addCase cannot be called with two reducers for the same action type");return i[n]=e,o},addMatcher:function(t,e){return n.push({matcher:t,reducer:e}),o},addDefaultCase:function(t){return e=t,o}};return t(o),[i,n,e]}function ni(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var i,n="function"==typeof t.initialState?t.initialState:Qe(t.initialState),o=t.reducers||{},r=Object.keys(o),s={},a={},l={};function c(){var e="function"==typeof t.extraReducers?ii(t.extraReducers):[t.extraReducers],i=e[0],o=void 0===i?{}:i,r=e[1],s=void 0===r?[]:r,l=e[2],c=void 0===l?void 0:l,u=Je(Je({},o),a);return function(t,e,i,n){void 0===i&&(i=[]);var o,r="function"==typeof e?ii(e):[e,i,n],s=r[0],a=r[1],l=r[2];if(function(t){return"function"==typeof t}(t))o=function(){return Qe(t())};else{var c=Qe(t);o=function(){return c}}function u(t,e){void 0===t&&(t=o());var i=We([s[e.type]],a.filter((function(t){return(0,t.matcher)(e)})).map((function(t){return t.reducer})));return 0===i.filter((function(t){return!!t})).length&&(i=[l]),i.reduce((function(t,i){if(i){var n;if(Nt(t))return void 0===(n=i(t,e))?t:n;if(Mt(t))return ke(t,(function(t){return i(t,e)}));if(void 0===(n=i(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return n}return t}),t)}return u.getInitialState=o,u}(n,u,s,c)}return r.forEach((function(t){var i,n,r=o[t],c=e+"/"+t;"reducer"in r?(i=r.reducer,n=r.prepare):i=r,s[t]=i,a[c]=i,l[t]=n?ei(c,n):ei(c)})),{name:e,reducer:function(t,e){return i||(i=c()),i(t,e)},actions:l,caseReducers:s,getInitialState:function(){return i||(i=c()),i.getInitialState()}}}var oi="listenerMiddleware";ei(oi+"/add"),ei(oi+"/removeAll"),ei(oi+"/remove"),function(){function t(t,e){var i=o[t];return i?i.enumerable=e:o[t]=i={configurable:!0,enumerable:e,get:function(){var e=this[ve];return xe.get(e,t)},set:function(e){var i=this[ve];xe.set(i,t,e)}},i}function e(t){for(var e=t.length-1;e>=0;e--){var o=t[e][ve];if(!o.P)switch(o.i){case 5:n(o)&&ie(o);break;case 4:i(o)&&ie(o)}}}function i(t){for(var e=t.t,i=t.k,n=ye(i),o=n.length-1;o>=0;o--){var r=n[o];if(r!==ve){var s=e[r];if(void 0===s&&!At(e,r))return!0;var a=i[r],l=a&&a[ve];if(l?l.t!==s:!Ft(a,s))return!0}}var c=!!e[ve];return n.length!==ye(e).length+(c?0:1)}function n(t){var e=t.k;if(e.length!==t.t.length)return!0;var i=Object.getOwnPropertyDescriptor(e,e.length-1);if(i&&!i.get)return!0;for(var n=0;n<e.length;n++)if(!e.hasOwnProperty(n))return!0;return!1}var o={};!function(t,e){me[t]||(me[t]=e)}("ES5",{J:function(e,i){var n=Array.isArray(e),o=function(e,i){if(e){for(var n=Array(i.length),o=0;o<i.length;o++)Object.defineProperty(n,""+o,t(o,!0));return n}var r=ge(i);delete r[ve];for(var s=ye(r),a=0;a<s.length;a++){var l=s[a];r[l]=t(l,e||!!r[l].enumerable)}return Object.create(Object.getPrototypeOf(i),r)}(n,e),r={i:n?5:4,A:i?i.A:Kt(),P:!1,I:!1,D:{},l:i,t:e,k:o,o:null,O:!1,C:!1};return Object.defineProperty(o,ve,{value:r,writable:!0}),o},S:function(t,i,o){o?Nt(i)&&i[ve].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var i=e[ve];if(i){var o=i.t,r=i.k,s=i.D,a=i.i;if(4===a)Rt(r,(function(e){e!==ve&&(void 0!==o[e]||At(o,e)?s[e]||t(r[e]):(s[e]=!0,ie(i)))})),Rt(o,(function(t){void 0!==r[t]||At(r,t)||(s[t]=!1,ie(i))}));else if(5===a){if(n(i)&&(ie(i),s.length=!0),r.length<o.length)for(var l=r.length;l<o.length;l++)s[l]=!1;else for(var c=o.length;c<r.length;c++)s[c]=!0;for(var u=Math.min(r.length,o.length),f=0;f<u;f++)r.hasOwnProperty(f)||(s[f]=!0),void 0===s[f]&&t(r[f])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?i(t):n(t)}})}();const ri=t=>"object"==typeof t&&(0===Object.keys(t).length||"string"==typeof t.store||null!=t.selector||"function"==typeof t.hasChanged||null!=t.attribute),si=(t,e)=>{var i;const n=ri(t)?t:{};return e=null!==(i=null!=e?e:n.hasChanged)&&void 0!==i?i:(t,e)=>!f(t,e),(i,o)=>{var r,s;i.constructor.createProperty(o,{hasChanged:e,attribute:null!==(r=n.attribute)&&void 0!==r&&r});const a=i;a.reduxProperties=a.reduxProperties||new Map;const l=null!==(s=ri(t)?n.selector:t)&&void 0!==s?s:t=>t[o];a.reduxProperties.set(o,{selector:l,store:n.store})}};class ai extends Ot{constructor(){super(...arguments),this.internalStoresUnsubscribers=new Map,this.internalStores=new Map}getUnnamedStore(){if(this.internalStores.size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this.internalStores.values()][0]}get store(){return this.getUnnamedStore()}set store(t){this.unsubscribeFromStores(),this.internalStores.clear(),t&&this.addStore(t)}getStore(t){var e;return null==t?null!==(e=this.getUnnamedStore())&&void 0!==e?e:this.store:this.internalStores.get(t)}addStore(t,e){e=null!=e?e:li(t)?t.name:"ft-lit-element-redux-default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:li(t)?t.name:"ft-lit-element-redux-default-store";this.unsubscribeFromStore(e),this.internalStores.delete(e)}setupStore(t,e){this.internalStores.set(t,e),this.updateFromStores(),this.subscribeToStore(t,e)}setupStores(){this.unsubscribeFromStores(),0===this.internalStores.size&&null!=this.store?this.addStore(this.store):(this.updateFromStores(),this.internalStores.forEach(((t,e)=>this.subscribeToStore(e,t))))}updateFromStores(){this.reduxProperties&&this.reduxProperties.forEach(((t,e)=>{const i=this.constructor.getPropertyOptions(e);if(!(null==i?void 0:i.attribute)||!this.hasAttribute("string"==typeof(null==i?void 0:i.attribute)?i.attribute:e)){const i=this.getStore(t.store);i&&(this[e]=t.selector(i.getState(),this))}}))}subscribeToStore(t,e){this.internalStoresUnsubscribers.set(t,e.subscribe((()=>this.updateFromStores()))),this.onStoreAvailable(t)}unsubscribeFromStores(){Object.keys(this.internalStoresUnsubscribers).forEach((t=>this.unsubscribeFromStore(t)))}unsubscribeFromStore(t){this.internalStoresUnsubscribers.has(t)&&this.internalStoresUnsubscribers.get(t)(),this.internalStoresUnsubscribers.delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){this.unsubscribeFromStores(),super.disconnectedCallback()}}function li(t){var e;return null===(e=t)||void 0===e?void 0:e.isFtReduxStore}class ci{constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.actions=new Proxy(this.reduxSlice.actions,{get:(t,e,i)=>{const n=t[e];if(n)return(...t)=>{const e=n(...t);return this.reduxStore.dispatch(e),e}}})}static get(t){window.ftReduxStores||(window.ftReduxStores={});const e="string"==typeof t?t:t.name,i="string"==typeof t?void 0:t,n=window.ftReduxStores[e];if(li(n))return n;if(null==i)return;const o=ni(i);if(n)return new ci(o,n);const r=ti({reducer:o.reducer});return window.ftReduxStores[i.name]=new ci(o,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(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}var ui,fi,hi;const pi=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(hi=null===(fi=null===(ui=window.safari)||void 0===ui?void 0:ui.pushNotification)||void 0===fi?void 0:fi.toString())&&void 0!==hi?hi:""),di=1,vi=2,bi=t=>(...e)=>({_$litDirective$:t,values:e});
112
112
  /**
113
113
  * @license
114
114
  * Copyright 2017 Google LLC
@@ -230,7 +230,7 @@ var vt,bt;class yt extends R{constructor(){super(...arguments),this.renderOption
230
230
  * Copyright 2020 Google LLC
231
231
  * SPDX-License-Identifier: BSD-3-Clause
232
232
  */
233
- const Mi=Symbol.for(""),Ri=t=>{if((null==t?void 0:t.r)===Mi)return null==t?void 0:t._$litStatic$},Ui=t=>({_$litStatic$:t,r:Mi}),Ai=new Map,Pi=(t=>(e,...i)=>{const n=i.length;let o,r;const s=[],a=[];let l,c=0,u=!1;for(;c<n;){for(l=e[c];c<n&&void 0!==(r=i[c],o=Ri(r));)l+=o+e[++c],u=!0;a.push(r),s.push(l),c++}if(c===n&&s.push(e[n]),u){const t=s.join("$$lit$$");void 0===(e=Ai.get(t))&&(s.raw=s,Ai.set(t,e=s)),i=a}return t(e,...i)})(G);var Fi;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(Fi||(Fi={}));const zi=mt.extend("--ft-typography-font-family",wt.titleFont),Bi=mt.extend("--ft-typography-font-family",wt.contentFont),Ii={fontFamily:Bi,fontSize:mt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:mt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:mt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:mt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:mt.create("--ft-typography-text-transform","UNKNOWN","inherit")},Ti=mt.extend("--ft-typography-title-font-family",zi),Li=mt.extend("--ft-typography-title-font-size",Ii.fontSize,"20px"),Di=mt.extend("--ft-typography-title-font-weight",Ii.fontWeight,"normal"),_i=mt.extend("--ft-typography-title-letter-spacing",Ii.letterSpacing,"0.15px"),Wi=mt.extend("--ft-typography-title-line-height",Ii.lineHeight,"1.2"),Ki=mt.extend("--ft-typography-title-text-transform",Ii.textTransform,"inherit"),Hi=mt.extend("--ft-typography-title-dense-font-family",zi),Zi=mt.extend("--ft-typography-title-dense-font-size",Ii.fontSize,"14px"),Vi=mt.extend("--ft-typography-title-dense-font-weight",Ii.fontWeight,"normal"),qi=mt.extend("--ft-typography-title-dense-letter-spacing",Ii.letterSpacing,"0.105px"),Ji=mt.extend("--ft-typography-title-dense-line-height",Ii.lineHeight,"1.7"),Xi=mt.extend("--ft-typography-title-dense-text-transform",Ii.textTransform,"inherit"),Gi=mt.extend("--ft-typography-subtitle1-font-family",Bi),Qi=mt.extend("--ft-typography-subtitle1-font-size",Ii.fontSize,"16px"),Yi=mt.extend("--ft-typography-subtitle1-font-weight",Ii.fontWeight,"600"),tn=mt.extend("--ft-typography-subtitle1-letter-spacing",Ii.letterSpacing,"0.144px"),en=mt.extend("--ft-typography-subtitle1-line-height",Ii.lineHeight,"1.5"),nn=mt.extend("--ft-typography-subtitle1-text-transform",Ii.textTransform,"inherit"),on=mt.extend("--ft-typography-subtitle2-font-family",Bi),rn=mt.extend("--ft-typography-subtitle2-font-size",Ii.fontSize,"14px"),sn=mt.extend("--ft-typography-subtitle2-font-weight",Ii.fontWeight,"normal"),an=mt.extend("--ft-typography-subtitle2-letter-spacing",Ii.letterSpacing,"0.098px"),ln=mt.extend("--ft-typography-subtitle2-line-height",Ii.lineHeight,"1.7"),cn=mt.extend("--ft-typography-subtitle2-text-transform",Ii.textTransform,"inherit"),un=mt.extend("--ft-typography-body1-font-family",Bi),fn=mt.extend("--ft-typography-body1-font-size",Ii.fontSize,"16px"),hn=mt.extend("--ft-typography-body1-font-weight",Ii.fontWeight,"normal"),pn=mt.extend("--ft-typography-body1-letter-spacing",Ii.letterSpacing,"0.496px"),dn=mt.extend("--ft-typography-body1-line-height",Ii.lineHeight,"1.5"),vn=mt.extend("--ft-typography-body1-text-transform",Ii.textTransform,"inherit"),bn=mt.extend("--ft-typography-body2-font-family",Bi),yn=mt.extend("--ft-typography-body2-font-size",Ii.fontSize,"14px"),gn=mt.extend("--ft-typography-body2-font-weight",Ii.fontWeight,"normal"),mn=mt.extend("--ft-typography-body2-letter-spacing",Ii.letterSpacing,"0.252px"),xn=mt.extend("--ft-typography-body2-line-height",Ii.lineHeight,"1.4"),wn=mt.extend("--ft-typography-body2-text-transform",Ii.textTransform,"inherit"),$n=mt.extend("--ft-typography-caption-font-family",Bi),On=mt.extend("--ft-typography-caption-font-size",Ii.fontSize,"12px"),Sn=mt.extend("--ft-typography-caption-font-weight",Ii.fontWeight,"normal"),kn=mt.extend("--ft-typography-caption-letter-spacing",Ii.letterSpacing,"0.396px"),En=mt.extend("--ft-typography-caption-line-height",Ii.lineHeight,"1.33"),jn=mt.extend("--ft-typography-caption-text-transform",Ii.textTransform,"inherit"),Cn=mt.extend("--ft-typography-breadcrumb-font-family",Bi),Nn=mt.extend("--ft-typography-breadcrumb-font-size",Ii.fontSize,"10px"),Mn=mt.extend("--ft-typography-breadcrumb-font-weight",Ii.fontWeight,"normal"),Rn=mt.extend("--ft-typography-breadcrumb-letter-spacing",Ii.letterSpacing,"0.33px"),Un=mt.extend("--ft-typography-breadcrumb-line-height",Ii.lineHeight,"1.6"),An=mt.extend("--ft-typography-breadcrumb-text-transform",Ii.textTransform,"inherit"),Pn=mt.extend("--ft-typography-overline-font-family",Bi),Fn=mt.extend("--ft-typography-overline-font-size",Ii.fontSize,"10px"),zn=mt.extend("--ft-typography-overline-font-weight",Ii.fontWeight,"normal"),Bn=mt.extend("--ft-typography-overline-letter-spacing",Ii.letterSpacing,"1.5px"),In=mt.extend("--ft-typography-overline-line-height",Ii.lineHeight,"1.6"),Tn=mt.extend("--ft-typography-overline-text-transform",Ii.textTransform,"uppercase"),Ln={fontFamily:mt.extend("--ft-typography-button-font-family",Bi),fontSize:mt.extend("--ft-typography-button-font-size",Ii.fontSize,"14px"),fontWeight:mt.extend("--ft-typography-button-font-weight",Ii.fontWeight,"600"),letterSpacing:mt.extend("--ft-typography-button-letter-spacing",Ii.letterSpacing,"1.246px"),lineHeight:mt.extend("--ft-typography-button-line-height",Ii.lineHeight,"1.15"),textTransform:mt.extend("--ft-typography-button-text-transform",Ii.textTransform,"uppercase")},Dn=x`
233
+ const Mi=Symbol.for(""),Ri=t=>{if((null==t?void 0:t.r)===Mi)return null==t?void 0:t._$litStatic$},Ui=t=>({_$litStatic$:t,r:Mi}),Ai=new Map,Pi=(t=>(e,...i)=>{const n=i.length;let o,r;const s=[],a=[];let l,c=0,u=!1;for(;c<n;){for(l=e[c];c<n&&void 0!==(r=i[c],o=Ri(r));)l+=o+e[++c],u=!0;a.push(r),s.push(l),c++}if(c===n&&s.push(e[n]),u){const t=s.join("$$lit$$");void 0===(e=Ai.get(t))&&(s.raw=s,Ai.set(t,e=s)),i=a}return t(e,...i)})(G);var Fi;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(Fi||(Fi={}));const zi=mt.extend("--ft-typography-font-family",wt.titleFont),Ii=mt.extend("--ft-typography-font-family",wt.contentFont),Bi={fontFamily:Ii,fontSize:mt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:mt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:mt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:mt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:mt.create("--ft-typography-text-transform","UNKNOWN","inherit")},Ti=mt.extend("--ft-typography-title-font-family",zi),Li=mt.extend("--ft-typography-title-font-size",Bi.fontSize,"20px"),Di=mt.extend("--ft-typography-title-font-weight",Bi.fontWeight,"normal"),_i=mt.extend("--ft-typography-title-letter-spacing",Bi.letterSpacing,"0.15px"),Wi=mt.extend("--ft-typography-title-line-height",Bi.lineHeight,"1.2"),Ki=mt.extend("--ft-typography-title-text-transform",Bi.textTransform,"inherit"),Hi=mt.extend("--ft-typography-title-dense-font-family",zi),Zi=mt.extend("--ft-typography-title-dense-font-size",Bi.fontSize,"14px"),Vi=mt.extend("--ft-typography-title-dense-font-weight",Bi.fontWeight,"normal"),qi=mt.extend("--ft-typography-title-dense-letter-spacing",Bi.letterSpacing,"0.105px"),Ji=mt.extend("--ft-typography-title-dense-line-height",Bi.lineHeight,"1.7"),Xi=mt.extend("--ft-typography-title-dense-text-transform",Bi.textTransform,"inherit"),Gi=mt.extend("--ft-typography-subtitle1-font-family",Ii),Qi=mt.extend("--ft-typography-subtitle1-font-size",Bi.fontSize,"16px"),Yi=mt.extend("--ft-typography-subtitle1-font-weight",Bi.fontWeight,"600"),tn=mt.extend("--ft-typography-subtitle1-letter-spacing",Bi.letterSpacing,"0.144px"),en=mt.extend("--ft-typography-subtitle1-line-height",Bi.lineHeight,"1.5"),nn=mt.extend("--ft-typography-subtitle1-text-transform",Bi.textTransform,"inherit"),on=mt.extend("--ft-typography-subtitle2-font-family",Ii),rn=mt.extend("--ft-typography-subtitle2-font-size",Bi.fontSize,"14px"),sn=mt.extend("--ft-typography-subtitle2-font-weight",Bi.fontWeight,"normal"),an=mt.extend("--ft-typography-subtitle2-letter-spacing",Bi.letterSpacing,"0.098px"),ln=mt.extend("--ft-typography-subtitle2-line-height",Bi.lineHeight,"1.7"),cn=mt.extend("--ft-typography-subtitle2-text-transform",Bi.textTransform,"inherit"),un=mt.extend("--ft-typography-body1-font-family",Ii),fn=mt.extend("--ft-typography-body1-font-size",Bi.fontSize,"16px"),hn=mt.extend("--ft-typography-body1-font-weight",Bi.fontWeight,"normal"),pn=mt.extend("--ft-typography-body1-letter-spacing",Bi.letterSpacing,"0.496px"),dn=mt.extend("--ft-typography-body1-line-height",Bi.lineHeight,"1.5"),vn=mt.extend("--ft-typography-body1-text-transform",Bi.textTransform,"inherit"),bn=mt.extend("--ft-typography-body2-font-family",Ii),yn=mt.extend("--ft-typography-body2-font-size",Bi.fontSize,"14px"),gn=mt.extend("--ft-typography-body2-font-weight",Bi.fontWeight,"normal"),mn=mt.extend("--ft-typography-body2-letter-spacing",Bi.letterSpacing,"0.252px"),xn=mt.extend("--ft-typography-body2-line-height",Bi.lineHeight,"1.4"),wn=mt.extend("--ft-typography-body2-text-transform",Bi.textTransform,"inherit"),$n=mt.extend("--ft-typography-caption-font-family",Ii),On=mt.extend("--ft-typography-caption-font-size",Bi.fontSize,"12px"),Sn=mt.extend("--ft-typography-caption-font-weight",Bi.fontWeight,"normal"),kn=mt.extend("--ft-typography-caption-letter-spacing",Bi.letterSpacing,"0.396px"),En=mt.extend("--ft-typography-caption-line-height",Bi.lineHeight,"1.33"),jn=mt.extend("--ft-typography-caption-text-transform",Bi.textTransform,"inherit"),Cn=mt.extend("--ft-typography-breadcrumb-font-family",Ii),Nn=mt.extend("--ft-typography-breadcrumb-font-size",Bi.fontSize,"10px"),Mn=mt.extend("--ft-typography-breadcrumb-font-weight",Bi.fontWeight,"normal"),Rn=mt.extend("--ft-typography-breadcrumb-letter-spacing",Bi.letterSpacing,"0.33px"),Un=mt.extend("--ft-typography-breadcrumb-line-height",Bi.lineHeight,"1.6"),An=mt.extend("--ft-typography-breadcrumb-text-transform",Bi.textTransform,"inherit"),Pn=mt.extend("--ft-typography-overline-font-family",Ii),Fn=mt.extend("--ft-typography-overline-font-size",Bi.fontSize,"10px"),zn=mt.extend("--ft-typography-overline-font-weight",Bi.fontWeight,"normal"),In=mt.extend("--ft-typography-overline-letter-spacing",Bi.letterSpacing,"1.5px"),Bn=mt.extend("--ft-typography-overline-line-height",Bi.lineHeight,"1.6"),Tn=mt.extend("--ft-typography-overline-text-transform",Bi.textTransform,"uppercase"),Ln={fontFamily:mt.extend("--ft-typography-button-font-family",Ii),fontSize:mt.extend("--ft-typography-button-font-size",Bi.fontSize,"14px"),fontWeight:mt.extend("--ft-typography-button-font-weight",Bi.fontWeight,"600"),letterSpacing:mt.extend("--ft-typography-button-letter-spacing",Bi.letterSpacing,"1.246px"),lineHeight:mt.extend("--ft-typography-button-line-height",Bi.lineHeight,"1.15"),textTransform:mt.extend("--ft-typography-button-text-transform",Bi.textTransform,"uppercase")},Dn=x`
234
234
  .ft-typography--title {
235
235
  font-family: ${Ti};
236
236
  font-size: ${Li};
@@ -308,8 +308,8 @@ const Mi=Symbol.for(""),Ri=t=>{if((null==t?void 0:t.r)===Mi)return null==t?void
308
308
  font-family: ${Pn};
309
309
  font-size: ${Fn};
310
310
  font-weight: ${zn};
311
- letter-spacing: ${Bn};
312
- line-height: ${In};
311
+ letter-spacing: ${In};
312
+ line-height: ${Bn};
313
313
  text-transform: ${Tn};
314
314
  }
315
315
  `,Xn=x`
@@ -522,7 +522,7 @@ class ao extends yi{constructor(t){if(super(t),this.it=Y,t.type!==vi)throw Error
522
522
  ${lo(this.resolvedIcon)}
523
523
  <slot ?hidden=${i}></slot>
524
524
  </i>
525
- `}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case bo.file_format:this.resolvedIcon=null!==(t=uo[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case bo.material:this.resolvedIcon=this.value||Y;break;default:this.resolvedIcon=null!==(e=co[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}go.elementDefinitions={},go.styles=vo,yo([r()],go.prototype,"variant",void 0),yo([r()],go.prototype,"value",void 0),yo([s()],go.prototype,"resolvedIcon",void 0),yo([l("slot")],go.prototype,"slottedContent",void 0),h("ft-icon")(go);const mo=mt.extend("--ft-button-color",wt.colorPrimary),xo={backgroundColor:mt.extend("--ft-button-background-color",wt.colorSurface),borderRadius:mt.extend("--ft-button-border-radius",wt.borderRadiusL),color:mo,fontSize:mt.extend("--ft-button-font-size",Ln.fontSize),iconSize:mt.create("--ft-button-icon-size","SIZE","24px"),rippleColor:mt.extend("--ft-button-ripple-color",mo),opacityDisabled:mt.external(wt.colorOpacityDisabled,"Design system")},wo=mt.extend("--ft-button-primary-color",mt.extend("--ft-button-color",wt.colorOnPrimary)),$o={backgroundColor:mt.extend("--ft-button-primary-background-color",mt.extend("--ft-button-background-color",wt.colorPrimary)),color:wo,rippleColor:mt.extend("--ft-button-primary-ripple-color",wo)},Oo=mt.extend("--ft-button-dense-border-radius",mt.extend("--ft-button-border-radius",wt.borderRadiusM)),So=[St,x`
525
+ `}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case bo.file_format:this.resolvedIcon=null!==(t=uo[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case bo.material:this.resolvedIcon=this.value||Y;break;default:this.resolvedIcon=null!==(e=co[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}go.elementDefinitions={},go.styles=vo,yo([r()],go.prototype,"variant",void 0),yo([r()],go.prototype,"value",void 0),yo([s()],go.prototype,"resolvedIcon",void 0),yo([l("slot")],go.prototype,"slottedContent",void 0),h("ft-icon")(go);const mo=mt.extend("--ft-button-color",wt.colorPrimary),xo={backgroundColor:mt.extend("--ft-button-background-color",wt.colorSurface),borderRadius:mt.extend("--ft-button-border-radius",wt.borderRadiusL),color:mo,fontSize:mt.extend("--ft-button-font-size",Ln.fontSize),iconSize:mt.create("--ft-button-icon-size","SIZE","24px"),rippleColor:mt.extend("--ft-button-ripple-color",mo),verticalPadding:mt.create("--ft-button-vertical-padding","SIZE","6px"),horizontalPadding:mt.create("--ft-button-horizontal-padding","SIZE","8px"),opacityDisabled:mt.external(wt.colorOpacityDisabled,"Design system")},wo=mt.extend("--ft-button-primary-color",mt.extend("--ft-button-color",wt.colorOnPrimary)),$o={backgroundColor:mt.extend("--ft-button-primary-background-color",mt.extend("--ft-button-background-color",wt.colorPrimary)),color:wo,rippleColor:mt.extend("--ft-button-primary-ripple-color",wo)},Oo=mt.extend("--ft-button-dense-border-radius",mt.extend("--ft-button-border-radius",wt.borderRadiusM)),So=[St,x`
526
526
  :host {
527
527
  display: inline-block;
528
528
  max-width: 100%;
@@ -571,7 +571,7 @@ class ao extends yi{constructor(t){if(super(t),this.it=Y,t.type!==vi)throw Error
571
571
  --ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${xo.iconSize});
572
572
 
573
573
  border-radius: ${xo.borderRadius};
574
- padding: var(--ft-button-internal-vertical-padding) var(--ft-button-internal-horizontal-padding);
574
+ padding: ${xo.verticalPadding} ${xo.horizontalPadding};
575
575
  background-color: ${xo.backgroundColor};
576
576
  color: var(--ft-button-internal-color);
577
577
  -webkit-mask-image: radial-gradient(white, black);
@@ -604,7 +604,7 @@ class ao extends yi{constructor(t){if(super(t),this.it=Y,t.type!==vi)throw Error
604
604
 
605
605
  .ft-button.ft-button--outlined {
606
606
  border: 1px solid var(--ft-button-internal-color);
607
- padding: calc(var(--ft-button-internal-vertical-padding) - 1px) calc(var(--ft-button-internal-horizontal-padding) - 1px);
607
+ padding: calc(${xo.verticalPadding} - 1px) calc(${xo.horizontalPadding} - 1px);
608
608
  }
609
609
 
610
610
  .ft-button:focus {
@@ -621,7 +621,7 @@ class ao extends yi{constructor(t){if(super(t),this.it=Y,t.type!==vi)throw Error
621
621
  ${xt(Ln.fontSize,"1em")};
622
622
  ${xt(Ln.lineHeight,"var(--ft-button-internal-content-height)")};
623
623
  }
624
-
624
+
625
625
  .ft-button--label[hidden] {
626
626
  display: none;
627
627
  }
@@ -744,9 +744,9 @@ class ao extends yi{constructor(t){if(super(t),this.it=Y,t.type!==vi)throw Error
744
744
  display: block;
745
745
  }
746
746
  `,No=x`
747
- `,Mo=ci.get({name:"ft-app-info",reducers:{setBaseUrl:(t,e)=>{t.baseUrl=e.payload},setApiIntegrationIdentifier:(t,e)=>{t.apiIntegrationIdentifier=e.payload},setUiLocale:(t,e)=>{t.uiLocale=e.payload},setAvailableUiLocales:(t,e)=>{t.availableUiLocales=e.payload},setEditorMode:(t,e)=>{t.editorMode=e.payload},setNoCustom:(t,e)=>{t.noCustom=e.payload},setNoCustomComponent:(t,e)=>{t.noCustomComponent=e.payload},setSession:(t,e)=>{t.session=e.payload}},initialState:{uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],editorMode:!1,noCustom:!1,noCustomComponent:!1}});class Ro{static build(t){const{baseUrl:e,apiIntegrationIdentifier:i}=Mo.getState(),n=null!=t?t:i;if(e&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,n,!0)}static get(t){var e;return null!=t?Ro.build(t):null!==(e=Ro.API)&&void 0!==e?e:Ro.API=Ro.build()}static await(t){return new Promise((e=>{let i=Ro.get(t);if(i)e(i);else{const n=Mo.subscribe((()=>{i=Ro.get(t),i&&(n(),e(i))}))}}))}}var Uo;const Ao=Symbol("clearAfterUnitTest");class Po{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new i,this.listeners={},this.currentUiLocale="",this[Uo]=()=>{this.defaultMessages={},this.cache=new i,this.listeners={}},this.currentUiLocale=Mo.getState().uiLocale,Mo.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=Mo.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const e=t.name.toLowerCase();this.cache.setFinal(e,t),this.notify(e)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,e){var i;if(t=t.toLowerCase(),Object.keys(e).length>0){const n={...null!==(i=this.defaultMessages[t])&&void 0!==i?i:{},...e};f(this.defaultMessages[t],n)||(this.defaultMessages[t]=n,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...i){var n,o,r;t=t.toLowerCase(),this.fetchContext(t);const s=null!==(o=null===(n=this.cache.getNow(t))||void 0===n?void 0:n.messages)&&void 0!==o?o:{};return new jt(null!==(r=this.defaultMessages[t])&&void 0!==r?r:{},s).resolve(e,...i)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,(()=>this.messageContextProvider(this.currentUiLocale,t))),await this.notify(t)}catch(t){console.error(t)}}subscribe(t,e){var i;return t=t.toLowerCase(),this.listeners[t]=null!==(i=this.listeners[t])&&void 0!==i?i:new Set,this.listeners[t].add(e),()=>{var i;return null===(i=this.listeners[t])||void 0===i?void 0:i.delete(e)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map((t=>this.notify(t))))}async notify(t){null!=this.listeners[t]&&await Promise.all([...this.listeners[t].values()].map((t=>{return(e=0,new Promise((t=>setTimeout(t,e)))).then((()=>t())).catch((()=>null));var e})))}}Uo=Ao,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new Po((async(t,e)=>(await Ro.await()).getFluidTopicsMessageContext(t,e)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new Po((async(t,e)=>(await Ro.await()).getCustomMessageContext(t,e))));const Fo=window.FluidTopicsI18nService,zo=window.FluidTopicsCustomI18nService;var Bo=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Io extends Ot{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.availableUiLocales=[],this.editorMode=!1,this.noCustom=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.messageContexts=[],this.apiProvider=()=>Ro.get(),this.cache=new i,this.cleanSessionDebouncer=new n}render(){return G`
747
+ `,Mo=ci.get({name:"ft-app-info",reducers:{setBaseUrl:(t,e)=>{t.baseUrl=e.payload},setApiIntegrationIdentifier:(t,e)=>{t.apiIntegrationIdentifier=e.payload},setUiLocale:(t,e)=>{t.uiLocale=e.payload},setAvailableUiLocales:(t,e)=>{t.availableUiLocales=e.payload},setEditorMode:(t,e)=>{t.editorMode=e.payload},setNoCustom:(t,e)=>{t.noCustom=e.payload},setNoCustomComponent:(t,e)=>{t.noCustomComponent=e.payload},setSession:(t,e)=>{t.session=e.payload}},initialState:{uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],editorMode:!1,noCustom:!1,noCustomComponent:!1}});class Ro{static build(t){const{baseUrl:e,apiIntegrationIdentifier:i}=Mo.getState(),n=null!=t?t:i;if(e&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,n,!0)}static get(t){var e;return null!=t?Ro.build(t):null!==(e=Ro.API)&&void 0!==e?e:Ro.API=Ro.build()}static await(t){return new Promise((e=>{let i=Ro.get(t);if(i)e(i);else{const n=Mo.subscribe((()=>{i=Ro.get(t),i&&(n(),e(i))}))}}))}}var Uo;const Ao=Symbol("clearAfterUnitTest");class Po{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new i,this.listeners={},this.currentUiLocale="",this[Uo]=()=>{this.defaultMessages={},this.cache=new i,this.listeners={}},this.currentUiLocale=Mo.getState().uiLocale,Mo.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=Mo.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const e=t.name.toLowerCase();this.cache.setFinal(e,t),this.notify(e)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,e){var i;if(t=t.toLowerCase(),Object.keys(e).length>0){const n={...null!==(i=this.defaultMessages[t])&&void 0!==i?i:{},...e};f(this.defaultMessages[t],n)||(this.defaultMessages[t]=n,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...i){var n,o,r;t=t.toLowerCase(),this.fetchContext(t);const s=null!==(o=null===(n=this.cache.getNow(t))||void 0===n?void 0:n.messages)&&void 0!==o?o:{};return new jt(null!==(r=this.defaultMessages[t])&&void 0!==r?r:{},s).resolve(e,...i)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,(()=>this.messageContextProvider(this.currentUiLocale,t))),await this.notify(t)}catch(t){console.error(t)}}subscribe(t,e){var i;return t=t.toLowerCase(),this.listeners[t]=null!==(i=this.listeners[t])&&void 0!==i?i:new Set,this.listeners[t].add(e),()=>{var i;return null===(i=this.listeners[t])||void 0===i?void 0:i.delete(e)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map((t=>this.notify(t))))}async notify(t){null!=this.listeners[t]&&await Promise.all([...this.listeners[t].values()].map((t=>{return(e=0,new Promise((t=>setTimeout(t,e)))).then((()=>t())).catch((()=>null));var e})))}}Uo=Ao,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new Po((async(t,e)=>(await Ro.await()).getFluidTopicsMessageContext(t,e)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new Po((async(t,e)=>(await Ro.await()).getCustomMessageContext(t,e))));const Fo=window.FluidTopicsI18nService,zo=window.FluidTopicsCustomI18nService;var Io=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Bo extends Ot{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.availableUiLocales=[],this.editorMode=!1,this.noCustom=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.messageContexts=[],this.apiProvider=()=>Ro.get(),this.cache=new i,this.cleanSessionDebouncer=new n}render(){return G`
748
748
  <slot></slot>
749
- `}updated(t){super.updated(t),t.has("baseUrl")&&Mo.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&Mo.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&Mo.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&Mo.actions.setNoCustom(this.noCustom),t.has("editorMode")&&Mo.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&Mo.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&Mo.actions.setSession(this.session),t.has("availableUiLocales")&&Mo.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>Fo.addContext(t))),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){const t=this.apiProvider();!this.withManualResources&&t&&(null==this.session&&(this.session=await this.cache.get("session",(async()=>{const e=await t.getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),e.idleTimeoutInMillis),e}))),null==this.availableUiLocales&&(this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>t.getAvailableUiLocales()))))}}Io.elementDefinitions={},Io.styles=No,Bo([r()],Io.prototype,"baseUrl",void 0),Bo([r()],Io.prototype,"apiIntegrationIdentifier",void 0),Bo([r()],Io.prototype,"uiLocale",void 0),Bo([p([])],Io.prototype,"availableUiLocales",void 0),Bo([r({type:Boolean})],Io.prototype,"editorMode",void 0),Bo([r({type:Boolean})],Io.prototype,"noCustom",void 0),Bo([r({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],Io.prototype,"noCustomComponent",void 0),Bo([r({type:Boolean})],Io.prototype,"withManualResources",void 0),Bo([p([])],Io.prototype,"messageContexts",void 0),Bo([p(void 0)],Io.prototype,"session",void 0),Bo([r({type:Object})],Io.prototype,"apiProvider",void 0),h("ft-app-context")(Io);var To=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Lo extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}}const Do=Symbol("registerInterval");class _o extends(function(t){var e;class i extends t{constructor(){super(...arguments),this[e]=0}setSearchStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[Do]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[Do]):this.dispatchEvent(new Lo)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=Do,To([s()],i.prototype,"stateManager",void 0),i}(ai)){}const Wo=x`
749
+ `}updated(t){super.updated(t),t.has("baseUrl")&&Mo.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&Mo.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&Mo.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&Mo.actions.setNoCustom(this.noCustom),t.has("editorMode")&&Mo.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&Mo.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&Mo.actions.setSession(this.session),t.has("availableUiLocales")&&Mo.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>Fo.addContext(t))),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){const t=this.apiProvider();!this.withManualResources&&t&&(null==this.session&&(this.session=await this.cache.get("session",(async()=>{const e=await t.getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),e.idleTimeoutInMillis),e}))),null==this.availableUiLocales&&(this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>t.getAvailableUiLocales()))))}}Bo.elementDefinitions={},Bo.styles=No,Io([r()],Bo.prototype,"baseUrl",void 0),Io([r()],Bo.prototype,"apiIntegrationIdentifier",void 0),Io([r()],Bo.prototype,"uiLocale",void 0),Io([p([])],Bo.prototype,"availableUiLocales",void 0),Io([r({type:Boolean})],Bo.prototype,"editorMode",void 0),Io([r({type:Boolean})],Bo.prototype,"noCustom",void 0),Io([r({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],Bo.prototype,"noCustomComponent",void 0),Io([r({type:Boolean})],Bo.prototype,"withManualResources",void 0),Io([p([])],Bo.prototype,"messageContexts",void 0),Io([p(void 0)],Bo.prototype,"session",void 0),Io([r({type:Object})],Bo.prototype,"apiProvider",void 0),h("ft-app-context")(Bo);var To=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Lo extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}}const Do=Symbol("registerInterval");class _o extends(function(t){var e;class i extends t{constructor(){super(...arguments),this[e]=0}setSearchStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[Do]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[Do]):this.dispatchEvent(new Lo)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=Do,To([s()],i.prototype,"stateManager",void 0),i}(ai)){}const Wo=x`
750
750
  `;var Ko=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};const Ho=Symbol("i18nProperties"),Zo=Symbol("i18nUnsubs");function Vo(t){var e;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?zo:Fo}i18n(t,e,...i){var n;if("string"==typeof t)return this.i18nService.resolveMessage(t,e,...i);const o=null!==(n=t.args)&&void 0!==n?n:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...o)}onI18nUpdate(t){var e;null===(e=this[Ho])||void 0===e||e.forEach(((e,i)=>{e.context.toLowerCase()===t.toLowerCase()&&(this[i]=this.i18n(e))})),setTimeout((()=>this.requestUpdate()),0)}updated(t){var e;super.updated(t),null===(e=this[Ho])||void 0===e||e.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[Ho]&&new Set([...this[Ho].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[Zo].has(t)||this[Zo].set(t,this.i18nService.subscribe(t,(()=>this.onI18nUpdate(t)))),this.i18nService.prepareContext(t,null!=e?e:{})}addI18nContext(t,e){this.addI18nMessages(t.name,e)}disconnectedCallback(){super.disconnectedCallback(),this[Zo].forEach((t=>t())),this[Zo].clear()}}return e=Zo,Ko([r({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}class qo extends(Vo(Ot)){}class Jo extends(Vo(ai)){}var Xo=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Go extends Jo{constructor(){super(),this.editorMode=!1,this.addStore(Mo)}render(){return this.key&&this.context?G`
751
751
  <span class="ft-i18n">${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}</span>
752
752
  `:this.editorMode?"Select a context and a label key.":Y}update(t){super.update(t),this.context&&this.key&&this.defaultMessage&&this.addI18nMessages(this.context,{[this.key]:this.defaultMessage})}}Go.elementDefinitions={},Go.styles=Wo,Xo([si()],Go.prototype,"editorMode",void 0),Xo([r()],Go.prototype,"context",void 0),Xo([r()],Go.prototype,"key",void 0),Xo([p([])],Go.prototype,"args",void 0),Xo([r()],Go.prototype,"defaultMessage",void 0);class Qo{constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,e)=>{const i=e;return t=>({context:this.name,key:i,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,e)=>(...t)=>Fo.resolveMessage(this.name,e,...t)})}static build(t){return new Qo(t)}static fromGwt(t){return new Qo(t)}}h("ft-i18n")(Go);const Yo=Qo.build("designedSearchInput"),tr=x`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-search-input",
3
- "version": "0.3.66",
3
+ "version": "0.3.67",
4
4
  "description": "Search bar input for integrated search component",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,13 +19,13 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-button": "0.3.66",
23
- "@fluid-topics/ft-i18n": "0.3.66",
24
- "@fluid-topics/ft-icon": "0.3.66",
25
- "@fluid-topics/ft-ripple": "0.3.66",
26
- "@fluid-topics/ft-search-context": "0.3.66",
27
- "@fluid-topics/ft-typography": "0.3.66",
28
- "@fluid-topics/ft-wc-utils": "0.3.66",
22
+ "@fluid-topics/ft-button": "0.3.67",
23
+ "@fluid-topics/ft-i18n": "0.3.67",
24
+ "@fluid-topics/ft-icon": "0.3.67",
25
+ "@fluid-topics/ft-ripple": "0.3.67",
26
+ "@fluid-topics/ft-search-context": "0.3.67",
27
+ "@fluid-topics/ft-typography": "0.3.67",
28
+ "@fluid-topics/ft-wc-utils": "0.3.67",
29
29
  "lit": "2.2.8"
30
30
  },
31
31
  "devDependencies": {
@@ -34,5 +34,5 @@
34
34
  "peerDependencies": {
35
35
  "@fluid-topics/public-api": "1.0.33"
36
36
  },
37
- "gitHead": "cc454945c8f6b47494dc634da0613dabeed53c14"
37
+ "gitHead": "9db69a3abe84d6fb5ec11e29164f2ceaa7369352"
38
38
  }