@wistia/vhs 2.75.3-beta.ccead058.7332d1b → 2.75.3-beta.ed67b050.37e7785

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/dist/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  /*
3
- * @license @wistia/vhs v2.75.3-beta.ccead058.7332d1b
3
+ * @license @wistia/vhs v2.75.3-beta.ed67b050.37e7785
4
4
  *
5
5
  * Copyright (c) 2021-2025, Wistia, Inc. and its affiliates.
6
6
  *
@@ -189,16 +189,16 @@
189
189
  cursor: not-allowed;
190
190
  }
191
191
  `,Ix=Xe.css`
192
- background-color: ${({buttonColor:e})=>et(Fx,e)};
193
- border-color: ${({buttonColor:e})=>et(Fx,e)};
192
+ background-color: ${({$buttonColor:e})=>et(Fx,e)};
193
+ border-color: ${({$buttonColor:e})=>et(Fx,e)};
194
194
  `,kx=Xe.css`
195
- background-color: ${({buttonColor:e})=>et(Bx,e)};
196
- border-color: ${({buttonColor:e})=>et(Bx,e)};
195
+ background-color: ${({$buttonColor:e})=>et(Bx,e)};
196
+ border-color: ${({$buttonColor:e})=>et(Bx,e)};
197
197
  `,Nx=Xe.css`
198
198
  box-shadow: inset 0 0 0 1px white;
199
199
  `,dL=Xe.css`
200
- background-color: ${({buttonColor:e})=>e};
201
- border-color: ${({buttonColor:e})=>e};
200
+ background-color: ${({$buttonColor:e})=>e};
201
+ border-color: ${({$buttonColor:e})=>e};
202
202
  color: white;
203
203
 
204
204
  &:focus-visible {
@@ -213,17 +213,17 @@
213
213
  ${kx}
214
214
  }
215
215
  `,Vx=Xe.css`
216
- background-color: ${({buttonColor:e})=>Xt(Ox,e)};
216
+ background-color: ${({$buttonColor:e})=>Xt(Ox,e)};
217
217
  `,Lx=Xe.css`
218
- background-color: ${({buttonColor:e})=>Xt(Mx,e)};
218
+ background-color: ${({$buttonColor:e})=>Xt(Mx,e)};
219
219
  `,$x=Xe.css`
220
220
  box-shadow:
221
221
  inset 0 0 0 1px white,
222
- inset 0 0 0 2px ${({buttonColor:e})=>e};
222
+ inset 0 0 0 2px ${({$buttonColor:e})=>e};
223
223
  `,mL=Xe.css`
224
- background-color: ${({buttonColor:e})=>Xt(1,e)};
225
- border-color: ${({buttonColor:e})=>e};
226
- color: ${({buttonColor:e})=>e};
224
+ background-color: ${({$buttonColor:e})=>Xt(1,e)};
225
+ border-color: ${({$buttonColor:e})=>e};
226
+ color: ${({$buttonColor:e})=>e};
227
227
 
228
228
  &:focus-visible {
229
229
  ${$x}
@@ -237,18 +237,18 @@
237
237
  ${Lx}
238
238
  }
239
239
  `,zx=Xe.css`
240
- background-color: ${({buttonColor:e})=>Xt(Ox,e)};
240
+ background-color: ${({$buttonColor:e})=>Xt(Ox,e)};
241
241
  `,Gx=Xe.css`
242
- background-color: ${({buttonColor:e})=>Xt(Mx,e)};
242
+ background-color: ${({$buttonColor:e})=>Xt(Mx,e)};
243
243
  `,Hx=Xe.css`
244
- border-color: ${({buttonColor:e})=>e};
244
+ border-color: ${({$buttonColor:e})=>e};
245
245
  box-shadow:
246
246
  inset 0 0 0 1px white,
247
- inset 0 0 0 2px ${({buttonColor:e})=>e};
247
+ inset 0 0 0 2px ${({$buttonColor:e})=>e};
248
248
  `,hL=Xe.css`
249
- background-color: ${({buttonColor:e})=>Xt(1,e)};
250
- border-color: ${({buttonColor:e})=>Xt(1,e)};
251
- color: ${({buttonColor:e})=>e};
249
+ background-color: ${({$buttonColor:e})=>Xt(1,e)};
250
+ border-color: ${({$buttonColor:e})=>Xt(1,e)};
251
+ color: ${({$buttonColor:e})=>e};
252
252
 
253
253
  &:focus-visible {
254
254
  ${Hx}
@@ -298,23 +298,23 @@
298
298
  }
299
299
 
300
300
  /* border-radius */
301
- ${({square:e})=>e===!0&&gL}
301
+ ${({$square:e})=>e===!0&&gL}
302
302
 
303
303
  /* label wrapping */
304
- white-space: ${({labelWrap:e})=>e===!0?"wrap":"nowrap"};
304
+ white-space: ${({$labelWrap:e})=>e===!0?"wrap":"nowrap"};
305
305
 
306
306
  /* apply various button variant styles */
307
- ${({variant:e})=>{if(e==="primary"||e==="dangerous")return dL;if(e==="secondary")return mL;if(e==="tertiary")return hL}}
307
+ ${({$variant:e})=>{if(e==="primary"||e==="dangerous")return dL;if(e==="secondary")return mL;if(e==="tertiary")return hL}}
308
308
 
309
309
  /* primarily used for documentation/debugging */
310
- ${({variant:e,forceState:t})=>{if(e==="primary"||e==="dangerous"){if(t==="hover")return Ix;if(t==="active")return kx;if(t==="focus")return Nx}if(e==="secondary"){if(t==="hover")return Vx;if(t==="active")return Lx;if(t==="focus")return $x}if(e==="tertiary"){if(t==="hover")return zx;if(t==="active")return Gx;if(t==="focus")return Hx}}}
310
+ ${({$variant:e,$forceState:t})=>{if(e==="primary"||e==="dangerous"){if(t==="hover")return Ix;if(t==="active")return kx;if(t==="focus")return Nx}if(e==="secondary"){if(t==="hover")return Vx;if(t==="active")return Lx;if(t==="focus")return $x}if(e==="tertiary"){if(t==="hover")return zx;if(t==="active")return Gx;if(t==="focus")return Hx}}}
311
311
 
312
- ${({size:e})=>{if(e==="lg")return vL;if(e==="md")return yL;if(e==="sm")return bL}}
312
+ ${({$size:e})=>{if(e==="lg")return vL;if(e==="md")return yL;if(e==="sm")return bL}}
313
313
 
314
- ${({fullWidth:e})=>{if(e)return CL}}
314
+ ${({$fullWidth:e})=>{if(e)return CL}}
315
315
  `,jx=Xe.default.button`
316
- ${({noStyle:e})=>e?Uo:Vg}
317
- `;i();var Up=(e,t,r)=>Ce(e)?e:t==="primary"?r.brandBlue500:t==="secondary"||t==="tertiary"?r.grey900:t==="dangerous"?r.red600:r.brandBlue500;var Lg=require("react/jsx-runtime"),rt=(0,Wx.forwardRef)(({children:e,disabled:t=!1,forceState:r,colorOverride:n,fullWidth:o=!1,icon:a,iconName:s,iconPosition:l="start",label:u,labelWrap:c=!1,isLoading:p=!1,noStyle:d=!1,onClick:h,size:g="lg",square:v=!1,textAlign:m="center",type:y="button",variant:b="primary",...x},w)=>{let D=()=>p||t,E=A=>{if(D()){A.preventDefault();return}F(h)&&h(A)},S=Up(n,b,Me()),P=()=>F(e)?e:F(u)?u:null;return(0,Lg.jsx)(jx,{ref:w,"aria-disabled":D()||void 0,buttonColor:S,disabled:!1,forceState:r,fullWidth:o,iconPosition:l,isLoading:p,labelWrap:c,noStyle:d,onClick:E,size:g,square:v,textAlign:m,type:y,variant:b,...x,children:(0,Lg.jsx)(_p,{icon:a,iconName:s,iconPosition:l,isLoading:p,size:g,textAlign:m,children:P()})})});rt.displayName="Button_VHS";i();i();var $g=()=>typeof window>"u"||typeof document>"u";var Ko=require("react/jsx-runtime"),xL=["success","warning","error","dangerous"],Gg="success",Hg="Dismiss",jg=3e3,wL=(e,t,r)=>{if(Ce(e))return e;if(!xL.includes(t))throw new Error(`Variant "${t}" not supported, please update variant prop in Toast component.`);return t==="dangerous"||t==="error"?r.error600:t==="warning"?r.warning500:r.brandBlue500},SL=zg.default.div`
316
+ ${({$noStyle:e})=>e?Uo:Vg}
317
+ `;i();var Up=(e,t,r)=>Ce(e)?e:t==="primary"?r.brandBlue500:t==="secondary"||t==="tertiary"?r.grey900:t==="dangerous"?r.red600:r.brandBlue500;var Lg=require("react/jsx-runtime"),rt=(0,Wx.forwardRef)(({children:e,disabled:t=!1,forceState:r,colorOverride:n,fullWidth:o=!1,icon:a,iconName:s,iconPosition:l="start",label:u,labelWrap:c=!1,isLoading:p=!1,noStyle:d=!1,onClick:h,size:g="lg",square:v=!1,textAlign:m="center",type:y="button",variant:b="primary",...x},w)=>{let D=()=>p||t,E=A=>{if(D()){A.preventDefault();return}F(h)&&h(A)},S=Up(n,b,Me()),P=()=>F(e)?e:F(u)?u:null;return(0,Lg.jsx)(jx,{ref:w,$buttonColor:S,$forceState:r,$fullWidth:o,$iconPosition:l,$isLoading:p,$labelWrap:c,$noStyle:d,$size:g,$square:v,$textAlign:m,$variant:b,"aria-disabled":D()||void 0,disabled:!1,onClick:E,type:y,...x,children:(0,Lg.jsx)(_p,{icon:a,iconName:s,iconPosition:l,isLoading:p,size:g,textAlign:m,children:P()})})});rt.displayName="Button_VHS";i();i();var $g=()=>typeof window>"u"||typeof document>"u";var Ko=require("react/jsx-runtime"),xL=["success","warning","error","dangerous"],Gg="success",Hg="Dismiss",jg=3e3,wL=(e,t,r)=>{if(Ce(e))return e;if(!xL.includes(t))throw new Error(`Variant "${t}" not supported, please update variant prop in Toast component.`);return t==="dangerous"||t==="error"?r.error600:t==="warning"?r.warning500:r.brandBlue500},SL=zg.default.div`
318
318
  align-items: center;
319
319
  background: white;
320
320
  border-left-color: ${({accentColor:e})=>e};
@@ -1231,14 +1231,14 @@
1231
1231
  }
1232
1232
  }
1233
1233
  `,y_=e=>{switch(e){case"center":return"center";case"top":case void 0:default:return"flex-start"}},b_=qs.default.div`
1234
- align-items: ${({verticalAlign:e})=>y_(e)};
1234
+ align-items: ${({$verticalAlign:e})=>y_(e)};
1235
1235
  display: flex;
1236
1236
  ${v_}
1237
1237
 
1238
1238
  ${Be.smAndUp} {
1239
1239
  margin-left: ${({theme:e})=>e.spacing.space05};
1240
1240
  }
1241
- `,fE=({verticalAlign:e,children:t})=>(0,Jd.jsx)(b_,{verticalAlign:e,children:t});var Hu=require("react/jsx-runtime"),C_=Zd.default.div`
1241
+ `,fE=({verticalAlign:e,children:t})=>(0,Jd.jsx)(b_,{$verticalAlign:e,children:t});var Hu=require("react/jsx-runtime"),C_=Zd.default.div`
1242
1242
  background: ${({theme:e,backgroundColor:t})=>t??e.color.grey200};
1243
1243
  border-radius: 8px;
1244
1244
  display: flex;
@@ -1329,27 +1329,27 @@
1329
1329
  cursor: pointer;
1330
1330
  font-weight: 400;
1331
1331
  text-decoration: underline;
1332
- ${({underlineOnHover:e})=>e&&Qd}
1333
- ${({disabledLink:e})=>e&&I_}
1334
- ${({variant:e})=>e==="primary"?vE:e==="secondary"?O_:e==="dangerous"?M_:vE}
1335
- ${({variant:e,forceState:t})=>{switch(t){case"hover":case"focus":if(e==="primary")return bE;if(e==="secondary")return CE;if(e==="dangerous")return xE;break;case"active":case void 0:default:return}}}
1332
+ ${({$underlineOnHover:e})=>e&&Qd}
1333
+ ${({$disabledLink:e})=>e&&I_}
1334
+ ${({$variant:e})=>e==="primary"?vE:e==="secondary"?O_:e==="dangerous"?M_:vE}
1335
+ ${({$variant:e,$forceState:t})=>{switch(t){case"hover":case"focus":if(e==="primary")return bE;if(e==="secondary")return CE;if(e==="dangerous")return xE;break;case"active":case void 0:default:return}}}
1336
1336
  `,wE=Zr.css`
1337
1337
  color: inherit;
1338
1338
  cursor: pointer;
1339
1339
  text-decoration: underline;
1340
- ${({underlineOnHover:e})=>e&&Qd}
1340
+ ${({$underlineOnHover:e})=>e&&Qd}
1341
1341
  `;var t1=require("react/jsx-runtime"),k_=B3.default.a`
1342
1342
  ${e1}
1343
1343
  `,N_=B3.default.a`
1344
1344
  ${wE}
1345
- `,V_=(e,t)=>{let r=Object.keys(t);if(!r.length)return e;let n=new URL(e);return r.forEach(o=>{n.searchParams.set(o,t[o])}),n.toString()},L_=(e,t,r,n)=>{if(n)return null;let o=e;return t==="phone"&&(o=`tel:${e}`),t==="email"&&(o=`mailto:${e}`),r!==void 0&&(o=V_(o,r)),o},$_=({RenderedLink:e,children:t,...r})=>(0,t1.jsx)(e,{...r,children:t}),ju=(0,SE.forwardRef)(({href:e,beforeAction:t,children:r,disabled:n=!1,forceState:o,nested:a=!1,params:s,type:l="default",unstyled:u=!1,variant:c="primary",underlineOnHover:p=!1,...d},h)=>{let g=L_(e,l,s,n),v=l==="external"?{target:"_blank",rel:"noopener noreferrer"}:null,m=async(w,D=null)=>{if(n)w.preventDefault();else if(t){w.preventDefault();try{await t()}catch(E){console.error(E)}finally{D!==null?D():window.location.assign(g)}}},y=u?N_:k_,{Link:b=$_}=xb()||{},x=(0,t1.jsx)(b,{ref:h,disabledLink:n,forceState:o,href:g,onClick:m,RenderedLink:y,underlineOnHover:p,unstyled:u,variant:c,...v,...d,children:r});return a?(0,t1.jsx)("object",{"data-testid":"link-object",type:"hacky/hack",children:x}):x});ju.displayName="Link_VHS";var O3=require("react/jsx-runtime"),z_=(0,EE.default)(ju)`
1345
+ `,V_=(e,t)=>{let r=Object.keys(t);if(!r.length)return e;let n=new URL(e);return r.forEach(o=>{n.searchParams.set(o,t[o])}),n.toString()},L_=(e,t,r,n)=>{if(n)return null;let o=e;return t==="phone"&&(o=`tel:${e}`),t==="email"&&(o=`mailto:${e}`),r!==void 0&&(o=V_(o,r)),o},$_=({RenderedLink:e,children:t,...r})=>(0,t1.jsx)(e,{...r,children:t}),ju=(0,SE.forwardRef)(({href:e,beforeAction:t,children:r,disabled:n=!1,forceState:o,nested:a=!1,params:s,type:l="default",unstyled:u=!1,variant:c="primary",underlineOnHover:p=!1,...d},h)=>{let g=L_(e,l,s,n),v=l==="external"?{target:"_blank",rel:"noopener noreferrer"}:null,m=async(w,D=null)=>{if(n)w.preventDefault();else if(t){w.preventDefault();try{await t()}catch(E){console.error(E)}finally{D!==null?D():window.location.assign(g)}}},y=u?N_:k_,{Link:b=$_}=xb()||{},x=(0,t1.jsx)(b,{ref:h,$disabledLink:n,$forceState:o,$underlineOnHover:p,$unstyled:u,$variant:c,href:g,onClick:m,RenderedLink:y,...v,...d,children:r});return a?(0,t1.jsx)("object",{"data-testid":"link-object",type:"hacky/hack",children:x}):x});ju.displayName="Link_VHS";var O3=require("react/jsx-runtime"),z_=(0,EE.default)(ju)`
1346
1346
  ${Vg};
1347
1347
 
1348
1348
  /* Links are disabled by removing their href */
1349
1349
  &:not([href]) {
1350
1350
  ${Ng};
1351
1351
  }
1352
- `,M3=(0,DE.forwardRef)(({beforeAction:e,children:t,colorOverride:r,disabled:n=!1,forceState:o,fullWidth:a=!1,href:s,icon:l,iconName:u,iconPosition:c="start",label:p,labelWrap:d=!1,params:h,size:g="lg",square:v=!1,textAlign:m="center",type:y="default",variant:b="primary",...x},w)=>{let D=Up(r,b,Me());return(0,O3.jsx)(z_,{ref:w,beforeAction:e,buttonColor:D,disabled:n,forceState:o,fullWidth:a,hasIcon:l,href:s,iconPosition:c,labelWrap:d,params:h,size:g,square:v,type:y,unstyled:!0,variant:b,...x,children:(0,O3.jsx)(_p,{icon:l,iconName:u,iconPosition:c,isLoading:!1,size:g,textAlign:m,children:F(t)?t:F(p)?p:null})})});M3.displayName="ButtonLink_VHS";i();i();var Ys=require("react");i();var Or=k(require("styled-components")),r1=Or.default.input`
1352
+ `,M3=(0,DE.forwardRef)(({beforeAction:e,children:t,colorOverride:r,disabled:n=!1,forceState:o,fullWidth:a=!1,href:s,icon:l,iconName:u,iconPosition:c="start",label:p,labelWrap:d=!1,params:h,size:g="lg",square:v=!1,textAlign:m="center",type:y="default",variant:b="primary",...x},w)=>{let D=Up(r,b,Me());return(0,O3.jsx)(z_,{ref:w,$buttonColor:D,$forceState:o,$fullWidth:a,$icon:l,$iconPosition:c,$isLoading:!1,$labelWrap:d,$size:g,$square:v,$textAlign:m,$unstyled:!0,$variant:b,beforeAction:e,disabled:n,href:s,params:h,size:g,type:y,...x,children:(0,O3.jsx)(_p,{icon:l,iconName:u,iconPosition:c,isLoading:!1,size:g,textAlign:m,children:F(t)?t:F(p)?p:null})})});M3.displayName="ButtonLink_VHS";i();i();var Ys=require("react");i();var Or=k(require("styled-components")),r1=Or.default.input`
1353
1353
  align-self: flex-start;
1354
1354
  border-radius: 3px;
1355
1355
  box-shadow: ${({type:e})=>e==="checkbox"?"inset 0 0.5px 1.5px 0 rgba(0, 0, 0, 0.38)":"none"};
@@ -1712,7 +1712,7 @@
1712
1712
  ${({as:e})=>e!=="textarea"&&Sr};
1713
1713
  ${({$clickToCopy:e})=>e&&PU};
1714
1714
  ${({disabled:e})=>e&&EU};
1715
- ${({forceState:e})=>e==="focus"&&rP};
1715
+ ${({$forceState:e})=>e==="focus"&&rP};
1716
1716
  ${({$hasError:e})=>e&&DU};
1717
1717
  ${({readOnly:e})=>e&&nP};
1718
1718
  `;i();var g1=require("react"),li=k(require("styled-components"));var ea=require("react/jsx-runtime"),RU=li.css`
@@ -1763,7 +1763,7 @@
1763
1763
  }
1764
1764
 
1765
1765
  width: ${({$fullWidth:e})=>e?"100%":"auto"};
