@fluid-topics/ft-in-product-help 1.1.9 → 1.1.10

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.
@@ -572,7 +572,7 @@ const Mo=Symbol.for(""),To=t=>{if(t?.r===Mo)return t?._$litStatic$},jo=t=>({_$li
572
572
  }
573
573
 
574
574
  .ft-tooltip {
575
- position: absolute;
575
+ position: fixed;
576
576
  box-sizing: border-box;
577
577
  overflow: hidden;
578
578
  width: max-content;
@@ -590,7 +590,7 @@ const Mo=Symbol.for(""),To=t=>{if(t?.r===Mo)return t?._$litStatic$},jo=t=>({_$li
590
590
  position: relative;
591
591
  word-break: break-word;
592
592
  }
593
- `,ne=["start","end"],ae=["top","right","bottom","left"].reduce(((t,o)=>t.concat(o,o+"-"+ne[0],o+"-"+ne[1])),[]),le=Math.min,ce=Math.max,se=Math.round,pe=t=>({x:t,y:t}),fe={left:"right",right:"left",bottom:"top",top:"bottom"},de={start:"end",end:"start"};function he(t,o,e){return ce(t,le(o,e))}function ye(t,o){return"function"==typeof t?t(o):t}function ge(t){return t.split("-")[0]}function ue(t){return t.split("-")[1]}function be(t){return"x"===t?"y":"x"}function me(t){return"y"===t?"height":"width"}function xe(t){return["top","bottom"].includes(ge(t))?"y":"x"}function Oe(t){return be(xe(t))}function ve(t){return t.replace(/left|right|bottom|top/g,(t=>fe[t]))}function Ne(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Se(t,o,e){let{reference:r,floating:i}=t;const n=xe(o),a=Oe(o),l=me(a),c=ge(o),s="y"===n,p=r.x+r.width/2-i.width/2,f=r.y+r.height/2-i.height/2,d=r[l]/2-i[l]/2;let h;switch(c){case"top":h={x:p,y:r.y-i.height};break;case"bottom":h={x:p,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:f};break;case"left":h={x:r.x-i.width,y:f};break;default:h={x:r.x,y:r.y}}switch(ue(o)){case"start":h[a]-=d*(e&&s?-1:1);break;case"end":h[a]+=d*(e&&s?-1:1)}return h}async function we(t,o){var e;void 0===o&&(o={});const{x:r,y:i,platform:n,rects:a,elements:l,strategy:c}=t,{boundary:s="clippingAncestors",rootBoundary:p="viewport",elementContext:f="floating",altBoundary:d=!1,padding:h=0}=ye(o,t),y=function(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}(h),g=l[d?"floating"===f?"reference":"floating":f],u=Ne(await n.getClippingRect({element:null==(e=await(null==n.isElement?void 0:n.isElement(g)))||e?g:g.contextElement||await(null==n.getDocumentElement?void 0:n.getDocumentElement(l.floating)),boundary:s,rootBoundary:p,strategy:c})),b="floating"===f?{...a.floating,x:r,y:i}:a.reference,m=await(null==n.getOffsetParent?void 0:n.getOffsetParent(l.floating)),x=await(null==n.isElement?void 0:n.isElement(m))&&await(null==n.getScale?void 0:n.getScale(m))||{x:1,y:1},O=Ne(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b,offsetParent:m,strategy:c}):b);return{top:(u.top-O.top+y.top)/x.y,bottom:(O.bottom-u.bottom+y.bottom)/x.y,left:(u.left-O.left+y.left)/x.x,right:(O.right-u.right+y.right)/x.x}}function $e(t,o,e){return(t?[...e.filter((o=>ue(o)===t)),...e.filter((o=>ue(o)!==t))]:e.filter((t=>ge(t)===t))).filter((e=>!t||(ue(e)===t||!!o&&function(t){return t.replace(/start|end/g,(t=>de[t]))}(e)!==e)))}const Ce=function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(o){var e,r,i;const{rects:n,middlewareData:a,placement:l,platform:c,elements:s}=o,{crossAxis:p=!1,alignment:f,allowedPlacements:d=ae,autoAlignment:h=!0,...y}=ye(t,o),g=void 0!==f||d===ae?$e(f||null,h,d):d,u=await we(o,y),b=(null==(e=a.autoPlacement)?void 0:e.index)||0,m=g[b];if(null==m)return{};const x=function(t,o,e){void 0===e&&(e=!1);const r=ue(t),i=Oe(t),n=me(i);let a="x"===i?r===(e?"end":"start")?"right":"left":"start"===r?"bottom":"top";return o.reference[n]>o.floating[n]&&(a=ve(a)),[a,ve(a)]}(m,n,await(null==c.isRTL?void 0:c.isRTL(s.floating)));if(l!==m)return{reset:{placement:g[0]}};const O=[u[ge(m)],u[x[0]],u[x[1]]],v=[...(null==(r=a.autoPlacement)?void 0:r.overflows)||[],{placement:m,overflows:O}],N=g[b+1];if(N)return{data:{index:b+1,overflows:v},reset:{placement:N}};const S=v.map((t=>{const o=ue(t.placement);return[t.placement,o&&p?t.overflows.slice(0,2).reduce(((t,o)=>t+o),0):t.overflows[0],t.overflows]})).sort(((t,o)=>t[1]-o[1])),w=S.filter((t=>t[2].slice(0,ue(t[0])?2:3).every((t=>t<=0)))),$=(null==(i=w[0])?void 0:i[0])||S[0][0];return $!==l?{data:{index:b+1,overflows:v},reset:{placement:$}}:{}}}};function Ie(t){return Ue(t)?(t.nodeName||"").toLowerCase():"#document"}function Re(t){var o;return(null==t||null==(o=t.ownerDocument)?void 0:o.defaultView)||window}function Ee(t){var o;return null==(o=(Ue(t)?t.ownerDocument:t.document)||window.document)?void 0:o.documentElement}function Ue(t){return t instanceof Node||t instanceof Re(t).Node}function We(t){return t instanceof Element||t instanceof Re(t).Element}function ke(t){return t instanceof HTMLElement||t instanceof Re(t).HTMLElement}function Le(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof Re(t).ShadowRoot)}function ze(t){const{overflow:o,overflowX:e,overflowY:r,display:i}=De(t);return/auto|scroll|overlay|hidden|clip/.test(o+r+e)&&!["inline","contents"].includes(i)}function Ze(t){return["table","td","th"].includes(Ie(t))}function Ke(t){const o=Be(),e=De(t);return"none"!==e.transform||"none"!==e.perspective||!!e.containerType&&"normal"!==e.containerType||!o&&!!e.backdropFilter&&"none"!==e.backdropFilter||!o&&!!e.filter&&"none"!==e.filter||["transform","perspective","filter"].some((t=>(e.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(e.contain||"").includes(t)))}function Be(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Fe(t){return["html","body","#document"].includes(Ie(t))}function De(t){return Re(t).getComputedStyle(t)}function Ae(t){return We(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function He(t){if("html"===Ie(t))return t;const o=t.assignedSlot||t.parentNode||Le(t)&&t.host||Ee(t);return Le(o)?o.host:o}function Ge(t){const o=He(t);return Fe(o)?t.ownerDocument?t.ownerDocument.body:t.body:ke(o)&&ze(o)?o:Ge(o)}function Pe(t,o,e){var r;void 0===o&&(o=[]),void 0===e&&(e=!0);const i=Ge(t),n=i===(null==(r=t.ownerDocument)?void 0:r.body),a=Re(i);return n?o.concat(a,a.visualViewport||[],ze(i)?i:[],a.frameElement&&e?Pe(a.frameElement):[]):o.concat(i,Pe(i,[],e))}function Me(t){const o=De(t);let e=parseFloat(o.width)||0,r=parseFloat(o.height)||0;const i=ke(t),n=i?t.offsetWidth:e,a=i?t.offsetHeight:r,l=se(e)!==n||se(r)!==a;return l&&(e=n,r=a),{width:e,height:r,$:l}}function Te(t){return We(t)?t:t.contextElement}function je(t){const o=Te(t);if(!ke(o))return pe(1);const e=o.getBoundingClientRect(),{width:r,height:i,$:n}=Me(o);let a=(n?se(e.width):e.width)/r,l=(n?se(e.height):e.height)/i;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}const Ye=pe(0);function _e(t){const o=Re(t);return Be()&&o.visualViewport?{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}:Ye}function Ve(t,o,e,r){void 0===o&&(o=!1),void 0===e&&(e=!1);const i=t.getBoundingClientRect(),n=Te(t);let a=pe(1);o&&(r?We(r)&&(a=je(r)):a=je(t));const l=function(t,o,e){return void 0===o&&(o=!1),!(!e||o&&e!==Re(t))&&o}(n,e,r)?_e(n):pe(0);let c=(i.left+l.x)/a.x,s=(i.top+l.y)/a.y,p=i.width/a.x,f=i.height/a.y;if(n){const t=Re(n),o=r&&We(r)?Re(r):r;let e=t.frameElement;for(;e&&r&&o!==t;){const t=je(e),o=e.getBoundingClientRect(),r=De(e),i=o.left+(e.clientLeft+parseFloat(r.paddingLeft))*t.x,n=o.top+(e.clientTop+parseFloat(r.paddingTop))*t.y;c*=t.x,s*=t.y,p*=t.x,f*=t.y,c+=i,s+=n,e=Re(e).frameElement}}return Ne({width:p,height:f,x:c,y:s})}function Xe(t){return Ve(Ee(t)).left+Ae(t).scrollLeft}function qe(t,o,e){let r;if("viewport"===o)r=function(t,o){const e=Re(t),r=Ee(t),i=e.visualViewport;let n=r.clientWidth,a=r.clientHeight,l=0,c=0;if(i){n=i.width,a=i.height;const t=Be();(!t||t&&"fixed"===o)&&(l=i.offsetLeft,c=i.offsetTop)}return{width:n,height:a,x:l,y:c}}(t,e);else if("document"===o)r=function(t){const o=Ee(t),e=Ae(t),r=t.ownerDocument.body,i=ce(o.scrollWidth,o.clientWidth,r.scrollWidth,r.clientWidth),n=ce(o.scrollHeight,o.clientHeight,r.scrollHeight,r.clientHeight);let a=-e.scrollLeft+Xe(t);const l=-e.scrollTop;return"rtl"===De(r).direction&&(a+=ce(o.clientWidth,r.clientWidth)-i),{width:i,height:n,x:a,y:l}}(Ee(t));else if(We(o))r=function(t,o){const e=Ve(t,!0,"fixed"===o),r=e.top+t.clientTop,i=e.left+t.clientLeft,n=ke(t)?je(t):pe(1);return{width:t.clientWidth*n.x,height:t.clientHeight*n.y,x:i*n.x,y:r*n.y}}(o,e);else{const e=_e(t);r={...o,x:o.x-e.x,y:o.y-e.y}}return Ne(r)}function Je(t,o){const e=He(t);return!(e===o||!We(e)||Fe(e))&&("fixed"===De(e).position||Je(e,o))}function Qe(t,o,e){const r=ke(o),i=Ee(o),n="fixed"===e,a=Ve(t,!0,n,o);let l={scrollLeft:0,scrollTop:0};const c=pe(0);if(r||!r&&!n)if(("body"!==Ie(o)||ze(i))&&(l=Ae(o)),r){const t=Ve(o,!0,n,o);c.x=t.x+o.clientLeft,c.y=t.y+o.clientTop}else i&&(c.x=Xe(i));return{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function tr(t,o){return ke(t)&&"fixed"!==De(t).position?o?o(t):t.offsetParent:null}function or(t,o){const e=Re(t);if(!ke(t))return e;let r=tr(t,o);for(;r&&Ze(r)&&"static"===De(r).position;)r=tr(r,o);return r&&("html"===Ie(r)||"body"===Ie(r)&&"static"===De(r).position&&!Ke(r))?e:r||function(t){let o=He(t);for(;ke(o)&&!Fe(o);){if(Ke(o))return o;o=He(o)}return null}(t)||e}const er={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:o,offsetParent:e,strategy:r}=t;const i=ke(e),n=Ee(e);if(e===n)return o;let a={scrollLeft:0,scrollTop:0},l=pe(1);const c=pe(0);if((i||!i&&"fixed"!==r)&&(("body"!==Ie(e)||ze(n))&&(a=Ae(e)),ke(e))){const t=Ve(e);l=je(e),c.x=t.x+e.clientLeft,c.y=t.y+e.clientTop}return{width:o.width*l.x,height:o.height*l.y,x:o.x*l.x-a.scrollLeft*l.x+c.x,y:o.y*l.y-a.scrollTop*l.y+c.y}},getDocumentElement:Ee,getClippingRect:function(t){let{element:o,boundary:e,rootBoundary:r,strategy:i}=t;const n=[..."clippingAncestors"===e?function(t,o){const e=o.get(t);if(e)return e;let r=Pe(t,[],!1).filter((t=>We(t)&&"body"!==Ie(t))),i=null;const n="fixed"===De(t).position;let a=n?He(t):t;for(;We(a)&&!Fe(a);){const o=De(a),e=Ke(a);e||"fixed"!==o.position||(i=null),(n?!e&&!i:!e&&"static"===o.position&&i&&["absolute","fixed"].includes(i.position)||ze(a)&&!e&&Je(t,a))?r=r.filter((t=>t!==a)):i=o,a=He(a)}return o.set(t,r),r}(o,this._c):[].concat(e),r],a=n[0],l=n.reduce(((t,e)=>{const r=qe(o,e,i);return t.top=ce(r.top,t.top),t.right=le(r.right,t.right),t.bottom=le(r.bottom,t.bottom),t.left=ce(r.left,t.left),t}),qe(o,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:or,getElementRects:async function(t){let{reference:o,floating:e,strategy:r}=t;const i=this.getOffsetParent||or,n=this.getDimensions;return{reference:Qe(o,await i(e),r),floating:{x:0,y:0,...await n(e)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){return Me(t)},getScale:je,isElement:We,isRTL:function(t){return"rtl"===De(t).direction}},rr=(t,o,e)=>{const r=new Map,i={platform:er,...e},n={...i.platform,_c:r};return(async(t,o,e)=>{const{placement:r="bottom",strategy:i="absolute",middleware:n=[],platform:a}=e,l=n.filter(Boolean),c=await(null==a.isRTL?void 0:a.isRTL(o));let s=await a.getElementRects({reference:t,floating:o,strategy:i}),{x:p,y:f}=Se(s,r,c),d=r,h={},y=0;for(let e=0;e<l.length;e++){const{name:n,fn:g}=l[e],{x:u,y:b,data:m,reset:x}=await g({x:p,y:f,initialPlacement:r,placement:d,strategy:i,middlewareData:h,rects:s,platform:a,elements:{reference:t,floating:o}});p=null!=u?u:p,f=null!=b?b:f,h={...h,[n]:{...h[n],...m}},x&&y<=50&&(y++,"object"==typeof x&&(x.placement&&(d=x.placement),x.rects&&(s=!0===x.rects?await a.getElementRects({reference:t,floating:o,strategy:i}):x.rects),({x:p,y:f}=Se(s,d,c))),e=-1)}return{x:p,y:f,placement:d,strategy:i,middlewareData:h}})(t,o,{...i,platform:n})};var ir=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class nr extends o.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new o.Debouncer,this.revealDebouncer=new o.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return e.html`
593
+ `,ne=["start","end"],ae=["top","right","bottom","left"].reduce(((t,o)=>t.concat(o,o+"-"+ne[0],o+"-"+ne[1])),[]),le=Math.min,ce=Math.max,se=Math.round,pe=t=>({x:t,y:t}),fe={left:"right",right:"left",bottom:"top",top:"bottom"},de={start:"end",end:"start"};function he(t,o,e){return ce(t,le(o,e))}function ye(t,o){return"function"==typeof t?t(o):t}function ge(t){return t.split("-")[0]}function ue(t){return t.split("-")[1]}function be(t){return"x"===t?"y":"x"}function me(t){return"y"===t?"height":"width"}function xe(t){return["top","bottom"].includes(ge(t))?"y":"x"}function Oe(t){return be(xe(t))}function ve(t){return t.replace(/left|right|bottom|top/g,(t=>fe[t]))}function Ne(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Se(t,o,e){let{reference:r,floating:i}=t;const n=xe(o),a=Oe(o),l=me(a),c=ge(o),s="y"===n,p=r.x+r.width/2-i.width/2,f=r.y+r.height/2-i.height/2,d=r[l]/2-i[l]/2;let h;switch(c){case"top":h={x:p,y:r.y-i.height};break;case"bottom":h={x:p,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:f};break;case"left":h={x:r.x-i.width,y:f};break;default:h={x:r.x,y:r.y}}switch(ue(o)){case"start":h[a]-=d*(e&&s?-1:1);break;case"end":h[a]+=d*(e&&s?-1:1)}return h}async function we(t,o){var e;void 0===o&&(o={});const{x:r,y:i,platform:n,rects:a,elements:l,strategy:c}=t,{boundary:s="clippingAncestors",rootBoundary:p="viewport",elementContext:f="floating",altBoundary:d=!1,padding:h=0}=ye(o,t),y=function(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}(h),g=l[d?"floating"===f?"reference":"floating":f],u=Ne(await n.getClippingRect({element:null==(e=await(null==n.isElement?void 0:n.isElement(g)))||e?g:g.contextElement||await(null==n.getDocumentElement?void 0:n.getDocumentElement(l.floating)),boundary:s,rootBoundary:p,strategy:c})),b="floating"===f?{...a.floating,x:r,y:i}:a.reference,m=await(null==n.getOffsetParent?void 0:n.getOffsetParent(l.floating)),x=await(null==n.isElement?void 0:n.isElement(m))&&await(null==n.getScale?void 0:n.getScale(m))||{x:1,y:1},O=Ne(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b,offsetParent:m,strategy:c}):b);return{top:(u.top-O.top+y.top)/x.y,bottom:(O.bottom-u.bottom+y.bottom)/x.y,left:(u.left-O.left+y.left)/x.x,right:(O.right-u.right+y.right)/x.x}}function $e(t,o,e){return(t?[...e.filter((o=>ue(o)===t)),...e.filter((o=>ue(o)!==t))]:e.filter((t=>ge(t)===t))).filter((e=>!t||(ue(e)===t||!!o&&function(t){return t.replace(/start|end/g,(t=>de[t]))}(e)!==e)))}const Ce=function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(o){var e,r,i;const{rects:n,middlewareData:a,placement:l,platform:c,elements:s}=o,{crossAxis:p=!1,alignment:f,allowedPlacements:d=ae,autoAlignment:h=!0,...y}=ye(t,o),g=void 0!==f||d===ae?$e(f||null,h,d):d,u=await we(o,y),b=(null==(e=a.autoPlacement)?void 0:e.index)||0,m=g[b];if(null==m)return{};const x=function(t,o,e){void 0===e&&(e=!1);const r=ue(t),i=Oe(t),n=me(i);let a="x"===i?r===(e?"end":"start")?"right":"left":"start"===r?"bottom":"top";return o.reference[n]>o.floating[n]&&(a=ve(a)),[a,ve(a)]}(m,n,await(null==c.isRTL?void 0:c.isRTL(s.floating)));if(l!==m)return{reset:{placement:g[0]}};const O=[u[ge(m)],u[x[0]],u[x[1]]],v=[...(null==(r=a.autoPlacement)?void 0:r.overflows)||[],{placement:m,overflows:O}],N=g[b+1];if(N)return{data:{index:b+1,overflows:v},reset:{placement:N}};const S=v.map((t=>{const o=ue(t.placement);return[t.placement,o&&p?t.overflows.slice(0,2).reduce(((t,o)=>t+o),0):t.overflows[0],t.overflows]})).sort(((t,o)=>t[1]-o[1])),w=S.filter((t=>t[2].slice(0,ue(t[0])?2:3).every((t=>t<=0)))),$=(null==(i=w[0])?void 0:i[0])||S[0][0];return $!==l?{data:{index:b+1,overflows:v},reset:{placement:$}}:{}}}};function Ie(t){return Ue(t)?(t.nodeName||"").toLowerCase():"#document"}function Re(t){var o;return(null==t||null==(o=t.ownerDocument)?void 0:o.defaultView)||window}function Ee(t){var o;return null==(o=(Ue(t)?t.ownerDocument:t.document)||window.document)?void 0:o.documentElement}function Ue(t){return t instanceof Node||t instanceof Re(t).Node}function We(t){return t instanceof Element||t instanceof Re(t).Element}function ke(t){return t instanceof HTMLElement||t instanceof Re(t).HTMLElement}function Le(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof Re(t).ShadowRoot)}function ze(t){const{overflow:o,overflowX:e,overflowY:r,display:i}=De(t);return/auto|scroll|overlay|hidden|clip/.test(o+r+e)&&!["inline","contents"].includes(i)}function Ze(t){return["table","td","th"].includes(Ie(t))}function Ke(t){const o=Be(),e=De(t);return"none"!==e.transform||"none"!==e.perspective||!!e.containerType&&"normal"!==e.containerType||!o&&!!e.backdropFilter&&"none"!==e.backdropFilter||!o&&!!e.filter&&"none"!==e.filter||["transform","perspective","filter"].some((t=>(e.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(e.contain||"").includes(t)))}function Be(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Fe(t){return["html","body","#document"].includes(Ie(t))}function De(t){return Re(t).getComputedStyle(t)}function Ae(t){return We(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function He(t){if("html"===Ie(t))return t;const o=t.assignedSlot||t.parentNode||Le(t)&&t.host||Ee(t);return Le(o)?o.host:o}function Ge(t){const o=He(t);return Fe(o)?t.ownerDocument?t.ownerDocument.body:t.body:ke(o)&&ze(o)?o:Ge(o)}function Pe(t,o,e){var r;void 0===o&&(o=[]),void 0===e&&(e=!0);const i=Ge(t),n=i===(null==(r=t.ownerDocument)?void 0:r.body),a=Re(i);return n?o.concat(a,a.visualViewport||[],ze(i)?i:[],a.frameElement&&e?Pe(a.frameElement):[]):o.concat(i,Pe(i,[],e))}function Me(t){const o=De(t);let e=parseFloat(o.width)||0,r=parseFloat(o.height)||0;const i=ke(t),n=i?t.offsetWidth:e,a=i?t.offsetHeight:r,l=se(e)!==n||se(r)!==a;return l&&(e=n,r=a),{width:e,height:r,$:l}}function Te(t){return We(t)?t:t.contextElement}function je(t){const o=Te(t);if(!ke(o))return pe(1);const e=o.getBoundingClientRect(),{width:r,height:i,$:n}=Me(o);let a=(n?se(e.width):e.width)/r,l=(n?se(e.height):e.height)/i;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}const Ye=pe(0);function _e(t){const o=Re(t);return Be()&&o.visualViewport?{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}:Ye}function Ve(t,o,e,r){void 0===o&&(o=!1),void 0===e&&(e=!1);const i=t.getBoundingClientRect(),n=Te(t);let a=pe(1);o&&(r?We(r)&&(a=je(r)):a=je(t));const l=function(t,o,e){return void 0===o&&(o=!1),!(!e||o&&e!==Re(t))&&o}(n,e,r)?_e(n):pe(0);let c=(i.left+l.x)/a.x,s=(i.top+l.y)/a.y,p=i.width/a.x,f=i.height/a.y;if(n){const t=Re(n),o=r&&We(r)?Re(r):r;let e=t.frameElement;for(;e&&r&&o!==t;){const t=je(e),o=e.getBoundingClientRect(),r=De(e),i=o.left+(e.clientLeft+parseFloat(r.paddingLeft))*t.x,n=o.top+(e.clientTop+parseFloat(r.paddingTop))*t.y;c*=t.x,s*=t.y,p*=t.x,f*=t.y,c+=i,s+=n,e=Re(e).frameElement}}return Ne({width:p,height:f,x:c,y:s})}function Xe(t){return Ve(Ee(t)).left+Ae(t).scrollLeft}function qe(t,o,e){let r;if("viewport"===o)r=function(t,o){const e=Re(t),r=Ee(t),i=e.visualViewport;let n=r.clientWidth,a=r.clientHeight,l=0,c=0;if(i){n=i.width,a=i.height;const t=Be();(!t||t&&"fixed"===o)&&(l=i.offsetLeft,c=i.offsetTop)}return{width:n,height:a,x:l,y:c}}(t,e);else if("document"===o)r=function(t){const o=Ee(t),e=Ae(t),r=t.ownerDocument.body,i=ce(o.scrollWidth,o.clientWidth,r.scrollWidth,r.clientWidth),n=ce(o.scrollHeight,o.clientHeight,r.scrollHeight,r.clientHeight);let a=-e.scrollLeft+Xe(t);const l=-e.scrollTop;return"rtl"===De(r).direction&&(a+=ce(o.clientWidth,r.clientWidth)-i),{width:i,height:n,x:a,y:l}}(Ee(t));else if(We(o))r=function(t,o){const e=Ve(t,!0,"fixed"===o),r=e.top+t.clientTop,i=e.left+t.clientLeft,n=ke(t)?je(t):pe(1);return{width:t.clientWidth*n.x,height:t.clientHeight*n.y,x:i*n.x,y:r*n.y}}(o,e);else{const e=_e(t);r={...o,x:o.x-e.x,y:o.y-e.y}}return Ne(r)}function Je(t,o){const e=He(t);return!(e===o||!We(e)||Fe(e))&&("fixed"===De(e).position||Je(e,o))}function Qe(t,o,e){const r=ke(o),i=Ee(o),n="fixed"===e,a=Ve(t,!0,n,o);let l={scrollLeft:0,scrollTop:0};const c=pe(0);if(r||!r&&!n)if(("body"!==Ie(o)||ze(i))&&(l=Ae(o)),r){const t=Ve(o,!0,n,o);c.x=t.x+o.clientLeft,c.y=t.y+o.clientTop}else i&&(c.x=Xe(i));return{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function tr(t,o){return ke(t)&&"fixed"!==De(t).position?o?o(t):t.offsetParent:null}function or(t,o){const e=Re(t);if(!ke(t))return e;let r=tr(t,o);for(;r&&Ze(r)&&"static"===De(r).position;)r=tr(r,o);return r&&("html"===Ie(r)||"body"===Ie(r)&&"static"===De(r).position&&!Ke(r))?e:r||function(t){let o=He(t);for(;ke(o)&&!Fe(o);){if(Ke(o))return o;o=He(o)}return null}(t)||e}const er={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:o,offsetParent:e,strategy:r}=t;const i=ke(e),n=Ee(e);if(e===n)return o;let a={scrollLeft:0,scrollTop:0},l=pe(1);const c=pe(0);if((i||!i&&"fixed"!==r)&&(("body"!==Ie(e)||ze(n))&&(a=Ae(e)),ke(e))){const t=Ve(e);l=je(e),c.x=t.x+e.clientLeft,c.y=t.y+e.clientTop}return{width:o.width*l.x,height:o.height*l.y,x:o.x*l.x-a.scrollLeft*l.x+c.x,y:o.y*l.y-a.scrollTop*l.y+c.y}},getDocumentElement:Ee,getClippingRect:function(t){let{element:o,boundary:e,rootBoundary:r,strategy:i}=t;const n=[..."clippingAncestors"===e?function(t,o){const e=o.get(t);if(e)return e;let r=Pe(t,[],!1).filter((t=>We(t)&&"body"!==Ie(t))),i=null;const n="fixed"===De(t).position;let a=n?He(t):t;for(;We(a)&&!Fe(a);){const o=De(a),e=Ke(a);e||"fixed"!==o.position||(i=null),(n?!e&&!i:!e&&"static"===o.position&&i&&["absolute","fixed"].includes(i.position)||ze(a)&&!e&&Je(t,a))?r=r.filter((t=>t!==a)):i=o,a=He(a)}return o.set(t,r),r}(o,this._c):[].concat(e),r],a=n[0],l=n.reduce(((t,e)=>{const r=qe(o,e,i);return t.top=ce(r.top,t.top),t.right=le(r.right,t.right),t.bottom=le(r.bottom,t.bottom),t.left=ce(r.left,t.left),t}),qe(o,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:or,getElementRects:async function(t){let{reference:o,floating:e,strategy:r}=t;const i=this.getOffsetParent||or,n=this.getDimensions;return{reference:Qe(o,await i(e),r),floating:{x:0,y:0,...await n(e)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){return Me(t)},getScale:je,isElement:We,isRTL:function(t){return"rtl"===De(t).direction}},rr=(t,o,e)=>{const r=new Map,i={platform:er,...e},n={...i.platform,_c:r};return(async(t,o,e)=>{const{placement:r="bottom",strategy:i="absolute",middleware:n=[],platform:a}=e,l=n.filter(Boolean),c=await(null==a.isRTL?void 0:a.isRTL(o));let s=await a.getElementRects({reference:t,floating:o,strategy:i}),{x:p,y:f}=Se(s,r,c),d=r,h={},y=0;for(let e=0;e<l.length;e++){const{name:n,fn:g}=l[e],{x:u,y:b,data:m,reset:x}=await g({x:p,y:f,initialPlacement:r,placement:d,strategy:i,middlewareData:h,rects:s,platform:a,elements:{reference:t,floating:o}});p=null!=u?u:p,f=null!=b?b:f,h={...h,[n]:{...h[n],...m}},x&&y<=50&&(y++,"object"==typeof x&&(x.placement&&(d=x.placement),x.rects&&(s=!0===x.rects?await a.getElementRects({reference:t,floating:o,strategy:i}):x.rects),({x:p,y:f}=Se(s,d,c))),e=-1)}return{x:p,y:f,placement:d,strategy:i,middlewareData:h}})(t,o,{...i,platform:n})};function ir(t){return function(t){for(let o=t;o;o=nr(o))if(o instanceof Element&&"none"===getComputedStyle(o).display)return null;for(let o=nr(t);o;o=nr(o)){if(!(o instanceof Element))continue;const t=getComputedStyle(o);if("contents"!==t.display){if("static"!==t.position||"none"!==t.filter)return o;if("BODY"===o.tagName)return o}}return null}(t)}function nr(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}var ar=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class lr extends o.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new o.Debouncer,this.revealDebouncer=new o.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return e.html`
594
594
  <div part="container"
595
595
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
596
596
  @mouseenter=${this.onHover}
@@ -598,7 +598,7 @@ const Mo=Symbol.for(""),To=t=>{if(t?.r===Mo)return t?._$litStatic$},jo=t=>({_$li
598
598
  @focusin=${this.onHover}
599
599
  @focusout=${this.onOut}
600
600
  @touchstart=${this.onTouch}>
601
- <slot></slot>
601
+ <slot part="slot"></slot>
602
602
  <div part="tooltip" role="tooltip" inert
603
603
  class="ft-tooltip ft-tooltip--${this.validPosition}"
604
604
  ?hidden=${!this.visible}>
@@ -608,14 +608,14 @@ const Mo=Symbol.for(""),To=t=>{if(t?.r===Mo)return t?._$litStatic$},jo=t=>({_$li
608
608
  </div>
609
609
  </div>
610
610
  </div>
611
- `}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((o=>t.has(o)))&&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(){var t;this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",rr(this.slottedElement,this.tooltip,{middleware:[(t={crossAxis:!0},void 0===t&&(t={}),{name:"shift",options:t,async fn(o){const{x:e,y:r,placement:i}=o,{mainAxis:n=!0,crossAxis:a=!1,limiter:l={fn:t=>{let{x:o,y:e}=t;return{x:o,y:e}}},...c}=ye(t,o),s={x:e,y:r},p=await we(o,c),f=xe(ge(i)),d=be(f);let h=s[d],y=s[f];if(n){const t="y"===d?"bottom":"right";h=he(h+p["y"===d?"top":"left"],h,h-p[t])}if(a){const t="y"===f?"bottom":"right";y=he(y+p["y"===f?"top":"left"],y,y-p[t])}const g=l.fn({...o,[d]:h,[f]:y});return{...g,data:{x:g.x-e,y:g.y-r}}}}),Ce({allowedPlacements:[this.position]})]}).then((({x:t,y:o})=>{this.tooltip&&(this.tooltip.style.left=`${t}px`,this.tooltip.style.top=`${o}px`)}))),this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(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,o){return Math.max(t,Math.min(0,-o))}}nr.elementDefinitions={"ft-typography":qo},nr.styles=ie,ir([r.property()],nr.prototype,"text",void 0),ir([r.property({type:Boolean})],nr.prototype,"manual",void 0),ir([r.property({type:Boolean})],nr.prototype,"inline",void 0),ir([r.property({type:Number})],nr.prototype,"delay",void 0),ir([r.property()],nr.prototype,"position",void 0),ir([r.queryAssignedNodes()],nr.prototype,"slotNodes",void 0),ir([r.query(".ft-tooltip--container")],nr.prototype,"container",void 0),ir([r.query(".ft-tooltip")],nr.prototype,"tooltip",void 0),ir([r.query(".ft-tooltip--content")],nr.prototype,"tooltipContent",void 0),ir([r.state()],nr.prototype,"visible",void 0),ir([r.eventOptions({passive:!0})],nr.prototype,"onTouch",null),ir([r.eventOptions({passive:!0})],nr.prototype,"onHover",null),ir([r.eventOptions({passive:!0})],nr.prototype,"onOut",null),o.customElement("ft-tooltip")(nr);class ar extends o.FtLitElement{render(){return e.html`
611
+ `}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((o=>t.has(o)))&&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(){var t;this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",rr(this.slottedElement,this.tooltip,{platform:{...er,getOffsetParent:t=>er.getOffsetParent(t,ir)},middleware:[(t={crossAxis:!0},void 0===t&&(t={}),{name:"shift",options:t,async fn(o){const{x:e,y:r,placement:i}=o,{mainAxis:n=!0,crossAxis:a=!1,limiter:l={fn:t=>{let{x:o,y:e}=t;return{x:o,y:e}}},...c}=ye(t,o),s={x:e,y:r},p=await we(o,c),f=xe(ge(i)),d=be(f);let h=s[d],y=s[f];if(n){const t="y"===d?"bottom":"right";h=he(h+p["y"===d?"top":"left"],h,h-p[t])}if(a){const t="y"===f?"bottom":"right";y=he(y+p["y"===f?"top":"left"],y,y-p[t])}const g=l.fn({...o,[d]:h,[f]:y});return{...g,data:{x:g.x-e,y:g.y-r}}}}),Ce({allowedPlacements:[this.position]})]}).then((({x:t,y:o})=>{this.tooltip&&(this.tooltip.style.left=`${t}px`,this.tooltip.style.top=`${o}px`)}))),this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(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,o){return Math.max(t,Math.min(0,-o))}}lr.elementDefinitions={"ft-typography":qo},lr.styles=ie,ar([r.property()],lr.prototype,"text",void 0),ar([r.property({type:Boolean})],lr.prototype,"manual",void 0),ar([r.property({type:Boolean})],lr.prototype,"inline",void 0),ar([r.property({type:Number})],lr.prototype,"delay",void 0),ar([r.property()],lr.prototype,"position",void 0),ar([r.queryAssignedNodes()],lr.prototype,"slotNodes",void 0),ar([r.query(".ft-tooltip--container")],lr.prototype,"container",void 0),ar([r.query(".ft-tooltip")],lr.prototype,"tooltip",void 0),ar([r.query(".ft-tooltip--content")],lr.prototype,"tooltipContent",void 0),ar([r.state()],lr.prototype,"visible",void 0),ar([r.eventOptions({passive:!0})],lr.prototype,"onTouch",null),ar([r.eventOptions({passive:!0})],lr.prototype,"onHover",null),ar([r.eventOptions({passive:!0})],lr.prototype,"onOut",null),o.customElement("ft-tooltip")(lr);class cr extends o.FtLitElement{render(){return e.html`
612
612
  <div class="ft-loader">
613
613
  <div></div>
614
614
  <div></div>
615
615
  <div></div>
616
616
  <div></div>
617
617
  </div>
618
- `}}ar.styles=Vt,o.customElement("ft-loader")(ar);var lr=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class cr extends(o.toFtFormComponent(o.FtLitElement,"button")){constructor(){super(...arguments),this.role="button",this.type="button",this.disabled=!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 o;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):"submit"==this.type&&(null===(o=this.form)||void 0===o||o.requestSubmit())}}render(){return this.addTooltipIfNeeded(e.html`
618
+ `}}cr.styles=Vt,o.customElement("ft-loader")(cr);var sr=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class pr extends(o.toFtFormComponent(o.FtLitElement,"button")){constructor(){super(...arguments),this.role="button",this.type="button",this.disabled=!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 o;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):"submit"==this.type&&(null===(o=this.form)||void 0===o||o.requestSubmit())}}render(){return this.addTooltipIfNeeded(e.html`
619
619
  <button part="button"
620
620
  class="${n.classMap(this.buttonClasses)}"
621
621
  aria-label="${this.getLabel()}"
@@ -638,7 +638,7 @@ const Mo=Symbol.for(""),To=t=>{if(t?.r===Mo)return t?._$litStatic$},jo=t=>({_$li
638
638
  </ft-tooltip>
639
639
  `:t}resolveIcon(){return this.loading?e.html`
640
640
  <ft-loader part="loader icon"></ft-loader> `:this.icon?e.html`
641
- <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}}cr.elementDefinitions={"ft-ripple":ao,"ft-tooltip":nr,"ft-typography":qo,"ft-icon":u,"ft-loader":ar},lr([r.property({type:String,reflect:!0})],cr.prototype,"role",void 0),lr([r.property()],cr.prototype,"type",void 0),lr([r.property({type:Boolean})],cr.prototype,"disabled",void 0),lr([r.property()],cr.prototype,"label",void 0),lr([r.property()],cr.prototype,"icon",void 0),lr([r.property()],cr.prototype,"iconVariant",void 0),lr([r.property({type:Boolean})],cr.prototype,"trailingIcon",void 0),lr([r.property({type:Boolean})],cr.prototype,"loading",void 0),lr([r.property()],cr.prototype,"tooltipPosition",void 0),lr([r.property({type:Boolean})],cr.prototype,"hideTooltip",void 0),lr([r.property({type:Boolean})],cr.prototype,"forceTooltip",void 0),lr([r.query(".ft-button")],cr.prototype,"button",void 0),lr([r.query(".ft-button--label slot")],cr.prototype,"slottedContent",void 0);var sr=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class pr extends cr{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return"button"}}pr.styles=[o.safariEllipsisFix,io],sr([r.property({type:Boolean})],pr.prototype,"primary",void 0),sr([r.property({type:Boolean})],pr.prototype,"outlined",void 0),sr([r.property({type:Boolean})],pr.prototype,"dense",void 0),sr([r.property({type:Boolean})],pr.prototype,"round",void 0);const fr=[e.css`
641
+ <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}}pr.elementDefinitions={"ft-ripple":ao,"ft-tooltip":lr,"ft-typography":qo,"ft-icon":u,"ft-loader":cr},sr([r.property({type:String,reflect:!0})],pr.prototype,"role",void 0),sr([r.property()],pr.prototype,"type",void 0),sr([r.property({type:Boolean})],pr.prototype,"disabled",void 0),sr([r.property()],pr.prototype,"label",void 0),sr([r.property()],pr.prototype,"icon",void 0),sr([r.property()],pr.prototype,"iconVariant",void 0),sr([r.property({type:Boolean})],pr.prototype,"trailingIcon",void 0),sr([r.property({type:Boolean})],pr.prototype,"loading",void 0),sr([r.property()],pr.prototype,"tooltipPosition",void 0),sr([r.property({type:Boolean})],pr.prototype,"hideTooltip",void 0),sr([r.property({type:Boolean})],pr.prototype,"forceTooltip",void 0),sr([r.query(".ft-button")],pr.prototype,"button",void 0),sr([r.query(".ft-button--label slot")],pr.prototype,"slottedContent",void 0);var fr=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class dr extends pr{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return"button"}}dr.styles=[o.safariEllipsisFix,io],fr([r.property({type:Boolean})],dr.prototype,"primary",void 0),fr([r.property({type:Boolean})],dr.prototype,"outlined",void 0),fr([r.property({type:Boolean})],dr.prototype,"dense",void 0),fr([r.property({type:Boolean})],dr.prototype,"round",void 0);const hr=[e.css`
642
642
  :host {
643
643
  display: inline-block;
644
644
  max-width: 100%;
@@ -856,7 +856,7 @@ const Mo=Symbol.for(""),To=t=>{if(t?.r===Mo)return t?._$litStatic$},jo=t=>({_$li
856
856
  width: ${W.smallIconOnlyWidth};
857
857
  padding: unset;
858
858
  }
859
- `,o.noTextSelect];var dr,hr=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class yr extends cr{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary&&!this.neutral,"ft-button--neutral":this.neutral,"ft-button--large":!this.small,"ft-button--small":this.small,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon}}get typographyVariant(){return this.small?Vo.caption1medium:Vo.body2medium}}yr.styles=[o.safariEllipsisFix,fr],hr([r.property({type:Boolean})],yr.prototype,"primary",void 0),hr([r.property({type:Boolean})],yr.prototype,"secondary",void 0),hr([r.property({type:Boolean})],yr.prototype,"tertiary",void 0),hr([r.property({type:Boolean})],yr.prototype,"neutral",void 0),hr([r.property({type:Boolean})],yr.prototype,"small",void 0),o.customElement("ft-button")(pr),o.customElement("ftds-button")(yr),function(t){t.S="S",t.M="M",t.L="L",t.XL="XL",t.XXL="XXL"}(dr||(dr={}));const gr=e.css`
859
+ `,o.noTextSelect];var yr,gr=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class ur extends pr{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary&&!this.neutral,"ft-button--neutral":this.neutral,"ft-button--large":!this.small,"ft-button--small":this.small,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon}}get typographyVariant(){return this.small?Vo.caption1medium:Vo.body2medium}}ur.styles=[o.safariEllipsisFix,hr],gr([r.property({type:Boolean})],ur.prototype,"primary",void 0),gr([r.property({type:Boolean})],ur.prototype,"secondary",void 0),gr([r.property({type:Boolean})],ur.prototype,"tertiary",void 0),gr([r.property({type:Boolean})],ur.prototype,"neutral",void 0),gr([r.property({type:Boolean})],ur.prototype,"small",void 0),o.customElement("ft-button")(dr),o.customElement("ftds-button")(ur),function(t){t.S="S",t.M="M",t.L="L",t.XL="XL",t.XXL="XXL"}(yr||(yr={}));const br=e.css`
860
860
  .ft-size-watcher--pixel {
861
861
  width: 0;
862
862
  height: 0;
@@ -875,11 +875,11 @@ const Mo=Symbol.for(""),To=t=>{if(t?.r===Mo)return t?._$litStatic$},jo=t=>({_$li
875
875
  .ft-size-watcher--local .ft-size-watcher--watcher {
876
876
  width: 100%;
877
877
  }
878
- `;var ur=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class br extends CustomEvent{constructor(t,o){super("change",{detail:{size:t,category:o}})}}class mr extends o.FtLitElement{constructor(){super(...arguments),this.debounceTimeout=100,this.local=!1,this.size=0,this.category=dr.S,this.resizeObserver=new ResizeObserver((()=>this.updateSize())),this.debouncer=new o.Debouncer}render(){return e.html`
878
+ `;var mr=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class xr extends CustomEvent{constructor(t,o){super("change",{detail:{size:t,category:o}})}}class Or extends o.FtLitElement{constructor(){super(...arguments),this.debounceTimeout=100,this.local=!1,this.size=0,this.category=yr.S,this.resizeObserver=new ResizeObserver((()=>this.updateSize())),this.debouncer=new o.Debouncer}render(){return e.html`
879
879
  <div class="ft-size-watcher--pixel ${this.local?"ft-size-watcher--local":""}">
880
880
  <div class="ft-size-watcher--watcher"></div>
881
881
  </div>
882
- `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.watcher&&this.resizeObserver.observe(this.watcher),this.updateSize()}updateSize(){this.debouncer.run((()=>{this.watcher&&this.size!==this.watcher.clientWidth&&(this.size=this.watcher.clientWidth,this.size<768?this.category=dr.S:this.size<976?this.category=dr.M:this.size<1024?this.category=dr.L:this.size<1440?this.category=dr.XL:this.category=dr.XXL,this.dispatchEvent(new br(this.size,this.category)))}),this.debounceTimeout)}}mr.elementDefinitions={},mr.styles=gr,ur([r.property({type:Number})],mr.prototype,"debounceTimeout",void 0),ur([r.property({type:Boolean})],mr.prototype,"local",void 0),ur([r.property({type:Number,reflect:!0})],mr.prototype,"size",void 0),ur([r.property({type:String,reflect:!0})],mr.prototype,"category",void 0),ur([r.query(".ft-size-watcher--watcher")],mr.prototype,"watcher",void 0),o.customElement("ft-size-watcher")(mr);var xr=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Or extends o.FtLitElement{constructor(){super(...arguments),this.portalUrl="",this.opened=!1,this.displayMode=t.FtInProductHelpMode.STANDARD,this.closeIcon=p.X_MARK,this.standardModeIcon=p.PIP,this.disableStandardMode=!1,this.theaterModeIcon=p.PIP_WIDE,this.disableTheaterMode=!1,this.fullscreenModeIcon=p.EXPAND_WIDE,this.disableFullscreenMode=!1,this.enableHomeButton=!1,this.homeIcon=p.HOME,this.enableOpenTabButton=!1,this.openTabIcon=p.EXTLINK_LIGHT,this.allowStandardMode=!0,this.allowTheaterMode=!0,this.allowFullscreenMode=!0}render(){const o={"ft-in-product-help":!0,"ft-in-product-help--opened":this.opened,"ft-in-product-help--standard":this.displayMode==t.FtInProductHelpMode.STANDARD,"ft-in-product-help--theater":this.displayMode==t.FtInProductHelpMode.THEATER,"ft-in-product-help--fullscreen":this.displayMode==t.FtInProductHelpMode.FULLSCREEN},r=this.allowStandardMode&&(this.allowTheaterMode||this.allowFullscreenMode),i=this.allowTheaterMode&&(this.allowStandardMode||this.allowFullscreenMode),a=this.allowFullscreenMode&&(this.allowStandardMode||this.allowTheaterMode);return e.html`
882
+ `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.watcher&&this.resizeObserver.observe(this.watcher),this.updateSize()}updateSize(){this.debouncer.run((()=>{this.watcher&&this.size!==this.watcher.clientWidth&&(this.size=this.watcher.clientWidth,this.size<768?this.category=yr.S:this.size<976?this.category=yr.M:this.size<1024?this.category=yr.L:this.size<1440?this.category=yr.XL:this.category=yr.XXL,this.dispatchEvent(new xr(this.size,this.category)))}),this.debounceTimeout)}}Or.elementDefinitions={},Or.styles=br,mr([r.property({type:Number})],Or.prototype,"debounceTimeout",void 0),mr([r.property({type:Boolean})],Or.prototype,"local",void 0),mr([r.property({type:Number,reflect:!0})],Or.prototype,"size",void 0),mr([r.property({type:String,reflect:!0})],Or.prototype,"category",void 0),mr([r.query(".ft-size-watcher--watcher")],Or.prototype,"watcher",void 0),o.customElement("ft-size-watcher")(Or);var vr=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Nr extends o.FtLitElement{constructor(){super(...arguments),this.portalUrl="",this.opened=!1,this.displayMode=t.FtInProductHelpMode.STANDARD,this.closeIcon=p.X_MARK,this.standardModeIcon=p.PIP,this.disableStandardMode=!1,this.theaterModeIcon=p.PIP_WIDE,this.disableTheaterMode=!1,this.fullscreenModeIcon=p.EXPAND_WIDE,this.disableFullscreenMode=!1,this.enableHomeButton=!1,this.homeIcon=p.HOME,this.enableOpenTabButton=!1,this.openTabIcon=p.EXTLINK_LIGHT,this.allowStandardMode=!0,this.allowTheaterMode=!0,this.allowFullscreenMode=!0}render(){const o={"ft-in-product-help":!0,"ft-in-product-help--opened":this.opened,"ft-in-product-help--standard":this.displayMode==t.FtInProductHelpMode.STANDARD,"ft-in-product-help--theater":this.displayMode==t.FtInProductHelpMode.THEATER,"ft-in-product-help--fullscreen":this.displayMode==t.FtInProductHelpMode.FULLSCREEN},r=this.allowStandardMode&&(this.allowTheaterMode||this.allowFullscreenMode),i=this.allowTheaterMode&&(this.allowStandardMode||this.allowFullscreenMode),a=this.allowFullscreenMode&&(this.allowStandardMode||this.allowTheaterMode);return e.html`
883
883
  <ft-size-watcher @change=${this.onViewportChange}></ft-size-watcher>
884
884
  <div class="${n.classMap(o)}" part="container">
885
885
  <div class="ft-in-product-help--top-bar" part="top-bar">
@@ -948,4 +948,4 @@ const Mo=Symbol.for(""),To=t=>{if(t?.r===Mo)return t?._$litStatic$},jo=t=>({_$li
948
948
  </div>
949
949
  <iframe src="${this.portalUrl}" part="iframe"/>
950
950
  </div>
951
- `}update(t){super.update(t),(t.has("disableStandardMode")||t.has("disableTheaterMode")||t.has("disableFullscreenMode"))&&this.computeAllowedModes(),t.has("opened")&&this.updateModeOnOpen()}updateModeOnOpen(){this.allowStandardMode?this.displayMode=t.FtInProductHelpMode.STANDARD:this.allowTheaterMode?this.displayMode=t.FtInProductHelpMode.THEATER:this.displayMode=t.FtInProductHelpMode.FULLSCREEN}computeAllowedModes(){this.allowStandardMode=!this.disableStandardMode&&(this.isTablet()||this.isDesktop()),this.allowTheaterMode=!this.disableTheaterMode&&this.isDesktop(),this.allowFullscreenMode=!this.disableFullscreenMode}onViewportChange(){this.computeAllowedModes(),this.allowStandardMode||this.displayMode!=t.FtInProductHelpMode.STANDARD||(this.displayMode=t.FtInProductHelpMode.THEATER),this.allowTheaterMode||this.displayMode!=t.FtInProductHelpMode.THEATER||(this.displayMode=t.FtInProductHelpMode.FULLSCREEN)}setMode(t){this.displayMode=t,this.dispatchVisibilityChange()}open(){this.opened=!0}close(){this.opened=!1,this.displayMode=t.FtInProductHelpMode.STANDARD,this.dispatchVisibilityChange()}dispatchVisibilityChange(){this.dispatchEvent(new l(this.opened,this.displayMode))}isTablet(){const t=getComputedStyle(this).getPropertyValue(c.tabletBreakpoint.name)||c.tabletBreakpoint.defaultValue;return window.matchMedia(`(min-width: ${t})`).matches}isDesktop(){const t=getComputedStyle(this).getPropertyValue(c.desktopBreakpoint.name)||c.desktopBreakpoint.defaultValue;return window.matchMedia(`(min-width: ${t})`).matches}navigateTo(t){this.iframe.contentWindow.postMessage({navigateTo:t},this.portalUrl)}openTab(){this.iframe.contentWindow.postMessage({openTabToCurrentUrl:!0},this.portalUrl)}}Or.elementDefinitions={"ft-button":pr,"ft-size-watcher":mr},Or.styles=s,xr([r.property()],Or.prototype,"portalUrl",void 0),xr([r.property({reflect:!0,type:Boolean})],Or.prototype,"opened",void 0),xr([r.property({reflect:!0})],Or.prototype,"displayMode",void 0),xr([r.property()],Or.prototype,"closeIcon",void 0),xr([r.property()],Or.prototype,"standardModeIcon",void 0),xr([r.property({type:Boolean})],Or.prototype,"disableStandardMode",void 0),xr([r.property()],Or.prototype,"theaterModeIcon",void 0),xr([r.property({type:Boolean})],Or.prototype,"disableTheaterMode",void 0),xr([r.property()],Or.prototype,"fullscreenModeIcon",void 0),xr([r.property({type:Boolean})],Or.prototype,"disableFullscreenMode",void 0),xr([r.property({type:Boolean})],Or.prototype,"enableHomeButton",void 0),xr([r.property()],Or.prototype,"homeIcon",void 0),xr([r.property({type:Boolean})],Or.prototype,"enableOpenTabButton",void 0),xr([r.property()],Or.prototype,"openTabIcon",void 0),xr([r.property()],Or.prototype,"iconVariant",void 0),xr([r.state()],Or.prototype,"allowStandardMode",void 0),xr([r.state()],Or.prototype,"allowTheaterMode",void 0),xr([r.state()],Or.prototype,"allowFullscreenMode",void 0),xr([r.query("iframe")],Or.prototype,"iframe",void 0),o.customElement("ft-in-product-help")(Or),t.FtInProductHelp=Or,t.FtInProductHelpCssVariables=c,t.FtInProductHelpVisibilityChange=l,t.styles=s}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litUnsafeHTML,ftGlobals.litClassMap);
951
+ `}update(t){super.update(t),(t.has("disableStandardMode")||t.has("disableTheaterMode")||t.has("disableFullscreenMode"))&&this.computeAllowedModes(),t.has("opened")&&this.updateModeOnOpen()}updateModeOnOpen(){this.allowStandardMode?this.displayMode=t.FtInProductHelpMode.STANDARD:this.allowTheaterMode?this.displayMode=t.FtInProductHelpMode.THEATER:this.displayMode=t.FtInProductHelpMode.FULLSCREEN}computeAllowedModes(){this.allowStandardMode=!this.disableStandardMode&&(this.isTablet()||this.isDesktop()),this.allowTheaterMode=!this.disableTheaterMode&&this.isDesktop(),this.allowFullscreenMode=!this.disableFullscreenMode}onViewportChange(){this.computeAllowedModes(),this.allowStandardMode||this.displayMode!=t.FtInProductHelpMode.STANDARD||(this.displayMode=t.FtInProductHelpMode.THEATER),this.allowTheaterMode||this.displayMode!=t.FtInProductHelpMode.THEATER||(this.displayMode=t.FtInProductHelpMode.FULLSCREEN)}setMode(t){this.displayMode=t,this.dispatchVisibilityChange()}open(){this.opened=!0}close(){this.opened=!1,this.displayMode=t.FtInProductHelpMode.STANDARD,this.dispatchVisibilityChange()}dispatchVisibilityChange(){this.dispatchEvent(new l(this.opened,this.displayMode))}isTablet(){const t=getComputedStyle(this).getPropertyValue(c.tabletBreakpoint.name)||c.tabletBreakpoint.defaultValue;return window.matchMedia(`(min-width: ${t})`).matches}isDesktop(){const t=getComputedStyle(this).getPropertyValue(c.desktopBreakpoint.name)||c.desktopBreakpoint.defaultValue;return window.matchMedia(`(min-width: ${t})`).matches}navigateTo(t){this.iframe.contentWindow.postMessage({navigateTo:t},this.portalUrl)}openTab(){this.iframe.contentWindow.postMessage({openTabToCurrentUrl:!0},this.portalUrl)}}Nr.elementDefinitions={"ft-button":dr,"ft-size-watcher":Or},Nr.styles=s,vr([r.property()],Nr.prototype,"portalUrl",void 0),vr([r.property({reflect:!0,type:Boolean})],Nr.prototype,"opened",void 0),vr([r.property({reflect:!0})],Nr.prototype,"displayMode",void 0),vr([r.property()],Nr.prototype,"closeIcon",void 0),vr([r.property()],Nr.prototype,"standardModeIcon",void 0),vr([r.property({type:Boolean})],Nr.prototype,"disableStandardMode",void 0),vr([r.property()],Nr.prototype,"theaterModeIcon",void 0),vr([r.property({type:Boolean})],Nr.prototype,"disableTheaterMode",void 0),vr([r.property()],Nr.prototype,"fullscreenModeIcon",void 0),vr([r.property({type:Boolean})],Nr.prototype,"disableFullscreenMode",void 0),vr([r.property({type:Boolean})],Nr.prototype,"enableHomeButton",void 0),vr([r.property()],Nr.prototype,"homeIcon",void 0),vr([r.property({type:Boolean})],Nr.prototype,"enableOpenTabButton",void 0),vr([r.property()],Nr.prototype,"openTabIcon",void 0),vr([r.property()],Nr.prototype,"iconVariant",void 0),vr([r.state()],Nr.prototype,"allowStandardMode",void 0),vr([r.state()],Nr.prototype,"allowTheaterMode",void 0),vr([r.state()],Nr.prototype,"allowFullscreenMode",void 0),vr([r.query("iframe")],Nr.prototype,"iframe",void 0),o.customElement("ft-in-product-help")(Nr),t.FtInProductHelp=Nr,t.FtInProductHelpCssVariables=c,t.FtInProductHelpVisibilityChange=l,t.styles=s}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litUnsafeHTML,ftGlobals.litClassMap);
@@ -707,7 +707,7 @@ const tr=Symbol.for(""),or=t=>{if(t?.r===tr)return t?._$litStatic$},er=t=>({_$li
707
707
  }
708
708
 
709
709
  .ft-tooltip {
710
- position: absolute;
710
+ position: fixed;
711
711
  box-sizing: border-box;
712
712
  overflow: hidden;
713
713
  width: max-content;
@@ -725,7 +725,7 @@ const tr=Symbol.for(""),or=t=>{if(t?.r===tr)return t?._$litStatic$},er=t=>({_$li
725
725
  position: relative;
726
726
  word-break: break-word;
727
727
  }
728
- `,yr=["start","end"],gr=["top","right","bottom","left"].reduce(((t,o)=>t.concat(o,o+"-"+yr[0],o+"-"+yr[1])),[]),br=Math.min,mr=Math.max,xr=Math.round,Or=t=>({x:t,y:t}),vr={left:"right",right:"left",bottom:"top",top:"bottom"},Sr={start:"end",end:"start"};function wr(t,o,e){return mr(t,br(o,e))}function Nr(t,o){return"function"==typeof t?t(o):t}function Cr(t){return t.split("-")[0]}function $r(t){return t.split("-")[1]}function Er(t){return"x"===t?"y":"x"}function Rr(t){return"y"===t?"height":"width"}function Ur(t){return["top","bottom"].includes(Cr(t))?"y":"x"}function Ir(t){return Er(Ur(t))}function kr(t){return t.replace(/left|right|bottom|top/g,(t=>vr[t]))}function Lr(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Wr(t,o,e){let{reference:i,floating:r}=t;const n=Ur(o),a=Ir(o),s=Rr(a),l=Cr(o),c="y"===n,p=i.x+i.width/2-r.width/2,f=i.y+i.height/2-r.height/2,h=i[s]/2-r[s]/2;let d;switch(l){case"top":d={x:p,y:i.y-r.height};break;case"bottom":d={x:p,y:i.y+i.height};break;case"right":d={x:i.x+i.width,y:f};break;case"left":d={x:i.x-r.width,y:f};break;default:d={x:i.x,y:i.y}}switch($r(o)){case"start":d[a]-=h*(e&&c?-1:1);break;case"end":d[a]+=h*(e&&c?-1:1)}return d}async function zr(t,o){var e;void 0===o&&(o={});const{x:i,y:r,platform:n,rects:a,elements:s,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:p="viewport",elementContext:f="floating",altBoundary:h=!1,padding:d=0}=Nr(o,t),u=function(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}(d),y=s[h?"floating"===f?"reference":"floating":f],g=Lr(await n.getClippingRect({element:null==(e=await(null==n.isElement?void 0:n.isElement(y)))||e?y:y.contextElement||await(null==n.getDocumentElement?void 0:n.getDocumentElement(s.floating)),boundary:c,rootBoundary:p,strategy:l})),b="floating"===f?{...a.floating,x:i,y:r}:a.reference,m=await(null==n.getOffsetParent?void 0:n.getOffsetParent(s.floating)),x=await(null==n.isElement?void 0:n.isElement(m))&&await(null==n.getScale?void 0:n.getScale(m))||{x:1,y:1},O=Lr(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b,offsetParent:m,strategy:l}):b);return{top:(g.top-O.top+u.top)/x.y,bottom:(O.bottom-g.bottom+u.bottom)/x.y,left:(g.left-O.left+u.left)/x.x,right:(O.right-g.right+u.right)/x.x}}function Zr(t,o,e){return(t?[...e.filter((o=>$r(o)===t)),...e.filter((o=>$r(o)!==t))]:e.filter((t=>Cr(t)===t))).filter((e=>!t||($r(e)===t||!!o&&function(t){return t.replace(/start|end/g,(t=>Sr[t]))}(e)!==e)))}const Fr=function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(o){var e,i,r;const{rects:n,middlewareData:a,placement:s,platform:l,elements:c}=o,{crossAxis:p=!1,alignment:f,allowedPlacements:h=gr,autoAlignment:d=!0,...u}=Nr(t,o),y=void 0!==f||h===gr?Zr(f||null,d,h):h,g=await zr(o,u),b=(null==(e=a.autoPlacement)?void 0:e.index)||0,m=y[b];if(null==m)return{};const x=function(t,o,e){void 0===e&&(e=!1);const i=$r(t),r=Ir(t),n=Rr(r);let a="x"===r?i===(e?"end":"start")?"right":"left":"start"===i?"bottom":"top";return o.reference[n]>o.floating[n]&&(a=kr(a)),[a,kr(a)]}(m,n,await(null==l.isRTL?void 0:l.isRTL(c.floating)));if(s!==m)return{reset:{placement:y[0]}};const O=[g[Cr(m)],g[x[0]],g[x[1]]],v=[...(null==(i=a.autoPlacement)?void 0:i.overflows)||[],{placement:m,overflows:O}],S=y[b+1];if(S)return{data:{index:b+1,overflows:v},reset:{placement:S}};const w=v.map((t=>{const o=$r(t.placement);return[t.placement,o&&p?t.overflows.slice(0,2).reduce(((t,o)=>t+o),0):t.overflows[0],t.overflows]})).sort(((t,o)=>t[1]-o[1])),N=w.filter((t=>t[2].slice(0,$r(t[0])?2:3).every((t=>t<=0)))),C=(null==(r=N[0])?void 0:r[0])||w[0][0];return C!==s?{data:{index:b+1,overflows:v},reset:{placement:C}}:{}}}};function Kr(t){return Ar(t)?(t.nodeName||"").toLowerCase():"#document"}function Br(t){var o;return(null==t||null==(o=t.ownerDocument)?void 0:o.defaultView)||window}function Mr(t){var o;return null==(o=(Ar(t)?t.ownerDocument:t.document)||window.document)?void 0:o.documentElement}function Ar(t){return t instanceof Node||t instanceof Br(t).Node}function Dr(t){return t instanceof Element||t instanceof Br(t).Element}function Pr(t){return t instanceof HTMLElement||t instanceof Br(t).HTMLElement}function Hr(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof Br(t).ShadowRoot)}function Tr(t){const{overflow:o,overflowX:e,overflowY:i,display:r}=Yr(t);return/auto|scroll|overlay|hidden|clip/.test(o+i+e)&&!["inline","contents"].includes(r)}function jr(t){return["table","td","th"].includes(Kr(t))}function _r(t){const o=Gr(),e=Yr(t);return"none"!==e.transform||"none"!==e.perspective||!!e.containerType&&"normal"!==e.containerType||!o&&!!e.backdropFilter&&"none"!==e.backdropFilter||!o&&!!e.filter&&"none"!==e.filter||["transform","perspective","filter"].some((t=>(e.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(e.contain||"").includes(t)))}function Gr(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Vr(t){return["html","body","#document"].includes(Kr(t))}function Yr(t){return Br(t).getComputedStyle(t)}function Jr(t){return Dr(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Xr(t){if("html"===Kr(t))return t;const o=t.assignedSlot||t.parentNode||Hr(t)&&t.host||Mr(t);return Hr(o)?o.host:o}function qr(t){const o=Xr(t);return Vr(o)?t.ownerDocument?t.ownerDocument.body:t.body:Pr(o)&&Tr(o)?o:qr(o)}function Qr(t,o,e){var i;void 0===o&&(o=[]),void 0===e&&(e=!0);const r=qr(t),n=r===(null==(i=t.ownerDocument)?void 0:i.body),a=Br(r);return n?o.concat(a,a.visualViewport||[],Tr(r)?r:[],a.frameElement&&e?Qr(a.frameElement):[]):o.concat(r,Qr(r,[],e))}function tn(t){const o=Yr(t);let e=parseFloat(o.width)||0,i=parseFloat(o.height)||0;const r=Pr(t),n=r?t.offsetWidth:e,a=r?t.offsetHeight:i,s=xr(e)!==n||xr(i)!==a;return s&&(e=n,i=a),{width:e,height:i,$:s}}function on(t){return Dr(t)?t:t.contextElement}function en(t){const o=on(t);if(!Pr(o))return Or(1);const e=o.getBoundingClientRect(),{width:i,height:r,$:n}=tn(o);let a=(n?xr(e.width):e.width)/i,s=(n?xr(e.height):e.height)/r;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const rn=Or(0);function nn(t){const o=Br(t);return Gr()&&o.visualViewport?{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}:rn}function an(t,o,e,i){void 0===o&&(o=!1),void 0===e&&(e=!1);const r=t.getBoundingClientRect(),n=on(t);let a=Or(1);o&&(i?Dr(i)&&(a=en(i)):a=en(t));const s=function(t,o,e){return void 0===o&&(o=!1),!(!e||o&&e!==Br(t))&&o}(n,e,i)?nn(n):Or(0);let l=(r.left+s.x)/a.x,c=(r.top+s.y)/a.y,p=r.width/a.x,f=r.height/a.y;if(n){const t=Br(n),o=i&&Dr(i)?Br(i):i;let e=t.frameElement;for(;e&&i&&o!==t;){const t=en(e),o=e.getBoundingClientRect(),i=Yr(e),r=o.left+(e.clientLeft+parseFloat(i.paddingLeft))*t.x,n=o.top+(e.clientTop+parseFloat(i.paddingTop))*t.y;l*=t.x,c*=t.y,p*=t.x,f*=t.y,l+=r,c+=n,e=Br(e).frameElement}}return Lr({width:p,height:f,x:l,y:c})}function sn(t){return an(Mr(t)).left+Jr(t).scrollLeft}function ln(t,o,e){let i;if("viewport"===o)i=function(t,o){const e=Br(t),i=Mr(t),r=e.visualViewport;let n=i.clientWidth,a=i.clientHeight,s=0,l=0;if(r){n=r.width,a=r.height;const t=Gr();(!t||t&&"fixed"===o)&&(s=r.offsetLeft,l=r.offsetTop)}return{width:n,height:a,x:s,y:l}}(t,e);else if("document"===o)i=function(t){const o=Mr(t),e=Jr(t),i=t.ownerDocument.body,r=mr(o.scrollWidth,o.clientWidth,i.scrollWidth,i.clientWidth),n=mr(o.scrollHeight,o.clientHeight,i.scrollHeight,i.clientHeight);let a=-e.scrollLeft+sn(t);const s=-e.scrollTop;return"rtl"===Yr(i).direction&&(a+=mr(o.clientWidth,i.clientWidth)-r),{width:r,height:n,x:a,y:s}}(Mr(t));else if(Dr(o))i=function(t,o){const e=an(t,!0,"fixed"===o),i=e.top+t.clientTop,r=e.left+t.clientLeft,n=Pr(t)?en(t):Or(1);return{width:t.clientWidth*n.x,height:t.clientHeight*n.y,x:r*n.x,y:i*n.y}}(o,e);else{const e=nn(t);i={...o,x:o.x-e.x,y:o.y-e.y}}return Lr(i)}function cn(t,o){const e=Xr(t);return!(e===o||!Dr(e)||Vr(e))&&("fixed"===Yr(e).position||cn(e,o))}function pn(t,o,e){const i=Pr(o),r=Mr(o),n="fixed"===e,a=an(t,!0,n,o);let s={scrollLeft:0,scrollTop:0};const l=Or(0);if(i||!i&&!n)if(("body"!==Kr(o)||Tr(r))&&(s=Jr(o)),i){const t=an(o,!0,n,o);l.x=t.x+o.clientLeft,l.y=t.y+o.clientTop}else r&&(l.x=sn(r));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function fn(t,o){return Pr(t)&&"fixed"!==Yr(t).position?o?o(t):t.offsetParent:null}function hn(t,o){const e=Br(t);if(!Pr(t))return e;let i=fn(t,o);for(;i&&jr(i)&&"static"===Yr(i).position;)i=fn(i,o);return i&&("html"===Kr(i)||"body"===Kr(i)&&"static"===Yr(i).position&&!_r(i))?e:i||function(t){let o=Xr(t);for(;Pr(o)&&!Vr(o);){if(_r(o))return o;o=Xr(o)}return null}(t)||e}const dn={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:o,offsetParent:e,strategy:i}=t;const r=Pr(e),n=Mr(e);if(e===n)return o;let a={scrollLeft:0,scrollTop:0},s=Or(1);const l=Or(0);if((r||!r&&"fixed"!==i)&&(("body"!==Kr(e)||Tr(n))&&(a=Jr(e)),Pr(e))){const t=an(e);s=en(e),l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}return{width:o.width*s.x,height:o.height*s.y,x:o.x*s.x-a.scrollLeft*s.x+l.x,y:o.y*s.y-a.scrollTop*s.y+l.y}},getDocumentElement:Mr,getClippingRect:function(t){let{element:o,boundary:e,rootBoundary:i,strategy:r}=t;const n=[..."clippingAncestors"===e?function(t,o){const e=o.get(t);if(e)return e;let i=Qr(t,[],!1).filter((t=>Dr(t)&&"body"!==Kr(t))),r=null;const n="fixed"===Yr(t).position;let a=n?Xr(t):t;for(;Dr(a)&&!Vr(a);){const o=Yr(a),e=_r(a);e||"fixed"!==o.position||(r=null),(n?!e&&!r:!e&&"static"===o.position&&r&&["absolute","fixed"].includes(r.position)||Tr(a)&&!e&&cn(t,a))?i=i.filter((t=>t!==a)):r=o,a=Xr(a)}return o.set(t,i),i}(o,this._c):[].concat(e),i],a=n[0],s=n.reduce(((t,e)=>{const i=ln(o,e,r);return t.top=mr(i.top,t.top),t.right=br(i.right,t.right),t.bottom=br(i.bottom,t.bottom),t.left=mr(i.left,t.left),t}),ln(o,a,r));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:hn,getElementRects:async function(t){let{reference:o,floating:e,strategy:i}=t;const r=this.getOffsetParent||hn,n=this.getDimensions;return{reference:pn(o,await r(e),i),floating:{x:0,y:0,...await n(e)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){return tn(t)},getScale:en,isElement:Dr,isRTL:function(t){return"rtl"===Yr(t).direction}},un=(t,o,e)=>{const i=new Map,r={platform:dn,...e},n={...r.platform,_c:i};return(async(t,o,e)=>{const{placement:i="bottom",strategy:r="absolute",middleware:n=[],platform:a}=e,s=n.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(o));let c=await a.getElementRects({reference:t,floating:o,strategy:r}),{x:p,y:f}=Wr(c,i,l),h=i,d={},u=0;for(let e=0;e<s.length;e++){const{name:n,fn:y}=s[e],{x:g,y:b,data:m,reset:x}=await y({x:p,y:f,initialPlacement:i,placement:h,strategy:r,middlewareData:d,rects:c,platform:a,elements:{reference:t,floating:o}});p=null!=g?g:p,f=null!=b?b:f,d={...d,[n]:{...d[n],...m}},x&&u<=50&&(u++,"object"==typeof x&&(x.placement&&(h=x.placement),x.rects&&(c=!0===x.rects?await a.getElementRects({reference:t,floating:o,strategy:r}):x.rects),({x:p,y:f}=Wr(c,h,l))),e=-1)}return{x:p,y:f,placement:h,strategy:r,middlewareData:d}})(t,o,{...r,platform:n})};var yn=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class gn extends Zo{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 U,this.revealDebouncer=new U}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return to`
728
+ `,yr=["start","end"],gr=["top","right","bottom","left"].reduce(((t,o)=>t.concat(o,o+"-"+yr[0],o+"-"+yr[1])),[]),br=Math.min,mr=Math.max,xr=Math.round,Or=t=>({x:t,y:t}),vr={left:"right",right:"left",bottom:"top",top:"bottom"},Sr={start:"end",end:"start"};function wr(t,o,e){return mr(t,br(o,e))}function Nr(t,o){return"function"==typeof t?t(o):t}function Cr(t){return t.split("-")[0]}function $r(t){return t.split("-")[1]}function Er(t){return"x"===t?"y":"x"}function Rr(t){return"y"===t?"height":"width"}function Ur(t){return["top","bottom"].includes(Cr(t))?"y":"x"}function Ir(t){return Er(Ur(t))}function kr(t){return t.replace(/left|right|bottom|top/g,(t=>vr[t]))}function Lr(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Wr(t,o,e){let{reference:i,floating:r}=t;const n=Ur(o),a=Ir(o),s=Rr(a),l=Cr(o),c="y"===n,p=i.x+i.width/2-r.width/2,f=i.y+i.height/2-r.height/2,h=i[s]/2-r[s]/2;let d;switch(l){case"top":d={x:p,y:i.y-r.height};break;case"bottom":d={x:p,y:i.y+i.height};break;case"right":d={x:i.x+i.width,y:f};break;case"left":d={x:i.x-r.width,y:f};break;default:d={x:i.x,y:i.y}}switch($r(o)){case"start":d[a]-=h*(e&&c?-1:1);break;case"end":d[a]+=h*(e&&c?-1:1)}return d}async function zr(t,o){var e;void 0===o&&(o={});const{x:i,y:r,platform:n,rects:a,elements:s,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:p="viewport",elementContext:f="floating",altBoundary:h=!1,padding:d=0}=Nr(o,t),u=function(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}(d),y=s[h?"floating"===f?"reference":"floating":f],g=Lr(await n.getClippingRect({element:null==(e=await(null==n.isElement?void 0:n.isElement(y)))||e?y:y.contextElement||await(null==n.getDocumentElement?void 0:n.getDocumentElement(s.floating)),boundary:c,rootBoundary:p,strategy:l})),b="floating"===f?{...a.floating,x:i,y:r}:a.reference,m=await(null==n.getOffsetParent?void 0:n.getOffsetParent(s.floating)),x=await(null==n.isElement?void 0:n.isElement(m))&&await(null==n.getScale?void 0:n.getScale(m))||{x:1,y:1},O=Lr(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b,offsetParent:m,strategy:l}):b);return{top:(g.top-O.top+u.top)/x.y,bottom:(O.bottom-g.bottom+u.bottom)/x.y,left:(g.left-O.left+u.left)/x.x,right:(O.right-g.right+u.right)/x.x}}function Zr(t,o,e){return(t?[...e.filter((o=>$r(o)===t)),...e.filter((o=>$r(o)!==t))]:e.filter((t=>Cr(t)===t))).filter((e=>!t||($r(e)===t||!!o&&function(t){return t.replace(/start|end/g,(t=>Sr[t]))}(e)!==e)))}const Fr=function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(o){var e,i,r;const{rects:n,middlewareData:a,placement:s,platform:l,elements:c}=o,{crossAxis:p=!1,alignment:f,allowedPlacements:h=gr,autoAlignment:d=!0,...u}=Nr(t,o),y=void 0!==f||h===gr?Zr(f||null,d,h):h,g=await zr(o,u),b=(null==(e=a.autoPlacement)?void 0:e.index)||0,m=y[b];if(null==m)return{};const x=function(t,o,e){void 0===e&&(e=!1);const i=$r(t),r=Ir(t),n=Rr(r);let a="x"===r?i===(e?"end":"start")?"right":"left":"start"===i?"bottom":"top";return o.reference[n]>o.floating[n]&&(a=kr(a)),[a,kr(a)]}(m,n,await(null==l.isRTL?void 0:l.isRTL(c.floating)));if(s!==m)return{reset:{placement:y[0]}};const O=[g[Cr(m)],g[x[0]],g[x[1]]],v=[...(null==(i=a.autoPlacement)?void 0:i.overflows)||[],{placement:m,overflows:O}],S=y[b+1];if(S)return{data:{index:b+1,overflows:v},reset:{placement:S}};const w=v.map((t=>{const o=$r(t.placement);return[t.placement,o&&p?t.overflows.slice(0,2).reduce(((t,o)=>t+o),0):t.overflows[0],t.overflows]})).sort(((t,o)=>t[1]-o[1])),N=w.filter((t=>t[2].slice(0,$r(t[0])?2:3).every((t=>t<=0)))),C=(null==(r=N[0])?void 0:r[0])||w[0][0];return C!==s?{data:{index:b+1,overflows:v},reset:{placement:C}}:{}}}};function Kr(t){return Ar(t)?(t.nodeName||"").toLowerCase():"#document"}function Br(t){var o;return(null==t||null==(o=t.ownerDocument)?void 0:o.defaultView)||window}function Mr(t){var o;return null==(o=(Ar(t)?t.ownerDocument:t.document)||window.document)?void 0:o.documentElement}function Ar(t){return t instanceof Node||t instanceof Br(t).Node}function Dr(t){return t instanceof Element||t instanceof Br(t).Element}function Pr(t){return t instanceof HTMLElement||t instanceof Br(t).HTMLElement}function Hr(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof Br(t).ShadowRoot)}function Tr(t){const{overflow:o,overflowX:e,overflowY:i,display:r}=Yr(t);return/auto|scroll|overlay|hidden|clip/.test(o+i+e)&&!["inline","contents"].includes(r)}function jr(t){return["table","td","th"].includes(Kr(t))}function _r(t){const o=Gr(),e=Yr(t);return"none"!==e.transform||"none"!==e.perspective||!!e.containerType&&"normal"!==e.containerType||!o&&!!e.backdropFilter&&"none"!==e.backdropFilter||!o&&!!e.filter&&"none"!==e.filter||["transform","perspective","filter"].some((t=>(e.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(e.contain||"").includes(t)))}function Gr(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Vr(t){return["html","body","#document"].includes(Kr(t))}function Yr(t){return Br(t).getComputedStyle(t)}function Jr(t){return Dr(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Xr(t){if("html"===Kr(t))return t;const o=t.assignedSlot||t.parentNode||Hr(t)&&t.host||Mr(t);return Hr(o)?o.host:o}function qr(t){const o=Xr(t);return Vr(o)?t.ownerDocument?t.ownerDocument.body:t.body:Pr(o)&&Tr(o)?o:qr(o)}function Qr(t,o,e){var i;void 0===o&&(o=[]),void 0===e&&(e=!0);const r=qr(t),n=r===(null==(i=t.ownerDocument)?void 0:i.body),a=Br(r);return n?o.concat(a,a.visualViewport||[],Tr(r)?r:[],a.frameElement&&e?Qr(a.frameElement):[]):o.concat(r,Qr(r,[],e))}function tn(t){const o=Yr(t);let e=parseFloat(o.width)||0,i=parseFloat(o.height)||0;const r=Pr(t),n=r?t.offsetWidth:e,a=r?t.offsetHeight:i,s=xr(e)!==n||xr(i)!==a;return s&&(e=n,i=a),{width:e,height:i,$:s}}function on(t){return Dr(t)?t:t.contextElement}function en(t){const o=on(t);if(!Pr(o))return Or(1);const e=o.getBoundingClientRect(),{width:i,height:r,$:n}=tn(o);let a=(n?xr(e.width):e.width)/i,s=(n?xr(e.height):e.height)/r;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const rn=Or(0);function nn(t){const o=Br(t);return Gr()&&o.visualViewport?{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}:rn}function an(t,o,e,i){void 0===o&&(o=!1),void 0===e&&(e=!1);const r=t.getBoundingClientRect(),n=on(t);let a=Or(1);o&&(i?Dr(i)&&(a=en(i)):a=en(t));const s=function(t,o,e){return void 0===o&&(o=!1),!(!e||o&&e!==Br(t))&&o}(n,e,i)?nn(n):Or(0);let l=(r.left+s.x)/a.x,c=(r.top+s.y)/a.y,p=r.width/a.x,f=r.height/a.y;if(n){const t=Br(n),o=i&&Dr(i)?Br(i):i;let e=t.frameElement;for(;e&&i&&o!==t;){const t=en(e),o=e.getBoundingClientRect(),i=Yr(e),r=o.left+(e.clientLeft+parseFloat(i.paddingLeft))*t.x,n=o.top+(e.clientTop+parseFloat(i.paddingTop))*t.y;l*=t.x,c*=t.y,p*=t.x,f*=t.y,l+=r,c+=n,e=Br(e).frameElement}}return Lr({width:p,height:f,x:l,y:c})}function sn(t){return an(Mr(t)).left+Jr(t).scrollLeft}function ln(t,o,e){let i;if("viewport"===o)i=function(t,o){const e=Br(t),i=Mr(t),r=e.visualViewport;let n=i.clientWidth,a=i.clientHeight,s=0,l=0;if(r){n=r.width,a=r.height;const t=Gr();(!t||t&&"fixed"===o)&&(s=r.offsetLeft,l=r.offsetTop)}return{width:n,height:a,x:s,y:l}}(t,e);else if("document"===o)i=function(t){const o=Mr(t),e=Jr(t),i=t.ownerDocument.body,r=mr(o.scrollWidth,o.clientWidth,i.scrollWidth,i.clientWidth),n=mr(o.scrollHeight,o.clientHeight,i.scrollHeight,i.clientHeight);let a=-e.scrollLeft+sn(t);const s=-e.scrollTop;return"rtl"===Yr(i).direction&&(a+=mr(o.clientWidth,i.clientWidth)-r),{width:r,height:n,x:a,y:s}}(Mr(t));else if(Dr(o))i=function(t,o){const e=an(t,!0,"fixed"===o),i=e.top+t.clientTop,r=e.left+t.clientLeft,n=Pr(t)?en(t):Or(1);return{width:t.clientWidth*n.x,height:t.clientHeight*n.y,x:r*n.x,y:i*n.y}}(o,e);else{const e=nn(t);i={...o,x:o.x-e.x,y:o.y-e.y}}return Lr(i)}function cn(t,o){const e=Xr(t);return!(e===o||!Dr(e)||Vr(e))&&("fixed"===Yr(e).position||cn(e,o))}function pn(t,o,e){const i=Pr(o),r=Mr(o),n="fixed"===e,a=an(t,!0,n,o);let s={scrollLeft:0,scrollTop:0};const l=Or(0);if(i||!i&&!n)if(("body"!==Kr(o)||Tr(r))&&(s=Jr(o)),i){const t=an(o,!0,n,o);l.x=t.x+o.clientLeft,l.y=t.y+o.clientTop}else r&&(l.x=sn(r));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function fn(t,o){return Pr(t)&&"fixed"!==Yr(t).position?o?o(t):t.offsetParent:null}function hn(t,o){const e=Br(t);if(!Pr(t))return e;let i=fn(t,o);for(;i&&jr(i)&&"static"===Yr(i).position;)i=fn(i,o);return i&&("html"===Kr(i)||"body"===Kr(i)&&"static"===Yr(i).position&&!_r(i))?e:i||function(t){let o=Xr(t);for(;Pr(o)&&!Vr(o);){if(_r(o))return o;o=Xr(o)}return null}(t)||e}const dn={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:o,offsetParent:e,strategy:i}=t;const r=Pr(e),n=Mr(e);if(e===n)return o;let a={scrollLeft:0,scrollTop:0},s=Or(1);const l=Or(0);if((r||!r&&"fixed"!==i)&&(("body"!==Kr(e)||Tr(n))&&(a=Jr(e)),Pr(e))){const t=an(e);s=en(e),l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}return{width:o.width*s.x,height:o.height*s.y,x:o.x*s.x-a.scrollLeft*s.x+l.x,y:o.y*s.y-a.scrollTop*s.y+l.y}},getDocumentElement:Mr,getClippingRect:function(t){let{element:o,boundary:e,rootBoundary:i,strategy:r}=t;const n=[..."clippingAncestors"===e?function(t,o){const e=o.get(t);if(e)return e;let i=Qr(t,[],!1).filter((t=>Dr(t)&&"body"!==Kr(t))),r=null;const n="fixed"===Yr(t).position;let a=n?Xr(t):t;for(;Dr(a)&&!Vr(a);){const o=Yr(a),e=_r(a);e||"fixed"!==o.position||(r=null),(n?!e&&!r:!e&&"static"===o.position&&r&&["absolute","fixed"].includes(r.position)||Tr(a)&&!e&&cn(t,a))?i=i.filter((t=>t!==a)):r=o,a=Xr(a)}return o.set(t,i),i}(o,this._c):[].concat(e),i],a=n[0],s=n.reduce(((t,e)=>{const i=ln(o,e,r);return t.top=mr(i.top,t.top),t.right=br(i.right,t.right),t.bottom=br(i.bottom,t.bottom),t.left=mr(i.left,t.left),t}),ln(o,a,r));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:hn,getElementRects:async function(t){let{reference:o,floating:e,strategy:i}=t;const r=this.getOffsetParent||hn,n=this.getDimensions;return{reference:pn(o,await r(e),i),floating:{x:0,y:0,...await n(e)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){return tn(t)},getScale:en,isElement:Dr,isRTL:function(t){return"rtl"===Yr(t).direction}},un=(t,o,e)=>{const i=new Map,r={platform:dn,...e},n={...r.platform,_c:i};return(async(t,o,e)=>{const{placement:i="bottom",strategy:r="absolute",middleware:n=[],platform:a}=e,s=n.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(o));let c=await a.getElementRects({reference:t,floating:o,strategy:r}),{x:p,y:f}=Wr(c,i,l),h=i,d={},u=0;for(let e=0;e<s.length;e++){const{name:n,fn:y}=s[e],{x:g,y:b,data:m,reset:x}=await y({x:p,y:f,initialPlacement:i,placement:h,strategy:r,middlewareData:d,rects:c,platform:a,elements:{reference:t,floating:o}});p=null!=g?g:p,f=null!=b?b:f,d={...d,[n]:{...d[n],...m}},x&&u<=50&&(u++,"object"==typeof x&&(x.placement&&(h=x.placement),x.rects&&(c=!0===x.rects?await a.getElementRects({reference:t,floating:o,strategy:r}):x.rects),({x:p,y:f}=Wr(c,h,l))),e=-1)}return{x:p,y:f,placement:h,strategy:r,middlewareData:d}})(t,o,{...r,platform:n})};function yn(t){return function(t){for(let o=t;o;o=gn(o))if(o instanceof Element&&"none"===getComputedStyle(o).display)return null;for(let o=gn(t);o;o=gn(o)){if(!(o instanceof Element))continue;const t=getComputedStyle(o);if("contents"!==t.display){if("static"!==t.position||"none"!==t.filter)return o;if("BODY"===o.tagName)return o}}return null}(t)}function gn(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}var bn=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class mn extends Zo{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 U,this.revealDebouncer=new U}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return to`
729
729
  <div part="container"
730
730
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
731
731
  @mouseenter=${this.onHover}
@@ -733,7 +733,7 @@ const tr=Symbol.for(""),or=t=>{if(t?.r===tr)return t?._$litStatic$},er=t=>({_$li
733
733
  @focusin=${this.onHover}
734
734
  @focusout=${this.onOut}
735
735
  @touchstart=${this.onTouch}>
736
- <slot></slot>
736
+ <slot part="slot"></slot>
737
737
  <div part="tooltip" role="tooltip" inert
738
738
  class="ft-tooltip ft-tooltip--${this.validPosition}"
739
739
  ?hidden=${!this.visible}>
@@ -743,14 +743,14 @@ const tr=Symbol.for(""),or=t=>{if(t?.r===tr)return t?._$litStatic$},er=t=>({_$li
743
743
  </div>
744
744
  </div>
745
745
  </div>
746
- `}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((o=>t.has(o)))&&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(){var t;this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",un(this.slottedElement,this.tooltip,{middleware:[(t={crossAxis:!0},void 0===t&&(t={}),{name:"shift",options:t,async fn(o){const{x:e,y:i,placement:r}=o,{mainAxis:n=!0,crossAxis:a=!1,limiter:s={fn:t=>{let{x:o,y:e}=t;return{x:o,y:e}}},...l}=Nr(t,o),c={x:e,y:i},p=await zr(o,l),f=Ur(Cr(r)),h=Er(f);let d=c[h],u=c[f];if(n){const t="y"===h?"bottom":"right";d=wr(d+p["y"===h?"top":"left"],d,d-p[t])}if(a){const t="y"===f?"bottom":"right";u=wr(u+p["y"===f?"top":"left"],u,u-p[t])}const y=s.fn({...o,[h]:d,[f]:u});return{...y,data:{x:y.x-e,y:y.y-i}}}}),Fr({allowedPlacements:[this.position]})]}).then((({x:t,y:o})=>{this.tooltip&&(this.tooltip.style.left=`${t}px`,this.tooltip.style.top=`${o}px`)}))),this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(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,o){return Math.max(t,Math.min(0,-o))}}gn.elementDefinitions={"ft-typography":sr},gn.styles=ur,yn([N()],gn.prototype,"text",void 0),yn([N({type:Boolean})],gn.prototype,"manual",void 0),yn([N({type:Boolean})],gn.prototype,"inline",void 0),yn([N({type:Number})],gn.prototype,"delay",void 0),yn([N()],gn.prototype,"position",void 0),yn([function(t){return(o,e)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([name])");return E(0,0,{get(){const o=this.renderRoot?.querySelector(r);return o?.assignedNodes(t)??[]}})}}()],gn.prototype,"slotNodes",void 0),yn([R(".ft-tooltip--container")],gn.prototype,"container",void 0),yn([R(".ft-tooltip")],gn.prototype,"tooltip",void 0),yn([R(".ft-tooltip--content")],gn.prototype,"tooltipContent",void 0),yn([C()],gn.prototype,"visible",void 0),yn([$({passive:!0})],gn.prototype,"onTouch",null),yn([$({passive:!0})],gn.prototype,"onHover",null),yn([$({passive:!0})],gn.prototype,"onOut",null),k("ft-tooltip")(gn);class bn extends Zo{render(){return to`
746
+ `}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((o=>t.has(o)))&&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(){var t;this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",un(this.slottedElement,this.tooltip,{platform:{...dn,getOffsetParent:t=>dn.getOffsetParent(t,yn)},middleware:[(t={crossAxis:!0},void 0===t&&(t={}),{name:"shift",options:t,async fn(o){const{x:e,y:i,placement:r}=o,{mainAxis:n=!0,crossAxis:a=!1,limiter:s={fn:t=>{let{x:o,y:e}=t;return{x:o,y:e}}},...l}=Nr(t,o),c={x:e,y:i},p=await zr(o,l),f=Ur(Cr(r)),h=Er(f);let d=c[h],u=c[f];if(n){const t="y"===h?"bottom":"right";d=wr(d+p["y"===h?"top":"left"],d,d-p[t])}if(a){const t="y"===f?"bottom":"right";u=wr(u+p["y"===f?"top":"left"],u,u-p[t])}const y=s.fn({...o,[h]:d,[f]:u});return{...y,data:{x:y.x-e,y:y.y-i}}}}),Fr({allowedPlacements:[this.position]})]}).then((({x:t,y:o})=>{this.tooltip&&(this.tooltip.style.left=`${t}px`,this.tooltip.style.top=`${o}px`)}))),this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(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,o){return Math.max(t,Math.min(0,-o))}}mn.elementDefinitions={"ft-typography":sr},mn.styles=ur,bn([N()],mn.prototype,"text",void 0),bn([N({type:Boolean})],mn.prototype,"manual",void 0),bn([N({type:Boolean})],mn.prototype,"inline",void 0),bn([N({type:Number})],mn.prototype,"delay",void 0),bn([N()],mn.prototype,"position",void 0),bn([function(t){return(o,e)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([name])");return E(0,0,{get(){const o=this.renderRoot?.querySelector(r);return o?.assignedNodes(t)??[]}})}}()],mn.prototype,"slotNodes",void 0),bn([R(".ft-tooltip--container")],mn.prototype,"container",void 0),bn([R(".ft-tooltip")],mn.prototype,"tooltip",void 0),bn([R(".ft-tooltip--content")],mn.prototype,"tooltipContent",void 0),bn([C()],mn.prototype,"visible",void 0),bn([$({passive:!0})],mn.prototype,"onTouch",null),bn([$({passive:!0})],mn.prototype,"onHover",null),bn([$({passive:!0})],mn.prototype,"onOut",null),k("ft-tooltip")(mn);class xn extends Zo{render(){return to`
747
747
  <div class="ft-loader">
748
748
  <div></div>
749
749
  <div></div>
750
750
  <div></div>
751
751
  <div></div>
752
752
  </div>
753
- `}}bn.styles=Pi,k("ft-loader")(bn);var mn=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class xn extends(function(t,o){return class extends t{static get formAssociated(){return!0}get form(){return this[Go].form}constructor(...t){super(t),this[Go]=this.attachInternals(),this[Go].role=o}setFormValue(t){this[Go].setFormValue(t)}}}(Zo,"button")){constructor(){super(...arguments),this.role="button",this.type="button",this.disabled=!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 o;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):"submit"==this.type&&(null===(o=this.form)||void 0===o||o.requestSubmit())}}render(){return this.addTooltipIfNeeded(to`
753
+ `}}xn.styles=Pi,k("ft-loader")(xn);var On=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class vn extends(function(t,o){return class extends t{static get formAssociated(){return!0}get form(){return this[Go].form}constructor(...t){super(t),this[Go]=this.attachInternals(),this[Go].role=o}setFormValue(t){this[Go].setFormValue(t)}}}(Zo,"button")){constructor(){super(...arguments),this.role="button",this.type="button",this.disabled=!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 o;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):"submit"==this.type&&(null===(o=this.form)||void 0===o||o.requestSubmit())}}render(){return this.addTooltipIfNeeded(to`
754
754
  <button part="button"
755
755
  class="${ye(this.buttonClasses)}"
756
756
  aria-label="${this.getLabel()}"
@@ -773,7 +773,7 @@ const tr=Symbol.for(""),or=t=>{if(t?.r===tr)return t?._$litStatic$},er=t=>({_$li
773
773
  </ft-tooltip>
774
774
  `:t}resolveIcon(){return this.loading?to`
775
775
  <ft-loader part="loader icon"></ft-loader> `:this.icon?to`
776
- <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:eo}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}}xn.elementDefinitions={"ft-ripple":Qi,"ft-tooltip":gn,"ft-typography":sr,"ft-icon":ue,"ft-loader":bn},mn([N({type:String,reflect:!0})],xn.prototype,"role",void 0),mn([N()],xn.prototype,"type",void 0),mn([N({type:Boolean})],xn.prototype,"disabled",void 0),mn([N()],xn.prototype,"label",void 0),mn([N()],xn.prototype,"icon",void 0),mn([N()],xn.prototype,"iconVariant",void 0),mn([N({type:Boolean})],xn.prototype,"trailingIcon",void 0),mn([N({type:Boolean})],xn.prototype,"loading",void 0),mn([N()],xn.prototype,"tooltipPosition",void 0),mn([N({type:Boolean})],xn.prototype,"hideTooltip",void 0),mn([N({type:Boolean})],xn.prototype,"forceTooltip",void 0),mn([R(".ft-button")],xn.prototype,"button",void 0),mn([R(".ft-button--label slot")],xn.prototype,"slottedContent",void 0);var On=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class vn extends xn{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return"button"}}vn.styles=[Bo,Xi],On([N({type:Boolean})],vn.prototype,"primary",void 0),On([N({type:Boolean})],vn.prototype,"outlined",void 0),On([N({type:Boolean})],vn.prototype,"dense",void 0),On([N({type:Boolean})],vn.prototype,"round",void 0);const Sn=[mt`
776
+ <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:eo}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}}vn.elementDefinitions={"ft-ripple":Qi,"ft-tooltip":mn,"ft-typography":sr,"ft-icon":ue,"ft-loader":xn},On([N({type:String,reflect:!0})],vn.prototype,"role",void 0),On([N()],vn.prototype,"type",void 0),On([N({type:Boolean})],vn.prototype,"disabled",void 0),On([N()],vn.prototype,"label",void 0),On([N()],vn.prototype,"icon",void 0),On([N()],vn.prototype,"iconVariant",void 0),On([N({type:Boolean})],vn.prototype,"trailingIcon",void 0),On([N({type:Boolean})],vn.prototype,"loading",void 0),On([N()],vn.prototype,"tooltipPosition",void 0),On([N({type:Boolean})],vn.prototype,"hideTooltip",void 0),On([N({type:Boolean})],vn.prototype,"forceTooltip",void 0),On([R(".ft-button")],vn.prototype,"button",void 0),On([R(".ft-button--label slot")],vn.prototype,"slottedContent",void 0);var Sn=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class wn extends vn{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return"button"}}wn.styles=[Bo,Xi],Sn([N({type:Boolean})],wn.prototype,"primary",void 0),Sn([N({type:Boolean})],wn.prototype,"outlined",void 0),Sn([N({type:Boolean})],wn.prototype,"dense",void 0),Sn([N({type:Boolean})],wn.prototype,"round",void 0);const Nn=[mt`
777
777
  :host {
778
778
  display: inline-block;
779
779
  max-width: 100%;
@@ -991,7 +991,7 @@ const tr=Symbol.for(""),or=t=>{if(t?.r===tr)return t?._$litStatic$},er=t=>({_$li
991
991
  width: ${Co.smallIconOnlyWidth};
992
992
  padding: unset;
993
993
  }
994
- `,Ko];var wn,Nn=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Cn extends xn{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary&&!this.neutral,"ft-button--neutral":this.neutral,"ft-button--large":!this.small,"ft-button--small":this.small,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon}}get typographyVariant(){return this.small?nr.caption1medium:nr.body2medium}}Cn.styles=[Bo,Sn],Nn([N({type:Boolean})],Cn.prototype,"primary",void 0),Nn([N({type:Boolean})],Cn.prototype,"secondary",void 0),Nn([N({type:Boolean})],Cn.prototype,"tertiary",void 0),Nn([N({type:Boolean})],Cn.prototype,"neutral",void 0),Nn([N({type:Boolean})],Cn.prototype,"small",void 0),k("ft-button")(vn),k("ftds-button")(Cn),function(t){t.S="S",t.M="M",t.L="L",t.XL="XL",t.XXL="XXL"}(wn||(wn={}));const $n=mt`
994
+ `,Ko];var Cn,$n=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class En extends vn{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary&&!this.neutral,"ft-button--neutral":this.neutral,"ft-button--large":!this.small,"ft-button--small":this.small,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon}}get typographyVariant(){return this.small?nr.caption1medium:nr.body2medium}}En.styles=[Bo,Nn],$n([N({type:Boolean})],En.prototype,"primary",void 0),$n([N({type:Boolean})],En.prototype,"secondary",void 0),$n([N({type:Boolean})],En.prototype,"tertiary",void 0),$n([N({type:Boolean})],En.prototype,"neutral",void 0),$n([N({type:Boolean})],En.prototype,"small",void 0),k("ft-button")(wn),k("ftds-button")(En),function(t){t.S="S",t.M="M",t.L="L",t.XL="XL",t.XXL="XXL"}(Cn||(Cn={}));const Rn=mt`
995
995
  .ft-size-watcher--pixel {
996
996
  width: 0;
997
997
  height: 0;
@@ -1010,11 +1010,11 @@ const tr=Symbol.for(""),or=t=>{if(t?.r===tr)return t?._$litStatic$},er=t=>({_$li
1010
1010
  .ft-size-watcher--local .ft-size-watcher--watcher {
1011
1011
  width: 100%;
1012
1012
  }
1013
- `;var En=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Rn extends CustomEvent{constructor(t,o){super("change",{detail:{size:t,category:o}})}}class Un extends Zo{constructor(){super(...arguments),this.debounceTimeout=100,this.local=!1,this.size=0,this.category=wn.S,this.resizeObserver=new ResizeObserver((()=>this.updateSize())),this.debouncer=new U}render(){return to`
1013
+ `;var Un=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class In extends CustomEvent{constructor(t,o){super("change",{detail:{size:t,category:o}})}}class kn extends Zo{constructor(){super(...arguments),this.debounceTimeout=100,this.local=!1,this.size=0,this.category=Cn.S,this.resizeObserver=new ResizeObserver((()=>this.updateSize())),this.debouncer=new U}render(){return to`
1014
1014
  <div class="ft-size-watcher--pixel ${this.local?"ft-size-watcher--local":""}">
1015
1015
  <div class="ft-size-watcher--watcher"></div>
1016
1016
  </div>
1017
- `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.watcher&&this.resizeObserver.observe(this.watcher),this.updateSize()}updateSize(){this.debouncer.run((()=>{this.watcher&&this.size!==this.watcher.clientWidth&&(this.size=this.watcher.clientWidth,this.size<768?this.category=wn.S:this.size<976?this.category=wn.M:this.size<1024?this.category=wn.L:this.size<1440?this.category=wn.XL:this.category=wn.XXL,this.dispatchEvent(new Rn(this.size,this.category)))}),this.debounceTimeout)}}Un.elementDefinitions={},Un.styles=$n,En([N({type:Number})],Un.prototype,"debounceTimeout",void 0),En([N({type:Boolean})],Un.prototype,"local",void 0),En([N({type:Number,reflect:!0})],Un.prototype,"size",void 0),En([N({type:String,reflect:!0})],Un.prototype,"category",void 0),En([R(".ft-size-watcher--watcher")],Un.prototype,"watcher",void 0),k("ft-size-watcher")(Un);var In=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class kn extends Zo{constructor(){super(...arguments),this.portalUrl="",this.opened=!1,this.displayMode=t.FtInProductHelpMode.STANDARD,this.closeIcon=le.X_MARK,this.standardModeIcon=le.PIP,this.disableStandardMode=!1,this.theaterModeIcon=le.PIP_WIDE,this.disableTheaterMode=!1,this.fullscreenModeIcon=le.EXPAND_WIDE,this.disableFullscreenMode=!1,this.enableHomeButton=!1,this.homeIcon=le.HOME,this.enableOpenTabButton=!1,this.openTabIcon=le.EXTLINK_LIGHT,this.allowStandardMode=!0,this.allowTheaterMode=!0,this.allowFullscreenMode=!0}render(){const o={"ft-in-product-help":!0,"ft-in-product-help--opened":this.opened,"ft-in-product-help--standard":this.displayMode==t.FtInProductHelpMode.STANDARD,"ft-in-product-help--theater":this.displayMode==t.FtInProductHelpMode.THEATER,"ft-in-product-help--fullscreen":this.displayMode==t.FtInProductHelpMode.FULLSCREEN},e=this.allowStandardMode&&(this.allowTheaterMode||this.allowFullscreenMode),i=this.allowTheaterMode&&(this.allowStandardMode||this.allowFullscreenMode),r=this.allowFullscreenMode&&(this.allowStandardMode||this.allowTheaterMode);return to`
1017
+ `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.watcher&&this.resizeObserver.observe(this.watcher),this.updateSize()}updateSize(){this.debouncer.run((()=>{this.watcher&&this.size!==this.watcher.clientWidth&&(this.size=this.watcher.clientWidth,this.size<768?this.category=Cn.S:this.size<976?this.category=Cn.M:this.size<1024?this.category=Cn.L:this.size<1440?this.category=Cn.XL:this.category=Cn.XXL,this.dispatchEvent(new In(this.size,this.category)))}),this.debounceTimeout)}}kn.elementDefinitions={},kn.styles=Rn,Un([N({type:Number})],kn.prototype,"debounceTimeout",void 0),Un([N({type:Boolean})],kn.prototype,"local",void 0),Un([N({type:Number,reflect:!0})],kn.prototype,"size",void 0),Un([N({type:String,reflect:!0})],kn.prototype,"category",void 0),Un([R(".ft-size-watcher--watcher")],kn.prototype,"watcher",void 0),k("ft-size-watcher")(kn);var Ln=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Wn extends Zo{constructor(){super(...arguments),this.portalUrl="",this.opened=!1,this.displayMode=t.FtInProductHelpMode.STANDARD,this.closeIcon=le.X_MARK,this.standardModeIcon=le.PIP,this.disableStandardMode=!1,this.theaterModeIcon=le.PIP_WIDE,this.disableTheaterMode=!1,this.fullscreenModeIcon=le.EXPAND_WIDE,this.disableFullscreenMode=!1,this.enableHomeButton=!1,this.homeIcon=le.HOME,this.enableOpenTabButton=!1,this.openTabIcon=le.EXTLINK_LIGHT,this.allowStandardMode=!0,this.allowTheaterMode=!0,this.allowFullscreenMode=!0}render(){const o={"ft-in-product-help":!0,"ft-in-product-help--opened":this.opened,"ft-in-product-help--standard":this.displayMode==t.FtInProductHelpMode.STANDARD,"ft-in-product-help--theater":this.displayMode==t.FtInProductHelpMode.THEATER,"ft-in-product-help--fullscreen":this.displayMode==t.FtInProductHelpMode.FULLSCREEN},e=this.allowStandardMode&&(this.allowTheaterMode||this.allowFullscreenMode),i=this.allowTheaterMode&&(this.allowStandardMode||this.allowFullscreenMode),r=this.allowFullscreenMode&&(this.allowStandardMode||this.allowTheaterMode);return to`
1018
1018
  <ft-size-watcher @change=${this.onViewportChange}></ft-size-watcher>
1019
1019
  <div class="${ye(o)}" part="container">
1020
1020
  <div class="ft-in-product-help--top-bar" part="top-bar">
@@ -1083,4 +1083,4 @@ const tr=Symbol.for(""),or=t=>{if(t?.r===tr)return t?._$litStatic$},er=t=>({_$li
1083
1083
  </div>
1084
1084
  <iframe src="${this.portalUrl}" part="iframe"/>
1085
1085
  </div>
1086
- `}update(t){super.update(t),(t.has("disableStandardMode")||t.has("disableTheaterMode")||t.has("disableFullscreenMode"))&&this.computeAllowedModes(),t.has("opened")&&this.updateModeOnOpen()}updateModeOnOpen(){this.allowStandardMode?this.displayMode=t.FtInProductHelpMode.STANDARD:this.allowTheaterMode?this.displayMode=t.FtInProductHelpMode.THEATER:this.displayMode=t.FtInProductHelpMode.FULLSCREEN}computeAllowedModes(){this.allowStandardMode=!this.disableStandardMode&&(this.isTablet()||this.isDesktop()),this.allowTheaterMode=!this.disableTheaterMode&&this.isDesktop(),this.allowFullscreenMode=!this.disableFullscreenMode}onViewportChange(){this.computeAllowedModes(),this.allowStandardMode||this.displayMode!=t.FtInProductHelpMode.STANDARD||(this.displayMode=t.FtInProductHelpMode.THEATER),this.allowTheaterMode||this.displayMode!=t.FtInProductHelpMode.THEATER||(this.displayMode=t.FtInProductHelpMode.FULLSCREEN)}setMode(t){this.displayMode=t,this.dispatchVisibilityChange()}open(){this.opened=!0}close(){this.opened=!1,this.displayMode=t.FtInProductHelpMode.STANDARD,this.dispatchVisibilityChange()}dispatchVisibilityChange(){this.dispatchEvent(new Qo(this.opened,this.displayMode))}isTablet(){const t=getComputedStyle(this).getPropertyValue(te.tabletBreakpoint.name)||te.tabletBreakpoint.defaultValue;return window.matchMedia(`(min-width: ${t})`).matches}isDesktop(){const t=getComputedStyle(this).getPropertyValue(te.desktopBreakpoint.name)||te.desktopBreakpoint.defaultValue;return window.matchMedia(`(min-width: ${t})`).matches}navigateTo(t){this.iframe.contentWindow.postMessage({navigateTo:t},this.portalUrl)}openTab(){this.iframe.contentWindow.postMessage({openTabToCurrentUrl:!0},this.portalUrl)}}kn.elementDefinitions={"ft-button":vn,"ft-size-watcher":Un},kn.styles=oe,In([N()],kn.prototype,"portalUrl",void 0),In([N({reflect:!0,type:Boolean})],kn.prototype,"opened",void 0),In([N({reflect:!0})],kn.prototype,"displayMode",void 0),In([N()],kn.prototype,"closeIcon",void 0),In([N()],kn.prototype,"standardModeIcon",void 0),In([N({type:Boolean})],kn.prototype,"disableStandardMode",void 0),In([N()],kn.prototype,"theaterModeIcon",void 0),In([N({type:Boolean})],kn.prototype,"disableTheaterMode",void 0),In([N()],kn.prototype,"fullscreenModeIcon",void 0),In([N({type:Boolean})],kn.prototype,"disableFullscreenMode",void 0),In([N({type:Boolean})],kn.prototype,"enableHomeButton",void 0),In([N()],kn.prototype,"homeIcon",void 0),In([N({type:Boolean})],kn.prototype,"enableOpenTabButton",void 0),In([N()],kn.prototype,"openTabIcon",void 0),In([N()],kn.prototype,"iconVariant",void 0),In([C()],kn.prototype,"allowStandardMode",void 0),In([C()],kn.prototype,"allowTheaterMode",void 0),In([C()],kn.prototype,"allowFullscreenMode",void 0),In([R("iframe")],kn.prototype,"iframe",void 0),k("ft-in-product-help")(kn),t.FtInProductHelp=kn,t.FtInProductHelpCssVariables=te,t.FtInProductHelpVisibilityChange=Qo,t.styles=oe}({});
1086
+ `}update(t){super.update(t),(t.has("disableStandardMode")||t.has("disableTheaterMode")||t.has("disableFullscreenMode"))&&this.computeAllowedModes(),t.has("opened")&&this.updateModeOnOpen()}updateModeOnOpen(){this.allowStandardMode?this.displayMode=t.FtInProductHelpMode.STANDARD:this.allowTheaterMode?this.displayMode=t.FtInProductHelpMode.THEATER:this.displayMode=t.FtInProductHelpMode.FULLSCREEN}computeAllowedModes(){this.allowStandardMode=!this.disableStandardMode&&(this.isTablet()||this.isDesktop()),this.allowTheaterMode=!this.disableTheaterMode&&this.isDesktop(),this.allowFullscreenMode=!this.disableFullscreenMode}onViewportChange(){this.computeAllowedModes(),this.allowStandardMode||this.displayMode!=t.FtInProductHelpMode.STANDARD||(this.displayMode=t.FtInProductHelpMode.THEATER),this.allowTheaterMode||this.displayMode!=t.FtInProductHelpMode.THEATER||(this.displayMode=t.FtInProductHelpMode.FULLSCREEN)}setMode(t){this.displayMode=t,this.dispatchVisibilityChange()}open(){this.opened=!0}close(){this.opened=!1,this.displayMode=t.FtInProductHelpMode.STANDARD,this.dispatchVisibilityChange()}dispatchVisibilityChange(){this.dispatchEvent(new Qo(this.opened,this.displayMode))}isTablet(){const t=getComputedStyle(this).getPropertyValue(te.tabletBreakpoint.name)||te.tabletBreakpoint.defaultValue;return window.matchMedia(`(min-width: ${t})`).matches}isDesktop(){const t=getComputedStyle(this).getPropertyValue(te.desktopBreakpoint.name)||te.desktopBreakpoint.defaultValue;return window.matchMedia(`(min-width: ${t})`).matches}navigateTo(t){this.iframe.contentWindow.postMessage({navigateTo:t},this.portalUrl)}openTab(){this.iframe.contentWindow.postMessage({openTabToCurrentUrl:!0},this.portalUrl)}}Wn.elementDefinitions={"ft-button":wn,"ft-size-watcher":kn},Wn.styles=oe,Ln([N()],Wn.prototype,"portalUrl",void 0),Ln([N({reflect:!0,type:Boolean})],Wn.prototype,"opened",void 0),Ln([N({reflect:!0})],Wn.prototype,"displayMode",void 0),Ln([N()],Wn.prototype,"closeIcon",void 0),Ln([N()],Wn.prototype,"standardModeIcon",void 0),Ln([N({type:Boolean})],Wn.prototype,"disableStandardMode",void 0),Ln([N()],Wn.prototype,"theaterModeIcon",void 0),Ln([N({type:Boolean})],Wn.prototype,"disableTheaterMode",void 0),Ln([N()],Wn.prototype,"fullscreenModeIcon",void 0),Ln([N({type:Boolean})],Wn.prototype,"disableFullscreenMode",void 0),Ln([N({type:Boolean})],Wn.prototype,"enableHomeButton",void 0),Ln([N()],Wn.prototype,"homeIcon",void 0),Ln([N({type:Boolean})],Wn.prototype,"enableOpenTabButton",void 0),Ln([N()],Wn.prototype,"openTabIcon",void 0),Ln([N()],Wn.prototype,"iconVariant",void 0),Ln([C()],Wn.prototype,"allowStandardMode",void 0),Ln([C()],Wn.prototype,"allowTheaterMode",void 0),Ln([C()],Wn.prototype,"allowFullscreenMode",void 0),Ln([R("iframe")],Wn.prototype,"iframe",void 0),k("ft-in-product-help")(Wn),t.FtInProductHelp=Wn,t.FtInProductHelpCssVariables=te,t.FtInProductHelpVisibilityChange=Qo,t.styles=oe}({});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-in-product-help",
3
- "version": "1.1.9",
3
+ "version": "1.1.10",
4
4
  "description": "Embeddable fluid-topics iframe",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,8 +19,8 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-wc-utils": "1.1.9",
22
+ "@fluid-topics/ft-wc-utils": "1.1.10",
23
23
  "lit": "3.1.0"
24
24
  },
25
- "gitHead": "260010bbe1de163e812ed46e15cd25b7008f2f87"
25
+ "gitHead": "dd861ad18248198f16fe78602cb5d72049c15ec2"
26
26
  }