@fluid-topics/ft-reader-metadata 1.0.58 → 1.0.59

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.
@@ -162,7 +162,7 @@ const q=Symbol.for(""),X=t=>{if((null==t?void 0:t.r)===q)return null==t?void 0:t
162
162
  </div>
163
163
  </div>
164
164
  </div>
165
- `}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){super.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=this.tooltip.offsetWidth,e=this.tooltip.offsetHeight,o=(t.offsetHeight-e)/2,n=(t.offsetWidth-i)/2;let r=0,s=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":s=t.offsetTop-e-this.tooltip.offsetTop,r=t.offsetLeft+n-this.tooltip.offsetLeft;break;case"bottom":s=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,r=t.offsetLeft+n-this.tooltip.offsetLeft;break;case"left":s=t.offsetTop+o-this.tooltip.offsetTop,r=t.offsetLeft-i-this.tooltip.offsetLeft;break;case"right":s=t.offsetTop+o-this.tooltip.offsetTop,r=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const a=this.tooltip.style;a.left=r+"px",a.top=s+"px";const l=this.tooltip.getBoundingClientRect();let p=-l.x,h=l.x+l.width-window.innerWidth;a.left=r+Math.round(this.correctOutOfWindowPixels(p,h))+"px";let f=-l.y,c=l.y+l.height-window.innerHeight;a.top=s+Math.round(this.correctOutOfWindowPixels(f,c))+"px",a.maxWidth=`max(${t.offsetWidth}px, ${bi})`}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())}correctOutOfWindowPixels(t,i){return Math.max(t,Math.min(0,-i))}}$i.elementDefinitions={"ft-typography":ci},$i.styles=yi,mi([o.property()],$i.prototype,"text",void 0),mi([o.property({type:Boolean})],$i.prototype,"manual",void 0),mi([o.property({type:Boolean})],$i.prototype,"inline",void 0),mi([o.property({type:Number})],$i.prototype,"delay",void 0),mi([o.property()],$i.prototype,"position",void 0),mi([o.queryAssignedNodes("",!0)],$i.prototype,"slotNodes",void 0),mi([o.query(".ft-tooltip--container")],$i.prototype,"container",void 0),mi([o.query(".ft-tooltip")],$i.prototype,"tooltip",void 0),mi([o.query(".ft-tooltip--content")],$i.prototype,"tooltipContent",void 0),mi([o.state()],$i.prototype,"visible",void 0),i.customElement("ft-tooltip")($i);const wi=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorContent),ki={color:wi,backgroundColor:i.FtCssVariableFactory.extend("--ft-ripple-background-color",wi),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"),borderRadius:i.FtCssVariableFactory.create("--ft-ripple-border-radius","SIZE","0px")},zi=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorPrimary),Si=zi,Ci=i.FtCssVariableFactory.extend("--ft-ripple-background-color",zi),Ii=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorSecondary),Oi=Ii,Ei=i.FtCssVariableFactory.extend("--ft-ripple-background-color",Ii),ji=e.css`
165
+ `}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.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=this.tooltip.offsetWidth,e=this.tooltip.offsetHeight,o=(t.offsetHeight-e)/2,n=(t.offsetWidth-i)/2;let r=0,s=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":s=t.offsetTop-e-this.tooltip.offsetTop,r=t.offsetLeft+n-this.tooltip.offsetLeft;break;case"bottom":s=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,r=t.offsetLeft+n-this.tooltip.offsetLeft;break;case"left":s=t.offsetTop+o-this.tooltip.offsetTop,r=t.offsetLeft-i-this.tooltip.offsetLeft;break;case"right":s=t.offsetTop+o-this.tooltip.offsetTop,r=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const a=this.tooltip.style;a.left=r+"px",a.top=s+"px";const l=this.tooltip.getBoundingClientRect();let p=-l.x,h=l.x+l.width-window.innerWidth;a.left=r+Math.round(this.correctOutOfWindowPixels(p,h))+"px";let f=-l.y,c=l.y+l.height-window.innerHeight;a.top=s+Math.round(this.correctOutOfWindowPixels(f,c))+"px",a.maxWidth=`max(${t.offsetWidth}px, ${bi})`}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())}correctOutOfWindowPixels(t,i){return Math.max(t,Math.min(0,-i))}}$i.elementDefinitions={"ft-typography":ci},$i.styles=yi,mi([o.property()],$i.prototype,"text",void 0),mi([o.property({type:Boolean})],$i.prototype,"manual",void 0),mi([o.property({type:Boolean})],$i.prototype,"inline",void 0),mi([o.property({type:Number})],$i.prototype,"delay",void 0),mi([o.property()],$i.prototype,"position",void 0),mi([o.queryAssignedNodes("",!0)],$i.prototype,"slotNodes",void 0),mi([o.query(".ft-tooltip--container")],$i.prototype,"container",void 0),mi([o.query(".ft-tooltip")],$i.prototype,"tooltip",void 0),mi([o.query(".ft-tooltip--content")],$i.prototype,"tooltipContent",void 0),mi([o.state()],$i.prototype,"visible",void 0),i.customElement("ft-tooltip")($i);const wi=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorContent),ki={color:wi,backgroundColor:i.FtCssVariableFactory.extend("--ft-ripple-background-color",wi),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"),borderRadius:i.FtCssVariableFactory.create("--ft-ripple-border-radius","SIZE","0px")},zi=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorPrimary),Si=zi,Ci=i.FtCssVariableFactory.extend("--ft-ripple-background-color",zi),Ii=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorSecondary),Oi=Ii,Ei=i.FtCssVariableFactory.extend("--ft-ripple-background-color",Ii),ji=e.css`
166
166
  :host {
167
167
  display: contents;
168
168
  }
@@ -285,7 +285,7 @@ const q=Symbol.for(""),X=t=>{if((null==t?void 0:t.r)===q)return null==t?void 0:t
285
285
  <div class="ft-ripple--background"></div>
286
286
  <div class="ft-ripple--effect"></div>
287
287
  </div>
288
- `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var i,e;super.update(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"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,i;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(null!==(i=this.target)&&void 0!==i?i:e)}setupFor(t){if(this.setupDebouncer.cancel(),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}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}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.endRipple()}}Ai.elementDefinitions={},Ai.styles=ji,Ti([o.property({type:Boolean})],Ai.prototype,"primary",void 0),Ti([o.property({type:Boolean})],Ai.prototype,"secondary",void 0),Ti([o.property({type:Boolean})],Ai.prototype,"unbounded",void 0),Ti([o.property({type:Boolean})],Ai.prototype,"activated",void 0),Ti([o.property({type:Boolean})],Ai.prototype,"selected",void 0),Ti([o.property({type:Boolean})],Ai.prototype,"disabled",void 0),Ti([o.state()],Ai.prototype,"hovered",void 0),Ti([o.state()],Ai.prototype,"focused",void 0),Ti([o.state()],Ai.prototype,"pressed",void 0),Ti([o.state()],Ai.prototype,"rippling",void 0),Ti([o.state()],Ai.prototype,"originX",void 0),Ti([o.state()],Ai.prototype,"originY",void 0),Ti([o.query(".ft-ripple")],Ai.prototype,"ripple",void 0),Ti([o.query(".ft-ripple--effect")],Ai.prototype,"rippleEffect",void 0),i.customElement("ft-ripple")(Ai),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.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",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.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",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.EYE_SLASH="&#xe970;",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;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.EXPAND_WIDE="&#xe972;",t.X_MARK="&#xe971;"}(Ni||(Ni={})),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;"}(Bi||(Bi={})),new Map([...["abw"].map((t=>[t,Bi.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,Bi.AUDIO])),...["avi"].map((t=>[t,Bi.AVI])),...["chm","xhs"].map((t=>[t,Bi.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,Bi.CODE])),...["csv"].map((t=>[t,Bi.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Bi.DITA])),...["epub"].map((t=>[t,Bi.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Bi.EXCEL])),...["flac"].map((t=>[t,Bi.FLAC])),...["gif"].map((t=>[t,Bi.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Bi.GZIP])),...["html","htm","xhtml"].map((t=>[t,Bi.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,Bi.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Bi.JPEG])),...["json"].map((t=>[t,Bi.JSON])),...["m4a","m4p"].map((t=>[t,Bi.M4A])),...["mov","qt"].map((t=>[t,Bi.MOV])),...["mp3"].map((t=>[t,Bi.MP3])),...["mp4","m4v"].map((t=>[t,Bi.MP4])),...["ogg","oga"].map((t=>[t,Bi.OGG])),...["pdf","ps"].map((t=>[t,Bi.PDF])),...["png"].map((t=>[t,Bi.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Bi.POWERPOINT])),...["rar"].map((t=>[t,Bi.RAR])),...["stp"].map((t=>[t,Bi.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Bi.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,Bi.VIDEO])),...["wav"].map((t=>[t,Bi.WAV])),...["wma"].map((t=>[t,Bi.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Bi.WORD])),...["xml","xsl","rdf"].map((t=>[t,Bi.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Bi.YAML])),...["zip"].map((t=>[t,Bi.ZIP]))]);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")},Zi=e.css`
288
+ `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var i,e;super.update(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"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,i;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(null!==(i=this.target)&&void 0!==i?i:e)}setupFor(t){if(this.setupDebouncer.cancel(),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}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}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.endRipple()}}Ai.elementDefinitions={},Ai.styles=ji,Ti([o.property({type:Boolean})],Ai.prototype,"primary",void 0),Ti([o.property({type:Boolean})],Ai.prototype,"secondary",void 0),Ti([o.property({type:Boolean})],Ai.prototype,"unbounded",void 0),Ti([o.property({type:Boolean})],Ai.prototype,"activated",void 0),Ti([o.property({type:Boolean})],Ai.prototype,"selected",void 0),Ti([o.property({type:Boolean})],Ai.prototype,"disabled",void 0),Ti([o.state()],Ai.prototype,"hovered",void 0),Ti([o.state()],Ai.prototype,"focused",void 0),Ti([o.state()],Ai.prototype,"pressed",void 0),Ti([o.state()],Ai.prototype,"rippling",void 0),Ti([o.state()],Ai.prototype,"originX",void 0),Ti([o.state()],Ai.prototype,"originY",void 0),Ti([o.query(".ft-ripple")],Ai.prototype,"ripple",void 0),Ti([o.query(".ft-ripple--effect")],Ai.prototype,"rippleEffect",void 0),i.customElement("ft-ripple")(Ai),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.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",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.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",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.EXTLINK_LIGHT="&#xe978;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.EYE_SLASH="&#xe970;",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;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.EXPAND_WIDE="&#xe972;",t.X_MARK="&#xe971;"}(Ni||(Ni={})),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;"}(Bi||(Bi={})),new Map([...["abw"].map((t=>[t,Bi.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,Bi.AUDIO])),...["avi"].map((t=>[t,Bi.AVI])),...["chm","xhs"].map((t=>[t,Bi.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,Bi.CODE])),...["csv"].map((t=>[t,Bi.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Bi.DITA])),...["epub"].map((t=>[t,Bi.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Bi.EXCEL])),...["flac"].map((t=>[t,Bi.FLAC])),...["gif"].map((t=>[t,Bi.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Bi.GZIP])),...["html","htm","xhtml"].map((t=>[t,Bi.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,Bi.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Bi.JPEG])),...["json"].map((t=>[t,Bi.JSON])),...["m4a","m4p"].map((t=>[t,Bi.M4A])),...["mov","qt"].map((t=>[t,Bi.MOV])),...["mp3"].map((t=>[t,Bi.MP3])),...["mp4","m4v"].map((t=>[t,Bi.MP4])),...["ogg","oga"].map((t=>[t,Bi.OGG])),...["pdf","ps"].map((t=>[t,Bi.PDF])),...["png"].map((t=>[t,Bi.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Bi.POWERPOINT])),...["rar"].map((t=>[t,Bi.RAR])),...["stp"].map((t=>[t,Bi.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Bi.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,Bi.VIDEO])),...["wav"].map((t=>[t,Bi.WAV])),...["wma"].map((t=>[t,Bi.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Bi.WORD])),...["xml","xsl","rdf"].map((t=>[t,Bi.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Bi.YAML])),...["zip"].map((t=>[t,Bi.ZIP]))]);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")},Zi=e.css`
289
289
  :host, i.ft-icon {
290
290
  display: inline-flex;
291
291
  align-items: center;
@@ -551,7 +551,7 @@ const q=Symbol.for(""),X=t=>{if((null==t?void 0:t.r)===q)return null==t?void 0:t
551
551
  ${i.setVariable(Ri.size,Wi.iconSize)};
552
552
  ${i.setVariable(Ri.color,"var(--ft-button-internal-color)")};
553
553
  }
554
- `,i.noTextSelect];var Ji=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};class Qi 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.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`
554
+ `,i.noTextSelect];var Ji=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};class Qi extends(i.toFtFormComponent(i.FtLitElement,"button")){constructor(){super(...arguments),this.role="button",this.type="button",this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{var i;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):"submit"==this.type&&(null===(i=this.form)||void 0===i||i.requestSubmit())}}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`
555
555
  <button part="button"
556
556
  class="${n.classMap(t)}"
557
557
  aria-label="${this.getLabel()}"
@@ -567,14 +567,14 @@ const q=Symbol.for(""),X=t=>{if((null==t?void 0:t.r)===q)return null==t?void 0:t
567
567
  ${this.resolveIcon()}
568
568
  </button>
569
569
  `)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?e.html`
570
- <ft-tooltip part="tooltip"
571
- text="${this.getLabel()}"
572
- position="${this.tooltipPosition}">
573
- ${t}
574
- </ft-tooltip>
570
+ <ft-tooltip part="tooltip"
571
+ text="${this.getLabel()}"
572
+ position="${this.tooltipPosition}">
573
+ ${t}
574
+ </ft-tooltip>
575
575
  `:t}resolveIcon(){return this.loading?e.html`
576
576
  <ft-loader part="loader icon"></ft-loader> `:this.icon?e.html`
577
- <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}}Qi.elementDefinitions={"ft-ripple":Ai,"ft-tooltip":$i,"ft-typography":ci,"ft-icon":Ui,"ft-loader":Ki},Qi.styles=[i.safariEllipsisFix,Yi],Ji([o.property({type:String,reflect:!0})],Qi.prototype,"role",void 0),Ji([o.property({type:Boolean})],Qi.prototype,"primary",void 0),Ji([o.property({type:Boolean})],Qi.prototype,"outlined",void 0),Ji([o.property({type:Boolean})],Qi.prototype,"disabled",void 0),Ji([o.property({type:Boolean})],Qi.prototype,"dense",void 0),Ji([o.property({type:Boolean})],Qi.prototype,"round",void 0),Ji([o.property()],Qi.prototype,"label",void 0),Ji([o.property()],Qi.prototype,"icon",void 0),Ji([o.property()],Qi.prototype,"iconVariant",void 0),Ji([o.property({type:Boolean})],Qi.prototype,"trailingIcon",void 0),Ji([o.property({type:Boolean})],Qi.prototype,"loading",void 0),Ji([o.property()],Qi.prototype,"tooltipPosition",void 0),Ji([o.property({type:Boolean})],Qi.prototype,"hideTooltip",void 0),Ji([o.property({type:Boolean})],Qi.prototype,"forceTooltip",void 0),Ji([o.query(".ft-button")],Qi.prototype,"button",void 0),Ji([o.query(".ft-button--label slot")],Qi.prototype,"slottedContent",void 0),i.customElement("ft-button")(Qi);const te=i.FtCssVariableFactory.extend("--ft-chip-color",i.designSystemVariables.colorOnSurface),ie={backgroundColor:i.FtCssVariableFactory.extend("--ft-chip-background-color",i.designSystemVariables.colorSurface),color:te,fontSize:i.FtCssVariableFactory.extend("--ft-chip-font-size",At.fontSize),iconSize:i.FtCssVariableFactory.create("--ft-chip-icon-size","SIZE","18px"),rippleColor:i.FtCssVariableFactory.extend("--ft-chip-ripple-color",te),horizontalPadding:i.FtCssVariableFactory.create("--ft-chip-horizontal-padding","SIZE","6px"),verticalPadding:i.FtCssVariableFactory.create("--ft-chip-vertical-padding","SIZE","6px"),colorOutline:i.FtCssVariableFactory.external(i.designSystemVariables.colorOutline,"Design system"),opacityDisabled:i.FtCssVariableFactory.external(i.designSystemVariables.colorOpacityDisabled,"Design system")},ee=i.FtCssVariableFactory.extend("--ft-chip-highlighted-color",i.FtCssVariableFactory.extend("--ft-chip-color",i.designSystemVariables.colorOnPrimary)),oe={backgroundColor:i.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color",i.FtCssVariableFactory.extend("--ft-chip-background-color",i.designSystemVariables.colorPrimary)),color:ee,rippleColor:i.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color",ee)},ne=i.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","SIZE","4px"),re=i.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","SIZE","4px"),se=[i.noTextSelect,e.css`
577
+ <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}}Qi.elementDefinitions={"ft-ripple":Ai,"ft-tooltip":$i,"ft-typography":ci,"ft-icon":Ui,"ft-loader":Ki},Qi.styles=[i.safariEllipsisFix,Yi],Ji([o.property({type:String,reflect:!0})],Qi.prototype,"role",void 0),Ji([o.property()],Qi.prototype,"type",void 0),Ji([o.property({type:Boolean})],Qi.prototype,"primary",void 0),Ji([o.property({type:Boolean})],Qi.prototype,"outlined",void 0),Ji([o.property({type:Boolean})],Qi.prototype,"disabled",void 0),Ji([o.property({type:Boolean})],Qi.prototype,"dense",void 0),Ji([o.property({type:Boolean})],Qi.prototype,"round",void 0),Ji([o.property()],Qi.prototype,"label",void 0),Ji([o.property()],Qi.prototype,"icon",void 0),Ji([o.property()],Qi.prototype,"iconVariant",void 0),Ji([o.property({type:Boolean})],Qi.prototype,"trailingIcon",void 0),Ji([o.property({type:Boolean})],Qi.prototype,"loading",void 0),Ji([o.property()],Qi.prototype,"tooltipPosition",void 0),Ji([o.property({type:Boolean})],Qi.prototype,"hideTooltip",void 0),Ji([o.property({type:Boolean})],Qi.prototype,"forceTooltip",void 0),Ji([o.query(".ft-button")],Qi.prototype,"button",void 0),Ji([o.query(".ft-button--label slot")],Qi.prototype,"slottedContent",void 0),i.customElement("ft-button")(Qi);const te=i.FtCssVariableFactory.extend("--ft-chip-color",i.designSystemVariables.colorOnSurface),ie={backgroundColor:i.FtCssVariableFactory.extend("--ft-chip-background-color",i.designSystemVariables.colorSurface),color:te,fontSize:i.FtCssVariableFactory.extend("--ft-chip-font-size",At.fontSize),iconSize:i.FtCssVariableFactory.create("--ft-chip-icon-size","SIZE","18px"),rippleColor:i.FtCssVariableFactory.extend("--ft-chip-ripple-color",te),horizontalPadding:i.FtCssVariableFactory.create("--ft-chip-horizontal-padding","SIZE","6px"),verticalPadding:i.FtCssVariableFactory.create("--ft-chip-vertical-padding","SIZE","6px"),colorOutline:i.FtCssVariableFactory.external(i.designSystemVariables.colorOutline,"Design system"),opacityDisabled:i.FtCssVariableFactory.external(i.designSystemVariables.colorOpacityDisabled,"Design system")},ee=i.FtCssVariableFactory.extend("--ft-chip-highlighted-color",i.FtCssVariableFactory.extend("--ft-chip-color",i.designSystemVariables.colorOnPrimary)),oe={backgroundColor:i.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color",i.FtCssVariableFactory.extend("--ft-chip-background-color",i.designSystemVariables.colorPrimary)),color:ee,rippleColor:i.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color",ee)},ne=i.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","SIZE","4px"),re=i.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","SIZE","4px"),se=[i.noTextSelect,e.css`
578
578
  :host {
579
579
  display: inline-block;
580
580
  max-width: 100%;
@@ -14,7 +14,7 @@
14
14
  *
15
15
  * @see https://github.com/webcomponents/polyfills/tree/master/packages/scoped-custom-element-registry
16
16
  */
17
- if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,i=window.customElements.define,e=window.customElements.get,o=window.customElements,n=new WeakMap,r=new WeakMap,s=new WeakMap,a=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,n){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(n))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=n.prototype.attributeChangedCallback,l=new Set(n.observedAttributes||[]);f(n,l,a);const h={elementClass:n,connectedCallback:n.prototype.connectedCallback,disconnectedCallback:n.prototype.disconnectedCallback,adoptedCallback:n.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:n.formAssociated,formAssociatedCallback:n.prototype.formAssociatedCallback,formDisabledCallback:n.prototype.formDisabledCallback,formResetCallback:n.prototype.formResetCallback,formStateRestoreCallback:n.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,h),this._definitionsByClass.set(n,h);let c=e.call(o,t);c||(c=p(t),i.call(o,t,c)),this===window.customElements&&(s.set(n,h),h.standInClass=c);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)r.delete(t),u(t,h,!0)}const v=this._whenDefinedPromises.get(t);return void 0!==v&&(v.resolve(n),this._whenDefinedPromises.delete(t)),n}upgrade(){b.push(this),o.upgrade.apply(o,arguments),b.pop()}get(t){const i=this._definitionsByTag.get(t);return i?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const i=this._getDefinition(t);if(void 0!==i)return Promise.resolve(i.elementClass);let e=this._whenDefinedPromises.get(t);return void 0===e&&(e={},e.promise=new Promise((t=>e.resolve=t)),this._whenDefinedPromises.set(t,e)),e.promise}_upgradeWhenDefined(t,i,e){let o=this._awaitingUpgrade.get(i);o||this._awaitingUpgrade.set(i,o=new Set),e?o.add(t):o.delete(t)}},window.HTMLElement=function(){let i=l;if(i)return l=void 0,i;const e=s.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return i=Reflect.construct(t,[],e.standInClass),Object.setPrototypeOf(i,this.constructor.prototype),n.set(i,e),i},window.HTMLElement.prototype=t.prototype;const h=t=>t===document||t instanceof ShadowRoot,c=t=>{let i=t.getRootNode();if(!h(i)){const t=b[b.length-1];if(t instanceof CustomElementRegistry)return t;i=t.getRootNode(),h(i)||(i=a.get(i)?.getRootNode()||document)}return i.customElements},p=i=>class{static get formAssociated(){return!0}constructor(){const e=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);const o=c(e)||window.customElements,n=o._getDefinition(i);return n?u(e,n):r.set(e,o),e}connectedCallback(){const t=n.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,i,!0)}disconnectedCallback(){const t=n.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,i,!1)}adoptedCallback(){const t=n.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=n.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=n.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=n.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=n.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},f=(t,i,e)=>{if(0===i.size||void 0===e)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,n){const r=t.toLowerCase();if(i.has(r)){const t=this.getAttribute(r);o.call(this,r,n),e.call(this,r,t,n)}else o.call(this,r,n)});const n=t.prototype.removeAttribute;n&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(i.has(o)){const t=this.getAttribute(o);n.call(this,o),e.call(this,o,t,null)}else n.call(this,o)})},d=i=>{const e=Object.getPrototypeOf(i);if(e!==window.HTMLElement)return e===t||"HTMLElement"===e?.prototype?.constructor?.name?Object.setPrototypeOf(i,window.HTMLElement):d(e)},u=(t,i,e=!1)=>{Object.setPrototypeOf(t,i.elementClass.prototype),n.set(t,i),l=t;try{new i.elementClass}catch(t){d(i.elementClass),new i.elementClass}i.observedAttributes.forEach((e=>{t.hasAttribute(e)&&i.attributeChangedCallback.call(t,e,null,t.getAttribute(e))})),e&&i.connectedCallback&&t.isConnected&&i.connectedCallback.call(t)},v=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const i=v.apply(this,arguments);return t.customElements&&(i.customElements=t.customElements),i};let b=[document];const x=(t,i,e=void 0)=>{const o=(e?Object.getPrototypeOf(e):t.prototype)[i];t.prototype[i]=function(){b.push(this);const t=o.apply(e||this,arguments);return void 0!==t&&a.set(t,this),b.pop(),t}};x(ShadowRoot,"createElement",document),x(ShadowRoot,"importNode",document),x(Element,"insertAdjacentHTML");const g=(t,i)=>{const e=Object.getOwnPropertyDescriptor(t.prototype,i);Object.defineProperty(t.prototype,i,{...e,set(t){b.push(this),e.set.call(this,t),b.pop()}})};if(g(Element,"innerHTML"),g(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,i=HTMLElement.prototype.attachInternals,e=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...e){const o=i.call(this,...e);return t.set(o,this),o},e.forEach((i=>{const e=window.ElementInternals.prototype,o=e[i];e[i]=function(...i){const e=t.get(this);if(!0!==n.get(e).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...i)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class r{constructor(t){const i=new Map;t.forEach(((t,e)=>{const o=t.getAttribute("name"),n=i.get(o)||[];this[+e]=t,n.push(t),i.set(o,n)})),this.length=t.length,i.forEach(((t,i)=>{t&&(1===t.length?this[i]=t[0]:this[i]=new o(t))}))}namedItem(t){return this[t]}}const s=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=s.get.call(this,[]),i=[];for(const e of t){const t=n.get(e);t&&!0!==t.formAssociated||i.push(e)}return new r(i)}})}}try{window.customElements.define("custom-element",null)}catch(Be){const t=window.customElements.define;window.customElements.define=(i,e,o)=>{if(null!==e)try{t.bind(window.customElements)(i,e,o)}catch(t){console.info(i,e,o,t)}}}class i{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,i){return this.callbacks=[t],this.debounce(i)}queue(t,i){return this.callbacks.push(t),this.debounce(i)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,i)=>{this.resolvePromise=t,this.rejectPromise=i}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,i;const e=[...this.callbacks];this.callbacks=[];const o=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,n=null!==(i=this.resolvePromise)&&void 0!==i?i:()=>null;this.clearPromise();for(let t of e)try{await t()}catch(t){return void o(t)}n(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
17
+ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,i=window.customElements.define,e=window.customElements.get,o=window.customElements,n=new WeakMap,r=new WeakMap,s=new WeakMap,a=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,n){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(n))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=n.prototype.attributeChangedCallback,l=new Set(n.observedAttributes||[]);f(n,l,a);const h={elementClass:n,connectedCallback:n.prototype.connectedCallback,disconnectedCallback:n.prototype.disconnectedCallback,adoptedCallback:n.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:n.formAssociated,formAssociatedCallback:n.prototype.formAssociatedCallback,formDisabledCallback:n.prototype.formDisabledCallback,formResetCallback:n.prototype.formResetCallback,formStateRestoreCallback:n.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,h),this._definitionsByClass.set(n,h);let c=e.call(o,t);c||(c=p(t),i.call(o,t,c)),this===window.customElements&&(s.set(n,h),h.standInClass=c);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)r.delete(t),u(t,h,!0)}const v=this._whenDefinedPromises.get(t);return void 0!==v&&(v.resolve(n),this._whenDefinedPromises.delete(t)),n}upgrade(){b.push(this),o.upgrade.apply(o,arguments),b.pop()}get(t){const i=this._definitionsByTag.get(t);return i?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const i=this._getDefinition(t);if(void 0!==i)return Promise.resolve(i.elementClass);let e=this._whenDefinedPromises.get(t);return void 0===e&&(e={},e.promise=new Promise((t=>e.resolve=t)),this._whenDefinedPromises.set(t,e)),e.promise}_upgradeWhenDefined(t,i,e){let o=this._awaitingUpgrade.get(i);o||this._awaitingUpgrade.set(i,o=new Set),e?o.add(t):o.delete(t)}},window.HTMLElement=function(){let i=l;if(i)return l=void 0,i;const e=s.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return i=Reflect.construct(t,[],e.standInClass),Object.setPrototypeOf(i,this.constructor.prototype),n.set(i,e),i},window.HTMLElement.prototype=t.prototype;const h=t=>t===document||t instanceof ShadowRoot,c=t=>{let i=t.getRootNode();if(!h(i)){const t=b[b.length-1];if(t instanceof CustomElementRegistry)return t;i=t.getRootNode(),h(i)||(i=a.get(i)?.getRootNode()||document)}return i.customElements},p=i=>class{static get formAssociated(){return!0}constructor(){const e=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);const o=c(e)||window.customElements,n=o._getDefinition(i);return n?u(e,n):r.set(e,o),e}connectedCallback(){const t=n.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,i,!0)}disconnectedCallback(){const t=n.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,i,!1)}adoptedCallback(){const t=n.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=n.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=n.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=n.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=n.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},f=(t,i,e)=>{if(0===i.size||void 0===e)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,n){const r=t.toLowerCase();if(i.has(r)){const t=this.getAttribute(r);o.call(this,r,n),e.call(this,r,t,n)}else o.call(this,r,n)});const n=t.prototype.removeAttribute;n&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(i.has(o)){const t=this.getAttribute(o);n.call(this,o),e.call(this,o,t,null)}else n.call(this,o)})},d=i=>{const e=Object.getPrototypeOf(i);if(e!==window.HTMLElement)return e===t||"HTMLElement"===e?.prototype?.constructor?.name?Object.setPrototypeOf(i,window.HTMLElement):d(e)},u=(t,i,e=!1)=>{Object.setPrototypeOf(t,i.elementClass.prototype),n.set(t,i),l=t;try{new i.elementClass}catch(t){d(i.elementClass),new i.elementClass}i.observedAttributes.forEach((e=>{t.hasAttribute(e)&&i.attributeChangedCallback.call(t,e,null,t.getAttribute(e))})),e&&i.connectedCallback&&t.isConnected&&i.connectedCallback.call(t)},v=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const i=v.apply(this,arguments);return t.customElements&&(i.customElements=t.customElements),i};let b=[document];const x=(t,i,e=void 0)=>{const o=(e?Object.getPrototypeOf(e):t.prototype)[i];t.prototype[i]=function(){b.push(this);const t=o.apply(e||this,arguments);return void 0!==t&&a.set(t,this),b.pop(),t}};x(ShadowRoot,"createElement",document),x(ShadowRoot,"importNode",document),x(Element,"insertAdjacentHTML");const g=(t,i)=>{const e=Object.getOwnPropertyDescriptor(t.prototype,i);Object.defineProperty(t.prototype,i,{...e,set(t){b.push(this),e.set.call(this,t),b.pop()}})};if(g(Element,"innerHTML"),g(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,i=HTMLElement.prototype.attachInternals,e=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...e){const o=i.call(this,...e);return t.set(o,this),o},e.forEach((i=>{const e=window.ElementInternals.prototype,o=e[i];e[i]=function(...i){const e=t.get(this);if(!0!==n.get(e).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...i)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class r{constructor(t){const i=new Map;t.forEach(((t,e)=>{const o=t.getAttribute("name"),n=i.get(o)||[];this[+e]=t,n.push(t),i.set(o,n)})),this.length=t.length,i.forEach(((t,i)=>{t&&(1===t.length?this[i]=t[0]:this[i]=new o(t))}))}namedItem(t){return this[t]}}const s=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=s.get.call(this,[]),i=[];for(const e of t){const t=n.get(e);t&&!0!==t.formAssociated||i.push(e)}return new r(i)}})}}try{window.customElements.define("custom-element",null)}catch(Te){const t=window.customElements.define;window.customElements.define=(i,e,o)=>{if(null!==e)try{t.bind(window.customElements)(i,e,o)}catch(t){console.info(i,e,o,t)}}}class i{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,i){return this.callbacks=[t],this.debounce(i)}queue(t,i){return this.callbacks.push(t),this.debounce(i)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,i)=>{this.resolvePromise=t,this.rejectPromise=i}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,i;const e=[...this.callbacks];this.callbacks=[];const o=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,n=null!==(i=this.resolvePromise)&&void 0!==i?i:()=>null;this.clearPromise();for(let t of e)try{await t()}catch(t){return void o(t)}n(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
18
18
  /**
19
19
  * @license
20
20
  * Copyright 2017 Google LLC
@@ -56,7 +56,7 @@ const p=window,f=p.ShadowRoot&&(void 0===p.ShadyCSS||p.ShadyCSS.nativeShadow)&&"
56
56
  * Copyright 2017 Google LLC
57
57
  * SPDX-License-Identifier: BSD-3-Clause
58
58
  */
59
- var M;N.finalized=!0,N.elementProperties=new Map,N.elementStyles=[],N.shadowRootOptions={mode:"open"},null==S||S({ReactiveElement:N}),(null!==(m=w.reactiveElementVersions)&&void 0!==m?m:w.reactiveElementVersions=[]).push("1.6.1");const R=window,z=R.trustedTypes,U=z?z.createPolicy("lit-html",{createHTML:t=>t}):void 0,j="$lit$",F=`lit$${(Math.random()+"").slice(9)}$`,B="?"+F,T=`<${B}>`,I=document,A=()=>I.createComment(""),L=t=>null===t||"object"!=typeof t&&"function"!=typeof t,P=Array.isArray,D="[ \t\n\f\r]",_=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,W=/-->/g,K=/>/g,H=RegExp(`>|${D}(?:([^\\s"'>=/]+)(${D}*=${D}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Z=/'/g,V=/"/g,J=/^(?:script|style|textarea|title)$/i,q=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),X=Symbol.for("lit-noChange"),G=Symbol.for("lit-nothing"),Y=new WeakMap,Q=I.createTreeWalker(I,129,null,!1),tt=(t,i)=>{const e=t.length-1,o=[];let n,r=2===i?"<svg>":"",s=_;for(let i=0;i<e;i++){const e=t[i];let a,l,h=-1,c=0;for(;c<e.length&&(s.lastIndex=c,l=s.exec(e),null!==l);)c=s.lastIndex,s===_?"!--"===l[1]?s=W:void 0!==l[1]?s=K:void 0!==l[2]?(J.test(l[2])&&(n=RegExp("</"+l[2],"g")),s=H):void 0!==l[3]&&(s=H):s===H?">"===l[0]?(s=null!=n?n:_,h=-1):void 0===l[1]?h=-2:(h=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?H:'"'===l[3]?V:Z):s===V||s===Z?s=H:s===W||s===K?s=_:(s=H,n=void 0);const p=s===H&&t[i+1].startsWith("/>")?" ":"";r+=s===_?e+T:h>=0?(o.push(a),e.slice(0,h)+j+e.slice(h)+F+p):e+F+(-2===h?(o.push(void 0),i):p)}const a=r+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==U?U.createHTML(a):a,o]};class it{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let n=0,r=0;const s=t.length-1,a=this.parts,[l,h]=tt(t,i);if(this.el=it.createElement(l,e),Q.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=Q.nextNode())&&a.length<s;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith(j)||i.startsWith(F)){const e=h[r++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+j).split(F),i=/([.?@])?(.*)/.exec(e);a.push({type:1,index:n,name:i[2],strings:t,ctor:"."===i[1]?st:"?"===i[1]?lt:"@"===i[1]?ht:rt})}else a.push({type:6,index:n})}for(const i of t)o.removeAttribute(i)}if(J.test(o.tagName)){const t=o.textContent.split(F),i=t.length-1;if(i>0){o.textContent=z?z.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],A()),Q.nextNode(),a.push({type:2,index:++n});o.append(t[i],A())}}}else if(8===o.nodeType)if(o.data===B)a.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(F,t+1));)a.push({type:7,index:n}),t+=F.length-1}n++}}static createElement(t,i){const e=I.createElement("template");return e.innerHTML=t,e}}function et(t,i,e=t,o){var n,r,s,a;if(i===X)return i;let l=void 0!==o?null===(n=e._$Co)||void 0===n?void 0:n[o]:e._$Cl;const h=L(i)?void 0:i._$litDirective$;return(null==l?void 0:l.constructor)!==h&&(null===(r=null==l?void 0:l._$AO)||void 0===r||r.call(l,!1),void 0===h?l=void 0:(l=new h(t),l._$AT(t,e,o)),void 0!==o?(null!==(s=(a=e)._$Co)&&void 0!==s?s:a._$Co=[])[o]=l:e._$Cl=l),void 0!==l&&(i=et(t,l._$AS(t,i.values),l,o)),i}class ot{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var i;const{el:{content:e},parts:o}=this._$AD,n=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:I).importNode(e,!0);Q.currentNode=n;let r=Q.nextNode(),s=0,a=0,l=o[0];for(;void 0!==l;){if(s===l.index){let i;2===l.type?i=new nt(r,r.nextSibling,this,t):1===l.type?i=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(i=new ct(r,this,t)),this._$AV.push(i),l=o[++a]}s!==(null==l?void 0:l.index)&&(r=Q.nextNode(),s++)}return n}v(t){let i=0;for(const e of this._$AV)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class nt{constructor(t,i,e,o){var n;this.type=2,this._$AH=G,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cp=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._$Cp}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===(null==t?void 0:t.nodeType)&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=et(this,t,i),L(t)?t===G||null==t||""===t?(this._$AH!==G&&this._$AR(),this._$AH=G):t!==this._$AH&&t!==X&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>P(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==G&&L(this._$AH)?this._$AA.nextSibling.data=t:this.$(I.createTextNode(t)),this._$AH=t}g(t){var i;const{values:e,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=it.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===n)this._$AH.v(e);else{const t=new ot(n,this),i=t.u(this.options);t.v(e),this.$(i),this._$AH=t}}_$AC(t){let i=Y.get(t.strings);return void 0===i&&Y.set(t.strings,i=new it(t)),i}T(t){P(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 nt(this.k(A()),this.k(A()),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._$Cp=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class rt{constructor(t,i,e,o,n){this.type=1,this._$AH=G,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=G}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const n=this.strings;let r=!1;if(void 0===n)t=et(this,t,i,0),r=!L(t)||t!==this._$AH&&t!==X,r&&(this._$AH=t);else{const o=t;let s,a;for(t=n[0],s=0;s<n.length-1;s++)a=et(this,o[e+s],i,s),a===X&&(a=this._$AH[s]),r||(r=!L(a)||a!==this._$AH[s]),a===G?t=G:t!==G&&(t+=(null!=a?a:"")+n[s+1]),this._$AH[s]=a}r&&!o&&this.j(t)}j(t){t===G?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class st extends rt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===G?void 0:t}}const at=z?z.emptyScript:"";class lt extends rt{constructor(){super(...arguments),this.type=4}j(t){t&&t!==G?this.element.setAttribute(this.name,at):this.element.removeAttribute(this.name)}}class ht extends rt{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=et(this,t,i,0))&&void 0!==e?e:G)===X)return;const o=this._$AH,n=t===G&&o!==G||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==G&&(o===G||n);n&&this.element.removeEventListener(this.name,this,o),r&&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 ct{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){et(this,t)}}const pt=R.litHtmlPolyfillSupport;null==pt||pt(it,nt),(null!==(M=R.litHtmlVersions)&&void 0!==M?M:R.litHtmlVersions=[]).push("2.7.3");
59
+ var M;N.finalized=!0,N.elementProperties=new Map,N.elementStyles=[],N.shadowRootOptions={mode:"open"},null==S||S({ReactiveElement:N}),(null!==(m=w.reactiveElementVersions)&&void 0!==m?m:w.reactiveElementVersions=[]).push("1.6.1");const R=window,z=R.trustedTypes,F=z?z.createPolicy("lit-html",{createHTML:t=>t}):void 0,U="$lit$",j=`lit$${(Math.random()+"").slice(9)}$`,B="?"+j,T=`<${B}>`,I=document,A=()=>I.createComment(""),L=t=>null===t||"object"!=typeof t&&"function"!=typeof t,P=Array.isArray,D="[ \t\n\f\r]",_=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,W=/-->/g,K=/>/g,H=RegExp(`>|${D}(?:([^\\s"'>=/]+)(${D}*=${D}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Z=/'/g,V=/"/g,J=/^(?:script|style|textarea|title)$/i,q=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),X=Symbol.for("lit-noChange"),G=Symbol.for("lit-nothing"),Y=new WeakMap,Q=I.createTreeWalker(I,129,null,!1),tt=(t,i)=>{const e=t.length-1,o=[];let n,r=2===i?"<svg>":"",s=_;for(let i=0;i<e;i++){const e=t[i];let a,l,h=-1,c=0;for(;c<e.length&&(s.lastIndex=c,l=s.exec(e),null!==l);)c=s.lastIndex,s===_?"!--"===l[1]?s=W:void 0!==l[1]?s=K:void 0!==l[2]?(J.test(l[2])&&(n=RegExp("</"+l[2],"g")),s=H):void 0!==l[3]&&(s=H):s===H?">"===l[0]?(s=null!=n?n:_,h=-1):void 0===l[1]?h=-2:(h=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?H:'"'===l[3]?V:Z):s===V||s===Z?s=H:s===W||s===K?s=_:(s=H,n=void 0);const p=s===H&&t[i+1].startsWith("/>")?" ":"";r+=s===_?e+T:h>=0?(o.push(a),e.slice(0,h)+U+e.slice(h)+j+p):e+j+(-2===h?(o.push(void 0),i):p)}const a=r+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==F?F.createHTML(a):a,o]};class it{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let n=0,r=0;const s=t.length-1,a=this.parts,[l,h]=tt(t,i);if(this.el=it.createElement(l,e),Q.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=Q.nextNode())&&a.length<s;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith(U)||i.startsWith(j)){const e=h[r++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+U).split(j),i=/([.?@])?(.*)/.exec(e);a.push({type:1,index:n,name:i[2],strings:t,ctor:"."===i[1]?st:"?"===i[1]?lt:"@"===i[1]?ht:rt})}else a.push({type:6,index:n})}for(const i of t)o.removeAttribute(i)}if(J.test(o.tagName)){const t=o.textContent.split(j),i=t.length-1;if(i>0){o.textContent=z?z.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],A()),Q.nextNode(),a.push({type:2,index:++n});o.append(t[i],A())}}}else if(8===o.nodeType)if(o.data===B)a.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(j,t+1));)a.push({type:7,index:n}),t+=j.length-1}n++}}static createElement(t,i){const e=I.createElement("template");return e.innerHTML=t,e}}function et(t,i,e=t,o){var n,r,s,a;if(i===X)return i;let l=void 0!==o?null===(n=e._$Co)||void 0===n?void 0:n[o]:e._$Cl;const h=L(i)?void 0:i._$litDirective$;return(null==l?void 0:l.constructor)!==h&&(null===(r=null==l?void 0:l._$AO)||void 0===r||r.call(l,!1),void 0===h?l=void 0:(l=new h(t),l._$AT(t,e,o)),void 0!==o?(null!==(s=(a=e)._$Co)&&void 0!==s?s:a._$Co=[])[o]=l:e._$Cl=l),void 0!==l&&(i=et(t,l._$AS(t,i.values),l,o)),i}class ot{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var i;const{el:{content:e},parts:o}=this._$AD,n=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:I).importNode(e,!0);Q.currentNode=n;let r=Q.nextNode(),s=0,a=0,l=o[0];for(;void 0!==l;){if(s===l.index){let i;2===l.type?i=new nt(r,r.nextSibling,this,t):1===l.type?i=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(i=new ct(r,this,t)),this._$AV.push(i),l=o[++a]}s!==(null==l?void 0:l.index)&&(r=Q.nextNode(),s++)}return n}v(t){let i=0;for(const e of this._$AV)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class nt{constructor(t,i,e,o){var n;this.type=2,this._$AH=G,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cp=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._$Cp}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===(null==t?void 0:t.nodeType)&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=et(this,t,i),L(t)?t===G||null==t||""===t?(this._$AH!==G&&this._$AR(),this._$AH=G):t!==this._$AH&&t!==X&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>P(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==G&&L(this._$AH)?this._$AA.nextSibling.data=t:this.$(I.createTextNode(t)),this._$AH=t}g(t){var i;const{values:e,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=it.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===n)this._$AH.v(e);else{const t=new ot(n,this),i=t.u(this.options);t.v(e),this.$(i),this._$AH=t}}_$AC(t){let i=Y.get(t.strings);return void 0===i&&Y.set(t.strings,i=new it(t)),i}T(t){P(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 nt(this.k(A()),this.k(A()),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._$Cp=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class rt{constructor(t,i,e,o,n){this.type=1,this._$AH=G,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=G}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const n=this.strings;let r=!1;if(void 0===n)t=et(this,t,i,0),r=!L(t)||t!==this._$AH&&t!==X,r&&(this._$AH=t);else{const o=t;let s,a;for(t=n[0],s=0;s<n.length-1;s++)a=et(this,o[e+s],i,s),a===X&&(a=this._$AH[s]),r||(r=!L(a)||a!==this._$AH[s]),a===G?t=G:t!==G&&(t+=(null!=a?a:"")+n[s+1]),this._$AH[s]=a}r&&!o&&this.j(t)}j(t){t===G?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class st extends rt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===G?void 0:t}}const at=z?z.emptyScript:"";class lt extends rt{constructor(){super(...arguments),this.type=4}j(t){t&&t!==G?this.element.setAttribute(this.name,at):this.element.removeAttribute(this.name)}}class ht extends rt{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=et(this,t,i,0))&&void 0!==e?e:G)===X)return;const o=this._$AH,n=t===G&&o!==G||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==G&&(o===G||n);n&&this.element.removeEventListener(this.name,this,o),r&&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 ct{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){et(this,t)}}const pt=R.litHtmlPolyfillSupport;null==pt||pt(it,nt),(null!==(M=R.litHtmlVersions)&&void 0!==M?M:R.litHtmlVersions=[]).push("2.7.3");
60
60
  /**
61
61
  * @license
62
62
  * Copyright 2017 Google LLC
@@ -94,118 +94,118 @@ var ft,dt;let ut=class extends N{constructor(){super(...arguments),this.renderOp
94
94
  display: inline-block;
95
95
  width: 0;
96
96
  }
97
- `;function Nt(t){var i;return null!==(i=null==t?void 0:t.isFtReduxStore)&&void 0!==i&&i}var Mt,Rt,zt;const Ut=Symbol("internalReduxEventsUnsubscribers"),jt=Symbol("internalStoresUnsubscribers"),Ft=Symbol("internalStores");class Bt extends kt{constructor(){super(...arguments),this[Mt]=new Map,this[Rt]=new Map,this[zt]=[]}update(t){var i;super.update(t),(null===(i=this.reduxReactiveProperties)||void 0===i?void 0:i.some((i=>t.has(i))))&&this.updateFromStores()}getUnnamedStore(){if(this[Ft].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ft].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[Ft].get(t)}addStore(t,i){var e;i=null!==(e=null!=i?i:Nt(t)?t.name:void 0)&&void 0!==e?e:"default-store",this.unsubscribeFromStore(i),this.setupStore(i,t)}removeStore(t){const i="string"==typeof t?t:t.name;this.unsubscribeFromStore(i),this[Ft].delete(i)}setupStore(t,i){this[Ft].set(t,i),this.subscribeToStore(t,i),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Ft].forEach(((t,i)=>this.subscribeToStore(i,t))),this.updateFromStores()}updateFromStores(){this.reduxProperties&&this.reduxProperties.forEach(((t,i)=>{const e=this.constructor.getPropertyOptions(i);if(!(null==e?void 0:e.attribute)||!this.hasAttribute("string"==typeof(null==e?void 0:e.attribute)?e.attribute:i)){const e=this.getStore(t.store);e&&(t.store?this[jt].has(t.store):this[jt].size>0)&&(this[i]=t.selector(e.getState(),this))}}))}subscribeToStore(t,i){var e;this[jt].set(t,i.subscribe((()=>this.updateFromStores()))),Nt(i)&&i.eventBus&&(null===(e=this.reduxEventListeners)||void 0===e||e.forEach(((t,e)=>{if("function"==typeof this[e]&&(!t.store||i.name===t.store)){const o=t=>this[e](t);i.eventBus.addEventListener(t.eventName,o),this[Ut].push((()=>i.eventBus.removeEventListener(t.eventName,o)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[jt].forEach(((t,i)=>this.unsubscribeFromStore(i))),this[Ut].forEach((t=>t())),this[Ut]=[]}unsubscribeFromStore(t){this[jt].has(t)&&this[jt].get(t)(),this[jt].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}Mt=jt,Rt=Ft,zt=Ut,window.ftReduxStores||(window.ftReduxStores={});var Tt,It,At;const Lt=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(At=null===(It=null===(Tt=window.safari)||void 0===Tt?void 0:Tt.pushNotification)||void 0===It?void 0:It.toString())&&void 0!==At?At:""),Pt=x`
97
+ `;function Nt(t){var i;return null!==(i=null==t?void 0:t.isFtReduxStore)&&void 0!==i&&i}var Mt,Rt,zt;const Ft=Symbol("internalReduxEventsUnsubscribers"),Ut=Symbol("internalStoresUnsubscribers"),jt=Symbol("internalStores");class Bt extends kt{constructor(){super(...arguments),this[Mt]=new Map,this[Rt]=new Map,this[zt]=[]}update(t){var i;super.update(t),(null===(i=this.reduxReactiveProperties)||void 0===i?void 0:i.some((i=>t.has(i))))&&this.updateFromStores()}getUnnamedStore(){if(this[jt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[jt].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[jt].get(t)}addStore(t,i){var e;i=null!==(e=null!=i?i:Nt(t)?t.name:void 0)&&void 0!==e?e:"default-store",this.unsubscribeFromStore(i),this.setupStore(i,t)}removeStore(t){const i="string"==typeof t?t:t.name;this.unsubscribeFromStore(i),this[jt].delete(i)}setupStore(t,i){this[jt].set(t,i),this.subscribeToStore(t,i),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[jt].forEach(((t,i)=>this.subscribeToStore(i,t))),this.updateFromStores()}updateFromStores(){this.reduxProperties&&this.reduxProperties.forEach(((t,i)=>{const e=this.constructor.getPropertyOptions(i);if(!(null==e?void 0:e.attribute)||!this.hasAttribute("string"==typeof(null==e?void 0:e.attribute)?e.attribute:i)){const e=this.getStore(t.store);e&&(t.store?this[Ut].has(t.store):this[Ut].size>0)&&(this[i]=t.selector(e.getState(),this))}}))}subscribeToStore(t,i){var e;this[Ut].set(t,i.subscribe((()=>this.updateFromStores()))),Nt(i)&&i.eventBus&&(null===(e=this.reduxEventListeners)||void 0===e||e.forEach(((t,e)=>{if("function"==typeof this[e]&&(!t.store||i.name===t.store)){const o=t=>this[e](t);i.eventBus.addEventListener(t.eventName,o),this[Ft].push((()=>i.eventBus.removeEventListener(t.eventName,o)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[Ut].forEach(((t,i)=>this.unsubscribeFromStore(i))),this[Ft].forEach((t=>t())),this[Ft]=[]}unsubscribeFromStore(t){this[Ut].has(t)&&this[Ut].get(t)(),this[Ut].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}Mt=Ut,Rt=jt,zt=Ft,window.ftReduxStores||(window.ftReduxStores={});const Tt=Symbol("elementInternals");var It,At,Lt;const Pt=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Lt=null===(At=null===(It=window.safari)||void 0===It?void 0:It.pushNotification)||void 0===At?void 0:At.toString())&&void 0!==Lt?Lt:""),Dt=x`
98
98
  :host {
99
99
  display: inline-block;
100
100
  }
101
- `;var Dt;!function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS"}(Dt||(Dt={}));var _t=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};class Wt extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const Kt=Symbol("registerInterval");class Ht extends(function(t){var i;class e extends t{constructor(){super(...arguments),this[i]=0}setReaderStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),this[Kt]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[Kt]):this.dispatchEvent(new Wt)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return i=Kt,_t([n()],e.prototype,"stateManager",void 0),e}(Bt)){}
101
+ `;var _t;!function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS"}(_t||(_t={}));var Wt=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};class Kt extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const Ht=Symbol("registerInterval");class Zt extends(function(t){var i;class e extends t{constructor(){super(...arguments),this[i]=0}setReaderStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),this[Ht]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[Ht]):this.dispatchEvent(new Kt)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return i=Ht,Wt([n()],e.prototype,"stateManager",void 0),e}(Bt)){}
102
102
  /**
103
103
  * @license
104
104
  * Copyright 2020 Google LLC
105
105
  * SPDX-License-Identifier: BSD-3-Clause
106
- */const Zt=Symbol.for(""),Vt=t=>{if((null==t?void 0:t.r)===Zt)return null==t?void 0:t._$litStatic$},Jt=t=>({_$litStatic$:t,r:Zt}),qt=new Map,Xt=(t=>(i,...e)=>{const o=e.length;let n,r;const s=[],a=[];let l,h=0,c=!1;for(;h<o;){for(l=i[h];h<o&&void 0!==(r=e[h],n=Vt(r));)l+=n+i[++h],c=!0;h!==o&&a.push(r),s.push(l),h++}if(h===o&&s.push(i[o]),c){const t=s.join("$$lit$$");void 0===(i=qt.get(t))&&(s.raw=s,qt.set(t,i=s)),e=a}return t(i,...e)})(q);var Gt;!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"}(Gt||(Gt={}));const Yt=bt.extend("--ft-typography-font-family",gt.titleFont),Qt=bt.extend("--ft-typography-font-family",gt.contentFont),ti={fontFamily:Qt,fontSize:bt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:bt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:bt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:bt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:bt.create("--ft-typography-text-transform","UNKNOWN","inherit")},ii=bt.extend("--ft-typography-title-font-family",Yt),ei=bt.extend("--ft-typography-title-font-size",ti.fontSize,"20px"),oi=bt.extend("--ft-typography-title-font-weight",ti.fontWeight,"normal"),ni=bt.extend("--ft-typography-title-letter-spacing",ti.letterSpacing,"0.15px"),ri=bt.extend("--ft-typography-title-line-height",ti.lineHeight,"1.2"),si=bt.extend("--ft-typography-title-text-transform",ti.textTransform,"inherit"),ai=bt.extend("--ft-typography-title-dense-font-family",Yt),li=bt.extend("--ft-typography-title-dense-font-size",ti.fontSize,"14px"),hi=bt.extend("--ft-typography-title-dense-font-weight",ti.fontWeight,"normal"),ci=bt.extend("--ft-typography-title-dense-letter-spacing",ti.letterSpacing,"0.105px"),pi=bt.extend("--ft-typography-title-dense-line-height",ti.lineHeight,"1.7"),fi=bt.extend("--ft-typography-title-dense-text-transform",ti.textTransform,"inherit"),di=bt.extend("--ft-typography-subtitle1-font-family",Qt),ui=bt.extend("--ft-typography-subtitle1-font-size",ti.fontSize,"16px"),vi=bt.extend("--ft-typography-subtitle1-font-weight",ti.fontWeight,"600"),bi=bt.extend("--ft-typography-subtitle1-letter-spacing",ti.letterSpacing,"0.144px"),xi=bt.extend("--ft-typography-subtitle1-line-height",ti.lineHeight,"1.5"),gi=bt.extend("--ft-typography-subtitle1-text-transform",ti.textTransform,"inherit"),yi=bt.extend("--ft-typography-subtitle2-font-family",Qt),mi=bt.extend("--ft-typography-subtitle2-font-size",ti.fontSize,"14px"),wi=bt.extend("--ft-typography-subtitle2-font-weight",ti.fontWeight,"normal"),$i=bt.extend("--ft-typography-subtitle2-letter-spacing",ti.letterSpacing,"0.098px"),Oi=bt.extend("--ft-typography-subtitle2-line-height",ti.lineHeight,"1.7"),Si=bt.extend("--ft-typography-subtitle2-text-transform",ti.textTransform,"inherit"),ki=bt.extend("--ft-typography-body1-font-family",Qt),Ci=bt.extend("--ft-typography-body1-font-size",ti.fontSize,"16px"),Ei=bt.extend("--ft-typography-body1-font-weight",ti.fontWeight,"normal"),Ni=bt.extend("--ft-typography-body1-letter-spacing",ti.letterSpacing,"0.496px"),Mi=bt.extend("--ft-typography-body1-line-height",ti.lineHeight,"1.5"),Ri=bt.extend("--ft-typography-body1-text-transform",ti.textTransform,"inherit"),zi={fontFamily:bt.extend("--ft-typography-body2-font-family",Qt),fontSize:bt.extend("--ft-typography-body2-font-size",ti.fontSize,"14px"),fontWeight:bt.extend("--ft-typography-body2-font-weight",ti.fontWeight,"normal"),letterSpacing:bt.extend("--ft-typography-body2-letter-spacing",ti.letterSpacing,"0.252px"),lineHeight:bt.extend("--ft-typography-body2-line-height",ti.lineHeight,"1.4"),textTransform:bt.extend("--ft-typography-body2-text-transform",ti.textTransform,"inherit")},Ui=bt.extend("--ft-typography-caption-font-family",Qt),ji=bt.extend("--ft-typography-caption-font-size",ti.fontSize,"12px"),Fi=bt.extend("--ft-typography-caption-font-weight",ti.fontWeight,"normal"),Bi=bt.extend("--ft-typography-caption-letter-spacing",ti.letterSpacing,"0.396px"),Ti=bt.extend("--ft-typography-caption-line-height",ti.lineHeight,"1.33"),Ii=bt.extend("--ft-typography-caption-text-transform",ti.textTransform,"inherit"),Ai=bt.extend("--ft-typography-breadcrumb-font-family",Qt),Li=bt.extend("--ft-typography-breadcrumb-font-size",ti.fontSize,"10px"),Pi=bt.extend("--ft-typography-breadcrumb-font-weight",ti.fontWeight,"normal"),Di=bt.extend("--ft-typography-breadcrumb-letter-spacing",ti.letterSpacing,"0.33px"),_i=bt.extend("--ft-typography-breadcrumb-line-height",ti.lineHeight,"1.6"),Wi=bt.extend("--ft-typography-breadcrumb-text-transform",ti.textTransform,"inherit"),Ki=bt.extend("--ft-typography-overline-font-family",Qt),Hi=bt.extend("--ft-typography-overline-font-size",ti.fontSize,"10px"),Zi=bt.extend("--ft-typography-overline-font-weight",ti.fontWeight,"normal"),Vi=bt.extend("--ft-typography-overline-letter-spacing",ti.letterSpacing,"1.5px"),Ji=bt.extend("--ft-typography-overline-line-height",ti.lineHeight,"1.6"),qi=bt.extend("--ft-typography-overline-text-transform",ti.textTransform,"uppercase"),Xi={fontFamily:bt.extend("--ft-typography-button-font-family",Qt),fontSize:bt.extend("--ft-typography-button-font-size",ti.fontSize,"14px"),fontWeight:bt.extend("--ft-typography-button-font-weight",ti.fontWeight,"600"),letterSpacing:bt.extend("--ft-typography-button-letter-spacing",ti.letterSpacing,"1.246px"),lineHeight:bt.extend("--ft-typography-button-line-height",ti.lineHeight,"1.15"),textTransform:bt.extend("--ft-typography-button-text-transform",ti.textTransform,"uppercase")},Gi=x`
106
+ */const Vt=Symbol.for(""),Jt=t=>{if((null==t?void 0:t.r)===Vt)return null==t?void 0:t._$litStatic$},qt=t=>({_$litStatic$:t,r:Vt}),Xt=new Map,Gt=(t=>(i,...e)=>{const o=e.length;let n,r;const s=[],a=[];let l,h=0,c=!1;for(;h<o;){for(l=i[h];h<o&&void 0!==(r=e[h],n=Jt(r));)l+=n+i[++h],c=!0;h!==o&&a.push(r),s.push(l),h++}if(h===o&&s.push(i[o]),c){const t=s.join("$$lit$$");void 0===(i=Xt.get(t))&&(s.raw=s,Xt.set(t,i=s)),e=a}return t(i,...e)})(q);var Yt;!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"}(Yt||(Yt={}));const Qt=bt.extend("--ft-typography-font-family",gt.titleFont),ti=bt.extend("--ft-typography-font-family",gt.contentFont),ii={fontFamily:ti,fontSize:bt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:bt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:bt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:bt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:bt.create("--ft-typography-text-transform","UNKNOWN","inherit")},ei=bt.extend("--ft-typography-title-font-family",Qt),oi=bt.extend("--ft-typography-title-font-size",ii.fontSize,"20px"),ni=bt.extend("--ft-typography-title-font-weight",ii.fontWeight,"normal"),ri=bt.extend("--ft-typography-title-letter-spacing",ii.letterSpacing,"0.15px"),si=bt.extend("--ft-typography-title-line-height",ii.lineHeight,"1.2"),ai=bt.extend("--ft-typography-title-text-transform",ii.textTransform,"inherit"),li=bt.extend("--ft-typography-title-dense-font-family",Qt),hi=bt.extend("--ft-typography-title-dense-font-size",ii.fontSize,"14px"),ci=bt.extend("--ft-typography-title-dense-font-weight",ii.fontWeight,"normal"),pi=bt.extend("--ft-typography-title-dense-letter-spacing",ii.letterSpacing,"0.105px"),fi=bt.extend("--ft-typography-title-dense-line-height",ii.lineHeight,"1.7"),di=bt.extend("--ft-typography-title-dense-text-transform",ii.textTransform,"inherit"),ui=bt.extend("--ft-typography-subtitle1-font-family",ti),vi=bt.extend("--ft-typography-subtitle1-font-size",ii.fontSize,"16px"),bi=bt.extend("--ft-typography-subtitle1-font-weight",ii.fontWeight,"600"),xi=bt.extend("--ft-typography-subtitle1-letter-spacing",ii.letterSpacing,"0.144px"),gi=bt.extend("--ft-typography-subtitle1-line-height",ii.lineHeight,"1.5"),yi=bt.extend("--ft-typography-subtitle1-text-transform",ii.textTransform,"inherit"),mi=bt.extend("--ft-typography-subtitle2-font-family",ti),wi=bt.extend("--ft-typography-subtitle2-font-size",ii.fontSize,"14px"),$i=bt.extend("--ft-typography-subtitle2-font-weight",ii.fontWeight,"normal"),Oi=bt.extend("--ft-typography-subtitle2-letter-spacing",ii.letterSpacing,"0.098px"),Si=bt.extend("--ft-typography-subtitle2-line-height",ii.lineHeight,"1.7"),ki=bt.extend("--ft-typography-subtitle2-text-transform",ii.textTransform,"inherit"),Ci=bt.extend("--ft-typography-body1-font-family",ti),Ei=bt.extend("--ft-typography-body1-font-size",ii.fontSize,"16px"),Ni=bt.extend("--ft-typography-body1-font-weight",ii.fontWeight,"normal"),Mi=bt.extend("--ft-typography-body1-letter-spacing",ii.letterSpacing,"0.496px"),Ri=bt.extend("--ft-typography-body1-line-height",ii.lineHeight,"1.5"),zi=bt.extend("--ft-typography-body1-text-transform",ii.textTransform,"inherit"),Fi={fontFamily:bt.extend("--ft-typography-body2-font-family",ti),fontSize:bt.extend("--ft-typography-body2-font-size",ii.fontSize,"14px"),fontWeight:bt.extend("--ft-typography-body2-font-weight",ii.fontWeight,"normal"),letterSpacing:bt.extend("--ft-typography-body2-letter-spacing",ii.letterSpacing,"0.252px"),lineHeight:bt.extend("--ft-typography-body2-line-height",ii.lineHeight,"1.4"),textTransform:bt.extend("--ft-typography-body2-text-transform",ii.textTransform,"inherit")},Ui=bt.extend("--ft-typography-caption-font-family",ti),ji=bt.extend("--ft-typography-caption-font-size",ii.fontSize,"12px"),Bi=bt.extend("--ft-typography-caption-font-weight",ii.fontWeight,"normal"),Ti=bt.extend("--ft-typography-caption-letter-spacing",ii.letterSpacing,"0.396px"),Ii=bt.extend("--ft-typography-caption-line-height",ii.lineHeight,"1.33"),Ai=bt.extend("--ft-typography-caption-text-transform",ii.textTransform,"inherit"),Li=bt.extend("--ft-typography-breadcrumb-font-family",ti),Pi=bt.extend("--ft-typography-breadcrumb-font-size",ii.fontSize,"10px"),Di=bt.extend("--ft-typography-breadcrumb-font-weight",ii.fontWeight,"normal"),_i=bt.extend("--ft-typography-breadcrumb-letter-spacing",ii.letterSpacing,"0.33px"),Wi=bt.extend("--ft-typography-breadcrumb-line-height",ii.lineHeight,"1.6"),Ki=bt.extend("--ft-typography-breadcrumb-text-transform",ii.textTransform,"inherit"),Hi=bt.extend("--ft-typography-overline-font-family",ti),Zi=bt.extend("--ft-typography-overline-font-size",ii.fontSize,"10px"),Vi=bt.extend("--ft-typography-overline-font-weight",ii.fontWeight,"normal"),Ji=bt.extend("--ft-typography-overline-letter-spacing",ii.letterSpacing,"1.5px"),qi=bt.extend("--ft-typography-overline-line-height",ii.lineHeight,"1.6"),Xi=bt.extend("--ft-typography-overline-text-transform",ii.textTransform,"uppercase"),Gi={fontFamily:bt.extend("--ft-typography-button-font-family",ti),fontSize:bt.extend("--ft-typography-button-font-size",ii.fontSize,"14px"),fontWeight:bt.extend("--ft-typography-button-font-weight",ii.fontWeight,"600"),letterSpacing:bt.extend("--ft-typography-button-letter-spacing",ii.letterSpacing,"1.246px"),lineHeight:bt.extend("--ft-typography-button-line-height",ii.lineHeight,"1.15"),textTransform:bt.extend("--ft-typography-button-text-transform",ii.textTransform,"uppercase")},Yi=x`
107
107
  .ft-typography--title {
108
- font-family: ${ii};
109
- font-size: ${ei};
110
- font-weight: ${oi};
111
- letter-spacing: ${ni};
112
- line-height: ${ri};
113
- text-transform: ${si};
114
- }
115
- `,Yi=x`
116
- .ft-typography--title-dense {
117
- font-family: ${ai};
118
- font-size: ${li};
119
- font-weight: ${hi};
120
- letter-spacing: ${ci};
121
- line-height: ${pi};
122
- text-transform: ${fi};
108
+ font-family: ${ei};
109
+ font-size: ${oi};
110
+ font-weight: ${ni};
111
+ letter-spacing: ${ri};
112
+ line-height: ${si};
113
+ text-transform: ${ai};
123
114
  }
124
115
  `,Qi=x`
125
- .ft-typography--subtitle1 {
126
- font-family: ${di};
127
- font-size: ${ui};
128
- font-weight: ${vi};
129
- letter-spacing: ${bi};
130
- line-height: ${xi};
131
- text-transform: ${gi};
116
+ .ft-typography--title-dense {
117
+ font-family: ${li};
118
+ font-size: ${hi};
119
+ font-weight: ${ci};
120
+ letter-spacing: ${pi};
121
+ line-height: ${fi};
122
+ text-transform: ${di};
132
123
  }
133
124
  `,te=x`
125
+ .ft-typography--subtitle1 {
126
+ font-family: ${ui};
127
+ font-size: ${vi};
128
+ font-weight: ${bi};
129
+ letter-spacing: ${xi};
130
+ line-height: ${gi};
131
+ text-transform: ${yi};
132
+ }
133
+ `,ie=x`
134
134
  .ft-typography--subtitle2 {
135
- font-family: ${yi};
136
- font-size: ${mi};
137
- font-weight: ${wi};
138
- letter-spacing: ${$i};
139
- line-height: ${Oi};
140
- text-transform: ${Si};
135
+ font-family: ${mi};
136
+ font-size: ${wi};
137
+ font-weight: ${$i};
138
+ letter-spacing: ${Oi};
139
+ line-height: ${Si};
140
+ text-transform: ${ki};
141
141
  }
142
142
 
143
- `,ie=x`
143
+ `,ee=x`
144
144
  .ft-typography--body1 {
145
- font-family: ${ki};
146
- font-size: ${Ci};
147
- font-weight: ${Ei};
148
- letter-spacing: ${Ni};
149
- line-height: ${Mi};
150
- text-transform: ${Ri};
145
+ font-family: ${Ci};
146
+ font-size: ${Ei};
147
+ font-weight: ${Ni};
148
+ letter-spacing: ${Mi};
149
+ line-height: ${Ri};
150
+ text-transform: ${zi};
151
151
  }
152
- `,ee=x`
152
+ `,oe=x`
153
153
  .ft-typography--body2 {
154
- font-family: ${zi.fontFamily};
155
- font-size: ${zi.fontSize};
156
- font-weight: ${zi.fontWeight};
157
- letter-spacing: ${zi.letterSpacing};
158
- line-height: ${zi.lineHeight};
159
- text-transform: ${zi.textTransform};
154
+ font-family: ${Fi.fontFamily};
155
+ font-size: ${Fi.fontSize};
156
+ font-weight: ${Fi.fontWeight};
157
+ letter-spacing: ${Fi.letterSpacing};
158
+ line-height: ${Fi.lineHeight};
159
+ text-transform: ${Fi.textTransform};
160
160
  }
161
- `,oe=x`
161
+ `,ne=x`
162
162
  .ft-typography--caption {
163
163
  font-family: ${Ui};
164
164
  font-size: ${ji};
165
- font-weight: ${Fi};
166
- letter-spacing: ${Bi};
167
- line-height: ${Ti};
168
- text-transform: ${Ii};
169
- }
170
- `,ne=x`
171
- .ft-typography--breadcrumb {
172
- font-family: ${Ai};
173
- font-size: ${Li};
174
- font-weight: ${Pi};
175
- letter-spacing: ${Di};
176
- line-height: ${_i};
177
- text-transform: ${Wi};
165
+ font-weight: ${Bi};
166
+ letter-spacing: ${Ti};
167
+ line-height: ${Ii};
168
+ text-transform: ${Ai};
178
169
  }
179
170
  `,re=x`
180
- .ft-typography--overline {
181
- font-family: ${Ki};
182
- font-size: ${Hi};
183
- font-weight: ${Zi};
184
- letter-spacing: ${Vi};
185
- line-height: ${Ji};
186
- text-transform: ${qi};
171
+ .ft-typography--breadcrumb {
172
+ font-family: ${Li};
173
+ font-size: ${Pi};
174
+ font-weight: ${Di};
175
+ letter-spacing: ${_i};
176
+ line-height: ${Wi};
177
+ text-transform: ${Ki};
187
178
  }
188
179
  `,se=x`
189
- .ft-typography--button {
190
- font-family: ${Xi.fontFamily};
191
- font-size: ${Xi.fontSize};
192
- font-weight: ${Xi.fontWeight};
193
- letter-spacing: ${Xi.letterSpacing};
194
- line-height: ${Xi.lineHeight};
195
- text-transform: ${Xi.textTransform};
180
+ .ft-typography--overline {
181
+ font-family: ${Hi};
182
+ font-size: ${Zi};
183
+ font-weight: ${Vi};
184
+ letter-spacing: ${Ji};
185
+ line-height: ${qi};
186
+ text-transform: ${Xi};
196
187
  }
197
188
  `,ae=x`
189
+ .ft-typography--button {
190
+ font-family: ${Gi.fontFamily};
191
+ font-size: ${Gi.fontSize};
192
+ font-weight: ${Gi.fontWeight};
193
+ letter-spacing: ${Gi.letterSpacing};
194
+ line-height: ${Gi.lineHeight};
195
+ text-transform: ${Gi.textTransform};
196
+ }
197
+ `,le=x`
198
198
  .ft-typography {
199
199
  vertical-align: inherit;
200
200
  }
201
- `;var le=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};class he extends kt{constructor(){super(...arguments),this.variant=Gt.body1}render(){return this.element?Xt`
202
- <${Jt(this.element)}
201
+ `;var he=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};class ce extends kt{constructor(){super(...arguments),this.variant=Yt.body1}render(){return this.element?Gt`
202
+ <${qt(this.element)}
203
203
  class="ft-typography ft-typography--${this.variant}">
204
204
  <slot></slot>
205
- </${Jt(this.element)}>
206
- `:Xt`
205
+ </${qt(this.element)}>
206
+ `:Gt`
207
207
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
208
- `}}he.styles=[Gi,Yi,Qi,te,ie,ee,oe,ne,re,se,ae],le([o()],he.prototype,"element",void 0),le([o()],he.prototype,"variant",void 0),c("ft-typography")(he);const ce=bt.create("--ft-tooltip-distance","SIZE","4px"),pe=bt.create("--ft-tooltip-color","COLOR","#FFFFFF"),fe=bt.create("--ft-tooltip-background-color","COLOR","#666666"),de=bt.create("--ft-tooltip-z-index","NUMBER","100"),ue=bt.external(gt.borderRadiusS,"Design system"),ve=bt.create("--ft-tooltip-max-width","SIZE","150px"),be=x`
208
+ `}}ce.styles=[Yi,Qi,te,ie,ee,oe,ne,re,se,ae,le],he([o()],ce.prototype,"element",void 0),he([o()],ce.prototype,"variant",void 0),c("ft-typography")(ce);const pe=bt.create("--ft-tooltip-distance","SIZE","4px"),fe=bt.create("--ft-tooltip-color","COLOR","#FFFFFF"),de=bt.create("--ft-tooltip-background-color","COLOR","#666666"),ue=bt.create("--ft-tooltip-z-index","NUMBER","100"),ve=bt.external(gt.borderRadiusS,"Design system"),be=bt.create("--ft-tooltip-max-width","SIZE","150px"),xe=x`
209
209
  .ft-tooltip--container {
210
210
  display: block;
211
211
  }
@@ -220,21 +220,21 @@ var ft,dt;let ut=class extends N{constructor(){super(...arguments),this.renderOp
220
220
  box-sizing: border-box;
221
221
  overflow: hidden;
222
222
  width: max-content;
223
- max-width: ${ve};
223
+ max-width: ${be};
224
224
  text-align: center;
225
- padding: ${ce};
226
- z-index: ${de};
225
+ padding: ${pe};
226
+ z-index: ${ue};
227
227
  }
228
228
 
229
229
  .ft-tooltip--content {
230
230
  padding: 4px 8px;
231
- border-radius: ${ue};
232
- background-color: ${fe};
233
- color: ${pe};
231
+ border-radius: ${ve};
232
+ background-color: ${de};
233
+ color: ${fe};
234
234
  position: relative;
235
235
  word-break: break-word;
236
236
  }
237
- `;var xe=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};class ge extends kt{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,this.revealDebouncer=new i}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return q`
237
+ `;var ge=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};class ye extends kt{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,this.revealDebouncer=new i}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return q`
238
238
  <div part="container"
239
239
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
240
240
  @mouseenter=${this.onHover}
@@ -252,24 +252,24 @@ var ft,dt;let ut=class extends N{constructor(){super(...arguments),this.renderOp
252
252
  </div>
253
253
  </div>
254
254
  </div>
255
- `}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){super.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=this.tooltip.offsetWidth,e=this.tooltip.offsetHeight,o=(t.offsetHeight-e)/2,n=(t.offsetWidth-i)/2;let r=0,s=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":s=t.offsetTop-e-this.tooltip.offsetTop,r=t.offsetLeft+n-this.tooltip.offsetLeft;break;case"bottom":s=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,r=t.offsetLeft+n-this.tooltip.offsetLeft;break;case"left":s=t.offsetTop+o-this.tooltip.offsetTop,r=t.offsetLeft-i-this.tooltip.offsetLeft;break;case"right":s=t.offsetTop+o-this.tooltip.offsetTop,r=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const a=this.tooltip.style;a.left=r+"px",a.top=s+"px";const l=this.tooltip.getBoundingClientRect();let h=-l.x,c=l.x+l.width-window.innerWidth;a.left=r+Math.round(this.correctOutOfWindowPixels(h,c))+"px";let p=-l.y,f=l.y+l.height-window.innerHeight;a.top=s+Math.round(this.correctOutOfWindowPixels(p,f))+"px",a.maxWidth=`max(${t.offsetWidth}px, ${ve})`}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())}correctOutOfWindowPixels(t,i){return Math.max(t,Math.min(0,-i))}}ge.elementDefinitions={"ft-typography":he},ge.styles=be,xe([o()],ge.prototype,"text",void 0),xe([o({type:Boolean})],ge.prototype,"manual",void 0),xe([o({type:Boolean})],ge.prototype,"inline",void 0),xe([o({type:Number})],ge.prototype,"delay",void 0),xe([o()],ge.prototype,"position",void 0),xe([
255
+ `}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.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=this.tooltip.offsetWidth,e=this.tooltip.offsetHeight,o=(t.offsetHeight-e)/2,n=(t.offsetWidth-i)/2;let r=0,s=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":s=t.offsetTop-e-this.tooltip.offsetTop,r=t.offsetLeft+n-this.tooltip.offsetLeft;break;case"bottom":s=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,r=t.offsetLeft+n-this.tooltip.offsetLeft;break;case"left":s=t.offsetTop+o-this.tooltip.offsetTop,r=t.offsetLeft-i-this.tooltip.offsetLeft;break;case"right":s=t.offsetTop+o-this.tooltip.offsetTop,r=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const a=this.tooltip.style;a.left=r+"px",a.top=s+"px";const l=this.tooltip.getBoundingClientRect();let h=-l.x,c=l.x+l.width-window.innerWidth;a.left=r+Math.round(this.correctOutOfWindowPixels(h,c))+"px";let p=-l.y,f=l.y+l.height-window.innerHeight;a.top=s+Math.round(this.correctOutOfWindowPixels(p,f))+"px",a.maxWidth=`max(${t.offsetWidth}px, ${be})`}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())}correctOutOfWindowPixels(t,i){return Math.max(t,Math.min(0,-i))}}ye.elementDefinitions={"ft-typography":ce},ye.styles=xe,ge([o()],ye.prototype,"text",void 0),ge([o({type:Boolean})],ye.prototype,"manual",void 0),ge([o({type:Boolean})],ye.prototype,"inline",void 0),ge([o({type:Number})],ye.prototype,"delay",void 0),ge([o()],ye.prototype,"position",void 0),ge([
256
256
  /**
257
257
  * @license
258
258
  * Copyright 2017 Google LLC
259
259
  * SPDX-License-Identifier: BSD-3-Clause
260
260
  */
261
- function(t,i,e){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:i},e?function(t){const{slot:i,selector:e}=null!=t?t:{};return r({descriptor:o=>({get(){var o;const n="slot"+(i?`[name=${i}]`:":not([name])"),r=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(n),s=null!=r?l(r,t):[];return e?s.filter((t=>t.matches(e))):s},enumerable:!0,configurable:!0})})}({slot:n,flatten:i,selector:e}):r({descriptor:t=>({get(){var t,i;const e="slot"+(n?`[name=${n}]`:":not([name])"),r=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(e);return null!==(i=null==r?void 0:r.assignedNodes(o))&&void 0!==i?i:[]},enumerable:!0,configurable:!0})})}("",!0)],ge.prototype,"slotNodes",void 0),xe([s(".ft-tooltip--container")],ge.prototype,"container",void 0),xe([s(".ft-tooltip")],ge.prototype,"tooltip",void 0),xe([s(".ft-tooltip--content")],ge.prototype,"tooltipContent",void 0),xe([n()],ge.prototype,"visible",void 0),c("ft-tooltip")(ge);
261
+ function(t,i,e){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:i},e?function(t){const{slot:i,selector:e}=null!=t?t:{};return r({descriptor:o=>({get(){var o;const n="slot"+(i?`[name=${i}]`:":not([name])"),r=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(n),s=null!=r?l(r,t):[];return e?s.filter((t=>t.matches(e))):s},enumerable:!0,configurable:!0})})}({slot:n,flatten:i,selector:e}):r({descriptor:t=>({get(){var t,i;const e="slot"+(n?`[name=${n}]`:":not([name])"),r=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(e);return null!==(i=null==r?void 0:r.assignedNodes(o))&&void 0!==i?i:[]},enumerable:!0,configurable:!0})})}("",!0)],ye.prototype,"slotNodes",void 0),ge([s(".ft-tooltip--container")],ye.prototype,"container",void 0),ge([s(".ft-tooltip")],ye.prototype,"tooltip",void 0),ge([s(".ft-tooltip--content")],ye.prototype,"tooltipContent",void 0),ge([n()],ye.prototype,"visible",void 0),c("ft-tooltip")(ye);
262
262
  /**
263
263
  * @license
264
264
  * Copyright 2017 Google LLC
265
265
  * SPDX-License-Identifier: BSD-3-Clause
266
266
  */
