@fluid-topics/ft-snap-scroll 1.2.8 → 1.2.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.
@@ -482,7 +482,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
482
482
  </div>
483
483
  `}contentAvailableCallback(o){super.contentAvailableCallback(o),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(o){var a,n;super.update(o),o.has("disabled")&&(this.disabled?(this.endRipple(),(a=this.target)===null||a===void 0||a.removeAttribute("data-is-ft-ripple-target")):(n=this.target)===null||n===void 0||n.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var o,a;let n=(o=this.shadowRoot)===null||o===void 0?void 0:o.host.parentElement;n&&this.setupFor((a=this.target)!==null&&a!==void 0?a:n)}setupFor(o){if(this.setupDebouncer.cancel(),this.target===o)return;this.onDisconnect&&this.onDisconnect(),this.target=o,o.setAttribute("data-is-ft-ripple-target","true");let a=(...p)=>y=>{p.forEach(m=>window.addEventListener(m,this.endPress,{once:!0})),this.startPress(y)},n=a("mouseup","contextmenu"),c=a("touchend","touchcancel"),l=p=>{["Enter"," "].includes(p.key)&&a("keyup")(p)},s={passive:!0};o.addEventListener("mouseover",this.startHover,s),o.addEventListener("mousemove",this.moveRipple,s),o.addEventListener("mouseleave",this.endHover,s),o.addEventListener("mousedown",n,s),o.addEventListener("touchstart",c,s),o.addEventListener("touchmove",this.moveRipple,s),o.addEventListener("keydown",l,s),o.addEventListener("focus",this.startFocus,s),o.addEventListener("blur",this.endFocus,s),o.addEventListener("focusin",this.startFocus,s),o.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{o.removeAttribute("data-is-ft-ripple-target"),o.removeEventListener("mouseover",this.startHover,s),o.removeEventListener("mousemove",this.moveRipple,s),o.removeEventListener("mouseleave",this.endHover,s),o.removeEventListener("mousedown",n,s),o.removeEventListener("touchstart",c,s),o.removeEventListener("touchmove",this.moveRipple,s),o.removeEventListener("keydown",l,s),o.removeEventListener("focus",this.startFocus,s),o.removeEventListener("blur",this.endFocus,s),o.removeEventListener("focusin",this.startFocus,s),o.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(o){let a=o,n=o,c,l;return a.x!=null?{x:c,y:l}=a:n.touches!=null&&(c=n.touches[0].clientX,l=n.touches[0].clientY),{x:c,y:l}}isFocusVisible(o){return o instanceof HTMLElement?o.matches(":focus-visible"):!0}isIgnored(o){if(this.disabled)return!0;if(o!=null)for(let a of o.composedPath()){if(a===this.target)break;if("hasAttribute"in a&&a.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};A.elementDefinitions={};A.styles=mo;V([(0,U.property)({type:Boolean})],A.prototype,"primary",void 0);V([(0,U.property)({type:Boolean})],A.prototype,"secondary",void 0);V([(0,U.property)({type:Boolean})],A.prototype,"unbounded",void 0);V([(0,U.property)({type:Boolean})],A.prototype,"activated",void 0);V([(0,U.property)({type:Boolean})],A.prototype,"selected",void 0);V([(0,U.property)({type:Boolean})],A.prototype,"disabled",void 0);V([(0,U.state)()],A.prototype,"hovered",void 0);V([(0,U.state)()],A.prototype,"focused",void 0);V([(0,U.state)()],A.prototype,"pressed",void 0);V([(0,U.state)()],A.prototype,"rippling",void 0);V([(0,U.state)()],A.prototype,"originX",void 0);V([(0,U.state)()],A.prototype,"originY",void 0);V([(0,U.query)(".ft-ripple")],A.prototype,"ripple",void 0);V([(0,U.query)(".ft-ripple--effect")],A.prototype,"rippleEffect",void 0);(0,ur.customElement)("ft-ripple")(A);var ca=x(w());var ia=x(D()),k=x(dt()),pe=x(w());var Pr=x(w());var De=globalThis,xe=De.trustedTypes,gr=xe?xe.createPolicy("lit-html",{createHTML:e=>e}):void 0,Or="$lit$",Ot=`lit$${(Math.random()+"").slice(9)}$`,Cr="?"+Ot,Wa=`<${Cr}>`,$t=document,Se=()=>$t.createComment(""),re=e=>e===null||typeof e!="object"&&typeof e!="function",vr=Array.isArray,Pa=e=>vr(e)||typeof e?.[Symbol.iterator]=="function",Pe=`[
484
484
  \f\r]`,oe=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,hr=/-->/g,mr=/>/g,Rt=RegExp(`>|${Pe}(?:([^\\s"'>=/]+)(${Pe}*=${Pe}*(?:[^
485
- \f\r"'\`<>=]|("|')|))|$)`,"g"),br=/'/g,xr=/"/g,Nr=/^(?:script|style|textarea|title)$/i,Er=e=>(o,...a)=>({_$litType$:e,strings:o,values:a}),wr=Er(1),Lr=Er(2),ae=Symbol.for("lit-noChange"),H=Symbol.for("lit-nothing"),Sr=new WeakMap,At=$t.createTreeWalker($t,129);function Rr(e,o){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return gr!==void 0?gr.createHTML(o):o}var za=(e,o)=>{let a=e.length-1,n=[],c,l=o===2?"<svg>":"",s=oe;for(let p=0;p<a;p++){let y=e[p],m,O,b=-1,N=0;for(;N<y.length&&(s.lastIndex=N,O=s.exec(y),O!==null);)N=s.lastIndex,s===oe?O[1]==="!--"?s=hr:O[1]!==void 0?s=mr:O[2]!==void 0?(Nr.test(O[2])&&(c=RegExp("</"+O[2],"g")),s=Rt):O[3]!==void 0&&(s=Rt):s===Rt?O[0]===">"?(s=c??oe,b=-1):O[1]===void 0?b=-2:(b=s.lastIndex-O[2].length,m=O[1],s=O[3]===void 0?Rt:O[3]==='"'?xr:br):s===xr||s===br?s=Rt:s===hr||s===mr?s=oe:(s=Rt,c=void 0);let v=s===Rt&&e[p+1].startsWith("/>")?" ":"";l+=s===oe?y+Wa:b>=0?(n.push(m),y.slice(0,b)+Or+y.slice(b)+Ot+v):y+Ot+(b===-2?p:v)}return[Rr(e,l+(e[a]||"<?>")+(o===2?"</svg>":"")),n]},ne=class e{constructor({strings:o,_$litType$:a},n){let c;this.parts=[];let l=0,s=0,p=o.length-1,y=this.parts,[m,O]=za(o,a);if(this.el=e.createElement(m,n),At.currentNode=this.el.content,a===2){let b=this.el.content.firstChild;b.replaceWith(...b.childNodes)}for(;(c=At.nextNode())!==null&&y.length<p;){if(c.nodeType===1){if(c.hasAttributes())for(let b of c.getAttributeNames())if(b.endsWith(Or)){let N=O[s++],v=c.getAttribute(b).split(Ot),E=/([.?@])?(.*)/.exec(N);y.push({type:1,index:l,name:E[2],strings:v,ctor:E[1]==="."?Te:E[1]==="?"?ke:E[1]==="@"?He:Vt}),c.removeAttribute(b)}else b.startsWith(Ot)&&(y.push({type:6,index:l}),c.removeAttribute(b));if(Nr.test(c.tagName)){let b=c.textContent.split(Ot),N=b.length-1;if(N>0){c.textContent=xe?xe.emptyScript:"";for(let v=0;v<N;v++)c.append(b[v],Se()),At.nextNode(),y.push({type:2,index:++l});c.append(b[N],Se())}}}else if(c.nodeType===8)if(c.data===Cr)y.push({type:2,index:l});else{let b=-1;for(;(b=c.data.indexOf(Ot,b+1))!==-1;)y.push({type:7,index:l}),b+=Ot.length-1}l++}}static createElement(o,a){let n=$t.createElement("template");return n.innerHTML=o,n}};function Kt(e,o,a=e,n){if(o===ae)return o;let c=n!==void 0?a._$Co?.[n]:a._$Cl,l=re(o)?void 0:o._$litDirective$;return c?.constructor!==l&&(c?._$AO?.(!1),l===void 0?c=void 0:(c=new l(e),c._$AT(e,a,n)),n!==void 0?(a._$Co??=[])[n]=c:a._$Cl=c),c!==void 0&&(o=Kt(e,c._$AS(e,o.values),c,n)),o}var ze=class{constructor(o,a){this._$AV=[],this._$AN=void 0,this._$AD=o,this._$AM=a}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(o){let{el:{content:a},parts:n}=this._$AD,c=(o?.creationScope??$t).importNode(a,!0);At.currentNode=c;let l=At.nextNode(),s=0,p=0,y=n[0];for(;y!==void 0;){if(s===y.index){let m;y.type===2?m=new Oe(l,l.nextSibling,this,o):y.type===1?m=new y.ctor(l,y.name,y.strings,this,o):y.type===6&&(m=new _e(l,this,o)),this._$AV.push(m),y=n[++p]}s!==y?.index&&(l=At.nextNode(),s++)}return At.currentNode=$t,c}p(o){let a=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(o,n,a),a+=n.strings.length-2):n._$AI(o[a])),a++}},Oe=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(o,a,n,c){this.type=2,this._$AH=H,this._$AN=void 0,this._$AA=o,this._$AB=a,this._$AM=n,this.options=c,this._$Cv=c?.isConnected??!0}get parentNode(){let o=this._$AA.parentNode,a=this._$AM;return a!==void 0&&o?.nodeType===11&&(o=a.parentNode),o}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(o,a=this){o=Kt(this,o,a),re(o)?o===H||o==null||o===""?(this._$AH!==H&&this._$AR(),this._$AH=H):o!==this._$AH&&o!==ae&&this._(o):o._$litType$!==void 0?this.g(o):o.nodeType!==void 0?this.$(o):Pa(o)?this.T(o):this._(o)}k(o){return this._$AA.parentNode.insertBefore(o,this._$AB)}$(o){this._$AH!==o&&(this._$AR(),this._$AH=this.k(o))}_(o){this._$AH!==H&&re(this._$AH)?this._$AA.nextSibling.data=o:this.$($t.createTextNode(o)),this._$AH=o}g(o){let{values:a,_$litType$:n}=o,c=typeof n=="number"?this._$AC(o):(n.el===void 0&&(n.el=ne.createElement(Rr(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===c)this._$AH.p(a);else{let l=new ze(c,this),s=l.u(this.options);l.p(a),this.$(s),this._$AH=l}}_$AC(o){let a=Sr.get(o.strings);return a===void 0&&Sr.set(o.strings,a=new ne(o)),a}T(o){vr(this._$AH)||(this._$AH=[],this._$AR());let a=this._$AH,n,c=0;for(let l of o)c===a.length?a.push(n=new e(this.k(Se()),this.k(Se()),this,this.options)):n=a[c],n._$AI(l),c++;c<a.length&&(this._$AR(n&&n._$AB.nextSibling,c),a.length=c)}_$AR(o=this._$AA.nextSibling,a){for(this._$AP?.(!1,!0,a);o&&o!==this._$AB;){let n=o.nextSibling;o.remove(),o=n}}setConnected(o){this._$AM===void 0&&(this._$Cv=o,this._$AP?.(o))}},Vt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(o,a,n,c,l){this.type=1,this._$AH=H,this._$AN=void 0,this.element=o,this.name=a,this._$AM=c,this.options=l,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=H}_$AI(o,a=this,n,c){let l=this.strings,s=!1;if(l===void 0)o=Kt(this,o,a,0),s=!re(o)||o!==this._$AH&&o!==ae,s&&(this._$AH=o);else{let p=o,y,m;for(o=l[0],y=0;y<l.length-1;y++)m=Kt(this,p[n+y],a,y),m===ae&&(m=this._$AH[y]),s||=!re(m)||m!==this._$AH[y],m===H?o=H:o!==H&&(o+=(m??"")+l[y+1]),this._$AH[y]=m}s&&!c&&this.O(o)}O(o){o===H?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,o??"")}},Te=class extends Vt{constructor(){super(...arguments),this.type=3}O(o){this.element[this.name]=o===H?void 0:o}},ke=class extends Vt{constructor(){super(...arguments),this.type=4}O(o){this.element.toggleAttribute(this.name,!!o&&o!==H)}},He=class extends Vt{constructor(o,a,n,c,l){super(o,a,n,c,l),this.type=5}_$AI(o,a=this){if((o=Kt(this,o,a,0)??H)===ae)return;let n=this._$AH,c=o===H&&n!==H||o.capture!==n.capture||o.once!==n.once||o.passive!==n.passive,l=o!==H&&(n===H||c);c&&this.element.removeEventListener(this.name,this,n),l&&this.element.addEventListener(this.name,this,o),this._$AH=o}handleEvent(o){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,o):this._$AH.handleEvent(o)}},_e=class{constructor(o,a,n){this.element=o,this.type=6,this._$AN=void 0,this._$AM=a,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(o){Kt(this,o)}};var Ta=De.litHtmlPolyfillSupport;Ta?.(ne,Oe),(De.litHtmlVersions??=[]).push("3.1.0");var $r=Symbol.for(""),ka=e=>{if(e?.r===$r)return e?._$litStatic$},Ue=e=>({_$litStatic$:e,r:$r});var Ar=new Map,Ir=e=>(o,...a)=>{let n=a.length,c,l,s=[],p=[],y,m=0,O=!1;for(;m<n;){for(y=o[m];m<n&&(l=a[m],(c=ka(l))!==void 0);)y+=c+o[++m],O=!0;m!==n&&p.push(l),s.push(y),m++}if(m===n&&s.push(o[n]),O){let b=s.join("$$lit$$");(o=Ar.get(b))===void 0&&(s.raw=s,Ar.set(b,o=s)),a=p}return e(o,...a)},Ge=Ir(wr),ws=Ir(Lr);var Ze=x(dt()),Wr=x(w());var Ct;(function(e){e.title="title",e.title_dense="title-dense",e.subtitle1="subtitle1",e.subtitle2="subtitle2",e.body1="body1",e.body2="body2",e.caption="caption",e.breadcrumb="breadcrumb",e.overline="overline",e.button="button",e.display="display",e.title1="title-1",e.title2="title-2",e.title3="title-3",e.body1regular="body-1-regular",e.body1medium="body-1-medium",e.body1semibold="body-1-semibold",e.body2regular="body-2-regular",e.body2medium="body-2-medium",e.body2semibold="body-2-semibold",e.label1medium="label-1-medium",e.label1semibold="label-1-semibold",e.label1bold="label-1-bold",e.label2medium="label-2-medium",e.label2semibold="label-2-semibold",e.label2bold="label-2-bold",e.caption1medium="caption-1-medium",e.caption1semibold="caption-1-semibold",e.caption1bold="caption-1-bold",e.caption2medium="caption-2-medium",e.caption2semibold="caption-2-semibold",e.caption2bold="caption-2-bold"})(Ct||(Ct={}));var Br=function(e,o,a,n){var c=arguments.length,l=c<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,a):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(e,o,a,n);else for(var p=e.length-1;p>=0;p--)(s=e[p])&&(l=(c<3?s(l):c>3?s(o,a,l):s(o,a))||l);return c>3&&l&&Object.defineProperty(o,a,l),l},tt=class extends Wr.FtLitElement{constructor(){super(...arguments),this.variant=Ct.body1}render(){return this.element?Ge`
485
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),br=/'/g,xr=/"/g,Nr=/^(?:script|style|textarea|title)$/i,Er=e=>(o,...a)=>({_$litType$:e,strings:o,values:a}),wr=Er(1),Lr=Er(2),ae=Symbol.for("lit-noChange"),_=Symbol.for("lit-nothing"),Sr=new WeakMap,At=$t.createTreeWalker($t,129);function Rr(e,o){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return gr!==void 0?gr.createHTML(o):o}var za=(e,o)=>{let a=e.length-1,n=[],c,l=o===2?"<svg>":"",s=oe;for(let p=0;p<a;p++){let y=e[p],m,O,b=-1,N=0;for(;N<y.length&&(s.lastIndex=N,O=s.exec(y),O!==null);)N=s.lastIndex,s===oe?O[1]==="!--"?s=hr:O[1]!==void 0?s=mr:O[2]!==void 0?(Nr.test(O[2])&&(c=RegExp("</"+O[2],"g")),s=Rt):O[3]!==void 0&&(s=Rt):s===Rt?O[0]===">"?(s=c??oe,b=-1):O[1]===void 0?b=-2:(b=s.lastIndex-O[2].length,m=O[1],s=O[3]===void 0?Rt:O[3]==='"'?xr:br):s===xr||s===br?s=Rt:s===hr||s===mr?s=oe:(s=Rt,c=void 0);let v=s===Rt&&e[p+1].startsWith("/>")?" ":"";l+=s===oe?y+Wa:b>=0?(n.push(m),y.slice(0,b)+Or+y.slice(b)+Ot+v):y+Ot+(b===-2?p:v)}return[Rr(e,l+(e[a]||"<?>")+(o===2?"</svg>":"")),n]},ne=class e{constructor({strings:o,_$litType$:a},n){let c;this.parts=[];let l=0,s=0,p=o.length-1,y=this.parts,[m,O]=za(o,a);if(this.el=e.createElement(m,n),At.currentNode=this.el.content,a===2){let b=this.el.content.firstChild;b.replaceWith(...b.childNodes)}for(;(c=At.nextNode())!==null&&y.length<p;){if(c.nodeType===1){if(c.hasAttributes())for(let b of c.getAttributeNames())if(b.endsWith(Or)){let N=O[s++],v=c.getAttribute(b).split(Ot),E=/([.?@])?(.*)/.exec(N);y.push({type:1,index:l,name:E[2],strings:v,ctor:E[1]==="."?Te:E[1]==="?"?ke:E[1]==="@"?He:Vt}),c.removeAttribute(b)}else b.startsWith(Ot)&&(y.push({type:6,index:l}),c.removeAttribute(b));if(Nr.test(c.tagName)){let b=c.textContent.split(Ot),N=b.length-1;if(N>0){c.textContent=xe?xe.emptyScript:"";for(let v=0;v<N;v++)c.append(b[v],Se()),At.nextNode(),y.push({type:2,index:++l});c.append(b[N],Se())}}}else if(c.nodeType===8)if(c.data===Cr)y.push({type:2,index:l});else{let b=-1;for(;(b=c.data.indexOf(Ot,b+1))!==-1;)y.push({type:7,index:l}),b+=Ot.length-1}l++}}static createElement(o,a){let n=$t.createElement("template");return n.innerHTML=o,n}};function Kt(e,o,a=e,n){if(o===ae)return o;let c=n!==void 0?a._$Co?.[n]:a._$Cl,l=re(o)?void 0:o._$litDirective$;return c?.constructor!==l&&(c?._$AO?.(!1),l===void 0?c=void 0:(c=new l(e),c._$AT(e,a,n)),n!==void 0?(a._$Co??=[])[n]=c:a._$Cl=c),c!==void 0&&(o=Kt(e,c._$AS(e,o.values),c,n)),o}var ze=class{constructor(o,a){this._$AV=[],this._$AN=void 0,this._$AD=o,this._$AM=a}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(o){let{el:{content:a},parts:n}=this._$AD,c=(o?.creationScope??$t).importNode(a,!0);At.currentNode=c;let l=At.nextNode(),s=0,p=0,y=n[0];for(;y!==void 0;){if(s===y.index){let m;y.type===2?m=new Oe(l,l.nextSibling,this,o):y.type===1?m=new y.ctor(l,y.name,y.strings,this,o):y.type===6&&(m=new _e(l,this,o)),this._$AV.push(m),y=n[++p]}s!==y?.index&&(l=At.nextNode(),s++)}return At.currentNode=$t,c}p(o){let a=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(o,n,a),a+=n.strings.length-2):n._$AI(o[a])),a++}},Oe=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(o,a,n,c){this.type=2,this._$AH=_,this._$AN=void 0,this._$AA=o,this._$AB=a,this._$AM=n,this.options=c,this._$Cv=c?.isConnected??!0}get parentNode(){let o=this._$AA.parentNode,a=this._$AM;return a!==void 0&&o?.nodeType===11&&(o=a.parentNode),o}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(o,a=this){o=Kt(this,o,a),re(o)?o===_||o==null||o===""?(this._$AH!==_&&this._$AR(),this._$AH=_):o!==this._$AH&&o!==ae&&this._(o):o._$litType$!==void 0?this.g(o):o.nodeType!==void 0?this.$(o):Pa(o)?this.T(o):this._(o)}k(o){return this._$AA.parentNode.insertBefore(o,this._$AB)}$(o){this._$AH!==o&&(this._$AR(),this._$AH=this.k(o))}_(o){this._$AH!==_&&re(this._$AH)?this._$AA.nextSibling.data=o:this.$($t.createTextNode(o)),this._$AH=o}g(o){let{values:a,_$litType$:n}=o,c=typeof n=="number"?this._$AC(o):(n.el===void 0&&(n.el=ne.createElement(Rr(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===c)this._$AH.p(a);else{let l=new ze(c,this),s=l.u(this.options);l.p(a),this.$(s),this._$AH=l}}_$AC(o){let a=Sr.get(o.strings);return a===void 0&&Sr.set(o.strings,a=new ne(o)),a}T(o){vr(this._$AH)||(this._$AH=[],this._$AR());let a=this._$AH,n,c=0;for(let l of o)c===a.length?a.push(n=new e(this.k(Se()),this.k(Se()),this,this.options)):n=a[c],n._$AI(l),c++;c<a.length&&(this._$AR(n&&n._$AB.nextSibling,c),a.length=c)}_$AR(o=this._$AA.nextSibling,a){for(this._$AP?.(!1,!0,a);o&&o!==this._$AB;){let n=o.nextSibling;o.remove(),o=n}}setConnected(o){this._$AM===void 0&&(this._$Cv=o,this._$AP?.(o))}},Vt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(o,a,n,c,l){this.type=1,this._$AH=_,this._$AN=void 0,this.element=o,this.name=a,this._$AM=c,this.options=l,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=_}_$AI(o,a=this,n,c){let l=this.strings,s=!1;if(l===void 0)o=Kt(this,o,a,0),s=!re(o)||o!==this._$AH&&o!==ae,s&&(this._$AH=o);else{let p=o,y,m;for(o=l[0],y=0;y<l.length-1;y++)m=Kt(this,p[n+y],a,y),m===ae&&(m=this._$AH[y]),s||=!re(m)||m!==this._$AH[y],m===_?o=_:o!==_&&(o+=(m??"")+l[y+1]),this._$AH[y]=m}s&&!c&&this.O(o)}O(o){o===_?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,o??"")}},Te=class extends Vt{constructor(){super(...arguments),this.type=3}O(o){this.element[this.name]=o===_?void 0:o}},ke=class extends Vt{constructor(){super(...arguments),this.type=4}O(o){this.element.toggleAttribute(this.name,!!o&&o!==_)}},He=class extends Vt{constructor(o,a,n,c,l){super(o,a,n,c,l),this.type=5}_$AI(o,a=this){if((o=Kt(this,o,a,0)??_)===ae)return;let n=this._$AH,c=o===_&&n!==_||o.capture!==n.capture||o.once!==n.once||o.passive!==n.passive,l=o!==_&&(n===_||c);c&&this.element.removeEventListener(this.name,this,n),l&&this.element.addEventListener(this.name,this,o),this._$AH=o}handleEvent(o){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,o):this._$AH.handleEvent(o)}},_e=class{constructor(o,a,n){this.element=o,this.type=6,this._$AN=void 0,this._$AM=a,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(o){Kt(this,o)}};var Ta=De.litHtmlPolyfillSupport;Ta?.(ne,Oe),(De.litHtmlVersions??=[]).push("3.1.0");var $r=Symbol.for(""),ka=e=>{if(e?.r===$r)return e?._$litStatic$},Ue=e=>({_$litStatic$:e,r:$r});var Ar=new Map,Ir=e=>(o,...a)=>{let n=a.length,c,l,s=[],p=[],y,m=0,O=!1;for(;m<n;){for(y=o[m];m<n&&(l=a[m],(c=ka(l))!==void 0);)y+=c+o[++m],O=!0;m!==n&&p.push(l),s.push(y),m++}if(m===n&&s.push(o[n]),O){let b=s.join("$$lit$$");(o=Ar.get(b))===void 0&&(s.raw=s,Ar.set(b,o=s)),a=p}return e(o,...a)},Ge=Ir(wr),ws=Ir(Lr);var Ze=x(dt()),Wr=x(w());var Ct;(function(e){e.title="title",e.title_dense="title-dense",e.subtitle1="subtitle1",e.subtitle2="subtitle2",e.body1="body1",e.body2="body2",e.caption="caption",e.breadcrumb="breadcrumb",e.overline="overline",e.button="button",e.display="display",e.title1="title-1",e.title2="title-2",e.title3="title-3",e.body1regular="body-1-regular",e.body1medium="body-1-medium",e.body1semibold="body-1-semibold",e.body2regular="body-2-regular",e.body2medium="body-2-medium",e.body2semibold="body-2-semibold",e.label1medium="label-1-medium",e.label1semibold="label-1-semibold",e.label1bold="label-1-bold",e.label2medium="label-2-medium",e.label2semibold="label-2-semibold",e.label2bold="label-2-bold",e.caption1medium="caption-1-medium",e.caption1semibold="caption-1-semibold",e.caption1bold="caption-1-bold",e.caption2medium="caption-2-medium",e.caption2semibold="caption-2-semibold",e.caption2bold="caption-2-bold"})(Ct||(Ct={}));var Br=function(e,o,a,n){var c=arguments.length,l=c<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,a):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(e,o,a,n);else for(var p=e.length-1;p>=0;p--)(s=e[p])&&(l=(c<3?s(l):c>3?s(o,a,l):s(o,a))||l);return c>3&&l&&Object.defineProperty(o,a,l),l},tt=class extends Wr.FtLitElement{constructor(){super(...arguments),this.variant=Ct.body1}render(){return this.element?Ge`
486
486
  <${Ue(this.element)}
487
487
  part="text"
488
488
  class="ft-typography ft-typography--${this.variant}">
@@ -519,7 +519,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
519
519
  position: relative;
520
520
  word-break: break-word;
521
521
  }
522
- `;var Hr=["top","right","bottom","left"],kr=["start","end"],Fe=Hr.reduce((e,o)=>e.concat(o,o+"-"+kr[0],o+"-"+kr[1]),[]),ie=Math.min,vt=Math.max,ce=Math.round;var gt=e=>({x:e,y:e}),Ha={left:"right",right:"left",bottom:"top",top:"bottom"},_a={start:"end",end:"start"};function Ke(e,o,a){return vt(e,ie(o,a))}function Ce(e,o){return typeof e=="function"?e(o):e}function jt(e){return e.split("-")[0]}function Nt(e){return e.split("-")[1]}function Ve(e){return e==="x"?"y":"x"}function Ye(e){return e==="y"?"height":"width"}function ve(e){return["top","bottom"].includes(jt(e))?"y":"x"}function je(e){return Ve(ve(e))}function _r(e,o,a){a===void 0&&(a=!1);let n=Nt(e),c=je(e),l=Ye(c),s=c==="x"?n===(a?"end":"start")?"right":"left":n==="start"?"bottom":"top";return o.reference[l]>o.floating[l]&&(s=Me(s)),[s,Me(s)]}function Dr(e){return e.replace(/start|end/g,o=>_a[o])}function Me(e){return e.replace(/left|right|bottom|top/g,o=>Ha[o])}function Da(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ur(e){return typeof e!="number"?Da(e):{top:e,right:e,bottom:e,left:e}}function It(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Gr(e,o,a){let{reference:n,floating:c}=e,l=ve(o),s=je(o),p=Ye(s),y=jt(o),m=l==="y",O=n.x+n.width/2-c.width/2,b=n.y+n.height/2-c.height/2,N=n[p]/2-c[p]/2,v;switch(y){case"top":v={x:O,y:n.y-c.height};break;case"bottom":v={x:O,y:n.y+n.height};break;case"right":v={x:n.x+n.width,y:b};break;case"left":v={x:n.x-c.width,y:b};break;default:v={x:n.x,y:n.y}}switch(Nt(o)){case"start":v[s]-=N*(a&&m?-1:1);break;case"end":v[s]+=N*(a&&m?-1:1);break}return v}var Zr=async(e,o,a)=>{let{placement:n="bottom",strategy:c="absolute",middleware:l=[],platform:s}=a,p=l.filter(Boolean),y=await(s.isRTL==null?void 0:s.isRTL(o)),m=await s.getElementRects({reference:e,floating:o,strategy:c}),{x:O,y:b}=Gr(m,n,y),N=n,v={},E=0;for(let B=0;B<p.length;B++){let{name:z,fn:W}=p[B],{x:T,y:F,data:xt,reset:G}=await W({x:O,y:b,initialPlacement:n,placement:N,strategy:c,middlewareData:v,rects:m,platform:s,elements:{reference:e,floating:o}});if(O=T??O,b=F??b,v={...v,[z]:{...v[z],...xt}},G&&E<=50){E++,typeof G=="object"&&(G.placement&&(N=G.placement),G.rects&&(m=G.rects===!0?await s.getElementRects({reference:e,floating:o,strategy:c}):G.rects),{x:O,y:b}=Gr(m,N,y)),B=-1;continue}}return{x:O,y:b,placement:N,strategy:c,middlewareData:v}};async function Xe(e,o){var a;o===void 0&&(o={});let{x:n,y:c,platform:l,rects:s,elements:p,strategy:y}=e,{boundary:m="clippingAncestors",rootBoundary:O="viewport",elementContext:b="floating",altBoundary:N=!1,padding:v=0}=Ce(o,e),E=Ur(v),z=p[N?b==="floating"?"reference":"floating":b],W=It(await l.getClippingRect({element:(a=await(l.isElement==null?void 0:l.isElement(z)))==null||a?z:z.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(p.floating)),boundary:m,rootBoundary:O,strategy:y})),T=b==="floating"?{...s.floating,x:n,y:c}:s.reference,F=await(l.getOffsetParent==null?void 0:l.getOffsetParent(p.floating)),xt=await(l.isElement==null?void 0:l.isElement(F))?await(l.getScale==null?void 0:l.getScale(F))||{x:1,y:1}:{x:1,y:1},G=It(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({rect:T,offsetParent:F,strategy:y}):T);return{top:(W.top-G.top+E.top)/xt.y,bottom:(G.bottom-W.bottom+E.bottom)/xt.y,left:(W.left-G.left+E.left)/xt.x,right:(G.right-W.right+E.right)/xt.x}}function Ua(e,o,a){return(e?[...a.filter(c=>Nt(c)===e),...a.filter(c=>Nt(c)!==e)]:a.filter(c=>jt(c)===c)).filter(c=>e?Nt(c)===e||(o?Dr(c)!==c:!1):!0)}var qe=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(o){var a,n,c;let{rects:l,middlewareData:s,placement:p,platform:y,elements:m}=o,{crossAxis:O=!1,alignment:b,allowedPlacements:N=Fe,autoAlignment:v=!0,...E}=Ce(e,o),B=b!==void 0||N===Fe?Ua(b||null,v,N):N,z=await Xe(o,E),W=((a=s.autoPlacement)==null?void 0:a.index)||0,T=B[W];if(T==null)return{};let F=_r(T,l,await(y.isRTL==null?void 0:y.isRTL(m.floating)));if(p!==T)return{reset:{placement:B[0]}};let xt=[z[jt(T)],z[F[0]],z[F[1]]],G=[...((n=s.autoPlacement)==null?void 0:n.overflows)||[],{placement:T,overflows:xt}],ro=B[W+1];if(ro)return{data:{index:W+1,overflows:G},reset:{placement:ro}};let ao=G.map(at=>{let Qt=Nt(at.placement);return[at.placement,Qt&&O?at.overflows.slice(0,2).reduce((Na,Ea)=>Na+Ea,0):at.overflows[0],at.overflows]}).sort((at,Qt)=>at[1]-Qt[1]),no=((c=ao.filter(at=>at[2].slice(0,Nt(at[0])?2:3).every(Qt=>Qt<=0))[0])==null?void 0:c[0])||ao[0][0];return no!==p?{data:{index:W+1,overflows:G},reset:{placement:no}}:{}}}};var Qe=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(o){let{x:a,y:n,placement:c}=o,{mainAxis:l=!0,crossAxis:s=!1,limiter:p={fn:z=>{let{x:W,y:T}=z;return{x:W,y:T}}},...y}=Ce(e,o),m={x:a,y:n},O=await Xe(o,y),b=ve(jt(c)),N=Ve(b),v=m[N],E=m[b];if(l){let z=N==="y"?"top":"left",W=N==="y"?"bottom":"right",T=v+O[z],F=v-O[W];v=Ke(T,v,F)}if(s){let z=b==="y"?"top":"left",W=b==="y"?"bottom":"right",T=E+O[z],F=E-O[W];E=Ke(T,E,F)}let B=p.fn({...o,[N]:v,[b]:E});return{...B,data:{x:B.x-a,y:B.y-n}}}}};function ht(e){return Fr(e)?(e.nodeName||"").toLowerCase():"#document"}function Y(e){var o;return(e==null||(o=e.ownerDocument)==null?void 0:o.defaultView)||window}function mt(e){var o;return(o=(Fr(e)?e.ownerDocument:e.document)||window.document)==null?void 0:o.documentElement}function Fr(e){return e instanceof Node||e instanceof Y(e).Node}function ct(e){return e instanceof Element||e instanceof Y(e).Element}function et(e){return e instanceof HTMLElement||e instanceof Y(e).HTMLElement}function Mr(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Y(e).ShadowRoot}function Xt(e){let{overflow:o,overflowX:a,overflowY:n,display:c}=X(e);return/auto|scroll|overlay|hidden|clip/.test(o+n+a)&&!["inline","contents"].includes(c)}function Kr(e){return["table","td","th"].includes(ht(e))}function Ee(e){let o=we(),a=X(e);return a.transform!=="none"||a.perspective!=="none"||(a.containerType?a.containerType!=="normal":!1)||!o&&(a.backdropFilter?a.backdropFilter!=="none":!1)||!o&&(a.filter?a.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(a.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(a.contain||"").includes(n))}function Vr(e){let o=Bt(e);for(;et(o)&&!le(o);){if(Ee(o))return o;o=Bt(o)}return null}function we(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function le(e){return["html","body","#document"].includes(ht(e))}function X(e){return Y(e).getComputedStyle(e)}function se(e){return ct(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Bt(e){if(ht(e)==="html")return e;let o=e.assignedSlot||e.parentNode||Mr(e)&&e.host||mt(e);return Mr(o)?o.host:o}function Yr(e){let o=Bt(e);return le(o)?e.ownerDocument?e.ownerDocument.body:e.body:et(o)&&Xt(o)?o:Yr(o)}function Ne(e,o,a){var n;o===void 0&&(o=[]),a===void 0&&(a=!0);let c=Yr(e),l=c===((n=e.ownerDocument)==null?void 0:n.body),s=Y(c);return l?o.concat(s,s.visualViewport||[],Xt(c)?c:[],s.frameElement&&a?Ne(s.frameElement):[]):o.concat(c,Ne(c,[],a))}function qr(e){let o=X(e),a=parseFloat(o.width)||0,n=parseFloat(o.height)||0,c=et(e),l=c?e.offsetWidth:a,s=c?e.offsetHeight:n,p=ce(a)!==l||ce(n)!==s;return p&&(a=l,n=s),{width:a,height:n,$:p}}function Qr(e){return ct(e)?e:e.contextElement}function qt(e){let o=Qr(e);if(!et(o))return gt(1);let a=o.getBoundingClientRect(),{width:n,height:c,$:l}=qr(o),s=(l?ce(a.width):a.width)/n,p=(l?ce(a.height):a.height)/c;return(!s||!Number.isFinite(s))&&(s=1),(!p||!Number.isFinite(p))&&(p=1),{x:s,y:p}}var Ma=gt(0);function Jr(e){let o=Y(e);return!we()||!o.visualViewport?Ma:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function Fa(e,o,a){return o===void 0&&(o=!1),!a||o&&a!==Y(e)?!1:o}function de(e,o,a,n){o===void 0&&(o=!1),a===void 0&&(a=!1);let c=e.getBoundingClientRect(),l=Qr(e),s=gt(1);o&&(n?ct(n)&&(s=qt(n)):s=qt(e));let p=Fa(l,a,n)?Jr(l):gt(0),y=(c.left+p.x)/s.x,m=(c.top+p.y)/s.y,O=c.width/s.x,b=c.height/s.y;if(l){let N=Y(l),v=n&&ct(n)?Y(n):n,E=N.frameElement;for(;E&&n&&v!==N;){let B=qt(E),z=E.getBoundingClientRect(),W=X(E),T=z.left+(E.clientLeft+parseFloat(W.paddingLeft))*B.x,F=z.top+(E.clientTop+parseFloat(W.paddingTop))*B.y;y*=B.x,m*=B.y,O*=B.x,b*=B.y,y+=T,m+=F,E=Y(E).frameElement}}return It({width:O,height:b,x:y,y:m})}function Ka(e){let{rect:o,offsetParent:a,strategy:n}=e,c=et(a),l=mt(a);if(a===l)return o;let s={scrollLeft:0,scrollTop:0},p=gt(1),y=gt(0);if((c||!c&&n!=="fixed")&&((ht(a)!=="body"||Xt(l))&&(s=se(a)),et(a))){let m=de(a);p=qt(a),y.x=m.x+a.clientLeft,y.y=m.y+a.clientTop}return{width:o.width*p.x,height:o.height*p.y,x:o.x*p.x-s.scrollLeft*p.x+y.x,y:o.y*p.y-s.scrollTop*p.y+y.y}}function Va(e){return Array.from(e.getClientRects())}function ta(e){return de(mt(e)).left+se(e).scrollLeft}function Ya(e){let o=mt(e),a=se(e),n=e.ownerDocument.body,c=vt(o.scrollWidth,o.clientWidth,n.scrollWidth,n.clientWidth),l=vt(o.scrollHeight,o.clientHeight,n.scrollHeight,n.clientHeight),s=-a.scrollLeft+ta(e),p=-a.scrollTop;return X(n).direction==="rtl"&&(s+=vt(o.clientWidth,n.clientWidth)-c),{width:c,height:l,x:s,y:p}}function ja(e,o){let a=Y(e),n=mt(e),c=a.visualViewport,l=n.clientWidth,s=n.clientHeight,p=0,y=0;if(c){l=c.width,s=c.height;let m=we();(!m||m&&o==="fixed")&&(p=c.offsetLeft,y=c.offsetTop)}return{width:l,height:s,x:p,y}}function Xa(e,o){let a=de(e,!0,o==="fixed"),n=a.top+e.clientTop,c=a.left+e.clientLeft,l=et(e)?qt(e):gt(1),s=e.clientWidth*l.x,p=e.clientHeight*l.y,y=c*l.x,m=n*l.y;return{width:s,height:p,x:y,y:m}}function jr(e,o,a){let n;if(o==="viewport")n=ja(e,a);else if(o==="document")n=Ya(mt(e));else if(ct(o))n=Xa(o,a);else{let c=Jr(e);n={...o,x:o.x-c.x,y:o.y-c.y}}return It(n)}function ea(e,o){let a=Bt(e);return a===o||!ct(a)||le(a)?!1:X(a).position==="fixed"||ea(a,o)}function qa(e,o){let a=o.get(e);if(a)return a;let n=Ne(e,[],!1).filter(p=>ct(p)&&ht(p)!=="body"),c=null,l=X(e).position==="fixed",s=l?Bt(e):e;for(;ct(s)&&!le(s);){let p=X(s),y=Ee(s);!y&&p.position==="fixed"&&(c=null),(l?!y&&!c:!y&&p.position==="static"&&!!c&&["absolute","fixed"].includes(c.position)||Xt(s)&&!y&&ea(e,s))?n=n.filter(O=>O!==s):c=p,s=Bt(s)}return o.set(e,n),n}function Qa(e){let{element:o,boundary:a,rootBoundary:n,strategy:c}=e,s=[...a==="clippingAncestors"?qa(o,this._c):[].concat(a),n],p=s[0],y=s.reduce((m,O)=>{let b=jr(o,O,c);return m.top=vt(b.top,m.top),m.right=ie(b.right,m.right),m.bottom=ie(b.bottom,m.bottom),m.left=vt(b.left,m.left),m},jr(o,p,c));return{width:y.right-y.left,height:y.bottom-y.top,x:y.left,y:y.top}}function Ja(e){return qr(e)}function tn(e,o,a){let n=et(o),c=mt(o),l=a==="fixed",s=de(e,!0,l,o),p={scrollLeft:0,scrollTop:0},y=gt(0);if(n||!n&&!l)if((ht(o)!=="body"||Xt(c))&&(p=se(o)),n){let m=de(o,!0,l,o);y.x=m.x+o.clientLeft,y.y=m.y+o.clientTop}else c&&(y.x=ta(c));return{x:s.left+p.scrollLeft-y.x,y:s.top+p.scrollTop-y.y,width:s.width,height:s.height}}function Xr(e,o){return!et(e)||X(e).position==="fixed"?null:o?o(e):e.offsetParent}function oa(e,o){let a=Y(e);if(!et(e))return a;let n=Xr(e,o);for(;n&&Kr(n)&&X(n).position==="static";)n=Xr(n,o);return n&&(ht(n)==="html"||ht(n)==="body"&&X(n).position==="static"&&!Ee(n))?a:n||Vr(e)||a}var en=async function(e){let{reference:o,floating:a,strategy:n}=e,c=this.getOffsetParent||oa,l=this.getDimensions;return{reference:tn(o,await c(a),n),floating:{x:0,y:0,...await l(a)}}};function on(e){return X(e).direction==="rtl"}var Le={convertOffsetParentRelativeRectToViewportRelativeRect:Ka,getDocumentElement:mt,getClippingRect:Qa,getOffsetParent:oa,getElementRects:en,getClientRects:Va,getDimensions:Ja,getScale:qt,isElement:ct,isRTL:on};var ra=(e,o,a)=>{let n=new Map,c={platform:Le,...a},l={...c.platform,_c:n};return Zr(e,o,{...c,platform:l})};function aa(e){return rn(e)}function Je(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function rn(e){for(let o=e;o;o=Je(o))if(o instanceof Element&&getComputedStyle(o).display==="none")return null;for(let o=Je(e);o;o=Je(o)){if(!(o instanceof Element))continue;let a=getComputedStyle(o);if(a.display!=="contents"&&(a.position!=="static"||a.filter!=="none"||o.tagName==="BODY"))return o}return null}async function na(e,o,a){return ra(e,o,{platform:{...Le,getOffsetParent:n=>Le.getOffsetParent(n,aa)},middleware:[Qe({crossAxis:!0}),qe({allowedPlacements:[a]})]})}var j=function(e,o,a,n){var c=arguments.length,l=c<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,a):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(e,o,a,n);else for(var p=e.length-1;p>=0;p--)(s=e[p])&&(l=(c<3?s(l):c>3?s(o,a,l):s(o,a))||l);return c>3&&l&&Object.defineProperty(o,a,l),l},$=class extends pe.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 pe.Debouncer,this.revealDebouncer=new pe.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return ia.html`
522
+ `;var Hr=["top","right","bottom","left"],kr=["start","end"],Fe=Hr.reduce((e,o)=>e.concat(o,o+"-"+kr[0],o+"-"+kr[1]),[]),ie=Math.min,vt=Math.max,ce=Math.round;var gt=e=>({x:e,y:e}),Ha={left:"right",right:"left",bottom:"top",top:"bottom"},_a={start:"end",end:"start"};function Ke(e,o,a){return vt(e,ie(o,a))}function Ce(e,o){return typeof e=="function"?e(o):e}function jt(e){return e.split("-")[0]}function Nt(e){return e.split("-")[1]}function Ve(e){return e==="x"?"y":"x"}function Ye(e){return e==="y"?"height":"width"}function ve(e){return["top","bottom"].includes(jt(e))?"y":"x"}function je(e){return Ve(ve(e))}function _r(e,o,a){a===void 0&&(a=!1);let n=Nt(e),c=je(e),l=Ye(c),s=c==="x"?n===(a?"end":"start")?"right":"left":n==="start"?"bottom":"top";return o.reference[l]>o.floating[l]&&(s=Me(s)),[s,Me(s)]}function Dr(e){return e.replace(/start|end/g,o=>_a[o])}function Me(e){return e.replace(/left|right|bottom|top/g,o=>Ha[o])}function Da(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ur(e){return typeof e!="number"?Da(e):{top:e,right:e,bottom:e,left:e}}function It(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Gr(e,o,a){let{reference:n,floating:c}=e,l=ve(o),s=je(o),p=Ye(s),y=jt(o),m=l==="y",O=n.x+n.width/2-c.width/2,b=n.y+n.height/2-c.height/2,N=n[p]/2-c[p]/2,v;switch(y){case"top":v={x:O,y:n.y-c.height};break;case"bottom":v={x:O,y:n.y+n.height};break;case"right":v={x:n.x+n.width,y:b};break;case"left":v={x:n.x-c.width,y:b};break;default:v={x:n.x,y:n.y}}switch(Nt(o)){case"start":v[s]-=N*(a&&m?-1:1);break;case"end":v[s]+=N*(a&&m?-1:1);break}return v}var Zr=async(e,o,a)=>{let{placement:n="bottom",strategy:c="absolute",middleware:l=[],platform:s}=a,p=l.filter(Boolean),y=await(s.isRTL==null?void 0:s.isRTL(o)),m=await s.getElementRects({reference:e,floating:o,strategy:c}),{x:O,y:b}=Gr(m,n,y),N=n,v={},E=0;for(let B=0;B<p.length;B++){let{name:z,fn:W}=p[B],{x:T,y:F,data:xt,reset:Z}=await W({x:O,y:b,initialPlacement:n,placement:N,strategy:c,middlewareData:v,rects:m,platform:s,elements:{reference:e,floating:o}});if(O=T??O,b=F??b,v={...v,[z]:{...v[z],...xt}},Z&&E<=50){E++,typeof Z=="object"&&(Z.placement&&(N=Z.placement),Z.rects&&(m=Z.rects===!0?await s.getElementRects({reference:e,floating:o,strategy:c}):Z.rects),{x:O,y:b}=Gr(m,N,y)),B=-1;continue}}return{x:O,y:b,placement:N,strategy:c,middlewareData:v}};async function Xe(e,o){var a;o===void 0&&(o={});let{x:n,y:c,platform:l,rects:s,elements:p,strategy:y}=e,{boundary:m="clippingAncestors",rootBoundary:O="viewport",elementContext:b="floating",altBoundary:N=!1,padding:v=0}=Ce(o,e),E=Ur(v),z=p[N?b==="floating"?"reference":"floating":b],W=It(await l.getClippingRect({element:(a=await(l.isElement==null?void 0:l.isElement(z)))==null||a?z:z.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(p.floating)),boundary:m,rootBoundary:O,strategy:y})),T=b==="floating"?{...s.floating,x:n,y:c}:s.reference,F=await(l.getOffsetParent==null?void 0:l.getOffsetParent(p.floating)),xt=await(l.isElement==null?void 0:l.isElement(F))?await(l.getScale==null?void 0:l.getScale(F))||{x:1,y:1}:{x:1,y:1},Z=It(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({rect:T,offsetParent:F,strategy:y}):T);return{top:(W.top-Z.top+E.top)/xt.y,bottom:(Z.bottom-W.bottom+E.bottom)/xt.y,left:(W.left-Z.left+E.left)/xt.x,right:(Z.right-W.right+E.right)/xt.x}}function Ua(e,o,a){return(e?[...a.filter(c=>Nt(c)===e),...a.filter(c=>Nt(c)!==e)]:a.filter(c=>jt(c)===c)).filter(c=>e?Nt(c)===e||(o?Dr(c)!==c:!1):!0)}var qe=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(o){var a,n,c;let{rects:l,middlewareData:s,placement:p,platform:y,elements:m}=o,{crossAxis:O=!1,alignment:b,allowedPlacements:N=Fe,autoAlignment:v=!0,...E}=Ce(e,o),B=b!==void 0||N===Fe?Ua(b||null,v,N):N,z=await Xe(o,E),W=((a=s.autoPlacement)==null?void 0:a.index)||0,T=B[W];if(T==null)return{};let F=_r(T,l,await(y.isRTL==null?void 0:y.isRTL(m.floating)));if(p!==T)return{reset:{placement:B[0]}};let xt=[z[jt(T)],z[F[0]],z[F[1]]],Z=[...((n=s.autoPlacement)==null?void 0:n.overflows)||[],{placement:T,overflows:xt}],ro=B[W+1];if(ro)return{data:{index:W+1,overflows:Z},reset:{placement:ro}};let ao=Z.map(at=>{let Qt=Nt(at.placement);return[at.placement,Qt&&O?at.overflows.slice(0,2).reduce((Na,Ea)=>Na+Ea,0):at.overflows[0],at.overflows]}).sort((at,Qt)=>at[1]-Qt[1]),no=((c=ao.filter(at=>at[2].slice(0,Nt(at[0])?2:3).every(Qt=>Qt<=0))[0])==null?void 0:c[0])||ao[0][0];return no!==p?{data:{index:W+1,overflows:Z},reset:{placement:no}}:{}}}};var Qe=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(o){let{x:a,y:n,placement:c}=o,{mainAxis:l=!0,crossAxis:s=!1,limiter:p={fn:z=>{let{x:W,y:T}=z;return{x:W,y:T}}},...y}=Ce(e,o),m={x:a,y:n},O=await Xe(o,y),b=ve(jt(c)),N=Ve(b),v=m[N],E=m[b];if(l){let z=N==="y"?"top":"left",W=N==="y"?"bottom":"right",T=v+O[z],F=v-O[W];v=Ke(T,v,F)}if(s){let z=b==="y"?"top":"left",W=b==="y"?"bottom":"right",T=E+O[z],F=E-O[W];E=Ke(T,E,F)}let B=p.fn({...o,[N]:v,[b]:E});return{...B,data:{x:B.x-a,y:B.y-n}}}}};function ht(e){return Fr(e)?(e.nodeName||"").toLowerCase():"#document"}function Y(e){var o;return(e==null||(o=e.ownerDocument)==null?void 0:o.defaultView)||window}function mt(e){var o;return(o=(Fr(e)?e.ownerDocument:e.document)||window.document)==null?void 0:o.documentElement}function Fr(e){return e instanceof Node||e instanceof Y(e).Node}function ct(e){return e instanceof Element||e instanceof Y(e).Element}function et(e){return e instanceof HTMLElement||e instanceof Y(e).HTMLElement}function Mr(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Y(e).ShadowRoot}function Xt(e){let{overflow:o,overflowX:a,overflowY:n,display:c}=X(e);return/auto|scroll|overlay|hidden|clip/.test(o+n+a)&&!["inline","contents"].includes(c)}function Kr(e){return["table","td","th"].includes(ht(e))}function Ee(e){let o=we(),a=X(e);return a.transform!=="none"||a.perspective!=="none"||(a.containerType?a.containerType!=="normal":!1)||!o&&(a.backdropFilter?a.backdropFilter!=="none":!1)||!o&&(a.filter?a.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(a.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(a.contain||"").includes(n))}function Vr(e){let o=Bt(e);for(;et(o)&&!le(o);){if(Ee(o))return o;o=Bt(o)}return null}function we(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function le(e){return["html","body","#document"].includes(ht(e))}function X(e){return Y(e).getComputedStyle(e)}function se(e){return ct(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Bt(e){if(ht(e)==="html")return e;let o=e.assignedSlot||e.parentNode||Mr(e)&&e.host||mt(e);return Mr(o)?o.host:o}function Yr(e){let o=Bt(e);return le(o)?e.ownerDocument?e.ownerDocument.body:e.body:et(o)&&Xt(o)?o:Yr(o)}function Ne(e,o,a){var n;o===void 0&&(o=[]),a===void 0&&(a=!0);let c=Yr(e),l=c===((n=e.ownerDocument)==null?void 0:n.body),s=Y(c);return l?o.concat(s,s.visualViewport||[],Xt(c)?c:[],s.frameElement&&a?Ne(s.frameElement):[]):o.concat(c,Ne(c,[],a))}function qr(e){let o=X(e),a=parseFloat(o.width)||0,n=parseFloat(o.height)||0,c=et(e),l=c?e.offsetWidth:a,s=c?e.offsetHeight:n,p=ce(a)!==l||ce(n)!==s;return p&&(a=l,n=s),{width:a,height:n,$:p}}function Qr(e){return ct(e)?e:e.contextElement}function qt(e){let o=Qr(e);if(!et(o))return gt(1);let a=o.getBoundingClientRect(),{width:n,height:c,$:l}=qr(o),s=(l?ce(a.width):a.width)/n,p=(l?ce(a.height):a.height)/c;return(!s||!Number.isFinite(s))&&(s=1),(!p||!Number.isFinite(p))&&(p=1),{x:s,y:p}}var Ma=gt(0);function Jr(e){let o=Y(e);return!we()||!o.visualViewport?Ma:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function Fa(e,o,a){return o===void 0&&(o=!1),!a||o&&a!==Y(e)?!1:o}function de(e,o,a,n){o===void 0&&(o=!1),a===void 0&&(a=!1);let c=e.getBoundingClientRect(),l=Qr(e),s=gt(1);o&&(n?ct(n)&&(s=qt(n)):s=qt(e));let p=Fa(l,a,n)?Jr(l):gt(0),y=(c.left+p.x)/s.x,m=(c.top+p.y)/s.y,O=c.width/s.x,b=c.height/s.y;if(l){let N=Y(l),v=n&&ct(n)?Y(n):n,E=N.frameElement;for(;E&&n&&v!==N;){let B=qt(E),z=E.getBoundingClientRect(),W=X(E),T=z.left+(E.clientLeft+parseFloat(W.paddingLeft))*B.x,F=z.top+(E.clientTop+parseFloat(W.paddingTop))*B.y;y*=B.x,m*=B.y,O*=B.x,b*=B.y,y+=T,m+=F,E=Y(E).frameElement}}return It({width:O,height:b,x:y,y:m})}function Ka(e){let{rect:o,offsetParent:a,strategy:n}=e,c=et(a),l=mt(a);if(a===l)return o;let s={scrollLeft:0,scrollTop:0},p=gt(1),y=gt(0);if((c||!c&&n!=="fixed")&&((ht(a)!=="body"||Xt(l))&&(s=se(a)),et(a))){let m=de(a);p=qt(a),y.x=m.x+a.clientLeft,y.y=m.y+a.clientTop}return{width:o.width*p.x,height:o.height*p.y,x:o.x*p.x-s.scrollLeft*p.x+y.x,y:o.y*p.y-s.scrollTop*p.y+y.y}}function Va(e){return Array.from(e.getClientRects())}function ta(e){return de(mt(e)).left+se(e).scrollLeft}function Ya(e){let o=mt(e),a=se(e),n=e.ownerDocument.body,c=vt(o.scrollWidth,o.clientWidth,n.scrollWidth,n.clientWidth),l=vt(o.scrollHeight,o.clientHeight,n.scrollHeight,n.clientHeight),s=-a.scrollLeft+ta(e),p=-a.scrollTop;return X(n).direction==="rtl"&&(s+=vt(o.clientWidth,n.clientWidth)-c),{width:c,height:l,x:s,y:p}}function ja(e,o){let a=Y(e),n=mt(e),c=a.visualViewport,l=n.clientWidth,s=n.clientHeight,p=0,y=0;if(c){l=c.width,s=c.height;let m=we();(!m||m&&o==="fixed")&&(p=c.offsetLeft,y=c.offsetTop)}return{width:l,height:s,x:p,y}}function Xa(e,o){let a=de(e,!0,o==="fixed"),n=a.top+e.clientTop,c=a.left+e.clientLeft,l=et(e)?qt(e):gt(1),s=e.clientWidth*l.x,p=e.clientHeight*l.y,y=c*l.x,m=n*l.y;return{width:s,height:p,x:y,y:m}}function jr(e,o,a){let n;if(o==="viewport")n=ja(e,a);else if(o==="document")n=Ya(mt(e));else if(ct(o))n=Xa(o,a);else{let c=Jr(e);n={...o,x:o.x-c.x,y:o.y-c.y}}return It(n)}function ea(e,o){let a=Bt(e);return a===o||!ct(a)||le(a)?!1:X(a).position==="fixed"||ea(a,o)}function qa(e,o){let a=o.get(e);if(a)return a;let n=Ne(e,[],!1).filter(p=>ct(p)&&ht(p)!=="body"),c=null,l=X(e).position==="fixed",s=l?Bt(e):e;for(;ct(s)&&!le(s);){let p=X(s),y=Ee(s);!y&&p.position==="fixed"&&(c=null),(l?!y&&!c:!y&&p.position==="static"&&!!c&&["absolute","fixed"].includes(c.position)||Xt(s)&&!y&&ea(e,s))?n=n.filter(O=>O!==s):c=p,s=Bt(s)}return o.set(e,n),n}function Qa(e){let{element:o,boundary:a,rootBoundary:n,strategy:c}=e,s=[...a==="clippingAncestors"?qa(o,this._c):[].concat(a),n],p=s[0],y=s.reduce((m,O)=>{let b=jr(o,O,c);return m.top=vt(b.top,m.top),m.right=ie(b.right,m.right),m.bottom=ie(b.bottom,m.bottom),m.left=vt(b.left,m.left),m},jr(o,p,c));return{width:y.right-y.left,height:y.bottom-y.top,x:y.left,y:y.top}}function Ja(e){return qr(e)}function tn(e,o,a){let n=et(o),c=mt(o),l=a==="fixed",s=de(e,!0,l,o),p={scrollLeft:0,scrollTop:0},y=gt(0);if(n||!n&&!l)if((ht(o)!=="body"||Xt(c))&&(p=se(o)),n){let m=de(o,!0,l,o);y.x=m.x+o.clientLeft,y.y=m.y+o.clientTop}else c&&(y.x=ta(c));return{x:s.left+p.scrollLeft-y.x,y:s.top+p.scrollTop-y.y,width:s.width,height:s.height}}function Xr(e,o){return!et(e)||X(e).position==="fixed"?null:o?o(e):e.offsetParent}function oa(e,o){let a=Y(e);if(!et(e))return a;let n=Xr(e,o);for(;n&&Kr(n)&&X(n).position==="static";)n=Xr(n,o);return n&&(ht(n)==="html"||ht(n)==="body"&&X(n).position==="static"&&!Ee(n))?a:n||Vr(e)||a}var en=async function(e){let{reference:o,floating:a,strategy:n}=e,c=this.getOffsetParent||oa,l=this.getDimensions;return{reference:tn(o,await c(a),n),floating:{x:0,y:0,...await l(a)}}};function on(e){return X(e).direction==="rtl"}var Le={convertOffsetParentRelativeRectToViewportRelativeRect:Ka,getDocumentElement:mt,getClippingRect:Qa,getOffsetParent:oa,getElementRects:en,getClientRects:Va,getDimensions:Ja,getScale:qt,isElement:ct,isRTL:on};var ra=(e,o,a)=>{let n=new Map,c={platform:Le,...a},l={...c.platform,_c:n};return Zr(e,o,{...c,platform:l})};function aa(e){return rn(e)}function Je(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function rn(e){for(let o=e;o;o=Je(o))if(o instanceof Element&&getComputedStyle(o).display==="none")return null;for(let o=Je(e);o;o=Je(o)){if(!(o instanceof Element))continue;let a=getComputedStyle(o);if(a.display!=="contents"&&(a.position!=="static"||a.filter!=="none"||o.tagName==="BODY"))return o}return null}async function na(e,o,a){return ra(e,o,{platform:{...Le,getOffsetParent:n=>Le.getOffsetParent(n,aa)},middleware:[Qe({crossAxis:!0}),qe({allowedPlacements:[a]})]})}var j=function(e,o,a,n){var c=arguments.length,l=c<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,a):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(e,o,a,n);else for(var p=e.length-1;p>=0;p--)(s=e[p])&&(l=(c<3?s(l):c>3?s(o,a,l):s(o,a))||l);return c>3&&l&&Object.defineProperty(o,a,l),l},$=class extends pe.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 pe.Debouncer,this.revealDebouncer=new pe.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return ia.html`
523
523
  <div part="container"
524
524
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
525
525
  @mouseenter=${this.onHover}
@@ -549,7 +549,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
549
549
  <div></div>
550
550
  <div></div>
551
551
  </div>
552
- `}};Pt.styles=ar;(0,ga.customElement)("ft-loader")(Pt);var Et=x(D()),to=x(be()),_=x(dt()),Z=function(e,o,a,n){var c=arguments.length,l=c<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,a):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(e,o,a,n);else for(var p=e.length-1;p>=0;p--)(s=e[p])&&(l=(c<3?s(l):c>3?s(o,a,l):s(o,a))||l);return c>3&&l&&Object.defineProperty(o,a,l),l},R=class extends(0,wt.toFtFormComponent)(wt.FtLitElement,"button"){get buttonClasses(){return{}}get typographyVariant(){return""}constructor(){super(),this.href=void 0,this.target=void 0,this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.ariaLabel=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.addEventListener("click",o=>{var a;this.isDisabled()?(o.preventDefault(),o.stopPropagation(),o.stopImmediatePropagation()):this.type=="submit"&&((a=this.form)===null||a===void 0||a.requestSubmit())})}render(){var o,a,n;let c=Et.html`
552
+ `}};Pt.styles=ar;(0,ga.customElement)("ft-loader")(Pt);var Et=x(D()),to=x(be()),H=x(dt()),G=function(e,o,a,n){var c=arguments.length,l=c<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,a):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(e,o,a,n);else for(var p=e.length-1;p>=0;p--)(s=e[p])&&(l=(c<3?s(l):c>3?s(o,a,l):s(o,a))||l);return c>3&&l&&Object.defineProperty(o,a,l),l},R=class extends(0,wt.toFtFormComponent)(wt.FtLitElement,"button"){get buttonClasses(){return{}}get typographyVariant(){return""}constructor(){super(),this.href=void 0,this.target=void 0,this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.ariaLabel=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.addEventListener("click",o=>{var a;this.isDisabled()?(o.preventDefault(),o.stopPropagation(),o.stopImmediatePropagation()):this.type=="submit"&&((a=this.form)===null||a===void 0||a.requestSubmit())})}render(){var o,a,n;let c=Et.html`
553
553
  <ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
554
554
  <ft-typography part="label"
555
555
  variant=${this.typographyVariant}
@@ -586,7 +586,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
586
586
  <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
587
587
  `:Et.html`
588
588
  <slot part="icon" name="icon"></slot>
589
- `}focus(){var o;(o=this.button)===null||o===void 0||o.focus()}click(){var o;(o=this.button)===null||o===void 0||o.click()}getLabel(){return this.label||this.textContent}get textContent(){return(0,wt.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};R.elementDefinitions={"ft-ripple":A,"ft-tooltip":$,"ft-typography":tt,"ft-icon":J,"ft-loader":Pt};Z([(0,_.property)()],R.prototype,"href",void 0);Z([(0,_.property)()],R.prototype,"target",void 0);Z([(0,_.property)({type:String,reflect:!0})],R.prototype,"role",void 0);Z([(0,_.property)()],R.prototype,"type",void 0);Z([(0,_.property)({type:Boolean})],R.prototype,"disabled",void 0);Z([(0,_.property)()],R.prototype,"label",void 0);Z([(0,_.property)()],R.prototype,"icon",void 0);Z([(0,_.property)()],R.prototype,"iconVariant",void 0);Z([(0,_.property)({type:Boolean})],R.prototype,"trailingIcon",void 0);Z([(0,_.property)({type:Boolean})],R.prototype,"loading",void 0);Z([(0,_.property)({attribute:"aria-label"})],R.prototype,"ariaLabel",void 0);Z([(0,_.property)()],R.prototype,"tooltipPosition",void 0);Z([(0,_.property)({type:Boolean})],R.prototype,"hideTooltip",void 0);Z([(0,_.property)({type:Boolean})],R.prototype,"forceTooltip",void 0);Z([(0,_.query)(".ft-button")],R.prototype,"button",void 0);Z([(0,_.query)(".ft-button--label slot")],R.prototype,"slottedContent",void 0);var $e=function(e,o,a,n){var c=arguments.length,l=c<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,a):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(e,o,a,n);else for(var p=e.length-1;p>=0;p--)(s=e[p])&&(l=(c<3?s(l):c>3?s(o,a,l):s(o,a))||l);return c>3&&l&&Object.defineProperty(o,a,l),l},ot=class extends R{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"}};ot.styles=[ha.safariEllipsisFix,dr];$e([(0,ye.property)({type:Boolean})],ot.prototype,"primary",void 0);$e([(0,ye.property)({type:Boolean})],ot.prototype,"outlined",void 0);$e([(0,ye.property)({type:Boolean})],ot.prototype,"dense",void 0);$e([(0,ye.property)({type:Boolean})],ot.prototype,"round",void 0);var ue=x(dt());var Be=x(w());var ma=x(D()),f=x(w());var ba=[ma.css`
589
+ `}focus(){var o;(o=this.button)===null||o===void 0||o.focus()}focusWithoutTooltip(){var o;this.setTooltipManual(!0),(o=this.button)===null||o===void 0||o.focus(),this.setTooltipManual(!1)}setTooltipManual(o){this.tooltip&&(this.tooltip.manual=o)}click(){var o;(o=this.button)===null||o===void 0||o.click()}getLabel(){return this.label||this.textContent}get textContent(){return(0,wt.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};R.elementDefinitions={"ft-ripple":A,"ft-tooltip":$,"ft-typography":tt,"ft-icon":J,"ft-loader":Pt};G([(0,H.property)()],R.prototype,"href",void 0);G([(0,H.property)()],R.prototype,"target",void 0);G([(0,H.property)({type:String,reflect:!0})],R.prototype,"role",void 0);G([(0,H.property)()],R.prototype,"type",void 0);G([(0,H.property)({type:Boolean})],R.prototype,"disabled",void 0);G([(0,H.property)()],R.prototype,"label",void 0);G([(0,H.property)()],R.prototype,"icon",void 0);G([(0,H.property)()],R.prototype,"iconVariant",void 0);G([(0,H.property)({type:Boolean})],R.prototype,"trailingIcon",void 0);G([(0,H.property)({type:Boolean})],R.prototype,"loading",void 0);G([(0,H.property)({attribute:"aria-label"})],R.prototype,"ariaLabel",void 0);G([(0,H.property)()],R.prototype,"tooltipPosition",void 0);G([(0,H.property)({type:Boolean})],R.prototype,"hideTooltip",void 0);G([(0,H.property)({type:Boolean})],R.prototype,"forceTooltip",void 0);G([(0,H.query)(".ft-button")],R.prototype,"button",void 0);G([(0,H.query)(".ft-button--label slot")],R.prototype,"slottedContent",void 0);G([(0,H.query)("[part=tooltip]")],R.prototype,"tooltip",void 0);var $e=function(e,o,a,n){var c=arguments.length,l=c<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,a):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(e,o,a,n);else for(var p=e.length-1;p>=0;p--)(s=e[p])&&(l=(c<3?s(l):c>3?s(o,a,l):s(o,a))||l);return c>3&&l&&Object.defineProperty(o,a,l),l},ot=class extends R{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"}};ot.styles=[ha.safariEllipsisFix,dr];$e([(0,ye.property)({type:Boolean})],ot.prototype,"primary",void 0);$e([(0,ye.property)({type:Boolean})],ot.prototype,"outlined",void 0);$e([(0,ye.property)({type:Boolean})],ot.prototype,"dense",void 0);$e([(0,ye.property)({type:Boolean})],ot.prototype,"round",void 0);var ue=x(dt());var Be=x(w());var ma=x(D()),f=x(w());var ba=[ma.css`
590
590
  :host {
591
591
  display: inline-block;
592
592
  max-width: 100%;