@fluid-topics/ft-file-button 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.
@@ -332,7 +332,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
332
332
  .ft-icon--material {
333
333
  font-family: ${K.materialFontFamily}, "Material Icons", sans-serif;
334
334
  }
335
- `;var ar=C.FtCssVariableFactory.extend("--ft-button-color","",C.designSystemVariables.colorPrimary),z={backgroundColor:C.FtCssVariableFactory.extend("--ft-button-background-color","",C.designSystemVariables.colorSurface),borderRadius:C.FtCssVariableFactory.extend("--ft-button-border-radius","",C.designSystemVariables.borderRadiusL),color:ar,fontSize:C.FtCssVariableFactory.extend("--ft-button-font-size","",rt.fontSize),iconSize:C.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:C.FtCssVariableFactory.extend("--ft-button-ripple-color","",ar),verticalPadding:C.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:C.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:C.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:C.FtCssVariableFactory.external(C.designSystemVariables.colorOpacityDisabled,"Design system")},nr=C.FtCssVariableFactory.extend("--ft-button-primary-color","",C.FtCssVariableFactory.extend("--ft-button-color","",C.designSystemVariables.colorOnPrimary)),Ae={backgroundColor:C.FtCssVariableFactory.extend("--ft-button-primary-background-color","",C.FtCssVariableFactory.extend("--ft-button-background-color","",C.designSystemVariables.colorPrimary)),color:nr,rippleColor:C.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",nr)},at={borderRadius:C.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",C.FtCssVariableFactory.extend("--ft-button-border-radius","",C.designSystemVariables.borderRadiusM)),verticalPadding:C.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:C.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:C.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},cr=[ir.css`
335
+ `;var ar=C.FtCssVariableFactory.extend("--ft-button-color","",C.designSystemVariables.colorPrimary),H={backgroundColor:C.FtCssVariableFactory.extend("--ft-button-background-color","",C.designSystemVariables.colorSurface),borderRadius:C.FtCssVariableFactory.extend("--ft-button-border-radius","",C.designSystemVariables.borderRadiusL),color:ar,fontSize:C.FtCssVariableFactory.extend("--ft-button-font-size","",rt.fontSize),iconSize:C.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:C.FtCssVariableFactory.extend("--ft-button-ripple-color","",ar),verticalPadding:C.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:C.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:C.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:C.FtCssVariableFactory.external(C.designSystemVariables.colorOpacityDisabled,"Design system")},nr=C.FtCssVariableFactory.extend("--ft-button-primary-color","",C.FtCssVariableFactory.extend("--ft-button-color","",C.designSystemVariables.colorOnPrimary)),Ae={backgroundColor:C.FtCssVariableFactory.extend("--ft-button-primary-background-color","",C.FtCssVariableFactory.extend("--ft-button-background-color","",C.designSystemVariables.colorPrimary)),color:nr,rippleColor:C.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",nr)},at={borderRadius:C.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",C.FtCssVariableFactory.extend("--ft-button-border-radius","",C.designSystemVariables.borderRadiusM)),verticalPadding:C.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:C.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:C.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},cr=[ir.css`
336
336
  :host {
337
337
  display: inline-block;
338
338
  max-width: 100%;
@@ -343,7 +343,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
343
343
  box-shadow: 0px 0px 0px transparent;
344
344
  border: 0px solid transparent;
345
345
  text-shadow: 0px 0px 0px transparent;
346
- font-size: ${z.fontSize};
346
+ font-size: ${H.fontSize};
347
347
  text-decoration: none;
348
348
  }
349
349
 
@@ -373,21 +373,21 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
373
373
  border: none;
374
374
  pointer-events: auto;
375
375
 
376
- --ft-button-internal-line-height: max(calc(${z.fontSize} + 2px), ${z.iconSize});
377
- --ft-button-internal-color: ${z.color};
378
- ${(0,C.setVariable)(K.size,z.iconSize)};
379
- ${(0,C.setVariable)(u.color,z.rippleColor)};
376
+ --ft-button-internal-line-height: max(calc(${H.fontSize} + 2px), ${H.iconSize});
377
+ --ft-button-internal-color: ${H.color};
378
+ ${(0,C.setVariable)(K.size,H.iconSize)};
379
+ ${(0,C.setVariable)(u.color,H.rippleColor)};
380
380
 
381
- border-radius: ${z.borderRadius};
382
- padding: ${z.verticalPadding} ${z.horizontalPadding};
383
- background-color: ${z.backgroundColor};
381
+ border-radius: ${H.borderRadius};
382
+ padding: ${H.verticalPadding} ${H.horizontalPadding};
383
+ background-color: ${H.backgroundColor};
384
384
  color: var(--ft-button-internal-color);
385
385
  -webkit-mask-image: radial-gradient(white, black);
386
386
  }
387
387
 
388
388
  .ft-button.ft-button--outlined {
389
389
  border: 1px solid var(--ft-button-internal-color);
390
- padding: calc(${z.verticalPadding} - 1px) calc(${z.horizontalPadding} - 1px);
390
+ padding: calc(${H.verticalPadding} - 1px) calc(${H.horizontalPadding} - 1px);
391
391
  }
392
392
 
393
393
  .ft-button.ft-button--dense {
@@ -405,7 +405,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
405
405
  }
406
406
 
407
407
  .ft-button--round {
408
- border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${z.verticalPadding});
408
+ border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${H.verticalPadding});
409
409
  }
410
410
 
411
411
  .ft-button--round.ft-button--dense {
@@ -414,7 +414,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
414
414
 
415
415
  .ft-button[disabled] {
416
416
  filter: grayscale(1);
417
- opacity: ${z.opacityDisabled};
417
+ opacity: ${H.opacityDisabled};
418
418
  }
419
419
 
420
420
  .ft-button.ft-button--primary {
@@ -433,7 +433,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
433
433
  white-space: nowrap;
434
434
  text-overflow: ellipsis;
435
435
  display: block;
436
- margin: 0 ${z.iconPadding};
436
+ margin: 0 ${H.iconPadding};
437
437
  ${(0,C.setVariable)(rt.fontSize,"1em")};
438
438
  ${(0,C.setVariable)(rt.lineHeight,"var(--ft-button-internal-line-height)")};
439
439
  }
@@ -452,8 +452,8 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
452
452
  }
453
453
 
454
454
  .ft-button--label[hidden] + [part="icon"] {
455
- margin: 0 calc(${z.horizontalPadding} * -1);
456
- padding: 0 ${z.verticalPadding};
455
+ margin: 0 calc(${H.horizontalPadding} * -1);
456
+ padding: 0 ${H.verticalPadding};
457
457
  }
458
458
 
459
459
  .ft-button--dense .ft-button--label[hidden] + [part="icon"] {
@@ -466,7 +466,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
466
466
  }
467
467
 
468
468
  ft-loader {
469
- ${(0,C.setVariable)(L.size,z.iconSize)};
469
+ ${(0,C.setVariable)(L.size,H.iconSize)};
470
470
  ${(0,C.setVariable)(L.color,"var(--ft-button-internal-color)")};
471
471
  }
472
472
  `,C.noTextSelect];var Nt=x(w());var pr=x(w());var sr=x(D()),U=x(lt()),dr=x($e()),Qt=x(w());var F=function(e,o,a,i){var c=arguments.length,l=c<3?o:i===null?i=Object.getOwnPropertyDescriptor(o,a):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(e,o,a,i);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},A=class extends Qt.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new Qt.Debouncer(1e3),this.onTransitionStart=o=>{o.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=o=>{o.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new Qt.Debouncer(10),this.moveRipple=o=>{var a,i;let{x:c,y:l}=this.getCoordinates(o),s=(i=(a=this.ripple)===null||a===void 0?void 0:a.getBoundingClientRect())!==null&&i!==void 0?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(c!=null?c-s.x:s.width/2),this.originY=Math.round(l!=null?l-s.y:s.height/2)},this.startPress=o=>{this.moveRipple(o),this.pressed=!this.isIgnored(o)},this.endPress=()=>{this.pressed=!1},this.startHover=o=>{this.hovered=!this.isIgnored(o)},this.endHover=()=>{this.hovered=!1},this.startFocus=o=>{this.focused=this.isFocusVisible(o?.target)&&!this.isIgnored(o)},this.endFocus=()=>{this.focused=!1}}render(){let o={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return sr.html`