267
- const ye=1,me=2,we=t=>(...i)=>({_$litDirective$:t,values:i});class $e{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,i,e){this._$Ct=t,this._$AM=i,this._$Ci=e}_$AS(t,i){return this.update(t,i)}update(t,i){return this.render(...i)}}
267
+ const me=1,we=2,$e=t=>(...i)=>({_$litDirective$:t,values:i});class Oe{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,i,e){this._$Ct=t,this._$AM=i,this._$Ci=e}_$AS(t,i){return this.update(t,i)}update(t,i){return this.render(...i)}}
268
268
  /**
269
269
  * @license
270
270
  * Copyright 2018 Google LLC
271
271
  * SPDX-License-Identifier: BSD-3-Clause
272
- */const Oe=we(class extends $e{constructor(t){var i;if(super(t),t.type!==ye||"class"!==t.name||(null===(i=t.strings)||void 0===i?void 0:i.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((i=>t[i])).join(" ")+" "}update(t,[i]){var e,o;if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in i)i[t]&&!(null===(e=this.nt)||void 0===e?void 0:e.has(t))&&this.it.add(t);return this.render(i)}const n=t.element.classList;this.it.forEach((t=>{t in i||(n.remove(t),this.it.delete(t))}));for(const t in i){const e=!!i[t];e===this.it.has(t)||(null===(o=this.nt)||void 0===o?void 0:o.has(t))||(e?(n.add(t),this.it.add(t)):(n.remove(t),this.it.delete(t)))}return X}}),Se=bt.extend("--ft-ripple-color",gt.colorContent),ke={color:Se,backgroundColor:bt.extend("--ft-ripple-background-color",Se),opacityContentOnSurfacePressed:bt.external(gt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:bt.external(gt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:bt.external(gt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:bt.external(gt.opacityContentOnSurfaceSelected,"Design system"),borderRadius:bt.create("--ft-ripple-border-radius","SIZE","0px")},Ce=bt.extend("--ft-ripple-color",gt.colorPrimary),Ee=Ce,Ne=bt.extend("--ft-ripple-background-color",Ce),Me=bt.extend("--ft-ripple-color",gt.colorSecondary),Re=Me,ze=bt.extend("--ft-ripple-background-color",Me),Ue=x`
272
+ */const Se=$e(class extends Oe{constructor(t){var i;if(super(t),t.type!==me||"class"!==t.name||(null===(i=t.strings)||void 0===i?void 0:i.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((i=>t[i])).join(" ")+" "}update(t,[i]){var e,o;if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in i)i[t]&&!(null===(e=this.nt)||void 0===e?void 0:e.has(t))&&this.it.add(t);return this.render(i)}const n=t.element.classList;this.it.forEach((t=>{t in i||(n.remove(t),this.it.delete(t))}));for(const t in i){const e=!!i[t];e===this.it.has(t)||(null===(o=this.nt)||void 0===o?void 0:o.has(t))||(e?(n.add(t),this.it.add(t)):(n.remove(t),this.it.delete(t)))}return X}}),ke=bt.extend("--ft-ripple-color",gt.colorContent),Ce={color:ke,backgroundColor:bt.extend("--ft-ripple-background-color",ke),opacityContentOnSurfacePressed:bt.external(gt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:bt.external(gt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:bt.external(gt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:bt.external(gt.opacityContentOnSurfaceSelected,"Design system"),borderRadius:bt.create("--ft-ripple-border-radius","SIZE","0px")},Ee=bt.extend("--ft-ripple-color",gt.colorPrimary),Ne=Ee,Me=bt.extend("--ft-ripple-background-color",Ee),Re=bt.extend("--ft-ripple-color",gt.colorSecondary),ze=Re,Fe=bt.extend("--ft-ripple-background-color",Re),Ue=x`
273
273
  :host {
274
274
  display: contents;
275
275
  }
@@ -282,7 +282,7 @@ const ye=1,me=2,we=t=>(...i)=>({_$litDirective$:t,values:i});class $e{constructo
282
282
 
283
283
  .ft-ripple:not(.ft-ripple--unbounded) {
284
284
  overflow: hidden;
285
- border-radius: ${ke.borderRadius};
285
+ border-radius: ${Ce.borderRadius};
286
286
  }
287
287
 
288
288
  .ft-ripple .ft-ripple--background,
@@ -316,27 +316,27 @@ const ye=1,me=2,we=t=>(...i)=>({_$litDirective$:t,values:i});class $e{constructo
316
316
  }
317
317
 
318
318
  .ft-ripple .ft-ripple--background {
319
- background-color: ${ke.backgroundColor};
319
+ background-color: ${Ce.backgroundColor};
320
320
  }
321
321
 
322
322
  .ft-ripple .ft-ripple--effect {
323
- background-color: ${ke.color};
323
+ background-color: ${Ce.color};
324
324
  }
325
325
 
326
326
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
327
- background-color: ${ze};
327
+ background-color: ${Fe};
328
328
  }
329
329
 
330
330
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
331
- background-color: ${Re};
331
+ background-color: ${ze};
332
332
  }
333
333
 
334
334
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
335
- background-color: ${Ne};
335
+ background-color: ${Me};
336
336
  }
337
337
 
338
338
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
339
- background-color: ${Ee};
339
+ background-color: ${Ne};
340
340
  }
