@fluid-topics/ft-file-button 1.1.102 → 1.1.103
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.
- package/build/ft-file-button.light.js +32 -32
- package/build/ft-file-button.min.js +14 -14
- package/package.json +4 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(()=>{var Nn=Object.create;var oo=Object.defineProperty;var En=Object.getOwnPropertyDescriptor;var wn=Object.getOwnPropertyNames;var Rn=Object.getPrototypeOf,An=Object.prototype.hasOwnProperty;var Xt=(e,o)=>()=>(o||e((o={exports:{}}).exports,o),o.exports);var Ln=(e,o,n,a)=>{if(o&&typeof o=="object"||typeof o=="function")for(let i of wn(o))!An.call(e,i)&&i!==n&&oo(e,i,{get:()=>o[i],enumerable:!(a=En(o,i))||a.enumerable});return e};var h=(e,o,n)=>(n=e!=null?Nn(Rn(e)):{},Ln(o||!e||!e.__esModule?oo(n,"default",{value:e,enumerable:!0}):n,e));var w=Xt((oa,ro)=>{ro.exports=ftGlobals.wcUtils});var H=Xt((ra,no)=>{no.exports=ftGlobals.lit});var ct=Xt((na,ao)=>{ao.exports=ftGlobals.litDecorators});var We=Xt((Zc,lr)=>{lr.exports=ftGlobals.litClassMap});var an=Xt((Vs,nn)=>{nn.exports=ftGlobals.litUnsafeHTML});var Sn=h(w());var xn=h(H()),lt=h(ct()),On=h(w());var qe=h(w());var pe=h(ct()),un=h(w());var ar=h(H()),O=h(w());var fo=h(H())
|
|
1
|
+
"use strict";(()=>{var Nn=Object.create;var oo=Object.defineProperty;var En=Object.getOwnPropertyDescriptor;var wn=Object.getOwnPropertyNames;var Rn=Object.getPrototypeOf,An=Object.prototype.hasOwnProperty;var Xt=(e,o)=>()=>(o||e((o={exports:{}}).exports,o),o.exports);var Ln=(e,o,n,a)=>{if(o&&typeof o=="object"||typeof o=="function")for(let i of wn(o))!An.call(e,i)&&i!==n&&oo(e,i,{get:()=>o[i],enumerable:!(a=En(o,i))||a.enumerable});return e};var h=(e,o,n)=>(n=e!=null?Nn(Rn(e)):{},Ln(o||!e||!e.__esModule?oo(n,"default",{value:e,enumerable:!0}):n,e));var w=Xt((oa,ro)=>{ro.exports=ftGlobals.wcUtils});var H=Xt((ra,no)=>{no.exports=ftGlobals.lit});var ct=Xt((na,ao)=>{ao.exports=ftGlobals.litDecorators});var We=Xt((Zc,lr)=>{lr.exports=ftGlobals.litClassMap});var an=Xt((Vs,nn)=>{nn.exports=ftGlobals.litUnsafeHTML});var Sn=h(w());var xn=h(H()),lt=h(ct()),On=h(w());var qe=h(w());var pe=h(ct()),un=h(w());var ar=h(H()),O=h(w());var fo=h(H()),I=h(w()),io=I.FtCssVariableFactory.extend("--ft-ripple-color","",I.designSystemVariables.colorContent),N={color:io,backgroundColor:I.FtCssVariableFactory.extend("--ft-ripple-background-color","",io),opacityContentOnSurfacePressed:I.FtCssVariableFactory.external(I.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:I.FtCssVariableFactory.external(I.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:I.FtCssVariableFactory.external(I.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:I.FtCssVariableFactory.external(I.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:I.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},lo=I.FtCssVariableFactory.extend("--ft-ripple-color","",I.designSystemVariables.colorPrimary),co={color:lo,backgroundColor:I.FtCssVariableFactory.extend("--ft-ripple-background-color","",lo)},so=I.FtCssVariableFactory.extend("--ft-ripple-color","",I.designSystemVariables.colorSecondary),po={color:so,backgroundColor:I.FtCssVariableFactory.extend("--ft-ripple-background-color","",so)},go=fo.css`
|
|
2
2
|
:host {
|
|
3
3
|
display: contents;
|
|
4
4
|
}
|
|
@@ -215,7 +215,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
215
215
|
.ft-typography {
|
|
216
216
|
vertical-align: inherit;
|
|
217
217
|
}
|
|
218
|
-
`,Jo=[Object.keys(fe).map(e=>Uo(e))];var Qo=h(H()),qt=h(w()),
|
|
218
|
+
`,Jo=[Object.keys(fe).map(e=>Uo(e))];var Qo=h(H()),qt=h(w()),Z={color:qt.FtCssVariableFactory.extend("--ft-loader-color","",qt.designSystemVariables.colorPrimary),size:qt.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},tr=Qo.css`
|
|
219
219
|
:host {
|
|
220
220
|
line-height: 0;
|
|
221
221
|
}
|
|
@@ -224,8 +224,8 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
224
224
|
display: inline-block;
|
|
225
225
|
position: relative;
|
|
226
226
|
|
|
227
|
-
width: ${
|
|
228
|
-
height: ${
|
|
227
|
+
width: ${Z.size};
|
|
228
|
+
height: ${Z.size};
|
|
229
229
|
}
|
|
230
230
|
|
|
231
231
|
.ft-loader div {
|
|
@@ -234,7 +234,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
234
234
|
width: 25%;
|
|
235
235
|
height: 25%;
|
|
236
236
|
border-radius: 50%;
|
|
237
|
-
background: ${
|
|
237
|
+
background: ${Z.color};
|
|
238
238
|
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
239
239
|
}
|
|
240
240
|
|
|
@@ -281,10 +281,10 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
281
281
|
transform: translate(0, 0);
|
|
282
282
|
}
|
|
283
283
|
100% {
|
|
284
|
-
transform: translate(calc(0.35 * ${
|
|
284
|
+
transform: translate(calc(0.35 * ${Z.size}), 0);
|
|
285
285
|
}
|
|
286
286
|
}
|
|
287
|
-
`;var er=h(H()),dt=h(w()),
|
|
287
|
+
`;var er=h(H()),dt=h(w()),K={size:dt.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:dt.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",dt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:dt.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",dt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:dt.FtCssVariableFactory.extend("--ft-icon-material-font-family","",dt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:dt.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},or=er.css`
|
|
288
288
|
:host, i.ft-icon {
|
|
289
289
|
display: inline-flex;
|
|
290
290
|
align-items: center;
|
|
@@ -293,14 +293,14 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
293
293
|
}
|
|
294
294
|
|
|
295
295
|
:host {
|
|
296
|
-
width: ${
|
|
297
|
-
height: ${
|
|
296
|
+
width: ${K.size};
|
|
297
|
+
height: ${K.size};
|
|
298
298
|
}
|
|
299
299
|
|
|
300
300
|
i.ft-icon {
|
|
301
301
|
width: 100%;
|
|
302
302
|
height: 100%;
|
|
303
|
-
font-size: ${
|
|
303
|
+
font-size: ${K.size};
|
|
304
304
|
line-height: 1;
|
|
305
305
|
font-weight: normal;
|
|
306
306
|
text-transform: none;
|
|
@@ -311,26 +311,26 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
311
311
|
text-rendering: auto;
|
|
312
312
|
-webkit-font-smoothing: antialiased;
|
|
313
313
|
-moz-osx-font-smoothing: grayscale;
|
|
314
|
-
vertical-align: ${
|
|
314
|
+
vertical-align: ${K.verticalAlign};
|
|
315
315
|
}
|
|
316
316
|
|
|
317
317
|
i.ft-icon.ft-icon--fluid-topics {
|
|
318
|
-
font-family: ${
|
|
318
|
+
font-family: ${K.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
319
319
|
|
|
320
320
|
/* Ugly fix because font is broken */
|
|
321
|
-
font-size: calc(0.75 * ${
|
|
322
|
-
line-height: ${
|
|
321
|
+
font-size: calc(0.75 * ${K.size});
|
|
322
|
+
line-height: ${K.size};
|
|
323
323
|
position: relative;
|
|
324
324
|
top: -4%;
|
|
325
325
|
justify-content: center;
|
|
326
326
|
}
|
|
327
327
|
|
|
328
328
|
.ft-icon--file-format {
|
|
329
|
-
font-family: ${
|
|
329
|
+
font-family: ${K.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
330
330
|
}
|
|
331
331
|
|
|
332
332
|
.ft-icon--material {
|
|
333
|
-
font-family: ${
|
|
333
|
+
font-family: ${K.materialFontFamily}, "Material Icons", sans-serif;
|
|
334
334
|
}
|
|
335
335
|
`;var rr=O.FtCssVariableFactory.extend("--ft-button-color","",O.designSystemVariables.colorPrimary),z={backgroundColor:O.FtCssVariableFactory.extend("--ft-button-background-color","",O.designSystemVariables.colorSurface),borderRadius:O.FtCssVariableFactory.extend("--ft-button-border-radius","",O.designSystemVariables.borderRadiusL),color:rr,fontSize:O.FtCssVariableFactory.extend("--ft-button-font-size","",rt.fontSize),iconSize:O.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:O.FtCssVariableFactory.extend("--ft-button-ripple-color","",rr),verticalPadding:O.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:O.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:O.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:O.FtCssVariableFactory.external(O.designSystemVariables.colorOpacityDisabled,"Design system")},nr=O.FtCssVariableFactory.extend("--ft-button-primary-color","",O.FtCssVariableFactory.extend("--ft-button-color","",O.designSystemVariables.colorOnPrimary)),Le={backgroundColor:O.FtCssVariableFactory.extend("--ft-button-primary-background-color","",O.FtCssVariableFactory.extend("--ft-button-background-color","",O.designSystemVariables.colorPrimary)),color:nr,rippleColor:O.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",nr)},nt={borderRadius:O.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",O.FtCssVariableFactory.extend("--ft-button-border-radius","",O.designSystemVariables.borderRadiusM)),verticalPadding:O.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:O.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:O.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},ir=[ar.css`
|
|
336
336
|
:host {
|
|
@@ -374,7 +374,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
374
374
|
|
|
375
375
|
--ft-button-internal-line-height: max(calc(${z.fontSize} + 2px), ${z.iconSize});
|
|
376
376
|
--ft-button-internal-color: ${z.color};
|
|
377
|
-
${(0,O.setVariable)(
|
|
377
|
+
${(0,O.setVariable)(K.size,z.iconSize)};
|
|
378
378
|
${(0,O.setVariable)(N.color,z.rippleColor)};
|
|
379
379
|
|
|
380
380
|
border-radius: ${z.borderRadius};
|
|
@@ -465,8 +465,8 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
465
465
|
}
|
|
466
466
|
|
|
467
467
|
ft-loader {
|
|
468
|
-
${(0,O.setVariable)(
|
|
469
|
-
${(0,O.setVariable)(
|
|
468
|
+
${(0,O.setVariable)(Z.size,z.iconSize)};
|
|
469
|
+
${(0,O.setVariable)(Z.color,"var(--ft-button-internal-color)")};
|
|
470
470
|
}
|
|
471
471
|
`,O.noTextSelect];var jt=h(w());var pr=h(w());var cr=h(H()),U=h(ct()),sr=h(We()),Jt=h(w());var M=function(e,o,n,a){var i=arguments.length,s=i<3?o:a===null?a=Object.getOwnPropertyDescriptor(o,n):a,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,o,n,a);else for(var p=e.length-1;p>=0;p--)(c=e[p])&&(s=(i<3?c(s):i>3?c(o,n,s):c(o,n))||s);return i>3&&s&&Object.defineProperty(o,n,s),s},R=class extends Jt.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 Jt.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 Jt.Debouncer(10),this.moveRipple=o=>{var n,a;let{x:i,y:s}=this.getCoordinates(o),c=(a=(n=this.ripple)===null||n===void 0?void 0:n.getBoundingClientRect())!==null&&a!==void 0?a:{x:0,y:0,width:0,height:0};this.originX=Math.round(i!=null?i-c.x:c.width/2),this.originY=Math.round(s!=null?s-c.y:c.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 cr.html`
|
|
472
472
|
<style>
|
|
@@ -518,7 +518,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
518
518
|
position: relative;
|
|
519
519
|
word-break: break-word;
|
|
520
520
|
}
|
|
521
|
-
`;var Br=["top","right","bottom","left"],Pr=["start","end"],Ge=Br.reduce((e,o)=>e.concat(o,o+"-"+Pr[0],o+"-"+Pr[1]),[]),re=Math.min,St=Math.max,ne=Math.round;var gt=e=>({x:e,y:e}),zn={left:"right",right:"left",bottom:"top",top:"bottom"},_n={start:"end",end:"start"};function Ze(e,o,n){return St(e,re(o,n))}function be(e,o){return typeof e=="function"?e(o):e}function Kt(e){return e.split("-")[0]}function Ct(e){return e.split("-")[1]}function Ke(e){return e==="x"?"y":"x"}function Me(e){return e==="y"?"height":"width"}function xe(e){return["top","bottom"].includes(Kt(e))?"y":"x"}function Fe(e){return Ke(xe(e))}function Tr(e,o,n){n===void 0&&(n=!1);let a=Ct(e),i=Fe(e),s=Me(i),c=i==="x"?a===(n?"end":"start")?"right":"left":a==="start"?"bottom":"top";return o.reference[s]>o.floating[s]&&(c=De(c)),[c,De(c)]}function zr(e){return e.replace(/start|end/g,o=>_n[o])}function De(e){return e.replace(/left|right|bottom|top/g,o=>zn[o])}function Hn(e){return{top:0,right:0,bottom:0,left:0,...e}}function _r(e){return typeof e!="number"?Hn(e):{top:e,right:e,bottom:e,left:e}}function Rt(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Hr(e,o,n){let{reference:a,floating:i}=e,s=xe(o),c=Fe(o),p=Me(c),d=Kt(o),m=s==="y",x=a.x+a.width/2-i.width/2,y=a.y+a.height/2-i.height/2,v=a[p]/2-i[p]/2,S;switch(d){case"top":S={x,y:a.y-i.height};break;case"bottom":S={x,y:a.y+a.height};break;case"right":S={x:a.x+a.width,y};break;case"left":S={x:a.x-i.width,y};break;default:S={x:a.x,y:a.y}}switch(Ct(o)){case"start":S[c]-=v*(n&&m?-1:1);break;case"end":S[c]+=v*(n&&m?-1:1);break}return S}var Ur=async(e,o,n)=>{let{placement:a="bottom",strategy:i="absolute",middleware:s=[],platform:c}=n,p=s.filter(Boolean),d=await(c.isRTL==null?void 0:c.isRTL(o)),m=await c.getElementRects({reference:e,floating:o,strategy:i}),{x,y}=Hr(m,a,d),v=a,S={},E=0;for(let L=0;L<p.length;L++){let{name:P,fn:W}=p[L],{x:B,y:D,data:ht,reset:k}=await W({x,y,initialPlacement:a,placement:v,strategy:i,middlewareData:S,rects:m,platform:c,elements:{reference:e,floating:o}});if(x=B??x,y=D??y,S={...S,[P]:{...S[P],...ht}},k&&E<=50){E++,typeof k=="object"&&(k.placement&&(v=k.placement),k.rects&&(m=k.rects===!0?await c.getElementRects({reference:e,floating:o,strategy:i}):k.rects),{x,y}=Hr(m,v,d)),L=-1;continue}}return{x,y,placement:v,strategy:i,middlewareData:S}};async function Ve(e,o){var n;o===void 0&&(o={});let{x:a,y:i,platform:s,rects:c,elements:p,strategy:d}=e,{boundary:m="clippingAncestors",rootBoundary:x="viewport",elementContext:y="floating",altBoundary:v=!1,padding:S=0}=be(o,e),E=_r(S),P=p[v?y==="floating"?"reference":"floating":y],W=Rt(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(P)))==null||n?P:P.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(p.floating)),boundary:m,rootBoundary:x,strategy:d})),B=y==="floating"?{...c.floating,x:a,y:i}:c.reference,D=await(s.getOffsetParent==null?void 0:s.getOffsetParent(p.floating)),ht=await(s.isElement==null?void 0:s.isElement(D))?await(s.getScale==null?void 0:s.getScale(D))||{x:1,y:1}:{x:1,y:1},k=Rt(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({rect:B,offsetParent:D,strategy:d}):B);return{top:(W.top-k.top+E.top)/ht.y,bottom:(k.bottom-W.bottom+E.bottom)/ht.y,left:(W.left-k.left+E.left)/ht.x,right:(k.right-W.right+E.right)/ht.x}}function Un(e,o,n){return(e?[...n.filter(i=>Ct(i)===e),...n.filter(i=>Ct(i)!==e)]:n.filter(i=>Kt(i)===i)).filter(i=>e?Ct(i)===e||(o?zr(i)!==i:!1):!0)}var je=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(o){var n,a,i;let{rects:s,middlewareData:c,placement:p,platform:d,elements:m}=o,{crossAxis:x=!1,alignment:y,allowedPlacements:v=Ge,autoAlignment:S=!0,...E}=be(e,o),L=y!==void 0||v===Ge?Un(y||null,S,v):v,P=await Ve(o,E),W=((n=c.autoPlacement)==null?void 0:n.index)||0,B=L[W];if(B==null)return{};let D=Tr(B,s,await(d.isRTL==null?void 0:d.isRTL(m.floating)));if(p!==B)return{reset:{placement:L[0]}};let ht=[P[Kt(B)],P[D[0]],P[D[1]]],k=[...((a=c.autoPlacement)==null?void 0:a.overflows)||[],{placement:B,overflows:ht}],Qe=L[W+1];if(Qe)return{data:{index:W+1,overflows:k},reset:{placement:Qe}};let to=k.map(ot=>{let Yt=Ct(ot.placement);return[ot.placement,Yt&&x?ot.overflows.slice(0,2).reduce((Cn,vn)=>Cn+vn,0):ot.overflows[0],ot.overflows]}).sort((ot,Yt)=>ot[1]-Yt[1]),eo=((i=to.filter(ot=>ot[2].slice(0,Ct(ot[0])?2:3).every(Yt=>Yt<=0))[0])==null?void 0:i[0])||to[0][0];return eo!==p?{data:{index:W+1,overflows:k},reset:{placement:eo}}:{}}}};var Ye=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(o){let{x:n,y:a,placement:i}=o,{mainAxis:s=!0,crossAxis:c=!1,limiter:p={fn:P=>{let{x:W,y:B}=P;return{x:W,y:B}}},...d}=be(e,o),m={x:n,y:a},x=await Ve(o,d),y=xe(Kt(i)),v=Ke(y),S=m[v],E=m[y];if(s){let P=v==="y"?"top":"left",W=v==="y"?"bottom":"right",B=S+x[P],D=S-x[W];S=Ze(B,S,D)}if(c){let P=y==="y"?"top":"left",W=y==="y"?"bottom":"right",B=E+x[P],D=E-x[W];E=Ze(B,E,D)}let L=p.fn({...o,[v]:S,[y]:E});return{...L,data:{x:L.x-n,y:L.y-a}}}}};function ut(e){return Dr(e)?(e.nodeName||"").toLowerCase():"#document"}function F(e){var o;return(e==null||(o=e.ownerDocument)==null?void 0:o.defaultView)||window}function mt(e){var o;return(o=(Dr(e)?e.ownerDocument:e.document)||window.document)==null?void 0:o.documentElement}function Dr(e){return e instanceof Node||e instanceof F(e).Node}function at(e){return e instanceof Element||e instanceof F(e).Element}function tt(e){return e instanceof HTMLElement||e instanceof F(e).HTMLElement}function kr(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof F(e).ShadowRoot}function Mt(e){let{overflow:o,overflowX:n,overflowY:a,display:i}=Y(e);return/auto|scroll|overlay|hidden|clip/.test(o+a+n)&&!["inline","contents"].includes(i)}function Gr(e){return["table","td","th"].includes(ut(e))}function Se(e){let o=Ce(),n=Y(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!o&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!o&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(a=>(n.willChange||"").includes(a))||["paint","layout","strict","content"].some(a=>(n.contain||"").includes(a))}function Zr(e){let o=At(e);for(;tt(o)&&!ae(o);){if(Se(o))return o;o=At(o)}return null}function Ce(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ae(e){return["html","body","#document"].includes(ut(e))}function Y(e){return F(e).getComputedStyle(e)}function ie(e){return at(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function At(e){if(ut(e)==="html")return e;let o=e.assignedSlot||e.parentNode||kr(e)&&e.host||mt(e);return kr(o)?o.host:o}function Kr(e){let o=At(e);return ae(o)?e.ownerDocument?e.ownerDocument.body:e.body:tt(o)&&Mt(o)?o:Kr(o)}function Oe(e,o,n){var a;o===void 0&&(o=[]),n===void 0&&(n=!0);let i=Kr(e),s=i===((a=e.ownerDocument)==null?void 0:a.body),c=F(i);return s?o.concat(c,c.visualViewport||[],Mt(i)?i:[],c.frameElement&&n?Oe(c.frameElement):[]):o.concat(i,Oe(i,[],n))}function Vr(e){let o=Y(e),n=parseFloat(o.width)||0,a=parseFloat(o.height)||0,i=tt(e),s=i?e.offsetWidth:n,c=i?e.offsetHeight:a,p=ne(n)!==s||ne(a)!==c;return p&&(n=s,a=c),{width:n,height:a,$:p}}function jr(e){return at(e)?e:e.contextElement}function Ft(e){let o=jr(e);if(!tt(o))return gt(1);let n=o.getBoundingClientRect(),{width:a,height:i,$:s}=Vr(o),c=(s?ne(n.width):n.width)/a,p=(s?ne(n.height):n.height)/i;return(!c||!Number.isFinite(c))&&(c=1),(!p||!Number.isFinite(p))&&(p=1),{x:c,y:p}}var kn=gt(0);function Yr(e){let o=F(e);return!Ce()||!o.visualViewport?kn:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function Dn(e,o,n){return o===void 0&&(o=!1),!n||o&&n!==F(e)?!1:o}function le(e,o,n,a){o===void 0&&(o=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),s=jr(e),c=gt(1);o&&(a?at(a)&&(c=Ft(a)):c=Ft(e));let p=Dn(s,n,a)?Yr(s):gt(0),d=(i.left+p.x)/c.x,m=(i.top+p.y)/c.y,x=i.width/c.x,y=i.height/c.y;if(s){let v=F(s),S=a&&at(a)?F(a):a,E=v.frameElement;for(;E&&a&&S!==v;){let L=Ft(E),P=E.getBoundingClientRect(),W=Y(E),B=P.left+(E.clientLeft+parseFloat(W.paddingLeft))*L.x,D=P.top+(E.clientTop+parseFloat(W.paddingTop))*L.y;d*=L.x,m*=L.y,x*=L.x,y*=L.y,d+=B,m+=D,E=F(E).frameElement}}return Rt({width:x,height:y,x:d,y:m})}function Gn(e){let{rect:o,offsetParent:n,strategy:a}=e,i=tt(n),s=mt(n);if(n===s)return o;let c={scrollLeft:0,scrollTop:0},p=gt(1),d=gt(0);if((i||!i&&a!=="fixed")&&((ut(n)!=="body"||Mt(s))&&(c=ie(n)),tt(n))){let m=le(n);p=Ft(n),d.x=m.x+n.clientLeft,d.y=m.y+n.clientTop}return{width:o.width*p.x,height:o.height*p.y,x:o.x*p.x-c.scrollLeft*p.x+d.x,y:o.y*p.y-c.scrollTop*p.y+d.y}}function Zn(e){return Array.from(e.getClientRects())}function Xr(e){return le(mt(e)).left+ie(e).scrollLeft}function Kn(e){let o=mt(e),n=ie(e),a=e.ownerDocument.body,i=St(o.scrollWidth,o.clientWidth,a.scrollWidth,a.clientWidth),s=St(o.scrollHeight,o.clientHeight,a.scrollHeight,a.clientHeight),c=-n.scrollLeft+Xr(e),p=-n.scrollTop;return Y(a).direction==="rtl"&&(c+=St(o.clientWidth,a.clientWidth)-i),{width:i,height:s,x:c,y:p}}function Mn(e,o){let n=F(e),a=mt(e),i=n.visualViewport,s=a.clientWidth,c=a.clientHeight,p=0,d=0;if(i){s=i.width,c=i.height;let m=Ce();(!m||m&&o==="fixed")&&(p=i.offsetLeft,d=i.offsetTop)}return{width:s,height:c,x:p,y:d}}function Fn(e,o){let n=le(e,!0,o==="fixed"),a=n.top+e.clientTop,i=n.left+e.clientLeft,s=tt(e)?Ft(e):gt(1),c=e.clientWidth*s.x,p=e.clientHeight*s.y,d=i*s.x,m=a*s.y;return{width:c,height:p,x:d,y:m}}function Mr(e,o,n){let a;if(o==="viewport")a=Mn(e,n);else if(o==="document")a=Kn(mt(e));else if(at(o))a=Fn(o,n);else{let i=Yr(e);a={...o,x:o.x-i.x,y:o.y-i.y}}return Rt(a)}function qr(e,o){let n=At(e);return n===o||!at(n)||ae(n)?!1:Y(n).position==="fixed"||qr(n,o)}function Vn(e,o){let n=o.get(e);if(n)return n;let a=Oe(e,[],!1).filter(p=>at(p)&&ut(p)!=="body"),i=null,s=Y(e).position==="fixed",c=s?At(e):e;for(;at(c)&&!ae(c);){let p=Y(c),d=Se(c);!d&&p.position==="fixed"&&(i=null),(s?!d&&!i:!d&&p.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Mt(c)&&!d&&qr(e,c))?a=a.filter(x=>x!==c):i=p,c=At(c)}return o.set(e,a),a}function jn(e){let{element:o,boundary:n,rootBoundary:a,strategy:i}=e,c=[...n==="clippingAncestors"?Vn(o,this._c):[].concat(n),a],p=c[0],d=c.reduce((m,x)=>{let y=Mr(o,x,i);return m.top=St(y.top,m.top),m.right=re(y.right,m.right),m.bottom=re(y.bottom,m.bottom),m.left=St(y.left,m.left),m},Mr(o,p,i));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function Yn(e){return Vr(e)}function Xn(e,o,n){let a=tt(o),i=mt(o),s=n==="fixed",c=le(e,!0,s,o),p={scrollLeft:0,scrollTop:0},d=gt(0);if(a||!a&&!s)if((ut(o)!=="body"||Mt(i))&&(p=ie(o)),a){let m=le(o,!0,s,o);d.x=m.x+o.clientLeft,d.y=m.y+o.clientTop}else i&&(d.x=Xr(i));return{x:c.left+p.scrollLeft-d.x,y:c.top+p.scrollTop-d.y,width:c.width,height:c.height}}function Fr(e,o){return!tt(e)||Y(e).position==="fixed"?null:o?o(e):e.offsetParent}function Jr(e,o){let n=F(e);if(!tt(e))return n;let a=Fr(e,o);for(;a&&Gr(a)&&Y(a).position==="static";)a=Fr(a,o);return a&&(ut(a)==="html"||ut(a)==="body"&&Y(a).position==="static"&&!Se(a))?n:a||Zr(e)||n}var qn=async function(e){let{reference:o,floating:n,strategy:a}=e,i=this.getOffsetParent||Jr,s=this.getDimensions;return{reference:Xn(o,await i(n),a),floating:{x:0,y:0,...await s(n)}}};function Jn(e){return Y(e).direction==="rtl"}var ve={convertOffsetParentRelativeRectToViewportRelativeRect:Gn,getDocumentElement:mt,getClippingRect:jn,getOffsetParent:Jr,getElementRects:qn,getClientRects:Zn,getDimensions:Yn,getScale:Ft,isElement:at,isRTL:Jn};var Qr=(e,o,n)=>{let a=new Map,i={platform:ve,...n},s={...i.platform,_c:a};return Ur(e,o,{...i,platform:s})};function tn(e){return Qn(e)}function Xe(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function Qn(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 n=getComputedStyle(o);if(n.display!=="contents"&&(n.position!=="static"||n.filter!=="none"||o.tagName==="BODY"))return o}return null}async function en(e,o,n){return Qr(e,o,{platform:{...ve,getOffsetParent:a=>ve.getOffsetParent(a,tn)},middleware:[Ye({crossAxis:!0}),je({allowedPlacements:[n]})]})}var V=function(e,o,n,a){var i=arguments.length,s=i<3?o:a===null?a=Object.getOwnPropertyDescriptor(o,n):a,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,o,n,a);else for(var p=e.length-1;p>=0;p--)(c=e[p])&&(s=(i<3?c(s):i>3?c(o,n,s):c(o,n))||s);return i>3&&s&&Object.defineProperty(o,n,s),s},A=class extends ce.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 ce.Debouncer,this.revealDebouncer=new ce.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return on.html`
|
|
521
|
+
`;var Br=["top","right","bottom","left"],Pr=["start","end"],Ge=Br.reduce((e,o)=>e.concat(o,o+"-"+Pr[0],o+"-"+Pr[1]),[]),re=Math.min,St=Math.max,ne=Math.round;var gt=e=>({x:e,y:e}),zn={left:"right",right:"left",bottom:"top",top:"bottom"},_n={start:"end",end:"start"};function Ze(e,o,n){return St(e,re(o,n))}function be(e,o){return typeof e=="function"?e(o):e}function Kt(e){return e.split("-")[0]}function Ct(e){return e.split("-")[1]}function Ke(e){return e==="x"?"y":"x"}function Me(e){return e==="y"?"height":"width"}function xe(e){return["top","bottom"].includes(Kt(e))?"y":"x"}function Fe(e){return Ke(xe(e))}function Tr(e,o,n){n===void 0&&(n=!1);let a=Ct(e),i=Fe(e),s=Me(i),c=i==="x"?a===(n?"end":"start")?"right":"left":a==="start"?"bottom":"top";return o.reference[s]>o.floating[s]&&(c=De(c)),[c,De(c)]}function zr(e){return e.replace(/start|end/g,o=>_n[o])}function De(e){return e.replace(/left|right|bottom|top/g,o=>zn[o])}function Hn(e){return{top:0,right:0,bottom:0,left:0,...e}}function _r(e){return typeof e!="number"?Hn(e):{top:e,right:e,bottom:e,left:e}}function Rt(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Hr(e,o,n){let{reference:a,floating:i}=e,s=xe(o),c=Fe(o),p=Me(c),d=Kt(o),m=s==="y",x=a.x+a.width/2-i.width/2,y=a.y+a.height/2-i.height/2,v=a[p]/2-i[p]/2,S;switch(d){case"top":S={x,y:a.y-i.height};break;case"bottom":S={x,y:a.y+a.height};break;case"right":S={x:a.x+a.width,y};break;case"left":S={x:a.x-i.width,y};break;default:S={x:a.x,y:a.y}}switch(Ct(o)){case"start":S[c]-=v*(n&&m?-1:1);break;case"end":S[c]+=v*(n&&m?-1:1);break}return S}var Ur=async(e,o,n)=>{let{placement:a="bottom",strategy:i="absolute",middleware:s=[],platform:c}=n,p=s.filter(Boolean),d=await(c.isRTL==null?void 0:c.isRTL(o)),m=await c.getElementRects({reference:e,floating:o,strategy:i}),{x,y}=Hr(m,a,d),v=a,S={},E=0;for(let W=0;W<p.length;W++){let{name:P,fn:$}=p[W],{x:B,y:G,data:ht,reset:k}=await $({x,y,initialPlacement:a,placement:v,strategy:i,middlewareData:S,rects:m,platform:c,elements:{reference:e,floating:o}});if(x=B??x,y=G??y,S={...S,[P]:{...S[P],...ht}},k&&E<=50){E++,typeof k=="object"&&(k.placement&&(v=k.placement),k.rects&&(m=k.rects===!0?await c.getElementRects({reference:e,floating:o,strategy:i}):k.rects),{x,y}=Hr(m,v,d)),W=-1;continue}}return{x,y,placement:v,strategy:i,middlewareData:S}};async function Ve(e,o){var n;o===void 0&&(o={});let{x:a,y:i,platform:s,rects:c,elements:p,strategy:d}=e,{boundary:m="clippingAncestors",rootBoundary:x="viewport",elementContext:y="floating",altBoundary:v=!1,padding:S=0}=be(o,e),E=_r(S),P=p[v?y==="floating"?"reference":"floating":y],$=Rt(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(P)))==null||n?P:P.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(p.floating)),boundary:m,rootBoundary:x,strategy:d})),B=y==="floating"?{...c.floating,x:a,y:i}:c.reference,G=await(s.getOffsetParent==null?void 0:s.getOffsetParent(p.floating)),ht=await(s.isElement==null?void 0:s.isElement(G))?await(s.getScale==null?void 0:s.getScale(G))||{x:1,y:1}:{x:1,y:1},k=Rt(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({rect:B,offsetParent:G,strategy:d}):B);return{top:($.top-k.top+E.top)/ht.y,bottom:(k.bottom-$.bottom+E.bottom)/ht.y,left:($.left-k.left+E.left)/ht.x,right:(k.right-$.right+E.right)/ht.x}}function Un(e,o,n){return(e?[...n.filter(i=>Ct(i)===e),...n.filter(i=>Ct(i)!==e)]:n.filter(i=>Kt(i)===i)).filter(i=>e?Ct(i)===e||(o?zr(i)!==i:!1):!0)}var je=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(o){var n,a,i;let{rects:s,middlewareData:c,placement:p,platform:d,elements:m}=o,{crossAxis:x=!1,alignment:y,allowedPlacements:v=Ge,autoAlignment:S=!0,...E}=be(e,o),W=y!==void 0||v===Ge?Un(y||null,S,v):v,P=await Ve(o,E),$=((n=c.autoPlacement)==null?void 0:n.index)||0,B=W[$];if(B==null)return{};let G=Tr(B,s,await(d.isRTL==null?void 0:d.isRTL(m.floating)));if(p!==B)return{reset:{placement:W[0]}};let ht=[P[Kt(B)],P[G[0]],P[G[1]]],k=[...((a=c.autoPlacement)==null?void 0:a.overflows)||[],{placement:B,overflows:ht}],Qe=W[$+1];if(Qe)return{data:{index:$+1,overflows:k},reset:{placement:Qe}};let to=k.map(ot=>{let Yt=Ct(ot.placement);return[ot.placement,Yt&&x?ot.overflows.slice(0,2).reduce((Cn,vn)=>Cn+vn,0):ot.overflows[0],ot.overflows]}).sort((ot,Yt)=>ot[1]-Yt[1]),eo=((i=to.filter(ot=>ot[2].slice(0,Ct(ot[0])?2:3).every(Yt=>Yt<=0))[0])==null?void 0:i[0])||to[0][0];return eo!==p?{data:{index:$+1,overflows:k},reset:{placement:eo}}:{}}}};var Ye=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(o){let{x:n,y:a,placement:i}=o,{mainAxis:s=!0,crossAxis:c=!1,limiter:p={fn:P=>{let{x:$,y:B}=P;return{x:$,y:B}}},...d}=be(e,o),m={x:n,y:a},x=await Ve(o,d),y=xe(Kt(i)),v=Ke(y),S=m[v],E=m[y];if(s){let P=v==="y"?"top":"left",$=v==="y"?"bottom":"right",B=S+x[P],G=S-x[$];S=Ze(B,S,G)}if(c){let P=y==="y"?"top":"left",$=y==="y"?"bottom":"right",B=E+x[P],G=E-x[$];E=Ze(B,E,G)}let W=p.fn({...o,[v]:S,[y]:E});return{...W,data:{x:W.x-n,y:W.y-a}}}}};function ut(e){return Dr(e)?(e.nodeName||"").toLowerCase():"#document"}function F(e){var o;return(e==null||(o=e.ownerDocument)==null?void 0:o.defaultView)||window}function mt(e){var o;return(o=(Dr(e)?e.ownerDocument:e.document)||window.document)==null?void 0:o.documentElement}function Dr(e){return e instanceof Node||e instanceof F(e).Node}function at(e){return e instanceof Element||e instanceof F(e).Element}function tt(e){return e instanceof HTMLElement||e instanceof F(e).HTMLElement}function kr(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof F(e).ShadowRoot}function Mt(e){let{overflow:o,overflowX:n,overflowY:a,display:i}=X(e);return/auto|scroll|overlay|hidden|clip/.test(o+a+n)&&!["inline","contents"].includes(i)}function Gr(e){return["table","td","th"].includes(ut(e))}function Se(e){let o=Ce(),n=X(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!o&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!o&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(a=>(n.willChange||"").includes(a))||["paint","layout","strict","content"].some(a=>(n.contain||"").includes(a))}function Zr(e){let o=At(e);for(;tt(o)&&!ae(o);){if(Se(o))return o;o=At(o)}return null}function Ce(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ae(e){return["html","body","#document"].includes(ut(e))}function X(e){return F(e).getComputedStyle(e)}function ie(e){return at(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function At(e){if(ut(e)==="html")return e;let o=e.assignedSlot||e.parentNode||kr(e)&&e.host||mt(e);return kr(o)?o.host:o}function Kr(e){let o=At(e);return ae(o)?e.ownerDocument?e.ownerDocument.body:e.body:tt(o)&&Mt(o)?o:Kr(o)}function Oe(e,o,n){var a;o===void 0&&(o=[]),n===void 0&&(n=!0);let i=Kr(e),s=i===((a=e.ownerDocument)==null?void 0:a.body),c=F(i);return s?o.concat(c,c.visualViewport||[],Mt(i)?i:[],c.frameElement&&n?Oe(c.frameElement):[]):o.concat(i,Oe(i,[],n))}function Vr(e){let o=X(e),n=parseFloat(o.width)||0,a=parseFloat(o.height)||0,i=tt(e),s=i?e.offsetWidth:n,c=i?e.offsetHeight:a,p=ne(n)!==s||ne(a)!==c;return p&&(n=s,a=c),{width:n,height:a,$:p}}function jr(e){return at(e)?e:e.contextElement}function Ft(e){let o=jr(e);if(!tt(o))return gt(1);let n=o.getBoundingClientRect(),{width:a,height:i,$:s}=Vr(o),c=(s?ne(n.width):n.width)/a,p=(s?ne(n.height):n.height)/i;return(!c||!Number.isFinite(c))&&(c=1),(!p||!Number.isFinite(p))&&(p=1),{x:c,y:p}}var kn=gt(0);function Yr(e){let o=F(e);return!Ce()||!o.visualViewport?kn:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function Dn(e,o,n){return o===void 0&&(o=!1),!n||o&&n!==F(e)?!1:o}function le(e,o,n,a){o===void 0&&(o=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),s=jr(e),c=gt(1);o&&(a?at(a)&&(c=Ft(a)):c=Ft(e));let p=Dn(s,n,a)?Yr(s):gt(0),d=(i.left+p.x)/c.x,m=(i.top+p.y)/c.y,x=i.width/c.x,y=i.height/c.y;if(s){let v=F(s),S=a&&at(a)?F(a):a,E=v.frameElement;for(;E&&a&&S!==v;){let W=Ft(E),P=E.getBoundingClientRect(),$=X(E),B=P.left+(E.clientLeft+parseFloat($.paddingLeft))*W.x,G=P.top+(E.clientTop+parseFloat($.paddingTop))*W.y;d*=W.x,m*=W.y,x*=W.x,y*=W.y,d+=B,m+=G,E=F(E).frameElement}}return Rt({width:x,height:y,x:d,y:m})}function Gn(e){let{rect:o,offsetParent:n,strategy:a}=e,i=tt(n),s=mt(n);if(n===s)return o;let c={scrollLeft:0,scrollTop:0},p=gt(1),d=gt(0);if((i||!i&&a!=="fixed")&&((ut(n)!=="body"||Mt(s))&&(c=ie(n)),tt(n))){let m=le(n);p=Ft(n),d.x=m.x+n.clientLeft,d.y=m.y+n.clientTop}return{width:o.width*p.x,height:o.height*p.y,x:o.x*p.x-c.scrollLeft*p.x+d.x,y:o.y*p.y-c.scrollTop*p.y+d.y}}function Zn(e){return Array.from(e.getClientRects())}function Xr(e){return le(mt(e)).left+ie(e).scrollLeft}function Kn(e){let o=mt(e),n=ie(e),a=e.ownerDocument.body,i=St(o.scrollWidth,o.clientWidth,a.scrollWidth,a.clientWidth),s=St(o.scrollHeight,o.clientHeight,a.scrollHeight,a.clientHeight),c=-n.scrollLeft+Xr(e),p=-n.scrollTop;return X(a).direction==="rtl"&&(c+=St(o.clientWidth,a.clientWidth)-i),{width:i,height:s,x:c,y:p}}function Mn(e,o){let n=F(e),a=mt(e),i=n.visualViewport,s=a.clientWidth,c=a.clientHeight,p=0,d=0;if(i){s=i.width,c=i.height;let m=Ce();(!m||m&&o==="fixed")&&(p=i.offsetLeft,d=i.offsetTop)}return{width:s,height:c,x:p,y:d}}function Fn(e,o){let n=le(e,!0,o==="fixed"),a=n.top+e.clientTop,i=n.left+e.clientLeft,s=tt(e)?Ft(e):gt(1),c=e.clientWidth*s.x,p=e.clientHeight*s.y,d=i*s.x,m=a*s.y;return{width:c,height:p,x:d,y:m}}function Mr(e,o,n){let a;if(o==="viewport")a=Mn(e,n);else if(o==="document")a=Kn(mt(e));else if(at(o))a=Fn(o,n);else{let i=Yr(e);a={...o,x:o.x-i.x,y:o.y-i.y}}return Rt(a)}function qr(e,o){let n=At(e);return n===o||!at(n)||ae(n)?!1:X(n).position==="fixed"||qr(n,o)}function Vn(e,o){let n=o.get(e);if(n)return n;let a=Oe(e,[],!1).filter(p=>at(p)&&ut(p)!=="body"),i=null,s=X(e).position==="fixed",c=s?At(e):e;for(;at(c)&&!ae(c);){let p=X(c),d=Se(c);!d&&p.position==="fixed"&&(i=null),(s?!d&&!i:!d&&p.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Mt(c)&&!d&&qr(e,c))?a=a.filter(x=>x!==c):i=p,c=At(c)}return o.set(e,a),a}function jn(e){let{element:o,boundary:n,rootBoundary:a,strategy:i}=e,c=[...n==="clippingAncestors"?Vn(o,this._c):[].concat(n),a],p=c[0],d=c.reduce((m,x)=>{let y=Mr(o,x,i);return m.top=St(y.top,m.top),m.right=re(y.right,m.right),m.bottom=re(y.bottom,m.bottom),m.left=St(y.left,m.left),m},Mr(o,p,i));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function Yn(e){return Vr(e)}function Xn(e,o,n){let a=tt(o),i=mt(o),s=n==="fixed",c=le(e,!0,s,o),p={scrollLeft:0,scrollTop:0},d=gt(0);if(a||!a&&!s)if((ut(o)!=="body"||Mt(i))&&(p=ie(o)),a){let m=le(o,!0,s,o);d.x=m.x+o.clientLeft,d.y=m.y+o.clientTop}else i&&(d.x=Xr(i));return{x:c.left+p.scrollLeft-d.x,y:c.top+p.scrollTop-d.y,width:c.width,height:c.height}}function Fr(e,o){return!tt(e)||X(e).position==="fixed"?null:o?o(e):e.offsetParent}function Jr(e,o){let n=F(e);if(!tt(e))return n;let a=Fr(e,o);for(;a&&Gr(a)&&X(a).position==="static";)a=Fr(a,o);return a&&(ut(a)==="html"||ut(a)==="body"&&X(a).position==="static"&&!Se(a))?n:a||Zr(e)||n}var qn=async function(e){let{reference:o,floating:n,strategy:a}=e,i=this.getOffsetParent||Jr,s=this.getDimensions;return{reference:Xn(o,await i(n),a),floating:{x:0,y:0,...await s(n)}}};function Jn(e){return X(e).direction==="rtl"}var ve={convertOffsetParentRelativeRectToViewportRelativeRect:Gn,getDocumentElement:mt,getClippingRect:jn,getOffsetParent:Jr,getElementRects:qn,getClientRects:Zn,getDimensions:Yn,getScale:Ft,isElement:at,isRTL:Jn};var Qr=(e,o,n)=>{let a=new Map,i={platform:ve,...n},s={...i.platform,_c:a};return Ur(e,o,{...i,platform:s})};function tn(e){return Qn(e)}function Xe(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function Qn(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 n=getComputedStyle(o);if(n.display!=="contents"&&(n.position!=="static"||n.filter!=="none"||o.tagName==="BODY"))return o}return null}async function en(e,o,n){return Qr(e,o,{platform:{...ve,getOffsetParent:a=>ve.getOffsetParent(a,tn)},middleware:[Ye({crossAxis:!0}),je({allowedPlacements:[n]})]})}var V=function(e,o,n,a){var i=arguments.length,s=i<3?o:a===null?a=Object.getOwnPropertyDescriptor(o,n):a,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,o,n,a);else for(var p=e.length-1;p>=0;p--)(c=e[p])&&(s=(i<3?c(s):i>3?c(o,n,s):c(o,n))||s);return i>3&&s&&Object.defineProperty(o,n,s),s},A=class extends ce.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 ce.Debouncer,this.revealDebouncer=new ce.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return on.html`
|
|
522
522
|
<div part="container"
|
|
523
523
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
524
524
|
@mouseenter=${this.onHover}
|
|
@@ -548,10 +548,10 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
548
548
|
<div></div>
|
|
549
549
|
<div></div>
|
|
550
550
|
</div>
|
|
551
|
-
`}};Wt.styles=tr;(0,fn.customElement)("ft-loader")(Wt);var Vt=h(H()),gn=h(We()),
|
|
551
|
+
`}};Wt.styles=tr;(0,fn.customElement)("ft-loader")(Wt);var Vt=h(H()),gn=h(We()),D=h(ct()),j=function(e,o,n,a){var i=arguments.length,s=i<3?o:a===null?a=Object.getOwnPropertyDescriptor(o,n):a,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,o,n,a);else for(var p=e.length-1;p>=0;p--)(c=e[p])&&(s=(i<3?c(s):i>3?c(o,n,s):c(o,n))||s);return i>3&&s&&Object.defineProperty(o,n,s),s},L=class extends(0,jt.toFtFormComponent)(jt.FtLitElement,"button"){get buttonClasses(){return{}}get typographyVariant(){return""}constructor(){super(),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 n;this.isDisabled()?(o.preventDefault(),o.stopPropagation(),o.stopImmediatePropagation()):this.type=="submit"&&((n=this.form)===null||n===void 0||n.requestSubmit())})}render(){var o;return this.addTooltipIfNeeded(Vt.html`
|
|
552
552
|
<button part="button"
|
|
553
553
|
class="${(0,gn.classMap)(this.buttonClasses)}"
|
|
554
|
-
aria-label="${this.getLabel()}"
|
|
554
|
+
aria-label="${(o=this.ariaLabel)!==null&&o!==void 0?o:this.getLabel()}"
|
|
555
555
|
?disabled=${this.isDisabled()}>
|
|
556
556
|
<ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
|
|
557
557
|
<ft-typography part="label"
|
|
@@ -574,7 +574,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
574
574
|
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
|
|
575
575
|
`:Vt.html`
|
|
576
576
|
<slot part="icon" name="icon"></slot>
|
|
577
|
-
`}focus(){var o;(o=this.button)===null||o===void 0||o.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(o){return o instanceof HTMLSlotElement?o.assignedNodes().map(n=>this.unslotText(n)).join(""):o?.textContent||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};
|
|
577
|
+
`}focus(){var o;(o=this.button)===null||o===void 0||o.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(o){return o instanceof HTMLSlotElement?o.assignedNodes().map(n=>this.unslotText(n)).join(""):o?.textContent||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};L.elementDefinitions={"ft-ripple":R,"ft-tooltip":A,"ft-typography":Q,"ft-icon":J,"ft-loader":Wt};j([(0,D.property)({type:String,reflect:!0})],L.prototype,"role",void 0);j([(0,D.property)()],L.prototype,"type",void 0);j([(0,D.property)({type:Boolean})],L.prototype,"disabled",void 0);j([(0,D.property)()],L.prototype,"label",void 0);j([(0,D.property)()],L.prototype,"icon",void 0);j([(0,D.property)()],L.prototype,"iconVariant",void 0);j([(0,D.property)({type:Boolean})],L.prototype,"trailingIcon",void 0);j([(0,D.property)({type:Boolean})],L.prototype,"loading",void 0);j([(0,D.property)({attribute:"aria-label"})],L.prototype,"ariaLabel",void 0);j([(0,D.property)()],L.prototype,"tooltipPosition",void 0);j([(0,D.property)({type:Boolean})],L.prototype,"hideTooltip",void 0);j([(0,D.property)({type:Boolean})],L.prototype,"forceTooltip",void 0);j([(0,D.query)(".ft-button")],L.prototype,"button",void 0);j([(0,D.query)(".ft-button--label slot")],L.prototype,"slottedContent",void 0);var we=function(e,o,n,a){var i=arguments.length,s=i<3?o:a===null?a=Object.getOwnPropertyDescriptor(o,n):a,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,o,n,a);else for(var p=e.length-1;p>=0;p--)(c=e[p])&&(s=(i<3?c(s):i>3?c(o,n,s):c(o,n))||s);return i>3&&s&&Object.defineProperty(o,n,s),s},et=class extends L{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=[un.safariEllipsisFix,ir];we([(0,pe.property)({type:Boolean})],et.prototype,"primary",void 0);we([(0,pe.property)({type:Boolean})],et.prototype,"outlined",void 0);we([(0,pe.property)({type:Boolean})],et.prototype,"dense",void 0);we([(0,pe.property)({type:Boolean})],et.prototype,"round",void 0);var de=h(ct());var Ae=h(w());var mn=h(H()),C=h(w());var yn=[mn.css`
|
|
578
578
|
:host {
|
|
579
579
|
display: inline-block;
|
|
580
580
|
max-width: 100%;
|
|
@@ -658,7 +658,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
658
658
|
/** Primary styles **/
|
|
659
659
|
|
|
660
660
|
.ft-button--primary {
|
|
661
|
-
${(0,C.setVariable)(
|
|
661
|
+
${(0,C.setVariable)(Z.color,f.primaryIconColor)};
|
|
662
662
|
|
|
663
663
|
${(0,C.setVariable)(N.color,f.primaryStateLayerColor)};
|
|
664
664
|
${(0,C.setVariable)(N.opacityContentOnSurfaceHover,f.primaryHoverStateLayerOpacity)};
|
|
@@ -682,7 +682,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
682
682
|
/** Secondary styles **/
|
|
683
683
|
|
|
684
684
|
.ft-button--secondary {
|
|
685
|
-
${(0,C.setVariable)(
|
|
685
|
+
${(0,C.setVariable)(Z.color,f.secondaryIconColor)};
|
|
686
686
|
|
|
687
687
|
${(0,C.setVariable)(N.color,f.secondaryStateLayerColor)};
|
|
688
688
|
${(0,C.setVariable)(N.opacityContentOnSurfaceHover,f.secondaryHoverStateLayerOpacity)};
|
|
@@ -707,7 +707,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
707
707
|
/** Tertiary styles **/
|
|
708
708
|
|
|
709
709
|
.ft-button--tertiary {
|
|
710
|
-
${(0,C.setVariable)(
|
|
710
|
+
${(0,C.setVariable)(Z.color,f.tertiaryIconColor)};
|
|
711
711
|
|
|
712
712
|
${(0,C.setVariable)(N.color,f.tertiaryStateLayerColor)};
|
|
713
713
|
${(0,C.setVariable)(N.opacityContentOnSurfaceHover,f.tertiaryHoverStateLayerOpacity)};
|
|
@@ -731,7 +731,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
731
731
|
/** Neutral styles **/
|
|
732
732
|
|
|
733
733
|
.ftds--family-neutral {
|
|
734
|
-
${(0,C.setVariable)(
|
|
734
|
+
${(0,C.setVariable)(Z.color,f.neutralIconColor)};
|
|
735
735
|
|
|
736
736
|
${(0,C.setVariable)(N.backgroundColor,f.neutralStateLayerColor)};
|
|
737
737
|
${(0,C.setVariable)(N.opacityContentOnSurfaceHover,f.neutralHoverStateLayerOpacity)};
|
|
@@ -755,8 +755,8 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
755
755
|
/** Large styles **/
|
|
756
756
|
|
|
757
757
|
.ftds--size-large {
|
|
758
|
+
${(0,C.setVariable)(K.size,f.largeIconSize)};
|
|
758
759
|
${(0,C.setVariable)(Z.size,f.largeIconSize)};
|
|
759
|
-
${(0,C.setVariable)(G.size,f.largeIconSize)};
|
|
760
760
|
|
|
761
761
|
height: ${f.largeHeight};
|
|
762
762
|
padding: 0 ${f.largeHorizontalPadding};
|
|
@@ -777,8 +777,8 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
777
777
|
/** Small styles **/
|
|
778
778
|
|
|
779
779
|
.ftds--size-medium {
|
|
780
|
+
${(0,C.setVariable)(K.size,f.mediumIconSize)};
|
|
780
781
|
${(0,C.setVariable)(Z.size,f.mediumIconSize)};
|
|
781
|
-
${(0,C.setVariable)(G.size,f.mediumIconSize)};
|
|
782
782
|
|
|
783
783
|
height: ${f.mediumHeight};
|
|
784
784
|
padding: 0 ${f.mediumHorizontalPadding};
|
|
@@ -800,8 +800,8 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
800
800
|
/** Small styles **/
|
|
801
801
|
|
|
802
802
|
.ftds--size-small {
|
|
803
|
+
${(0,C.setVariable)(K.size,f.smallIconSize)};
|
|
803
804
|
${(0,C.setVariable)(Z.size,f.smallIconSize)};
|
|
804
|
-
${(0,C.setVariable)(G.size,f.smallIconSize)};
|
|
805
805
|
|
|
806
806
|
height: ${f.smallHeight};
|
|
807
807
|
padding: 0 ${f.smallHorizontalPadding};
|
|
@@ -818,7 +818,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
818
818
|
.ftds--size-small.ft-button--icon-only {
|
|
819
819
|
width: ${f.smallIconOnlyWidth};
|
|
820
820
|
}
|
|
821
|
-
`,C.noTextSelect];var Re=function(e,o,n,a){var i=arguments.length,s=i<3?o:a===null?a=Object.getOwnPropertyDescriptor(o,n):a,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,o,n,a);else for(var p=e.length-1;p>=0;p--)(c=e[p])&&(s=(i<3?c(s):i>3?c(o,n,s):c(o,n))||s);return i>3&&s&&Object.defineProperty(o,n,s),s},yt=class extends(0,Ae.toFtdsBase)(
|
|
821
|
+
`,C.noTextSelect];var Re=function(e,o,n,a){var i=arguments.length,s=i<3?o:a===null?a=Object.getOwnPropertyDescriptor(o,n):a,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,o,n,a);else for(var p=e.length-1;p>=0;p--)(c=e[p])&&(s=(i<3?c(s):i>3?c(o,n,s):c(o,n))||s);return i>3&&s&&Object.defineProperty(o,n,s),s},yt=class extends(0,Ae.toFtdsBase)(L){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=ge.brand,this.iconVariant=it.fluid_topics}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon,"ft-button--round":this.round,...this.getDesignSystemBaseClasses()}}get typographyVariant(){switch(this.size){case $t.large:return Ot.body2medium;case $t.medium:return Ot.caption1medium;case $t.small:return Ot.caption2medium}}};yt.styles=[Ae.safariEllipsisFix,yn];Re([(0,de.property)({type:Boolean})],yt.prototype,"primary",void 0);Re([(0,de.property)({type:Boolean})],yt.prototype,"secondary",void 0);Re([(0,de.property)({type:Boolean})],yt.prototype,"tertiary",void 0);Re([(0,de.property)({type:Boolean})],yt.prototype,"round",void 0);(0,qe.customElement)("ft-button")(et);(0,qe.customElement)("ftds-button")(yt);var hn=h(H()),Mp={},bn=hn.css``;var vt=function(e,o,n,a){var i=arguments.length,s=i<3?o:a===null?a=Object.getOwnPropertyDescriptor(o,n):a,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,o,n,a);else for(var p=e.length-1;p>=0;p--)(c=e[p])&&(s=(i<3?c(s):i>3?c(o,n,s):c(o,n))||s);return i>3&&s&&Object.defineProperty(o,n,s),s},Je=class extends CustomEvent{constructor(o){super("change",{detail:{file:o}})}},Y=class extends On.FtLitElement{constructor(){super(...arguments),this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.accept=""}render(){return xn.html`
|
|
822
822
|
<div class="ft-file-button">
|
|
823
823
|
<ft-button ?disabled=${this.disabled}
|
|
824
824
|
label="${this.label}"
|
|
@@ -834,7 +834,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
834
834
|
@change=${this.onFileChange}
|
|
835
835
|
hidden/>
|
|
836
836
|
</div>
|
|
837
|
-
`}onFileChange(){var o;((o=this.input.files)===null||o===void 0?void 0:o.length)>0&&this.dispatchEvent(new Je(this.input.files.item(0)))}focus(){this.button.focus()}clear(){this.input.value=""}};
|
|
837
|
+
`}onFileChange(){var o;((o=this.input.files)===null||o===void 0?void 0:o.length)>0&&this.dispatchEvent(new Je(this.input.files.item(0)))}focus(){this.button.focus()}clear(){this.input.value=""}};Y.elementDefinitions={"ft-button":et};Y.styles=bn;vt([(0,lt.property)({type:Boolean})],Y.prototype,"disabled",void 0);vt([(0,lt.property)()],Y.prototype,"label",void 0);vt([(0,lt.property)()],Y.prototype,"icon",void 0);vt([(0,lt.property)()],Y.prototype,"iconVariant",void 0);vt([(0,lt.property)({type:Boolean})],Y.prototype,"trailingIcon",void 0);vt([(0,lt.property)()],Y.prototype,"accept",void 0);vt([(0,lt.query)(".ft-file-button--input")],Y.prototype,"input",void 0);vt([(0,lt.query)("ft-button")],Y.prototype,"button",void 0);(0,Sn.customElement)("ft-file-button")(Y);})();
|
|
838
838
|
/*! Bundled license information:
|
|
839
839
|
|
|
840
840
|
lit-html/lit-html.js:
|