@@ -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,i;super.update(o),o.has("disabled")&&(this.disabled?(this.endRipple(),(a=this.target)===null||a===void 0||a.removeAttribute("data-is-ft-ripple-target")):(i=this.target)===null||i===void 0||i.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 i=(o=this.shadowRoot)===null||o===void 0?void 0:o.host.parentElement;i&&this.setupFor((a=this.target)!==null&&a!==void 0?a:i)}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(h=>window.addEventListener(h,this.endPress,{once:!0})),this.startPress(y)},i=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",i,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",i,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,i=o,c,l;return a.x!=null?{x:c,y:l}=a:i.touches!=null&&(c=i.touches[0].clientX,l=i.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=uo;F([(0,U.property)({type:Boolean})],A.prototype,"primary",void 0);F([(0,U.property)({type:Boolean})],A.prototype,"secondary",void 0);F([(0,U.property)({type:Boolean})],A.prototype,"unbounded",void 0);F([(0,U.property)({type:Boolean})],A.prototype,"activated",void 0);F([(0,U.property)({type:Boolean})],A.prototype,"selected",void 0);F([(0,U.property)({type:Boolean})],A.prototype,"disabled",void 0);F([(0,U.state)()],A.prototype,"hovered",void 0);F([(0,U.state)()],A.prototype,"focused",void 0);F([(0,U.state)()],A.prototype,"pressed",void 0);F([(0,U.state)()],A.prototype,"rippling",void 0);F([(0,U.state)()],A.prototype,"originX",void 0);F([(0,U.state)()],A.prototype,"originY",void 0);F([(0,U.query)(".ft-ripple")],A.prototype,"ripple",void 0);F([(0,U.query)(".ft-ripple--effect")],A.prototype,"rippleEffect",void 0);(0,pr.customElement)("ft-ripple")(A);var aa=x(w());var ra=x(D()),T=x(lt()),le=x(w());var Br=x(w());var ze=globalThis,ge=ze.trustedTypes,fr=ge?ge.createPolicy("lit-html",{createHTML:e=>e}):void 0,br="$lit$",xt=`lit$${(Math.random()+"").slice(9)}$`,xr="?"+xt,$a=`<${xr}>`,Rt=document,me=()=>Rt.createComment(""),te=e=>e===null||typeof e!="object"&&typeof e!="function",Sr=Array.isArray,Ba=e=>Sr(e)||typeof e?.[Symbol.iterator]=="function",Be=`[
484
484
  \f\r]`,Jt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,yr=/-->/g,ur=/>/g,wt=RegExp(`>|${Be}(?:([^\\s"'>=/]+)(${Be}*=${Be}*(?:[^
485
- \f\r"'\`<>=]|("|')|))|$)`,"g"),gr=/'/g,mr=/"/g,Or=/^(?:script|style|textarea|title)$/i,Cr=e=>(o,...a)=>({_$litType$:e,strings:o,values:a}),vr=Cr(1),Nr=Cr(2),ee=Symbol.for("lit-noChange"),H=Symbol.for("lit-nothing"),hr=new WeakMap,Lt=Rt.createTreeWalker(Rt,129);function Er(e,o){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return fr!==void 0?fr.createHTML(o):o}var Ia=(e,o)=>{let a=e.length-1,i=[],c,l=o===2?"<svg>":"",s=Jt;for(let p=0;p<a;p++){let y=e[p],h,O,b=-1,N=0;for(;N<y.length&&(s.lastIndex=N,O=s.exec(y),O!==null);)N=s.lastIndex,s===Jt?O[1]==="!--"?s=yr:O[1]!==void 0?s=ur:O[2]!==void 0?(Or.test(O[2])&&(c=RegExp("</"+O[2],"g")),s=wt):O[3]!==void 0&&(s=wt):s===wt?O[0]===">"?(s=c??Jt,b=-1):O[1]===void 0?b=-2:(b=s.lastIndex-O[2].length,h=O[1],s=O[3]===void 0?wt:O[3]==='"'?mr:gr):s===mr||s===gr?s=wt:s===yr||s===ur?s=Jt:(s=wt,c=void 0);let v=s===wt&&e[p+1].startsWith("/>")?" ":"";l+=s===Jt?y+$a:b>=0?(i.push(h),y.slice(0,b)+br+y.slice(b)+xt+v):y+xt+(b===-2?p:v)}return[Er(e,l+(e[a]||"<?>")+(o===2?"</svg>":"")),i]},oe=class e{constructor({strings:o,_$litType$:a},i){let c;this.parts=[];let l=0,s=0,p=o.length-1,y=this.parts,[h,O]=Ia(o,a);if(this.el=e.createElement(h,i),Lt.currentNode=this.el.content,a===2){let b=this.el.content.firstChild;b.replaceWith(...b.childNodes)}for(;(c=Lt.nextNode())!==null&&y.length<p;){if(c.nodeType===1){if(c.hasAttributes())for(let b of c.getAttributeNames())if(b.endsWith(br)){let N=O[s++],v=c.getAttribute(b).split(xt),E=/([.?@])?(.*)/.exec(N);y.push({type:1,index:l,name:E[2],strings:v,ctor:E[1]==="."?We:E[1]==="?"?Pe:E[1]==="@"?ke:Mt}),c.removeAttribute(b)}else b.startsWith(xt)&&(y.push({type:6,index:l}),c.removeAttribute(b));if(Or.test(c.tagName)){let b=c.textContent.split(xt),N=b.length-1;if(N>0){c.textContent=ge?ge.emptyScript:"";for(let v=0;v<N;v++)c.append(b[v],me()),Lt.nextNode(),y.push({type:2,index:++l});c.append(b[N],me())}}}else if(c.nodeType===8)if(c.data===xr)y.push({type:2,index:l});else{let b=-1;for(;(b=c.data.indexOf(xt,b+1))!==-1;)y.push({type:7,index:l}),b+=xt.length-1}l++}}static createElement(o,a){let i=Rt.createElement("template");return i.innerHTML=o,i}};function Zt(e,o,a=e,i){if(o===ee)return o;let c=i!==void 0?a._$Co?.[i]:a._$Cl,l=te(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,i)),i!==void 0?(a._$Co??=[])[i]=c:a._$Cl=c),c!==void 0&&(o=Zt(e,c._$AS(e,o.values),c,i)),o}var Ie=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:i}=this._$AD,c=(o?.creationScope??Rt).importNode(a,!0);Lt.currentNode=c;let l=Lt.nextNode(),s=0,p=0,y=i[0];for(;y!==void 0;){if(s===y.index){let h;y.type===2?h=new he(l,l.nextSibling,this,o):y.type===1?h=new y.ctor(l,y.name,y.strings,this,o):y.type===6&&(h=new Te(l,this,o)),this._$AV.push(h),y=i[++p]}s!==y?.index&&(l=Lt.nextNode(),s++)}return Lt.currentNode=Rt,c}p(o){let a=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(o,i,a),a+=i.strings.length-2):i._$AI(o[a])),a++}},he=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(o,a,i,c){this.type=2,this._$AH=H,this._$AN=void 0,this._$AA=o,this._$AB=a,this._$AM=i,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=Zt(this,o,a),te(o)?o===H||o==null||o===""?(this._$AH!==H&&this._$AR(),this._$AH=H):o!==this._$AH&&o!==ee&&this._(o):o._$litType$!==void 0?this.g(o):o.nodeType!==void 0?this.$(o):Ba(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&&te(this._$AH)?this._$AA.nextSibling.data=o:this.$(Rt.createTextNode(o)),this._$AH=o}g(o){let{values:a,_$litType$:i}=o,c=typeof i=="number"?this._$AC(o):(i.el===void 0&&(i.el=oe.createElement(Er(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===c)this._$AH.p(a);else{let l=new Ie(c,this),s=l.u(this.options);l.p(a),this.$(s),this._$AH=l}}_$AC(o){let a=hr.get(o.strings);return a===void 0&&hr.set(o.strings,a=new oe(o)),a}T(o){Sr(this._$AH)||(this._$AH=[],this._$AR());let a=this._$AH,i,c=0;for(let l of o)c===a.length?a.push(i=new e(this.k(me()),this.k(me()),this,this.options)):i=a[c],i._$AI(l),c++;c<a.length&&(this._$AR(i&&i._$AB.nextSibling,c),a.length=c)}_$AR(o=this._$AA.nextSibling,a){for(this._$AP?.(!1,!0,a);o&&o!==this._$AB;){let i=o.nextSibling;o.remove(),o=i}}setConnected(o){this._$AM===void 0&&(this._$Cv=o,this._$AP?.(o))}},Mt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(o,a,i,c,l){this.type=1,this._$AH=H,this._$AN=void 0,this.element=o,this.name=a,this._$AM=c,this.options=l,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=H}_$AI(o,a=this,i,c){let l=this.strings,s=!1;if(l===void 0)o=Zt(this,o,a,0),s=!te(o)||o!==this._$AH&&o!==ee,s&&(this._$AH=o);else{let p=o,y,h;for(o=l[0],y=0;y<l.length-1;y++)h=Zt(this,p[i+y],a,y),h===ee&&(h=this._$AH[y]),s||=!te(h)||h!==this._$AH[y],h===H?o=H:o!==H&&(o+=(h??"")+l[y+1]),this._$AH[y]=h}s&&!c&&this.O(o)}O(o){o===H?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,o??"")}},We=class extends Mt{constructor(){super(...arguments),this.type=3}O(o){this.element[this.name]=o===H?void 0:o}},Pe=class extends Mt{constructor(){super(...arguments),this.type=4}O(o){this.element.toggleAttribute(this.name,!!o&&o!==H)}},ke=class extends Mt{constructor(o,a,i,c,l){super(o,a,i,c,l),this.type=5}_$AI(o,a=this){if((o=Zt(this,o,a,0)??H)===ee)return;let i=this._$AH,c=o===H&&i!==H||o.capture!==i.capture||o.once!==i.once||o.passive!==i.passive,l=o!==H&&(i===H||c);c&&this.element.removeEventListener(this.name,this,i),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)}},Te=class{constructor(o,a,i){this.element=o,this.type=6,this._$AN=void 0,this._$AM=a,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(o){Zt(this,o)}};var Wa=ze.litHtmlPolyfillSupport;Wa?.(oe,he),(ze.litHtmlVersions??=[]).push("3.1.0");var Lr=Symbol.for(""),Pa=e=>{if(e?.r===Lr)return e?._$litStatic$},He=e=>({_$litStatic$:e,r:Lr});var wr=new Map,Rr=e=>(o,...a)=>{let i=a.length,c,l,s=[],p=[],y,h=0,O=!1;for(;h<i;){for(y=o[h];h<i&&(l=a[h],(c=Pa(l))!==void 0);)y+=c+o[++h],O=!0;h!==i&&p.push(l),s.push(y),h++}if(h===i&&s.push(o[i]),O){let b=s.join("$$lit$$");(o=wr.get(b))===void 0&&(s.raw=s,wr.set(b,o=s)),a=p}return e(o,...a)},_e=Rr(vr),vs=Rr(Nr);var De=x(lt()),$r=x(w());var St;(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"})(St||(St={}));var Ar=function(e,o,a,i){var c=arguments.length,l=c<3?o:i===null?i=Object.getOwnPropertyDescriptor(o,a):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(e,o,a,i);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},J=class extends $r.FtLitElement{constructor(){super(...arguments),this.variant=St.body1}render(){return this.element?_e`
485
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),gr=/'/g,mr=/"/g,Or=/^(?:script|style|textarea|title)$/i,Cr=e=>(o,...a)=>({_$litType$:e,strings:o,values:a}),vr=Cr(1),Nr=Cr(2),ee=Symbol.for("lit-noChange"),_=Symbol.for("lit-nothing"),hr=new WeakMap,Lt=Rt.createTreeWalker(Rt,129);function Er(e,o){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return fr!==void 0?fr.createHTML(o):o}var Ia=(e,o)=>{let a=e.length-1,i=[],c,l=o===2?"<svg>":"",s=Jt;for(let p=0;p<a;p++){let y=e[p],h,O,b=-1,N=0;for(;N<y.length&&(s.lastIndex=N,O=s.exec(y),O!==null);)N=s.lastIndex,s===Jt?O[1]==="!--"?s=yr:O[1]!==void 0?s=ur:O[2]!==void 0?(Or.test(O[2])&&(c=RegExp("</"+O[2],"g")),s=wt):O[3]!==void 0&&(s=wt):s===wt?O[0]===">"?(s=c??Jt,b=-1):O[1]===void 0?b=-2:(b=s.lastIndex-O[2].length,h=O[1],s=O[3]===void 0?wt:O[3]==='"'?mr:gr):s===mr||s===gr?s=wt:s===yr||s===ur?s=Jt:(s=wt,c=void 0);let v=s===wt&&e[p+1].startsWith("/>")?" ":"";l+=s===Jt?y+$a:b>=0?(i.push(h),y.slice(0,b)+br+y.slice(b)+xt+v):y+xt+(b===-2?p:v)}return[Er(e,l+(e[a]||"<?>")+(o===2?"</svg>":"")),i]},oe=class e{constructor({strings:o,_$litType$:a},i){let c;this.parts=[];let l=0,s=0,p=o.length-1,y=this.parts,[h,O]=Ia(o,a);if(this.el=e.createElement(h,i),Lt.currentNode=this.el.content,a===2){let b=this.el.content.firstChild;b.replaceWith(...b.childNodes)}for(;(c=Lt.nextNode())!==null&&y.length<p;){if(c.nodeType===1){if(c.hasAttributes())for(let b of c.getAttributeNames())if(b.endsWith(br)){let N=O[s++],v=c.getAttribute(b).split(xt),E=/([.?@])?(.*)/.exec(N);y.push({type:1,index:l,name:E[2],strings:v,ctor:E[1]==="."?We:E[1]==="?"?Pe:E[1]==="@"?ke:Mt}),c.removeAttribute(b)}else b.startsWith(xt)&&(y.push({type:6,index:l}),c.removeAttribute(b));if(Or.test(c.tagName)){let b=c.textContent.split(xt),N=b.length-1;if(N>0){c.textContent=ge?ge.emptyScript:"";for(let v=0;v<N;v++)c.append(b[v],me()),Lt.nextNode(),y.push({type:2,index:++l});c.append(b[N],me())}}}else if(c.nodeType===8)if(c.data===xr)y.push({type:2,index:l});else{let b=-1;for(;(b=c.data.indexOf(xt,b+1))!==-1;)y.push({type:7,index:l}),b+=xt.length-1}l++}}static createElement(o,a){let i=Rt.createElement("template");return i.innerHTML=o,i}};function Zt(e,o,a=e,i){if(o===ee)return o;let c=i!==void 0?a._$Co?.[i]:a._$Cl,l=te(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,i)),i!==void 0?(a._$Co??=[])[i]=c:a._$Cl=c),c!==void 0&&(o=Zt(e,c._$AS(e,o.values),c,i)),o}var Ie=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:i}=this._$AD,c=(o?.creationScope??Rt).importNode(a,!0);Lt.currentNode=c;let l=Lt.nextNode(),s=0,p=0,y=i[0];for(;y!==void 0;){if(s===y.index){let h;y.type===2?h=new he(l,l.nextSibling,this,o):y.type===1?h=new y.ctor(l,y.name,y.strings,this,o):y.type===6&&(h=new Te(l,this,o)),this._$AV.push(h),y=i[++p]}s!==y?.index&&(l=Lt.nextNode(),s++)}return Lt.currentNode=Rt,c}p(o){let a=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(o,i,a),a+=i.strings.length-2):i._$AI(o[a])),a++}},he=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(o,a,i,c){this.type=2,this._$AH=_,this._$AN=void 0,this._$AA=o,this._$AB=a,this._$AM=i,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=Zt(this,o,a),te(o)?o===_||o==null||o===""?(this._$AH!==_&&this._$AR(),this._$AH=_):o!==this._$AH&&o!==ee&&this._(o):o._$litType$!==void 0?this.g(o):o.nodeType!==void 0?this.$(o):Ba(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!==_&&te(this._$AH)?this._$AA.nextSibling.data=o:this.$(Rt.createTextNode(o)),this._$AH=o}g(o){let{values:a,_$litType$:i}=o,c=typeof i=="number"?this._$AC(o):(i.el===void 0&&(i.el=oe.createElement(Er(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===c)this._$AH.p(a);else{let l=new Ie(c,this),s=l.u(this.options);l.p(a),this.$(s),this._$AH=l}}_$AC(o){let a=hr.get(o.strings);return a===void 0&&hr.set(o.strings,a=new oe(o)),a}T(o){Sr(this._$AH)||(this._$AH=[],this._$AR());let a=this._$AH,i,c=0;for(let l of o)c===a.length?a.push(i=new e(this.k(me()),this.k(me()),this,this.options)):i=a[c],i._$AI(l),c++;c<a.length&&(this._$AR(i&&i._$AB.nextSibling,c),a.length=c)}_$AR(o=this._$AA.nextSibling,a){for(this._$AP?.(!1,!0,a);o&&o!==this._$AB;){let i=o.nextSibling;o.remove(),o=i}}setConnected(o){this._$AM===void 0&&(this._$Cv=o,this._$AP?.(o))}},Mt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(o,a,i,c,l){this.type=1,this._$AH=_,this._$AN=void 0,this.element=o,this.name=a,this._$AM=c,this.options=l,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=_}_$AI(o,a=this,i,c){let l=this.strings,s=!1;if(l===void 0)o=Zt(this,o,a,0),s=!te(o)||o!==this._$AH&&o!==ee,s&&(this._$AH=o);else{let p=o,y,h;for(o=l[0],y=0;y<l.length-1;y++)h=Zt(this,p[i+y],a,y),h===ee&&(h=this._$AH[y]),s||=!te(h)||h!==this._$AH[y],h===_?o=_:o!==_&&(o+=(h??"")+l[y+1]),this._$AH[y]=h}s&&!c&&this.O(o)}O(o){o===_?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,o??"")}},We=class extends Mt{constructor(){super(...arguments),this.type=3}O(o){this.element[this.name]=o===_?void 0:o}},Pe=class extends Mt{constructor(){super(...arguments),this.type=4}O(o){this.element.toggleAttribute(this.name,!!o&&o!==_)}},ke=class extends Mt{constructor(o,a,i,c,l){super(o,a,i,c,l),this.type=5}_$AI(o,a=this){if((o=Zt(this,o,a,0)??_)===ee)return;let i=this._$AH,c=o===_&&i!==_||o.capture!==i.capture||o.once!==i.once||o.passive!==i.passive,l=o!==_&&(i===_||c);c&&this.element.removeEventListener(this.name,this,i),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)}},Te=class{constructor(o,a,i){this.element=o,this.type=6,this._$AN=void 0,this._$AM=a,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(o){Zt(this,o)}};var Wa=ze.litHtmlPolyfillSupport;Wa?.(oe,he),(ze.litHtmlVersions??=[]).push("3.1.0");var Lr=Symbol.for(""),Pa=e=>{if(e?.r===Lr)return e?._$litStatic$},He=e=>({_$litStatic$:e,r:Lr});var wr=new Map,Rr=e=>(o,...a)=>{let i=a.length,c,l,s=[],p=[],y,h=0,O=!1;for(;h<i;){for(y=o[h];h<i&&(l=a[h],(c=Pa(l))!==void 0);)y+=c+o[++h],O=!0;h!==i&&p.push(l),s.push(y),h++}if(h===i&&s.push(o[i]),O){let b=s.join("$$lit$$");(o=wr.get(b))===void 0&&(s.raw=s,wr.set(b,o=s)),a=p}return e(o,...a)},_e=Rr(vr),vs=Rr(Nr);var De=x(lt()),$r=x(w());var St;(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"})(St||(St={}));var Ar=function(e,o,a,i){var c=arguments.length,l=c<3?o:i===null?i=Object.getOwnPropertyDescriptor(o,a):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(e,o,a,i);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},J=class extends $r.FtLitElement{constructor(){super(...arguments),this.variant=St.body1}render(){return this.element?_e`
486
486
  <${He(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 kr=["top","right","bottom","left"],Pr=["start","end"],Ge=kr.reduce((e,o)=>e.concat(o,o+"-"+Pr[0],o+"-"+Pr[1]),[]),re=Math.min,Ot=Math.max,ae=Math.round;var yt=e=>({x:e,y:e}),ka={left:"right",right:"left",bottom:"top",top:"bottom"},Ta={start:"end",end:"start"};function Ze(e,o,a){return Ot(e,re(o,a))}function be(e,o){return typeof e=="function"?e(o):e}function Ft(e){return e.split("-")[0]}function Ct(e){return e.split("-")[1]}function Me(e){return e==="x"?"y":"x"}function Ke(e){return e==="y"?"height":"width"}function xe(e){return["top","bottom"].includes(Ft(e))?"y":"x"}function Fe(e){return Me(xe(e))}function Tr(e,o,a){a===void 0&&(a=!1);let i=Ct(e),c=Fe(e),l=Ke(c),s=c==="x"?i===(a?"end":"start")?"right":"left":i==="start"?"bottom":"top";return o.reference[l]>o.floating[l]&&(s=Ue(s)),[s,Ue(s)]}function zr(e){return e.replace(/start|end/g,o=>Ta[o])}function Ue(e){return e.replace(/left|right|bottom|top/g,o=>ka[o])}function za(e){return{top:0,right:0,bottom:0,left:0,...e}}function Hr(e){return typeof e!="number"?za(e):{top:e,right:e,bottom:e,left:e}}function At(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function _r(e,o,a){let{reference:i,floating:c}=e,l=xe(o),s=Fe(o),p=Ke(s),y=Ft(o),h=l==="y",O=i.x+i.width/2-c.width/2,b=i.y+i.height/2-c.height/2,N=i[p]/2-c[p]/2,v;switch(y){case"top":v={x:O,y:i.y-c.height};break;case"bottom":v={x:O,y:i.y+i.height};break;case"right":v={x:i.x+i.width,y:b};break;case"left":v={x:i.x-c.width,y:b};break;default:v={x:i.x,y:i.y}}switch(Ct(o)){case"start":v[s]-=N*(a&&h?-1:1);break;case"end":v[s]+=N*(a&&h?-1:1);break}return v}var Dr=async(e,o,a)=>{let{placement:i="bottom",strategy:c="absolute",middleware:l=[],platform:s}=a,p=l.filter(Boolean),y=await(s.isRTL==null?void 0:s.isRTL(o)),h=await s.getElementRects({reference:e,floating:o,strategy:c}),{x:O,y:b}=_r(h,i,y),N=i,v={},E=0;for(let B=0;B<p.length;B++){let{name:P,fn:I}=p[B],{x:k,y:M,data:ht,reset:G}=await I({x:O,y:b,initialPlacement:i,placement:N,strategy:c,middlewareData:v,rects:h,platform:s,elements:{reference:e,floating:o}});if(O=k??O,b=M??b,v={...v,[P]:{...v[P],...ht}},G&&E<=50){E++,typeof G=="object"&&(G.placement&&(N=G.placement),G.rects&&(h=G.rects===!0?await s.getElementRects({reference:e,floating:o,strategy:c}):G.rects),{x:O,y:b}=_r(h,N,y)),B=-1;continue}}return{x:O,y:b,placement:N,strategy:c,middlewareData:v}};async function Ve(e,o){var a;o===void 0&&(o={});let{x:i,y:c,platform:l,rects:s,elements:p,strategy:y}=e,{boundary:h="clippingAncestors",rootBoundary:O="viewport",elementContext:b="floating",altBoundary:N=!1,padding:v=0}=be(o,e),E=Hr(v),P=p[N?b==="floating"?"reference":"floating":b],I=At(await l.getClippingRect({element:(a=await(l.isElement==null?void 0:l.isElement(P)))==null||a?P:P.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(p.floating)),boundary:h,rootBoundary:O,strategy:y})),k=b==="floating"?{...s.floating,x:i,y:c}:s.reference,M=await(l.getOffsetParent==null?void 0:l.getOffsetParent(p.floating)),ht=await(l.isElement==null?void 0:l.isElement(M))?await(l.getScale==null?void 0:l.getScale(M))||{x:1,y:1}:{x:1,y:1},G=At(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({rect:k,offsetParent:M,strategy:y}):k);return{top:(I.top-G.top+E.top)/ht.y,bottom:(G.bottom-I.bottom+E.bottom)/ht.y,left:(I.left-G.left+E.left)/ht.x,right:(G.right-I.right+E.right)/ht.x}}function Ha(e,o,a){return(e?[...a.filter(c=>Ct(c)===e),...a.filter(c=>Ct(c)!==e)]:a.filter(c=>Ft(c)===c)).filter(c=>e?Ct(c)===e||(o?zr(c)!==c:!1):!0)}var Ye=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(o){var a,i,c;let{rects:l,middlewareData:s,placement:p,platform:y,elements:h}=o,{crossAxis:O=!1,alignment:b,allowedPlacements:N=Ge,autoAlignment:v=!0,...E}=be(e,o),B=b!==void 0||N===Ge?Ha(b||null,v,N):N,P=await Ve(o,E),I=((a=s.autoPlacement)==null?void 0:a.index)||0,k=B[I];if(k==null)return{};let M=Tr(k,l,await(y.isRTL==null?void 0:y.isRTL(h.floating)));if(p!==k)return{reset:{placement:B[0]}};let ht=[P[Ft(k)],P[M[0]],P[M[1]]],G=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:k,overflows:ht}],to=B[I+1];if(to)return{data:{index:I+1,overflows:G},reset:{placement:to}};let eo=G.map(ot=>{let jt=Ct(ot.placement);return[ot.placement,jt&&O?ot.overflows.slice(0,2).reduce((Oa,Ca)=>Oa+Ca,0):ot.overflows[0],ot.overflows]}).sort((ot,jt)=>ot[1]-jt[1]),oo=((c=eo.filter(ot=>ot[2].slice(0,Ct(ot[0])?2:3).every(jt=>jt<=0))[0])==null?void 0:c[0])||eo[0][0];return oo!==p?{data:{index:I+1,overflows:G},reset:{placement:oo}}:{}}}};var je=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(o){let{x:a,y:i,placement:c}=o,{mainAxis:l=!0,crossAxis:s=!1,limiter:p={fn:P=>{let{x:I,y:k}=P;return{x:I,y:k}}},...y}=be(e,o),h={x:a,y:i},O=await Ve(o,y),b=xe(Ft(c)),N=Me(b),v=h[N],E=h[b];if(l){let P=N==="y"?"top":"left",I=N==="y"?"bottom":"right",k=v+O[P],M=v-O[I];v=Ze(k,v,M)}if(s){let P=b==="y"?"top":"left",I=b==="y"?"bottom":"right",k=E+O[P],M=E-O[I];E=Ze(k,E,M)}let B=p.fn({...o,[N]:v,[b]:E});return{...B,data:{x:B.x-a,y:B.y-i}}}}};function ut(e){return Gr(e)?(e.nodeName||"").toLowerCase():"#document"}function V(e){var o;return(e==null||(o=e.ownerDocument)==null?void 0:o.defaultView)||window}function gt(e){var o;return(o=(Gr(e)?e.ownerDocument:e.document)||window.document)==null?void 0:o.documentElement}function Gr(e){return e instanceof Node||e instanceof V(e).Node}function nt(e){return e instanceof Element||e instanceof V(e).Element}function tt(e){return e instanceof HTMLElement||e instanceof V(e).HTMLElement}function Ur(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof V(e).ShadowRoot}function Vt(e){let{overflow:o,overflowX:a,overflowY:i,display:c}=X(e);return/auto|scroll|overlay|hidden|clip/.test(o+i+a)&&!["inline","contents"].includes(c)}function Zr(e){return["table","td","th"].includes(ut(e))}function Oe(e){let o=Ce(),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(i=>(a.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(a.contain||"").includes(i))}function Mr(e){let o=$t(e);for(;tt(o)&&!ne(o);){if(Oe(o))return o;o=$t(o)}return null}function Ce(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ne(e){return["html","body","#document"].includes(ut(e))}function X(e){return V(e).getComputedStyle(e)}function ie(e){return nt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function $t(e){if(ut(e)==="html")return e;let o=e.assignedSlot||e.parentNode||Ur(e)&&e.host||gt(e);return Ur(o)?o.host:o}function Kr(e){let o=$t(e);return ne(o)?e.ownerDocument?e.ownerDocument.body:e.body:tt(o)&&Vt(o)?o:Kr(o)}function Se(e,o,a){var i;o===void 0&&(o=[]),a===void 0&&(a=!0);let c=Kr(e),l=c===((i=e.ownerDocument)==null?void 0:i.body),s=V(c);return l?o.concat(s,s.visualViewport||[],Vt(c)?c:[],s.frameElement&&a?Se(s.frameElement):[]):o.concat(c,Se(c,[],a))}function Yr(e){let o=X(e),a=parseFloat(o.width)||0,i=parseFloat(o.height)||0,c=tt(e),l=c?e.offsetWidth:a,s=c?e.offsetHeight:i,p=ae(a)!==l||ae(i)!==s;return p&&(a=l,i=s),{width:a,height:i,$:p}}function jr(e){return nt(e)?e:e.contextElement}function Yt(e){let o=jr(e);if(!tt(o))return yt(1);let a=o.getBoundingClientRect(),{width:i,height:c,$:l}=Yr(o),s=(l?ae(a.width):a.width)/i,p=(l?ae(a.height):a.height)/c;return(!s||!Number.isFinite(s))&&(s=1),(!p||!Number.isFinite(p))&&(p=1),{x:s,y:p}}var Ua=yt(0);function Xr(e){let o=V(e);return!Ce()||!o.visualViewport?Ua:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function Ga(e,o,a){return o===void 0&&(o=!1),!a||o&&a!==V(e)?!1:o}function ce(e,o,a,i){o===void 0&&(o=!1),a===void 0&&(a=!1);let c=e.getBoundingClientRect(),l=jr(e),s=yt(1);o&&(i?nt(i)&&(s=Yt(i)):s=Yt(e));let p=Ga(l,a,i)?Xr(l):yt(0),y=(c.left+p.x)/s.x,h=(c.top+p.y)/s.y,O=c.width/s.x,b=c.height/s.y;if(l){let N=V(l),v=i&&nt(i)?V(i):i,E=N.frameElement;for(;E&&i&&v!==N;){let B=Yt(E),P=E.getBoundingClientRect(),I=X(E),k=P.left+(E.clientLeft+parseFloat(I.paddingLeft))*B.x,M=P.top+(E.clientTop+parseFloat(I.paddingTop))*B.y;y*=B.x,h*=B.y,O*=B.x,b*=B.y,y+=k,h+=M,E=V(E).frameElement}}return At({width:O,height:b,x:y,y:h})}function Za(e){let{rect:o,offsetParent:a,strategy:i}=e,c=tt(a),l=gt(a);if(a===l)return o;let s={scrollLeft:0,scrollTop:0},p=yt(1),y=yt(0);if((c||!c&&i!=="fixed")&&((ut(a)!=="body"||Vt(l))&&(s=ie(a)),tt(a))){let h=ce(a);p=Yt(a),y.x=h.x+a.clientLeft,y.y=h.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 Ma(e){return Array.from(e.getClientRects())}function qr(e){return ce(gt(e)).left+ie(e).scrollLeft}function Ka(e){let o=gt(e),a=ie(e),i=e.ownerDocument.body,c=Ot(o.scrollWidth,o.clientWidth,i.scrollWidth,i.clientWidth),l=Ot(o.scrollHeight,o.clientHeight,i.scrollHeight,i.clientHeight),s=-a.scrollLeft+qr(e),p=-a.scrollTop;return X(i).direction==="rtl"&&(s+=Ot(o.clientWidth,i.clientWidth)-c),{width:c,height:l,x:s,y:p}}function Fa(e,o){let a=V(e),i=gt(e),c=a.visualViewport,l=i.clientWidth,s=i.clientHeight,p=0,y=0;if(c){l=c.width,s=c.height;let h=Ce();(!h||h&&o==="fixed")&&(p=c.offsetLeft,y=c.offsetTop)}return{width:l,height:s,x:p,y}}function Va(e,o){let a=ce(e,!0,o==="fixed"),i=a.top+e.clientTop,c=a.left+e.clientLeft,l=tt(e)?Yt(e):yt(1),s=e.clientWidth*l.x,p=e.clientHeight*l.y,y=c*l.x,h=i*l.y;return{width:s,height:p,x:y,y:h}}function Fr(e,o,a){let i;if(o==="viewport")i=Fa(e,a);else if(o==="document")i=Ka(gt(e));else if(nt(o))i=Va(o,a);else{let c=Xr(e);i={...o,x:o.x-c.x,y:o.y-c.y}}return At(i)}function Qr(e,o){let a=$t(e);return a===o||!nt(a)||ne(a)?!1:X(a).position==="fixed"||Qr(a,o)}function Ya(e,o){let a=o.get(e);if(a)return a;let i=Se(e,[],!1).filter(p=>nt(p)&&ut(p)!=="body"),c=null,l=X(e).position==="fixed",s=l?$t(e):e;for(;nt(s)&&!ne(s);){let p=X(s),y=Oe(s);!y&&p.position==="fixed"&&(c=null),(l?!y&&!c:!y&&p.position==="static"&&!!c&&["absolute","fixed"].includes(c.position)||Vt(s)&&!y&&Qr(e,s))?i=i.filter(O=>O!==s):c=p,s=$t(s)}return o.set(e,i),i}function ja(e){let{element:o,boundary:a,rootBoundary:i,strategy:c}=e,s=[...a==="clippingAncestors"?Ya(o,this._c):[].concat(a),i],p=s[0],y=s.reduce((h,O)=>{let b=Fr(o,O,c);return h.top=Ot(b.top,h.top),h.right=re(b.right,h.right),h.bottom=re(b.bottom,h.bottom),h.left=Ot(b.left,h.left),h},Fr(o,p,c));return{width:y.right-y.left,height:y.bottom-y.top,x:y.left,y:y.top}}function Xa(e){return Yr(e)}function qa(e,o,a){let i=tt(o),c=gt(o),l=a==="fixed",s=ce(e,!0,l,o),p={scrollLeft:0,scrollTop:0},y=yt(0);if(i||!i&&!l)if((ut(o)!=="body"||Vt(c))&&(p=ie(o)),i){let h=ce(o,!0,l,o);y.x=h.x+o.clientLeft,y.y=h.y+o.clientTop}else c&&(y.x=qr(c));return{x:s.left+p.scrollLeft-y.x,y:s.top+p.scrollTop-y.y,width:s.width,height:s.height}}function Vr(e,o){return!tt(e)||X(e).position==="fixed"?null:o?o(e):e.offsetParent}function Jr(e,o){let a=V(e);if(!tt(e))return a;let i=Vr(e,o);for(;i&&Zr(i)&&X(i).position==="static";)i=Vr(i,o);return i&&(ut(i)==="html"||ut(i)==="body"&&X(i).position==="static"&&!Oe(i))?a:i||Mr(e)||a}var Qa=async function(e){let{reference:o,floating:a,strategy:i}=e,c=this.getOffsetParent||Jr,l=this.getDimensions;return{reference:qa(o,await c(a),i),floating:{x:0,y:0,...await l(a)}}};function Ja(e){return X(e).direction==="rtl"}var ve={convertOffsetParentRelativeRectToViewportRelativeRect:Za,getDocumentElement:gt,getClippingRect:ja,getOffsetParent:Jr,getElementRects:Qa,getClientRects:Ma,getDimensions:Xa,getScale:Yt,isElement:nt,isRTL:Ja};var ta=(e,o,a)=>{let i=new Map,c={platform:ve,...a},l={...c.platform,_c:i};return Dr(e,o,{...c,platform:l})};function ea(e){return tn(e)}function Xe(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function tn(e){for(let o=e;o;o=Xe(o))if(o instanceof Element&&getComputedStyle(o).display==="none")return null;for(let o=Xe(e);o;o=Xe(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 oa(e,o,a){return ta(e,o,{platform:{...ve,getOffsetParent:i=>ve.getOffsetParent(i,ea)},middleware:[je({crossAxis:!0}),Ye({allowedPlacements:[a]})]})}var Y=function(e,o,a,i){var c=arguments.length,l=c<3?o:i===null?i=Object.getOwnPropertyDescriptor(o,a):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(e,o,a,i);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 le.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 le.Debouncer,this.revealDebouncer=new le.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return ra.html`
522
+ `;var kr=["top","right","bottom","left"],Pr=["start","end"],Ge=kr.reduce((e,o)=>e.concat(o,o+"-"+Pr[0],o+"-"+Pr[1]),[]),re=Math.min,Ot=Math.max,ae=Math.round;var yt=e=>({x:e,y:e}),ka={left:"right",right:"left",bottom:"top",top:"bottom"},Ta={start:"end",end:"start"};function Ze(e,o,a){return Ot(e,re(o,a))}function be(e,o){return typeof e=="function"?e(o):e}function Ft(e){return e.split("-")[0]}function Ct(e){return e.split("-")[1]}function Me(e){return e==="x"?"y":"x"}function Ke(e){return e==="y"?"height":"width"}function xe(e){return["top","bottom"].includes(Ft(e))?"y":"x"}function Fe(e){return Me(xe(e))}function Tr(e,o,a){a===void 0&&(a=!1);let i=Ct(e),c=Fe(e),l=Ke(c),s=c==="x"?i===(a?"end":"start")?"right":"left":i==="start"?"bottom":"top";return o.reference[l]>o.floating[l]&&(s=Ue(s)),[s,Ue(s)]}function zr(e){return e.replace(/start|end/g,o=>Ta[o])}function Ue(e){return e.replace(/left|right|bottom|top/g,o=>ka[o])}function za(e){return{top:0,right:0,bottom:0,left:0,...e}}function Hr(e){return typeof e!="number"?za(e):{top:e,right:e,bottom:e,left:e}}function At(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function _r(e,o,a){let{reference:i,floating:c}=e,l=xe(o),s=Fe(o),p=Ke(s),y=Ft(o),h=l==="y",O=i.x+i.width/2-c.width/2,b=i.y+i.height/2-c.height/2,N=i[p]/2-c[p]/2,v;switch(y){case"top":v={x:O,y:i.y-c.height};break;case"bottom":v={x:O,y:i.y+i.height};break;case"right":v={x:i.x+i.width,y:b};break;case"left":v={x:i.x-c.width,y:b};break;default:v={x:i.x,y:i.y}}switch(Ct(o)){case"start":v[s]-=N*(a&&h?-1:1);break;case"end":v[s]+=N*(a&&h?-1:1);break}return v}var Dr=async(e,o,a)=>{let{placement:i="bottom",strategy:c="absolute",middleware:l=[],platform:s}=a,p=l.filter(Boolean),y=await(s.isRTL==null?void 0:s.isRTL(o)),h=await s.getElementRects({reference:e,floating:o,strategy:c}),{x:O,y:b}=_r(h,i,y),N=i,v={},E=0;for(let B=0;B<p.length;B++){let{name:P,fn:I}=p[B],{x:k,y:M,data:ht,reset:Z}=await I({x:O,y:b,initialPlacement:i,placement:N,strategy:c,middlewareData:v,rects:h,platform:s,elements:{reference:e,floating:o}});if(O=k??O,b=M??b,v={...v,[P]:{...v[P],...ht}},Z&&E<=50){E++,typeof Z=="object"&&(Z.placement&&(N=Z.placement),Z.rects&&(h=Z.rects===!0?await s.getElementRects({reference:e,floating:o,strategy:c}):Z.rects),{x:O,y:b}=_r(h,N,y)),B=-1;continue}}return{x:O,y:b,placement:N,strategy:c,middlewareData:v}};async function Ve(e,o){var a;o===void 0&&(o={});let{x:i,y:c,platform:l,rects:s,elements:p,strategy:y}=e,{boundary:h="clippingAncestors",rootBoundary:O="viewport",elementContext:b="floating",altBoundary:N=!1,padding:v=0}=be(o,e),E=Hr(v),P=p[N?b==="floating"?"reference":"floating":b],I=At(await l.getClippingRect({element:(a=await(l.isElement==null?void 0:l.isElement(P)))==null||a?P:P.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(p.floating)),boundary:h,rootBoundary:O,strategy:y})),k=b==="floating"?{...s.floating,x:i,y:c}:s.reference,M=await(l.getOffsetParent==null?void 0:l.getOffsetParent(p.floating)),ht=await(l.isElement==null?void 0:l.isElement(M))?await(l.getScale==null?void 0:l.getScale(M))||{x:1,y:1}:{x:1,y:1},Z=At(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({rect:k,offsetParent:M,strategy:y}):k);return{top:(I.top-Z.top+E.top)/ht.y,bottom:(Z.bottom-I.bottom+E.bottom)/ht.y,left:(I.left-Z.left+E.left)/ht.x,right:(Z.right-I.right+E.right)/ht.x}}function Ha(e,o,a){return(e?[...a.filter(c=>Ct(c)===e),...a.filter(c=>Ct(c)!==e)]:a.filter(c=>Ft(c)===c)).filter(c=>e?Ct(c)===e||(o?zr(c)!==c:!1):!0)}var Ye=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(o){var a,i,c;let{rects:l,middlewareData:s,placement:p,platform:y,elements:h}=o,{crossAxis:O=!1,alignment:b,allowedPlacements:N=Ge,autoAlignment:v=!0,...E}=be(e,o),B=b!==void 0||N===Ge?Ha(b||null,v,N):N,P=await Ve(o,E),I=((a=s.autoPlacement)==null?void 0:a.index)||0,k=B[I];if(k==null)return{};let M=Tr(k,l,await(y.isRTL==null?void 0:y.isRTL(h.floating)));if(p!==k)return{reset:{placement:B[0]}};let ht=[P[Ft(k)],P[M[0]],P[M[1]]],Z=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:k,overflows:ht}],to=B[I+1];if(to)return{data:{index:I+1,overflows:Z},reset:{placement:to}};let eo=Z.map(ot=>{let jt=Ct(ot.placement);return[ot.placement,jt&&O?ot.overflows.slice(0,2).reduce((Oa,Ca)=>Oa+Ca,0):ot.overflows[0],ot.overflows]}).sort((ot,jt)=>ot[1]-jt[1]),oo=((c=eo.filter(ot=>ot[2].slice(0,Ct(ot[0])?2:3).every(jt=>jt<=0))[0])==null?void 0:c[0])||eo[0][0];return oo!==p?{data:{index:I+1,overflows:Z},reset:{placement:oo}}:{}}}};var je=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(o){let{x:a,y:i,placement:c}=o,{mainAxis:l=!0,crossAxis:s=!1,limiter:p={fn:P=>{let{x:I,y:k}=P;return{x:I,y:k}}},...y}=be(e,o),h={x:a,y:i},O=await Ve(o,y),b=xe(Ft(c)),N=Me(b),v=h[N],E=h[b];if(l){let P=N==="y"?"top":"left",I=N==="y"?"bottom":"right",k=v+O[P],M=v-O[I];v=Ze(k,v,M)}if(s){let P=b==="y"?"top":"left",I=b==="y"?"bottom":"right",k=E+O[P],M=E-O[I];E=Ze(k,E,M)}let B=p.fn({...o,[N]:v,[b]:E});return{...B,data:{x:B.x-a,y:B.y-i}}}}};function ut(e){return Gr(e)?(e.nodeName||"").toLowerCase():"#document"}function V(e){var o;return(e==null||(o=e.ownerDocument)==null?void 0:o.defaultView)||window}function gt(e){var o;return(o=(Gr(e)?e.ownerDocument:e.document)||window.document)==null?void 0:o.documentElement}function Gr(e){return e instanceof Node||e instanceof V(e).Node}function nt(e){return e instanceof Element||e instanceof V(e).Element}function tt(e){return e instanceof HTMLElement||e instanceof V(e).HTMLElement}function Ur(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof V(e).ShadowRoot}function Vt(e){let{overflow:o,overflowX:a,overflowY:i,display:c}=X(e);return/auto|scroll|overlay|hidden|clip/.test(o+i+a)&&!["inline","contents"].includes(c)}function Zr(e){return["table","td","th"].includes(ut(e))}function Oe(e){let o=Ce(),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(i=>(a.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(a.contain||"").includes(i))}function Mr(e){let o=$t(e);for(;tt(o)&&!ne(o);){if(Oe(o))return o;o=$t(o)}return null}function Ce(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ne(e){return["html","body","#document"].includes(ut(e))}function X(e){return V(e).getComputedStyle(e)}function ie(e){return nt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function $t(e){if(ut(e)==="html")return e;let o=e.assignedSlot||e.parentNode||Ur(e)&&e.host||gt(e);return Ur(o)?o.host:o}function Kr(e){let o=$t(e);return ne(o)?e.ownerDocument?e.ownerDocument.body:e.body:tt(o)&&Vt(o)?o:Kr(o)}function Se(e,o,a){var i;o===void 0&&(o=[]),a===void 0&&(a=!0);let c=Kr(e),l=c===((i=e.ownerDocument)==null?void 0:i.body),s=V(c);return l?o.concat(s,s.visualViewport||[],Vt(c)?c:[],s.frameElement&&a?Se(s.frameElement):[]):o.concat(c,Se(c,[],a))}function Yr(e){let o=X(e),a=parseFloat(o.width)||0,i=parseFloat(o.height)||0,c=tt(e),l=c?e.offsetWidth:a,s=c?e.offsetHeight:i,p=ae(a)!==l||ae(i)!==s;return p&&(a=l,i=s),{width:a,height:i,$:p}}function jr(e){return nt(e)?e:e.contextElement}function Yt(e){let o=jr(e);if(!tt(o))return yt(1);let a=o.getBoundingClientRect(),{width:i,height:c,$:l}=Yr(o),s=(l?ae(a.width):a.width)/i,p=(l?ae(a.height):a.height)/c;return(!s||!Number.isFinite(s))&&(s=1),(!p||!Number.isFinite(p))&&(p=1),{x:s,y:p}}var Ua=yt(0);function Xr(e){let o=V(e);return!Ce()||!o.visualViewport?Ua:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function Ga(e,o,a){return o===void 0&&(o=!1),!a||o&&a!==V(e)?!1:o}function ce(e,o,a,i){o===void 0&&(o=!1),a===void 0&&(a=!1);let c=e.getBoundingClientRect(),l=jr(e),s=yt(1);o&&(i?nt(i)&&(s=Yt(i)):s=Yt(e));let p=Ga(l,a,i)?Xr(l):yt(0),y=(c.left+p.x)/s.x,h=(c.top+p.y)/s.y,O=c.width/s.x,b=c.height/s.y;if(l){let N=V(l),v=i&&nt(i)?V(i):i,E=N.frameElement;for(;E&&i&&v!==N;){let B=Yt(E),P=E.getBoundingClientRect(),I=X(E),k=P.left+(E.clientLeft+parseFloat(I.paddingLeft))*B.x,M=P.top+(E.clientTop+parseFloat(I.paddingTop))*B.y;y*=B.x,h*=B.y,O*=B.x,b*=B.y,y+=k,h+=M,E=V(E).frameElement}}return At({width:O,height:b,x:y,y:h})}function Za(e){let{rect:o,offsetParent:a,strategy:i}=e,c=tt(a),l=gt(a);if(a===l)return o;let s={scrollLeft:0,scrollTop:0},p=yt(1),y=yt(0);if((c||!c&&i!=="fixed")&&((ut(a)!=="body"||Vt(l))&&(s=ie(a)),tt(a))){let h=ce(a);p=Yt(a),y.x=h.x+a.clientLeft,y.y=h.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 Ma(e){return Array.from(e.getClientRects())}function qr(e){return ce(gt(e)).left+ie(e).scrollLeft}function Ka(e){let o=gt(e),a=ie(e),i=e.ownerDocument.body,c=Ot(o.scrollWidth,o.clientWidth,i.scrollWidth,i.clientWidth),l=Ot(o.scrollHeight,o.clientHeight,i.scrollHeight,i.clientHeight),s=-a.scrollLeft+qr(e),p=-a.scrollTop;return X(i).direction==="rtl"&&(s+=Ot(o.clientWidth,i.clientWidth)-c),{width:c,height:l,x:s,y:p}}function Fa(e,o){let a=V(e),i=gt(e),c=a.visualViewport,l=i.clientWidth,s=i.clientHeight,p=0,y=0;if(c){l=c.width,s=c.height;let h=Ce();(!h||h&&o==="fixed")&&(p=c.offsetLeft,y=c.offsetTop)}return{width:l,height:s,x:p,y}}function Va(e,o){let a=ce(e,!0,o==="fixed"),i=a.top+e.clientTop,c=a.left+e.clientLeft,l=tt(e)?Yt(e):yt(1),s=e.clientWidth*l.x,p=e.clientHeight*l.y,y=c*l.x,h=i*l.y;return{width:s,height:p,x:y,y:h}}function Fr(e,o,a){let i;if(o==="viewport")i=Fa(e,a);else if(o==="document")i=Ka(gt(e));else if(nt(o))i=Va(o,a);else{let c=Xr(e);i={...o,x:o.x-c.x,y:o.y-c.y}}return At(i)}function Qr(e,o){let a=$t(e);return a===o||!nt(a)||ne(a)?!1:X(a).position==="fixed"||Qr(a,o)}function Ya(e,o){let a=o.get(e);if(a)return a;let i=Se(e,[],!1).filter(p=>nt(p)&&ut(p)!=="body"),c=null,l=X(e).position==="fixed",s=l?$t(e):e;for(;nt(s)&&!ne(s);){let p=X(s),y=Oe(s);!y&&p.position==="fixed"&&(c=null),(l?!y&&!c:!y&&p.position==="static"&&!!c&&["absolute","fixed"].includes(c.position)||Vt(s)&&!y&&Qr(e,s))?i=i.filter(O=>O!==s):c=p,s=$t(s)}return o.set(e,i),i}function ja(e){let{element:o,boundary:a,rootBoundary:i,strategy:c}=e,s=[...a==="clippingAncestors"?Ya(o,this._c):[].concat(a),i],p=s[0],y=s.reduce((h,O)=>{let b=Fr(o,O,c);return h.top=Ot(b.top,h.top),h.right=re(b.right,h.right),h.bottom=re(b.bottom,h.bottom),h.left=Ot(b.left,h.left),h},Fr(o,p,c));return{width:y.right-y.left,height:y.bottom-y.top,x:y.left,y:y.top}}function Xa(e){return Yr(e)}function qa(e,o,a){let i=tt(o),c=gt(o),l=a==="fixed",s=ce(e,!0,l,o),p={scrollLeft:0,scrollTop:0},y=yt(0);if(i||!i&&!l)if((ut(o)!=="body"||Vt(c))&&(p=ie(o)),i){let h=ce(o,!0,l,o);y.x=h.x+o.clientLeft,y.y=h.y+o.clientTop}else c&&(y.x=qr(c));return{x:s.left+p.scrollLeft-y.x,y:s.top+p.scrollTop-y.y,width:s.width,height:s.height}}function Vr(e,o){return!tt(e)||X(e).position==="fixed"?null:o?o(e):e.offsetParent}function Jr(e,o){let a=V(e);if(!tt(e))return a;let i=Vr(e,o);for(;i&&Zr(i)&&X(i).position==="static";)i=Vr(i,o);return i&&(ut(i)==="html"||ut(i)==="body"&&X(i).position==="static"&&!Oe(i))?a:i||Mr(e)||a}var Qa=async function(e){let{reference:o,floating:a,strategy:i}=e,c=this.getOffsetParent||Jr,l=this.getDimensions;return{reference:qa(o,await c(a),i),floating:{x:0,y:0,...await l(a)}}};function Ja(e){return X(e).direction==="rtl"}var ve={convertOffsetParentRelativeRectToViewportRelativeRect:Za,getDocumentElement:gt,getClippingRect:ja,getOffsetParent:Jr,getElementRects:Qa,getClientRects:Ma,getDimensions:Xa,getScale:Yt,isElement:nt,isRTL:Ja};var ta=(e,o,a)=>{let i=new Map,c={platform:ve,...a},l={...c.platform,_c:i};return Dr(e,o,{...c,platform:l})};function ea(e){return tn(e)}function Xe(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function tn(e){for(let o=e;o;o=Xe(o))if(o instanceof Element&&getComputedStyle(o).display==="none")return null;for(let o=Xe(e);o;o=Xe(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 oa(e,o,a){return ta(e,o,{platform:{...ve,getOffsetParent:i=>ve.getOffsetParent(i,ea)},middleware:[je({crossAxis:!0}),Ye({allowedPlacements:[a]})]})}var Y=function(e,o,a,i){var c=arguments.length,l=c<3?o:i===null?i=Object.getOwnPropertyDescriptor(o,a):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(e,o,a,i);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 le.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 le.Debouncer,this.revealDebouncer=new le.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return ra.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
- `}};It.styles=er;(0,fa.customElement)("ft-loader")(It);var vt=x(D()),qe=x($e()),_=x(lt()),Z=function(e,o,a,i){var c=arguments.length,l=c<3?o:i===null?i=Object.getOwnPropertyDescriptor(o,a):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(e,o,a,i);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,Nt.toFtFormComponent)(Nt.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,i;let c=vt.html`
552
+ `}};It.styles=er;(0,fa.customElement)("ft-loader")(It);var vt=x(D()),qe=x($e()),z=x(lt()),G=function(e,o,a,i){var c=arguments.length,l=c<3?o:i===null?i=Object.getOwnPropertyDescriptor(o,a):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(e,o,a,i);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,Nt.toFtFormComponent)(Nt.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,i;let c=vt.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
  `:vt.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,Nt.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":J,"ft-icon":Q,"ft-loader":It};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 we=function(e,o,a,i){var c=arguments.length,l=c<3?o:i===null?i=Object.getOwnPropertyDescriptor(o,a):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(e,o,a,i);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},et=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"}};et.styles=[ya.safariEllipsisFix,cr];we([(0,de.property)({type:Boolean})],et.prototype,"primary",void 0);we([(0,de.property)({type:Boolean})],et.prototype,"outlined",void 0);we([(0,de.property)({type:Boolean})],et.prototype,"dense",void 0);we([(0,de.property)({type:Boolean})],et.prototype,"round",void 0);var pe=x(lt());var Re=x(w());var ua=x(D()),f=x(w());var ga=[ua.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,Nt.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":J,"ft-icon":Q,"ft-loader":It};G([(0,z.property)()],R.prototype,"href",void 0);G([(0,z.property)()],R.prototype,"target",void 0);G([(0,z.property)({type:String,reflect:!0})],R.prototype,"role",void 0);G([(0,z.property)()],R.prototype,"type",void 0);G([(0,z.property)({type:Boolean})],R.prototype,"disabled",void 0);G([(0,z.property)()],R.prototype,"label",void 0);G([(0,z.property)()],R.prototype,"icon",void 0);G([(0,z.property)()],R.prototype,"iconVariant",void 0);G([(0,z.property)({type:Boolean})],R.prototype,"trailingIcon",void 0);G([(0,z.property)({type:Boolean})],R.prototype,"loading",void 0);G([(0,z.property)({attribute:"aria-label"})],R.prototype,"ariaLabel",void 0);G([(0,z.property)()],R.prototype,"tooltipPosition",void 0);G([(0,z.property)({type:Boolean})],R.prototype,"hideTooltip",void 0);G([(0,z.property)({type:Boolean})],R.prototype,"forceTooltip",void 0);G([(0,z.query)(".ft-button")],R.prototype,"button",void 0);G([(0,z.query)(".ft-button--label slot")],R.prototype,"slottedContent",void 0);G([(0,z.query)("[part=tooltip]")],R.prototype,"tooltip",void 0);var we=function(e,o,a,i){var c=arguments.length,l=c<3?o:i===null?i=Object.getOwnPropertyDescriptor(o,a):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(e,o,a,i);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},et=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"}};et.styles=[ya.safariEllipsisFix,cr];we([(0,de.property)({type:Boolean})],et.prototype,"primary",void 0);we([(0,de.property)({type:Boolean})],et.prototype,"outlined",void 0);we([(0,de.property)({type:Boolean})],et.prototype,"dense",void 0);we([(0,de.property)({type:Boolean})],et.prototype,"round",void 0);var pe=x(lt());var Re=x(w());var ua=x(D()),f=x(w());var ga=[ua.css`
590
590
  :host {
591
591
  display: inline-block;
592
592
  max-width: 100%;