341
341
 
342
342
  .ft-ripple .ft-ripple--background {
@@ -366,39 +366,39 @@ const ye=1,me=2,we=t=>(...i)=>({_$litDirective$:t,values:i});class $e{constructo
366
366
  }
367
367
 
368
368
  .ft-ripple.ft-ripple--hovered .ft-ripple--background {
369
- opacity: ${ke.opacityContentOnSurfaceHover};
369
+ opacity: ${Ce.opacityContentOnSurfaceHover};
370
370
  }
371
371
 
372
372
  .ft-ripple.ft-ripple--selected .ft-ripple--background {
373
- opacity: ${ke.opacityContentOnSurfaceSelected};
373
+ opacity: ${Ce.opacityContentOnSurfaceSelected};
374
374
  }
375
375
 
376
376
  .ft-ripple.ft-ripple--focused .ft-ripple--background {
377
- opacity: ${ke.opacityContentOnSurfaceFocused};
377
+ opacity: ${Ce.opacityContentOnSurfaceFocused};
378
378
  }
379
379
 
380
380
  .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
381
- opacity: ${ke.opacityContentOnSurfacePressed};
381
+ opacity: ${Ce.opacityContentOnSurfacePressed};
382
382
  transform: translate(-50%, -50%) scale(1);
383
383
  }