1766
- `,HU=(e,t)=>F(e)?e:t==="search"?(0,el.jsx)(Ae,{size:"md",type:"search"}):null,ta=(0,tl.forwardRef)(({clickToCopy:e=!1,disabled:t=!1,forceState:r,fullWidth:n=!0,hasError:o=!1,icon:a,iconPosition:s="end",innerRef:l,monospace:u=!1,onBlur:c,onChange:p,onClickToCopy:d,onFocus:h,onFocusToSelect:g,placeholder:v,readOnly:m=!1,required:y=!1,type:b="text",value:x,...w},D)=>{let E=(0,tl.useRef)(null),S=zs([l,D,E]),P=b==="multiline"?"textarea":"input",A=m||e,B=F(a)||e||zU.has(b);(0,tl.useEffect)(()=>{b==="timePosition"&&F(E.current)&&(E.current.value=Y3(x??0))},[b,x]);let V={"aria-invalid":o?"true":"false",as:P,$clickToCopy:e,disabled:t,forceState:r,$hasError:o,$hasIcon:B,$iconPosition:b==="search"?"start":s,$monospace:u,onBlur:j=>{b==="timePosition"&&F(E.current)&&(E.current.value=Y3(j.target.value)),c&&c(j)},onChange:p,onFocus:j=>{g&&(j.target.select(),g(j)),h&&h(j)},placeholder:v,readOnly:A,ref:S,required:y,type:b},L={value:Lt(x),...V,...w},z={value:x,...V,...w};return e?(0,el.jsx)(oP,{inputComponent:X3,inputProps:L,onClick:d}):(0,el.jsxs)(GU,{$disabled:t,$fullWidth:n,$iconPosition:z.$iconPosition,children:[(0,el.jsx)(X3,{...z}),HU(a,b)]})});ta.displayName="Input_VHS";var J3=require("react/jsx-runtime"),jU=new Set(["text","multiline","url","email"]),y1=({disabled:e,field:{name:t,value:r,onChange:n,onBlur:o},form:{errors:a,setFieldValue:s},label:l,labelDescription:u,labelProps:c,onChangeCustom:p,placeholder:d,type:h,onFocusToSelectValue:g,...v})=>{let m=x=>{n(x),p&&p(x.target.value)},y=x=>{if(o(x),jU.has(h)){let w=(x.target.value||"").trim();s(t,w)}},b=r===g?()=>{}:void 0;return(0,J3.jsx)(or,{disabled:e,error:te(a)?a[t]:void 0,label:l,labelDescription:u,labelProps:c,name:t,children:(0,J3.jsx)(ta,{"data-testid":`input-${t}`,disabled:e,name:t,onBlur:y,onChange:m,onFocusToSelect:b,placeholder:d,type:h,value:r,...v})})};y1.displayName="FormConnectorInput_VHS";i();i();var sP=require("react");i();i();var aP=k(require("styled-components"));i();i();var rl=require("react");var co=require("react/jsx-runtime"),Qu=(0,rl.forwardRef)(({checked:e,direction:t="column",disabled:r=!1,forceState:n,hasError:o=!1,id:a,label:s,labelDescription:l,name:u,onChange:c,value:p="false",...d},h)=>{let[g,v]=(0,rl.useState)(!1);return(0,co.jsxs)(i1,{ref:h,$direction:t,$disabled:r,$forceState:n,$hasError:o,$isFocused:g,children:[(0,co.jsx)(r1,{"aria-checked":e,checked:e,"data-testid":"radio-option-wrapper",disabled:r,id:a,name:u,onBlur:()=>v(!1),onChange:c,onFocus:()=>v(!0),role:"radio",type:"radio",value:p,...d}),(0,co.jsxs)(n1,{children:[(0,co.jsx)(co.Fragment,{children:s}),F(l)||(0,rl.isValidElement)(l)?(0,co.jsx)(o1,{"data-testid":"radio-option-sub-label",children:l}):null]})]})});Qu.displayName="Radio_VHS";var b1=require("react/jsx-runtime"),WU=aP.default.div`
1766
+ `,HU=(e,t)=>F(e)?e:t==="search"?(0,el.jsx)(Ae,{size:"md",type:"search"}):null,ta=(0,tl.forwardRef)(({clickToCopy:e=!1,disabled:t=!1,forceState:r,fullWidth:n=!0,hasError:o=!1,icon:a,iconPosition:s="end",innerRef:l,monospace:u=!1,onBlur:c,onChange:p,onClickToCopy:d,onFocus:h,onFocusToSelect:g,placeholder:v,readOnly:m=!1,required:y=!1,type:b="text",value:x,...w},D)=>{let E=(0,tl.useRef)(null),S=zs([l,D,E]),P=b==="multiline"?"textarea":"input",A=m||e,B=F(a)||e||zU.has(b);(0,tl.useEffect)(()=>{b==="timePosition"&&F(E.current)&&(E.current.value=Y3(x??0))},[b,x]);let V={"aria-invalid":o?"true":"false",as:P,$clickToCopy:e,disabled:t,$forceState:r,$hasError:o,$hasIcon:B,$iconPosition:b==="search"?"start":s,$monospace:u,onBlur:j=>{b==="timePosition"&&F(E.current)&&(E.current.value=Y3(j.target.value)),c&&c(j)},onChange:p,onFocus:j=>{g&&(j.target.select(),g(j)),h&&h(j)},placeholder:v,readOnly:A,ref:S,required:y,type:b},L={value:Lt(x),...V,...w},z={value:x,...V,...w};return e?(0,el.jsx)(oP,{inputComponent:X3,inputProps:L,onClick:d}):(0,el.jsxs)(GU,{$disabled:t,$fullWidth:n,$iconPosition:z.$iconPosition,children:[(0,el.jsx)(X3,{...z}),HU(a,b)]})});ta.displayName="Input_VHS";var J3=require("react/jsx-runtime"),jU=new Set(["text","multiline","url","email"]),y1=({disabled:e,field:{name:t,value:r,onChange:n,onBlur:o},form:{errors:a,setFieldValue:s},label:l,labelDescription:u,labelProps:c,onChangeCustom:p,placeholder:d,type:h,onFocusToSelectValue:g,...v})=>{let m=x=>{n(x),p&&p(x.target.value)},y=x=>{if(o(x),jU.has(h)){let w=(x.target.value||"").trim();s(t,w)}},b=r===g?()=>{}:void 0;return(0,J3.jsx)(or,{disabled:e,error:te(a)?a[t]:void 0,label:l,labelDescription:u,labelProps:c,name:t,children:(0,J3.jsx)(ta,{"data-testid":`input-${t}`,disabled:e,name:t,onBlur:y,onChange:m,onFocusToSelect:b,placeholder:d,type:h,value:r,...v})})};y1.displayName="FormConnectorInput_VHS";i();i();var sP=require("react");i();i();var aP=k(require("styled-components"));i();i();var rl=require("react");var co=require("react/jsx-runtime"),Qu=(0,rl.forwardRef)(({checked:e,direction:t="column",disabled:r=!1,forceState:n,hasError:o=!1,id:a,label:s,labelDescription:l,name:u,onChange:c,value:p="false",...d},h)=>{let[g,v]=(0,rl.useState)(!1);return(0,co.jsxs)(i1,{ref:h,$direction:t,$disabled:r,$forceState:n,$hasError:o,$isFocused:g,children:[(0,co.jsx)(r1,{"aria-checked":e,checked:e,"data-testid":"radio-option-wrapper",disabled:r,id:a,name:u,onBlur:()=>v(!1),onChange:c,onFocus:()=>v(!0),role:"radio",type:"radio",value:p,...d}),(0,co.jsxs)(n1,{children:[(0,co.jsx)(co.Fragment,{children:s}),F(l)||(0,rl.isValidElement)(l)?(0,co.jsx)(o1,{"data-testid":"radio-option-sub-label",children:l}):null]})]})});Qu.displayName="Radio_VHS";var b1=require("react/jsx-runtime"),WU=aP.default.div`
1767
1767
  display: flex;
1768
1768
  flex-direction: ${({direction:e})=>e==="row"?"row":"column"};
1769
1769
  gap: ${({direction:e,theme:t})=>e==="row"?t.spacing.space04:t.spacing.space01};
@@ -1993,12 +1993,12 @@
1993
1993
  display: flex;
1994
1994
  gap: ${({theme:e})=>e.spacing.space01};
1995
1995
  `,pQ=e=>{switch(e){case"ArrowDown":return"\u2193";case"ArrowLeft":return"\u2190";case"ArrowRight":return"\u2192";case"ArrowUp":return"\u2191";case"Alt":return"Alt";case"Cmd":case"Meta":return/Mac|iPhone|iPad/.test(window.navigator.userAgent)?"\u2318":window.navigator.userAgent.includes("Win")?"\u229E":"^";case"Ctrl":return"Ctrl";case"Option":return"\u2325";case"Shift":return"\u21E7";case"Enter":return"\u21B5";case"Space":return"Space";case"Tab":return"Tab";case"Backspace":return"Del";case"Esc":return"Esc";default:return e.toUpperCase()}},N4=({label:e,keyboardKeys:t,fullWidth:r=!1,componentStyle:n="dark",...o})=>{let a=kn(t)?t:[t];return(0,yl.jsxs)(lQ,{$componentStyle:n,$fullWidth:r,...o,children:[F(e)&&(0,yl.jsx)(cQ,{$componentStyle:n,children:e}),(0,yl.jsx)(fQ,{children:a.map((s,l)=>(0,yl.jsx)(uQ,{$componentStyle:n,children:pQ(s)},l))})]})};N4.displayName="KeyboardShortcut_VHS";i();i();i();var qR=require("react"),XR=k(require("styled-components"));var YR=require("react/jsx-runtime"),dQ=e=>e.key==="Enter"||e.key===" "||e.key==="Spacebar",mQ=XR.default.span`
1996
- ${({noStyle:e})=>e?void 0:e1};
1996
+ ${({$noStyle:e})=>e?void 0:e1};
1997
1997
 
1998
1998
  &[tabindex] {
1999
- ${({underlineOnHover:e})=>e?Qd:void 0};
1999
+ ${({$underlineOnHover:e})=>e?Qd:void 0};
2000
2000
  }
2001
- `,V4=(0,qR.forwardRef)(({children:e,disabled:t=!1,forceState:r,label:n,onClick:o,noStyle:a=!1,underlineOnHover:s=!1,variant:l="primary",...u},c)=>(0,YR.jsx)(mQ,{ref:c,"aria-disabled":t,disabledLink:t,forceState:r,noStyle:a,onClick:v=>{fe(o)||t||o(v)},onKeyPress:v=>{fe(o)||dQ(v)&&(v.preventDefault(),o(v))},role:"button",tabIndex:t?void 0:0,underlineOnHover:s,variant:l,...u,children:F(e)?e:F(n)?n:null}));V4.displayName="LinkButton_VHS";i();i();var Ci=k(require("styled-components"));i();var JR=k(require("styled-components"));var ZR=require("react/jsx-runtime"),hQ=JR.default.li`
2001
+ `,V4=(0,qR.forwardRef)(({children:e,disabled:t=!1,forceState:r,label:n,onClick:o,noStyle:a=!1,underlineOnHover:s=!1,variant:l="primary",...u},c)=>(0,YR.jsx)(mQ,{ref:c,$disabledLink:t,$forceState:r,$noStyle:a,$underlineOnHover:s,$variant:l,"aria-disabled":t,onClick:v=>{fe(o)||t||o(v)},onKeyPress:v=>{fe(o)||dQ(v)&&(v.preventDefault(),o(v))},role:"button",tabIndex:t?void 0:0,...u,children:F(e)?e:F(n)?n:null}));V4.displayName="LinkButton_VHS";i();i();var Ci=k(require("styled-components"));i();var JR=k(require("styled-components"));var ZR=require("react/jsx-runtime"),hQ=JR.default.li`
2002
2002
  margin-bottom: ${({theme:e})=>e.spacing.space02};
2003
2003
  `,bi=({children:e})=>fe(e)?null:(0,ZR.jsx)(hQ,{children:e});bi.displayName="ListItem_VHS";var Dc=require("react/jsx-runtime"),am=Ci.css`
2004
2004
  overflow: hidden;
@@ -2083,7 +2083,7 @@
2083
2083
  flex-direction: row;
2084
2084
  position: relative;
2085
2085
  `,wQ=sm.default.div`
2086
- align-self: ${({align:e})=>e==="middle"?"center":null};
2086
+ align-self: ${({$align:e})=>e==="middle"?"center":null};
2087
2087
  flex-grow: 1;
2088
2088
  flex-shrink: 1;
2089
2089
  min-width: 0;
@@ -2093,19 +2093,19 @@
2093
2093
  margin-top: 1rem;
2094
2094
  }
2095
2095
  `,SQ=sm.default.div`
2096
- align-self: ${({align:e})=>xQ(e)};
2096
+ align-self: ${({$align:e})=>xQ(e)};
2097
2097
  flex-grow: 0;
2098
2098
  flex-shrink: 0;
2099
- margin-left: ${({placement:e,gap:t})=>e==="left"?0:t};
2100
- margin-right: ${({placement:e,gap:t})=>e==="left"?t:0};
2101
- order: ${({placement:e})=>e==="right"?2:null};
2099
+ margin-left: ${({$placement:e,$gap:t})=>e==="left"?0:t};
2100
+ margin-right: ${({$placement:e,$gap:t})=>e==="left"?t:0};
2101
+ order: ${({$placement:e})=>e==="right"?2:null};
2102
2102
 
2103
2103
  > img {
2104
2104
  /* this is necessary to avoid a small amount of extra whitespace in the parent container
2105
2105
  which in turn throws off perfect centering */
2106
2106
  vertical-align: bottom;
2107
2107
  }