384
- `;var je=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};class Fe extends kt{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new i(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(10),this.moveRipple=t=>{var i,e;let{x:o,y:n}=this.getCoordinates(t),r=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-r.x:r.width/2),this.originY=Math.round(null!=n?n-r.y:r.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.isFocusVisible(null==t?void 0:t.target)&&!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 q`
384
+ `;var je=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};class Be extends kt{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new i(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(10),this.moveRipple=t=>{var i,e;let{x:o,y:n}=this.getCoordinates(t),r=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-r.x:r.width/2),this.originY=Math.round(null!=n?n-r.y:r.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.isFocusVisible(null==t?void 0:t.target)&&!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 q`
385
385
  <style>
386
386
  .ft-ripple .ft-ripple--effect {
387
387
  left: ${this.originX}px;
388
388
  top: ${this.originY}px;
389
389
  }
390
390
  </style>
391
- <div class="${Oe(t)}">
391
+ <div class="${Se(t)}">
392
392
  <div class="ft-ripple--background"></div>
393
393
  <div class="ft-ripple--effect"></div>
394
394
  </div>
395
- `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var i,e;super.update(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"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,i;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(null!==(i=this.target)&&void 0!==i?i:e)}setupFor(t){if(this.setupDebouncer.cancel(),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}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}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.endRipple()}}Fe.elementDefinitions={},Fe.styles=Ue,je([o({type:Boolean})],Fe.prototype,"primary",void 0),je([o({type:Boolean})],Fe.prototype,"secondary",void 0),je([o({type:Boolean})],Fe.prototype,"unbounded",void 0),je([o({type:Boolean})],Fe.prototype,"activated",void 0),je([o({type:Boolean})],Fe.prototype,"selected",void 0),je([o({type:Boolean})],Fe.prototype,"disabled",void 0),je([n()],Fe.prototype,"hovered",void 0),je([n()],Fe.prototype,"focused",void 0),je([n()],Fe.prototype,"pressed",void 0),je([n()],Fe.prototype,"rippling",void 0),je([n()],Fe.prototype,"originX",void 0),je([n()],Fe.prototype,"originY",void 0),je([s(".ft-ripple")],Fe.prototype,"ripple",void 0),je([s(".ft-ripple--effect")],Fe.prototype,"rippleEffect",void 0),c("ft-ripple")(Fe);
395
+ `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var i,e;super.update(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"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,i;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(null!==(i=this.target)&&void 0!==i?i:e)}setupFor(t){if(this.setupDebouncer.cancel(),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}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}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.endRipple()}}Be.elementDefinitions={},Be.styles=Ue,je([o({type:Boolean})],Be.prototype,"primary",void 0),je([o({type:Boolean})],Be.prototype,"secondary",void 0),je([o({type:Boolean})],Be.prototype,"unbounded",void 0),je([o({type:Boolean})],Be.prototype,"activated",void 0),je([o({type:Boolean})],Be.prototype,"selected",void 0),je([o({type:Boolean})],Be.prototype,"disabled",void 0),je([n()],Be.prototype,"hovered",void 0),je([n()],Be.prototype,"focused",void 0),je([n()],Be.prototype,"pressed",void 0),je([n()],Be.prototype,"rippling",void 0),je([n()],Be.prototype,"originX",void 0),je([n()],Be.prototype,"originY",void 0),je([s(".ft-ripple")],Be.prototype,"ripple",void 0),je([s(".ft-ripple--effect")],Be.prototype,"rippleEffect",void 0),c("ft-ripple")(Be);
396
396
  /**
397
397
  * @license
398
398
  * Copyright 2017 Google LLC
399
399
  * SPDX-License-Identifier: BSD-3-Clause
400
400
  */
401
- class Be extends $e{constructor(t){if(super(t),this.et=G,t.type!==me)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===G||null==t)return this.ft=void 0,this.et=t;if(t===X)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.ft;this.et=t;const i=[t];return i.raw=i,this.ft={_$litType$:this.constructor.resultType,strings:i,values:[]}}}Be.directiveName="unsafeHTML",Be.resultType=1;const Te=we(Be);var Ie,Ae;!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.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",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.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",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.EYE_SLASH="&#xe970;",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;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.EXPAND_WIDE="&#xe972;",t.X_MARK="&#xe971;"}(Ie||(Ie={})),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;"}(Ae||(Ae={})),new Map([...["abw"].map((t=>[t,Ae.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,Ae.AUDIO])),...["avi"].map((t=>[t,Ae.AVI])),...["chm","xhs"].map((t=>[t,Ae.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,Ae.CODE])),...["csv"].map((t=>[t,Ae.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Ae.DITA])),...["epub"].map((t=>[t,Ae.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Ae.EXCEL])),...["flac"].map((t=>[t,Ae.FLAC])),...["gif"].map((t=>[t,Ae.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Ae.GZIP])),...["html","htm","xhtml"].map((t=>[t,Ae.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,Ae.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Ae.JPEG])),...["json"].map((t=>[t,Ae.JSON])),...["m4a","m4p"].map((t=>[t,Ae.M4A])),...["mov","qt"].map((t=>[t,Ae.MOV])),...["mp3"].map((t=>[t,Ae.MP3])),...["mp4","m4v"].map((t=>[t,Ae.MP4])),...["ogg","oga"].map((t=>[t,Ae.OGG])),...["pdf","ps"].map((t=>[t,Ae.PDF])),...["png"].map((t=>[t,Ae.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Ae.POWERPOINT])),...["rar"].map((t=>[t,Ae.RAR])),...["stp"].map((t=>[t,Ae.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Ae.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,Ae.VIDEO])),...["wav"].map((t=>[t,Ae.WAV])),...["wma"].map((t=>[t,Ae.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Ae.WORD])),...["xml","xsl","rdf"].map((t=>[t,Ae.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Ae.YAML])),...["zip"].map((t=>[t,Ae.ZIP]))]);const Le={size:bt.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:bt.extend("--ft-icon-fluid-topics-font-family",bt.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:bt.extend("--ft-icon-file-format-font-family",bt.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:bt.extend("--ft-icon-material-font-family",bt.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:bt.create("--ft-icon-vertical-align","UNKNOWN","unset")},Pe=x`
401
+ class Te extends Oe{constructor(t){if(super(t),this.et=G,t.type!==we)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===G||null==t)return this.ft=void 0,this.et=t;if(t===X)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.ft;this.et=t;const i=[t];return i.raw=i,this.ft={_$litType$:this.constructor.resultType,strings:i,values:[]}}}Te.directiveName="unsafeHTML",Te.resultType=1;const Ie=$e(Te);var Ae,Le;!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.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",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.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",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.EXTLINK_LIGHT="&#xe978;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.EYE_SLASH="&#xe970;",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;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.EXPAND_WIDE="&#xe972;",t.X_MARK="&#xe971;"}(Ae||(Ae={})),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;"}(Le||(Le={})),new Map([...["abw"].map((t=>[t,Le.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,Le.AUDIO])),...["avi"].map((t=>[t,Le.AVI])),...["chm","xhs"].map((t=>[t,Le.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,Le.CODE])),...["csv"].map((t=>[t,Le.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Le.DITA])),...["epub"].map((t=>[t,Le.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Le.EXCEL])),...["flac"].map((t=>[t,Le.FLAC])),...["gif"].map((t=>[t,Le.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Le.GZIP])),...["html","htm","xhtml"].map((t=>[t,Le.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,Le.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Le.JPEG])),...["json"].map((t=>[t,Le.JSON])),...["m4a","m4p"].map((t=>[t,Le.M4A])),...["mov","qt"].map((t=>[t,Le.MOV])),...["mp3"].map((t=>[t,Le.MP3])),...["mp4","m4v"].map((t=>[t,Le.MP4])),...["ogg","oga"].map((t=>[t,Le.OGG])),...["pdf","ps"].map((t=>[t,Le.PDF])),...["png"].map((t=>[t,Le.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Le.POWERPOINT])),...["rar"].map((t=>[t,Le.RAR])),...["stp"].map((t=>[t,Le.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Le.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,Le.VIDEO])),...["wav"].map((t=>[t,Le.WAV])),...["wma"].map((t=>[t,Le.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Le.WORD])),...["xml","xsl","rdf"].map((t=>[t,Le.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Le.YAML])),...["zip"].map((t=>[t,Le.ZIP]))]);const Pe={size:bt.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:bt.extend("--ft-icon-fluid-topics-font-family",bt.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:bt.extend("--ft-icon-file-format-font-family",bt.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:bt.extend("--ft-icon-material-font-family",bt.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:bt.create("--ft-icon-vertical-align","UNKNOWN","unset")},De=x`
402
402
  :host, i.ft-icon {
403
403
  display: inline-flex;
404
404
  align-items: center;
@@ -407,14 +407,14 @@ class Be extends $e{constructor(t){if(super(t),this.et=G,t.type!==me)throw Error
407
407
  }
408
408
 
409
409
  :host {
410
- width: ${Le.size};
411
- height: ${Le.size};
410
+ width: ${Pe.size};
411
+ height: ${Pe.size};
412
412
  }
413
413
 
414
414
  i.ft-icon {
415
415
  width: 100%;
416
416
  height: 100%;
417
- font-size: ${Le.size};
417
+ font-size: ${Pe.size};
418
418
  line-height: 1;
419
419
  font-weight: normal;
420
420
  text-transform: none;
@@ -425,33 +425,33 @@ class Be extends $e{constructor(t){if(super(t),this.et=G,t.type!==me)throw Error
425
425
  text-rendering: auto;
426
426
  -webkit-font-smoothing: antialiased;
427
427
  -moz-osx-font-smoothing: grayscale;
428
- vertical-align: ${Le.verticalAlign};
428
+ vertical-align: ${Pe.verticalAlign};
429
429
  }
430
430
 
431
431
  i.ft-icon.ft-icon--fluid-topics {
432
- font-family: ${Le.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
432
+ font-family: ${Pe.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
433
433
 
434
434
  /* Ugly fix because font is broken */
435
- font-size: calc(0.75 * ${Le.size});
436
- line-height: ${Le.size};
435
+ font-size: calc(0.75 * ${Pe.size});
436
+ line-height: ${Pe.size};
437
437
  position: relative;
438
438
  top: -4%;
439
439
  justify-content: center;
440
440
  }
441
441
 
442
442
  .ft-icon--file-format {
443
- font-family: ${Le.fileFormatFontFamily}, ft-mime, sans-serif;
443
+ font-family: ${Pe.fileFormatFontFamily}, ft-mime, sans-serif;
444
444
  }
445
445
 
446
446
  .ft-icon--material {
447
- font-family: ${Le.materialFontFamily}, "Material Icons", sans-serif;
447
+ font-family: ${Pe.materialFontFamily}, "Material Icons", sans-serif;
448
448
  }
449
- `;var De;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(De||(De={}));var _e=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};class We extends kt{constructor(){super(...arguments),this.resolvedIcon=G}render(){const t=this.variant&&Object.values(De).includes(this.variant)?this.variant:De.fluid_topics,i=t!==De.material||!!this.value;return q`
449
+ `;var _e;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(_e||(_e={}));var We=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};class Ke extends kt{constructor(){super(...arguments),this.resolvedIcon=G}render(){const t=this.variant&&Object.values(_e).includes(this.variant)?this.variant:_e.fluid_topics,i=t!==_e.material||!!this.value;return q`
450
450
  <i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
451
- ${Te(this.resolvedIcon)}
451
+ ${Ie(this.resolvedIcon)}
452
452
  <slot ?hidden=${i}></slot>
453
453
  </i>
454
- `}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 e=this.value||this.textContent;switch(this.variant){case De.file_format:this.resolvedIcon=null!==(t=Ae[e.replace("-","_").toUpperCase()])&&void 0!==t?t:e;break;case De.material:this.resolvedIcon=this.value||G;break;default:this.resolvedIcon=null!==(i=Ie[e.replace("-","_").toUpperCase()])&&void 0!==i?i:e}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}We.elementDefinitions={},We.styles=Pe,_e([o()],We.prototype,"variant",void 0),_e([o()],We.prototype,"value",void 0),_e([n()],We.prototype,"resolvedIcon",void 0),_e([s("slot")],We.prototype,"slottedContent",void 0),c("ft-icon")(We);const Ke={color:bt.extend("--ft-loader-color",gt.colorPrimary),size:bt.create("--ft-loader-size","SIZE","80px")},He=x`
454
+ `}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 e=this.value||this.textContent;switch(this.variant){case _e.file_format:this.resolvedIcon=null!==(t=Le[e.replace("-","_").toUpperCase()])&&void 0!==t?t:e;break;case _e.material:this.resolvedIcon=this.value||G;break;default:this.resolvedIcon=null!==(i=Ae[e.replace("-","_").toUpperCase()])&&void 0!==i?i:e}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Ke.elementDefinitions={},Ke.styles=De,We([o()],Ke.prototype,"variant",void 0),We([o()],Ke.prototype,"value",void 0),We([n()],Ke.prototype,"resolvedIcon",void 0),We([s("slot")],Ke.prototype,"slottedContent",void 0),c("ft-icon")(Ke);const He={color:bt.extend("--ft-loader-color",gt.colorPrimary),size:bt.create("--ft-loader-size","SIZE","80px")},Ze=x`
455
455
  :host {
456
456
  line-height: 0;
457
457
  }
@@ -460,8 +460,8 @@ class Be extends $e{constructor(t){if(super(t),this.et=G,t.type!==me)throw Error
460
460
  display: inline-block;
461
461
  position: relative;
462
462
 
463
- width: ${Ke.size};
464
- height: ${Ke.size};
463
+ width: ${He.size};
464
+ height: ${He.size};
465
465
  }
466
466
 
467
467
  .ft-loader div {
@@ -470,7 +470,7 @@ class Be extends $e{constructor(t){if(super(t),this.et=G,t.type!==me)throw Error
470
470
  width: 25%;
471
471
  height: 25%;
472
472
  border-radius: 50%;
473
- background: ${Ke.color};
473
+ background: ${He.color};
474
474
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
475
475
  }
476
476
 
@@ -517,17 +517,17 @@ class Be extends $e{constructor(t){if(super(t),this.et=G,t.type!==me)throw Error
517
517
  transform: translate(0, 0);
518
518
  }
519
519
  100% {
520
- transform: translate(calc(0.35 * ${Ke.size}), 0);
520
+ transform: translate(calc(0.35 * ${He.size}), 0);
521
521
  }
522
522
  }
523
- `;class Ze extends kt{render(){return q`
523
+ `;class Ve extends kt{render(){return q`
524
524
  <div class="ft-loader">
525
525
  <div></div>
526
526
  <div></div>
527
527
  <div></div>
528
528
  <div></div>
529
529
  </div>
530
- `}}Ze.styles=He,c("ft-loader")(Ze);const Ve=bt.extend("--ft-button-color",gt.colorPrimary),Je={backgroundColor:bt.extend("--ft-button-background-color",gt.colorSurface),borderRadius:bt.extend("--ft-button-border-radius",gt.borderRadiusL),color:Ve,fontSize:bt.extend("--ft-button-font-size",Xi.fontSize),iconSize:bt.create("--ft-button-icon-size","SIZE","24px"),rippleColor:bt.extend("--ft-button-ripple-color",Ve),verticalPadding:bt.create("--ft-button-vertical-padding","SIZE","6px"),horizontalPadding:bt.create("--ft-button-horizontal-padding","SIZE","8px"),iconPadding:bt.create("--ft-button-icon-padding","SIZE","8px"),opacityDisabled:bt.external(gt.colorOpacityDisabled,"Design system")},qe=bt.extend("--ft-button-primary-color",bt.extend("--ft-button-color",gt.colorOnPrimary)),Xe={backgroundColor:bt.extend("--ft-button-primary-background-color",bt.extend("--ft-button-background-color",gt.colorPrimary)),color:qe,rippleColor:bt.extend("--ft-button-primary-ripple-color",qe)},Ge=bt.extend("--ft-button-dense-border-radius",bt.extend("--ft-button-border-radius",gt.borderRadiusM)),Ye=bt.create("--ft-button-dense-vertical-padding","SIZE","2px"),Qe=bt.create("--ft-button-dense-horizontal-padding","SIZE","4px"),to=bt.create("--ft-button-dense-icon-padding","SIZE","4px"),io=[x`
530
+ `}}Ve.styles=Ze,c("ft-loader")(Ve);const Je=bt.extend("--ft-button-color",gt.colorPrimary),qe={backgroundColor:bt.extend("--ft-button-background-color",gt.colorSurface),borderRadius:bt.extend("--ft-button-border-radius",gt.borderRadiusL),color:Je,fontSize:bt.extend("--ft-button-font-size",Gi.fontSize),iconSize:bt.create("--ft-button-icon-size","SIZE","24px"),rippleColor:bt.extend("--ft-button-ripple-color",Je),verticalPadding:bt.create("--ft-button-vertical-padding","SIZE","6px"),horizontalPadding:bt.create("--ft-button-horizontal-padding","SIZE","8px"),iconPadding:bt.create("--ft-button-icon-padding","SIZE","8px"),opacityDisabled:bt.external(gt.colorOpacityDisabled,"Design system")},Xe=bt.extend("--ft-button-primary-color",bt.extend("--ft-button-color",gt.colorOnPrimary)),Ge={backgroundColor:bt.extend("--ft-button-primary-background-color",bt.extend("--ft-button-background-color",gt.colorPrimary)),color:Xe,rippleColor:bt.extend("--ft-button-primary-ripple-color",Xe)},Ye=bt.extend("--ft-button-dense-border-radius",bt.extend("--ft-button-border-radius",gt.borderRadiusM)),Qe=bt.create("--ft-button-dense-vertical-padding","SIZE","2px"),to=bt.create("--ft-button-dense-horizontal-padding","SIZE","4px"),io=bt.create("--ft-button-dense-icon-padding","SIZE","4px"),eo=[x`
531
531
  :host {
532
532
  display: inline-block;
533
533
  max-width: 100%;
@@ -538,7 +538,7 @@ class Be extends $e{constructor(t){if(super(t),this.et=G,t.type!==me)throw Error
538
538
  box-shadow: 0px 0px 0px transparent;
539
539
  border: 0px solid transparent;
540
540
  text-shadow: 0px 0px 0px transparent;
541
- font-size: ${Je.fontSize};
541
+ font-size: ${qe.fontSize};
542
542
  }
543
543
 
544
544
  button:hover {
@@ -567,31 +567,31 @@ class Be extends $e{constructor(t){if(super(t),this.et=G,t.type!==me)throw Error
567
567
  border: none;
568
568
  pointer-events: auto;
569
569
 
570
- --ft-button-internal-line-height: max(calc(${Je.fontSize} + 2px), ${Je.iconSize});
571
- --ft-button-internal-color: ${Je.color};
572
- ${xt(Le.size,Je.iconSize)};
573
- ${xt(ke.color,Je.rippleColor)};
570
+ --ft-button-internal-line-height: max(calc(${qe.fontSize} + 2px), ${qe.iconSize});
571
+ --ft-button-internal-color: ${qe.color};
572
+ ${xt(Pe.size,qe.iconSize)};
573
+ ${xt(Ce.color,qe.rippleColor)};
574
574
 
575
- border-radius: ${Je.borderRadius};
576
- padding: ${Je.verticalPadding} ${Je.horizontalPadding};
577
- background-color: ${Je.backgroundColor};
575
+ border-radius: ${qe.borderRadius};
576
+ padding: ${qe.verticalPadding} ${qe.horizontalPadding};
577
+ background-color: ${qe.backgroundColor};
578
578
  color: var(--ft-button-internal-color);
579
579
  -webkit-mask-image: radial-gradient(white, black);
580
580
  }
581
581
 
582
582
  .ft-button.ft-button--outlined {
583
583
  border: 1px solid var(--ft-button-internal-color);
584
- padding: calc(${Je.verticalPadding} - 1px) calc(${Je.horizontalPadding} - 1px);
584
+ padding: calc(${qe.verticalPadding} - 1px) calc(${qe.horizontalPadding} - 1px);
585
585
  }
586
586
 
587
587
  .ft-button.ft-button--dense {
588
- padding: ${Ye} ${Qe};
589
- border-radius: ${Ge};
590
- gap: ${to};
588
+ padding: ${Qe} ${to};
589
+ border-radius: ${Ye};
590
+ gap: ${io};
591
591
  }
592
592
 
593
593
  .ft-button.ft-button--dense.ft-button--outlined {
594
- padding: calc(${Ye} - 1px) calc(${Qe} - 1px);
594
+ padding: calc(${Qe} - 1px) calc(${to} - 1px);
595
595
  }
596
596
 
597
597
  .ft-button:not([disabled]):hover {
@@ -599,22 +599,22 @@ class Be extends $e{constructor(t){if(super(t),this.et=G,t.type!==me)throw Error
599
599
  }
600
600
 
601
601
  .ft-button--round {
602
- border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Je.verticalPadding});
602
+ border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${qe.verticalPadding});
603
603
  }
604
604
 
605
605
  .ft-button--round.ft-button--dense {
606
- border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Ye});
606
+ border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Qe});
607
607
  }
608
608
 
609
609
  .ft-button[disabled] {
610
610
  filter: grayscale(1);
611
- opacity: ${Je.opacityDisabled};
611
+ opacity: ${qe.opacityDisabled};
612
612
  }
613
613
 
614
614
  .ft-button.ft-button--primary {
615
- background-color: ${Xe.backgroundColor};
616
- --ft-button-internal-color: ${Xe.color};
617
- ${xt(ke.color,Xe.rippleColor)};
615
+ background-color: ${Ge.backgroundColor};
616
+ --ft-button-internal-color: ${Ge.color};
617
+ ${xt(Ce.color,Ge.rippleColor)};
618
618
  }
619
619
 
620
620
  .ft-button:focus {
@@ -627,13 +627,13 @@ class Be extends $e{constructor(t){if(super(t),this.et=G,t.type!==me)throw Error
627
627
  white-space: nowrap;
628
628
  text-overflow: ellipsis;
629
629
  display: block;
630
- margin: 0 ${Je.iconPadding};
631
- ${xt(Xi.fontSize,"1em")};
632
- ${xt(Xi.lineHeight,"var(--ft-button-internal-line-height)")};
630
+ margin: 0 ${qe.iconPadding};
631
+ ${xt(Gi.fontSize,"1em")};
632
+ ${xt(Gi.lineHeight,"var(--ft-button-internal-line-height)")};
633
633
  }
634
634
 
635
635
  .ft-button--dense .ft-button--label {
636
- margin: 0 ${to};
636
+ margin: 0 ${io};
637
637
  }
638
638
 
639
639
  .ft-button--label[hidden] {
@@ -646,13 +646,13 @@ class Be extends $e{constructor(t){if(super(t),this.et=G,t.type!==me)throw Error
646
646
  }
647
647
 
648
648
  .ft-button--label[hidden] + ft-icon {
649
- margin: 0 calc(${Je.horizontalPadding} * -1);
650
- padding: 0 ${Je.verticalPadding};
649
+ margin: 0 calc(${qe.horizontalPadding} * -1);
650
+ padding: 0 ${qe.verticalPadding};
651
651
  }
652
652
 
653
653
  .ft-button--dense .ft-button--label[hidden] + ft-icon {
654
- margin: 0 calc(${Qe} * -1);
655
- padding: 0 ${Ye};
654
+ margin: 0 calc(${to} * -1);
655
+ padding: 0 ${Qe};
656
656
  }
657
657
 
658
658
  .ft-button:not(.ft-button--trailing-icon) ft-icon,
@@ -661,33 +661,33 @@ class Be extends $e{constructor(t){if(super(t),this.et=G,t.type!==me)throw Error
661
661
  }
662
662
 
663
663
  ft-loader {
664
- ${xt(Ke.size,Je.iconSize)};
665
- ${xt(Ke.color,"var(--ft-button-internal-color)")};
664
+ ${xt(He.size,qe.iconSize)};
665
+ ${xt(He.color,"var(--ft-button-internal-color)")};
666
666
  }
667
- `,Ct];var eo=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};class oo extends kt{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.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(q`
667
+ `,Ct];var oo=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};class no extends(function(t,i){return class extends t{static get formAssociated(){return!0}get form(){return this[Tt].form}constructor(...t){super(t),this[Tt]=this.attachInternals(),this[Tt].role=i}setFormValue(t){this[Tt].setFormValue(t)}}}(kt,"button")){constructor(){super(...arguments),this.role="button",this.type="button",this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{var i;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):"submit"==this.type&&(null===(i=this.form)||void 0===i||i.requestSubmit())}}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(q`
668
668
  <button part="button"
669
- class="${Oe(t)}"
669
+ class="${Se(t)}"
670
670
  aria-label="${this.getLabel()}"
671
671
  ?disabled=${this.isDisabled()}>
672
672
  <ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
673
673
  <ft-typography part="label"
674
674
  variant="button"
675
675
  element="span"
676
- class="ft-button--label ${Lt?"ft-safari-ellipsis-fix":""}"
676
+ class="ft-button--label ${Pt?"ft-safari-ellipsis-fix":""}"
677
677
  ?hidden=${!this.hasTextContent()}>
678
678
  <slot @slotchange=${this.onSlotchange}></slot>
679
679
  </ft-typography>
680
680
  ${this.resolveIcon()}
681
681
  </button>
682
682
  `)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?q`
683
- <ft-tooltip part="tooltip"
684
- text="${this.getLabel()}"
685
- position="${this.tooltipPosition}">
686
- ${t}
687
- </ft-tooltip>
683
+ <ft-tooltip part="tooltip"
684
+ text="${this.getLabel()}"
685
+ position="${this.tooltipPosition}">
686
+ ${t}
687
+ </ft-tooltip>
688
688
  `:t}resolveIcon(){return this.loading?q`
689
689
  <ft-loader part="loader icon"></ft-loader> `:this.icon?q`
690
- <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:G}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}}oo.elementDefinitions={"ft-ripple":Fe,"ft-tooltip":ge,"ft-typography":he,"ft-icon":We,"ft-loader":Ze},oo.styles=[Et,io],eo([o({type:String,reflect:!0})],oo.prototype,"role",void 0),eo([o({type:Boolean})],oo.prototype,"primary",void 0),eo([o({type:Boolean})],oo.prototype,"outlined",void 0),eo([o({type:Boolean})],oo.prototype,"disabled",void 0),eo([o({type:Boolean})],oo.prototype,"dense",void 0),eo([o({type:Boolean})],oo.prototype,"round",void 0),eo([o()],oo.prototype,"label",void 0),eo([o()],oo.prototype,"icon",void 0),eo([o()],oo.prototype,"iconVariant",void 0),eo([o({type:Boolean})],oo.prototype,"trailingIcon",void 0),eo([o({type:Boolean})],oo.prototype,"loading",void 0),eo([o()],oo.prototype,"tooltipPosition",void 0),eo([o({type:Boolean})],oo.prototype,"hideTooltip",void 0),eo([o({type:Boolean})],oo.prototype,"forceTooltip",void 0),eo([s(".ft-button")],oo.prototype,"button",void 0),eo([s(".ft-button--label slot")],oo.prototype,"slottedContent",void 0),c("ft-button")(oo);const no=bt.extend("--ft-chip-color",gt.colorOnSurface),ro={backgroundColor:bt.extend("--ft-chip-background-color",gt.colorSurface),color:no,fontSize:bt.extend("--ft-chip-font-size",zi.fontSize),iconSize:bt.create("--ft-chip-icon-size","SIZE","18px"),rippleColor:bt.extend("--ft-chip-ripple-color",no),horizontalPadding:bt.create("--ft-chip-horizontal-padding","SIZE","6px"),verticalPadding:bt.create("--ft-chip-vertical-padding","SIZE","6px"),colorOutline:bt.external(gt.colorOutline,"Design system"),opacityDisabled:bt.external(gt.colorOpacityDisabled,"Design system")},so=bt.extend("--ft-chip-highlighted-color",bt.extend("--ft-chip-color",gt.colorOnPrimary)),ao={backgroundColor:bt.extend("--ft-chip-highlighted-background-color",bt.extend("--ft-chip-background-color",gt.colorPrimary)),color:so,rippleColor:bt.extend("--ft-chip-highlighted-ripple-color",so)},lo=bt.create("--ft-chip-dense-horizontal-padding","SIZE","4px"),ho=bt.create("--ft-chip-dense-vertical-padding","SIZE","4px"),co=[Ct,x`
690
+ <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:G}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}}no.elementDefinitions={"ft-ripple":Be,"ft-tooltip":ye,"ft-typography":ce,"ft-icon":Ke,"ft-loader":Ve},no.styles=[Et,eo],oo([o({type:String,reflect:!0})],no.prototype,"role",void 0),oo([o()],no.prototype,"type",void 0),oo([o({type:Boolean})],no.prototype,"primary",void 0),oo([o({type:Boolean})],no.prototype,"outlined",void 0),oo([o({type:Boolean})],no.prototype,"disabled",void 0),oo([o({type:Boolean})],no.prototype,"dense",void 0),oo([o({type:Boolean})],no.prototype,"round",void 0),oo([o()],no.prototype,"label",void 0),oo([o()],no.prototype,"icon",void 0),oo([o()],no.prototype,"iconVariant",void 0),oo([o({type:Boolean})],no.prototype,"trailingIcon",void 0),oo([o({type:Boolean})],no.prototype,"loading",void 0),oo([o()],no.prototype,"tooltipPosition",void 0),oo([o({type:Boolean})],no.prototype,"hideTooltip",void 0),oo([o({type:Boolean})],no.prototype,"forceTooltip",void 0),oo([s(".ft-button")],no.prototype,"button",void 0),oo([s(".ft-button--label slot")],no.prototype,"slottedContent",void 0),c("ft-button")(no);const ro=bt.extend("--ft-chip-color",gt.colorOnSurface),so={backgroundColor:bt.extend("--ft-chip-background-color",gt.colorSurface),color:ro,fontSize:bt.extend("--ft-chip-font-size",Fi.fontSize),iconSize:bt.create("--ft-chip-icon-size","SIZE","18px"),rippleColor:bt.extend("--ft-chip-ripple-color",ro),horizontalPadding:bt.create("--ft-chip-horizontal-padding","SIZE","6px"),verticalPadding:bt.create("--ft-chip-vertical-padding","SIZE","6px"),colorOutline:bt.external(gt.colorOutline,"Design system"),opacityDisabled:bt.external(gt.colorOpacityDisabled,"Design system")},ao=bt.extend("--ft-chip-highlighted-color",bt.extend("--ft-chip-color",gt.colorOnPrimary)),lo={backgroundColor:bt.extend("--ft-chip-highlighted-background-color",bt.extend("--ft-chip-background-color",gt.colorPrimary)),color:ao,rippleColor:bt.extend("--ft-chip-highlighted-ripple-color",ao)},ho=bt.create("--ft-chip-dense-horizontal-padding","SIZE","4px"),co=bt.create("--ft-chip-dense-vertical-padding","SIZE","4px"),po=[Ct,x`
691
691
  :host {
692
692
  display: inline-block;
693
693
  max-width: 100%;
@@ -703,20 +703,20 @@ class Be extends $e{constructor(t){if(super(t),this.et=G,t.type!==me)throw Error
703
703
  box-sizing: border-box;
704
704
  pointer-events: auto;
705
705
 
706
- --ft-chip-internal-font-size: ${ro.fontSize};
706
+ --ft-chip-internal-font-size: ${so.fontSize};
707
707
  --ft-chip-internal-line-height: max(20px, calc(var(--ft-chip-internal-font-size) + 2px));
708
- ${xt(Le.size,ro.iconSize)};
709
- --ft-chip-internal-vertical-padding: ${ro.verticalPadding};
710
- --ft-chip-internal-horizontal-padding: ${ro.horizontalPadding};
708
+ ${xt(Pe.size,so.iconSize)};
709
+ --ft-chip-internal-vertical-padding: ${so.verticalPadding};
710
+ --ft-chip-internal-horizontal-padding: ${so.horizontalPadding};
711
711
  --ft-chip-internal-icon-padding: 3px;
712
- --ft-chip-internal-content-height: max(var(--ft-chip-internal-line-height), ${ro.iconSize});
712
+ --ft-chip-internal-content-height: max(var(--ft-chip-internal-line-height), ${so.iconSize});
713
713
 
714
- border: 1px solid ${ro.colorOutline};
715
- color: ${ro.color};
716
- ${xt(ke.color,ro.rippleColor)};
714
+ border: 1px solid ${so.colorOutline};
715
+ color: ${so.color};
716
+ ${xt(Ce.color,so.rippleColor)};
717
717
  border-radius: calc(var(--ft-chip-internal-content-height) / 2 + var(--ft-chip-internal-vertical-padding));
718
718
  padding: calc(var(--ft-chip-internal-vertical-padding) - 1px) calc(var(--ft-chip-internal-horizontal-padding) - 1px);
719
- background-color: ${ro.backgroundColor};
719
+ background-color: ${so.backgroundColor};
720
720
  line-height: var(--ft-chip-internal-content-height);
721
721
  }
722
722
 
@@ -726,8 +726,8 @@ class Be extends $e{constructor(t){if(super(t),this.et=G,t.type!==me)throw Error
726
726
 
727
727
  .ft-chip--dense {
728
728
  --ft-chip-internal-icon-padding: 3px;
729
- --ft-chip-internal-vertical-padding: ${ho};
730
- --ft-chip-internal-horizontal-padding: ${lo};
729
+ --ft-chip-internal-vertical-padding: ${co};
730
+ --ft-chip-internal-horizontal-padding: ${ho};
731
731
  --ft-chip-internal-line-height: max(16px, calc(var(--ft-chip-internal-font-size) + 2px));
732
732
  }
733
733
 
@@ -739,15 +739,15 @@ class Be extends $e{constructor(t){if(super(t),this.et=G,t.type!==me)throw Error
739
739
  cursor: default;
740
740
  pointer-events: none;
741
741
  filter: grayscale(1);
742
- opacity: ${ro.opacityDisabled};
742
+ opacity: ${so.opacityDisabled};
743
743
  }
744
744
 
745
745
  .ft-chip--highlighted {
746
746
  border: none;
747
747
  padding: var(--ft-chip-internal-vertical-padding) var(--ft-chip-internal-horizontal-padding);
748
- background-color: ${ao.backgroundColor};
749
- ${xt(ke.color,ao.rippleColor)};
750
- color: ${ao.color};
748
+ background-color: ${lo.backgroundColor};
749
+ ${xt(Ce.color,lo.rippleColor)};
750
+ color: ${lo.color};
751
751
  }
752
752
 
753
753
  .ft-chip--clickable {
@@ -777,9 +777,9 @@ class Be extends $e{constructor(t){if(super(t),this.et=G,t.type!==me)throw Error
777
777
  }
778
778
 
779
779
  .ft-chip--icon-button {
780
- ${xt(Je.iconSize,ro.iconSize)};
781
- ${xt(Je.horizontalPadding,"var(--ft-chip-internal-icon-padding)")};
782
- ${xt(Je.verticalPadding,"var(--ft-chip-internal-icon-padding)")};
780
+ ${xt(qe.iconSize,so.iconSize)};
781
+ ${xt(qe.horizontalPadding,"var(--ft-chip-internal-icon-padding)")};
782
+ ${xt(qe.verticalPadding,"var(--ft-chip-internal-icon-padding)")};
783
783
  margin: calc((-1) * var(--ft-chip-internal-icon-padding));
784
784
  }
785
785
 
@@ -787,8 +787,8 @@ class Be extends $e{constructor(t){if(super(t),this.et=G,t.type!==me)throw Error
787
787
  vertical-align: bottom;
788
788
  display: block;
789
789
  margin: 0 var(--ft-chip-internal-horizontal-padding);
790
- ${xt(zi.fontSize,"var(--ft-chip-internal-font-size)")};
791
- ${xt(zi.lineHeight,"var(--ft-chip-internal-content-height)")};
790
+ ${xt(Fi.fontSize,"var(--ft-chip-internal-font-size)")};
791
+ ${xt(Fi.lineHeight,"var(--ft-chip-internal-content-height)")};
792
792
  }
793
793
 
794
794
  .ft-chip--safari-fix .ft-chip--label {
@@ -824,8 +824,8 @@ class Be extends $e{constructor(t){if(super(t),this.et=G,t.type!==me)throw Error
824
824
  .ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-button {
825
825
  order: -1;
826
826
  }
827
- `];var po=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};class fo extends CustomEvent{constructor(){super("icon-click")}}class uo extends kt{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.iconLabel="",this.icon=void 0,this.trailingIcon=!1}render(){const t={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":Lt};return q`
828
- <div class="${Oe(t)}"
827
+ `];var fo=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};class uo extends CustomEvent{constructor(){super("icon-click")}}class vo extends kt{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.iconLabel="",this.icon=void 0,this.trailingIcon=!1}render(){const t={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":Pt};return q`
828
+ <div class="${Se(t)}"
829
829
  aria-label="${this.getLabel()}"
830
830
  tabindex="${this.interactionsOnChip?0:-1}"
831
831
  @keyup=${this.onKeyUp}>
@@ -847,7 +847,7 @@ class Be extends $e{constructor(t){if(super(t),this.et=G,t.type!==me)throw Error
847
847
  <div class="ft-chip--icon-container ft-no-text-select">
848
848
  <ft-icon .variant=${this.iconVariant} .value="${this.internalIcon}"></ft-icon>
849
849
  </div>
850
- `}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new fo))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new fo))}getLabel(){return this.label||this.textContent}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:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}}uo.elementDefinitions={"ft-ripple":Fe,"ft-typography":he,"ft-icon":We,"ft-button":oo},uo.styles=co,po([o({type:Boolean})],uo.prototype,"highlighted",void 0),po([o({type:Boolean})],uo.prototype,"removable",void 0),po([o({type:Boolean})],uo.prototype,"disabled",void 0),po([o({type:Boolean})],uo.prototype,"clickable",void 0),po([o({type:Boolean})],uo.prototype,"iconClickable",void 0),po([o({type:Boolean})],uo.prototype,"dense",void 0),po([o({type:Boolean})],uo.prototype,"multiLine",void 0),po([o()],uo.prototype,"label",void 0),po([o()],uo.prototype,"iconLabel",void 0),po([o()],uo.prototype,"icon",void 0),po([o()],uo.prototype,"iconVariant",void 0),po([o({type:Boolean})],uo.prototype,"trailingIcon",void 0),po([s("ft-typography slot")],uo.prototype,"slottedContent",void 0),c("ft-chip")(uo);var vo=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};class bo extends Ht{constructor(){super(...arguments),this.editorMode=!1}render(){return q`
850
+ `}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new uo))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new uo))}getLabel(){return this.label||this.textContent}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:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}}vo.elementDefinitions={"ft-ripple":Be,"ft-typography":ce,"ft-icon":Ke,"ft-button":no},vo.styles=po,fo([o({type:Boolean})],vo.prototype,"highlighted",void 0),fo([o({type:Boolean})],vo.prototype,"removable",void 0),fo([o({type:Boolean})],vo.prototype,"disabled",void 0),fo([o({type:Boolean})],vo.prototype,"clickable",void 0),fo([o({type:Boolean})],vo.prototype,"iconClickable",void 0),fo([o({type:Boolean})],vo.prototype,"dense",void 0),fo([o({type:Boolean})],vo.prototype,"multiLine",void 0),fo([o()],vo.prototype,"label",void 0),fo([o()],vo.prototype,"iconLabel",void 0),fo([o()],vo.prototype,"icon",void 0),fo([o()],vo.prototype,"iconVariant",void 0),fo([o({type:Boolean})],vo.prototype,"trailingIcon",void 0),fo([s("ft-typography slot")],vo.prototype,"slottedContent",void 0),c("ft-chip")(vo);var bo=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};class xo extends Zt{constructor(){super(...arguments),this.editorMode=!1}render(){return q`
851
851
  <ft-tooltip text="${this.tooltipText}">
852
852
  <ft-chip>
853
853
  ${this.renderContent()}
@@ -860,4 +860,4 @@ class Be extends $e{constructor(t){if(super(t),this.et=G,t.type!==me)throw Error
860
860
  display: none !important;
861
861
  }
862
862
  </style>
863
- `}get valueText(){var t,i;return null!==(i=null===(t=this.metadata)||void 0===t?void 0:t.values.join(", "))&&void 0!==i?i:""}get tooltipText(){var t,i;return this.metadata?`${null!==(i=null===(t=this.metadata)||void 0===t?void 0:t.label)&&void 0!==i?i:this.metadata.key}: ${this.valueText}`:""}}bo.elementDefinitions={"ft-tooltip":ge,"ft-chip":uo},bo.styles=Pt,vo([o(),(t,i)=>{const e=t;e.reduxReactiveProperties=e.reduxReactiveProperties||[],e.reduxReactiveProperties.push(i)}],bo.prototype,"key",void 0),vo([o({attribute:!1})],bo.prototype,"editorMode",void 0),vo([(t=>{const i=null!=t?t:{};return(t,e)=>{var n;const r={hasChanged:(t,i)=>!h(t,i),attribute:!1,...i};o(r)(t,e);const s=t;s.reduxProperties=s.reduxProperties||new Map,s.reduxProperties.set(e,{selector:null!==(n=i.selector)&&void 0!==n?n:t=>t[e],store:i.store})}})({selector:(t,i)=>{var e,o;return null===(o=null===(e=t.map)||void 0===e?void 0:e.metadata)||void 0===o?void 0:o.find((t=>t.key===i.key))}})],bo.prototype,"metadata",void 0),c("ft-reader-metadata")(bo),t.FtReaderMetadata=bo,t.FtReaderMetadataCssVariables={},t.styles=Pt}({});
863
+ `}get valueText(){var t,i;return null!==(i=null===(t=this.metadata)||void 0===t?void 0:t.values.join(", "))&&void 0!==i?i:""}get tooltipText(){var t,i;return this.metadata?`${null!==(i=null===(t=this.metadata)||void 0===t?void 0:t.label)&&void 0!==i?i:this.metadata.key}: ${this.valueText}`:""}}xo.elementDefinitions={"ft-tooltip":ye,"ft-chip":vo},xo.styles=Dt,bo([o(),(t,i)=>{const e=t;e.reduxReactiveProperties=e.reduxReactiveProperties||[],e.reduxReactiveProperties.push(i)}],xo.prototype,"key",void 0),bo([o({attribute:!1})],xo.prototype,"editorMode",void 0),bo([(t=>{const i=null!=t?t:{};return(t,e)=>{var n;const r={hasChanged:(t,i)=>!h(t,i),attribute:!1,...i};o(r)(t,e);const s=t;s.reduxProperties=s.reduxProperties||new Map,s.reduxProperties.set(e,{selector:null!==(n=i.selector)&&void 0!==n?n:t=>t[e],store:i.store})}})({selector:(t,i)=>{var e,o;return null===(o=null===(e=t.map)||void 0===e?void 0:e.metadata)||void 0===o?void 0:o.find((t=>t.key===i.key))}})],xo.prototype,"metadata",void 0),c("ft-reader-metadata")(xo),t.FtReaderMetadata=xo,t.FtReaderMetadataCssVariables={},t.styles=Dt}({});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-reader-metadata",
3
- "version": "1.0.58",
3
+ "version": "1.0.59",
4
4
  "description": "Metadata for integrated reader",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,11 +19,11 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-chip": "1.0.58",
23
- "@fluid-topics/ft-reader-context": "1.0.58",
24
- "@fluid-topics/ft-tooltip": "1.0.58",
25
- "@fluid-topics/ft-wc-utils": "1.0.58",
22
+ "@fluid-topics/ft-chip": "1.0.59",
23
+ "@fluid-topics/ft-reader-context": "1.0.59",
24
+ "@fluid-topics/ft-tooltip": "1.0.59",
25
+ "@fluid-topics/ft-wc-utils": "1.0.59",
26
26
  "lit": "2.7.2"
27
27
  },
28
- "gitHead": "110d1b1f9cb2239c15279f2e89047b028e15ca61"
28
+ "gitHead": "9412dc7c29ebc722b1b133bba63b1744f4bfdf60"
29
29
  }