2108
- `,L4=({placement:e="left",align:t="top",gap:r="1.5rem",item:n,children:o,...a})=>(0,Ec.jsxs)(tF,{...a,children:[F(n)?(0,Ec.jsx)(SQ,{align:t,gap:r,placement:e,children:n}):null,(0,Ec.jsx)(wQ,{align:t,children:o})]});L4.displayName="MediaObject_VHS";i();i();var dt=k(require("react"),1);i();function xe(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e?.(o),r===!1||!o.defaultPrevented)return t?.(o)}}i();var nF=k(require("react"),1);function rF(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Pc(...e){return t=>{let r=!1,n=e.map(o=>{let a=rF(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){let a=n[o];typeof a=="function"?a():rF(e[o],null)}}}}function Je(...e){return nF.useCallback(Pc(...e),e)}i();var vo=k(require("react"),1),oF=require("react/jsx-runtime");function Rn(e,t=[]){let r=[];function n(a,s){let l=vo.createContext(s),u=r.length;r=[...r,s];let c=d=>{let{scope:h,children:g,...v}=d,m=h?.[e]?.[u]||l,y=vo.useMemo(()=>v,Object.values(v));return(0,oF.jsx)(m.Provider,{value:y,children:g})};c.displayName=a+"Provider";function p(d,h){let g=h?.[e]?.[u]||l,v=vo.useContext(g);if(v)return v;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${a}\``)}return[c,p]}let o=()=>{let a=r.map(s=>vo.createContext(s));return function(l){let u=l?.[e]||a;return vo.useMemo(()=>({[`__scope${e}`]:{...l,[e]:u}}),[l,u])}};return o.scopeName=e,[n,DQ(o,...t)]}function DQ(...e){let t=e[0];if(e.length===1)return t;let r=()=>{let n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){let s=n.reduce((l,{useScope:u,scopeName:c})=>{let d=u(a)[`__scope${c}`];return{...l,...d}},{});return vo.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}i();var Nr=k(require("react"),1);i();var iF=k(require("react"),1),ur=globalThis?.document?iF.useLayoutEffect:()=>{};var lm=k(require("react"),1);var EQ=Nr[" useInsertionEffect ".trim().toString()]||ur;function Tc({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){let[o,a,s]=PQ({defaultProp:t,onChange:r}),l=e!==void 0,u=l?e:o;{let p=Nr.useRef(e!==void 0);Nr.useEffect(()=>{let d=p.current;d!==l&&console.warn(`${n} is changing from ${d?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),p.current=l},[l,n])}let c=Nr.useCallback(p=>{if(l){let d=TQ(p)?p(e):p;d!==e&&s.current?.(d)}else a(p)},[l,e,a,s]);return[u,c]}function PQ({defaultProp:e,onChange:t}){let[r,n]=Nr.useState(e),o=Nr.useRef(r),a=Nr.useRef(t);return EQ(()=>{a.current=t},[t]),Nr.useEffect(()=>{o.current!==r&&(a.current?.(r),o.current=r)},[r,o]),[r,n,a]}function TQ(e){return typeof e=="function"}var cJe=Symbol("RADIX:SYNC_STATE");i();var aF=k(require("react"),1),sF=k(require("react-dom"),1);i();var st=k(require("react"),1);var um=require("react/jsx-runtime");function pa(e){let t=AQ(e),r=st.forwardRef((n,o)=>{let{children:a,...s}=n,l=st.Children.toArray(a),u=l.find(FQ);if(u){let c=u.props.children,p=l.map(d=>d===u?st.Children.count(c)>1?st.Children.only(null):st.isValidElement(c)?c.props.children:null:d);return(0,um.jsx)(t,{...s,ref:o,children:st.isValidElement(c)?st.cloneElement(c,void 0,p):null})}return(0,um.jsx)(t,{...s,ref:o,children:a})});return r.displayName=`${e}.Slot`,r}function AQ(e){let t=st.forwardRef((r,n)=>{let{children:o,...a}=r,s=st.isValidElement(o)?OQ(o):void 0,l=Je(s,n);if(st.isValidElement(o)){let u=BQ(a,o.props);return o.type!==st.Fragment&&(u.ref=l),st.cloneElement(o,u)}return st.Children.count(o)>1?st.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var RQ=Symbol("radix.slottable");function FQ(e){return st.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===RQ}function BQ(e,t){let r={...t};for(let n in t){let o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...l)=>{let u=a(...l);return o(...l),u}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}function OQ(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var lF=require("react/jsx-runtime"),MQ=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ze=MQ.reduce((e,t)=>{let r=pa(`Primitive.${t}`),n=aF.forwardRef((o,a)=>{let{asChild:s,...l}=o,u=s?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),(0,lF.jsx)(u,{...l,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function cm(e,t){e&&sF.flushSync(()=>e.dispatchEvent(t))}i();var se=k(require("react"),1);i();var xi=k(require("react"),1);var fm=require("react/jsx-runtime"),IQ=k(require("react"),1);var kQ=require("react/jsx-runtime");function pm(e){let t=e+"CollectionProvider",[r,n]=Rn(t),[o,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),s=m=>{let{scope:y,children:b}=m,x=xi.default.useRef(null),w=xi.default.useRef(new Map).current;return(0,fm.jsx)(o,{scope:y,itemMap:w,collectionRef:x,children:b})};s.displayName=t;let l=e+"CollectionSlot",u=pa(l),c=xi.default.forwardRef((m,y)=>{let{scope:b,children:x}=m,w=a(l,b),D=Je(y,w.collectionRef);return(0,fm.jsx)(u,{ref:D,children:x})});c.displayName=l;let p=e+"CollectionItemSlot",d="data-radix-collection-item",h=pa(p),g=xi.default.forwardRef((m,y)=>{let{scope:b,children:x,...w}=m,D=xi.default.useRef(null),E=Je(y,D),S=a(p,b);return xi.default.useEffect(()=>(S.itemMap.set(D,{ref:D,...w}),()=>void S.itemMap.delete(D))),(0,fm.jsx)(h,{[d]:"",ref:E,children:x})});g.displayName=p;function v(m){let y=a(e+"CollectionConsumer",m);return xi.default.useCallback(()=>{let x=y.collectionRef.current;if(!x)return[];let w=Array.from(x.querySelectorAll(`[${d}]`));return Array.from(y.itemMap.values()).sort((S,P)=>w.indexOf(S.ref.current)-w.indexOf(P.ref.current))},[y.collectionRef,y.itemMap])}return[{Provider:s,Slot:c,ItemSlot:g},v,n]}i();var dm=k(require("react"),1),NQ=require("react/jsx-runtime"),VQ=dm.createContext(void 0);function mm(e){let t=dm.useContext(VQ);return e||t||"ltr"}i();var Qe=k(require("react"),1);i();var bl=k(require("react"),1);function It(e){let t=bl.useRef(e);return bl.useEffect(()=>{t.current=e}),bl.useMemo(()=>(...r)=>t.current?.(...r),[])}i();var uF=k(require("react"),1);function cF(e,t=globalThis?.document){let r=It(e);uF.useEffect(()=>{let n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var z4=require("react/jsx-runtime"),LQ="DismissableLayer",$4="dismissableLayer.update",$Q="dismissableLayer.pointerDownOutside",zQ="dismissableLayer.focusOutside",fF,dF=Qe.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),G4=Qe.forwardRef((e,t)=>{let{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,onDismiss:l,...u}=e,c=Qe.useContext(dF),[p,d]=Qe.useState(null),h=p?.ownerDocument??globalThis?.document,[,g]=Qe.useState({}),v=Je(t,P=>d(P)),m=Array.from(c.layers),[y]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),b=m.indexOf(y),x=p?m.indexOf(p):-1,w=c.layersWithOutsidePointerEventsDisabled.size>0,D=x>=b,E=jQ(P=>{let A=P.target,B=[...c.branches].some(I=>I.contains(A));!D||B||(o?.(P),s?.(P),P.defaultPrevented||l?.())},h),S=WQ(P=>{let A=P.target;[...c.branches].some(I=>I.contains(A))||(a?.(P),s?.(P),P.defaultPrevented||l?.())},h);return cF(P=>{x===c.layers.size-1&&(n?.(P),!P.defaultPrevented&&l&&(P.preventDefault(),l()))},h),Qe.useEffect(()=>{if(p)return r&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(fF=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(p)),c.layers.add(p),pF(),()=>{r&&c.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=fF)}},[p,h,r,c]),Qe.useEffect(()=>()=>{p&&(c.layers.delete(p),c.layersWithOutsidePointerEventsDisabled.delete(p),pF())},[p,c]),Qe.useEffect(()=>{let P=()=>g({});return document.addEventListener($4,P),()=>document.removeEventListener($4,P)},[]),(0,z4.jsx)(Ze.div,{...u,ref:v,style:{pointerEvents:w?D?"auto":"none":void 0,...e.style},onFocusCapture:xe(e.onFocusCapture,S.onFocusCapture),onBlurCapture:xe(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:xe(e.onPointerDownCapture,E.onPointerDownCapture)})});G4.displayName=LQ;var GQ="DismissableLayerBranch",HQ=Qe.forwardRef((e,t)=>{let r=Qe.useContext(dF),n=Qe.useRef(null),o=Je(t,n);return Qe.useEffect(()=>{let a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),(0,z4.jsx)(Ze.div,{...e,ref:o})});HQ.displayName=GQ;function jQ(e,t=globalThis?.document){let r=It(e),n=Qe.useRef(!1),o=Qe.useRef(()=>{});return Qe.useEffect(()=>{let a=l=>{if(l.target&&!n.current){let c=function(){mF($Q,r,p,{discrete:!0})};var u=c;let p={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);n.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function WQ(e,t=globalThis?.document){let r=It(e),n=Qe.useRef(!1);return Qe.useEffect(()=>{let o=a=>{a.target&&!n.current&&mF(zQ,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function pF(){let e=new CustomEvent($4);document.dispatchEvent(e)}function mF(e,t,r,{discrete:n}){let o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?cm(o,a):o.dispatchEvent(a)}i();var gF=k(require("react"),1),H4=0;function vF(){gF.useEffect(()=>{let e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??hF()),document.body.insertAdjacentElement("beforeend",e[1]??hF()),H4++,()=>{H4===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),H4--}},[])}function hF(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}i();var Vr=k(require("react"),1);var wF=require("react/jsx-runtime"),j4="focusScope.autoFocusOnMount",W4="focusScope.autoFocusOnUnmount",yF={bubbles:!1,cancelable:!0},_Q="FocusScope",_4=Vr.forwardRef((e,t)=>{let{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...s}=e,[l,u]=Vr.useState(null),c=It(o),p=It(a),d=Vr.useRef(null),h=Je(t,m=>u(m)),g=Vr.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;Vr.useEffect(()=>{if(n){let x=function(S){if(g.paused||!l)return;let P=S.target;l.contains(P)?d.current=P:wi(d.current,{select:!0})},w=function(S){if(g.paused||!l)return;let P=S.relatedTarget;P!==null&&(l.contains(P)||wi(d.current,{select:!0}))},D=function(S){if(document.activeElement===document.body)for(let A of S)A.removedNodes.length>0&&wi(l)};var m=x,y=w,b=D;document.addEventListener("focusin",x),document.addEventListener("focusout",w);let E=new MutationObserver(D);return l&&E.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",x),document.removeEventListener("focusout",w),E.disconnect()}}},[n,l,g.paused]),Vr.useEffect(()=>{if(l){CF.add(g);let m=document.activeElement;if(!l.contains(m)){let b=new CustomEvent(j4,yF);l.addEventListener(j4,c),l.dispatchEvent(b),b.defaultPrevented||(UQ(JQ(SF(l)),{select:!0}),document.activeElement===m&&wi(l))}return()=>{l.removeEventListener(j4,c),setTimeout(()=>{let b=new CustomEvent(W4,yF);l.addEventListener(W4,p),l.dispatchEvent(b),b.defaultPrevented||wi(m??document.body,{select:!0}),l.removeEventListener(W4,p),CF.remove(g)},0)}}},[l,c,p,g]);let v=Vr.useCallback(m=>{if(!r&&!n||g.paused)return;let y=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,b=document.activeElement;if(y&&b){let x=m.currentTarget,[w,D]=KQ(x);w&&D?!m.shiftKey&&b===D?(m.preventDefault(),r&&wi(w,{select:!0})):m.shiftKey&&b===w&&(m.preventDefault(),r&&wi(D,{select:!0})):b===x&&m.preventDefault()}},[r,n,g.paused]);return(0,wF.jsx)(Ze.div,{tabIndex:-1,...s,ref:h,onKeyDown:v})});_4.displayName=_Q;function UQ(e,{select:t=!1}={}){let r=document.activeElement;for(let n of e)if(wi(n,{select:t}),document.activeElement!==r)return}function KQ(e){let t=SF(e),r=bF(t,e),n=bF(t.reverse(),e);return[r,n]}function SF(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{let o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function bF(e,t){for(let r of e)if(!qQ(r,{upTo:t}))return r}function qQ(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function XQ(e){return e instanceof HTMLInputElement&&"select"in e}function wi(e,{select:t=!1}={}){if(e&&e.focus){let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&XQ(e)&&t&&e.select()}}var CF=YQ();function YQ(){let e=[];return{add(t){let r=e[0];t!==r&&r?.pause(),e=xF(e,t),e.unshift(t)},remove(t){e=xF(e,t),e[0]?.resume()}}}function xF(e,t){let r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function JQ(e){return e.filter(t=>t.tagName!=="A")}i();var U4=k(require("react"),1);var ZQ=U4[" useId ".trim().toString()]||(()=>{}),QQ=0;function Si(e){let[t,r]=U4.useState(ZQ());return ur(()=>{e||r(n=>n??String(QQ++))},[e]),e||(t?`radix-${t}`:"")}i();var Pr=k(require("react"),1);i();i();i();i();var DF=["top","right","bottom","left"];var Fn=Math.min,Wt=Math.max,Rc=Math.round,Fc=Math.floor,on=e=>({x:e,y:e}),eee={left:"right",right:"left",bottom:"top",top:"bottom"},tee={start:"end",end:"start"};function gm(e,t,r){return Wt(e,Fn(t,r))}function Bn(e,t){return typeof e=="function"?e(t):e}function On(e){return e.split("-")[0]}function da(e){return e.split("-")[1]}function vm(e){return e==="x"?"y":"x"}function ym(e){return e==="y"?"height":"width"}function yo(e){return["top","bottom"].includes(On(e))?"y":"x"}function bm(e){return vm(yo(e))}function EF(e,t,r){r===void 0&&(r=!1);let n=da(e),o=bm(e),a=ym(o),s=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=Ac(s)),[s,Ac(s)]}function PF(e){let t=Ac(e);return[hm(e),t,hm(t)]}function hm(e){return e.replace(/start|end/g,t=>tee[t])}function ree(e,t,r){let n=["left","right"],o=["right","left"],a=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return r?t?o:n:t?n:o;case"left":case"right":return t?a:s;default:return[]}}function TF(e,t,r,n){let o=da(e),a=ree(On(e),r==="start",n);return o&&(a=a.map(s=>s+"-"+o),t&&(a=a.concat(a.map(hm)))),a}function Ac(e){return e.replace(/left|right|bottom|top/g,t=>eee[t])}function nee(e){return{top:0,right:0,bottom:0,left:0,...e}}function K4(e){return typeof e!="number"?nee(e):{top:e,right:e,bottom:e,left:e}}function ma(e){let{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function AF(e,t,r){let{reference:n,floating:o}=e,a=yo(t),s=bm(t),l=ym(s),u=On(t),c=a==="y",p=n.x+n.width/2-o.width/2,d=n.y+n.height/2-o.height/2,h=n[l]/2-o[l]/2,g;switch(u){case"top":g={x:p,y:n.y-o.height};break;case"bottom":g={x:p,y:n.y+n.height};break;case"right":g={x:n.x+n.width,y:d};break;case"left":g={x:n.x-o.width,y:d};break;default:g={x:n.x,y:n.y}}switch(da(t)){case"start":g[s]-=h*(r&&c?-1:1);break;case"end":g[s]+=h*(r&&c?-1:1);break}return g}var BF=async(e,t,r)=>{let{placement:n="bottom",strategy:o="absolute",middleware:a=[],platform:s}=r,l=a.filter(Boolean),u=await(s.isRTL==null?void 0:s.isRTL(t)),c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:p,y:d}=AF(c,n,u),h=n,g={},v=0;for(let m=0;m<l.length;m++){let{name:y,fn:b}=l[m],{x,y:w,data:D,reset:E}=await b({x:p,y:d,initialPlacement:n,placement:h,strategy:o,middlewareData:g,rects:c,platform:s,elements:{reference:e,floating:t}});p=x??p,d=w??d,g={...g,[y]:{...g[y],...D}},E&&v<=50&&(v++,typeof E=="object"&&(E.placement&&(h=E.placement),E.rects&&(c=E.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):E.rects),{x:p,y:d}=AF(c,h,u)),m=-1)}return{x:p,y:d,placement:h,strategy:o,middlewareData:g}};async function Cl(e,t){var r;t===void 0&&(t={});let{x:n,y:o,platform:a,rects:s,elements:l,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:p="viewport",elementContext:d="floating",altBoundary:h=!1,padding:g=0}=Bn(t,e),v=K4(g),y=l[h?d==="floating"?"reference":"floating":d],b=ma(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(y)))==null||r?y:y.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:c,rootBoundary:p,strategy:u})),x=d==="floating"?{x:n,y:o,width:s.floating.width,height:s.floating.height}:s.reference,w=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),D=await(a.isElement==null?void 0:a.isElement(w))?await(a.getScale==null?void 0:a.getScale(w))||{x:1,y:1}:{x:1,y:1},E=ma(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:x,offsetParent:w,strategy:u}):x);return{top:(b.top-E.top+v.top)/D.y,bottom:(E.bottom-b.bottom+v.bottom)/D.y,left:(b.left-E.left+v.left)/D.x,right:(E.right-b.right+v.right)/D.x}}var OF=e=>({name:"arrow",options:e,async fn(t){let{x:r,y:n,placement:o,rects:a,platform:s,elements:l,middlewareData:u}=t,{element:c,padding:p=0}=Bn(e,t)||{};if(c==null)return{};let d=K4(p),h={x:r,y:n},g=bm(o),v=ym(g),m=await s.getDimensions(c),y=g==="y",b=y?"top":"left",x=y?"bottom":"right",w=y?"clientHeight":"clientWidth",D=a.reference[v]+a.reference[g]-h[g]-a.floating[v],E=h[g]-a.reference[g],S=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c)),P=S?S[w]:0;(!P||!await(s.isElement==null?void 0:s.isElement(S)))&&(P=l.floating[w]||a.floating[v]);let A=D/2-E/2,B=P/2-m[v]/2-1,I=Fn(d[b],B),_=Fn(d[x],B),V=I,L=P-m[v]-_,z=P/2-m[v]/2+A,j=gm(V,z,L),ee=!u.arrow&&da(o)!=null&&z!==j&&a.reference[v]/2-(z<V?I:_)-m[v]/2<0,re=ee?z<V?z-V:z-L:0;return{[g]:h[g]+re,data:{[g]:j,centerOffset:z-j-re,...ee&&{alignmentOffset:re}},reset:ee}}});var MF=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;let{placement:o,middlewareData:a,rects:s,initialPlacement:l,platform:u,elements:c}=t,{mainAxis:p=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:m=!0,...y}=Bn(e,t);if((r=a.arrow)!=null&&r.alignmentOffset)return{};let b=On(o),x=yo(l),w=On(l)===l,D=await(u.isRTL==null?void 0:u.isRTL(c.floating)),E=h||(w||!m?[Ac(l)]:PF(l)),S=v!=="none";!h&&S&&E.push(...TF(l,m,v,D));let P=[l,...E],A=await Cl(t,y),B=[],I=((n=a.flip)==null?void 0:n.overflows)||[];if(p&&B.push(A[b]),d){let z=EF(o,s,D);B.push(A[z[0]],A[z[1]])}if(I=[...I,{placement:o,overflows:B}],!B.every(z=>z<=0)){var _,V;let z=(((_=a.flip)==null?void 0:_.index)||0)+1,j=P[z];if(j)return{data:{index:z,overflows:I},reset:{placement:j}};let ee=(V=I.filter(re=>re.overflows[0]<=0).sort((re,Z)=>re.overflows[1]-Z.overflows[1])[0])==null?void 0:V.placement;if(!ee)switch(g){case"bestFit":{var L;let re=(L=I.filter(Z=>{if(S){let W=yo(Z.placement);return W===x||W==="y"}return!0}).map(Z=>[Z.placement,Z.overflows.filter(W=>W>0).reduce((W,ae)=>W+ae,0)]).sort((Z,W)=>Z[1]-W[1])[0])==null?void 0:L[0];re&&(ee=re);break}case"initialPlacement":ee=l;break}if(o!==ee)return{reset:{placement:ee}}}return{}}}};function RF(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function FF(e){return DF.some(t=>e[t]>=0)}var IF=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){let{rects:r}=t,{strategy:n="referenceHidden",...o}=Bn(e,t);switch(n){case"referenceHidden":{let a=await Cl(t,{...o,elementContext:"reference"}),s=RF(a,r.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:FF(s)}}}case"escaped":{let a=await Cl(t,{...o,altBoundary:!0}),s=RF(a,r.floating);return{data:{escapedOffsets:s,escaped:FF(s)}}}default:return{}}}}};async function oee(e,t){let{placement:r,platform:n,elements:o}=e,a=await(n.isRTL==null?void 0:n.isRTL(o.floating)),s=On(r),l=da(r),u=yo(r)==="y",c=["left","top"].includes(s)?-1:1,p=a&&u?-1:1,d=Bn(t,e),{mainAxis:h,crossAxis:g,alignmentAxis:v}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return l&&typeof v=="number"&&(g=l==="end"?v*-1:v),u?{x:g*p,y:h*c}:{x:h*c,y:g*p}}var kF=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;let{x:o,y:a,placement:s,middlewareData:l}=t,u=await oee(t,e);return s===((r=l.offset)==null?void 0:r.placement)&&(n=l.arrow)!=null&&n.alignmentOffset?{}:{x:o+u.x,y:a+u.y,data:{...u,placement:s}}}}},NF=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:n,placement:o}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:y=>{let{x:b,y:x}=y;return{x:b,y:x}}},...u}=Bn(e,t),c={x:r,y:n},p=await Cl(t,u),d=yo(On(o)),h=vm(d),g=c[h],v=c[d];if(a){let y=h==="y"?"top":"left",b=h==="y"?"bottom":"right",x=g+p[y],w=g-p[b];g=gm(x,g,w)}if(s){let y=d==="y"?"top":"left",b=d==="y"?"bottom":"right",x=v+p[y],w=v-p[b];v=gm(x,v,w)}let m=l.fn({...t,[h]:g,[d]:v});return{...m,data:{x:m.x-r,y:m.y-n,enabled:{[h]:a,[d]:s}}}}}},VF=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:r,y:n,placement:o,rects:a,middlewareData:s}=t,{offset:l=0,mainAxis:u=!0,crossAxis:c=!0}=Bn(e,t),p={x:r,y:n},d=yo(o),h=vm(d),g=p[h],v=p[d],m=Bn(l,t),y=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(u){let w=h==="y"?"height":"width",D=a.reference[h]-a.floating[w]+y.mainAxis,E=a.reference[h]+a.reference[w]-y.mainAxis;g<D?g=D:g>E&&(g=E)}if(c){var b,x;let w=h==="y"?"width":"height",D=["top","left"].includes(On(o)),E=a.reference[d]-a.floating[w]+(D&&((b=s.offset)==null?void 0:b[d])||0)+(D?0:y.crossAxis),S=a.reference[d]+a.reference[w]+(D?0:((x=s.offset)==null?void 0:x[d])||0)-(D?y.crossAxis:0);v<E?v=E:v>S&&(v=S)}return{[h]:g,[d]:v}}}},LF=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;let{placement:o,rects:a,platform:s,elements:l}=t,{apply:u=()=>{},...c}=Bn(e,t),p=await Cl(t,c),d=On(o),h=da(o),g=yo(o)==="y",{width:v,height:m}=a.floating,y,b;d==="top"||d==="bottom"?(y=d,b=h===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(b=d,y=h==="end"?"top":"bottom");let x=m-p.top-p.bottom,w=v-p.left-p.right,D=Fn(m-p[y],x),E=Fn(v-p[b],w),S=!t.middlewareData.shift,P=D,A=E;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(A=w),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(P=x),S&&!h){let I=Wt(p.left,0),_=Wt(p.right,0),V=Wt(p.top,0),L=Wt(p.bottom,0);g?A=v-2*(I!==0||_!==0?I+_:Wt(p.left,p.right)):P=m-2*(V!==0||L!==0?V+L:Wt(p.top,p.bottom))}await u({...t,availableWidth:A,availableHeight:P});let B=await s.getDimensions(l.floating);return v!==B.width||m!==B.height?{reset:{rects:!0}}:{}}}};i();function Cm(){return typeof window<"u"}function ga(e){return zF(e)?(e.nodeName||"").toLowerCase():"#document"}function cr(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function an(e){var t;return(t=(zF(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function zF(e){return Cm()?e instanceof Node||e instanceof cr(e).Node:!1}function Lr(e){return Cm()?e instanceof Element||e instanceof cr(e).Element:!1}function sn(e){return Cm()?e instanceof HTMLElement||e instanceof cr(e).HTMLElement:!1}function $F(e){return!Cm()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof cr(e).ShadowRoot}function xl(e){let{overflow:t,overflowX:r,overflowY:n,display:o}=$r(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(o)}function GF(e){return["table","td","th"].includes(ga(e))}function Bc(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function xm(e){let t=wm(),r=Lr(e)?$r(e):e;return["transform","translate","scale","rotate","perspective"].some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function HF(e){let t=bo(e);for(;sn(t)&&!va(t);){if(xm(t))return t;if(Bc(t))return null;t=bo(t)}return null}function wm(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function va(e){return["html","body","#document"].includes(ga(e))}function $r(e){return cr(e).getComputedStyle(e)}function Oc(e){return Lr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function bo(e){if(ga(e)==="html")return e;let t=e.assignedSlot||e.parentNode||$F(e)&&e.host||an(e);return $F(t)?t.host:t}function jF(e){let t=bo(e);return va(t)?e.ownerDocument?e.ownerDocument.body:e.body:sn(t)&&xl(t)?t:jF(t)}function ha(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);let o=jF(e),a=o===((n=e.ownerDocument)==null?void 0:n.body),s=cr(o);if(a){let l=Sm(s);return t.concat(s,s.visualViewport||[],xl(o)?o:[],l&&r?ha(l):[])}return t.concat(o,ha(o,[],r))}function Sm(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function UF(e){let t=$r(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,o=sn(e),a=o?e.offsetWidth:r,s=o?e.offsetHeight:n,l=Rc(r)!==a||Rc(n)!==s;return l&&(r=a,n=s),{width:r,height:n,$:l}}function X4(e){return Lr(e)?e:e.contextElement}function wl(e){let t=X4(e);if(!sn(t))return on(1);let r=t.getBoundingClientRect(),{width:n,height:o,$:a}=UF(t),s=(a?Rc(r.width):r.width)/n,l=(a?Rc(r.height):r.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var iee=on(0);function KF(e){let t=cr(e);return!wm()||!t.visualViewport?iee:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function aee(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==cr(e)?!1:t}function ya(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);let o=e.getBoundingClientRect(),a=X4(e),s=on(1);t&&(n?Lr(n)&&(s=wl(n)):s=wl(e));let l=aee(a,r,n)?KF(a):on(0),u=(o.left+l.x)/s.x,c=(o.top+l.y)/s.y,p=o.width/s.x,d=o.height/s.y;if(a){let h=cr(a),g=n&&Lr(n)?cr(n):n,v=h,m=Sm(v);for(;m&&n&&g!==v;){let y=wl(m),b=m.getBoundingClientRect(),x=$r(m),w=b.left+(m.clientLeft+parseFloat(x.paddingLeft))*y.x,D=b.top+(m.clientTop+parseFloat(x.paddingTop))*y.y;u*=y.x,c*=y.y,p*=y.x,d*=y.y,u+=w,c+=D,v=cr(m),m=Sm(v)}}return ma({width:p,height:d,x:u,y:c})}function Y4(e,t){let r=Oc(e).scrollLeft;return t?t.left+r:ya(an(e)).left+r}function qF(e,t,r){r===void 0&&(r=!1);let n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-(r?0:Y4(e,n)),a=n.top+t.scrollTop;return{x:o,y:a}}function see(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e,a=o==="fixed",s=an(n),l=t?Bc(t.floating):!1;if(n===s||l&&a)return r;let u={scrollLeft:0,scrollTop:0},c=on(1),p=on(0),d=sn(n);if((d||!d&&!a)&&((ga(n)!=="body"||xl(s))&&(u=Oc(n)),sn(n))){let g=ya(n);c=wl(n),p.x=g.x+n.clientLeft,p.y=g.y+n.clientTop}let h=s&&!d&&!a?qF(s,u,!0):on(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-u.scrollLeft*c.x+p.x+h.x,y:r.y*c.y-u.scrollTop*c.y+p.y+h.y}}function lee(e){return Array.from(e.getClientRects())}function uee(e){let t=an(e),r=Oc(e),n=e.ownerDocument.body,o=Wt(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),a=Wt(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight),s=-r.scrollLeft+Y4(e),l=-r.scrollTop;return $r(n).direction==="rtl"&&(s+=Wt(t.clientWidth,n.clientWidth)-o),{width:o,height:a,x:s,y:l}}function cee(e,t){let r=cr(e),n=an(e),o=r.visualViewport,a=n.clientWidth,s=n.clientHeight,l=0,u=0;if(o){a=o.width,s=o.height;let c=wm();(!c||c&&t==="fixed")&&(l=o.offsetLeft,u=o.offsetTop)}return{width:a,height:s,x:l,y:u}}function fee(e,t){let r=ya(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,a=sn(e)?wl(e):on(1),s=e.clientWidth*a.x,l=e.clientHeight*a.y,u=o*a.x,c=n*a.y;return{width:s,height:l,x:u,y:c}}function WF(e,t,r){let n;if(t==="viewport")n=cee(e,r);else if(t==="document")n=uee(an(e));else if(Lr(t))n=fee(t,r);else{let o=KF(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return ma(n)}function XF(e,t){let r=bo(e);return r===t||!Lr(r)||va(r)?!1:$r(r).position==="fixed"||XF(r,t)}function pee(e,t){let r=t.get(e);if(r)return r;let n=ha(e,[],!1).filter(l=>Lr(l)&&ga(l)!=="body"),o=null,a=$r(e).position==="fixed",s=a?bo(e):e;for(;Lr(s)&&!va(s);){let l=$r(s),u=xm(s);!u&&l.position==="fixed"&&(o=null),(a?!u&&!o:!u&&l.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||xl(s)&&!u&&XF(e,s))?n=n.filter(p=>p!==s):o=l,s=bo(s)}return t.set(e,n),n}function dee(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e,s=[...r==="clippingAncestors"?Bc(t)?[]:pee(t,this._c):[].concat(r),n],l=s[0],u=s.reduce((c,p)=>{let d=WF(t,p,o);return c.top=Wt(d.top,c.top),c.right=Fn(d.right,c.right),c.bottom=Fn(d.bottom,c.bottom),c.left=Wt(d.left,c.left),c},WF(t,l,o));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function mee(e){let{width:t,height:r}=UF(e);return{width:t,height:r}}function hee(e,t,r){let n=sn(t),o=an(t),a=r==="fixed",s=ya(e,!0,a,t),l={scrollLeft:0,scrollTop:0},u=on(0);if(n||!n&&!a)if((ga(t)!=="body"||xl(o))&&(l=Oc(t)),n){let h=ya(t,!0,a,t);u.x=h.x+t.clientLeft,u.y=h.y+t.clientTop}else o&&(u.x=Y4(o));let c=o&&!n&&!a?qF(o,l):on(0),p=s.left+l.scrollLeft-u.x-c.x,d=s.top+l.scrollTop-u.y-c.y;return{x:p,y:d,width:s.width,height:s.height}}function q4(e){return $r(e).position==="static"}function _F(e,t){if(!sn(e)||$r(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return an(e)===r&&(r=r.ownerDocument.body),r}function YF(e,t){let r=cr(e);if(Bc(e))return r;if(!sn(e)){let o=bo(e);for(;o&&!va(o);){if(Lr(o)&&!q4(o))return o;o=bo(o)}return r}let n=_F(e,t);for(;n&&GF(n)&&q4(n);)n=_F(n,t);return n&&va(n)&&q4(n)&&!xm(n)?r:n||HF(e)||r}var gee=async function(e){let t=this.getOffsetParent||YF,r=this.getDimensions,n=await r(e.floating);return{reference:hee(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function vee(e){return $r(e).direction==="rtl"}var JF={convertOffsetParentRelativeRectToViewportRelativeRect:see,getDocumentElement:an,getClippingRect:dee,getOffsetParent:YF,getElementRects:gee,getClientRects:lee,getDimensions:mee,getScale:wl,isElement:Lr,isRTL:vee};function ZF(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function yee(e,t){let r=null,n,o=an(e);function a(){var l;clearTimeout(n),(l=r)==null||l.disconnect(),r=null}function s(l,u){l===void 0&&(l=!1),u===void 0&&(u=1),a();let c=e.getBoundingClientRect(),{left:p,top:d,width:h,height:g}=c;if(l||t(),!h||!g)return;let v=Fc(d),m=Fc(o.clientWidth-(p+h)),y=Fc(o.clientHeight-(d+g)),b=Fc(p),w={rootMargin:-v+"px "+-m+"px "+-y+"px "+-b+"px",threshold:Wt(0,Fn(1,u))||1},D=!0;function E(S){let P=S[0].intersectionRatio;if(P!==u){if(!D)return s();P?s(!1,P):n=setTimeout(()=>{s(!1,1e-7)},1e3)}P===1&&!ZF(c,e.getBoundingClientRect())&&s(),D=!1}try{r=new IntersectionObserver(E,{...w,root:o.ownerDocument})}catch{r=new IntersectionObserver(E,w)}r.observe(e)}return s(!0),a}function J4(e,t,r,n){n===void 0&&(n={});let{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:u=!1}=n,c=X4(e),p=o||a?[...c?ha(c):[],...ha(t)]:[];p.forEach(b=>{o&&b.addEventListener("scroll",r,{passive:!0}),a&&b.addEventListener("resize",r)});let d=c&&l?yee(c,r):null,h=-1,g=null;s&&(g=new ResizeObserver(b=>{let[x]=b;x&&x.target===c&&g&&(g.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var w;(w=g)==null||w.observe(t)})),r()}),c&&!u&&g.observe(c),g.observe(t));let v,m=u?ya(e):null;u&&y();function y(){let b=ya(e);m&&!ZF(m,b)&&r(),m=b,v=requestAnimationFrame(y)}return r(),()=>{var b;p.forEach(x=>{o&&x.removeEventListener("scroll",r),a&&x.removeEventListener("resize",r)}),d?.(),(b=g)==null||b.disconnect(),g=null,u&&cancelAnimationFrame(v)}}var QF=kF;var eB=NF,tB=MF,rB=LF,nB=IF,Z4=OF;var oB=VF,Q4=(e,t,r)=>{let n=new Map,o={platform:JF,...r},a={...o.platform,_c:n};return BF(e,t,{...o,platform:a})};var lt=k(require("react"),1),Pm=require("react"),aB=k(require("react-dom"),1),Dm=typeof document<"u"?Pm.useLayoutEffect:Pm.useEffect;function Em(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!Em(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){let a=o[n];if(!(a==="_owner"&&e.$$typeof)&&!Em(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function sB(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function iB(e,t){let r=sB(e);return Math.round(t*r)/r}function ev(e){let t=lt.useRef(e);return Dm(()=>{t.current=e}),t}function lB(e){e===void 0&&(e={});let{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:a,floating:s}={},transform:l=!0,whileElementsMounted:u,open:c}=e,[p,d]=lt.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[h,g]=lt.useState(n);Em(h,n)||g(n);let[v,m]=lt.useState(null),[y,b]=lt.useState(null),x=lt.useCallback(Z=>{Z!==S.current&&(S.current=Z,m(Z))},[]),w=lt.useCallback(Z=>{Z!==P.current&&(P.current=Z,b(Z))},[]),D=a||v,E=s||y,S=lt.useRef(null),P=lt.useRef(null),A=lt.useRef(p),B=u!=null,I=ev(u),_=ev(o),V=ev(c),L=lt.useCallback(()=>{if(!S.current||!P.current)return;let Z={placement:t,strategy:r,middleware:h};_.current&&(Z.platform=_.current),Q4(S.current,P.current,Z).then(W=>{let ae={...W,isPositioned:V.current!==!1};z.current&&!Em(A.current,ae)&&(A.current=ae,aB.flushSync(()=>{d(ae)}))})},[h,t,r,_,V]);Dm(()=>{c===!1&&A.current.isPositioned&&(A.current.isPositioned=!1,d(Z=>({...Z,isPositioned:!1})))},[c]);let z=lt.useRef(!1);Dm(()=>(z.current=!0,()=>{z.current=!1}),[]),Dm(()=>{if(D&&(S.current=D),E&&(P.current=E),D&&E){if(I.current)return I.current(D,E,L);L()}},[D,E,L,I,B]);let j=lt.useMemo(()=>({reference:S,floating:P,setReference:x,setFloating:w}),[x,w]),ee=lt.useMemo(()=>({reference:D,floating:E}),[D,E]),re=lt.useMemo(()=>{let Z={position:r,left:0,top:0};if(!ee.floating)return Z;let W=iB(ee.floating,p.x),ae=iB(ee.floating,p.y);return l?{...Z,transform:"translate("+W+"px, "+ae+"px)",...sB(ee.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:W,top:ae}},[r,l,ee.floating,p.x,p.y]);return lt.useMemo(()=>({...p,update:L,refs:j,elements:ee,floatingStyles:re}),[p,L,j,ee,re])}var bee=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){let{element:n,padding:o}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?Z4({element:n.current,padding:o}).fn(r):{}:n?Z4({element:n,padding:o}).fn(r):{}}}},uB=(e,t)=>({...QF(e),options:[e,t]}),cB=(e,t)=>({...eB(e),options:[e,t]}),fB=(e,t)=>({...oB(e),options:[e,t]}),pB=(e,t)=>({...tB(e),options:[e,t]}),dB=(e,t)=>({...rB(e),options:[e,t]});var mB=(e,t)=>({...nB(e),options:[e,t]});var hB=(e,t)=>({...bee(e),options:[e,t]});i();var gB=k(require("react"),1);var tv=require("react/jsx-runtime"),Cee="Arrow",vB=gB.forwardRef((e,t)=>{let{children:r,width:n=10,height:o=5,...a}=e;return(0,tv.jsx)(Ze.svg,{...a,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:(0,tv.jsx)("polygon",{points:"0,0 30,0 15,10"})})});vB.displayName=Cee;var yB=vB;i();var bB=k(require("react"),1);function CB(e){let[t,r]=bB.useState(void 0);return ur(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});let n=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;let a=o[0],s,l;if("borderBoxSize"in a){let u=a.borderBoxSize,c=Array.isArray(u)?u[0]:u;s=c.inlineSize,l=c.blockSize}else s=e.offsetWidth,l=e.offsetHeight;r({width:s,height:l})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var Di=require("react/jsx-runtime");var rv="Popper",[xB,nv]=Rn(rv),[wee,wB]=xB(rv),SB=e=>{let{__scopePopper:t,children:r}=e,[n,o]=Pr.useState(null);return(0,Di.jsx)(wee,{scope:t,anchor:n,onAnchorChange:o,children:r})};SB.displayName=rv;var DB="PopperAnchor",EB=Pr.forwardRef((e,t)=>{let{__scopePopper:r,virtualRef:n,...o}=e,a=wB(DB,r),s=Pr.useRef(null),l=Je(t,s);return Pr.useEffect(()=>{a.onAnchorChange(n?.current||s.current)}),n?null:(0,Di.jsx)(Ze.div,{...o,ref:l})});EB.displayName=DB;var ov="PopperContent",[See,Dee]=xB(ov),PB=Pr.forwardRef((e,t)=>{let{__scopePopper:r,side:n="bottom",sideOffset:o=0,align:a="center",alignOffset:s=0,arrowPadding:l=0,avoidCollisions:u=!0,collisionBoundary:c=[],collisionPadding:p=0,sticky:d="partial",hideWhenDetached:h=!1,updatePositionStrategy:g="optimized",onPlaced:v,...m}=e,y=wB(ov,r),[b,x]=Pr.useState(null),w=Je(t,U=>x(U)),[D,E]=Pr.useState(null),S=CB(D),P=S?.width??0,A=S?.height??0,B=n+(a!=="center"?"-"+a:""),I=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},_=Array.isArray(c)?c:[c],V=_.length>0,L={padding:I,boundary:_.filter(Pee),altBoundary:V},{refs:z,floatingStyles:j,placement:ee,isPositioned:re,middlewareData:Z}=lB({strategy:"fixed",placement:B,whileElementsMounted:(...U)=>J4(...U,{animationFrame:g==="always"}),elements:{reference:y.anchor},middleware:[uB({mainAxis:o+A,alignmentAxis:s}),u&&cB({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?fB():void 0,...L}),u&&pB({...L}),dB({...L,apply:({elements:U,rects:ce,availableWidth:le,availableHeight:he})=>{let{width:Se,height:Te}=ce.reference,Re=U.floating.style;Re.setProperty("--radix-popper-available-width",`${le}px`),Re.setProperty("--radix-popper-available-height",`${he}px`),Re.setProperty("--radix-popper-anchor-width",`${Se}px`),Re.setProperty("--radix-popper-anchor-height",`${Te}px`)}}),D&&hB({element:D,padding:l}),Tee({arrowWidth:P,arrowHeight:A}),h&&mB({strategy:"referenceHidden",...L})]}),[W,ae]=RB(ee),be=It(v);ur(()=>{re&&be?.()},[re,be]);let me=Z.arrow?.x,Ke=Z.arrow?.y,R=Z.arrow?.centerOffset!==0,[K,H]=Pr.useState();return ur(()=>{b&&H(window.getComputedStyle(b).zIndex)},[b]),(0,Di.jsx)("div",{ref:z.setFloating,"data-radix-popper-content-wrapper":"",style:{...j,transform:re?j.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:K,"--radix-popper-transform-origin":[Z.transformOrigin?.x,Z.transformOrigin?.y].join(" "),...Z.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,Di.jsx)(See,{scope:r,placedSide:W,onArrowChange:E,arrowX:me,arrowY:Ke,shouldHideArrow:R,children:(0,Di.jsx)(Ze.div,{"data-side":W,"data-align":ae,...m,ref:w,style:{...m.style,animation:re?void 0:"none"}})})})});PB.displayName=ov;var TB="PopperArrow",Eee={top:"bottom",right:"left",bottom:"top",left:"right"},AB=Pr.forwardRef(function(t,r){let{__scopePopper:n,...o}=t,a=Dee(TB,n),s=Eee[a.placedSide];return(0,Di.jsx)("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:(0,Di.jsx)(yB,{...o,ref:r,style:{...o.style,display:"block"}})})});AB.displayName=TB;function Pee(e){return e!==null}var Tee=e=>({name:"transformOrigin",options:e,fn(t){let{placement:r,rects:n,middlewareData:o}=t,s=o.arrow?.centerOffset!==0,l=s?0:e.arrowWidth,u=s?0:e.arrowHeight,[c,p]=RB(r),d={start:"0%",center:"50%",end:"100%"}[p],h=(o.arrow?.x??0)+l/2,g=(o.arrow?.y??0)+u/2,v="",m="";return c==="bottom"?(v=s?d:`${h}px`,m=`${-u}px`):c==="top"?(v=s?d:`${h}px`,m=`${n.floating.height+u}px`):c==="right"?(v=`${-u}px`,m=s?d:`${g}px`):c==="left"&&(v=`${n.floating.width+u}px`,m=s?d:`${g}px`),{data:{x:v,y:m}}}});function RB(e){let[t,r="center"]=e.split("-");return[t,r]}var iv=SB,FB=EB,BB=PB,OB=AB;i();var Tm=k(require("react"),1),MB=k(require("react-dom"),1);var IB=require("react/jsx-runtime"),Ree="Portal",av=Tm.forwardRef((e,t)=>{let{container:r,...n}=e,[o,a]=Tm.useState(!1);ur(()=>a(!0),[]);let s=r||o&&globalThis?.document?.body;return s?MB.default.createPortal((0,IB.jsx)(Ze.div,{...n,ref:t}),s):null});av.displayName=Ree;i();var fr=k(require("react"),1);var kB=k(require("react"),1);function Fee(e,t){return kB.useReducer((r,n)=>t[r][n]??r,e)}var Sl=e=>{let{present:t,children:r}=e,n=Bee(t),o=typeof r=="function"?r({present:n.isPresent}):fr.Children.only(r),a=Je(n.ref,Oee(o));return typeof r=="function"||n.isPresent?fr.cloneElement(o,{ref:a}):null};Sl.displayName="Presence";function Bee(e){let[t,r]=fr.useState(),n=fr.useRef(null),o=fr.useRef(e),a=fr.useRef("none"),s=e?"mounted":"unmounted",[l,u]=Fee(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return fr.useEffect(()=>{let c=Am(n.current);a.current=l==="mounted"?c:"none"},[l]),ur(()=>{let c=n.current,p=o.current;if(p!==e){let h=a.current,g=Am(c);e?u("MOUNT"):g==="none"||c?.display==="none"?u("UNMOUNT"):u(p&&h!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,u]),ur(()=>{if(t){let c,p=t.ownerDocument.defaultView??window,d=g=>{let m=Am(n.current).includes(g.animationName);if(g.target===t&&m&&(u("ANIMATION_END"),!o.current)){let y=t.style.animationFillMode;t.style.animationFillMode="forwards",c=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=y)})}},h=g=>{g.target===t&&(a.current=Am(n.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{p.clearTimeout(c),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:fr.useCallback(c=>{n.current=c?getComputedStyle(c):null,r(c)},[])}}function Am(e){return e?.animationName||"none"}function Oee(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}i();var bt=k(require("react"),1);var Ei=require("react/jsx-runtime"),sv="rovingFocusGroup.onEntryFocus",Mee={bubbles:!1,cancelable:!0},Mc="RovingFocusGroup",[lv,NB,Iee]=pm(Mc),[kee,uv]=Rn(Mc,[Iee]),[Nee,Vee]=kee(Mc),VB=bt.forwardRef((e,t)=>(0,Ei.jsx)(lv.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,Ei.jsx)(lv.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,Ei.jsx)(Lee,{...e,ref:t})})}));VB.displayName=Mc;var Lee=bt.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:a,currentTabStopId:s,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:u,onEntryFocus:c,preventScrollOnEntryFocus:p=!1,...d}=e,h=bt.useRef(null),g=Je(t,h),v=mm(a),[m,y]=Tc({prop:s,defaultProp:l??null,onChange:u,caller:Mc}),[b,x]=bt.useState(!1),w=It(c),D=NB(r),E=bt.useRef(!1),[S,P]=bt.useState(0);return bt.useEffect(()=>{let A=h.current;if(A)return A.addEventListener(sv,w),()=>A.removeEventListener(sv,w)},[w]),(0,Ei.jsx)(Nee,{scope:r,orientation:n,dir:v,loop:o,currentTabStopId:m,onItemFocus:bt.useCallback(A=>y(A),[y]),onItemShiftTab:bt.useCallback(()=>x(!0),[]),onFocusableItemAdd:bt.useCallback(()=>P(A=>A+1),[]),onFocusableItemRemove:bt.useCallback(()=>P(A=>A-1),[]),children:(0,Ei.jsx)(Ze.div,{tabIndex:b||S===0?-1:0,"data-orientation":n,...d,ref:g,style:{outline:"none",...e.style},onMouseDown:xe(e.onMouseDown,()=>{E.current=!0}),onFocus:xe(e.onFocus,A=>{let B=!E.current;if(A.target===A.currentTarget&&B&&!b){let I=new CustomEvent(sv,Mee);if(A.currentTarget.dispatchEvent(I),!I.defaultPrevented){let _=D().filter(ee=>ee.focusable),V=_.find(ee=>ee.active),L=_.find(ee=>ee.id===m),j=[V,L,..._].filter(Boolean).map(ee=>ee.ref.current);zB(j,p)}}E.current=!1}),onBlur:xe(e.onBlur,()=>x(!1))})})}),LB="RovingFocusGroupItem",$B=bt.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:a,children:s,...l}=e,u=Si(),c=a||u,p=Vee(LB,r),d=p.currentTabStopId===c,h=NB(r),{onFocusableItemAdd:g,onFocusableItemRemove:v,currentTabStopId:m}=p;return bt.useEffect(()=>{if(n)return g(),()=>v()},[n,g,v]),(0,Ei.jsx)(lv.ItemSlot,{scope:r,id:c,focusable:n,active:o,children:(0,Ei.jsx)(Ze.span,{tabIndex:d?0:-1,"data-orientation":p.orientation,...l,ref:t,onMouseDown:xe(e.onMouseDown,y=>{n?p.onItemFocus(c):y.preventDefault()}),onFocus:xe(e.onFocus,()=>p.onItemFocus(c)),onKeyDown:xe(e.onKeyDown,y=>{if(y.key==="Tab"&&y.shiftKey){p.onItemShiftTab();return}if(y.target!==y.currentTarget)return;let b=Gee(y,p.orientation,p.dir);if(b!==void 0){if(y.metaKey||y.ctrlKey||y.altKey||y.shiftKey)return;y.preventDefault();let w=h().filter(D=>D.focusable).map(D=>D.ref.current);if(b==="last")w.reverse();else if(b==="prev"||b==="next"){b==="prev"&&w.reverse();let D=w.indexOf(y.currentTarget);w=p.loop?Hee(w,D+1):w.slice(D+1)}setTimeout(()=>zB(w))}}),children:typeof s=="function"?s({isCurrentTabStop:d,hasTabStop:m!=null}):s})})});$B.displayName=LB;var $ee={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function zee(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Gee(e,t,r){let n=zee(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return $ee[n]}function zB(e,t=!1){let r=document.activeElement;for(let n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function Hee(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var GB=VB,HB=$B;i();var Wee=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Dl=new WeakMap,Rm=new WeakMap,Fm={},cv=0,jB=function(e){return e&&(e.host||jB(e.parentNode))},_ee=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=jB(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},Uee=function(e,t,r,n){var o=_ee(t,Array.isArray(e)?e:[e]);Fm[r]||(Fm[r]=new WeakMap);var a=Fm[r],s=[],l=new Set,u=new Set(o),c=function(d){!d||l.has(d)||(l.add(d),c(d.parentNode))};o.forEach(c);var p=function(d){!d||u.has(d)||Array.prototype.forEach.call(d.children,function(h){if(l.has(h))p(h);else try{var g=h.getAttribute(n),v=g!==null&&g!=="false",m=(Dl.get(h)||0)+1,y=(a.get(h)||0)+1;Dl.set(h,m),a.set(h,y),s.push(h),m===1&&v&&Rm.set(h,!0),y===1&&h.setAttribute(r,"true"),v||h.setAttribute(n,"true")}catch(b){console.error("aria-hidden: cannot operate on ",h,b)}})};return p(t),l.clear(),cv++,function(){s.forEach(function(d){var h=Dl.get(d)-1,g=a.get(d)-1;Dl.set(d,h),a.set(d,g),h||(Rm.has(d)||d.removeAttribute(n),Rm.delete(d)),g||d.removeAttribute(r)}),cv--,cv||(Dl=new WeakMap,Dl=new WeakMap,Rm=new WeakMap,Fm={})}},WB=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=t||Wee(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live]"))),Uee(n,o,r,"aria-hidden")):function(){return null}};i();i();i();var pr=function(){return pr=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},pr.apply(this,arguments)};function Bm(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function _B(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var Nm=k(require("react"));i();var kt=k(require("react"));i();var ba="right-scroll-bar-position",Ca="width-before-scroll-bar",fv="with-scroll-bars-hidden",pv="--removed-body-scroll-bar-size";i();i();function Om(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}i();var UB=require("react");function KB(e,t){var r=(0,UB.useState)(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}i();var Mm=k(require("react"));var Kee=typeof window<"u"?Mm.useLayoutEffect:Mm.useEffect,qB=new WeakMap;function dv(e,t){var r=KB(t||null,function(n){return e.forEach(function(o){return Om(o,n)})});return Kee(function(){var n=qB.get(r);if(n){var o=new Set(n),a=new Set(e),s=r.current;o.forEach(function(l){a.has(l)||Om(l,null)}),a.forEach(function(l){o.has(l)||Om(l,s)})}qB.set(r,e)},[e]),r}i();i();i();function qee(e){return e}function Xee(e,t){t===void 0&&(t=qee);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var s=t(a,n);return r.push(s),function(){r=r.filter(function(l){return l!==s})}},assignSyncMedium:function(a){for(n=!0;r.length;){var s=r;r=[],s.forEach(a)}r={push:function(l){return a(l)},filter:function(){return r}}},assignMedium:function(a){n=!0;var s=[];if(r.length){var l=r;r=[],l.forEach(a),s=r}var u=function(){var p=s;s=[],p.forEach(a)},c=function(){return Promise.resolve().then(u)};c(),r={push:function(p){s.push(p),c()},filter:function(p){return s=s.filter(p),r}}}};return o}function mv(e){e===void 0&&(e={});var t=Xee(null);return t.options=pr({async:!0,ssr:!1},e),t}i();var XB=k(require("react")),YB=function(e){var t=e.sideCar,r=Bm(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return XB.createElement(n,pr({},r))};YB.isSideCarExport=!0;function hv(e,t){return e.useMedium(t),YB}var Im=mv();var gv=function(){},Ic=kt.forwardRef(function(e,t){var r=kt.useRef(null),n=kt.useState({onScrollCapture:gv,onWheelCapture:gv,onTouchMoveCapture:gv}),o=n[0],a=n[1],s=e.forwardProps,l=e.children,u=e.className,c=e.removeScrollBar,p=e.enabled,d=e.shards,h=e.sideCar,g=e.noIsolation,v=e.inert,m=e.allowPinchZoom,y=e.as,b=y===void 0?"div":y,x=e.gapMode,w=Bm(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),D=h,E=dv([r,t]),S=pr(pr({},w),o);return kt.createElement(kt.Fragment,null,p&&kt.createElement(D,{sideCar:Im,removeScrollBar:c,shards:d,noIsolation:g,inert:v,setCallbacks:a,allowPinchZoom:!!m,lockRef:r,gapMode:x}),s?kt.cloneElement(kt.Children.only(l),pr(pr({},S),{ref:E})):kt.createElement(b,pr({},S,{className:u,ref:E}),l))});Ic.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ic.classNames={fullWidth:Ca,zeroRight:ba};i();i();var He=k(require("react"));i();i();var Pl=k(require("react"));i();i();i();var QB=k(require("react"));i();i();var JB;var ZB=function(){if(JB)return JB;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Yee(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=ZB();return t&&e.setAttribute("nonce",t),e}function Jee(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Zee(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var vv=function(){var e=0,t=null;return{add:function(r){e==0&&(t=Yee())&&(Jee(t,r),Zee(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}};var yv=function(){var e=vv();return function(t,r){QB.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}};var kc=function(){var e=yv(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t};i();var Qee={left:0,top:0,right:0,gap:0},bv=function(e){return parseInt(e||"",10)||0},ete=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[bv(r),bv(n),bv(o)]},Cv=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Qee;var t=ete(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}};var tte=kc(),El="data-scroll-locked",rte=function(e,t,r,n){var o=e.left,a=e.top,s=e.right,l=e.gap;return r===void 0&&(r="margin"),`
2108
+ `,L4=({placement:e="left",align:t="top",gap:r="1.5rem",item:n,children:o,...a})=>(0,Ec.jsxs)(tF,{...a,children:[F(n)?(0,Ec.jsx)(SQ,{$align:t,$gap:r,$placement:e,children:n}):null,(0,Ec.jsx)(wQ,{$align:t,children:o})]});L4.displayName="MediaObject_VHS";i();i();var dt=k(require("react"),1);i();function xe(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e?.(o),r===!1||!o.defaultPrevented)return t?.(o)}}i();var nF=k(require("react"),1);function rF(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Pc(...e){return t=>{let r=!1,n=e.map(o=>{let a=rF(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){let a=n[o];typeof a=="function"?a():rF(e[o],null)}}}}function Je(...e){return nF.useCallback(Pc(...e),e)}i();var vo=k(require("react"),1),oF=require("react/jsx-runtime");function Rn(e,t=[]){let r=[];function n(a,s){let l=vo.createContext(s),u=r.length;r=[...r,s];let c=d=>{let{scope:h,children:g,...v}=d,m=h?.[e]?.[u]||l,y=vo.useMemo(()=>v,Object.values(v));return(0,oF.jsx)(m.Provider,{value:y,children:g})};c.displayName=a+"Provider";function p(d,h){let g=h?.[e]?.[u]||l,v=vo.useContext(g);if(v)return v;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${a}\``)}return[c,p]}let o=()=>{let a=r.map(s=>vo.createContext(s));return function(l){let u=l?.[e]||a;return vo.useMemo(()=>({[`__scope${e}`]:{...l,[e]:u}}),[l,u])}};return o.scopeName=e,[n,DQ(o,...t)]}function DQ(...e){let t=e[0];if(e.length===1)return t;let r=()=>{let n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){let s=n.reduce((l,{useScope:u,scopeName:c})=>{let d=u(a)[`__scope${c}`];return{...l,...d}},{});return vo.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}i();var Nr=k(require("react"),1);i();var iF=k(require("react"),1),ur=globalThis?.document?iF.useLayoutEffect:()=>{};var lm=k(require("react"),1);var EQ=Nr[" useInsertionEffect ".trim().toString()]||ur;function Tc({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){let[o,a,s]=PQ({defaultProp:t,onChange:r}),l=e!==void 0,u=l?e:o;{let p=Nr.useRef(e!==void 0);Nr.useEffect(()=>{let d=p.current;d!==l&&console.warn(`${n} is changing from ${d?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),p.current=l},[l,n])}let c=Nr.useCallback(p=>{if(l){let d=TQ(p)?p(e):p;d!==e&&s.current?.(d)}else a(p)},[l,e,a,s]);return[u,c]}function PQ({defaultProp:e,onChange:t}){let[r,n]=Nr.useState(e),o=Nr.useRef(r),a=Nr.useRef(t);return EQ(()=>{a.current=t},[t]),Nr.useEffect(()=>{o.current!==r&&(a.current?.(r),o.current=r)},[r,o]),[r,n,a]}function TQ(e){return typeof e=="function"}var cJe=Symbol("RADIX:SYNC_STATE");i();var aF=k(require("react"),1),sF=k(require("react-dom"),1);i();var st=k(require("react"),1);var um=require("react/jsx-runtime");function pa(e){let t=AQ(e),r=st.forwardRef((n,o)=>{let{children:a,...s}=n,l=st.Children.toArray(a),u=l.find(FQ);if(u){let c=u.props.children,p=l.map(d=>d===u?st.Children.count(c)>1?st.Children.only(null):st.isValidElement(c)?c.props.children:null:d);return(0,um.jsx)(t,{...s,ref:o,children:st.isValidElement(c)?st.cloneElement(c,void 0,p):null})}return(0,um.jsx)(t,{...s,ref:o,children:a})});return r.displayName=`${e}.Slot`,r}function AQ(e){let t=st.forwardRef((r,n)=>{let{children:o,...a}=r,s=st.isValidElement(o)?OQ(o):void 0,l=Je(s,n);if(st.isValidElement(o)){let u=BQ(a,o.props);return o.type!==st.Fragment&&(u.ref=l),st.cloneElement(o,u)}return st.Children.count(o)>1?st.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var RQ=Symbol("radix.slottable");function FQ(e){return st.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===RQ}function BQ(e,t){let r={...t};for(let n in t){let o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...l)=>{let u=a(...l);return o(...l),u}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}function OQ(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var lF=require("react/jsx-runtime"),MQ=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ze=MQ.reduce((e,t)=>{let r=pa(`Primitive.${t}`),n=aF.forwardRef((o,a)=>{let{asChild:s,...l}=o,u=s?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),(0,lF.jsx)(u,{...l,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function cm(e,t){e&&sF.flushSync(()=>e.dispatchEvent(t))}i();var se=k(require("react"),1);i();var xi=k(require("react"),1);var fm=require("react/jsx-runtime"),IQ=k(require("react"),1);var kQ=require("react/jsx-runtime");function pm(e){let t=e+"CollectionProvider",[r,n]=Rn(t),[o,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),s=m=>{let{scope:y,children:b}=m,x=xi.default.useRef(null),w=xi.default.useRef(new Map).current;return(0,fm.jsx)(o,{scope:y,itemMap:w,collectionRef:x,children:b})};s.displayName=t;let l=e+"CollectionSlot",u=pa(l),c=xi.default.forwardRef((m,y)=>{let{scope:b,children:x}=m,w=a(l,b),D=Je(y,w.collectionRef);return(0,fm.jsx)(u,{ref:D,children:x})});c.displayName=l;let p=e+"CollectionItemSlot",d="data-radix-collection-item",h=pa(p),g=xi.default.forwardRef((m,y)=>{let{scope:b,children:x,...w}=m,D=xi.default.useRef(null),E=Je(y,D),S=a(p,b);return xi.default.useEffect(()=>(S.itemMap.set(D,{ref:D,...w}),()=>void S.itemMap.delete(D))),(0,fm.jsx)(h,{[d]:"",ref:E,children:x})});g.displayName=p;function v(m){let y=a(e+"CollectionConsumer",m);return xi.default.useCallback(()=>{let x=y.collectionRef.current;if(!x)return[];let w=Array.from(x.querySelectorAll(`[${d}]`));return Array.from(y.itemMap.values()).sort((S,P)=>w.indexOf(S.ref.current)-w.indexOf(P.ref.current))},[y.collectionRef,y.itemMap])}return[{Provider:s,Slot:c,ItemSlot:g},v,n]}i();var dm=k(require("react"),1),NQ=require("react/jsx-runtime"),VQ=dm.createContext(void 0);function mm(e){let t=dm.useContext(VQ);return e||t||"ltr"}i();var Qe=k(require("react"),1);i();var bl=k(require("react"),1);function It(e){let t=bl.useRef(e);return bl.useEffect(()=>{t.current=e}),bl.useMemo(()=>(...r)=>t.current?.(...r),[])}i();var uF=k(require("react"),1);function cF(e,t=globalThis?.document){let r=It(e);uF.useEffect(()=>{let n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var z4=require("react/jsx-runtime"),LQ="DismissableLayer",$4="dismissableLayer.update",$Q="dismissableLayer.pointerDownOutside",zQ="dismissableLayer.focusOutside",fF,dF=Qe.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),G4=Qe.forwardRef((e,t)=>{let{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,onDismiss:l,...u}=e,c=Qe.useContext(dF),[p,d]=Qe.useState(null),h=p?.ownerDocument??globalThis?.document,[,g]=Qe.useState({}),v=Je(t,P=>d(P)),m=Array.from(c.layers),[y]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),b=m.indexOf(y),x=p?m.indexOf(p):-1,w=c.layersWithOutsidePointerEventsDisabled.size>0,D=x>=b,E=jQ(P=>{let A=P.target,B=[...c.branches].some(I=>I.contains(A));!D||B||(o?.(P),s?.(P),P.defaultPrevented||l?.())},h),S=WQ(P=>{let A=P.target;[...c.branches].some(I=>I.contains(A))||(a?.(P),s?.(P),P.defaultPrevented||l?.())},h);return cF(P=>{x===c.layers.size-1&&(n?.(P),!P.defaultPrevented&&l&&(P.preventDefault(),l()))},h),Qe.useEffect(()=>{if(p)return r&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(fF=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(p)),c.layers.add(p),pF(),()=>{r&&c.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=fF)}},[p,h,r,c]),Qe.useEffect(()=>()=>{p&&(c.layers.delete(p),c.layersWithOutsidePointerEventsDisabled.delete(p),pF())},[p,c]),Qe.useEffect(()=>{let P=()=>g({});return document.addEventListener($4,P),()=>document.removeEventListener($4,P)},[]),(0,z4.jsx)(Ze.div,{...u,ref:v,style:{pointerEvents:w?D?"auto":"none":void 0,...e.style},onFocusCapture:xe(e.onFocusCapture,S.onFocusCapture),onBlurCapture:xe(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:xe(e.onPointerDownCapture,E.onPointerDownCapture)})});G4.displayName=LQ;var GQ="DismissableLayerBranch",HQ=Qe.forwardRef((e,t)=>{let r=Qe.useContext(dF),n=Qe.useRef(null),o=Je(t,n);return Qe.useEffect(()=>{let a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),(0,z4.jsx)(Ze.div,{...e,ref:o})});HQ.displayName=GQ;function jQ(e,t=globalThis?.document){let r=It(e),n=Qe.useRef(!1),o=Qe.useRef(()=>{});return Qe.useEffect(()=>{let a=l=>{if(l.target&&!n.current){let c=function(){mF($Q,r,p,{discrete:!0})};var u=c;let p={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);n.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function WQ(e,t=globalThis?.document){let r=It(e),n=Qe.useRef(!1);return Qe.useEffect(()=>{let o=a=>{a.target&&!n.current&&mF(zQ,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function pF(){let e=new CustomEvent($4);document.dispatchEvent(e)}function mF(e,t,r,{discrete:n}){let o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?cm(o,a):o.dispatchEvent(a)}i();var gF=k(require("react"),1),H4=0;function vF(){gF.useEffect(()=>{let e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??hF()),document.body.insertAdjacentElement("beforeend",e[1]??hF()),H4++,()=>{H4===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),H4--}},[])}function hF(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}i();var Vr=k(require("react"),1);var wF=require("react/jsx-runtime"),j4="focusScope.autoFocusOnMount",W4="focusScope.autoFocusOnUnmount",yF={bubbles:!1,cancelable:!0},_Q="FocusScope",_4=Vr.forwardRef((e,t)=>{let{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...s}=e,[l,u]=Vr.useState(null),c=It(o),p=It(a),d=Vr.useRef(null),h=Je(t,m=>u(m)),g=Vr.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;Vr.useEffect(()=>{if(n){let x=function(S){if(g.paused||!l)return;let P=S.target;l.contains(P)?d.current=P:wi(d.current,{select:!0})},w=function(S){if(g.paused||!l)return;let P=S.relatedTarget;P!==null&&(l.contains(P)||wi(d.current,{select:!0}))},D=function(S){if(document.activeElement===document.body)for(let A of S)A.removedNodes.length>0&&wi(l)};var m=x,y=w,b=D;document.addEventListener("focusin",x),document.addEventListener("focusout",w);let E=new MutationObserver(D);return l&&E.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",x),document.removeEventListener("focusout",w),E.disconnect()}}},[n,l,g.paused]),Vr.useEffect(()=>{if(l){CF.add(g);let m=document.activeElement;if(!l.contains(m)){let b=new CustomEvent(j4,yF);l.addEventListener(j4,c),l.dispatchEvent(b),b.defaultPrevented||(UQ(JQ(SF(l)),{select:!0}),document.activeElement===m&&wi(l))}return()=>{l.removeEventListener(j4,c),setTimeout(()=>{let b=new CustomEvent(W4,yF);l.addEventListener(W4,p),l.dispatchEvent(b),b.defaultPrevented||wi(m??document.body,{select:!0}),l.removeEventListener(W4,p),CF.remove(g)},0)}}},[l,c,p,g]);let v=Vr.useCallback(m=>{if(!r&&!n||g.paused)return;let y=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,b=document.activeElement;if(y&&b){let x=m.currentTarget,[w,D]=KQ(x);w&&D?!m.shiftKey&&b===D?(m.preventDefault(),r&&wi(w,{select:!0})):m.shiftKey&&b===w&&(m.preventDefault(),r&&wi(D,{select:!0})):b===x&&m.preventDefault()}},[r,n,g.paused]);return(0,wF.jsx)(Ze.div,{tabIndex:-1,...s,ref:h,onKeyDown:v})});_4.displayName=_Q;function UQ(e,{select:t=!1}={}){let r=document.activeElement;for(let n of e)if(wi(n,{select:t}),document.activeElement!==r)return}function KQ(e){let t=SF(e),r=bF(t,e),n=bF(t.reverse(),e);return[r,n]}function SF(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{let o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function bF(e,t){for(let r of e)if(!qQ(r,{upTo:t}))return r}function qQ(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function XQ(e){return e instanceof HTMLInputElement&&"select"in e}function wi(e,{select:t=!1}={}){if(e&&e.focus){let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&XQ(e)&&t&&e.select()}}var CF=YQ();function YQ(){let e=[];return{add(t){let r=e[0];t!==r&&r?.pause(),e=xF(e,t),e.unshift(t)},remove(t){e=xF(e,t),e[0]?.resume()}}}function xF(e,t){let r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function JQ(e){return e.filter(t=>t.tagName!=="A")}i();var U4=k(require("react"),1);var ZQ=U4[" useId ".trim().toString()]||(()=>{}),QQ=0;function Si(e){let[t,r]=U4.useState(ZQ());return ur(()=>{e||r(n=>n??String(QQ++))},[e]),e||(t?`radix-${t}`:"")}i();var Pr=k(require("react"),1);i();i();i();i();var DF=["top","right","bottom","left"];var Fn=Math.min,Wt=Math.max,Rc=Math.round,Fc=Math.floor,on=e=>({x:e,y:e}),eee={left:"right",right:"left",bottom:"top",top:"bottom"},tee={start:"end",end:"start"};function gm(e,t,r){return Wt(e,Fn(t,r))}function Bn(e,t){return typeof e=="function"?e(t):e}function On(e){return e.split("-")[0]}function da(e){return e.split("-")[1]}function vm(e){return e==="x"?"y":"x"}function ym(e){return e==="y"?"height":"width"}function yo(e){return["top","bottom"].includes(On(e))?"y":"x"}function bm(e){return vm(yo(e))}function EF(e,t,r){r===void 0&&(r=!1);let n=da(e),o=bm(e),a=ym(o),s=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=Ac(s)),[s,Ac(s)]}function PF(e){let t=Ac(e);return[hm(e),t,hm(t)]}function hm(e){return e.replace(/start|end/g,t=>tee[t])}function ree(e,t,r){let n=["left","right"],o=["right","left"],a=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return r?t?o:n:t?n:o;case"left":case"right":return t?a:s;default:return[]}}function TF(e,t,r,n){let o=da(e),a=ree(On(e),r==="start",n);return o&&(a=a.map(s=>s+"-"+o),t&&(a=a.concat(a.map(hm)))),a}function Ac(e){return e.replace(/left|right|bottom|top/g,t=>eee[t])}function nee(e){return{top:0,right:0,bottom:0,left:0,...e}}function K4(e){return typeof e!="number"?nee(e):{top:e,right:e,bottom:e,left:e}}function ma(e){let{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function AF(e,t,r){let{reference:n,floating:o}=e,a=yo(t),s=bm(t),l=ym(s),u=On(t),c=a==="y",p=n.x+n.width/2-o.width/2,d=n.y+n.height/2-o.height/2,h=n[l]/2-o[l]/2,g;switch(u){case"top":g={x:p,y:n.y-o.height};break;case"bottom":g={x:p,y:n.y+n.height};break;case"right":g={x:n.x+n.width,y:d};break;case"left":g={x:n.x-o.width,y:d};break;default:g={x:n.x,y:n.y}}switch(da(t)){case"start":g[s]-=h*(r&&c?-1:1);break;case"end":g[s]+=h*(r&&c?-1:1);break}return g}var BF=async(e,t,r)=>{let{placement:n="bottom",strategy:o="absolute",middleware:a=[],platform:s}=r,l=a.filter(Boolean),u=await(s.isRTL==null?void 0:s.isRTL(t)),c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:p,y:d}=AF(c,n,u),h=n,g={},v=0;for(let m=0;m<l.length;m++){let{name:y,fn:b}=l[m],{x,y:w,data:D,reset:E}=await b({x:p,y:d,initialPlacement:n,placement:h,strategy:o,middlewareData:g,rects:c,platform:s,elements:{reference:e,floating:t}});p=x??p,d=w??d,g={...g,[y]:{...g[y],...D}},E&&v<=50&&(v++,typeof E=="object"&&(E.placement&&(h=E.placement),E.rects&&(c=E.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):E.rects),{x:p,y:d}=AF(c,h,u)),m=-1)}return{x:p,y:d,placement:h,strategy:o,middlewareData:g}};async function Cl(e,t){var r;t===void 0&&(t={});let{x:n,y:o,platform:a,rects:s,elements:l,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:p="viewport",elementContext:d="floating",altBoundary:h=!1,padding:g=0}=Bn(t,e),v=K4(g),y=l[h?d==="floating"?"reference":"floating":d],b=ma(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(y)))==null||r?y:y.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:c,rootBoundary:p,strategy:u})),x=d==="floating"?{x:n,y:o,width:s.floating.width,height:s.floating.height}:s.reference,w=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),D=await(a.isElement==null?void 0:a.isElement(w))?await(a.getScale==null?void 0:a.getScale(w))||{x:1,y:1}:{x:1,y:1},E=ma(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:x,offsetParent:w,strategy:u}):x);return{top:(b.top-E.top+v.top)/D.y,bottom:(E.bottom-b.bottom+v.bottom)/D.y,left:(b.left-E.left+v.left)/D.x,right:(E.right-b.right+v.right)/D.x}}var OF=e=>({name:"arrow",options:e,async fn(t){let{x:r,y:n,placement:o,rects:a,platform:s,elements:l,middlewareData:u}=t,{element:c,padding:p=0}=Bn(e,t)||{};if(c==null)return{};let d=K4(p),h={x:r,y:n},g=bm(o),v=ym(g),m=await s.getDimensions(c),y=g==="y",b=y?"top":"left",x=y?"bottom":"right",w=y?"clientHeight":"clientWidth",D=a.reference[v]+a.reference[g]-h[g]-a.floating[v],E=h[g]-a.reference[g],S=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c)),P=S?S[w]:0;(!P||!await(s.isElement==null?void 0:s.isElement(S)))&&(P=l.floating[w]||a.floating[v]);let A=D/2-E/2,B=P/2-m[v]/2-1,I=Fn(d[b],B),_=Fn(d[x],B),V=I,L=P-m[v]-_,z=P/2-m[v]/2+A,j=gm(V,z,L),ee=!u.arrow&&da(o)!=null&&z!==j&&a.reference[v]/2-(z<V?I:_)-m[v]/2<0,re=ee?z<V?z-V:z-L:0;return{[g]:h[g]+re,data:{[g]:j,centerOffset:z-j-re,...ee&&{alignmentOffset:re}},reset:ee}}});var MF=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;let{placement:o,middlewareData:a,rects:s,initialPlacement:l,platform:u,elements:c}=t,{mainAxis:p=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:m=!0,...y}=Bn(e,t);if((r=a.arrow)!=null&&r.alignmentOffset)return{};let b=On(o),x=yo(l),w=On(l)===l,D=await(u.isRTL==null?void 0:u.isRTL(c.floating)),E=h||(w||!m?[Ac(l)]:PF(l)),S=v!=="none";!h&&S&&E.push(...TF(l,m,v,D));let P=[l,...E],A=await Cl(t,y),B=[],I=((n=a.flip)==null?void 0:n.overflows)||[];if(p&&B.push(A[b]),d){let z=EF(o,s,D);B.push(A[z[0]],A[z[1]])}if(I=[...I,{placement:o,overflows:B}],!B.every(z=>z<=0)){var _,V;let z=(((_=a.flip)==null?void 0:_.index)||0)+1,j=P[z];if(j)return{data:{index:z,overflows:I},reset:{placement:j}};let ee=(V=I.filter(re=>re.overflows[0]<=0).sort((re,Z)=>re.overflows[1]-Z.overflows[1])[0])==null?void 0:V.placement;if(!ee)switch(g){case"bestFit":{var L;let re=(L=I.filter(Z=>{if(S){let W=yo(Z.placement);return W===x||W==="y"}return!0}).map(Z=>[Z.placement,Z.overflows.filter(W=>W>0).reduce((W,ae)=>W+ae,0)]).sort((Z,W)=>Z[1]-W[1])[0])==null?void 0:L[0];re&&(ee=re);break}case"initialPlacement":ee=l;break}if(o!==ee)return{reset:{placement:ee}}}return{}}}};function RF(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function FF(e){return DF.some(t=>e[t]>=0)}var IF=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){let{rects:r}=t,{strategy:n="referenceHidden",...o}=Bn(e,t);switch(n){case"referenceHidden":{let a=await Cl(t,{...o,elementContext:"reference"}),s=RF(a,r.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:FF(s)}}}case"escaped":{let a=await Cl(t,{...o,altBoundary:!0}),s=RF(a,r.floating);return{data:{escapedOffsets:s,escaped:FF(s)}}}default:return{}}}}};async function oee(e,t){let{placement:r,platform:n,elements:o}=e,a=await(n.isRTL==null?void 0:n.isRTL(o.floating)),s=On(r),l=da(r),u=yo(r)==="y",c=["left","top"].includes(s)?-1:1,p=a&&u?-1:1,d=Bn(t,e),{mainAxis:h,crossAxis:g,alignmentAxis:v}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return l&&typeof v=="number"&&(g=l==="end"?v*-1:v),u?{x:g*p,y:h*c}:{x:h*c,y:g*p}}var kF=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;let{x:o,y:a,placement:s,middlewareData:l}=t,u=await oee(t,e);return s===((r=l.offset)==null?void 0:r.placement)&&(n=l.arrow)!=null&&n.alignmentOffset?{}:{x:o+u.x,y:a+u.y,data:{...u,placement:s}}}}},NF=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:n,placement:o}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:y=>{let{x:b,y:x}=y;return{x:b,y:x}}},...u}=Bn(e,t),c={x:r,y:n},p=await Cl(t,u),d=yo(On(o)),h=vm(d),g=c[h],v=c[d];if(a){let y=h==="y"?"top":"left",b=h==="y"?"bottom":"right",x=g+p[y],w=g-p[b];g=gm(x,g,w)}if(s){let y=d==="y"?"top":"left",b=d==="y"?"bottom":"right",x=v+p[y],w=v-p[b];v=gm(x,v,w)}let m=l.fn({...t,[h]:g,[d]:v});return{...m,data:{x:m.x-r,y:m.y-n,enabled:{[h]:a,[d]:s}}}}}},VF=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:r,y:n,placement:o,rects:a,middlewareData:s}=t,{offset:l=0,mainAxis:u=!0,crossAxis:c=!0}=Bn(e,t),p={x:r,y:n},d=yo(o),h=vm(d),g=p[h],v=p[d],m=Bn(l,t),y=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(u){let w=h==="y"?"height":"width",D=a.reference[h]-a.floating[w]+y.mainAxis,E=a.reference[h]+a.reference[w]-y.mainAxis;g<D?g=D:g>E&&(g=E)}if(c){var b,x;let w=h==="y"?"width":"height",D=["top","left"].includes(On(o)),E=a.reference[d]-a.floating[w]+(D&&((b=s.offset)==null?void 0:b[d])||0)+(D?0:y.crossAxis),S=a.reference[d]+a.reference[w]+(D?0:((x=s.offset)==null?void 0:x[d])||0)-(D?y.crossAxis:0);v<E?v=E:v>S&&(v=S)}return{[h]:g,[d]:v}}}},LF=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;let{placement:o,rects:a,platform:s,elements:l}=t,{apply:u=()=>{},...c}=Bn(e,t),p=await Cl(t,c),d=On(o),h=da(o),g=yo(o)==="y",{width:v,height:m}=a.floating,y,b;d==="top"||d==="bottom"?(y=d,b=h===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(b=d,y=h==="end"?"top":"bottom");let x=m-p.top-p.bottom,w=v-p.left-p.right,D=Fn(m-p[y],x),E=Fn(v-p[b],w),S=!t.middlewareData.shift,P=D,A=E;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(A=w),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(P=x),S&&!h){let I=Wt(p.left,0),_=Wt(p.right,0),V=Wt(p.top,0),L=Wt(p.bottom,0);g?A=v-2*(I!==0||_!==0?I+_:Wt(p.left,p.right)):P=m-2*(V!==0||L!==0?V+L:Wt(p.top,p.bottom))}await u({...t,availableWidth:A,availableHeight:P});let B=await s.getDimensions(l.floating);return v!==B.width||m!==B.height?{reset:{rects:!0}}:{}}}};i();function Cm(){return typeof window<"u"}function ga(e){return zF(e)?(e.nodeName||"").toLowerCase():"#document"}function cr(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function an(e){var t;return(t=(zF(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function zF(e){return Cm()?e instanceof Node||e instanceof cr(e).Node:!1}function Lr(e){return Cm()?e instanceof Element||e instanceof cr(e).Element:!1}function sn(e){return Cm()?e instanceof HTMLElement||e instanceof cr(e).HTMLElement:!1}function $F(e){return!Cm()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof cr(e).ShadowRoot}function xl(e){let{overflow:t,overflowX:r,overflowY:n,display:o}=$r(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(o)}function GF(e){return["table","td","th"].includes(ga(e))}function Bc(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function xm(e){let t=wm(),r=Lr(e)?$r(e):e;return["transform","translate","scale","rotate","perspective"].some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function HF(e){let t=bo(e);for(;sn(t)&&!va(t);){if(xm(t))return t;if(Bc(t))return null;t=bo(t)}return null}function wm(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function va(e){return["html","body","#document"].includes(ga(e))}function $r(e){return cr(e).getComputedStyle(e)}function Oc(e){return Lr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function bo(e){if(ga(e)==="html")return e;let t=e.assignedSlot||e.parentNode||$F(e)&&e.host||an(e);return $F(t)?t.host:t}function jF(e){let t=bo(e);return va(t)?e.ownerDocument?e.ownerDocument.body:e.body:sn(t)&&xl(t)?t:jF(t)}function ha(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);let o=jF(e),a=o===((n=e.ownerDocument)==null?void 0:n.body),s=cr(o);if(a){let l=Sm(s);return t.concat(s,s.visualViewport||[],xl(o)?o:[],l&&r?ha(l):[])}return t.concat(o,ha(o,[],r))}function Sm(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function UF(e){let t=$r(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,o=sn(e),a=o?e.offsetWidth:r,s=o?e.offsetHeight:n,l=Rc(r)!==a||Rc(n)!==s;return l&&(r=a,n=s),{width:r,height:n,$:l}}function X4(e){return Lr(e)?e:e.contextElement}function wl(e){let t=X4(e);if(!sn(t))return on(1);let r=t.getBoundingClientRect(),{width:n,height:o,$:a}=UF(t),s=(a?Rc(r.width):r.width)/n,l=(a?Rc(r.height):r.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var iee=on(0);function KF(e){let t=cr(e);return!wm()||!t.visualViewport?iee:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function aee(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==cr(e)?!1:t}function ya(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);let o=e.getBoundingClientRect(),a=X4(e),s=on(1);t&&(n?Lr(n)&&(s=wl(n)):s=wl(e));let l=aee(a,r,n)?KF(a):on(0),u=(o.left+l.x)/s.x,c=(o.top+l.y)/s.y,p=o.width/s.x,d=o.height/s.y;if(a){let h=cr(a),g=n&&Lr(n)?cr(n):n,v=h,m=Sm(v);for(;m&&n&&g!==v;){let y=wl(m),b=m.getBoundingClientRect(),x=$r(m),w=b.left+(m.clientLeft+parseFloat(x.paddingLeft))*y.x,D=b.top+(m.clientTop+parseFloat(x.paddingTop))*y.y;u*=y.x,c*=y.y,p*=y.x,d*=y.y,u+=w,c+=D,v=cr(m),m=Sm(v)}}return ma({width:p,height:d,x:u,y:c})}function Y4(e,t){let r=Oc(e).scrollLeft;return t?t.left+r:ya(an(e)).left+r}function qF(e,t,r){r===void 0&&(r=!1);let n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-(r?0:Y4(e,n)),a=n.top+t.scrollTop;return{x:o,y:a}}function see(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e,a=o==="fixed",s=an(n),l=t?Bc(t.floating):!1;if(n===s||l&&a)return r;let u={scrollLeft:0,scrollTop:0},c=on(1),p=on(0),d=sn(n);if((d||!d&&!a)&&((ga(n)!=="body"||xl(s))&&(u=Oc(n)),sn(n))){let g=ya(n);c=wl(n),p.x=g.x+n.clientLeft,p.y=g.y+n.clientTop}let h=s&&!d&&!a?qF(s,u,!0):on(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-u.scrollLeft*c.x+p.x+h.x,y:r.y*c.y-u.scrollTop*c.y+p.y+h.y}}function lee(e){return Array.from(e.getClientRects())}function uee(e){let t=an(e),r=Oc(e),n=e.ownerDocument.body,o=Wt(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),a=Wt(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight),s=-r.scrollLeft+Y4(e),l=-r.scrollTop;return $r(n).direction==="rtl"&&(s+=Wt(t.clientWidth,n.clientWidth)-o),{width:o,height:a,x:s,y:l}}function cee(e,t){let r=cr(e),n=an(e),o=r.visualViewport,a=n.clientWidth,s=n.clientHeight,l=0,u=0;if(o){a=o.width,s=o.height;let c=wm();(!c||c&&t==="fixed")&&(l=o.offsetLeft,u=o.offsetTop)}return{width:a,height:s,x:l,y:u}}function fee(e,t){let r=ya(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,a=sn(e)?wl(e):on(1),s=e.clientWidth*a.x,l=e.clientHeight*a.y,u=o*a.x,c=n*a.y;return{width:s,height:l,x:u,y:c}}function WF(e,t,r){let n;if(t==="viewport")n=cee(e,r);else if(t==="document")n=uee(an(e));else if(Lr(t))n=fee(t,r);else{let o=KF(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return ma(n)}function XF(e,t){let r=bo(e);return r===t||!Lr(r)||va(r)?!1:$r(r).position==="fixed"||XF(r,t)}function pee(e,t){let r=t.get(e);if(r)return r;let n=ha(e,[],!1).filter(l=>Lr(l)&&ga(l)!=="body"),o=null,a=$r(e).position==="fixed",s=a?bo(e):e;for(;Lr(s)&&!va(s);){let l=$r(s),u=xm(s);!u&&l.position==="fixed"&&(o=null),(a?!u&&!o:!u&&l.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||xl(s)&&!u&&XF(e,s))?n=n.filter(p=>p!==s):o=l,s=bo(s)}return t.set(e,n),n}function dee(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e,s=[...r==="clippingAncestors"?Bc(t)?[]:pee(t,this._c):[].concat(r),n],l=s[0],u=s.reduce((c,p)=>{let d=WF(t,p,o);return c.top=Wt(d.top,c.top),c.right=Fn(d.right,c.right),c.bottom=Fn(d.bottom,c.bottom),c.left=Wt(d.left,c.left),c},WF(t,l,o));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function mee(e){let{width:t,height:r}=UF(e);return{width:t,height:r}}function hee(e,t,r){let n=sn(t),o=an(t),a=r==="fixed",s=ya(e,!0,a,t),l={scrollLeft:0,scrollTop:0},u=on(0);if(n||!n&&!a)if((ga(t)!=="body"||xl(o))&&(l=Oc(t)),n){let h=ya(t,!0,a,t);u.x=h.x+t.clientLeft,u.y=h.y+t.clientTop}else o&&(u.x=Y4(o));let c=o&&!n&&!a?qF(o,l):on(0),p=s.left+l.scrollLeft-u.x-c.x,d=s.top+l.scrollTop-u.y-c.y;return{x:p,y:d,width:s.width,height:s.height}}function q4(e){return $r(e).position==="static"}function _F(e,t){if(!sn(e)||$r(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return an(e)===r&&(r=r.ownerDocument.body),r}function YF(e,t){let r=cr(e);if(Bc(e))return r;if(!sn(e)){let o=bo(e);for(;o&&!va(o);){if(Lr(o)&&!q4(o))return o;o=bo(o)}return r}let n=_F(e,t);for(;n&&GF(n)&&q4(n);)n=_F(n,t);return n&&va(n)&&q4(n)&&!xm(n)?r:n||HF(e)||r}var gee=async function(e){let t=this.getOffsetParent||YF,r=this.getDimensions,n=await r(e.floating);return{reference:hee(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function vee(e){return $r(e).direction==="rtl"}var JF={convertOffsetParentRelativeRectToViewportRelativeRect:see,getDocumentElement:an,getClippingRect:dee,getOffsetParent:YF,getElementRects:gee,getClientRects:lee,getDimensions:mee,getScale:wl,isElement:Lr,isRTL:vee};function ZF(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function yee(e,t){let r=null,n,o=an(e);function a(){var l;clearTimeout(n),(l=r)==null||l.disconnect(),r=null}function s(l,u){l===void 0&&(l=!1),u===void 0&&(u=1),a();let c=e.getBoundingClientRect(),{left:p,top:d,width:h,height:g}=c;if(l||t(),!h||!g)return;let v=Fc(d),m=Fc(o.clientWidth-(p+h)),y=Fc(o.clientHeight-(d+g)),b=Fc(p),w={rootMargin:-v+"px "+-m+"px "+-y+"px "+-b+"px",threshold:Wt(0,Fn(1,u))||1},D=!0;function E(S){let P=S[0].intersectionRatio;if(P!==u){if(!D)return s();P?s(!1,P):n=setTimeout(()=>{s(!1,1e-7)},1e3)}P===1&&!ZF(c,e.getBoundingClientRect())&&s(),D=!1}try{r=new IntersectionObserver(E,{...w,root:o.ownerDocument})}catch{r=new IntersectionObserver(E,w)}r.observe(e)}return s(!0),a}function J4(e,t,r,n){n===void 0&&(n={});let{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:u=!1}=n,c=X4(e),p=o||a?[...c?ha(c):[],...ha(t)]:[];p.forEach(b=>{o&&b.addEventListener("scroll",r,{passive:!0}),a&&b.addEventListener("resize",r)});let d=c&&l?yee(c,r):null,h=-1,g=null;s&&(g=new ResizeObserver(b=>{let[x]=b;x&&x.target===c&&g&&(g.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var w;(w=g)==null||w.observe(t)})),r()}),c&&!u&&g.observe(c),g.observe(t));let v,m=u?ya(e):null;u&&y();function y(){let b=ya(e);m&&!ZF(m,b)&&r(),m=b,v=requestAnimationFrame(y)}return r(),()=>{var b;p.forEach(x=>{o&&x.removeEventListener("scroll",r),a&&x.removeEventListener("resize",r)}),d?.(),(b=g)==null||b.disconnect(),g=null,u&&cancelAnimationFrame(v)}}var QF=kF;var eB=NF,tB=MF,rB=LF,nB=IF,Z4=OF;var oB=VF,Q4=(e,t,r)=>{let n=new Map,o={platform:JF,...r},a={...o.platform,_c:n};return BF(e,t,{...o,platform:a})};var lt=k(require("react"),1),Pm=require("react"),aB=k(require("react-dom"),1),Dm=typeof document<"u"?Pm.useLayoutEffect:Pm.useEffect;function Em(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!Em(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){let a=o[n];if(!(a==="_owner"&&e.$$typeof)&&!Em(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function sB(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function iB(e,t){let r=sB(e);return Math.round(t*r)/r}function ev(e){let t=lt.useRef(e);return Dm(()=>{t.current=e}),t}function lB(e){e===void 0&&(e={});let{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:a,floating:s}={},transform:l=!0,whileElementsMounted:u,open:c}=e,[p,d]=lt.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[h,g]=lt.useState(n);Em(h,n)||g(n);let[v,m]=lt.useState(null),[y,b]=lt.useState(null),x=lt.useCallback(Z=>{Z!==S.current&&(S.current=Z,m(Z))},[]),w=lt.useCallback(Z=>{Z!==P.current&&(P.current=Z,b(Z))},[]),D=a||v,E=s||y,S=lt.useRef(null),P=lt.useRef(null),A=lt.useRef(p),B=u!=null,I=ev(u),_=ev(o),V=ev(c),L=lt.useCallback(()=>{if(!S.current||!P.current)return;let Z={placement:t,strategy:r,middleware:h};_.current&&(Z.platform=_.current),Q4(S.current,P.current,Z).then(W=>{let ae={...W,isPositioned:V.current!==!1};z.current&&!Em(A.current,ae)&&(A.current=ae,aB.flushSync(()=>{d(ae)}))})},[h,t,r,_,V]);Dm(()=>{c===!1&&A.current.isPositioned&&(A.current.isPositioned=!1,d(Z=>({...Z,isPositioned:!1})))},[c]);let z=lt.useRef(!1);Dm(()=>(z.current=!0,()=>{z.current=!1}),[]),Dm(()=>{if(D&&(S.current=D),E&&(P.current=E),D&&E){if(I.current)return I.current(D,E,L);L()}},[D,E,L,I,B]);let j=lt.useMemo(()=>({reference:S,floating:P,setReference:x,setFloating:w}),[x,w]),ee=lt.useMemo(()=>({reference:D,floating:E}),[D,E]),re=lt.useMemo(()=>{let Z={position:r,left:0,top:0};if(!ee.floating)return Z;let W=iB(ee.floating,p.x),ae=iB(ee.floating,p.y);return l?{...Z,transform:"translate("+W+"px, "+ae+"px)",...sB(ee.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:W,top:ae}},[r,l,ee.floating,p.x,p.y]);return lt.useMemo(()=>({...p,update:L,refs:j,elements:ee,floatingStyles:re}),[p,L,j,ee,re])}var bee=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){let{element:n,padding:o}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?Z4({element:n.current,padding:o}).fn(r):{}:n?Z4({element:n,padding:o}).fn(r):{}}}},uB=(e,t)=>({...QF(e),options:[e,t]}),cB=(e,t)=>({...eB(e),options:[e,t]}),fB=(e,t)=>({...oB(e),options:[e,t]}),pB=(e,t)=>({...tB(e),options:[e,t]}),dB=(e,t)=>({...rB(e),options:[e,t]});var mB=(e,t)=>({...nB(e),options:[e,t]});var hB=(e,t)=>({...bee(e),options:[e,t]});i();var gB=k(require("react"),1);var tv=require("react/jsx-runtime"),Cee="Arrow",vB=gB.forwardRef((e,t)=>{let{children:r,width:n=10,height:o=5,...a}=e;return(0,tv.jsx)(Ze.svg,{...a,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:(0,tv.jsx)("polygon",{points:"0,0 30,0 15,10"})})});vB.displayName=Cee;var yB=vB;i();var bB=k(require("react"),1);function CB(e){let[t,r]=bB.useState(void 0);return ur(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});let n=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;let a=o[0],s,l;if("borderBoxSize"in a){let u=a.borderBoxSize,c=Array.isArray(u)?u[0]:u;s=c.inlineSize,l=c.blockSize}else s=e.offsetWidth,l=e.offsetHeight;r({width:s,height:l})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var Di=require("react/jsx-runtime");var rv="Popper",[xB,nv]=Rn(rv),[wee,wB]=xB(rv),SB=e=>{let{__scopePopper:t,children:r}=e,[n,o]=Pr.useState(null);return(0,Di.jsx)(wee,{scope:t,anchor:n,onAnchorChange:o,children:r})};SB.displayName=rv;var DB="PopperAnchor",EB=Pr.forwardRef((e,t)=>{let{__scopePopper:r,virtualRef:n,...o}=e,a=wB(DB,r),s=Pr.useRef(null),l=Je(t,s);return Pr.useEffect(()=>{a.onAnchorChange(n?.current||s.current)}),n?null:(0,Di.jsx)(Ze.div,{...o,ref:l})});EB.displayName=DB;var ov="PopperContent",[See,Dee]=xB(ov),PB=Pr.forwardRef((e,t)=>{let{__scopePopper:r,side:n="bottom",sideOffset:o=0,align:a="center",alignOffset:s=0,arrowPadding:l=0,avoidCollisions:u=!0,collisionBoundary:c=[],collisionPadding:p=0,sticky:d="partial",hideWhenDetached:h=!1,updatePositionStrategy:g="optimized",onPlaced:v,...m}=e,y=wB(ov,r),[b,x]=Pr.useState(null),w=Je(t,U=>x(U)),[D,E]=Pr.useState(null),S=CB(D),P=S?.width??0,A=S?.height??0,B=n+(a!=="center"?"-"+a:""),I=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},_=Array.isArray(c)?c:[c],V=_.length>0,L={padding:I,boundary:_.filter(Pee),altBoundary:V},{refs:z,floatingStyles:j,placement:ee,isPositioned:re,middlewareData:Z}=lB({strategy:"fixed",placement:B,whileElementsMounted:(...U)=>J4(...U,{animationFrame:g==="always"}),elements:{reference:y.anchor},middleware:[uB({mainAxis:o+A,alignmentAxis:s}),u&&cB({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?fB():void 0,...L}),u&&pB({...L}),dB({...L,apply:({elements:U,rects:ce,availableWidth:le,availableHeight:he})=>{let{width:Se,height:Te}=ce.reference,Re=U.floating.style;Re.setProperty("--radix-popper-available-width",`${le}px`),Re.setProperty("--radix-popper-available-height",`${he}px`),Re.setProperty("--radix-popper-anchor-width",`${Se}px`),Re.setProperty("--radix-popper-anchor-height",`${Te}px`)}}),D&&hB({element:D,padding:l}),Tee({arrowWidth:P,arrowHeight:A}),h&&mB({strategy:"referenceHidden",...L})]}),[W,ae]=RB(ee),be=It(v);ur(()=>{re&&be?.()},[re,be]);let me=Z.arrow?.x,Ke=Z.arrow?.y,R=Z.arrow?.centerOffset!==0,[K,H]=Pr.useState();return ur(()=>{b&&H(window.getComputedStyle(b).zIndex)},[b]),(0,Di.jsx)("div",{ref:z.setFloating,"data-radix-popper-content-wrapper":"",style:{...j,transform:re?j.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:K,"--radix-popper-transform-origin":[Z.transformOrigin?.x,Z.transformOrigin?.y].join(" "),...Z.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,Di.jsx)(See,{scope:r,placedSide:W,onArrowChange:E,arrowX:me,arrowY:Ke,shouldHideArrow:R,children:(0,Di.jsx)(Ze.div,{"data-side":W,"data-align":ae,...m,ref:w,style:{...m.style,animation:re?void 0:"none"}})})})});PB.displayName=ov;var TB="PopperArrow",Eee={top:"bottom",right:"left",bottom:"top",left:"right"},AB=Pr.forwardRef(function(t,r){let{__scopePopper:n,...o}=t,a=Dee(TB,n),s=Eee[a.placedSide];return(0,Di.jsx)("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:(0,Di.jsx)(yB,{...o,ref:r,style:{...o.style,display:"block"}})})});AB.displayName=TB;function Pee(e){return e!==null}var Tee=e=>({name:"transformOrigin",options:e,fn(t){let{placement:r,rects:n,middlewareData:o}=t,s=o.arrow?.centerOffset!==0,l=s?0:e.arrowWidth,u=s?0:e.arrowHeight,[c,p]=RB(r),d={start:"0%",center:"50%",end:"100%"}[p],h=(o.arrow?.x??0)+l/2,g=(o.arrow?.y??0)+u/2,v="",m="";return c==="bottom"?(v=s?d:`${h}px`,m=`${-u}px`):c==="top"?(v=s?d:`${h}px`,m=`${n.floating.height+u}px`):c==="right"?(v=`${-u}px`,m=s?d:`${g}px`):c==="left"&&(v=`${n.floating.width+u}px`,m=s?d:`${g}px`),{data:{x:v,y:m}}}});function RB(e){let[t,r="center"]=e.split("-");return[t,r]}var iv=SB,FB=EB,BB=PB,OB=AB;i();var Tm=k(require("react"),1),MB=k(require("react-dom"),1);var IB=require("react/jsx-runtime"),Ree="Portal",av=Tm.forwardRef((e,t)=>{let{container:r,...n}=e,[o,a]=Tm.useState(!1);ur(()=>a(!0),[]);let s=r||o&&globalThis?.document?.body;return s?MB.default.createPortal((0,IB.jsx)(Ze.div,{...n,ref:t}),s):null});av.displayName=Ree;i();var fr=k(require("react"),1);var kB=k(require("react"),1);function Fee(e,t){return kB.useReducer((r,n)=>t[r][n]??r,e)}var Sl=e=>{let{present:t,children:r}=e,n=Bee(t),o=typeof r=="function"?r({present:n.isPresent}):fr.Children.only(r),a=Je(n.ref,Oee(o));return typeof r=="function"||n.isPresent?fr.cloneElement(o,{ref:a}):null};Sl.displayName="Presence";function Bee(e){let[t,r]=fr.useState(),n=fr.useRef(null),o=fr.useRef(e),a=fr.useRef("none"),s=e?"mounted":"unmounted",[l,u]=Fee(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return fr.useEffect(()=>{let c=Am(n.current);a.current=l==="mounted"?c:"none"},[l]),ur(()=>{let c=n.current,p=o.current;if(p!==e){let h=a.current,g=Am(c);e?u("MOUNT"):g==="none"||c?.display==="none"?u("UNMOUNT"):u(p&&h!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,u]),ur(()=>{if(t){let c,p=t.ownerDocument.defaultView??window,d=g=>{let m=Am(n.current).includes(g.animationName);if(g.target===t&&m&&(u("ANIMATION_END"),!o.current)){let y=t.style.animationFillMode;t.style.animationFillMode="forwards",c=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=y)})}},h=g=>{g.target===t&&(a.current=Am(n.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{p.clearTimeout(c),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:fr.useCallback(c=>{n.current=c?getComputedStyle(c):null,r(c)},[])}}function Am(e){return e?.animationName||"none"}function Oee(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}i();var bt=k(require("react"),1);var Ei=require("react/jsx-runtime"),sv="rovingFocusGroup.onEntryFocus",Mee={bubbles:!1,cancelable:!0},Mc="RovingFocusGroup",[lv,NB,Iee]=pm(Mc),[kee,uv]=Rn(Mc,[Iee]),[Nee,Vee]=kee(Mc),VB=bt.forwardRef((e,t)=>(0,Ei.jsx)(lv.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,Ei.jsx)(lv.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,Ei.jsx)(Lee,{...e,ref:t})})}));VB.displayName=Mc;var Lee=bt.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:a,currentTabStopId:s,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:u,onEntryFocus:c,preventScrollOnEntryFocus:p=!1,...d}=e,h=bt.useRef(null),g=Je(t,h),v=mm(a),[m,y]=Tc({prop:s,defaultProp:l??null,onChange:u,caller:Mc}),[b,x]=bt.useState(!1),w=It(c),D=NB(r),E=bt.useRef(!1),[S,P]=bt.useState(0);return bt.useEffect(()=>{let A=h.current;if(A)return A.addEventListener(sv,w),()=>A.removeEventListener(sv,w)},[w]),(0,Ei.jsx)(Nee,{scope:r,orientation:n,dir:v,loop:o,currentTabStopId:m,onItemFocus:bt.useCallback(A=>y(A),[y]),onItemShiftTab:bt.useCallback(()=>x(!0),[]),onFocusableItemAdd:bt.useCallback(()=>P(A=>A+1),[]),onFocusableItemRemove:bt.useCallback(()=>P(A=>A-1),[]),children:(0,Ei.jsx)(Ze.div,{tabIndex:b||S===0?-1:0,"data-orientation":n,...d,ref:g,style:{outline:"none",...e.style},onMouseDown:xe(e.onMouseDown,()=>{E.current=!0}),onFocus:xe(e.onFocus,A=>{let B=!E.current;if(A.target===A.currentTarget&&B&&!b){let I=new CustomEvent(sv,Mee);if(A.currentTarget.dispatchEvent(I),!I.defaultPrevented){let _=D().filter(ee=>ee.focusable),V=_.find(ee=>ee.active),L=_.find(ee=>ee.id===m),j=[V,L,..._].filter(Boolean).map(ee=>ee.ref.current);zB(j,p)}}E.current=!1}),onBlur:xe(e.onBlur,()=>x(!1))})})}),LB="RovingFocusGroupItem",$B=bt.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:a,children:s,...l}=e,u=Si(),c=a||u,p=Vee(LB,r),d=p.currentTabStopId===c,h=NB(r),{onFocusableItemAdd:g,onFocusableItemRemove:v,currentTabStopId:m}=p;return bt.useEffect(()=>{if(n)return g(),()=>v()},[n,g,v]),(0,Ei.jsx)(lv.ItemSlot,{scope:r,id:c,focusable:n,active:o,children:(0,Ei.jsx)(Ze.span,{tabIndex:d?0:-1,"data-orientation":p.orientation,...l,ref:t,onMouseDown:xe(e.onMouseDown,y=>{n?p.onItemFocus(c):y.preventDefault()}),onFocus:xe(e.onFocus,()=>p.onItemFocus(c)),onKeyDown:xe(e.onKeyDown,y=>{if(y.key==="Tab"&&y.shiftKey){p.onItemShiftTab();return}if(y.target!==y.currentTarget)return;let b=Gee(y,p.orientation,p.dir);if(b!==void 0){if(y.metaKey||y.ctrlKey||y.altKey||y.shiftKey)return;y.preventDefault();let w=h().filter(D=>D.focusable).map(D=>D.ref.current);if(b==="last")w.reverse();else if(b==="prev"||b==="next"){b==="prev"&&w.reverse();let D=w.indexOf(y.currentTarget);w=p.loop?Hee(w,D+1):w.slice(D+1)}setTimeout(()=>zB(w))}}),children:typeof s=="function"?s({isCurrentTabStop:d,hasTabStop:m!=null}):s})})});$B.displayName=LB;var $ee={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function zee(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Gee(e,t,r){let n=zee(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return $ee[n]}function zB(e,t=!1){let r=document.activeElement;for(let n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function Hee(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var GB=VB,HB=$B;i();var Wee=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Dl=new WeakMap,Rm=new WeakMap,Fm={},cv=0,jB=function(e){return e&&(e.host||jB(e.parentNode))},_ee=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=jB(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},Uee=function(e,t,r,n){var o=_ee(t,Array.isArray(e)?e:[e]);Fm[r]||(Fm[r]=new WeakMap);var a=Fm[r],s=[],l=new Set,u=new Set(o),c=function(d){!d||l.has(d)||(l.add(d),c(d.parentNode))};o.forEach(c);var p=function(d){!d||u.has(d)||Array.prototype.forEach.call(d.children,function(h){if(l.has(h))p(h);else try{var g=h.getAttribute(n),v=g!==null&&g!=="false",m=(Dl.get(h)||0)+1,y=(a.get(h)||0)+1;Dl.set(h,m),a.set(h,y),s.push(h),m===1&&v&&Rm.set(h,!0),y===1&&h.setAttribute(r,"true"),v||h.setAttribute(n,"true")}catch(b){console.error("aria-hidden: cannot operate on ",h,b)}})};return p(t),l.clear(),cv++,function(){s.forEach(function(d){var h=Dl.get(d)-1,g=a.get(d)-1;Dl.set(d,h),a.set(d,g),h||(Rm.has(d)||d.removeAttribute(n),Rm.delete(d)),g||d.removeAttribute(r)}),cv--,cv||(Dl=new WeakMap,Dl=new WeakMap,Rm=new WeakMap,Fm={})}},WB=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=t||Wee(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live]"))),Uee(n,o,r,"aria-hidden")):function(){return null}};i();i();i();var pr=function(){return pr=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},pr.apply(this,arguments)};function Bm(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function _B(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var Nm=k(require("react"));i();var kt=k(require("react"));i();var ba="right-scroll-bar-position",Ca="width-before-scroll-bar",fv="with-scroll-bars-hidden",pv="--removed-body-scroll-bar-size";i();i();function Om(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}i();var UB=require("react");function KB(e,t){var r=(0,UB.useState)(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}i();var Mm=k(require("react"));var Kee=typeof window<"u"?Mm.useLayoutEffect:Mm.useEffect,qB=new WeakMap;function dv(e,t){var r=KB(t||null,function(n){return e.forEach(function(o){return Om(o,n)})});return Kee(function(){var n=qB.get(r);if(n){var o=new Set(n),a=new Set(e),s=r.current;o.forEach(function(l){a.has(l)||Om(l,null)}),a.forEach(function(l){o.has(l)||Om(l,s)})}qB.set(r,e)},[e]),r}i();i();i();function qee(e){return e}function Xee(e,t){t===void 0&&(t=qee);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var s=t(a,n);return r.push(s),function(){r=r.filter(function(l){return l!==s})}},assignSyncMedium:function(a){for(n=!0;r.length;){var s=r;r=[],s.forEach(a)}r={push:function(l){return a(l)},filter:function(){return r}}},assignMedium:function(a){n=!0;var s=[];if(r.length){var l=r;r=[],l.forEach(a),s=r}var u=function(){var p=s;s=[],p.forEach(a)},c=function(){return Promise.resolve().then(u)};c(),r={push:function(p){s.push(p),c()},filter:function(p){return s=s.filter(p),r}}}};return o}function mv(e){e===void 0&&(e={});var t=Xee(null);return t.options=pr({async:!0,ssr:!1},e),t}i();var XB=k(require("react")),YB=function(e){var t=e.sideCar,r=Bm(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return XB.createElement(n,pr({},r))};YB.isSideCarExport=!0;function hv(e,t){return e.useMedium(t),YB}var Im=mv();var gv=function(){},Ic=kt.forwardRef(function(e,t){var r=kt.useRef(null),n=kt.useState({onScrollCapture:gv,onWheelCapture:gv,onTouchMoveCapture:gv}),o=n[0],a=n[1],s=e.forwardProps,l=e.children,u=e.className,c=e.removeScrollBar,p=e.enabled,d=e.shards,h=e.sideCar,g=e.noIsolation,v=e.inert,m=e.allowPinchZoom,y=e.as,b=y===void 0?"div":y,x=e.gapMode,w=Bm(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),D=h,E=dv([r,t]),S=pr(pr({},w),o);return kt.createElement(kt.Fragment,null,p&&kt.createElement(D,{sideCar:Im,removeScrollBar:c,shards:d,noIsolation:g,inert:v,setCallbacks:a,allowPinchZoom:!!m,lockRef:r,gapMode:x}),s?kt.cloneElement(kt.Children.only(l),pr(pr({},S),{ref:E})):kt.createElement(b,pr({},S,{className:u,ref:E}),l))});Ic.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ic.classNames={fullWidth:Ca,zeroRight:ba};i();i();var He=k(require("react"));i();i();var Pl=k(require("react"));i();i();i();var QB=k(require("react"));i();i();var JB;var ZB=function(){if(JB)return JB;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Yee(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=ZB();return t&&e.setAttribute("nonce",t),e}function Jee(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Zee(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var vv=function(){var e=0,t=null;return{add:function(r){e==0&&(t=Yee())&&(Jee(t,r),Zee(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}};var yv=function(){var e=vv();return function(t,r){QB.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}};var kc=function(){var e=yv(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t};i();var Qee={left:0,top:0,right:0,gap:0},bv=function(e){return parseInt(e||"",10)||0},ete=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[bv(r),bv(n),bv(o)]},Cv=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Qee;var t=ete(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}};var tte=kc(),El="data-scroll-locked",rte=function(e,t,r,n){var o=e.left,a=e.top,s=e.right,l=e.gap;return r===void 0&&(r="margin"),`
2109
2109
  .`.concat(fv,` {
2110
2110
  overflow: hidden `).concat(n,`;
2111
2111
  padding-right: `).concat(l,"px ").concat(n,`;
@@ -2667,7 +2667,7 @@
2667
2667
  `,sne=Hr.default.div`
2668
2668
  position: relative;
2669
2669
  `,lne=(0,Hr.default)(rt)`
2670
- ${({theme:e,inputButtonOverride:t})=>t&&`
2670
+ ${({theme:e,$inputButtonOverride:t})=>t&&`
2671
2671
  && {
2672
2672
  background-color: white;
2673
2673
  border: 1px solid ${e.color.grey300};
@@ -2699,7 +2699,7 @@
2699
2699
  background: ${e=>e.theme.color.grey100};
2700
2700
  }
2701
2701
 
2702
- ${e=>e.isActive&&`
2702
+ ${e=>e.$isActive&&`
2703
2703
  color: ${e.theme.color.blue600};
2704
2704
  font-weight: 600;
2705
2705
  `};
@@ -2746,7 +2746,7 @@
2746
2746
  visibility: hidden;
2747
2747
  width: calc(100% + 40px);
2748
2748
  }
2749
- `,m6=({align:e="left",buttonVariant:t="secondary",earliestDate:r,latestDate:n,format:o=one,fullWidth:a=!1,footerText:s,onChange:l,presets:u=[],range:c={end:new Date,start:new Date},shouldPreventFuture:p=!1,...d})=>{let[h,g]=(0,Do.useState)(c),[v,m]=(0,Do.useState)(!1),[y,b]=(0,Do.useState)(!0),[x,w]=(0,Do.useState)("end"),[D,E]=(0,Do.useState)([]),S=hn();return(0,Do.useEffect)(()=>{g(c)},[c]),(0,Do.useEffect)(()=>{let A=()=>{m(!1),g(c)};return v&&window.addEventListener("click",A),()=>{window.removeEventListener("click",A)}},[v,c,g]),(0,je.jsxs)(sne,{"data-testid":"rangeselector-test-identifier",onClick:A=>A.stopPropagation(),children:[(0,je.jsx)(lne,{...d,"data-testid":"trigger",fullWidth:a,icon:(0,je.jsx)(Ae,{size:"sm",type:"caret-down"}),iconPosition:"end",inputButtonOverride:t==="input",onClick:()=>m(!v),textAlign:"left",variant:t==="input"?"tertiary":t,children:o(c)}),v?(0,je.jsxs)(fne,{align:e,hasPresets:!!u.length,children:[(0,je.jsxs)(pne,{children:[!!u.length&&(0,je.jsx)(Sc,{"data-testid":"presets",style:{marginBottom:0,borderRight:`1px solid ${S.color.grey400}`,padding:"12px"},variant:"unbulleted",children:u.map(({label:A,value:B,tooltipText:I})=>(0,je.jsx)(bi,{children:(0,je.jsx)(une,{"data-testid":A?.replaceAll(" ","_"),isActive:ine(h,B),onClick:()=>{g(B)},children:(0,je.jsxs)(hne,{"data-title":`${A}___`,children:[A," ",I!==void 0?(0,je.jsx)(nne,{tooltipText:I}):null]})})},A))}),(0,je.jsx)(dne,{children:(0,je.jsxs)(ane,{children:[(0,je.jsx)(Zc,{earliestDate:r,latestDate:n,onChange:A=>{g(A)},onErrorChange:E,onSelectedRangePartChange:w,range:h,shouldPreventFuture:p,width:"100%"}),(0,je.jsx)(Kc,{earliestDate:r,latestDate:n,onChange:A=>{g(A)},onIsValidChange:b,range:h,rangePartToShow:x,shouldPreventFuture:p})]})})]}),(0,je.jsx)(cne,{}),(0,je.jsxs)(mne,{children:[(0,je.jsx)("div",{children:s}),(0,je.jsxs)(oo,{align:"right",children:[(0,je.jsx)(rt,{onClick:()=>{g(c),m(!1)},style:{marginLeft:0},variant:"secondary",children:"Cancel"}),(0,je.jsx)(rt,{"data-testid":"apply-button",disabled:!!D.length||!y,onMouseUp:()=>{l&&l(h),m(!1)},children:"Apply"})]})]})]}):null]})};m6.displayName="RangeSelector_VHS";i();i();var kl=k(require("styled-components"));i();i();i();i();function o0(e,t){return o0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},o0(e,t)}function ZM(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,o0(e,t)}var Ra=k(require("react"),1);function h6(e){return e&&e.stopPropagation&&e.stopPropagation(),e&&e.preventDefault&&e.preventDefault(),!1}function g6(e){return e==null?[]:Array.isArray(e)?e.slice():[e]}function i0(e){return e!==null&&e.length===1?e[0]:e.slice()}function a0(e){Object.keys(e).forEach(t=>{typeof document<"u"&&document.addEventListener(t,e[t],!1)})}function Aa(e,t){return v6(function(r,n){let o=r;return o<=n.min&&(o=n.min),o>=n.max&&(o=n.max),o}(e,t),t)}function v6(e,t){let r=(e-t.min)%t.step,n=e-r;return 2*Math.abs(r)>=t.step&&(n+=r>0?t.step:-t.step),parseFloat(n.toFixed(5))}var y6=function(e){function t(n){var o;(o=e.call(this,n)||this).onKeyUp=()=>{o.onEnd()},o.onMouseUp=()=>{o.onEnd(o.getMouseEventMap())},o.onTouchEnd=l=>{l.preventDefault(),o.onEnd(o.getTouchEventMap())},o.onBlur=()=>{o.setState({index:-1},o.onEnd(o.getKeyDownEventMap()))},o.onMouseMove=l=>{o.setState({pending:!0});let u=o.getMousePosition(l),c=o.getDiffPosition(u[0]),p=o.getValueFromPosition(c);o.move(p)},o.onTouchMove=l=>{if(l.touches.length>1)return;o.setState({pending:!0});let u=o.getTouchPosition(l);if(o.isScrolling===void 0){let d=u[0]-o.startPosition[0],h=u[1]-o.startPosition[1];o.isScrolling=Math.abs(h)>Math.abs(d)}if(o.isScrolling)return void o.setState({index:-1});let c=o.getDiffPosition(u[0]),p=o.getValueFromPosition(c);o.move(p)},o.onKeyDown=l=>{if(!(l.ctrlKey||l.shiftKey||l.altKey||l.metaKey))switch(o.setState({pending:!0}),l.key){case"ArrowLeft":case"ArrowDown":case"Left":case"Down":l.preventDefault(),o.moveDownByStep();break;case"ArrowRight":case"ArrowUp":case"Right":case"Up":l.preventDefault(),o.moveUpByStep();break;case"Home":l.preventDefault(),o.move(o.props.min);break;case"End":l.preventDefault(),o.move(o.props.max);break;case"PageDown":l.preventDefault(),o.moveDownByStep(o.props.pageFn(o.props.step));break;case"PageUp":l.preventDefault(),o.moveUpByStep(o.props.pageFn(o.props.step))}},o.onSliderMouseDown=l=>{if(!o.props.disabled&&l.button!==2){if(o.setState({pending:!0}),!o.props.snapDragDisabled){let u=o.getMousePosition(l);o.forceValueFromPosition(u[0],c=>{o.start(c,u[0]),a0(o.getMouseEventMap())})}h6(l)}},o.onSliderClick=l=>{if(!o.props.disabled&&o.props.onSliderClick&&!o.hasMoved){let u=o.getMousePosition(l),c=Aa(o.calcValue(o.calcOffsetFromPosition(u[0])),o.props);o.props.onSliderClick(c)}},o.createOnKeyDown=l=>u=>{o.props.disabled||(o.start(l),a0(o.getKeyDownEventMap()),h6(u))},o.createOnMouseDown=l=>u=>{if(o.props.disabled||u.button===2)return;o.setState({pending:!0});let c=o.getMousePosition(u);o.start(l,c[0]),a0(o.getMouseEventMap()),h6(u)},o.createOnTouchStart=l=>u=>{if(o.props.disabled||u.touches.length>1)return;o.setState({pending:!0});let c=o.getTouchPosition(u);o.startPosition=c,o.isScrolling=void 0,o.start(l,c[0]),a0(o.getTouchEventMap()),function(p){p.stopPropagation&&p.stopPropagation()}(u)},o.handleResize=()=>{let l=window.setTimeout(()=>{o.pendingResizeTimeouts.shift(),o.resize()},0);o.pendingResizeTimeouts.push(l)},o.renderThumb=(l,u)=>{let c=o.props.thumbClassName+" "+o.props.thumbClassName+"-"+u+" "+(o.state.index===u?o.props.thumbActiveClassName:""),p={ref:h=>{o["thumb"+u]=h},key:o.props.thumbClassName+"-"+u,className:c,style:l,onMouseDown:o.createOnMouseDown(u),onTouchStart:o.createOnTouchStart(u),onFocus:o.createOnKeyDown(u),tabIndex:0,role:"slider","aria-orientation":o.props.orientation,"aria-valuenow":o.state.value[u],"aria-valuemin":o.props.min,"aria-valuemax":o.props.max,"aria-label":Array.isArray(o.props.ariaLabel)?o.props.ariaLabel[u]:o.props.ariaLabel,"aria-labelledby":Array.isArray(o.props.ariaLabelledby)?o.props.ariaLabelledby[u]:o.props.ariaLabelledby,"aria-disabled":o.props.disabled},d={index:u,value:i0(o.state.value),valueNow:o.state.value[u]};return o.props.ariaValuetext&&(p["aria-valuetext"]=typeof o.props.ariaValuetext=="string"?o.props.ariaValuetext:o.props.ariaValuetext(d)),o.props.renderThumb(p,d)},o.renderTrack=(l,u,c)=>{let p={key:o.props.trackClassName+"-"+l,className:o.props.trackClassName+" "+o.props.trackClassName+"-"+l,style:o.buildTrackStyle(u,o.state.upperBound-c)},d={index:l,value:i0(o.state.value)};return o.props.renderTrack(p,d)};let a=g6(n.value);a.length||(a=g6(n.defaultValue)),o.pendingResizeTimeouts=[];let s=[];for(let l=0;l<a.length;l+=1)a[l]=Aa(a[l],n),s.push(l);return o.resizeObserver=null,o.resizeElementRef=Ra.default.createRef(),o.state={index:-1,upperBound:0,sliderLength:0,value:a,zIndices:s},o}ZM(t,e);var r=t.prototype;return r.componentDidMount=function(){typeof window<"u"&&(this.resizeObserver=new ResizeObserver(this.handleResize),this.resizeObserver.observe(this.resizeElementRef.current),this.resize())},t.getDerivedStateFromProps=function(n,o){let a=g6(n.value);return a.length?o.pending?null:{value:a.map(s=>Aa(s,n))}:null},r.componentDidUpdate=function(){this.state.upperBound===0&&this.resize()},r.componentWillUnmount=function(){this.clearPendingResizeTimeouts(),this.resizeObserver&&this.resizeObserver.disconnect()},r.onEnd=function(n){n&&function(o){Object.keys(o).forEach(a=>{typeof document<"u"&&document.removeEventListener(a,o[a],!1)})}(n),this.hasMoved&&this.fireChangeEvent("onAfterChange"),this.setState({pending:!1}),this.hasMoved=!1},r.getValue=function(){return i0(this.state.value)},r.getClosestIndex=function(n){let o=Number.MAX_VALUE,a=-1,{value:s}=this.state,l=s.length;for(let u=0;u<l;u+=1){let c=this.calcOffset(s[u]),p=Math.abs(n-c);p<o&&(o=p,a=u)}return a},r.getMousePosition=function(n){return[n["page"+this.axisKey()],n["page"+this.orthogonalAxisKey()]]},r.getTouchPosition=function(n){let o=n.touches[0];return[o["page"+this.axisKey()],o["page"+this.orthogonalAxisKey()]]},r.getKeyDownEventMap=function(){return{keydown:this.onKeyDown,keyup:this.onKeyUp,focusout:this.onBlur}},r.getMouseEventMap=function(){return{mousemove:this.onMouseMove,mouseup:this.onMouseUp}},r.getTouchEventMap=function(){return{touchmove:this.onTouchMove,touchend:this.onTouchEnd}},r.getValueFromPosition=function(n){let o=n/(this.state.sliderLength-this.state.thumbSize)*(this.props.max-this.props.min);return Aa(this.state.startValue+o,this.props)},r.getDiffPosition=function(n){let o=n-this.state.startPosition;return this.props.invert&&(o*=-1),o},r.resize=function(){let{slider:n,thumb0:o}=this;if(!n||!o)return;let a=this.sizeKey(),s=n.getBoundingClientRect(),l=n[a],u=s[this.posMaxKey()],c=s[this.posMinKey()],p=o.getBoundingClientRect()[a.replace("client","").toLowerCase()],d=l-p,h=Math.abs(u-c);this.state.upperBound===d&&this.state.sliderLength===h&&this.state.thumbSize===p||this.setState({upperBound:d,sliderLength:h,thumbSize:p})},r.calcOffset=function(n){let o=this.props.max-this.props.min;return o===0?0:(n-this.props.min)/o*this.state.upperBound},r.calcValue=function(n){return n/this.state.upperBound*(this.props.max-this.props.min)+this.props.min},r.calcOffsetFromPosition=function(n){let{slider:o}=this,a=o.getBoundingClientRect(),s=a[this.posMaxKey()],l=a[this.posMinKey()],u=n-(window["page"+this.axisKey()+"Offset"]+(this.props.invert?s:l));return this.props.invert&&(u=this.state.sliderLength-u),u-=this.state.thumbSize/2,u},r.forceValueFromPosition=function(n,o){let a=this.calcOffsetFromPosition(n),s=this.getClosestIndex(a),l=Aa(this.calcValue(a),this.props),u=this.state.value.slice();u[s]=l;for(let c=0;c<u.length-1;c+=1)if(u[c+1]-u[c]<this.props.minDistance)return;this.fireChangeEvent("onBeforeChange"),this.hasMoved=!0,this.setState({value:u},()=>{o(s),this.fireChangeEvent("onChange")})},r.clearPendingResizeTimeouts=function(){do{let n=this.pendingResizeTimeouts.shift();clearTimeout(n)}while(this.pendingResizeTimeouts.length)},r.start=function(n,o){let a=this["thumb"+n];a&&a.focus();let{zIndices:s}=this.state;s.splice(s.indexOf(n),1),s.push(n),this.setState(l=>({startValue:l.value[n],startPosition:o!==void 0?o:l.startPosition,index:n,zIndices:s}))},r.moveUpByStep=function(n){n===void 0&&(n=this.props.step);let o=this.state.value[this.state.index],a=Aa(this.props.invert&&this.props.orientation==="horizontal"?o-n:o+n,this.props);this.move(Math.min(a,this.props.max))},r.moveDownByStep=function(n){n===void 0&&(n=this.props.step);let o=this.state.value[this.state.index],a=Aa(this.props.invert&&this.props.orientation==="horizontal"?o+n:o-n,this.props);this.move(Math.max(a,this.props.min))},r.move=function(n){let o=this.state.value.slice(),{index:a}=this.state,{length:s}=o,l=o[a];if(n===l)return;this.hasMoved||this.fireChangeEvent("onBeforeChange"),this.hasMoved=!0;let{pearling:u,max:c,min:p,minDistance:d}=this.props;if(!u){if(a>0){let h=o[a-1];n<h+d&&(n=h+d)}if(a<s-1){let h=o[a+1];n>h-d&&(n=h-d)}}o[a]=n,u&&s>1&&(n>l?(this.pushSucceeding(o,d,a),function(h,g,v,m){for(let y=0;y<h;y+=1){let b=m-y*v;g[h-1-y]>b&&(g[h-1-y]=b)}}(s,o,d,c)):n<l&&(this.pushPreceding(o,d,a),function(h,g,v,m){for(let y=0;y<h;y+=1){let b=m+y*v;g[y]<b&&(g[y]=b)}}(s,o,d,p))),this.setState({value:o},this.fireChangeEvent.bind(this,"onChange"))},r.pushSucceeding=function(n,o,a){let s,l;for(s=a,l=n[s]+o;n[s+1]!==null&&l>n[s+1];s+=1,l=n[s]+o)n[s+1]=v6(l,this.props)},r.pushPreceding=function(n,o,a){for(let s=a,l=n[s]-o;n[s-1]!==null&&l<n[s-1];s-=1,l=n[s]-o)n[s-1]=v6(l,this.props)},r.axisKey=function(){return this.props.orientation==="vertical"?"Y":"X"},r.orthogonalAxisKey=function(){return this.props.orientation==="vertical"?"X":"Y"},r.posMinKey=function(){return this.props.orientation==="vertical"?this.props.invert?"bottom":"top":this.props.invert?"right":"left"},r.posMaxKey=function(){return this.props.orientation==="vertical"?this.props.invert?"top":"bottom":this.props.invert?"left":"right"},r.sizeKey=function(){return this.props.orientation==="vertical"?"clientHeight":"clientWidth"},r.fireChangeEvent=function(n){this.props[n]&&this.props[n](i0(this.state.value),this.state.index)},r.buildThumbStyle=function(n,o){let a={position:"absolute",touchAction:"none",willChange:this.state.index>=0?this.posMinKey():void 0,zIndex:this.state.zIndices.indexOf(o)+1};return a[this.posMinKey()]=n+"px",a},r.buildTrackStyle=function(n,o){let a={position:"absolute",willChange:this.state.index>=0?this.posMinKey()+","+this.posMaxKey():void 0};return a[this.posMinKey()]=n,a[this.posMaxKey()]=o,a},r.buildMarkStyle=function(n){var o;return(o={position:"absolute"})[this.posMinKey()]=n,o},r.renderThumbs=function(n){let{length:o}=n,a=[];for(let l=0;l<o;l+=1)a[l]=this.buildThumbStyle(n[l],l);let s=[];for(let l=0;l<o;l+=1)s[l]=this.renderThumb(a[l],l);return s},r.renderTracks=function(n){let o=[],a=n.length-1;o.push(this.renderTrack(0,0,n[0]));for(let s=0;s<a;s+=1)o.push(this.renderTrack(s+1,n[s],n[s+1]));return o.push(this.renderTrack(a+1,n[a],this.state.upperBound)),o},r.renderMarks=function(){let{marks:n}=this.props,o=this.props.max-this.props.min+1;return typeof n=="boolean"?n=Array.from({length:o}).map((a,s)=>s):typeof n=="number"&&(n=Array.from({length:o}).map((a,s)=>s).filter(a=>a%n==0)),n.map(parseFloat).sort((a,s)=>a-s).map(a=>{let s=this.calcOffset(a),l={key:a,className:this.props.markClassName,style:this.buildMarkStyle(s)};return this.props.renderMark(l)})},r.render=function(){let n=[],{value:o}=this.state,a=o.length;for(let c=0;c<a;c+=1)n[c]=this.calcOffset(o[c],c);let s=this.props.withTracks?this.renderTracks(n):null,l=this.renderThumbs(n),u=this.props.marks?this.renderMarks():null;return Ra.default.createElement("div",{ref:c=>{this.slider=c,this.resizeElementRef.current=c},style:{position:"relative"},className:this.props.className+(this.props.disabled?" disabled":""),onMouseDown:this.onSliderMouseDown,onClick:this.onSliderClick},s,l,u)},t}(Ra.default.Component);y6.displayName="ReactSlider",y6.defaultProps={min:0,max:100,step:1,pageFn:e=>10*e,minDistance:0,defaultValue:0,orientation:"horizontal",className:"slider",thumbClassName:"thumb",thumbActiveClassName:"active",trackClassName:"track",markClassName:"mark",withTracks:!0,pearling:!1,disabled:!1,snapDragDisabled:!1,invert:!1,marks:[],renderThumb:e=>Ra.default.createElement("div",e),renderTrack:e=>Ra.default.createElement("div",e),renderMark:e=>Ra.default.createElement("span",e)};var b6=y6;var Il=require("react/jsx-runtime"),QM="4px",gne=kl.css`
2749
+ `,m6=({align:e="left",buttonVariant:t="secondary",earliestDate:r,latestDate:n,format:o=one,fullWidth:a=!1,footerText:s,onChange:l,presets:u=[],range:c={end:new Date,start:new Date},shouldPreventFuture:p=!1,...d})=>{let[h,g]=(0,Do.useState)(c),[v,m]=(0,Do.useState)(!1),[y,b]=(0,Do.useState)(!0),[x,w]=(0,Do.useState)("end"),[D,E]=(0,Do.useState)([]),S=hn();return(0,Do.useEffect)(()=>{g(c)},[c]),(0,Do.useEffect)(()=>{let A=()=>{m(!1),g(c)};return v&&window.addEventListener("click",A),()=>{window.removeEventListener("click",A)}},[v,c,g]),(0,je.jsxs)(sne,{"data-testid":"rangeselector-test-identifier",onClick:A=>A.stopPropagation(),children:[(0,je.jsx)(lne,{...d,$inputButtonOverride:t==="input","data-testid":"trigger",fullWidth:a,icon:(0,je.jsx)(Ae,{size:"sm",type:"caret-down"}),iconPosition:"end",onClick:()=>m(!v),textAlign:"left",variant:t==="input"?"tertiary":t,children:o(c)}),v?(0,je.jsxs)(fne,{$hasPresets:!!u.length,align:e,children:[(0,je.jsxs)(pne,{children:[!!u.length&&(0,je.jsx)(Sc,{"data-testid":"presets",style:{marginBottom:0,borderRight:`1px solid ${S.color.grey400}`,padding:"12px"},variant:"unbulleted",children:u.map(({label:A,value:B,tooltipText:I})=>(0,je.jsx)(bi,{children:(0,je.jsx)(une,{$isActive:ine(h,B),"data-testid":A?.replaceAll(" ","_"),onClick:()=>{g(B)},children:(0,je.jsxs)(hne,{"data-title":`${A}___`,children:[A," ",I!==void 0?(0,je.jsx)(nne,{tooltipText:I}):null]})})},A))}),(0,je.jsx)(dne,{children:(0,je.jsxs)(ane,{children:[(0,je.jsx)(Zc,{earliestDate:r,latestDate:n,onChange:A=>{g(A)},onErrorChange:E,onSelectedRangePartChange:w,range:h,shouldPreventFuture:p,width:"100%"}),(0,je.jsx)(Kc,{earliestDate:r,latestDate:n,onChange:A=>{g(A)},onIsValidChange:b,range:h,rangePartToShow:x,shouldPreventFuture:p})]})})]}),(0,je.jsx)(cne,{}),(0,je.jsxs)(mne,{children:[(0,je.jsx)("div",{children:s}),(0,je.jsxs)(oo,{align:"right",children:[(0,je.jsx)(rt,{onClick:()=>{g(c),m(!1)},style:{marginLeft:0},variant:"secondary",children:"Cancel"}),(0,je.jsx)(rt,{"data-testid":"apply-button",disabled:!!D.length||!y,onMouseUp:()=>{l&&l(h),m(!1)},children:"Apply"})]})]})]}):null]})};m6.displayName="RangeSelector_VHS";i();i();var kl=k(require("styled-components"));i();i();i();i();function o0(e,t){return o0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},o0(e,t)}function ZM(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,o0(e,t)}var Ra=k(require("react"),1);function h6(e){return e&&e.stopPropagation&&e.stopPropagation(),e&&e.preventDefault&&e.preventDefault(),!1}function g6(e){return e==null?[]:Array.isArray(e)?e.slice():[e]}function i0(e){return e!==null&&e.length===1?e[0]:e.slice()}function a0(e){Object.keys(e).forEach(t=>{typeof document<"u"&&document.addEventListener(t,e[t],!1)})}function Aa(e,t){return v6(function(r,n){let o=r;return o<=n.min&&(o=n.min),o>=n.max&&(o=n.max),o}(e,t),t)}function v6(e,t){let r=(e-t.min)%t.step,n=e-r;return 2*Math.abs(r)>=t.step&&(n+=r>0?t.step:-t.step),parseFloat(n.toFixed(5))}var y6=function(e){function t(n){var o;(o=e.call(this,n)||this).onKeyUp=()=>{o.onEnd()},o.onMouseUp=()=>{o.onEnd(o.getMouseEventMap())},o.onTouchEnd=l=>{l.preventDefault(),o.onEnd(o.getTouchEventMap())},o.onBlur=()=>{o.setState({index:-1},o.onEnd(o.getKeyDownEventMap()))},o.onMouseMove=l=>{o.setState({pending:!0});let u=o.getMousePosition(l),c=o.getDiffPosition(u[0]),p=o.getValueFromPosition(c);o.move(p)},o.onTouchMove=l=>{if(l.touches.length>1)return;o.setState({pending:!0});let u=o.getTouchPosition(l);if(o.isScrolling===void 0){let d=u[0]-o.startPosition[0],h=u[1]-o.startPosition[1];o.isScrolling=Math.abs(h)>Math.abs(d)}if(o.isScrolling)return void o.setState({index:-1});let c=o.getDiffPosition(u[0]),p=o.getValueFromPosition(c);o.move(p)},o.onKeyDown=l=>{if(!(l.ctrlKey||l.shiftKey||l.altKey||l.metaKey))switch(o.setState({pending:!0}),l.key){case"ArrowLeft":case"ArrowDown":case"Left":case"Down":l.preventDefault(),o.moveDownByStep();break;case"ArrowRight":case"ArrowUp":case"Right":case"Up":l.preventDefault(),o.moveUpByStep();break;case"Home":l.preventDefault(),o.move(o.props.min);break;case"End":l.preventDefault(),o.move(o.props.max);break;case"PageDown":l.preventDefault(),o.moveDownByStep(o.props.pageFn(o.props.step));break;case"PageUp":l.preventDefault(),o.moveUpByStep(o.props.pageFn(o.props.step))}},o.onSliderMouseDown=l=>{if(!o.props.disabled&&l.button!==2){if(o.setState({pending:!0}),!o.props.snapDragDisabled){let u=o.getMousePosition(l);o.forceValueFromPosition(u[0],c=>{o.start(c,u[0]),a0(o.getMouseEventMap())})}h6(l)}},o.onSliderClick=l=>{if(!o.props.disabled&&o.props.onSliderClick&&!o.hasMoved){let u=o.getMousePosition(l),c=Aa(o.calcValue(o.calcOffsetFromPosition(u[0])),o.props);o.props.onSliderClick(c)}},o.createOnKeyDown=l=>u=>{o.props.disabled||(o.start(l),a0(o.getKeyDownEventMap()),h6(u))},o.createOnMouseDown=l=>u=>{if(o.props.disabled||u.button===2)return;o.setState({pending:!0});let c=o.getMousePosition(u);o.start(l,c[0]),a0(o.getMouseEventMap()),h6(u)},o.createOnTouchStart=l=>u=>{if(o.props.disabled||u.touches.length>1)return;o.setState({pending:!0});let c=o.getTouchPosition(u);o.startPosition=c,o.isScrolling=void 0,o.start(l,c[0]),a0(o.getTouchEventMap()),function(p){p.stopPropagation&&p.stopPropagation()}(u)},o.handleResize=()=>{let l=window.setTimeout(()=>{o.pendingResizeTimeouts.shift(),o.resize()},0);o.pendingResizeTimeouts.push(l)},o.renderThumb=(l,u)=>{let c=o.props.thumbClassName+" "+o.props.thumbClassName+"-"+u+" "+(o.state.index===u?o.props.thumbActiveClassName:""),p={ref:h=>{o["thumb"+u]=h},key:o.props.thumbClassName+"-"+u,className:c,style:l,onMouseDown:o.createOnMouseDown(u),onTouchStart:o.createOnTouchStart(u),onFocus:o.createOnKeyDown(u),tabIndex:0,role:"slider","aria-orientation":o.props.orientation,"aria-valuenow":o.state.value[u],"aria-valuemin":o.props.min,"aria-valuemax":o.props.max,"aria-label":Array.isArray(o.props.ariaLabel)?o.props.ariaLabel[u]:o.props.ariaLabel,"aria-labelledby":Array.isArray(o.props.ariaLabelledby)?o.props.ariaLabelledby[u]:o.props.ariaLabelledby,"aria-disabled":o.props.disabled},d={index:u,value:i0(o.state.value),valueNow:o.state.value[u]};return o.props.ariaValuetext&&(p["aria-valuetext"]=typeof o.props.ariaValuetext=="string"?o.props.ariaValuetext:o.props.ariaValuetext(d)),o.props.renderThumb(p,d)},o.renderTrack=(l,u,c)=>{let p={key:o.props.trackClassName+"-"+l,className:o.props.trackClassName+" "+o.props.trackClassName+"-"+l,style:o.buildTrackStyle(u,o.state.upperBound-c)},d={index:l,value:i0(o.state.value)};return o.props.renderTrack(p,d)};let a=g6(n.value);a.length||(a=g6(n.defaultValue)),o.pendingResizeTimeouts=[];let s=[];for(let l=0;l<a.length;l+=1)a[l]=Aa(a[l],n),s.push(l);return o.resizeObserver=null,o.resizeElementRef=Ra.default.createRef(),o.state={index:-1,upperBound:0,sliderLength:0,value:a,zIndices:s},o}ZM(t,e);var r=t.prototype;return r.componentDidMount=function(){typeof window<"u"&&(this.resizeObserver=new ResizeObserver(this.handleResize),this.resizeObserver.observe(this.resizeElementRef.current),this.resize())},t.getDerivedStateFromProps=function(n,o){let a=g6(n.value);return a.length?o.pending?null:{value:a.map(s=>Aa(s,n))}:null},r.componentDidUpdate=function(){this.state.upperBound===0&&this.resize()},r.componentWillUnmount=function(){this.clearPendingResizeTimeouts(),this.resizeObserver&&this.resizeObserver.disconnect()},r.onEnd=function(n){n&&function(o){Object.keys(o).forEach(a=>{typeof document<"u"&&document.removeEventListener(a,o[a],!1)})}(n),this.hasMoved&&this.fireChangeEvent("onAfterChange"),this.setState({pending:!1}),this.hasMoved=!1},r.getValue=function(){return i0(this.state.value)},r.getClosestIndex=function(n){let o=Number.MAX_VALUE,a=-1,{value:s}=this.state,l=s.length;for(let u=0;u<l;u+=1){let c=this.calcOffset(s[u]),p=Math.abs(n-c);p<o&&(o=p,a=u)}return a},r.getMousePosition=function(n){return[n["page"+this.axisKey()],n["page"+this.orthogonalAxisKey()]]},r.getTouchPosition=function(n){let o=n.touches[0];return[o["page"+this.axisKey()],o["page"+this.orthogonalAxisKey()]]},r.getKeyDownEventMap=function(){return{keydown:this.onKeyDown,keyup:this.onKeyUp,focusout:this.onBlur}},r.getMouseEventMap=function(){return{mousemove:this.onMouseMove,mouseup:this.onMouseUp}},r.getTouchEventMap=function(){return{touchmove:this.onTouchMove,touchend:this.onTouchEnd}},r.getValueFromPosition=function(n){let o=n/(this.state.sliderLength-this.state.thumbSize)*(this.props.max-this.props.min);return Aa(this.state.startValue+o,this.props)},r.getDiffPosition=function(n){let o=n-this.state.startPosition;return this.props.invert&&(o*=-1),o},r.resize=function(){let{slider:n,thumb0:o}=this;if(!n||!o)return;let a=this.sizeKey(),s=n.getBoundingClientRect(),l=n[a],u=s[this.posMaxKey()],c=s[this.posMinKey()],p=o.getBoundingClientRect()[a.replace("client","").toLowerCase()],d=l-p,h=Math.abs(u-c);this.state.upperBound===d&&this.state.sliderLength===h&&this.state.thumbSize===p||this.setState({upperBound:d,sliderLength:h,thumbSize:p})},r.calcOffset=function(n){let o=this.props.max-this.props.min;return o===0?0:(n-this.props.min)/o*this.state.upperBound},r.calcValue=function(n){return n/this.state.upperBound*(this.props.max-this.props.min)+this.props.min},r.calcOffsetFromPosition=function(n){let{slider:o}=this,a=o.getBoundingClientRect(),s=a[this.posMaxKey()],l=a[this.posMinKey()],u=n-(window["page"+this.axisKey()+"Offset"]+(this.props.invert?s:l));return this.props.invert&&(u=this.state.sliderLength-u),u-=this.state.thumbSize/2,u},r.forceValueFromPosition=function(n,o){let a=this.calcOffsetFromPosition(n),s=this.getClosestIndex(a),l=Aa(this.calcValue(a),this.props),u=this.state.value.slice();u[s]=l;for(let c=0;c<u.length-1;c+=1)if(u[c+1]-u[c]<this.props.minDistance)return;this.fireChangeEvent("onBeforeChange"),this.hasMoved=!0,this.setState({value:u},()=>{o(s),this.fireChangeEvent("onChange")})},r.clearPendingResizeTimeouts=function(){do{let n=this.pendingResizeTimeouts.shift();clearTimeout(n)}while(this.pendingResizeTimeouts.length)},r.start=function(n,o){let a=this["thumb"+n];a&&a.focus();let{zIndices:s}=this.state;s.splice(s.indexOf(n),1),s.push(n),this.setState(l=>({startValue:l.value[n],startPosition:o!==void 0?o:l.startPosition,index:n,zIndices:s}))},r.moveUpByStep=function(n){n===void 0&&(n=this.props.step);let o=this.state.value[this.state.index],a=Aa(this.props.invert&&this.props.orientation==="horizontal"?o-n:o+n,this.props);this.move(Math.min(a,this.props.max))},r.moveDownByStep=function(n){n===void 0&&(n=this.props.step);let o=this.state.value[this.state.index],a=Aa(this.props.invert&&this.props.orientation==="horizontal"?o+n:o-n,this.props);this.move(Math.max(a,this.props.min))},r.move=function(n){let o=this.state.value.slice(),{index:a}=this.state,{length:s}=o,l=o[a];if(n===l)return;this.hasMoved||this.fireChangeEvent("onBeforeChange"),this.hasMoved=!0;let{pearling:u,max:c,min:p,minDistance:d}=this.props;if(!u){if(a>0){let h=o[a-1];n<h+d&&(n=h+d)}if(a<s-1){let h=o[a+1];n>h-d&&(n=h-d)}}o[a]=n,u&&s>1&&(n>l?(this.pushSucceeding(o,d,a),function(h,g,v,m){for(let y=0;y<h;y+=1){let b=m-y*v;g[h-1-y]>b&&(g[h-1-y]=b)}}(s,o,d,c)):n<l&&(this.pushPreceding(o,d,a),function(h,g,v,m){for(let y=0;y<h;y+=1){let b=m+y*v;g[y]<b&&(g[y]=b)}}(s,o,d,p))),this.setState({value:o},this.fireChangeEvent.bind(this,"onChange"))},r.pushSucceeding=function(n,o,a){let s,l;for(s=a,l=n[s]+o;n[s+1]!==null&&l>n[s+1];s+=1,l=n[s]+o)n[s+1]=v6(l,this.props)},r.pushPreceding=function(n,o,a){for(let s=a,l=n[s]-o;n[s-1]!==null&&l<n[s-1];s-=1,l=n[s]-o)n[s-1]=v6(l,this.props)},r.axisKey=function(){return this.props.orientation==="vertical"?"Y":"X"},r.orthogonalAxisKey=function(){return this.props.orientation==="vertical"?"X":"Y"},r.posMinKey=function(){return this.props.orientation==="vertical"?this.props.invert?"bottom":"top":this.props.invert?"right":"left"},r.posMaxKey=function(){return this.props.orientation==="vertical"?this.props.invert?"top":"bottom":this.props.invert?"left":"right"},r.sizeKey=function(){return this.props.orientation==="vertical"?"clientHeight":"clientWidth"},r.fireChangeEvent=function(n){this.props[n]&&this.props[n](i0(this.state.value),this.state.index)},r.buildThumbStyle=function(n,o){let a={position:"absolute",touchAction:"none",willChange:this.state.index>=0?this.posMinKey():void 0,zIndex:this.state.zIndices.indexOf(o)+1};return a[this.posMinKey()]=n+"px",a},r.buildTrackStyle=function(n,o){let a={position:"absolute",willChange:this.state.index>=0?this.posMinKey()+","+this.posMaxKey():void 0};return a[this.posMinKey()]=n,a[this.posMaxKey()]=o,a},r.buildMarkStyle=function(n){var o;return(o={position:"absolute"})[this.posMinKey()]=n,o},r.renderThumbs=function(n){let{length:o}=n,a=[];for(let l=0;l<o;l+=1)a[l]=this.buildThumbStyle(n[l],l);let s=[];for(let l=0;l<o;l+=1)s[l]=this.renderThumb(a[l],l);return s},r.renderTracks=function(n){let o=[],a=n.length-1;o.push(this.renderTrack(0,0,n[0]));for(let s=0;s<a;s+=1)o.push(this.renderTrack(s+1,n[s],n[s+1]));return o.push(this.renderTrack(a+1,n[a],this.state.upperBound)),o},r.renderMarks=function(){let{marks:n}=this.props,o=this.props.max-this.props.min+1;return typeof n=="boolean"?n=Array.from({length:o}).map((a,s)=>s):typeof n=="number"&&(n=Array.from({length:o}).map((a,s)=>s).filter(a=>a%n==0)),n.map(parseFloat).sort((a,s)=>a-s).map(a=>{let s=this.calcOffset(a),l={key:a,className:this.props.markClassName,style:this.buildMarkStyle(s)};return this.props.renderMark(l)})},r.render=function(){let n=[],{value:o}=this.state,a=o.length;for(let c=0;c<a;c+=1)n[c]=this.calcOffset(o[c],c);let s=this.props.withTracks?this.renderTracks(n):null,l=this.renderThumbs(n),u=this.props.marks?this.renderMarks():null;return Ra.default.createElement("div",{ref:c=>{this.slider=c,this.resizeElementRef.current=c},style:{position:"relative"},className:this.props.className+(this.props.disabled?" disabled":""),onMouseDown:this.onSliderMouseDown,onClick:this.onSliderClick},s,l,u)},t}(Ra.default.Component);y6.displayName="ReactSlider",y6.defaultProps={min:0,max:100,step:1,pageFn:e=>10*e,minDistance:0,defaultValue:0,orientation:"horizontal",className:"slider",thumbClassName:"thumb",thumbActiveClassName:"active",trackClassName:"track",markClassName:"mark",withTracks:!0,pearling:!1,disabled:!1,snapDragDisabled:!1,invert:!1,marks:[],renderThumb:e=>Ra.default.createElement("div",e),renderTrack:e=>Ra.default.createElement("div",e),renderMark:e=>Ra.default.createElement("span",e)};var b6=y6;var Il=require("react/jsx-runtime"),QM="4px",gne=kl.css`
2750
2750
  opacity: 0.5;
2751
2751
 
2752
2752
  & * {
@@ -2887,7 +2887,7 @@
2887
2887
  display: flex;
2888
2888
  overflow: hidden;
2889
2889
  position: relative;
2890
- width: ${({width:e})=>e};
2890
+ width: ${({$width:e})=>e};
2891
2891
  `,Ene=Bi.default.img`
2892
2892
  height: 100%;
2893
2893
  object-fit: cover;
@@ -2922,13 +2922,13 @@
2922
2922
  height: 100%;
2923
2923
  width: 100%;
2924
2924
  }
2925
- `,Rne=({thumbnailImageType:e,thumbnailUrl:t})=>e==="wide"?(0,Tr.jsx)(Ene,{alt:"",src:t}):e==="square"?(0,Tr.jsx)(Pne,{alt:"",src:t}):null,Fne=Bi.default.div`
2925
+ `,Rne=({$thumbnailImageType:e,$thumbnailUrl:t})=>e==="wide"?(0,Tr.jsx)(Ene,{alt:"",src:t}):e==="square"?(0,Tr.jsx)(Pne,{alt:"",src:t}):null,Fne=Bi.default.div`
2926
2926
  display: grid;
2927
2927
  grid-template-columns: auto auto;
2928
2928
  grid-template-rows: 50% 50%;
2929
2929
  width: 100%;
2930
2930
  `,Bne=Bi.default.div`
2931
- background-image: ${({thumbnailUrl:e})=>`url(${e})`};
2931
+ background-image: ${({$thumbnailUrl:e})=>`url(${e})`};
2932
2932
  background-position: center;
2933
2933
  background-size: cover;
2934
2934
  min-width: 100px;
@@ -2942,7 +2942,7 @@
2942
2942
  grid-column: 2;
2943
2943
  ${({total:e})=>e===2&&"grid-row: 1 / 3;"}
2944
2944
  }
2945
- `,E6=({bottomRightText:e,thumbnailUrl:t,thumbnailImageType:r="square",icon:n,bottomRightIcon:o,width:a="auto",gradientBackground:s="defaultMidOne",iconColor:l="white",...u})=>{let c=Array.isArray(t)?t[0]:t;return(0,Tr.jsxs)(Dne,{$backgroundUrl:r==="square"&&F(c)?`url(${c})`:"",$gradientBackground:s,width:a,...u,children:[F(e)?(0,Tr.jsxs)(Tne,{children:[o?(0,Tr.jsx)(Ae,{size:"sm",type:o}):null,(0,Tr.jsx)("span",{children:e})]}):null,F(n)&&(0,Tr.jsx)(Ane,{children:(0,Tr.jsx)(Ae,{color:l,type:n})}),!Array.isArray(t)&&F(r)&&F(t)&&(0,Tr.jsx)(Rne,{thumbnailImageType:r,thumbnailUrl:t}),Array.isArray(t)&&F(r)&&F(t)&&(0,Tr.jsx)(Fne,{"data-testid":"thumbnail-collage",children:t.map((p,d)=>(0,Tr.jsx)(Bne,{"data-testid":`collage-image-${d}`,thumbnailUrl:p,total:t.length},`${p}${d}`))})]})};E6.displayName="Thumbnail_VHS";i();i();var P6=k(require("styled-components"));var s0=require("react/jsx-runtime"),One=P6.default.div`
2945
+ `,E6=({bottomRightText:e,thumbnailUrl:t,thumbnailImageType:r="square",icon:n,bottomRightIcon:o,width:a="auto",gradientBackground:s="defaultMidOne",iconColor:l="white",...u})=>{let c=Array.isArray(t)?t[0]:t;return(0,Tr.jsxs)(Dne,{$backgroundUrl:r==="square"&&F(c)?`url(${c})`:"",$gradientBackground:s,$width:a,...u,children:[F(e)?(0,Tr.jsxs)(Tne,{children:[o?(0,Tr.jsx)(Ae,{size:"sm",type:o}):null,(0,Tr.jsx)("span",{children:e})]}):null,F(n)&&(0,Tr.jsx)(Ane,{children:(0,Tr.jsx)(Ae,{color:l,type:n})}),!Array.isArray(t)&&F(r)&&F(t)&&(0,Tr.jsx)(Rne,{$thumbnailImageType:r,$thumbnailUrl:t}),Array.isArray(t)&&F(r)&&F(t)&&(0,Tr.jsx)(Fne,{"data-testid":"thumbnail-collage",children:t.map((p,d)=>(0,Tr.jsx)(Bne,{$thumbnailUrl:p,"data-testid":`collage-image-${d}`,total:t.length},`${p}${d}`))})]})};E6.displayName="Thumbnail_VHS";i();i();var P6=k(require("styled-components"));var s0=require("react/jsx-runtime"),One=P6.default.div`
2946
2946
  display: grid;
2947
2947
  grid-template-columns: 3fr 2fr;
2948
2948
  grid-template-rows: 1fr 1fr;